protobufjs 6.10.1-beta.0 → 6.10.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/CHANGELOG.md CHANGED
@@ -1,5 +1,29 @@
1
1
  # Changelog
2
2
 
3
+ ### [6.10.3](https://github.com/protobufjs/protobuf.js/compare/v6.10.2...v6.10.3) (2022-05-20)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * **deps:** use eslint 8.x ([#1728](https://github.com/protobufjs/protobuf.js/issues/1728)) ([f2c6c8e](https://github.com/protobufjs/protobuf.js/commit/f2c6c8eea2b945ac37e43809bb6ab0cff20564ff))
9
+ * do not let setProperty change the prototype ([#1731](https://github.com/protobufjs/protobuf.js/issues/1731)) ([b79f316](https://github.com/protobufjs/protobuf.js/commit/b79f316ee7651369fbcf4d07b0ec8aa6dcc8346d))
10
+
11
+ ### [6.10.2](https://www.github.com/protobufjs/protobuf.js/compare/v6.10.1...v6.10.2) (2020-11-13)
12
+
13
+
14
+ ### Bug Fixes
15
+
16
+ * es6 export enum ([#1446](https://www.github.com/protobufjs/protobuf.js/issues/1446)) ([9f33784](https://www.github.com/protobufjs/protobuf.js/commit/9f33784350b1efc2e774bbfc087cbd2c47828748))
17
+ * make parsedOptions appear in method JSON representation ([#1506](https://www.github.com/protobufjs/protobuf.js/issues/1506)) ([3d29969](https://www.github.com/protobufjs/protobuf.js/commit/3d29969865f2119550d9dc88391846469da9fa7f))
18
+ * utf8 -> utf16 decoding bug on surrogate pairs ([#1486](https://www.github.com/protobufjs/protobuf.js/issues/1486)) ([75172cd](https://www.github.com/protobufjs/protobuf.js/commit/75172cd11be137bbabd2fba7a02b15067695ebad))
19
+
20
+ ### [6.10.1](https://www.github.com/protobufjs/protobuf.js/compare/v6.10.0...v6.10.1) (2020-07-16)
21
+
22
+
23
+ ### Bug Fixes
24
+
25
+ * make node detection a bit more forgiving ([#1445](https://www.github.com/protobufjs/protobuf.js/issues/1445)) ([4e75f6d](https://www.github.com/protobufjs/protobuf.js/commit/4e75f6de4a2e49f28c24b59107f262d472b68977))
26
+
3
27
  ## [6.10.0](https://www.github.com/protobufjs/protobuf.js/compare/v6.9.0...v6.10.0) (2020-07-13)
4
28
 
5
29
 
package/README.md CHANGED
@@ -285,11 +285,15 @@ The library utilizes JSON descriptors that are equivalent to a .proto definition
285
285
  // awesome.json
286
286
  {
287
287
  "nested": {
288
- "AwesomeMessage": {
289
- "fields": {
290
- "awesomeField": {
291
- "type": "string",
292
- "id": 1
288
+ "awesomepackage": {
289
+ "nested": {
290
+ "AwesomeMessage": {
291
+ "fields": {
292
+ "awesomeField": {
293
+ "type": "string",
294
+ "id": 1
295
+ }
296
+ }
293
297
  }
294
298
  }
295
299
  }
@@ -682,7 +682,10 @@ function buildEnum(ref, enm) {
682
682
  comment.push((config.forceEnumString ? "@property {string} " : "@property {number} ") + key + "=" + val + " " + (enm.comments[key] || key + " value"));
683
683
  });
684
684
  pushComment(comment);
685
- push(escapeName(ref) + "." + escapeName(enm.name) + " = (function() {");
685
+ if (!ref && config.es6)
686
+ push("export const " + escapeName(enm.name) + " = " + escapeName(ref) + "." + escapeName(enm.name) + " = (() => {");
687
+ else
688
+ push(escapeName(ref) + "." + escapeName(enm.name) + " = (function() {");
686
689
  ++indent;
687
690
  push((config.es6 ? "const" : "var") + " valuesById = {}, values = Object.create(valuesById);");
688
691
  var aliased = [];