ts-proto 1.110.3 → 1.110.4
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/CHANGELOG.md +7 -0
- package/build/main.js +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [1.110.4](https://github.com/stephenh/ts-proto/compare/v1.110.3...v1.110.4) (2022-04-08)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* Use Uint8Array.forEach in base64FromBytes ([#544](https://github.com/stephenh/ts-proto/issues/544)) ([c7641ce](https://github.com/stephenh/ts-proto/commit/c7641ceb6a1c9da234245b9d808b2ded899dbbbc))
|
|
7
|
+
|
|
1
8
|
## [1.110.3](https://github.com/stephenh/ts-proto/compare/v1.110.2...v1.110.3) (2022-04-08)
|
|
2
9
|
|
|
3
10
|
|
package/build/main.js
CHANGED
|
@@ -290,9 +290,9 @@ function makeByteUtils() {
|
|
|
290
290
|
const btoa : (bin: string) => string = ${globalThis}.btoa || ((bin) => ${globalThis}.Buffer.from(bin, 'binary').toString('base64'));
|
|
291
291
|
function base64FromBytes(arr: Uint8Array): string {
|
|
292
292
|
const bin: string[] = [];
|
|
293
|
-
|
|
293
|
+
arr.forEach((byte) => {
|
|
294
294
|
bin.push(String.fromCharCode(byte));
|
|
295
|
-
}
|
|
295
|
+
});
|
|
296
296
|
return btoa(bin.join(''));
|
|
297
297
|
}
|
|
298
298
|
`);
|