@dxos/protobuf-compiler 0.6.7 → 0.6.8-main.3be982f
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/dist/src/generator/declaration-generator.d.ts.map +1 -1
- package/dist/src/generator/declaration-generator.js +2 -2
- package/dist/src/generator/declaration-generator.js.map +1 -1
- package/dist/src/generator/doc-comment.d.ts.map +1 -1
- package/dist/src/generator/enum.d.ts.map +1 -1
- package/dist/src/generator/field.d.ts.map +1 -1
- package/dist/src/generator/file-generator.d.ts.map +1 -1
- package/dist/src/generator/message.d.ts.map +1 -1
- package/dist/src/generator/serializer-definition-generator.d.ts.map +1 -1
- package/dist/src/generator/service.d.ts.map +1 -1
- package/dist/src/generator/types.d.ts.map +1 -1
- package/dist/src/namespaces.d.ts.map +1 -1
- package/dist/src/parser/resolver.js +2 -2
- package/dist/src/parser/resolver.js.map +1 -1
- package/dist/src/protobuf-json.d.ts.map +1 -1
- package/dist/test/proto/substitutions.d.ts +2 -4
- package/dist/test/proto/substitutions.d.ts.map +1 -1
- package/package.json +7 -7
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"declaration-generator.d.ts","sourceRoot":"","sources":["../../../src/generator/declaration-generator.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,UAAU,MAAM,YAAY,CAAC;AACzC,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAEjC,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,WAAW,CAAC;AASlD,wBAAiB,kBAAkB,CACjC,KAAK,EAAE,UAAU,CAAC,gBAAgB,EAAE,EACpC,GAAG,EAAE,gBAAgB,GACpB,SAAS,CAAC,EAAE,CAAC,SAAS,CAAC,CAsBzB;AAeD,eAAO,MAAM,oBAAoB,SAAU,
|
|
1
|
+
{"version":3,"file":"declaration-generator.d.ts","sourceRoot":"","sources":["../../../src/generator/declaration-generator.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,UAAU,MAAM,YAAY,CAAC;AACzC,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAEjC,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,WAAW,CAAC;AASlD,wBAAiB,kBAAkB,CACjC,KAAK,EAAE,UAAU,CAAC,gBAAgB,EAAE,EACpC,GAAG,EAAE,gBAAgB,GACpB,SAAS,CAAC,EAAE,CAAC,SAAS,CAAC,CAsBzB;AAeD,eAAO,MAAM,oBAAoB,SAAU,UAAU,CAAC,aAAa,4BAgBhE,CAAC"}
|
|
@@ -26,7 +26,8 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
26
26
|
return result;
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.createTypeDictionary =
|
|
29
|
+
exports.createTypeDictionary = void 0;
|
|
30
|
+
exports.createDeclarations = createDeclarations;
|
|
30
31
|
const protobufjs = __importStar(require("protobufjs"));
|
|
31
32
|
const ts = __importStar(require("typescript"));
|
|
32
33
|
const enum_1 = require("./enum");
|
|
@@ -55,7 +56,6 @@ function* createDeclarations(types, ctx) {
|
|
|
55
56
|
}
|
|
56
57
|
}
|
|
57
58
|
}
|
|
58
|
-
exports.createDeclarations = createDeclarations;
|
|
59
59
|
function* getRegisteredTypes(root) {
|
|
60
60
|
for (const obj of root.nestedArray) {
|
|
61
61
|
if (obj instanceof protobufjs.Enum) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"declaration-generator.js","sourceRoot":"","sources":["../../../src/generator/declaration-generator.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"declaration-generator.js","sourceRoot":"","sources":["../../../src/generator/declaration-generator.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;AAcF,gDAyBC;AArCD,uDAAyC;AAC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../src/generator/doc-comment.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,YAAY,CAAC;AAE5B,eAAO,MAAM,gBAAgB,
|
|
1
|
+
{"version":3,"file":"doc-comment.d.ts","sourceRoot":"","sources":["../../../src/generator/doc-comment.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,YAAY,CAAC;AAE5B,eAAO,MAAM,gBAAgB,GAAI,CAAC,SAAS,EAAE,CAAC,IAAI,QAAQ,CAAC,WAAW,MAAM,KAAG,CAS5E,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enum.d.ts","sourceRoot":"","sources":["../../../src/generator/enum.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,KAAK,UAAU,MAAM,YAAY,CAAC;AAC9C,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAEjC,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAKlD,eAAO,MAAM,qBAAqB,SAAU,
|
|
1
|
+
{"version":3,"file":"enum.d.ts","sourceRoot":"","sources":["../../../src/generator/enum.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,KAAK,UAAU,MAAM,YAAY,CAAC;AAC9C,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAEjC,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAKlD,eAAO,MAAM,qBAAqB,SAAU,UAAU,CAAC,IAAI,OAAO,gBAAgB,uBAiBjF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"field.d.ts","sourceRoot":"","sources":["../../../src/generator/field.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,UAAU,MAAM,YAAY,CAAC;AACzC,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAKjC,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAIlD,eAAO,MAAM,YAAY,UAAW,
|
|
1
|
+
{"version":3,"file":"field.d.ts","sourceRoot":"","sources":["../../../src/generator/field.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,UAAU,MAAM,YAAY,CAAC;AACzC,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAKjC,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAIlD,eAAO,MAAM,YAAY,UAAW,UAAU,CAAC,KAAK,QAAQ,gBAAgB,KAAG,EAAE,CAAC,QAajF,CAAC;AAEF,eAAO,MAAM,kBAAkB,UAAW,UAAU,CAAC,KAAK,QAAQ,gBAAgB,KAAG,EAAE,CAAC,QAIvF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"file-generator.d.ts","sourceRoot":"","sources":["../../../src/generator/file-generator.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AACjC,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAMjC,OAAO,EAAgB,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAEpE,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAYlD,eAAO,MAAM,yBAAyB,UAC7B,
|
|
1
|
+
{"version":3,"file":"file-generator.d.ts","sourceRoot":"","sources":["../../../src/generator/file-generator.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AACjC,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAMjC,OAAO,EAAgB,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAEpE,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAYlD,eAAO,MAAM,yBAAyB,UAC7B,EAAE,CAAC,gBAAgB,EAAE,iBACb,gBAAgB,UACvB,MAAM,aACH,MAAM,uBACI,eAAe,GAAG,SAAS,mBAC/B,MAAM,EAAE,kBA4B1B,CAAC;AAEF,eAAO,MAAM,qBAAqB,wBACX,eAAe,GAAG,SAAS,QAC1C,EAAE,CAAC,IAAI,cACD,MAAM,cACN,MAAM,EAAE,YACV,OAAO,kBAwBlB,CAAC;AAmBF,eAAO,MAAM,uBAAuB,cAAe,MAAM,WAGxD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"message.d.ts","sourceRoot":"","sources":["../../../src/generator/message.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,KAAK,UAAU,MAAM,YAAY,CAAC;AAC9C,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAEjC,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAMlD;;GAEG;AACH,eAAO,MAAM,wBAAwB,SAAU,
|
|
1
|
+
{"version":3,"file":"message.d.ts","sourceRoot":"","sources":["../../../src/generator/message.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,KAAK,UAAU,MAAM,YAAY,CAAC;AAC9C,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAEjC,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAMlD;;GAEG;AACH,eAAO,MAAM,wBAAwB,SAAU,UAAU,CAAC,IAAI,OAAO,gBAAgB,4BAgCpF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"serializer-definition-generator.d.ts","sourceRoot":"","sources":["../../../src/generator/serializer-definition-generator.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,UAAU,MAAM,YAAY,CAAC;AACzC,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAIjC,OAAO,EAAgB,KAAK,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAKzE,eAAO,MAAM,0BAA0B,wBAChB,eAAe,GAAG,SAAS,QAC1C,
|
|
1
|
+
{"version":3,"file":"serializer-definition-generator.d.ts","sourceRoot":"","sources":["../../../src/generator/serializer-definition-generator.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,UAAU,MAAM,YAAY,CAAC;AACzC,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAIjC,OAAO,EAAgB,KAAK,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAKzE,eAAO,MAAM,0BAA0B,wBAChB,eAAe,GAAG,SAAS,QAC1C,UAAU,CAAC,IAAI,cACT,MAAM,YACR,OAAO,KAChB;IAAE,OAAO,EAAE,EAAE,CAAC,SAAS,EAAE,CAAC;IAAC,OAAO,EAAE,EAAE,CAAC,SAAS,EAAE,CAAA;CAsEpD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../../../src/generator/service.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,UAAU,MAAM,YAAY,CAAC;AACzC,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAIjC,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,WAAW,CAAC;AA4ClD,eAAO,MAAM,wBAAwB,SAAU,
|
|
1
|
+
{"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../../../src/generator/service.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,UAAU,MAAM,YAAY,CAAC;AACzC,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAIjC,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,WAAW,CAAC;AA4ClD,eAAO,MAAM,wBAAwB,SAAU,UAAU,CAAC,OAAO,OAAO,gBAAgB,KAAG,EAAE,CAAC,oBA8B7F,CAAC;AAaF,eAAO,MAAM,wBAAwB,SAAU,UAAU,CAAC,aAAa,4BAgBpE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/generator/types.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,KAAK,UAAU,MAAM,YAAY,CAAC;AAC9C,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAUjC,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAoDlD,KAAK,MAAM,GAAG,UAAU,CAAC,IAAI,GAAG,UAAU,CAAC,IAAI,GAAG,MAAM,CAAC;AAEzD,eAAO,MAAM,KAAK,SAAU,MAAM,oBAAoB,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/generator/types.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,KAAK,UAAU,MAAM,YAAY,CAAC;AAC9C,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAUjC,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAoDlD,KAAK,MAAM,GAAG,UAAU,CAAC,IAAI,GAAG,UAAU,CAAC,IAAI,GAAG,MAAM,CAAC;AAEzD,eAAO,MAAM,KAAK,SAAU,MAAM,oBAAoB,UAAU,CAAC,gBAAgB,QAAQ,gBAAgB,gBAUxG,CAAC;AAEF,eAAO,MAAM,gBAAgB,OAAQ,UAAU,CAAC,gBAAgB,SAAS,UAAU,CAAC,gBAAgB,yBAWnG,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"namespaces.d.ts","sourceRoot":"","sources":["../../src/namespaces.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AACjC,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAMjC,MAAM,MAAM,mBAAmB,GAAG,MAAM,EAAE,CAAC;AAE3C,eAAO,MAAM,qBAAqB,SAAU,
|
|
1
|
+
{"version":3,"file":"namespaces.d.ts","sourceRoot":"","sources":["../../src/namespaces.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AACjC,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAMjC,MAAM,MAAM,mBAAmB,GAAG,MAAM,EAAE,CAAC;AAE3C,eAAO,MAAM,qBAAqB,SAAU,EAAE,CAAC,gBAAgB,KAAG,mBAMjE,CAAC;AAEF,eAAO,MAAM,MAAM,QAAS,EAAE,CAAC,gBAAgB,KAAG,GAAG,IAAI,EAAE,CAAC,IAAI,GAAG,EAAE,CAAC,IAAI,GAAG,EAAE,CAAC,OACD,CAAC;AAEhF,eAAO,MAAM,gBAAgB,SAAU,EAAE,CAAC,gBAAgB,KAAG,mBAU5D,CAAC;AAEF,eAAO,MAAM,eAAe,WAAY,mBAAmB,QAAQ,mBAAmB,KAAG,mBASxF,CAAC;AAEF,eAAO,MAAM,uBAAuB,SAAU,mBAAmB,KAAG,EAAE,CAAC,aAAa,GAAG,EAAE,CAAC,UAMzF,CAAC;AAEF,eAAO,MAAM,2BAA2B,SAAU,mBAAmB,WAAmB,CAAC;AAEzF,eAAO,MAAM,2BAA2B,SAAU,MAAM,WAMvD,CAAC;AAEF,eAAO,MAAM,uBAAuB,SAAU,MAAM,KAAG,mBAGtD,CAAC;AAEF,eAAO,MAAM,UAAU,MAAO,mBAAmB,KAAK,mBAAmB,YACd,CAAC;AAE5D,eAAO,MAAM,0BAA0B,SAAU,mBAAmB,WAAmB,CAAC;AAExF,eAAO,MAAM,yBAAyB,SAAU,EAAE,CAAC,SAAS,KAAG,GAAG,CAAC,MAAM,EAAE,EAAE,CAAC,gBAAgB,EAAE,CAuB/F,CAAC"}
|
|
@@ -6,7 +6,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
6
6
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
7
7
|
};
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
exports.registerResolver =
|
|
9
|
+
exports.registerResolver = void 0;
|
|
10
|
+
exports.createProtoResolver = createProtoResolver;
|
|
10
11
|
const fs_1 = require("fs");
|
|
11
12
|
const path_1 = require("path");
|
|
12
13
|
const protobufjs_1 = __importDefault(require("protobufjs"));
|
|
@@ -46,7 +47,6 @@ function createProtoResolver(original, baseDir) {
|
|
|
46
47
|
}
|
|
47
48
|
};
|
|
48
49
|
}
|
|
49
|
-
exports.createProtoResolver = createProtoResolver;
|
|
50
50
|
const registerResolver = (baseDir) => {
|
|
51
51
|
protobufjs_1.default.Root.prototype.resolvePath = createProtoResolver(protobufjs_1.default.Root.prototype.resolvePath, baseDir);
|
|
52
52
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resolver.js","sourceRoot":"","sources":["../../../src/parser/resolver.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;;;;
|
|
1
|
+
{"version":3,"file":"resolver.js","sourceRoot":"","sources":["../../../src/parser/resolver.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;;;;AAWF,kDAiCC;AA1CD,2BAAgC;AAChC,+BAA+C;AAC/C,4DAA4B;AAI5B;;GAEG;AACH,SAAgB,mBAAmB,CAAC,QAAuB,EAAE,OAAgB;IAC3E,6CAA6C;IAC7C,OAAO,UAAqB,MAAM,EAAE,MAAM;QACxC,mDAAmD;QACnD,MAAM,eAAe,GAAG,QAAQ,CAAC,IAAI,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;QAC5D,IAAI,eAAe,IAAI,IAAA,eAAU,EAAC,eAAe,CAAC,EAAE,CAAC;YACnD,OAAO,eAAe,CAAC;QACzB,CAAC;QAED,IAAI,CAAC;YACH,8BAA8B;YAC9B,8DAA8D;YAC9D,MAAM,MAAM,GAAG,OAAO,CAAC,IAAA,WAAI,EAAC,MAAM,EAAE,cAAc,CAAC,CAAC,CAAC;YACrD,IAAI,OAAO,MAAM,CAAC,QAAQ,KAAK,QAAQ,EAAE,CAAC;gBACxC,MAAM,IAAI,KAAK,CAAC,YAAY,MAAM,oCAAoC,CAAC,CAAC;YAC1E,CAAC;YAED,OAAO,OAAO,CAAC,OAAO,CAAC,IAAA,WAAI,EAAC,MAAM,EAAE,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC;QACxD,CAAC;QAAC,WAAM,CAAC;YACP,oEAAoE;YACpE,IAAI,MAAM,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE,CAAC;gBAC5B,OAAO,OAAO,CAAC,OAAO,CAAC,MAAM,EAAE,EAAE,KAAK,EAAE,CAAC,IAAA,cAAO,EAAC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC;YAC/D,CAAC;iBAAM,CAAC;gBACN,uBAAuB;gBACvB,IAAI,CAAC,OAAO,EAAE,CAAC;oBACb,MAAM,IAAI,KAAK,CAAC,gDAAgD,CAAC,CAAC;gBACpE,CAAC;gBAED,MAAM,GAAG,GAAG,IAAA,WAAI,EAAC,OAAO,EAAE,IAAA,cAAO,EAAC,MAAM,CAAC,CAAC,CAAC;gBAC3C,OAAO,OAAO,CAAC,OAAO,CAAC,KAAK,IAAA,eAAQ,EAAC,MAAM,CAAC,EAAE,EAAE,EAAE,KAAK,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;YACpE,CAAC;QACH,CAAC;IACH,CAAC,CAAC;AACJ,CAAC;AAEM,MAAM,gBAAgB,GAAG,CAAC,OAAgB,EAAE,EAAE;IACnD,oBAAE,CAAC,IAAI,CAAC,SAAS,CAAC,WAAW,GAAG,mBAAmB,CAAC,oBAAE,CAAC,IAAI,CAAC,SAAS,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;AAC9F,CAAC,CAAC;AAFW,QAAA,gBAAgB,oBAE3B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"protobuf-json.d.ts","sourceRoot":"","sources":["../../src/protobuf-json.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,QAAQ,MAAM,YAAY,CAAC;AAwBvC,eAAO,MAAM,qBAAqB,SAAU,
|
|
1
|
+
{"version":3,"file":"protobuf-json.d.ts","sourceRoot":"","sources":["../../src/protobuf-json.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,QAAQ,MAAM,YAAY,CAAC;AAwBvC,eAAO,MAAM,qBAAqB,SAAU,QAAQ,CAAC,IAAI,KAAG,GACE,CAAC"}
|
|
@@ -16,10 +16,8 @@ declare const _default: {
|
|
|
16
16
|
decode: (value: any) => Date;
|
|
17
17
|
};
|
|
18
18
|
'google.protobuf.Any': {
|
|
19
|
-
encode: (value: {
|
|
20
|
-
|
|
21
|
-
}, context: import("@dxos/codec-protobuf").TypeMapperContext, schema: import("@dxos/codec-protobuf").Schema<any, {}>, options: import("@dxos/codec-protobuf").EncodingOptions) => any;
|
|
22
|
-
decode: (value: any, context: import("@dxos/codec-protobuf").TypeMapperContext, schema: import("@dxos/codec-protobuf").Schema<any, {}>, options: import("@dxos/codec-protobuf").EncodingOptions) => any;
|
|
19
|
+
encode: (value: import("@dxos/codec-protobuf").WithTypeUrl<{}>, context: import("@dxos/codec-protobuf").TypeMapperContext, schema: import("@dxos/codec-protobuf").Schema<any>, options: import("@dxos/codec-protobuf").EncodingOptions) => any;
|
|
20
|
+
decode: (value: any, context: import("@dxos/codec-protobuf").TypeMapperContext, schema: import("@dxos/codec-protobuf").Schema<any>, options: import("@dxos/codec-protobuf").EncodingOptions) => import("@dxos/codec-protobuf").WithTypeUrl<any>;
|
|
23
21
|
};
|
|
24
22
|
};
|
|
25
23
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"substitutions.d.ts","sourceRoot":"","sources":["../../../test/proto/substitutions.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,iBAAiB,CAAC;AAC/D,OAAO,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;;;wBAMd,KAAK;;;wBACL,GAAG;;;wBAGH,uBAAuB;wBACvB,GAAG,KAAG,uBAAuB
|
|
1
|
+
{"version":3,"file":"substitutions.d.ts","sourceRoot":"","sources":["../../../test/proto/substitutions.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,iBAAiB,CAAC;AAC/D,OAAO,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;;;wBAMd,KAAK;;;wBACL,GAAG;;;wBAGH,uBAAuB;wBACvB,GAAG,KAAG,uBAAuB;;;;;;;;;;;AATjD,wBAWE"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/protobuf-compiler",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.8-main.3be982f",
|
|
4
4
|
"homepage": "https://dxos.org",
|
|
5
5
|
"bugs": "https://github.com/dxos/dxos/issues",
|
|
6
6
|
"license": "MIT",
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
"protobufjs": "^7.2.5",
|
|
22
22
|
"read-pkg": "^5.2.0",
|
|
23
23
|
"ts-morph": "^16.0.0",
|
|
24
|
-
"@dxos/
|
|
25
|
-
"@dxos/
|
|
26
|
-
"@dxos/
|
|
24
|
+
"@dxos/invariant": "0.6.8-main.3be982f",
|
|
25
|
+
"@dxos/log": "0.6.8-main.3be982f",
|
|
26
|
+
"@dxos/node-std": "0.6.8-main.3be982f"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@swc-node/register": "1.9.1",
|
|
@@ -31,9 +31,9 @@
|
|
|
31
31
|
"@types/glob": "~7.1.3",
|
|
32
32
|
"@types/node": "^18.11.9",
|
|
33
33
|
"ts-node": "10.9.1",
|
|
34
|
-
"typescript": "^5.4
|
|
35
|
-
"@dxos/protobuf
|
|
36
|
-
"@dxos/
|
|
34
|
+
"typescript": "^5.5.4",
|
|
35
|
+
"@dxos/codec-protobuf": "0.6.8-main.3be982f",
|
|
36
|
+
"@dxos/protobuf-test": "0.6.8-main.3be982f"
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
39
39
|
"typescript": "^5.2.2"
|