ts-proto 1.104.1 → 1.105.0
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/schema.js +2 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
# [1.105.0](https://github.com/stephenh/ts-proto/compare/v1.104.1...v1.105.0) (2022-02-12)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* Bump ts-proto-descriptors. ([#489](https://github.com/stephenh/ts-proto/issues/489)) ([d454448](https://github.com/stephenh/ts-proto/commit/d454448b1889b1576c1ebcc6964a55a03af7d921)), closes [#493](https://github.com/stephenh/ts-proto/issues/493)
|
|
7
|
+
|
|
1
8
|
## [1.104.1](https://github.com/stephenh/ts-proto/compare/v1.104.0...v1.104.1) (2022-02-12)
|
|
2
9
|
|
|
3
10
|
|
package/build/schema.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.generateSchema = void 0;
|
|
4
|
+
const ts_proto_descriptors_1 = require("ts-proto-descriptors");
|
|
4
5
|
const ts_poet_1 = require("ts-poet");
|
|
5
6
|
const visit_1 = require("./visit");
|
|
6
7
|
const utils_1 = require("./utils");
|
|
@@ -36,7 +37,7 @@ function generateSchema(ctx, fileDesc, sourceInfo) {
|
|
|
36
37
|
return ts_poet_1.code `${ts_poet_1.imp(`protoMetadata@./${dep.replace('.proto', '')}`)}`;
|
|
37
38
|
});
|
|
38
39
|
// Use toObject so that we get enums as numbers (instead of the default toJSON behavior)
|
|
39
|
-
const descriptor =
|
|
40
|
+
const descriptor = ts_proto_descriptors_1.FileDescriptorProto.fromPartial(fileDesc);
|
|
40
41
|
// Only keep locations that include comments
|
|
41
42
|
descriptor.sourceCodeInfo = {
|
|
42
43
|
location: ((_a = descriptor.sourceCodeInfo) === null || _a === void 0 ? void 0 : _a.location.filter((loc) => loc['leadingComments'] || loc['trailingComments'])) || [],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ts-proto",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.105.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "build/plugin.js",
|
|
6
6
|
"repository": "github:stephenh/ts-proto",
|
|
@@ -64,6 +64,6 @@
|
|
|
64
64
|
"object-hash": "^1.3.1",
|
|
65
65
|
"protobufjs": "^6.8.8",
|
|
66
66
|
"ts-poet": "^4.5.0",
|
|
67
|
-
"ts-proto-descriptors": "1.
|
|
67
|
+
"ts-proto-descriptors": "1.6.0"
|
|
68
68
|
}
|
|
69
69
|
}
|