ts-proto 1.93.0 → 1.93.1
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/types.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [1.93.1](https://github.com/stephenh/ts-proto/compare/v1.93.0...v1.93.1) (2021-12-08)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* Unwrap google.protobuf.BytesValue to Buffer when env=node ([#439](https://github.com/stephenh/ts-proto/issues/439)) ([73aa836](https://github.com/stephenh/ts-proto/commit/73aa8368300818068f3cddc5f046d990c66ab4f2))
|
|
7
|
+
|
|
1
8
|
# [1.93.0](https://github.com/stephenh/ts-proto/compare/v1.92.2...v1.93.0) (2021-12-08)
|
|
2
9
|
|
|
3
10
|
|
package/build/types.js
CHANGED
|
@@ -411,7 +411,7 @@ function valueTypeName(ctx, typeName) {
|
|
|
411
411
|
case '.google.protobuf.BoolValue':
|
|
412
412
|
return ts_poet_1.code `boolean`;
|
|
413
413
|
case '.google.protobuf.BytesValue':
|
|
414
|
-
return ts_poet_1.code `Uint8Array`;
|
|
414
|
+
return ctx.options.env === options_1.EnvOption.NODE ? ts_poet_1.code `Buffer` : ts_poet_1.code `Uint8Array`;
|
|
415
415
|
case '.google.protobuf.ListValue':
|
|
416
416
|
return ts_poet_1.code `Array<any>`;
|
|
417
417
|
case '.google.protobuf.Value':
|