protobufjs 8.0.2 → 8.0.3

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": "8.0.2",
3
+ "version": "8.0.3",
4
4
  "versionScheme": "~",
5
5
  "description": "Protocol Buffers for JavaScript (& TypeScript).",
6
6
  "author": "Daniel Wirtz <dcode+protobufjs@dcode.io>",
package/src/parse.js CHANGED
@@ -965,14 +965,10 @@ function parse(source, root, options) {
965
965
  parsePackage();
966
966
  break;
967
967
 
968
- case "import":
969
-
970
- /* istanbul ignore if */
971
- if (!head)
972
- throw illegal(token);
973
-
974
- parseImport();
975
- break;
968
+ case "import":
969
+
970
+ parseImport();
971
+ break;
976
972
 
977
973
  case "syntax":
978
974