protobufjs 7.1.2 → 7.2.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobufjs",
3
- "version": "7.1.2",
3
+ "version": "7.2.0",
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": "^3.6.3",
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
@@ -98,10 +98,10 @@ Root.prototype.load = function load(filename, options, callback) {
98
98
  /* istanbul ignore if */
99
99
  if (!callback)
100
100
  return;
101
- var cb = callback;
102
- callback = null;
103
101
  if (sync)
104
102
  throw err;
103
+ var cb = callback;
104
+ callback = null;
105
105
  cb(err, root);
106
106
  }
107
107