ts-proto 1.159.2 → 1.159.3
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/main.js +1 -1
- package/package.json +1 -1
package/build/main.js
CHANGED
|
@@ -1669,7 +1669,7 @@ function generateToJson(ctx, fullName, fullProtobufTypeName, messageDesc) {
|
|
|
1669
1669
|
return (0, ts_poet_1.code) `${from}`;
|
|
1670
1670
|
}
|
|
1671
1671
|
else if ((0, types_1.isTimestamp)(field) && options.useDate === options_1.DateOption.TIMESTAMP) {
|
|
1672
|
-
return (0, ts_poet_1.code) `${
|
|
1672
|
+
return (0, ts_poet_1.code) `${from}`;
|
|
1673
1673
|
}
|
|
1674
1674
|
else if ((0, types_1.isMapType)(ctx, messageDesc, field)) {
|
|
1675
1675
|
// For map types, drill-in and then admittedly re-hard-code our per-value-type logic
|