protobufjs 7.1.2 → 7.2.1
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/light/protobuf.js +8 -5
- 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 +4 -4
- 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 +8 -5
- package/dist/protobuf.js.map +1 -1
- package/dist/protobuf.min.js +3 -3
- package/dist/protobuf.min.js.map +1 -1
- package/package.json +10 -2
- package/src/root.js +1 -0
- package/src/util/minimal.js +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "protobufjs",
|
|
3
|
-
"version": "7.1
|
|
3
|
+
"version": "7.2.1",
|
|
4
4
|
"versionScheme": "~",
|
|
5
5
|
"description": "Protocol Buffers for JavaScript (& TypeScript).",
|
|
6
6
|
"author": "Daniel Wirtz <dcode+protobufjs@dcode.io>",
|
|
@@ -11,6 +11,14 @@
|
|
|
11
11
|
"engines": {
|
|
12
12
|
"node": ">=12.0.0"
|
|
13
13
|
},
|
|
14
|
+
"eslintConfig": {
|
|
15
|
+
"env": {
|
|
16
|
+
"es6": true
|
|
17
|
+
},
|
|
18
|
+
"parserOptions": {
|
|
19
|
+
"ecmaVersion": 6
|
|
20
|
+
}
|
|
21
|
+
},
|
|
14
22
|
"keywords": [
|
|
15
23
|
"protobuf",
|
|
16
24
|
"protocol-buffers",
|
|
@@ -73,7 +81,7 @@
|
|
|
73
81
|
"gulp-sourcemaps": "^3.0.0",
|
|
74
82
|
"gulp-uglify": "^3.0.2",
|
|
75
83
|
"jaguarjs-jsdoc": "github:dcodeIO/jaguarjs-jsdoc",
|
|
76
|
-
"jsdoc": "^
|
|
84
|
+
"jsdoc": "^4.0.0",
|
|
77
85
|
"minimist": "^1.2.0",
|
|
78
86
|
"nyc": "^15.0.0",
|
|
79
87
|
"reflect-metadata": "^0.1.13",
|
package/src/root.js
CHANGED
|
@@ -145,6 +145,7 @@ Root.prototype.load = function load(filename, options, callback) {
|
|
|
145
145
|
|
|
146
146
|
// Fetches a single file
|
|
147
147
|
function fetch(filename, weak) {
|
|
148
|
+
filename = getBundledFileName(filename) || filename;
|
|
148
149
|
|
|
149
150
|
// Skip if already loaded / attempted
|
|
150
151
|
if (self.files.indexOf(filename) > -1)
|
package/src/util/minimal.js
CHANGED
|
@@ -288,7 +288,7 @@ function newError(name) {
|
|
|
288
288
|
configurable: true,
|
|
289
289
|
},
|
|
290
290
|
name: {
|
|
291
|
-
get() { return name; },
|
|
291
|
+
get: function get() { return name; },
|
|
292
292
|
set: undefined,
|
|
293
293
|
enumerable: false,
|
|
294
294
|
// configurable: false would accurately preserve the behavior of
|
|
@@ -298,7 +298,7 @@ function newError(name) {
|
|
|
298
298
|
configurable: true,
|
|
299
299
|
},
|
|
300
300
|
toString: {
|
|
301
|
-
value() { return this.name + ": " + this.message; },
|
|
301
|
+
value: function value() { return this.name + ": " + this.message; },
|
|
302
302
|
writable: true,
|
|
303
303
|
enumerable: false,
|
|
304
304
|
configurable: true,
|