Skip to content

Commit

Permalink
Bump the ts-proto group in /impl/ts-proto with 3 updates (#199)
Browse files Browse the repository at this point in the history
Bumps the ts-proto group in /impl/ts-proto with 3 updates:
[ts-proto](https://github.com/stephenh/ts-proto),
[@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node)
and [esbuild](https://github.com/evanw/esbuild).

Updates `ts-proto` from 1.167.2 to 1.167.9
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/stephenh/ts-proto/releases">ts-proto's
releases</a>.</em></p>
<blockquote>
<h2>v1.167.9</h2>
<h2><a
href="https://github.com/stephenh/ts-proto/compare/v1.167.8...v1.167.9">1.167.9</a>
(2024-02-28)</h2>
<h3>Bug Fixes</h3>
<ul>
<li>typescript errors for struct with optional=all (<a
href="https://redirect.github.com/stephenh/ts-proto/issues/1008">#1008</a>)
(<a
href="https://github.com/stephenh/ts-proto/commit/e838e3801e0ef5e8b5a14ead7d7dfc0ad3532cf1">e838e38</a>),
closes <a
href="https://redirect.github.com/stephenh/ts-proto/issues/578">#578</a></li>
</ul>
<h2>v1.167.8</h2>
<h2><a
href="https://github.com/stephenh/ts-proto/compare/v1.167.7...v1.167.8">1.167.8</a>
(2024-02-18)</h2>
<h3>Bug Fixes</h3>
<ul>
<li>Use as any on globalThis.Buffer check for bytesFromBase64 (<a
href="https://redirect.github.com/stephenh/ts-proto/issues/1005">#1005</a>)
(<a
href="https://github.com/stephenh/ts-proto/commit/bae741cba9c22d08118e25619ba3e427e1c7bf9d">bae741c</a>),
closes <a
href="https://redirect.github.com/stephenh/ts-proto/issues/1004">#1004</a>
<a
href="https://redirect.github.com/stephenh/ts-proto/issues/967">#967</a></li>
</ul>
<h2>v1.167.7</h2>
<h2><a
href="https://github.com/stephenh/ts-proto/compare/v1.167.6...v1.167.7">1.167.7</a>
(2024-02-17)</h2>
<h3>Bug Fixes</h3>
<ul>
<li>Use as any on globalThis.Buffer check. (<a
href="https://redirect.github.com/stephenh/ts-proto/issues/1004">#1004</a>)
(<a
href="https://github.com/stephenh/ts-proto/commit/11d06b4455a1f27793bfe172fffaf05b7a3400db">11d06b4</a>),
closes <a
href="https://redirect.github.com/stephenh/ts-proto/issues/967">#967</a></li>
</ul>
<h2>v1.167.6</h2>
<h2><a
href="https://github.com/stephenh/ts-proto/compare/v1.167.5...v1.167.6">1.167.6</a>
(2024-02-17)</h2>
<h3>Bug Fixes</h3>
<ul>
<li>conditional export (<a
href="https://redirect.github.com/stephenh/ts-proto/issues/1003">#1003</a>)
(<a
href="https://github.com/stephenh/ts-proto/commit/4a15839943b501af750b9d142dba2cb3889b4617">4a15839</a>)</li>
</ul>
<h2>v1.167.5</h2>
<h2><a
href="https://github.com/stephenh/ts-proto/compare/v1.167.4...v1.167.5">1.167.5</a>
(2024-02-15)</h2>
<h3>Bug Fixes</h3>
<ul>
<li>import fails when folder name overlaps with file name (<a
href="https://redirect.github.com/stephenh/ts-proto/issues/1000">#1000</a>)
(<a
href="https://github.com/stephenh/ts-proto/commit/1e68e6f0b2ca6fbffc51c0abe9b0f127350dd766">1e68e6f</a>)</li>
</ul>
<h2>v1.167.4</h2>
<h2><a
href="https://github.com/stephenh/ts-proto/compare/v1.167.3...v1.167.4">1.167.4</a>
(2024-02-15)</h2>
<h3>Bug Fixes</h3>
<ul>
<li>don't reference globalThis.Buffer when env=browser (<a
href="https://redirect.github.com/stephenh/ts-proto/issues/967">#967</a>)
(<a
href="https://redirect.github.com/stephenh/ts-proto/issues/999">#999</a>)
(<a
href="https://github.com/stephenh/ts-proto/commit/0d34612ce8878b1dccbeb001686ef4051080e043">0d34612</a>)</li>
</ul>
<h2>v1.167.3</h2>
<h2><a
href="https://github.com/stephenh/ts-proto/compare/v1.167.2...v1.167.3">1.167.3</a>
(2024-02-03)</h2>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/stephenh/ts-proto/blob/main/CHANGELOG.md">ts-proto's
changelog</a>.</em></p>
<blockquote>
<h2><a
href="https://github.com/stephenh/ts-proto/compare/v1.167.8...v1.167.9">1.167.9</a>
(2024-02-28)</h2>
<h3>Bug Fixes</h3>
<ul>
<li>typescript errors for struct with optional=all (<a
href="https://redirect.github.com/stephenh/ts-proto/issues/1008">#1008</a>)
(<a
href="https://github.com/stephenh/ts-proto/commit/e838e3801e0ef5e8b5a14ead7d7dfc0ad3532cf1">e838e38</a>),
closes <a
href="https://redirect.github.com/stephenh/ts-proto/issues/578">#578</a></li>
</ul>
<h2><a
href="https://github.com/stephenh/ts-proto/compare/v1.167.7...v1.167.8">1.167.8</a>
(2024-02-18)</h2>
<h3>Bug Fixes</h3>
<ul>
<li>Use as any on globalThis.Buffer check for bytesFromBase64 (<a
href="https://redirect.github.com/stephenh/ts-proto/issues/1005">#1005</a>)
(<a
href="https://github.com/stephenh/ts-proto/commit/bae741cba9c22d08118e25619ba3e427e1c7bf9d">bae741c</a>),
closes <a
href="https://redirect.github.com/stephenh/ts-proto/issues/1004">#1004</a>
<a
href="https://redirect.github.com/stephenh/ts-proto/issues/967">#967</a></li>
</ul>
<h2><a
href="https://github.com/stephenh/ts-proto/compare/v1.167.6...v1.167.7">1.167.7</a>
(2024-02-17)</h2>
<h3>Bug Fixes</h3>
<ul>
<li>Use as any on globalThis.Buffer check. (<a
href="https://redirect.github.com/stephenh/ts-proto/issues/1004">#1004</a>)
(<a
href="https://github.com/stephenh/ts-proto/commit/11d06b4455a1f27793bfe172fffaf05b7a3400db">11d06b4</a>),
closes <a
href="https://redirect.github.com/stephenh/ts-proto/issues/967">#967</a></li>
</ul>
<h2><a
href="https://github.com/stephenh/ts-proto/compare/v1.167.5...v1.167.6">1.167.6</a>
(2024-02-17)</h2>
<h3>Bug Fixes</h3>
<ul>
<li>conditional export (<a
href="https://redirect.github.com/stephenh/ts-proto/issues/1003">#1003</a>)
(<a
href="https://github.com/stephenh/ts-proto/commit/4a15839943b501af750b9d142dba2cb3889b4617">4a15839</a>)</li>
</ul>
<h2><a
href="https://github.com/stephenh/ts-proto/compare/v1.167.4...v1.167.5">1.167.5</a>
(2024-02-15)</h2>
<h3>Bug Fixes</h3>
<ul>
<li>import fails when folder name overlaps with file name (<a
href="https://redirect.github.com/stephenh/ts-proto/issues/1000">#1000</a>)
(<a
href="https://github.com/stephenh/ts-proto/commit/1e68e6f0b2ca6fbffc51c0abe9b0f127350dd766">1e68e6f</a>)</li>
</ul>
<h2><a
href="https://github.com/stephenh/ts-proto/compare/v1.167.3...v1.167.4">1.167.4</a>
(2024-02-15)</h2>
<h3>Bug Fixes</h3>
<ul>
<li>don't reference globalThis.Buffer when env=browser (<a
href="https://redirect.github.com/stephenh/ts-proto/issues/967">#967</a>)
(<a
href="https://redirect.github.com/stephenh/ts-proto/issues/999">#999</a>)
(<a
href="https://github.com/stephenh/ts-proto/commit/0d34612ce8878b1dccbeb001686ef4051080e043">0d34612</a>)</li>
</ul>
<h2><a
href="https://github.com/stephenh/ts-proto/compare/v1.167.2...v1.167.3">1.167.3</a>
(2024-02-03)</h2>
<h3>Bug Fixes</h3>
<ul>
<li>ensure default service streaming methods compile when middleware
methods are enabled (<a
href="https://redirect.github.com/stephenh/ts-proto/issues/996">#996</a>)
(<a
href="https://github.com/stephenh/ts-proto/commit/a9e975b41b760970da264a48cc3fb4ecc4b57a1d">a9e975b</a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/stephenh/ts-proto/commit/b9b0ff7b2a6eb4e04ce6dab5f97e2d3d40d2b385"><code>b9b0ff7</code></a>
chore(release): 1.167.9 [skip ci]</li>
<li><a
href="https://github.com/stephenh/ts-proto/commit/e838e3801e0ef5e8b5a14ead7d7dfc0ad3532cf1"><code>e838e38</code></a>
fix: typescript errors for struct with optional=all (<a
href="https://redirect.github.com/stephenh/ts-proto/issues/1008">#1008</a>)</li>
<li><a
href="https://github.com/stephenh/ts-proto/commit/ba97f98f76daed21c9643aecdedd36dce9d3072a"><code>ba97f98</code></a>
chore(release): 1.167.8 [skip ci]</li>
<li><a
href="https://github.com/stephenh/ts-proto/commit/bae741cba9c22d08118e25619ba3e427e1c7bf9d"><code>bae741c</code></a>
fix: Use as any on globalThis.Buffer check for bytesFromBase64 (<a
href="https://redirect.github.com/stephenh/ts-proto/issues/1005">#1005</a>)</li>
<li><a
href="https://github.com/stephenh/ts-proto/commit/308d27a7bb542b0ffa965be95042c10b04e59072"><code>308d27a</code></a>
chore(release): 1.167.7 [skip ci]</li>
<li><a
href="https://github.com/stephenh/ts-proto/commit/11d06b4455a1f27793bfe172fffaf05b7a3400db"><code>11d06b4</code></a>
fix: Use as any on globalThis.Buffer check. (<a
href="https://redirect.github.com/stephenh/ts-proto/issues/1004">#1004</a>)</li>
<li><a
href="https://github.com/stephenh/ts-proto/commit/22e2996ebcc1c1affdd1d9ccd77fbd0ced515784"><code>22e2996</code></a>
chore: Bump semantic-pull-request.</li>
<li><a
href="https://github.com/stephenh/ts-proto/commit/e5287bd4b306ca7dbc4b0ac97d6d3efba2177bd6"><code>e5287bd</code></a>
chore(release): 1.167.6 [skip ci]</li>
<li><a
href="https://github.com/stephenh/ts-proto/commit/4a15839943b501af750b9d142dba2cb3889b4617"><code>4a15839</code></a>
fix: conditional export (<a
href="https://redirect.github.com/stephenh/ts-proto/issues/1003">#1003</a>)</li>
<li><a
href="https://github.com/stephenh/ts-proto/commit/9fdce05be8983acc2b51e45d434ff4c8811a32cc"><code>9fdce05</code></a>
chore(release): 1.167.5 [skip ci]</li>
<li>Additional commits viewable in <a
href="https://github.com/stephenh/ts-proto/compare/v1.167.2...v1.167.9">compare
view</a></li>
</ul>
</details>
<br />

Updates `@types/node` from 20.11.14 to 20.11.24
<details>
<summary>Commits</summary>
<ul>
<li>See full diff in <a
href="https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node">compare
view</a></li>
</ul>
</details>
<br />

Updates `esbuild` from 0.20.0 to 0.20.1
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/evanw/esbuild/releases">esbuild's
releases</a>.</em></p>
<blockquote>
<h2>v0.20.1</h2>
<ul>
<li>
<p>Fix a bug with the CSS nesting transform (<a
href="https://redirect.github.com/evanw/esbuild/issues/3648">#3648</a>)</p>
<p>This release fixes a bug with the CSS nesting transform for older
browsers where the generated CSS could be incorrect if a selector list
contained a pseudo element followed by another selector. The bug was
caused by incorrectly mutating the parent rule's selector list when
filtering out pseudo elements for the child rules:</p>
<pre lang="css"><code>/* Original code */
.foo {
  &amp;:after,
  &amp; .bar {
    color: red;
  }
}
<p>/* Old output (with --supported:nesting=false) */
.foo .bar,
.foo .bar {
color: red;
}</p>
<p>/* New output (with --supported:nesting=false) */
.foo:after,
.foo .bar {
color: red;
}
</code></pre></p>
</li>
<li>
<p>Constant folding for JavaScript inequality operators (<a
href="https://redirect.github.com/evanw/esbuild/issues/3645">#3645</a>)</p>
<p>This release introduces constant folding for the <code>&lt; &gt;
&lt;= &gt;=</code> operators. The minifier will now replace these
operators with <code>true</code> or <code>false</code> when both sides
are compile-time numeric or string constants:</p>
<pre lang="js"><code>// Original code
console.log(1 &lt; 2, '🍕' &gt; '🧀')
<p>// Old output (with --minify)
console.log(1&lt;2,&quot;🍕&quot;&gt;&quot;🧀&quot;);</p>
<p>// New output (with --minify)
console.log(!0,!1);
</code></pre></p>
</li>
<li>
<p>Better handling of <code>__proto__</code> edge cases (<a
href="https://redirect.github.com/evanw/esbuild/pull/3651">#3651</a>)</p>
<p>JavaScript object literal syntax contains a special case where a
non-computed property with a key of <code>__proto__</code> sets the
prototype of the object. This does not apply to computed properties or
to properties that use the shorthand property syntax introduced in ES6.
Previously esbuild didn't correctly preserve the &quot;sets the
prototype&quot; status of properties inside an object literal, meaning a
property that sets the prototype could accidentally be transformed into
one that doesn't and vice versa. This has now been fixed:</p>
<pre lang="js"><code>// Original code
function foo(__proto__) {
  return { __proto__: __proto__ } // Note: sets the prototype
</code></pre>
</li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/evanw/esbuild/blob/main/CHANGELOG.md">esbuild's
changelog</a>.</em></p>
<blockquote>
<h2>0.20.1</h2>
<ul>
<li>
<p>Fix a bug with the CSS nesting transform (<a
href="https://redirect.github.com/evanw/esbuild/issues/3648">#3648</a>)</p>
<p>This release fixes a bug with the CSS nesting transform for older
browsers where the generated CSS could be incorrect if a selector list
contained a pseudo element followed by another selector. The bug was
caused by incorrectly mutating the parent rule's selector list when
filtering out pseudo elements for the child rules:</p>
<pre lang="css"><code>/* Original code */
.foo {
  &amp;:after,
  &amp; .bar {
    color: red;
  }
}
<p>/* Old output (with --supported:nesting=false) */
.foo .bar,
.foo .bar {
color: red;
}</p>
<p>/* New output (with --supported:nesting=false) */
.foo:after,
.foo .bar {
color: red;
}
</code></pre></p>
</li>
<li>
<p>Constant folding for JavaScript inequality operators (<a
href="https://redirect.github.com/evanw/esbuild/issues/3645">#3645</a>)</p>
<p>This release introduces constant folding for the <code>&lt; &gt;
&lt;= &gt;=</code> operators. The minifier will now replace these
operators with <code>true</code> or <code>false</code> when both sides
are compile-time numeric or string constants:</p>
<pre lang="js"><code>// Original code
console.log(1 &lt; 2, '🍕' &gt; '🧀')
<p>// Old output (with --minify)
console.log(1&lt;2,&quot;🍕&quot;&gt;&quot;🧀&quot;);</p>
<p>// New output (with --minify)
console.log(!0,!1);
</code></pre></p>
</li>
<li>
<p>Better handling of <code>__proto__</code> edge cases (<a
href="https://redirect.github.com/evanw/esbuild/pull/3651">#3651</a>)</p>
<p>JavaScript object literal syntax contains a special case where a
non-computed property with a key of <code>__proto__</code> sets the
prototype of the object. This does not apply to computed properties or
to properties that use the shorthand property syntax introduced in ES6.
Previously esbuild didn't correctly preserve the &quot;sets the
prototype&quot; status of properties inside an object literal, meaning a
property that sets the prototype could accidentally be transformed into
one that doesn't and vice versa. This has now been fixed:</p>
<pre lang="js"><code>// Original code
function foo(__proto__) {
</code></pre>
</li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/evanw/esbuild/commit/9f9e4f85e6e28a58727531458663afd157b8b415"><code>9f9e4f8</code></a>
publish 0.20.1 to npm</li>
<li><a
href="https://github.com/evanw/esbuild/commit/ac365374f9054493aa07530ae1fe8524d26cb617"><code>ac36537</code></a>
fix <a
href="https://redirect.github.com/evanw/esbuild/issues/3651">#3651</a>:
handle <code>__proto__</code> edge cases better</li>
<li><a
href="https://github.com/evanw/esbuild/commit/555db48d3ddf826ea12e40192dec7f0a542e7302"><code>555db48</code></a>
fix <a
href="https://redirect.github.com/evanw/esbuild/issues/3645">#3645</a>:
constant folding for <code>\&lt; &gt; \&lt;= &gt;=</code></li>
<li><a
href="https://github.com/evanw/esbuild/commit/5650831e1e45ca2fa39e8bf30182ab68e302db1e"><code>5650831</code></a>
fix <a
href="https://redirect.github.com/evanw/esbuild/issues/3650">#3650</a>:
add a wrapper for float64 math</li>
<li><a
href="https://github.com/evanw/esbuild/commit/d086889869b3ce4c01643cebfecf8a22d9ab3596"><code>d086889</code></a>
fix some lints</li>
<li><a
href="https://github.com/evanw/esbuild/commit/ad3d8c63eaf83e473e4ac22ec50ea5c8b10176d5"><code>ad3d8c6</code></a>
fix <a
href="https://redirect.github.com/evanw/esbuild/issues/3648">#3648</a>:
copy selectors before checking children</li>
<li><a
href="https://github.com/evanw/esbuild/commit/a08f30db4a475472aa09cd89e2279a822266f6c7"><code>a08f30d</code></a>
fix <a
href="https://redirect.github.com/evanw/esbuild/issues/3634">#3634</a>:
crash if resolving with bad source dir</li>
<li>See full diff in <a
href="https://github.com/evanw/esbuild/compare/v0.20.0...v0.20.1">compare
view</a></li>
</ul>
</details>
<br />


Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore <dependency name> major version` will close this
group update PR and stop Dependabot creating any more for the specific
dependency's major version (unless you unignore this specific
dependency's major version or upgrade to it yourself)
- `@dependabot ignore <dependency name> minor version` will close this
group update PR and stop Dependabot creating any more for the specific
dependency's minor version (unless you unignore this specific
dependency's minor version or upgrade to it yourself)
- `@dependabot ignore <dependency name>` will close this group update PR
and stop Dependabot creating any more for the specific dependency
(unless you unignore this specific dependency or upgrade to it yourself)
- `@dependabot unignore <dependency name>` will remove all of the ignore
conditions of the specified dependency
- `@dependabot unignore <dependency name> <ignore condition>` will
remove the ignore condition of the specified dependency and ignore
conditions


</details>

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Steve Ayers <[email protected]>
  • Loading branch information
dependabot[bot] and smaye81 authored Mar 1, 2024
1 parent ec07be3 commit 94d8f50
Show file tree
Hide file tree
Showing 8 changed files with 130 additions and 127 deletions.
4 changes: 2 additions & 2 deletions impl/ts-proto/gen/conformance/conformance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -773,7 +773,7 @@ export const JspbEncodingConfig = {
};

function bytesFromBase64(b64: string): Uint8Array {
if (globalThis.Buffer) {
if ((globalThis as any).Buffer) {
return Uint8Array.from(globalThis.Buffer.from(b64, "base64"));
} else {
const bin = globalThis.atob(b64);
Expand All @@ -786,7 +786,7 @@ function bytesFromBase64(b64: string): Uint8Array {
}

function base64FromBytes(arr: Uint8Array): string {
if (globalThis.Buffer) {
if ((globalThis as any).Buffer) {
return globalThis.Buffer.from(arr).toString("base64");
} else {
const bin: string[] = [];
Expand Down
4 changes: 2 additions & 2 deletions impl/ts-proto/gen/google/protobuf/any.ts
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ export const Any = {
};

function bytesFromBase64(b64: string): Uint8Array {
if (globalThis.Buffer) {
if ((globalThis as any).Buffer) {
return Uint8Array.from(globalThis.Buffer.from(b64, "base64"));
} else {
const bin = globalThis.atob(b64);
Expand All @@ -214,7 +214,7 @@ function bytesFromBase64(b64: string): Uint8Array {
}

function base64FromBytes(arr: Uint8Array): string {
if (globalThis.Buffer) {
if ((globalThis as any).Buffer) {
return globalThis.Buffer.from(arr).toString("base64");
} else {
const bin: string[] = [];
Expand Down
13 changes: 8 additions & 5 deletions impl/ts-proto/gen/google/protobuf/struct.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,19 +163,22 @@ export const Struct = {

wrap(object: { [key: string]: any } | undefined): Struct {
const struct = createBaseStruct();

if (object !== undefined) {
Object.keys(object).forEach((key) => {
for (const key of Object.keys(object)) {
struct.fields.set(key, object[key]);
});
}
}
return struct;
},

unwrap(message: Struct): { [key: string]: any } {
const object: { [key: string]: any } = {};
[...message.fields.keys()].forEach((key) => {
object[key] = message.fields.get(key);
});
if (message.fields) {
for (const key of message.fields.keys()) {
object[key] = message.fields.get(key);
}
}
return object;
},
};
Expand Down
4 changes: 2 additions & 2 deletions impl/ts-proto/gen/google/protobuf/test_messages_proto2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7171,7 +7171,7 @@ export const TestAllRequiredTypesProto2_MessageSetCorrectExtension2 = {
};

function bytesFromBase64(b64: string): Uint8Array {
if (globalThis.Buffer) {
if ((globalThis as any).Buffer) {
return Uint8Array.from(globalThis.Buffer.from(b64, "base64"));
} else {
const bin = globalThis.atob(b64);
Expand All @@ -7184,7 +7184,7 @@ function bytesFromBase64(b64: string): Uint8Array {
}

function base64FromBytes(arr: Uint8Array): string {
if (globalThis.Buffer) {
if ((globalThis as any).Buffer) {
return globalThis.Buffer.from(arr).toString("base64");
} else {
const bin: string[] = [];
Expand Down
4 changes: 2 additions & 2 deletions impl/ts-proto/gen/google/protobuf/test_messages_proto3.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5761,7 +5761,7 @@ export const EnumOnlyProto3 = {
};

function bytesFromBase64(b64: string): Uint8Array {
if (globalThis.Buffer) {
if ((globalThis as any).Buffer) {
return Uint8Array.from(globalThis.Buffer.from(b64, "base64"));
} else {
const bin = globalThis.atob(b64);
Expand All @@ -5774,7 +5774,7 @@ function bytesFromBase64(b64: string): Uint8Array {
}

function base64FromBytes(arr: Uint8Array): string {
if (globalThis.Buffer) {
if ((globalThis as any).Buffer) {
return globalThis.Buffer.from(arr).toString("base64");
} else {
const bin: string[] = [];
Expand Down
4 changes: 2 additions & 2 deletions impl/ts-proto/gen/google/protobuf/wrappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -608,7 +608,7 @@ export const BytesValue = {
};

function bytesFromBase64(b64: string): Uint8Array {
if (globalThis.Buffer) {
if ((globalThis as any).Buffer) {
return Uint8Array.from(globalThis.Buffer.from(b64, "base64"));
} else {
const bin = globalThis.atob(b64);
Expand All @@ -621,7 +621,7 @@ function bytesFromBase64(b64: string): Uint8Array {
}

function base64FromBytes(arr: Uint8Array): string {
if (globalThis.Buffer) {
if ((globalThis as any).Buffer) {
return globalThis.Buffer.from(arr).toString("base64");
} else {
const bin: string[] = [];
Expand Down
Loading

0 comments on commit 94d8f50

Please sign in to comment.