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.
- package/build/src/schema.js +1 -1
- package/package.json +1 -1
package/build/src/schema.js
CHANGED
|
@@ -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 = (
|
|
181
|
+
value = JSON.stringify(value);
|
|
182
182
|
}
|
|
183
183
|
return (0, ts_poet_1.code) `'${extension.name}': ${value}`;
|
|
184
184
|
}
|