ts-proto 1.167.6 → 1.167.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/main.js +3 -3
- package/package.json +1 -1
package/build/main.js
CHANGED
|
@@ -393,8 +393,8 @@ function makeByteUtils(options) {
|
|
|
393
393
|
return bytesFromBase64BrowserSnippet;
|
|
394
394
|
default:
|
|
395
395
|
return (0, ts_poet_1.code) `
|
|
396
|
-
|
|
397
|
-
|
|
396
|
+
if ((${globalThis} as any).Buffer) {
|
|
397
|
+
${bytesFromBase64NodeSnippet}
|
|
398
398
|
} else {
|
|
399
399
|
${bytesFromBase64BrowserSnippet}
|
|
400
400
|
}
|
|
@@ -424,7 +424,7 @@ function makeByteUtils(options) {
|
|
|
424
424
|
return base64FromBytesBrowserSnippet;
|
|
425
425
|
default:
|
|
426
426
|
return (0, ts_poet_1.code) `
|
|
427
|
-
if (${globalThis}.Buffer) {
|
|
427
|
+
if ((${globalThis} as any).Buffer) {
|
|
428
428
|
${base64FromBytesNodeSnippet}
|
|
429
429
|
} else {
|
|
430
430
|
${base64FromBytesBrowserSnippet}
|