protobufjs 8.6.0 → 8.6.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 +45 -88
- 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 +25 -68
- 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 +45 -88
- package/dist/protobuf.js.map +1 -1
- package/dist/protobuf.min.js +3 -3
- package/dist/protobuf.min.js.map +1 -1
- package/ext/README.md +1 -1
- package/ext/descriptor.d.ts +8 -7
- package/ext/descriptor.generated.d.ts +14 -6
- package/ext/descriptor.js +162 -111
- package/ext/protojson.js +29 -7
- package/index.d.ts +9 -17
- package/package.json +1 -1
- package/src/util/minimal.js +0 -3
- package/src/util/inquire.d.ts +0 -10
- package/src/util/inquire.js +0 -38
package/dist/light/protobuf.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* protobuf.js v8.6.
|
|
3
|
-
* compiled
|
|
2
|
+
* protobuf.js v8.6.1 (c) 2016, daniel wirtz
|
|
3
|
+
* compiled sun, 07 jun 2026 00:06:12 utc
|
|
4
4
|
* licensed under the bsd-3-clause license
|
|
5
5
|
* see: https://github.com/dcodeio/protobuf.js for details
|
|
6
6
|
*/
|
|
@@ -1517,7 +1517,7 @@ protobuf.loadSync = loadSync;
|
|
|
1517
1517
|
// Serialization
|
|
1518
1518
|
protobuf.encoder = require(4);
|
|
1519
1519
|
protobuf.decoder = require(3);
|
|
1520
|
-
protobuf.verifier = require(
|
|
1520
|
+
protobuf.verifier = require(38);
|
|
1521
1521
|
protobuf.converter = require(2);
|
|
1522
1522
|
|
|
1523
1523
|
// Reflection
|
|
@@ -1534,7 +1534,7 @@ protobuf.Method = require(11);
|
|
|
1534
1534
|
|
|
1535
1535
|
// Runtime
|
|
1536
1536
|
protobuf.Message = require(10);
|
|
1537
|
-
protobuf.wrappers = require(
|
|
1537
|
+
protobuf.wrappers = require(39);
|
|
1538
1538
|
|
|
1539
1539
|
// Utility
|
|
1540
1540
|
protobuf.types = require(23);
|
|
@@ -1546,7 +1546,7 @@ protobuf.Namespace._configure(protobuf.Type, protobuf.Service, protobuf.Enum);
|
|
|
1546
1546
|
protobuf.Root._configure(protobuf.Type, undefined, {});
|
|
1547
1547
|
protobuf.Field._configure(protobuf.Type);
|
|
1548
1548
|
|
|
1549
|
-
},{"10":10,"11":11,"12":12,"13":13,"14":14,"17":17,"2":2,"21":21,"22":22,"23":23,"24":24,"3":3,"39":39,"4":4,"
|
|
1549
|
+
},{"10":10,"11":11,"12":12,"13":13,"14":14,"17":17,"2":2,"21":21,"22":22,"23":23,"24":24,"3":3,"38":38,"39":39,"4":4,"5":5,"6":6,"8":8,"9":9}],8:[function(require,module,exports){
|
|
1550
1550
|
"use strict";
|
|
1551
1551
|
var protobuf = exports;
|
|
1552
1552
|
|
|
@@ -1559,13 +1559,13 @@ var protobuf = exports;
|
|
|
1559
1559
|
protobuf.build = "minimal";
|
|
1560
1560
|
|
|
1561
1561
|
// Serialization
|
|
1562
|
-
protobuf.Writer = require(
|
|
1563
|
-
protobuf.BufferWriter = require(
|
|
1562
|
+
protobuf.Writer = require(40);
|
|
1563
|
+
protobuf.BufferWriter = require(41);
|
|
1564
1564
|
protobuf.Reader = require(15);
|
|
1565
1565
|
protobuf.BufferReader = require(16);
|
|
1566
1566
|
|
|
1567
1567
|
// Utility
|
|
1568
|
-
protobuf.util = require(
|
|
1568
|
+
protobuf.util = require(33);
|
|
1569
1569
|
protobuf.rpc = require(19);
|
|
1570
1570
|
protobuf.roots = require(18);
|
|
1571
1571
|
protobuf.configure = configure;
|
|
@@ -1584,7 +1584,7 @@ function configure() {
|
|
|
1584
1584
|
// Set up buffer utility according to the environment
|
|
1585
1585
|
configure();
|
|
1586
1586
|
|
|
1587
|
-
},{"15":15,"16":16,"18":18,"19":19,"
|
|
1587
|
+
},{"15":15,"16":16,"18":18,"19":19,"33":33,"40":40,"41":41}],9:[function(require,module,exports){
|
|
1588
1588
|
"use strict";
|
|
1589
1589
|
module.exports = MapField;
|
|
1590
1590
|
|
|
@@ -1726,7 +1726,7 @@ MapField.d = function decorateMapField(fieldId, fieldKeyType, fieldValueType) {
|
|
|
1726
1726
|
"use strict";
|
|
1727
1727
|
module.exports = Message;
|
|
1728
1728
|
|
|
1729
|
-
var util = require(
|
|
1729
|
+
var util = require(33);
|
|
1730
1730
|
|
|
1731
1731
|
/**
|
|
1732
1732
|
* Constructs a new message instance.
|
|
@@ -1861,7 +1861,7 @@ Message.prototype.toJSON = function toJSON() {
|
|
|
1861
1861
|
return this.$type.toObject(this, util.toJSONOptions);
|
|
1862
1862
|
};
|
|
1863
1863
|
|
|
1864
|
-
},{"
|
|
1864
|
+
},{"33":33}],11:[function(require,module,exports){
|
|
1865
1865
|
"use strict";
|
|
1866
1866
|
module.exports = Method;
|
|
1867
1867
|
|
|
@@ -3220,7 +3220,7 @@ OneOf.d = function decorateOneOf() {
|
|
|
3220
3220
|
"use strict";
|
|
3221
3221
|
module.exports = Reader;
|
|
3222
3222
|
|
|
3223
|
-
var util = require(
|
|
3223
|
+
var util = require(33);
|
|
3224
3224
|
|
|
3225
3225
|
var BufferReader; // cyclic
|
|
3226
3226
|
|
|
@@ -3761,7 +3761,7 @@ Reader._configure = function(BufferReader_) {
|
|
|
3761
3761
|
});
|
|
3762
3762
|
};
|
|
3763
3763
|
|
|
3764
|
-
},{"
|
|
3764
|
+
},{"33":33}],16:[function(require,module,exports){
|
|
3765
3765
|
"use strict";
|
|
3766
3766
|
module.exports = BufferReader;
|
|
3767
3767
|
|
|
@@ -3769,7 +3769,7 @@ module.exports = BufferReader;
|
|
|
3769
3769
|
var Reader = require(15);
|
|
3770
3770
|
(BufferReader.prototype = Object.create(Reader.prototype)).constructor = BufferReader;
|
|
3771
3771
|
|
|
3772
|
-
var util = require(
|
|
3772
|
+
var util = require(33);
|
|
3773
3773
|
|
|
3774
3774
|
/**
|
|
3775
3775
|
* Constructs a new buffer reader instance.
|
|
@@ -3835,7 +3835,7 @@ BufferReader.prototype.string = function read_string_buffer() {
|
|
|
3835
3835
|
|
|
3836
3836
|
BufferReader._configure();
|
|
3837
3837
|
|
|
3838
|
-
},{"15":15,"
|
|
3838
|
+
},{"15":15,"33":33}],17:[function(require,module,exports){
|
|
3839
3839
|
"use strict";
|
|
3840
3840
|
module.exports = Root;
|
|
3841
3841
|
|
|
@@ -4315,7 +4315,7 @@ rpc.Service = require(20);
|
|
|
4315
4315
|
"use strict";
|
|
4316
4316
|
module.exports = Service;
|
|
4317
4317
|
|
|
4318
|
-
var util = require(
|
|
4318
|
+
var util = require(33);
|
|
4319
4319
|
|
|
4320
4320
|
// Extends EventEmitter
|
|
4321
4321
|
(Service.prototype = Object.create(util.EventEmitter.prototype)).constructor = Service;
|
|
@@ -4461,7 +4461,7 @@ Service.prototype.end = function end(endedByRPC) {
|
|
|
4461
4461
|
return this;
|
|
4462
4462
|
};
|
|
4463
4463
|
|
|
4464
|
-
},{"
|
|
4464
|
+
},{"33":33}],21:[function(require,module,exports){
|
|
4465
4465
|
"use strict";
|
|
4466
4466
|
module.exports = Service;
|
|
4467
4467
|
|
|
@@ -4676,13 +4676,13 @@ var Enum = require(5),
|
|
|
4676
4676
|
Service = require(21),
|
|
4677
4677
|
Message = require(10),
|
|
4678
4678
|
Reader = require(15),
|
|
4679
|
-
Writer = require(
|
|
4679
|
+
Writer = require(40),
|
|
4680
4680
|
util = require(24),
|
|
4681
4681
|
encoder = require(4),
|
|
4682
4682
|
decoder = require(3),
|
|
4683
|
-
verifier = require(
|
|
4683
|
+
verifier = require(38),
|
|
4684
4684
|
converter = require(2),
|
|
4685
|
-
wrappers = require(
|
|
4685
|
+
wrappers = require(39);
|
|
4686
4686
|
|
|
4687
4687
|
/**
|
|
4688
4688
|
* Constructs a new reflected message type instance.
|
|
@@ -5318,7 +5318,7 @@ Type.d = function decorateType(typeName) {
|
|
|
5318
5318
|
};
|
|
5319
5319
|
};
|
|
5320
5320
|
|
|
5321
|
-
},{"10":10,"12":12,"14":14,"15":15,"2":2,"21":21,"24":24,"3":3,"39":39,"4":4,"40":40,"
|
|
5321
|
+
},{"10":10,"12":12,"14":14,"15":15,"2":2,"21":21,"24":24,"3":3,"38":38,"39":39,"4":4,"40":40,"5":5,"6":6,"9":9}],23:[function(require,module,exports){
|
|
5322
5322
|
"use strict";
|
|
5323
5323
|
|
|
5324
5324
|
/**
|
|
@@ -5523,7 +5523,7 @@ types.packed = bake([
|
|
|
5523
5523
|
* Various utility functions.
|
|
5524
5524
|
* @namespace
|
|
5525
5525
|
*/
|
|
5526
|
-
var util = module.exports = require(
|
|
5526
|
+
var util = module.exports = require(33);
|
|
5527
5527
|
|
|
5528
5528
|
var roots = require(18);
|
|
5529
5529
|
|
|
@@ -5532,8 +5532,8 @@ var Type, // cyclic
|
|
|
5532
5532
|
|
|
5533
5533
|
util.codegen = require(27);
|
|
5534
5534
|
util.fetch = require(29);
|
|
5535
|
-
util.path = require(
|
|
5536
|
-
util.patterns = require(
|
|
5535
|
+
util.path = require(34);
|
|
5536
|
+
util.patterns = require(35);
|
|
5537
5537
|
|
|
5538
5538
|
var reservedRe = util.patterns.reservedRe;
|
|
5539
5539
|
|
|
@@ -5760,7 +5760,7 @@ Object.defineProperty(util, "decorateRoot", {
|
|
|
5760
5760
|
}
|
|
5761
5761
|
});
|
|
5762
5762
|
|
|
5763
|
-
},{"17":17,"18":18,"22":22,"27":27,"29":29,"31":31,"34":34,"35":35,"
|
|
5763
|
+
},{"17":17,"18":18,"22":22,"27":27,"29":29,"31":31,"33":33,"34":34,"35":35,"5":5}],25:[function(require,module,exports){
|
|
5764
5764
|
"use strict";
|
|
5765
5765
|
module.exports = asPromise;
|
|
5766
5766
|
|
|
@@ -5966,7 +5966,7 @@ base64.test = function test(string) {
|
|
|
5966
5966
|
"use strict";
|
|
5967
5967
|
module.exports = codegen;
|
|
5968
5968
|
|
|
5969
|
-
var patterns = require(
|
|
5969
|
+
var patterns = require(35);
|
|
5970
5970
|
var reservedRe = patterns.reservedRe;
|
|
5971
5971
|
|
|
5972
5972
|
/**
|
|
@@ -6077,7 +6077,7 @@ function safeFunctionName(name) {
|
|
|
6077
6077
|
return reservedRe.test(name) ? name + "_" : name;
|
|
6078
6078
|
}
|
|
6079
6079
|
|
|
6080
|
-
},{"
|
|
6080
|
+
},{"35":35}],28:[function(require,module,exports){
|
|
6081
6081
|
"use strict";
|
|
6082
6082
|
module.exports = EventEmitter;
|
|
6083
6083
|
|
|
@@ -6631,49 +6631,9 @@ module.exports = fs;
|
|
|
6631
6631
|
|
|
6632
6632
|
},{"1":1}],32:[function(require,module,exports){
|
|
6633
6633
|
"use strict";
|
|
6634
|
-
module.exports = inquire;
|
|
6635
|
-
|
|
6636
|
-
/**
|
|
6637
|
-
* Requires a module only if available.
|
|
6638
|
-
* @memberof util
|
|
6639
|
-
* @param {string} moduleName Module to require
|
|
6640
|
-
* @returns {?Object} Required module if available and not empty, otherwise `null`
|
|
6641
|
-
* @deprecated Legacy optional require helper. Will be removed in a future release.
|
|
6642
|
-
*/
|
|
6643
|
-
function inquire(moduleName) {
|
|
6644
|
-
try {
|
|
6645
|
-
if (typeof require !== "function") {
|
|
6646
|
-
return null;
|
|
6647
|
-
}
|
|
6648
|
-
var mod = require(moduleName);
|
|
6649
|
-
if (mod && (mod.length || Object.keys(mod).length)) return mod;
|
|
6650
|
-
return null;
|
|
6651
|
-
} catch (err) {
|
|
6652
|
-
// ignore
|
|
6653
|
-
return null;
|
|
6654
|
-
}
|
|
6655
|
-
}
|
|
6656
|
-
|
|
6657
|
-
/*
|
|
6658
|
-
// maybe worth a shot to prevent renaming issues:
|
|
6659
|
-
// see: https://github.com/webpack/webpack/blob/master/lib/dependencies/CommonJsRequireDependencyParserPlugin.js
|
|
6660
|
-
// triggers on:
|
|
6661
|
-
// - expression require.cache
|
|
6662
|
-
// - expression require (???)
|
|
6663
|
-
// - call require
|
|
6664
|
-
// - call require:commonjs:item
|
|
6665
|
-
// - call require:commonjs:context
|
|
6666
|
-
|
|
6667
|
-
Object.defineProperty(Function.prototype, "__self", { get: function() { return this; } });
|
|
6668
|
-
var r = require.__self;
|
|
6669
|
-
delete Function.prototype.__self;
|
|
6670
|
-
*/
|
|
6671
|
-
|
|
6672
|
-
},{}],33:[function(require,module,exports){
|
|
6673
|
-
"use strict";
|
|
6674
6634
|
module.exports = LongBits;
|
|
6675
6635
|
|
|
6676
|
-
var util = require(
|
|
6636
|
+
var util = require(33);
|
|
6677
6637
|
|
|
6678
6638
|
/**
|
|
6679
6639
|
* Constructs new long bits.
|
|
@@ -6871,7 +6831,7 @@ LongBits.prototype.length = function length() {
|
|
|
6871
6831
|
: part2 < 128 ? 9 : 10;
|
|
6872
6832
|
};
|
|
6873
6833
|
|
|
6874
|
-
},{"
|
|
6834
|
+
},{"33":33}],33:[function(require,module,exports){
|
|
6875
6835
|
"use strict";
|
|
6876
6836
|
var util = exports;
|
|
6877
6837
|
|
|
@@ -6887,17 +6847,14 @@ util.EventEmitter = require(28);
|
|
|
6887
6847
|
// float handling accross browsers
|
|
6888
6848
|
util.float = require(30);
|
|
6889
6849
|
|
|
6890
|
-
// requires modules optionally and hides the call from bundlers
|
|
6891
|
-
util.inquire = require(32);
|
|
6892
|
-
|
|
6893
6850
|
// converts to / from utf8 encoded strings
|
|
6894
|
-
util.utf8 = require(
|
|
6851
|
+
util.utf8 = require(37);
|
|
6895
6852
|
|
|
6896
6853
|
// provides a node-like buffer pool in the browser
|
|
6897
|
-
util.pool = require(
|
|
6854
|
+
util.pool = require(36);
|
|
6898
6855
|
|
|
6899
6856
|
// utility to work with the low and high bits of a 64 bit value
|
|
6900
|
-
util.LongBits = require(
|
|
6857
|
+
util.LongBits = require(32);
|
|
6901
6858
|
|
|
6902
6859
|
/**
|
|
6903
6860
|
* Tests if the specified key can affect object prototypes.
|
|
@@ -7391,7 +7348,7 @@ util._configure = function() {
|
|
|
7391
7348
|
};
|
|
7392
7349
|
};
|
|
7393
7350
|
|
|
7394
|
-
},{"25":25,"26":26,"28":28,"30":30,"32":32,"
|
|
7351
|
+
},{"25":25,"26":26,"28":28,"30":30,"32":32,"36":36,"37":37,"long":"long"}],34:[function(require,module,exports){
|
|
7395
7352
|
"use strict";
|
|
7396
7353
|
|
|
7397
7354
|
/**
|
|
@@ -7465,7 +7422,7 @@ path.resolve = function resolve(originPath, includePath, alreadyNormalized) {
|
|
|
7465
7422
|
return (originPath = originPath.replace(/(?:\/|^)[^/]+$/, "")).length ? normalize(originPath + "/" + includePath) : includePath;
|
|
7466
7423
|
};
|
|
7467
7424
|
|
|
7468
|
-
},{}],
|
|
7425
|
+
},{}],35:[function(require,module,exports){
|
|
7469
7426
|
"use strict";
|
|
7470
7427
|
|
|
7471
7428
|
var patterns = exports;
|
|
@@ -7474,7 +7431,7 @@ patterns.numberRe = /^(?![eE])[0-9]*(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?$/;
|
|
|
7474
7431
|
patterns.typeRefRe = /^(?:\.?[a-zA-Z_][a-zA-Z_0-9]*)(?:\.[a-zA-Z_][a-zA-Z_0-9]*)*$/;
|
|
7475
7432
|
patterns.reservedRe = /^(?:do|if|in|for|let|new|try|var|case|else|enum|eval|false|null|this|true|void|with|break|catch|class|const|super|throw|while|yield|delete|export|import|public|return|static|switch|typeof|default|extends|finally|package|private|continue|debugger|function|arguments|interface|protected|implements|instanceof)$/;
|
|
7476
7433
|
|
|
7477
|
-
},{}],
|
|
7434
|
+
},{}],36:[function(require,module,exports){
|
|
7478
7435
|
"use strict";
|
|
7479
7436
|
module.exports = pool;
|
|
7480
7437
|
|
|
@@ -7524,7 +7481,7 @@ function pool(alloc, slice, size) {
|
|
|
7524
7481
|
};
|
|
7525
7482
|
}
|
|
7526
7483
|
|
|
7527
|
-
},{}],
|
|
7484
|
+
},{}],37:[function(require,module,exports){
|
|
7528
7485
|
"use strict";
|
|
7529
7486
|
|
|
7530
7487
|
/**
|
|
@@ -7656,7 +7613,7 @@ utf8.write = function utf8_write(string, buffer, offset) {
|
|
|
7656
7613
|
return offset - start;
|
|
7657
7614
|
};
|
|
7658
7615
|
|
|
7659
|
-
},{}],
|
|
7616
|
+
},{}],38:[function(require,module,exports){
|
|
7660
7617
|
"use strict";
|
|
7661
7618
|
module.exports = verifier;
|
|
7662
7619
|
|
|
@@ -7838,7 +7795,7 @@ function verifier(mtype) {
|
|
|
7838
7795
|
/* eslint-enable no-unexpected-multiline */
|
|
7839
7796
|
}
|
|
7840
7797
|
|
|
7841
|
-
},{"24":24,"5":5}],
|
|
7798
|
+
},{"24":24,"5":5}],39:[function(require,module,exports){
|
|
7842
7799
|
"use strict";
|
|
7843
7800
|
|
|
7844
7801
|
/**
|
|
@@ -7849,7 +7806,7 @@ function verifier(mtype) {
|
|
|
7849
7806
|
var wrappers = exports;
|
|
7850
7807
|
|
|
7851
7808
|
var Message = require(10),
|
|
7852
|
-
util = require(
|
|
7809
|
+
util = require(33);
|
|
7853
7810
|
|
|
7854
7811
|
/**
|
|
7855
7812
|
* From object converter part of an {@link IWrapper}.
|
|
@@ -7946,11 +7903,11 @@ wrappers[".google.protobuf.Any"] = {
|
|
|
7946
7903
|
}
|
|
7947
7904
|
};
|
|
7948
7905
|
|
|
7949
|
-
},{"10":10,"
|
|
7906
|
+
},{"10":10,"33":33}],40:[function(require,module,exports){
|
|
7950
7907
|
"use strict";
|
|
7951
7908
|
module.exports = Writer;
|
|
7952
7909
|
|
|
7953
|
-
var util = require(
|
|
7910
|
+
var util = require(33);
|
|
7954
7911
|
|
|
7955
7912
|
var BufferWriter; // cyclic
|
|
7956
7913
|
|
|
@@ -8443,15 +8400,15 @@ Writer._configure = function(BufferWriter_) {
|
|
|
8443
8400
|
BufferWriter._configure();
|
|
8444
8401
|
};
|
|
8445
8402
|
|
|
8446
|
-
},{"
|
|
8403
|
+
},{"33":33}],41:[function(require,module,exports){
|
|
8447
8404
|
"use strict";
|
|
8448
8405
|
module.exports = BufferWriter;
|
|
8449
8406
|
|
|
8450
8407
|
// extends Writer
|
|
8451
|
-
var Writer = require(
|
|
8408
|
+
var Writer = require(40);
|
|
8452
8409
|
(BufferWriter.prototype = Object.create(Writer.prototype)).constructor = BufferWriter;
|
|
8453
8410
|
|
|
8454
|
-
var util = require(
|
|
8411
|
+
var util = require(33);
|
|
8455
8412
|
|
|
8456
8413
|
/**
|
|
8457
8414
|
* Constructs a new buffer writer instance.
|
|
@@ -8547,7 +8504,7 @@ BufferWriter.prototype.string = function write_string_buffer(value) {
|
|
|
8547
8504
|
|
|
8548
8505
|
BufferWriter._configure();
|
|
8549
8506
|
|
|
8550
|
-
},{"
|
|
8507
|
+
},{"33":33,"40":40}]},{},[7])
|
|
8551
8508
|
|
|
8552
8509
|
})();
|
|
8553
8510
|
//# sourceMappingURL=protobuf.js.map
|