@tabnas/proto 0.4.3 → 0.4.5
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/proto.d.ts +1 -1
- package/dist/proto.js +1 -1
- package/package.json +6 -2
- package/src/proto.ts +1 -1
package/dist/proto.d.ts
CHANGED
|
@@ -14,7 +14,7 @@ declare const Proto: {
|
|
|
14
14
|
};
|
|
15
15
|
declare function toDescriptor(cst: any, options?: Partial<ProtoOptions>): FileDescriptorProto;
|
|
16
16
|
declare function parse(src: string, options?: Partial<ProtoOptions>): FileDescriptorProto;
|
|
17
|
-
declare const VERSION = "0.4.
|
|
17
|
+
declare const VERSION = "0.4.5";
|
|
18
18
|
export { Proto, parse, toDescriptor, VERSION };
|
|
19
19
|
export type { ProtoVersion };
|
|
20
20
|
export * from './descriptor';
|
package/dist/proto.js
CHANGED
|
@@ -63,7 +63,7 @@ function parse(src, options) {
|
|
|
63
63
|
// VERSION is this package's version. It MUST equal package.json "version":
|
|
64
64
|
// the release orchestrator rewrites both, and test/version.test.ts fails the
|
|
65
65
|
// build if they drift. Mirrors `const VERSION` in go/proto.go.
|
|
66
|
-
const VERSION = '0.4.
|
|
66
|
+
const VERSION = '0.4.5';
|
|
67
67
|
exports.VERSION = VERSION;
|
|
68
68
|
__exportStar(require("./descriptor"), exports);
|
|
69
69
|
//# sourceMappingURL=proto.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tabnas/proto",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.5",
|
|
4
4
|
"description": "Parse Protocol Buffers .proto IDL (proto2, proto3, edition 2023/2024) into FileDescriptorProto-shaped JSON, using the Tabnas parser and an ABNF grammar.",
|
|
5
5
|
"main": "dist/proto.js",
|
|
6
6
|
"type": "commonjs",
|
|
@@ -25,14 +25,18 @@
|
|
|
25
25
|
"directory": "ts"
|
|
26
26
|
},
|
|
27
27
|
"scripts": {
|
|
28
|
+
"pretest": "npm run build",
|
|
28
29
|
"test": "node --enable-source-maps --test \"dist-test/*.test.js\"",
|
|
30
|
+
"pretest-some": "npm run build",
|
|
29
31
|
"test-some": "node --enable-source-maps --test-name-pattern=\"$npm_config_pattern\" --test \"dist-test/*.test.js\"",
|
|
32
|
+
"pretest-watch": "npm run build",
|
|
30
33
|
"test-watch": "node --test --watch dist-test/proto.test.js",
|
|
31
34
|
"embed": "node embed-grammar.js",
|
|
32
35
|
"example": "node examples/wire-poc/demo.js",
|
|
36
|
+
"preexample-test": "npm run build",
|
|
33
37
|
"example-test": "node --test examples/wire-poc/codec.test.js",
|
|
34
38
|
"watch": "tsc --build src test -w",
|
|
35
|
-
"build": "node embed-grammar.js && tsc --build src test",
|
|
39
|
+
"build": "node embed-grammar.js && node prune-dist-test.js && tsc --build src test",
|
|
36
40
|
"clean": "rm -rf node_modules dist dist-test yarn.lock package-lock.json",
|
|
37
41
|
"reset": "npm run clean && npm i && npm run build && npm test",
|
|
38
42
|
"repo-tag": "REPO_VERSION=`node -e \"console.log(require('./package').version)\"` && echo TAG: ts/v$REPO_VERSION && git commit -a -m v$REPO_VERSION && git push && git tag ts/v$REPO_VERSION && git push origin ts/v$REPO_VERSION;",
|
package/src/proto.ts
CHANGED
|
@@ -68,7 +68,7 @@ function parse(src: string, options?: Partial<ProtoOptions>): FileDescriptorProt
|
|
|
68
68
|
// VERSION is this package's version. It MUST equal package.json "version":
|
|
69
69
|
// the release orchestrator rewrites both, and test/version.test.ts fails the
|
|
70
70
|
// build if they drift. Mirrors `const VERSION` in go/proto.go.
|
|
71
|
-
const VERSION = '0.4.
|
|
71
|
+
const VERSION = '0.4.5'
|
|
72
72
|
|
|
73
73
|
export { Proto, parse, toDescriptor, VERSION }
|
|
74
74
|
export type { ProtoVersion }
|