protobufjs 7.6.3 → 7.6.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/index.d.ts CHANGED
@@ -2489,14 +2489,6 @@ export namespace util {
2489
2489
  */
2490
2490
  function fetch(path: string, options?: IFetchOptions): Promise<(string|Uint8Array)>;
2491
2491
 
2492
- /**
2493
- * Requires a module only if available.
2494
- * @param moduleName Module to require
2495
- * @returns Required module if available and not empty, otherwise `null`
2496
- * @deprecated Legacy optional require helper. Will be removed in a future release.
2497
- */
2498
- function inquire(moduleName: string): object;
2499
-
2500
2492
  /** A minimal path module to resolve Unix, Windows and URL paths alike. */
2501
2493
  namespace path {
2502
2494
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobufjs",
3
- "version": "7.6.3",
3
+ "version": "7.6.5",
4
4
  "versionScheme": "~",
5
5
  "description": "Protocol Buffers for JavaScript (& TypeScript).",
6
6
  "author": "Daniel Wirtz <dcode+protobufjs@dcode.io>",
@@ -37,7 +37,7 @@
37
37
  "bench": "node bench",
38
38
  "build": "npm run build:bundle && npm run build:types",
39
39
  "build:bundle": "gulp --gulpfile scripts/gulpfile.js",
40
- "build:types": "node cli/bin/pbts --main --global protobuf --out index.d.ts src/ lib/aspromise/index.js lib/base64/index.js lib/codegen/index.js lib/eventemitter/index.js lib/float/index.js lib/fetch/index.js lib/inquire/index.js lib/path/index.js lib/pool/index.js lib/utf8/index.js",
40
+ "build:types": "node cli/bin/pbts --main --global protobuf --out index.d.ts src/ lib/aspromise/index.js lib/base64/index.js lib/codegen/index.js lib/eventemitter/index.js lib/float/index.js lib/fetch/index.js lib/path/index.js lib/pool/index.js lib/utf8/index.js",
41
41
  "changelog": "node scripts/changelog -w",
42
42
  "coverage": "npm run coverage:test && npm run coverage:report",
43
43
  "coverage:test": "nyc --silent tape -r ./lib/tape-adapter tests/*.js tests/node/*.js",
@@ -63,7 +63,6 @@
63
63
  "@protobufjs/eventemitter": "^1.1.1",
64
64
  "@protobufjs/fetch": "^1.1.1",
65
65
  "@protobufjs/float": "^1.0.2",
66
- "@protobufjs/inquire": "^1.1.2",
67
66
  "@protobufjs/path": "^1.1.2",
68
67
  "@protobufjs/pool": "^1.1.0",
69
68
  "@protobufjs/utf8": "^1.1.1",
package/src/parse.js CHANGED
@@ -678,6 +678,9 @@ function parse(source, root, options) {
678
678
  }
679
679
 
680
680
  while (token !== "=") {
681
+ if (token === null) {
682
+ throw illegal(token, "end of input");
683
+ }
681
684
  if (token === "(") {
682
685
  var parensValue = next();
683
686
  skip(")");
@@ -13,9 +13,6 @@ util.EventEmitter = require("@protobufjs/eventemitter");
13
13
  // float handling accross browsers
14
14
  util.float = require("@protobufjs/float");
15
15
 
16
- // requires modules optionally and hides the call from bundlers
17
- util.inquire = require("@protobufjs/inquire");
18
-
19
16
  // converts to / from utf8 encoded strings
20
17
  util.utf8 = require("@protobufjs/utf8");
21
18