protobufjs 8.6.1 → 8.6.2
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/LICENSE +39 -39
- package/README.md +441 -441
- package/dist/light/protobuf.js +8455 -8455
- package/dist/light/protobuf.js.map +1 -1
- package/dist/light/protobuf.min.js +3 -3
- package/dist/light/protobuf.min.js.map +1 -1
- package/dist/minimal/protobuf.js +2999 -2999
- package/dist/minimal/protobuf.js.map +1 -1
- package/dist/minimal/protobuf.min.js +3 -3
- package/dist/minimal/protobuf.min.js.map +1 -1
- package/dist/protobuf.js +10359 -10359
- package/dist/protobuf.js.map +1 -1
- package/dist/protobuf.min.js +3 -3
- package/dist/protobuf.min.js.map +1 -1
- package/ext/README.md +70 -70
- package/ext/debug/README.md +4 -4
- package/ext/debug/index.js +71 -71
- package/ext/descriptor/README.md +5 -5
- package/ext/descriptor/index.d.ts +2 -2
- package/ext/descriptor/index.js +2 -2
- package/ext/descriptor.d.ts +87 -87
- package/ext/descriptor.js +1354 -1354
- package/ext/protojson.LICENSE +201 -201
- package/ext/protojson.d.ts +20 -20
- package/ext/protojson.js +925 -925
- package/ext/textformat.d.ts +19 -19
- package/ext/textformat.js +1256 -1256
- package/google/LICENSE +27 -27
- package/google/README.md +1 -1
- package/google/api/annotations.json +82 -82
- package/google/api/annotations.proto +10 -10
- package/google/api/http.json +85 -85
- package/google/api/http.proto +30 -30
- package/google/protobuf/api.json +117 -117
- package/google/protobuf/api.proto +33 -33
- package/google/protobuf/compiler/plugin.json +126 -126
- package/google/protobuf/compiler/plugin.proto +47 -47
- package/google/protobuf/descriptor.json +1381 -1381
- package/google/protobuf/descriptor.proto +534 -534
- package/google/protobuf/source_context.json +19 -19
- package/google/protobuf/source_context.proto +7 -7
- package/google/protobuf/type.json +201 -201
- package/google/protobuf/type.proto +89 -89
- package/index.d.ts +1 -1
- package/index.js +4 -4
- package/light.d.ts +2 -2
- package/light.js +3 -3
- package/minimal.d.ts +2 -2
- package/minimal.js +4 -4
- package/package.json +93 -93
- package/src/common.js +399 -399
- package/src/converter.js +344 -344
- package/src/decoder.js +208 -208
- package/src/encoder.js +111 -111
- package/src/enum.js +231 -231
- package/src/field.js +497 -497
- package/src/index-light.js +104 -104
- package/src/index-minimal.js +36 -36
- package/src/index.js +12 -12
- package/src/mapfield.js +136 -136
- package/src/message.js +137 -137
- package/src/method.js +175 -175
- package/src/namespace.js +565 -565
- package/src/object.js +382 -382
- package/src/oneof.js +225 -225
- package/src/parse.js +1068 -1068
- package/src/reader.js +543 -543
- package/src/reader_buffer.js +72 -72
- package/src/root.js +416 -416
- package/src/roots.js +18 -18
- package/src/rpc/service.js +148 -148
- package/src/rpc.js +36 -36
- package/src/service.js +198 -198
- package/src/tokenize.js +421 -421
- package/src/type.js +655 -655
- package/src/types.js +196 -196
- package/src/typescript.js +25 -25
- package/src/util/aspromise.d.ts +13 -13
- package/src/util/aspromise.js +52 -52
- package/src/util/base64.d.ts +32 -32
- package/src/util/base64.js +146 -146
- package/src/util/codegen.d.ts +31 -31
- package/src/util/codegen.js +113 -113
- package/src/util/eventemitter.d.ts +45 -45
- package/src/util/eventemitter.js +86 -86
- package/src/util/fetch.d.ts +56 -56
- package/src/util/fetch.js +112 -112
- package/src/util/float.d.ts +83 -83
- package/src/util/float.js +335 -335
- package/src/util/fs.js +11 -11
- package/src/util/longbits.js +200 -200
- package/src/util/minimal.js +515 -515
- package/src/util/path.d.ts +22 -22
- package/src/util/path.js +72 -72
- package/src/util/patterns.js +7 -7
- package/src/util/pool.d.ts +32 -32
- package/src/util/pool.js +48 -48
- package/src/util/utf8.d.ts +24 -24
- package/src/util/utf8.js +130 -130
- package/src/util.js +242 -242
- package/src/verifier.js +180 -180
- package/src/wrappers.js +106 -106
- package/src/writer.js +495 -495
- package/src/writer_buffer.js +102 -102
- package/tsconfig.json +6 -6
package/minimal.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export as namespace protobuf;
|
|
2
|
-
export * from "./index";
|
|
1
|
+
export as namespace protobuf;
|
|
2
|
+
export * from "./index";
|
package/minimal.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// minimal library entry point.
|
|
2
|
-
|
|
3
|
-
"use strict";
|
|
4
|
-
module.exports = require("./src/index-minimal");
|
|
1
|
+
// minimal library entry point.
|
|
2
|
+
|
|
3
|
+
"use strict";
|
|
4
|
+
module.exports = require("./src/index-minimal");
|
package/package.json
CHANGED
|
@@ -1,93 +1,93 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "protobufjs",
|
|
3
|
-
"version": "8.6.
|
|
4
|
-
"description": "Protocol Buffers for JavaScript & TypeScript.",
|
|
5
|
-
"author": "Daniel Wirtz <dcode+protobufjs@dcode.io>",
|
|
6
|
-
"license": "BSD-3-Clause",
|
|
7
|
-
"repository": "protobufjs/protobuf.js",
|
|
8
|
-
"bugs": "https://github.com/protobufjs/protobuf.js/issues",
|
|
9
|
-
"engines": {
|
|
10
|
-
"node": ">=12.0.0"
|
|
11
|
-
},
|
|
12
|
-
"keywords": [
|
|
13
|
-
"protobuf",
|
|
14
|
-
"protocol-buffers",
|
|
15
|
-
"serialization",
|
|
16
|
-
"typescript"
|
|
17
|
-
],
|
|
18
|
-
"main": "index.js",
|
|
19
|
-
"type": "commonjs",
|
|
20
|
-
"types": "index.d.ts",
|
|
21
|
-
"browser": {
|
|
22
|
-
"fs": false
|
|
23
|
-
},
|
|
24
|
-
"scripts": {
|
|
25
|
-
"bench": "node bench",
|
|
26
|
-
"build": "npm run build:bundle && npm run build:types",
|
|
27
|
-
"build:bundle": "gulp --gulpfile scripts/gulpfile.js",
|
|
28
|
-
"build:tests": "node ./scripts/gentests.js",
|
|
29
|
-
"build:types": "node cli/bin/pbts --main --global protobuf --out index.d.ts src/ && node cli/bin/pbts --main --import \"\\$protobuf=..\" --out ext/descriptor.generated.d.ts ext/descriptor.js && node cli/bin/pbts --main --import \"\\$protobuf=..\" --out ext/textformat.generated.d.ts ext/textformat.js && node cli/bin/pbts --main --import \"\\$protobuf=..\" --out ext/protojson.generated.d.ts ext/protojson.js",
|
|
30
|
-
"coverage": "npm run coverage:test && npm run coverage:report",
|
|
31
|
-
"coverage:test": "nyc --silent tape -r ./lib/tape-adapter tests/*.js tests/node/*.js",
|
|
32
|
-
"coverage:report": "nyc report --reporter=lcov --reporter=text",
|
|
33
|
-
"docs": "npm run docs:build",
|
|
34
|
-
"docs:build": "jsdoc -c config/jsdoc.json -R README.md --verbose --pedantic",
|
|
35
|
-
"docs:publish": "npm run docs:build && node scripts/pages",
|
|
36
|
-
"lint": "npm run lint:sources && npm run lint:types",
|
|
37
|
-
"lint:sources": "eslint \"**/*.js\"",
|
|
38
|
-
"lint:types": "tslint \"**/*.d.ts\" -e \"**/node_modules/**\" -t stylish -c config/tslint.json",
|
|
39
|
-
"prepublish": "cd cli && npm install && cd .. && npm run build",
|
|
40
|
-
"prepublishOnly": "cd cli && npm install && cd .. && npm run build",
|
|
41
|
-
"prof": "node bench/prof",
|
|
42
|
-
"test": "npm run test:sources && npm run test:types",
|
|
43
|
-
"test:sources": "tape -r ./lib/tape-adapter tests/*.js tests/node/*.js",
|
|
44
|
-
"test:types": "tsc tests/comp_typescript.ts --target es2019 --module commonjs --types node --lib es2019 --esModuleInterop --strictNullChecks --experimentalDecorators --emitDecoratorMetadata && tsc -p tsconfig.test-types.json",
|
|
45
|
-
"make": "npm run lint:sources && npm run build && npm run lint:types && npm run build:tests && npm test"
|
|
46
|
-
},
|
|
47
|
-
"dependencies": {
|
|
48
|
-
"long": "^5.3.2"
|
|
49
|
-
},
|
|
50
|
-
"devDependencies": {
|
|
51
|
-
"@eslint/js": "^10.0.0",
|
|
52
|
-
"@types/node": ">=13.7.0",
|
|
53
|
-
"browserify": "^17.0.0",
|
|
54
|
-
"browserify-wrap": "^1.0.2",
|
|
55
|
-
"bundle-collapser": "^1.3.0",
|
|
56
|
-
"escodegen": "^1.13.0",
|
|
57
|
-
"eslint": "^10.0.0",
|
|
58
|
-
"eslint-plugin-jsdoc": "^62.9.0",
|
|
59
|
-
"espree": "^9.0.0",
|
|
60
|
-
"estraverse": "^5.1.0",
|
|
61
|
-
"gh-pages": "^6.0.0",
|
|
62
|
-
"globals": "^17.0.0",
|
|
63
|
-
"gulp": "^5.0.0",
|
|
64
|
-
"gulp-header": "^2.0.9",
|
|
65
|
-
"gulp-if": "^3.0.0",
|
|
66
|
-
"gulp-sourcemaps": "^3.0.0",
|
|
67
|
-
"gulp-uglify": "^3.0.2",
|
|
68
|
-
"jsdoc": "^4.0.0",
|
|
69
|
-
"minimist": "^1.2.8",
|
|
70
|
-
"nyc": "^18.0.0",
|
|
71
|
-
"reflect-metadata": "^0.2.0",
|
|
72
|
-
"tape": "^5.0.0",
|
|
73
|
-
"tslint": "^6.0.0",
|
|
74
|
-
"typescript": "^3.7.5",
|
|
75
|
-
"vinyl-buffer": "^1.0.1",
|
|
76
|
-
"vinyl-fs": "^4.0.0",
|
|
77
|
-
"vinyl-source-stream": "^2.0.0"
|
|
78
|
-
},
|
|
79
|
-
"files": [
|
|
80
|
-
"index.js",
|
|
81
|
-
"index.d.ts",
|
|
82
|
-
"light.d.ts",
|
|
83
|
-
"light.js",
|
|
84
|
-
"minimal.d.ts",
|
|
85
|
-
"minimal.js",
|
|
86
|
-
"package-lock.json",
|
|
87
|
-
"tsconfig.json",
|
|
88
|
-
"dist/**",
|
|
89
|
-
"ext/**",
|
|
90
|
-
"google/**",
|
|
91
|
-
"src/**"
|
|
92
|
-
]
|
|
93
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "protobufjs",
|
|
3
|
+
"version": "8.6.2",
|
|
4
|
+
"description": "Protocol Buffers for JavaScript & TypeScript.",
|
|
5
|
+
"author": "Daniel Wirtz <dcode+protobufjs@dcode.io>",
|
|
6
|
+
"license": "BSD-3-Clause",
|
|
7
|
+
"repository": "protobufjs/protobuf.js",
|
|
8
|
+
"bugs": "https://github.com/protobufjs/protobuf.js/issues",
|
|
9
|
+
"engines": {
|
|
10
|
+
"node": ">=12.0.0"
|
|
11
|
+
},
|
|
12
|
+
"keywords": [
|
|
13
|
+
"protobuf",
|
|
14
|
+
"protocol-buffers",
|
|
15
|
+
"serialization",
|
|
16
|
+
"typescript"
|
|
17
|
+
],
|
|
18
|
+
"main": "index.js",
|
|
19
|
+
"type": "commonjs",
|
|
20
|
+
"types": "index.d.ts",
|
|
21
|
+
"browser": {
|
|
22
|
+
"fs": false
|
|
23
|
+
},
|
|
24
|
+
"scripts": {
|
|
25
|
+
"bench": "node bench",
|
|
26
|
+
"build": "npm run build:bundle && npm run build:types",
|
|
27
|
+
"build:bundle": "gulp --gulpfile scripts/gulpfile.js",
|
|
28
|
+
"build:tests": "node ./scripts/gentests.js",
|
|
29
|
+
"build:types": "node cli/bin/pbts --main --global protobuf --out index.d.ts src/ && node cli/bin/pbts --main --import \"\\$protobuf=..\" --out ext/descriptor.generated.d.ts ext/descriptor.js && node cli/bin/pbts --main --import \"\\$protobuf=..\" --out ext/textformat.generated.d.ts ext/textformat.js && node cli/bin/pbts --main --import \"\\$protobuf=..\" --out ext/protojson.generated.d.ts ext/protojson.js",
|
|
30
|
+
"coverage": "npm run coverage:test && npm run coverage:report",
|
|
31
|
+
"coverage:test": "nyc --silent tape -r ./lib/tape-adapter tests/*.js tests/node/*.js",
|
|
32
|
+
"coverage:report": "nyc report --reporter=lcov --reporter=text",
|
|
33
|
+
"docs": "npm run docs:build",
|
|
34
|
+
"docs:build": "jsdoc -c config/jsdoc.json -R README.md --verbose --pedantic",
|
|
35
|
+
"docs:publish": "npm run docs:build && node scripts/pages",
|
|
36
|
+
"lint": "npm run lint:sources && npm run lint:types",
|
|
37
|
+
"lint:sources": "eslint \"**/*.js\"",
|
|
38
|
+
"lint:types": "tslint \"**/*.d.ts\" -e \"**/node_modules/**\" -t stylish -c config/tslint.json",
|
|
39
|
+
"prepublish": "cd cli && npm install && cd .. && npm run build",
|
|
40
|
+
"prepublishOnly": "cd cli && npm install && cd .. && npm run build",
|
|
41
|
+
"prof": "node bench/prof",
|
|
42
|
+
"test": "npm run test:sources && npm run test:types",
|
|
43
|
+
"test:sources": "tape -r ./lib/tape-adapter tests/*.js tests/node/*.js",
|
|
44
|
+
"test:types": "tsc tests/comp_typescript.ts --target es2019 --module commonjs --types node --lib es2019 --esModuleInterop --strictNullChecks --experimentalDecorators --emitDecoratorMetadata && tsc -p tsconfig.test-types.json",
|
|
45
|
+
"make": "npm run lint:sources && npm run build && npm run lint:types && npm run build:tests && npm test"
|
|
46
|
+
},
|
|
47
|
+
"dependencies": {
|
|
48
|
+
"long": "^5.3.2"
|
|
49
|
+
},
|
|
50
|
+
"devDependencies": {
|
|
51
|
+
"@eslint/js": "^10.0.0",
|
|
52
|
+
"@types/node": ">=13.7.0",
|
|
53
|
+
"browserify": "^17.0.0",
|
|
54
|
+
"browserify-wrap": "^1.0.2",
|
|
55
|
+
"bundle-collapser": "^1.3.0",
|
|
56
|
+
"escodegen": "^1.13.0",
|
|
57
|
+
"eslint": "^10.0.0",
|
|
58
|
+
"eslint-plugin-jsdoc": "^62.9.0",
|
|
59
|
+
"espree": "^9.0.0",
|
|
60
|
+
"estraverse": "^5.1.0",
|
|
61
|
+
"gh-pages": "^6.0.0",
|
|
62
|
+
"globals": "^17.0.0",
|
|
63
|
+
"gulp": "^5.0.0",
|
|
64
|
+
"gulp-header": "^2.0.9",
|
|
65
|
+
"gulp-if": "^3.0.0",
|
|
66
|
+
"gulp-sourcemaps": "^3.0.0",
|
|
67
|
+
"gulp-uglify": "^3.0.2",
|
|
68
|
+
"jsdoc": "^4.0.0",
|
|
69
|
+
"minimist": "^1.2.8",
|
|
70
|
+
"nyc": "^18.0.0",
|
|
71
|
+
"reflect-metadata": "^0.2.0",
|
|
72
|
+
"tape": "^5.0.0",
|
|
73
|
+
"tslint": "^6.0.0",
|
|
74
|
+
"typescript": "^3.7.5",
|
|
75
|
+
"vinyl-buffer": "^1.0.1",
|
|
76
|
+
"vinyl-fs": "^4.0.0",
|
|
77
|
+
"vinyl-source-stream": "^2.0.0"
|
|
78
|
+
},
|
|
79
|
+
"files": [
|
|
80
|
+
"index.js",
|
|
81
|
+
"index.d.ts",
|
|
82
|
+
"light.d.ts",
|
|
83
|
+
"light.js",
|
|
84
|
+
"minimal.d.ts",
|
|
85
|
+
"minimal.js",
|
|
86
|
+
"package-lock.json",
|
|
87
|
+
"tsconfig.json",
|
|
88
|
+
"dist/**",
|
|
89
|
+
"ext/**",
|
|
90
|
+
"google/**",
|
|
91
|
+
"src/**"
|
|
92
|
+
]
|
|
93
|
+
}
|