ts-proto 2.11.8 → 2.11.9

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.
@@ -178,7 +178,7 @@ function getExtensionValue(ctx, extension, data) {
178
178
  const reader = new wire_1.BinaryReader(data[0]);
179
179
  let value = reader[(0, types_1.toReaderCall)(extension)]();
180
180
  if (typeof value === "string") {
181
- value = (0, ts_poet_1.code) `"${value}"`;
181
+ value = JSON.stringify(value);
182
182
  }
183
183
  return (0, ts_poet_1.code) `'${extension.name}': ${value}`;
184
184
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ts-proto",
3
- "version": "2.11.8",
3
+ "version": "2.11.9",
4
4
  "description": "",
5
5
  "main": "build/src/plugin.js",
6
6
  "repository": "github:stephenh/ts-proto",