ts-proto 1.126.0 → 1.126.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/options.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [1.126.1](https://github.com/stephenh/ts-proto/compare/v1.126.0...v1.126.1) (2022-09-21)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **options:** initializes M opt to empty object ([#673](https://github.com/stephenh/ts-proto/issues/673)) ([cb76c5e](https://github.com/stephenh/ts-proto/commit/cb76c5ea565081d610be08451e452269c5d3837c))
|
|
7
|
+
|
|
1
8
|
# [1.126.0](https://github.com/stephenh/ts-proto/compare/v1.125.0...v1.126.0) (2022-09-21)
|
|
2
9
|
|
|
3
10
|
|
package/build/options.js
CHANGED
|
@@ -157,7 +157,7 @@ function optionsFromParameter(parameter) {
|
|
|
157
157
|
exports.optionsFromParameter = optionsFromParameter;
|
|
158
158
|
// A very naive parse function, eventually could/should use iots/runtypes
|
|
159
159
|
function parseParameter(parameter) {
|
|
160
|
-
const options = {};
|
|
160
|
+
const options = { M: {} };
|
|
161
161
|
parameter.split(",").forEach((param) => {
|
|
162
162
|
// same as protoc-gen-go https://github.com/protocolbuffers/protobuf-go/blob/bf9455640daabb98c93b5b5e71628f3f813d57bb/compiler/protogen/protogen.go#L168-L171
|
|
163
163
|
const optionSeparatorPos = param.indexOf("=");
|