@tabnas/proto 0.6.10 → 0.6.11
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/dist/translate.js +2 -1
- package/dist/translate.js.map +1 -1
- package/package.json +1 -1
- package/src/proto.ts +1 -1
- package/src/translate.ts +2 -1
package/dist/proto.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ declare const Proto: {
|
|
|
12
12
|
};
|
|
13
13
|
declare function toDescriptor(cst: any, options?: Partial<ProtoOptions>): FileDescriptorProto;
|
|
14
14
|
declare function parse(src: string, options?: Partial<ProtoOptions>): FileDescriptorProto;
|
|
15
|
-
declare const VERSION = "0.6.
|
|
15
|
+
declare const VERSION = "0.6.11";
|
|
16
16
|
export { Proto, parse, toDescriptor, preflight, MAX_NESTING_DEPTH, VERSION };
|
|
17
17
|
export type { ProtoVersion };
|
|
18
18
|
export * from './descriptor';
|
package/dist/proto.js
CHANGED
|
@@ -88,7 +88,7 @@ function parse(src, options) {
|
|
|
88
88
|
// VERSION is this package's version. It MUST equal package.json "version":
|
|
89
89
|
// the release orchestrator rewrites both, and test/version.test.ts fails the
|
|
90
90
|
// build if they drift. Mirrors `const VERSION` in go/proto.go.
|
|
91
|
-
const VERSION = '0.6.
|
|
91
|
+
const VERSION = '0.6.11';
|
|
92
92
|
exports.VERSION = VERSION;
|
|
93
93
|
__exportStar(require("./descriptor"), exports);
|
|
94
94
|
var translate_1 = require("./translate");
|
package/dist/translate.js
CHANGED
|
@@ -47,7 +47,8 @@ const TRANSLATION = Object.freeze({
|
|
|
47
47
|
"An option's value is one string to the descriptor whether the file wrote it as an identifier, a string literal or an aggregate in braces, so it is written as a string literal, as the backtick string it is where it is one, as an aggregate only where neither can hold its text (a line break, or both quotes unescaped), and as an identifier for the options descriptor.proto types as enums (optimize_for, ctype, jstype, retention, targets, idempotency_level and the features) when its text is made of identifier characters; protoc reads an enum-valued or message-valued option written as a literal as a string, and a quoted value of such an option that begins with a digit, which protoc refuses, does not read back; a value no literal or backtick string holds that is no aggregate's body, which no file's descriptor holds, is written in braces too and does not read back; and a value holding a control character that no literal, backtick string or aggregate holds is refused.",
|
|
48
48
|
"A default is written bare for a field that is not a string or bytes when its text is made of a constant's characters, and as a string literal otherwise; a quoted default of such a field whose text is made of those characters but spells no one constant, which protoc refuses, does not read back.",
|
|
49
49
|
"Reserved names are written as string literals in a proto2 or proto3 file and as identifiers in an edition file, a message's or an enum's reserved ranges in one reserved statement and its names in another, each extension range in an extensions statement of its own with its options, and each extension in an extend block of its own."
|
|
50
|
-
]
|
|
50
|
+
],
|
|
51
|
+
"whole": "A file's descriptor gathers its imports, messages, enums, services and extensions into a list of each kind, which a declaration anywhere in the file adds to, so a document's tree is complete only at its end: it is read whole before anything is written."
|
|
51
52
|
}
|
|
52
53
|
}
|
|
53
54
|
`,
|
package/dist/translate.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"translate.js","sourceRoot":"","sources":["../src/translate.ts"],"names":[],"mappings":";AAAA,2EAA2E;;
|
|
1
|
+
{"version":3,"file":"translate.js","sourceRoot":"","sources":["../src/translate.ts"],"names":[],"mappings":";AAAA,2EAA2E;;QA4pCzE,SAAS;AA3oCX,MAAM,WAAW,GAAqB,MAAM,CAAC,MAAM,CAAC;IAClD,QAAQ,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgDX;IACC,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,cAAc,EAAE,MAAM,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tabnas/proto",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.11",
|
|
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",
|
package/src/proto.ts
CHANGED
|
@@ -89,7 +89,7 @@ function parse(src: string, options?: Partial<ProtoOptions>): FileDescriptorProt
|
|
|
89
89
|
// VERSION is this package's version. It MUST equal package.json "version":
|
|
90
90
|
// the release orchestrator rewrites both, and test/version.test.ts fails the
|
|
91
91
|
// build if they drift. Mirrors `const VERSION` in go/proto.go.
|
|
92
|
-
const VERSION = '0.6.
|
|
92
|
+
const VERSION = '0.6.11'
|
|
93
93
|
|
|
94
94
|
export { Proto, parse, toDescriptor, preflight, MAX_NESTING_DEPTH, VERSION }
|
|
95
95
|
export type { ProtoVersion }
|
package/src/translate.ts
CHANGED
|
@@ -60,7 +60,8 @@ const TRANSLATION: TranslationParts = Object.freeze({
|
|
|
60
60
|
"An option's value is one string to the descriptor whether the file wrote it as an identifier, a string literal or an aggregate in braces, so it is written as a string literal, as the backtick string it is where it is one, as an aggregate only where neither can hold its text (a line break, or both quotes unescaped), and as an identifier for the options descriptor.proto types as enums (optimize_for, ctype, jstype, retention, targets, idempotency_level and the features) when its text is made of identifier characters; protoc reads an enum-valued or message-valued option written as a literal as a string, and a quoted value of such an option that begins with a digit, which protoc refuses, does not read back; a value no literal or backtick string holds that is no aggregate's body, which no file's descriptor holds, is written in braces too and does not read back; and a value holding a control character that no literal, backtick string or aggregate holds is refused.",
|
|
61
61
|
"A default is written bare for a field that is not a string or bytes when its text is made of a constant's characters, and as a string literal otherwise; a quoted default of such a field whose text is made of those characters but spells no one constant, which protoc refuses, does not read back.",
|
|
62
62
|
"Reserved names are written as string literals in a proto2 or proto3 file and as identifiers in an edition file, a message's or an enum's reserved ranges in one reserved statement and its names in another, each extension range in an extensions statement of its own with its options, and each extension in an extend block of its own."
|
|
63
|
-
]
|
|
63
|
+
],
|
|
64
|
+
"whole": "A file's descriptor gathers its imports, messages, enums, services and extensions into a list of each kind, which a declaration anywhere in the file adds to, so a document's tree is complete only at its end: it is read whole before anything is written."
|
|
64
65
|
}
|
|
65
66
|
}
|
|
66
67
|
`,
|