963 lines
340 KiB
Diff
963 lines
340 KiB
Diff
|
diff --git a/node_modules/protobufjs/dist/light/protobuf.js b/node_modules/protobufjs/dist/light/protobuf.js
|
||
|
index 4862f59..989dc47 100644
|
||
|
--- a/node_modules/protobufjs/dist/light/protobuf.js
|
||
|
+++ b/node_modules/protobufjs/dist/light/protobuf.js
|
||
|
@@ -1,6 +1,6 @@
|
||
|
/*!
|
||
|
* protobuf.js v7.3.2 (c) 2016, daniel wirtz
|
||
|
- * compiled wed, 12 jun 2024 08:24:21 utc
|
||
|
+ * compiled mon, 24 jun 2024 23:18:03 utc
|
||
|
* licensed under the bsd-3-clause license
|
||
|
* see: https://github.com/dcodeio/protobuf.js for details
|
||
|
*/
|
||
|
@@ -1435,6 +1435,7 @@ function decoder(mtype) {
|
||
|
("r=Reader.create(r)")
|
||
|
("var c=l===undefined?r.len:r.pos+l,m=new this.ctor" + (mtype.fieldsArray.filter(function(field) { return field.map; }).length ? ",k,value" : ""))
|
||
|
("while(r.pos<c){")
|
||
|
+ ("var unknownStartPos = r.pos")
|
||
|
("var t=r.uint32()");
|
||
|
if (mtype.group) gen
|
||
|
("if((t&7)===4)")
|
||
|
@@ -1442,6 +1443,8 @@ function decoder(mtype) {
|
||
|
gen
|
||
|
("switch(t>>>3){");
|
||
|
|
||
|
+ var unknownRef = "m" + util.safeProp("$unknownFields");
|
||
|
+
|
||
|
var i = 0;
|
||
|
for (; i < /* initializes */ mtype.fieldsArray.length; ++i) {
|
||
|
var field = mtype._fieldsArray[i].resolve(),
|
||
|
@@ -1524,6 +1527,11 @@ function decoder(mtype) {
|
||
|
} gen
|
||
|
("default:")
|
||
|
("r.skipType(t&7)")
|
||
|
+ ("if (!(%s)) {", unknownRef)
|
||
|
+ ("%s = []", unknownRef)
|
||
|
+ ("}")
|
||
|
+
|
||
|
+ ("%s.push(r.buf.slice(unknownStartPos, r.pos))", unknownRef)
|
||
|
("break")
|
||
|
|
||
|
("}")
|
||
|
@@ -1581,6 +1589,21 @@ function encoder(mtype) {
|
||
|
// "when a message is serialized its known fields should be written sequentially by field number"
|
||
|
var fields = /* initializes */ mtype.fieldsArray.slice().sort(util.compareFieldsById);
|
||
|
|
||
|
+ var unknownRef = "m" + util.safeProp("$unknownFields");
|
||
|
+
|
||
|
+ // Redecode unknown fields and apply them to the message before encoding
|
||
|
+ gen
|
||
|
+ ("var fullyUnknown=[]")
|
||
|
+ ("if(%s&&this.ctor.decode) {", unknownRef)
|
||
|
+ ("for(var i=0;i<%s.length;++i) {", unknownRef)
|
||
|
+ ("try {")
|
||
|
+ ("var known=this.ctor.decode(%s[i])", unknownRef)
|
||
|
+ ("fullyUnknown=fullyUnknown.concat(known.$unknownFields||[])")
|
||
|
+ ("m=Object.assign(known,m)")
|
||
|
+ ("}catch(_){}")
|
||
|
+ ("}")
|
||
|
+ ("}");
|
||
|
+
|
||
|
for (var i = 0; i < fields.length; ++i) {
|
||
|
var field = fields[i].resolve(),
|
||
|
index = mtype._fieldsArray.indexOf(field),
|
||
|
@@ -1639,6 +1662,11 @@ function encoder(mtype) {
|
||
|
}
|
||
|
}
|
||
|
|
||
|
+ gen
|
||
|
+ ("for(var i=0;i<fullyUnknown.length;++i) {")
|
||
|
+ ("w._unknownField(fullyUnknown[i])")
|
||
|
+ ("}");
|
||
|
+
|
||
|
return gen
|
||
|
("return w");
|
||
|
/* eslint-enable no-unexpected-multiline, block-scoped-var, no-redeclare */
|
||
|
@@ -7207,6 +7235,11 @@ Writer.prototype.bytes = function write_bytes(value) {
|
||
|
return this.uint32(len)._push(writeBytes, len, value);
|
||
|
};
|
||
|
|
||
|
+
|
||
|
+Writer.prototype._unknownField = function __unknownField(field) {
|
||
|
+ return this._push(writeBytes, field.length, field);
|
||
|
+};
|
||
|
+
|
||
|
/**
|
||
|
* Writes a string.
|
||
|
* @param {string} value Value to write
|
||
|
diff --git a/node_modules/protobufjs/dist/light/protobuf.min.js b/node_modules/protobufjs/dist/light/protobuf.min.js
|
||
|
index c8a41c2..ea81579 100644
|
||
|
--- a/node_modules/protobufjs/dist/light/protobuf.min.js
|
||
|
+++ b/node_modules/protobufjs/dist/light/protobuf.min.js
|
||
|
@@ -1,8 +1,8 @@
|
||
|
/*!
|
||
|
* protobuf.js v7.3.2 (c) 2016, daniel wirtz
|
||
|
- * compiled wed, 12 jun 2024 08:24:21 utc
|
||
|
+ * compiled mon, 24 jun 2024 23:18:03 utc
|
||
|
* licensed under the bsd-3-clause license
|
||
|
* see: https://github.com/dcodeio/protobuf.js for details
|
||
|
*/
|
||
|
-!function(g){"use strict";!function(r,e,t){var i=function t(i){var n=e[i];return n||r[i][0].call(n=e[i]={exports:{}},t,n,n.exports),n.exports}(t[0]);i.util.global.protobuf=i,"function"==typeof define&&define.amd&&define(["long"],function(t){return t&&t.isLong&&(i.util.Long=t,i.configure()),i}),"object"==typeof module&&module&&module.exports&&(module.exports=i)}({1:[function(t,i,n){i.exports=function(t,i){var n=Array(arguments.length-1),s=0,r=2,u=!0;for(;r<arguments.length;)n[s++]=arguments[r++];return new Promise(function(r,e){n[s]=function(t){if(u)if(u=!1,t)e(t);else{for(var i=Array(arguments.length-1),n=0;n<i.length;)i[n++]=arguments[n];r.apply(null,i)}};try{t.apply(i||null,n)}catch(t){u&&(u=!1,e(t))}})}},{}],2:[function(t,i,n){n.length=function(t){var i=t.length;if(!i)return 0;for(var n=0;1<--i%4&&"="==(t[0|i]||"");)++n;return Math.ceil(3*t.length)/4-n};for(var f=Array(64),h=Array(123),r=0;r<64;)h[f[r]=r<26?r+65:r<52?r+71:r<62?r-4:r-59|43]=r++;n.encode=function(t,i,n){for(var r,e=null,s=[],u=0,o=0;i<n;){var h=t[i++];switch(o){case 0:s[u++]=f[h>>2],r=(3&h)<<4,o=1;break;case 1:s[u++]=f[r|h>>4],r=(15&h)<<2,o=2;break;case 2:s[u++]=f[r|h>>6],s[u++]=f[63&h],o=0}8191<u&&((e=e||[]).push(String.fromCharCode.apply(String,s)),u=0)}return o&&(s[u++]=f[r],s[u++]=61,1===o&&(s[u++]=61)),e?(u&&e.push(String.fromCharCode.apply(String,s.slice(0,u))),e.join("")):String.fromCharCode.apply(String,s.slice(0,u))};var c="invalid encoding";n.decode=function(t,i,n){for(var r,e=n,s=0,u=0;u<t.length;){var o=t.charCodeAt(u++);if(61==o&&1<s)break;if((o=h[o])===g)throw Error(c);switch(s){case 0:r=o,s=1;break;case 1:i[n++]=r<<2|(48&o)>>4,r=o,s=2;break;case 2:i[n++]=(15&r)<<4|(60&o)>>2,r=o,s=3;break;case 3:i[n++]=(3&r)<<6|o,s=0}}if(1===s)throw Error(c);return n-e},n.test=function(t){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(t)}},{}],3:[function(t,i,n){function a(i,n){"string"==typeof i&&(n=i,i=g);var h=[];function f(t){if("string"!=typeof t){var i=c();if(a.verbose&&console.log("codegen: "+i),i="return "+i,t){for(var n=Object.keys(t),r=Array(n.length+1),e=Array(n.length),s=0;s<n.length;)r[s]=n[s],e[s]=t[n[s++]];return r[s]=i,Function.apply(null,r).apply(null,e)}return Function(i)()}for(var u=Array(arguments.length-1),o=0;o<u.length;)u[o]=arguments[++o];if(o=0,t=t.replace(/%([%dfijs])/g,function(t,i){var n=u[o++];switch(i){case"d":case"f":return""+ +(""+n);case"i":return""+Math.floor(n);case"j":return JSON.stringify(n);case"s":return""+n}return"%"}),o!==u.length)throw Error("parameter count mismatch");return h.push(t),f}function c(t){return"function "+(t||n||"")+"("+(i&&i.join(",")||"")+"){\n "+h.join("\n ")+"\n}"}return f.toString=c,f}(i.exports=a).verbose=!1},{}],4:[function(t,i,n){function r(){this.t={}}(i.exports=r).prototype.on=function(t,i,n){return(this.t[t]||(this.t[t]=[])).push({fn:i,ctx:n||this}),this},r.prototype.off=function(t,i){if(t===g)this.t={};else if(i===g)this.t[t]=[];else for(var n=this.t[t],r=0;r<n.length;)n[r].fn===i?n.splice(r,1):++r;return this},r.prototype.emit=function(t){var i=this.t[t];if(i){for(var n=[],r=1;r<arguments.length;)n.push(arguments[r++]);for(r=0;r<i.length;)i[r].fn.apply(i[r++].ctx,n)}return this}},{}],5:[function(t,i,n){i.exports=o;var s=t(1),u=t(7)("fs");function o(n,r,e){return r="function"==typeof r?(e=r,{}):r||{},e?!r.xhr&&u&&u.readFile?u.readFile(n,function(t,i){return t&&"undefined"!=typeof XMLHttpRequest?o.xhr(n,r,e):t?e(t):e(null,r.binary?i:i.toString("utf8"))}):o.xhr(n,r,e):s(o,this,n,r)}o.xhr=function(t,n,r){var e=new XMLHttpRequest;e.onreadystatechange=function(){if(4!==e.readyState)return g;if(0!==e.status&&200!==e.status)return r(Error("status "+e.status));if(n.binary){if(!(t=e.response))for(var t=[],i=0;i<e.responseText.length;++i)t.push(255&e.responseText.charCodeAt(i));return r(null,"undefined"!=typeof Uint8Array?new Uint8Array(t):t)}return r(null,e.responseText)},n.binary&&("overrideMimeType"in e&&e.overrideMimeType("text/plain; charset=x-user-defined"),e.responseType="arraybuffer"),e.open("GET",t),e.send()}},{1:1,7:7}],6:[function(t,i,n){function r(t){fu
|
||
|
+!function(g){"use strict";!function(r,e,t){var i=function t(i){var n=e[i];return n||r[i][0].call(n=e[i]={exports:{}},t,n,n.exports),n.exports}(t[0]);i.util.global.protobuf=i,"function"==typeof define&&define.amd&&define(["long"],function(t){return t&&t.isLong&&(i.util.Long=t,i.configure()),i}),"object"==typeof module&&module&&module.exports&&(module.exports=i)}({1:[function(t,i,n){i.exports=function(t,i){var n=Array(arguments.length-1),s=0,r=2,o=!0;for(;r<arguments.length;)n[s++]=arguments[r++];return new Promise(function(r,e){n[s]=function(t){if(o)if(o=!1,t)e(t);else{for(var i=Array(arguments.length-1),n=0;n<i.length;)i[n++]=arguments[n];r.apply(null,i)}};try{t.apply(i||null,n)}catch(t){o&&(o=!1,e(t))}})}},{}],2:[function(t,i,n){n.length=function(t){var i=t.length;if(!i)return 0;for(var n=0;1<--i%4&&"="==(t[0|i]||"");)++n;return Math.ceil(3*t.length)/4-n};for(var f=Array(64),h=Array(123),r=0;r<64;)h[f[r]=r<26?r+65:r<52?r+71:r<62?r-4:r-59|43]=r++;n.encode=function(t,i,n){for(var r,e=null,s=[],o=0,u=0;i<n;){var h=t[i++];switch(u){case 0:s[o++]=f[h>>2],r=(3&h)<<4,u=1;break;case 1:s[o++]=f[r|h>>4],r=(15&h)<<2,u=2;break;case 2:s[o++]=f[r|h>>6],s[o++]=f[63&h],u=0}8191<o&&((e=e||[]).push(String.fromCharCode.apply(String,s)),o=0)}return u&&(s[o++]=f[r],s[o++]=61,1===u&&(s[o++]=61)),e?(o&&e.push(String.fromCharCode.apply(String,s.slice(0,o))),e.join("")):String.fromCharCode.apply(String,s.slice(0,o))};var c="invalid encoding";n.decode=function(t,i,n){for(var r,e=n,s=0,o=0;o<t.length;){var u=t.charCodeAt(o++);if(61==u&&1<s)break;if((u=h[u])===g)throw Error(c);switch(s){case 0:r=u,s=1;break;case 1:i[n++]=r<<2|(48&u)>>4,r=u,s=2;break;case 2:i[n++]=(15&r)<<4|(60&u)>>2,r=u,s=3;break;case 3:i[n++]=(3&r)<<6|u,s=0}}if(1===s)throw Error(c);return n-e},n.test=function(t){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(t)}},{}],3:[function(t,i,n){function a(i,n){"string"==typeof i&&(n=i,i=g);var h=[];function f(t){if("string"!=typeof t){var i=c();if(a.verbose&&console.log("codegen: "+i),i="return "+i,t){for(var n=Object.keys(t),r=Array(n.length+1),e=Array(n.length),s=0;s<n.length;)r[s]=n[s],e[s]=t[n[s++]];return r[s]=i,Function.apply(null,r).apply(null,e)}return Function(i)()}for(var o=Array(arguments.length-1),u=0;u<o.length;)o[u]=arguments[++u];if(u=0,t=t.replace(/%([%dfijs])/g,function(t,i){var n=o[u++];switch(i){case"d":case"f":return""+ +(""+n);case"i":return""+Math.floor(n);case"j":return JSON.stringify(n);case"s":return""+n}return"%"}),u!==o.length)throw Error("parameter count mismatch");return h.push(t),f}function c(t){return"function "+(t||n||"")+"("+(i&&i.join(",")||"")+"){\n "+h.join("\n ")+"\n}"}return f.toString=c,f}(i.exports=a).verbose=!1},{}],4:[function(t,i,n){function r(){this.t={}}(i.exports=r).prototype.on=function(t,i,n){return(this.t[t]||(this.t[t]=[])).push({fn:i,ctx:n||this}),this},r.prototype.off=function(t,i){if(t===g)this.t={};else if(i===g)this.t[t]=[];else for(var n=this.t[t],r=0;r<n.length;)n[r].fn===i?n.splice(r,1):++r;return this},r.prototype.emit=function(t){var i=this.t[t];if(i){for(var n=[],r=1;r<arguments.length;)n.push(arguments[r++]);for(r=0;r<i.length;)i[r].fn.apply(i[r++].ctx,n)}return this}},{}],5:[function(t,i,n){i.exports=u;var s=t(1),o=t(7)("fs");function u(n,r,e){return r="function"==typeof r?(e=r,{}):r||{},e?!r.xhr&&o&&o.readFile?o.readFile(n,function(t,i){return t&&"undefined"!=typeof XMLHttpRequest?u.xhr(n,r,e):t?e(t):e(null,r.binary?i:i.toString("utf8"))}):u.xhr(n,r,e):s(u,this,n,r)}u.xhr=function(t,n,r){var e=new XMLHttpRequest;e.onreadystatechange=function(){if(4!==e.readyState)return g;if(0!==e.status&&200!==e.status)return r(Error("status "+e.status));if(n.binary){if(!(t=e.response))for(var t=[],i=0;i<e.responseText.length;++i)t.push(255&e.responseText.charCodeAt(i));return r(null,"undefined"!=typeof Uint8Array?new Uint8Array(t):t)}return r(null,e.responseText)},n.binary&&("overrideMimeType"in e&&e.overrideMimeType("text/plain; charset=x-user-defined"),e.responseType="arraybuffer"),e.open("GET",t),e.send()}},{1:1,7:7}],6:[function(t,i,n){function r(t){fu
|
||
|
//# sourceMappingURL=protobuf.min.js.map
|
||
|
diff --git a/node_modules/protobufjs/dist/minimal/protobuf.js b/node_modules/protobufjs/dist/minimal/protobuf.js
|
||
|
index 263f96e..748e63f 100644
|
||
|
--- a/node_modules/protobufjs/dist/minimal/protobuf.js
|
||
|
+++ b/node_modules/protobufjs/dist/minimal/protobuf.js
|
||
|
@@ -1,6 +1,6 @@
|
||
|
/*!
|
||
|
* protobuf.js v7.3.2 (c) 2016, daniel wirtz
|
||
|
- * compiled wed, 12 jun 2024 08:24:21 utc
|
||
|
+ * compiled mon, 24 jun 2024 23:18:03 utc
|
||
|
* licensed under the bsd-3-clause license
|
||
|
* see: https://github.com/dcodeio/protobuf.js for details
|
||
|
*/
|
||
|
@@ -2562,6 +2562,11 @@ Writer.prototype.bytes = function write_bytes(value) {
|
||
|
return this.uint32(len)._push(writeBytes, len, value);
|
||
|
};
|
||
|
|
||
|
+
|
||
|
+Writer.prototype._unknownField = function __unknownField(field) {
|
||
|
+ return this._push(writeBytes, field.length, field);
|
||
|
+};
|
||
|
+
|
||
|
/**
|
||
|
* Writes a string.
|
||
|
* @param {string} value Value to write
|
||
|
diff --git a/node_modules/protobufjs/dist/minimal/protobuf.min.js b/node_modules/protobufjs/dist/minimal/protobuf.min.js
|
||
|
index 1841eae..ad583eb 100644
|
||
|
--- a/node_modules/protobufjs/dist/minimal/protobuf.min.js
|
||
|
+++ b/node_modules/protobufjs/dist/minimal/protobuf.min.js
|
||
|
@@ -1,8 +1,8 @@
|
||
|
/*!
|
||
|
* protobuf.js v7.3.2 (c) 2016, daniel wirtz
|
||
|
- * compiled wed, 12 jun 2024 08:24:21 utc
|
||
|
+ * compiled mon, 24 jun 2024 23:18:03 utc
|
||
|
* licensed under the bsd-3-clause license
|
||
|
* see: https://github.com/dcodeio/protobuf.js for details
|
||
|
*/
|
||
|
-!function(d){"use strict";!function(r,u,t){var n=function t(n){var i=u[n];return i||r[n][0].call(i=u[n]={exports:{}},t,i,i.exports),i.exports}(t[0]);n.util.global.protobuf=n,"function"==typeof define&&define.amd&&define(["long"],function(t){return t&&t.isLong&&(n.util.Long=t,n.configure()),n}),"object"==typeof module&&module&&module.exports&&(module.exports=n)}({1:[function(t,n,i){n.exports=function(t,n){var i=Array(arguments.length-1),e=0,r=2,s=!0;for(;r<arguments.length;)i[e++]=arguments[r++];return new Promise(function(r,u){i[e]=function(t){if(s)if(s=!1,t)u(t);else{for(var n=Array(arguments.length-1),i=0;i<n.length;)n[i++]=arguments[i];r.apply(null,n)}};try{t.apply(n||null,i)}catch(t){s&&(s=!1,u(t))}})}},{}],2:[function(t,n,i){i.length=function(t){var n=t.length;if(!n)return 0;for(var i=0;1<--n%4&&"="==(t[0|n]||"");)++i;return Math.ceil(3*t.length)/4-i};for(var f=Array(64),o=Array(123),r=0;r<64;)o[f[r]=r<26?r+65:r<52?r+71:r<62?r-4:r-59|43]=r++;i.encode=function(t,n,i){for(var r,u=null,e=[],s=0,h=0;n<i;){var o=t[n++];switch(h){case 0:e[s++]=f[o>>2],r=(3&o)<<4,h=1;break;case 1:e[s++]=f[r|o>>4],r=(15&o)<<2,h=2;break;case 2:e[s++]=f[r|o>>6],e[s++]=f[63&o],h=0}8191<s&&((u=u||[]).push(String.fromCharCode.apply(String,e)),s=0)}return h&&(e[s++]=f[r],e[s++]=61,1===h&&(e[s++]=61)),u?(s&&u.push(String.fromCharCode.apply(String,e.slice(0,s))),u.join("")):String.fromCharCode.apply(String,e.slice(0,s))};var c="invalid encoding";i.decode=function(t,n,i){for(var r,u=i,e=0,s=0;s<t.length;){var h=t.charCodeAt(s++);if(61==h&&1<e)break;if((h=o[h])===d)throw Error(c);switch(e){case 0:r=h,e=1;break;case 1:n[i++]=r<<2|(48&h)>>4,r=h,e=2;break;case 2:n[i++]=(15&r)<<4|(60&h)>>2,r=h,e=3;break;case 3:n[i++]=(3&r)<<6|h,e=0}}if(1===e)throw Error(c);return i-u},i.test=function(t){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(t)}},{}],3:[function(t,n,i){function r(){this.t={}}(n.exports=r).prototype.on=function(t,n,i){return(this.t[t]||(this.t[t]=[])).push({fn:n,ctx:i||this}),this},r.prototype.off=function(t,n){if(t===d)this.t={};else if(n===d)this.t[t]=[];else for(var i=this.t[t],r=0;r<i.length;)i[r].fn===n?i.splice(r,1):++r;return this},r.prototype.emit=function(t){var n=this.t[t];if(n){for(var i=[],r=1;r<arguments.length;)i.push(arguments[r++]);for(r=0;r<n.length;)n[r].fn.apply(n[r++].ctx,i)}return this}},{}],4:[function(t,n,i){function r(t){function n(t,n,i,r){var u=n<0?1:0;t(0===(n=u?-n:n)?0<1/n?0:2147483648:isNaN(n)?2143289344:34028234663852886e22<n?(u<<31|2139095040)>>>0:n<11754943508222875e-54?(u<<31|Math.round(n/1401298464324817e-60))>>>0:(u<<31|127+(t=Math.floor(Math.log(n)/Math.LN2))<<23|8388607&Math.round(n*Math.pow(2,-t)*8388608))>>>0,i,r)}function i(t,n,i){t=t(n,i),n=2*(t>>31)+1,i=t>>>23&255,t&=8388607;return 255==i?t?NaN:1/0*n:0==i?1401298464324817e-60*n*t:n*Math.pow(2,i-150)*(8388608+t)}function r(t,n,i){h[0]=t,n[i]=o[0],n[i+1]=o[1],n[i+2]=o[2],n[i+3]=o[3]}function u(t,n,i){h[0]=t,n[i]=o[3],n[i+1]=o[2],n[i+2]=o[1],n[i+3]=o[0]}function e(t,n){return o[0]=t[n],o[1]=t[n+1],o[2]=t[n+2],o[3]=t[n+3],h[0]}function s(t,n){return o[3]=t[n],o[2]=t[n+1],o[1]=t[n+2],o[0]=t[n+3],h[0]}var h,o,f,c,a;function l(t,n,i,r,u,e){var s,h=r<0?1:0;0===(r=h?-r:r)?(t(0,u,e+n),t(0<1/r?0:2147483648,u,e+i)):isNaN(r)?(t(0,u,e+n),t(2146959360,u,e+i)):17976931348623157e292<r?(t(0,u,e+n),t((h<<31|2146435072)>>>0,u,e+i)):r<22250738585072014e-324?(t((s=r/5e-324)>>>0,u,e+n),t((h<<31|s/4294967296)>>>0,u,e+i)):(t(4503599627370496*(s=r*Math.pow(2,-(r=1024===(r=Math.floor(Math.log(r)/Math.LN2))?1023:r)))>>>0,u,e+n),t((h<<31|r+1023<<20|1048576*s&1048575)>>>0,u,e+i))}function v(t,n,i,r,u){n=t(r,u+n),t=t(r,u+i),r=2*(t>>31)+1,u=t>>>20&2047,i=4294967296*(1048575&t)+n;return 2047==u?i?NaN:1/0*r:0==u?5e-324*r*i:r*Math.pow(2,u-1075)*(i+4503599627370496)}function w(t,n,i){f[0]=t,n[i]=c[0],n[i+1]=c[1],n[i+2]=c[2],n[i+3]=c[3],n[i+4]=c[4],n[i+5]=c[5],n[i+6]=c[6],n[i+7]=c[7]}function b(t,n,i){f[0]=t,n[i]=c[7],n[i+1]=c[6],n[i+2]=c[5],n[i+3]=c[4],n[i+4]=c[3],n[i+5]=c[2],n[i+6]=c[1],n[i+7]=c[0]}function y(t,n){return c[0]=t[n],c[1]=t[n+1],c[2]=t[n+2],c[3
|
||
|
+!function(d){"use strict";!function(r,u,t){var n=function t(n){var i=u[n];return i||r[n][0].call(i=u[n]={exports:{}},t,i,i.exports),i.exports}(t[0]);n.util.global.protobuf=n,"function"==typeof define&&define.amd&&define(["long"],function(t){return t&&t.isLong&&(n.util.Long=t,n.configure()),n}),"object"==typeof module&&module&&module.exports&&(module.exports=n)}({1:[function(t,n,i){n.exports=function(t,n){var i=Array(arguments.length-1),e=0,r=2,s=!0;for(;r<arguments.length;)i[e++]=arguments[r++];return new Promise(function(r,u){i[e]=function(t){if(s)if(s=!1,t)u(t);else{for(var n=Array(arguments.length-1),i=0;i<n.length;)n[i++]=arguments[i];r.apply(null,n)}};try{t.apply(n||null,i)}catch(t){s&&(s=!1,u(t))}})}},{}],2:[function(t,n,i){i.length=function(t){var n=t.length;if(!n)return 0;for(var i=0;1<--n%4&&"="==(t[0|n]||"");)++i;return Math.ceil(3*t.length)/4-i};for(var f=Array(64),o=Array(123),r=0;r<64;)o[f[r]=r<26?r+65:r<52?r+71:r<62?r-4:r-59|43]=r++;i.encode=function(t,n,i){for(var r,u=null,e=[],s=0,h=0;n<i;){var o=t[n++];switch(h){case 0:e[s++]=f[o>>2],r=(3&o)<<4,h=1;break;case 1:e[s++]=f[r|o>>4],r=(15&o)<<2,h=2;break;case 2:e[s++]=f[r|o>>6],e[s++]=f[63&o],h=0}8191<s&&((u=u||[]).push(String.fromCharCode.apply(String,e)),s=0)}return h&&(e[s++]=f[r],e[s++]=61,1===h&&(e[s++]=61)),u?(s&&u.push(String.fromCharCode.apply(String,e.slice(0,s))),u.join("")):String.fromCharCode.apply(String,e.slice(0,s))};var c="invalid encoding";i.decode=function(t,n,i){for(var r,u=i,e=0,s=0;s<t.length;){var h=t.charCodeAt(s++);if(61==h&&1<e)break;if((h=o[h])===d)throw Error(c);switch(e){case 0:r=h,e=1;break;case 1:n[i++]=r<<2|(48&h)>>4,r=h,e=2;break;case 2:n[i++]=(15&r)<<4|(60&h)>>2,r=h,e=3;break;case 3:n[i++]=(3&r)<<6|h,e=0}}if(1===e)throw Error(c);return i-u},i.test=function(t){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(t)}},{}],3:[function(t,n,i){function r(){this.t={}}(n.exports=r).prototype.on=function(t,n,i){return(this.t[t]||(this.t[t]=[])).push({fn:n,ctx:i||this}),this},r.prototype.off=function(t,n){if(t===d)this.t={};else if(n===d)this.t[t]=[];else for(var i=this.t[t],r=0;r<i.length;)i[r].fn===n?i.splice(r,1):++r;return this},r.prototype.emit=function(t){var n=this.t[t];if(n){for(var i=[],r=1;r<arguments.length;)i.push(arguments[r++]);for(r=0;r<n.length;)n[r].fn.apply(n[r++].ctx,i)}return this}},{}],4:[function(t,n,i){function r(t){function n(t,n,i,r){var u=n<0?1:0;t(0===(n=u?-n:n)?0<1/n?0:2147483648:isNaN(n)?2143289344:34028234663852886e22<n?(u<<31|2139095040)>>>0:n<11754943508222875e-54?(u<<31|Math.round(n/1401298464324817e-60))>>>0:(u<<31|127+(t=Math.floor(Math.log(n)/Math.LN2))<<23|8388607&Math.round(n*Math.pow(2,-t)*8388608))>>>0,i,r)}function i(t,n,i){t=t(n,i),n=2*(t>>31)+1,i=t>>>23&255,t&=8388607;return 255==i?t?NaN:1/0*n:0==i?1401298464324817e-60*n*t:n*Math.pow(2,i-150)*(8388608+t)}function r(t,n,i){h[0]=t,n[i]=o[0],n[i+1]=o[1],n[i+2]=o[2],n[i+3]=o[3]}function u(t,n,i){h[0]=t,n[i]=o[3],n[i+1]=o[2],n[i+2]=o[1],n[i+3]=o[0]}function e(t,n){return o[0]=t[n],o[1]=t[n+1],o[2]=t[n+2],o[3]=t[n+3],h[0]}function s(t,n){return o[3]=t[n],o[2]=t[n+1],o[1]=t[n+2],o[0]=t[n+3],h[0]}var h,o,f,c,a;function l(t,n,i,r,u,e){var s,h=r<0?1:0;0===(r=h?-r:r)?(t(0,u,e+n),t(0<1/r?0:2147483648,u,e+i)):isNaN(r)?(t(0,u,e+n),t(2146959360,u,e+i)):17976931348623157e292<r?(t(0,u,e+n),t((h<<31|2146435072)>>>0,u,e+i)):r<22250738585072014e-324?(t((s=r/5e-324)>>>0,u,e+n),t((h<<31|s/4294967296)>>>0,u,e+i)):(t(4503599627370496*(s=r*Math.pow(2,-(r=1024===(r=Math.floor(Math.log(r)/Math.LN2))?1023:r)))>>>0,u,e+n),t((h<<31|r+1023<<20|1048576*s&1048575)>>>0,u,e+i))}function v(t,n,i,r,u){n=t(r,u+n),t=t(r,u+i),r=2*(t>>31)+1,u=t>>>20&2047,i=4294967296*(1048575&t)+n;return 2047==u?i?NaN:1/0*r:0==u?5e-324*r*i:r*Math.pow(2,u-1075)*(i+4503599627370496)}function w(t,n,i){f[0]=t,n[i]=c[0],n[i+1]=c[1],n[i+2]=c[2],n[i+3]=c[3],n[i+4]=c[4],n[i+5]=c[5],n[i+6]=c[6],n[i+7]=c[7]}function b(t,n,i){f[0]=t,n[i]=c[7],n[i+1]=c[6],n[i+2]=c[5],n[i+3]=c[4],n[i+4]=c[3],n[i+5]=c[2],n[i+6]=c[1],n[i+7]=c[0]}function y(t,n){return c[0]=t[n],c[1]=t[n+1],c[2]=t[n+2],c[3
|
||
|
//# sourceMappingURL=protobuf.min.js.map
|
||
|
diff --git a/node_modules/protobufjs/dist/protobuf.js b/node_modules/protobufjs/dist/protobuf.js
|
||
|
index 067305a..8f36174 100644
|
||
|
--- a/node_modules/protobufjs/dist/protobuf.js
|
||
|
+++ b/node_modules/protobufjs/dist/protobuf.js
|
||
|
@@ -1,6 +1,6 @@
|
||
|
/*!
|
||
|
* protobuf.js v7.3.2 (c) 2016, daniel wirtz
|
||
|
- * compiled wed, 12 jun 2024 08:24:21 utc
|
||
|
+ * compiled mon, 24 jun 2024 23:18:03 utc
|
||
|
* licensed under the bsd-3-clause license
|
||
|
* see: https://github.com/dcodeio/protobuf.js for details
|
||
|
*/
|
||
|
@@ -1836,6 +1836,7 @@ function decoder(mtype) {
|
||
|
("r=Reader.create(r)")
|
||
|
("var c=l===undefined?r.len:r.pos+l,m=new this.ctor" + (mtype.fieldsArray.filter(function(field) { return field.map; }).length ? ",k,value" : ""))
|
||
|
("while(r.pos<c){")
|
||
|
+ ("var unknownStartPos = r.pos")
|
||
|
("var t=r.uint32()");
|
||
|
if (mtype.group) gen
|
||
|
("if((t&7)===4)")
|
||
|
@@ -1843,6 +1844,8 @@ function decoder(mtype) {
|
||
|
gen
|
||
|
("switch(t>>>3){");
|
||
|
|
||
|
+ var unknownRef = "m" + util.safeProp("$unknownFields");
|
||
|
+
|
||
|
var i = 0;
|
||
|
for (; i < /* initializes */ mtype.fieldsArray.length; ++i) {
|
||
|
var field = mtype._fieldsArray[i].resolve(),
|
||
|
@@ -1925,6 +1928,11 @@ function decoder(mtype) {
|
||
|
} gen
|
||
|
("default:")
|
||
|
("r.skipType(t&7)")
|
||
|
+ ("if (!(%s)) {", unknownRef)
|
||
|
+ ("%s = []", unknownRef)
|
||
|
+ ("}")
|
||
|
+
|
||
|
+ ("%s.push(r.buf.slice(unknownStartPos, r.pos))", unknownRef)
|
||
|
("break")
|
||
|
|
||
|
("}")
|
||
|
@@ -1982,6 +1990,21 @@ function encoder(mtype) {
|
||
|
// "when a message is serialized its known fields should be written sequentially by field number"
|
||
|
var fields = /* initializes */ mtype.fieldsArray.slice().sort(util.compareFieldsById);
|
||
|
|
||
|
+ var unknownRef = "m" + util.safeProp("$unknownFields");
|
||
|
+
|
||
|
+ // Redecode unknown fields and apply them to the message before encoding
|
||
|
+ gen
|
||
|
+ ("var fullyUnknown=[]")
|
||
|
+ ("if(%s&&this.ctor.decode) {", unknownRef)
|
||
|
+ ("for(var i=0;i<%s.length;++i) {", unknownRef)
|
||
|
+ ("try {")
|
||
|
+ ("var known=this.ctor.decode(%s[i])", unknownRef)
|
||
|
+ ("fullyUnknown=fullyUnknown.concat(known.$unknownFields||[])")
|
||
|
+ ("m=Object.assign(known,m)")
|
||
|
+ ("}catch(_){}")
|
||
|
+ ("}")
|
||
|
+ ("}");
|
||
|
+
|
||
|
for (var i = 0; i < fields.length; ++i) {
|
||
|
var field = fields[i].resolve(),
|
||
|
index = mtype._fieldsArray.indexOf(field),
|
||
|
@@ -2040,6 +2063,11 @@ function encoder(mtype) {
|
||
|
}
|
||
|
}
|
||
|
|
||
|
+ gen
|
||
|
+ ("for(var i=0;i<fullyUnknown.length;++i) {")
|
||
|
+ ("w._unknownField(fullyUnknown[i])")
|
||
|
+ ("}");
|
||
|
+
|
||
|
return gen
|
||
|
("return w");
|
||
|
/* eslint-enable no-unexpected-multiline, block-scoped-var, no-redeclare */
|
||
|
@@ -8931,6 +8959,11 @@ Writer.prototype.bytes = function write_bytes(value) {
|
||
|
return this.uint32(len)._push(writeBytes, len, value);
|
||
|
};
|
||
|
|
||
|
+
|
||
|
+Writer.prototype._unknownField = function __unknownField(field) {
|
||
|
+ return this._push(writeBytes, field.length, field);
|
||
|
+};
|
||
|
+
|
||
|
/**
|
||
|
* Writes a string.
|
||
|
* @param {string} value Value to write
|
||
|
diff --git a/node_modules/protobufjs/dist/protobuf.min.js b/node_modules/protobufjs/dist/protobuf.min.js
|
||
|
index a896555..873d7b2 100644
|
||
|
--- a/node_modules/protobufjs/dist/protobuf.min.js
|
||
|
+++ b/node_modules/protobufjs/dist/protobuf.min.js
|
||
|
@@ -1,8 +1,8 @@
|
||
|
/*!
|
||
|
* protobuf.js v7.3.2 (c) 2016, daniel wirtz
|
||
|
- * compiled wed, 12 jun 2024 08:24:21 utc
|
||
|
+ * compiled mon, 24 jun 2024 23:18:03 utc
|
||
|
* licensed under the bsd-3-clause license
|
||
|
* see: https://github.com/dcodeio/protobuf.js for details
|
||
|
*/
|
||
|
-!function(nt){"use strict";!function(r,e,t){var i=function t(i){var n=e[i];return n||r[i][0].call(n=e[i]={exports:{}},t,n,n.exports),n.exports}(t[0]);i.util.global.protobuf=i,"function"==typeof define&&define.amd&&define(["long"],function(t){return t&&t.isLong&&(i.util.Long=t,i.configure()),i}),"object"==typeof module&&module&&module.exports&&(module.exports=i)}({1:[function(t,i,n){i.exports=function(t,i){var n=Array(arguments.length-1),s=0,r=2,o=!0;for(;r<arguments.length;)n[s++]=arguments[r++];return new Promise(function(r,e){n[s]=function(t){if(o)if(o=!1,t)e(t);else{for(var i=Array(arguments.length-1),n=0;n<i.length;)i[n++]=arguments[n];r.apply(null,i)}};try{t.apply(i||null,n)}catch(t){o&&(o=!1,e(t))}})}},{}],2:[function(t,i,n){n.length=function(t){var i=t.length;if(!i)return 0;for(var n=0;1<--i%4&&"="==(t[0|i]||"");)++n;return Math.ceil(3*t.length)/4-n};for(var h=Array(64),f=Array(123),r=0;r<64;)f[h[r]=r<26?r+65:r<52?r+71:r<62?r-4:r-59|43]=r++;n.encode=function(t,i,n){for(var r,e=null,s=[],o=0,u=0;i<n;){var f=t[i++];switch(u){case 0:s[o++]=h[f>>2],r=(3&f)<<4,u=1;break;case 1:s[o++]=h[r|f>>4],r=(15&f)<<2,u=2;break;case 2:s[o++]=h[r|f>>6],s[o++]=h[63&f],u=0}8191<o&&((e=e||[]).push(String.fromCharCode.apply(String,s)),o=0)}return u&&(s[o++]=h[r],s[o++]=61,1===u&&(s[o++]=61)),e?(o&&e.push(String.fromCharCode.apply(String,s.slice(0,o))),e.join("")):String.fromCharCode.apply(String,s.slice(0,o))};var a="invalid encoding";n.decode=function(t,i,n){for(var r,e=n,s=0,o=0;o<t.length;){var u=t.charCodeAt(o++);if(61==u&&1<s)break;if((u=f[u])===nt)throw Error(a);switch(s){case 0:r=u,s=1;break;case 1:i[n++]=r<<2|(48&u)>>4,r=u,s=2;break;case 2:i[n++]=(15&r)<<4|(60&u)>>2,r=u,s=3;break;case 3:i[n++]=(3&r)<<6|u,s=0}}if(1===s)throw Error(a);return n-e},n.test=function(t){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(t)}},{}],3:[function(t,i,n){function c(i,n){"string"==typeof i&&(n=i,i=nt);var f=[];function h(t){if("string"!=typeof t){var i=a();if(c.verbose&&console.log("codegen: "+i),i="return "+i,t){for(var n=Object.keys(t),r=Array(n.length+1),e=Array(n.length),s=0;s<n.length;)r[s]=n[s],e[s]=t[n[s++]];return r[s]=i,Function.apply(null,r).apply(null,e)}return Function(i)()}for(var o=Array(arguments.length-1),u=0;u<o.length;)o[u]=arguments[++u];if(u=0,t=t.replace(/%([%dfijs])/g,function(t,i){var n=o[u++];switch(i){case"d":case"f":return""+ +(""+n);case"i":return""+Math.floor(n);case"j":return JSON.stringify(n);case"s":return""+n}return"%"}),u!==o.length)throw Error("parameter count mismatch");return f.push(t),h}function a(t){return"function "+(t||n||"")+"("+(i&&i.join(",")||"")+"){\n "+f.join("\n ")+"\n}"}return h.toString=a,h}(i.exports=c).verbose=!1},{}],4:[function(t,i,n){function r(){this.i={}}(i.exports=r).prototype.on=function(t,i,n){return(this.i[t]||(this.i[t]=[])).push({fn:i,ctx:n||this}),this},r.prototype.off=function(t,i){if(t===nt)this.i={};else if(i===nt)this.i[t]=[];else for(var n=this.i[t],r=0;r<n.length;)n[r].fn===i?n.splice(r,1):++r;return this},r.prototype.emit=function(t){var i=this.i[t];if(i){for(var n=[],r=1;r<arguments.length;)n.push(arguments[r++]);for(r=0;r<i.length;)i[r].fn.apply(i[r++].ctx,n)}return this}},{}],5:[function(t,i,n){i.exports=u;var s=t(1),o=t(7)("fs");function u(n,r,e){return r="function"==typeof r?(e=r,{}):r||{},e?!r.xhr&&o&&o.readFile?o.readFile(n,function(t,i){return t&&"undefined"!=typeof XMLHttpRequest?u.xhr(n,r,e):t?e(t):e(null,r.binary?i:i.toString("utf8"))}):u.xhr(n,r,e):s(u,this,n,r)}u.xhr=function(t,n,r){var e=new XMLHttpRequest;e.onreadystatechange=function(){if(4!==e.readyState)return nt;if(0!==e.status&&200!==e.status)return r(Error("status "+e.status));if(n.binary){if(!(t=e.response))for(var t=[],i=0;i<e.responseText.length;++i)t.push(255&e.responseText.charCodeAt(i));return r(null,"undefined"!=typeof Uint8Array?new Uint8Array(t):t)}return r(null,e.responseText)},n.binary&&("overrideMimeType"in e&&e.overrideMimeType("text/plain; charset=x-user-defined"),e.responseType="arraybuffer"),e.open("GET",t),e.send()}},{1:1,7:7}],6:[function(t,i,n){function r
|
||
|
+!function(nt){"use strict";!function(r,e,t){var i=function t(i){var n=e[i];return n||r[i][0].call(n=e[i]={exports:{}},t,n,n.exports),n.exports}(t[0]);i.util.global.protobuf=i,"function"==typeof define&&define.amd&&define(["long"],function(t){return t&&t.isLong&&(i.util.Long=t,i.configure()),i}),"object"==typeof module&&module&&module.exports&&(module.exports=i)}({1:[function(t,i,n){i.exports=function(t,i){var n=Array(arguments.length-1),s=0,r=2,o=!0;for(;r<arguments.length;)n[s++]=arguments[r++];return new Promise(function(r,e){n[s]=function(t){if(o)if(o=!1,t)e(t);else{for(var i=Array(arguments.length-1),n=0;n<i.length;)i[n++]=arguments[n];r.apply(null,i)}};try{t.apply(i||null,n)}catch(t){o&&(o=!1,e(t))}})}},{}],2:[function(t,i,n){n.length=function(t){var i=t.length;if(!i)return 0;for(var n=0;1<--i%4&&"="==(t[0|i]||"");)++n;return Math.ceil(3*t.length)/4-n};for(var h=Array(64),f=Array(123),r=0;r<64;)f[h[r]=r<26?r+65:r<52?r+71:r<62?r-4:r-59|43]=r++;n.encode=function(t,i,n){for(var r,e=null,s=[],o=0,u=0;i<n;){var f=t[i++];switch(u){case 0:s[o++]=h[f>>2],r=(3&f)<<4,u=1;break;case 1:s[o++]=h[r|f>>4],r=(15&f)<<2,u=2;break;case 2:s[o++]=h[r|f>>6],s[o++]=h[63&f],u=0}8191<o&&((e=e||[]).push(String.fromCharCode.apply(String,s)),o=0)}return u&&(s[o++]=h[r],s[o++]=61,1===u&&(s[o++]=61)),e?(o&&e.push(String.fromCharCode.apply(String,s.slice(0,o))),e.join("")):String.fromCharCode.apply(String,s.slice(0,o))};var a="invalid encoding";n.decode=function(t,i,n){for(var r,e=n,s=0,o=0;o<t.length;){var u=t.charCodeAt(o++);if(61==u&&1<s)break;if((u=f[u])===nt)throw Error(a);switch(s){case 0:r=u,s=1;break;case 1:i[n++]=r<<2|(48&u)>>4,r=u,s=2;break;case 2:i[n++]=(15&r)<<4|(60&u)>>2,r=u,s=3;break;case 3:i[n++]=(3&r)<<6|u,s=0}}if(1===s)throw Error(a);return n-e},n.test=function(t){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(t)}},{}],3:[function(t,i,n){function c(i,n){"string"==typeof i&&(n=i,i=nt);var f=[];function h(t){if("string"!=typeof t){var i=a();if(c.verbose&&console.log("codegen: "+i),i="return "+i,t){for(var n=Object.keys(t),r=Array(n.length+1),e=Array(n.length),s=0;s<n.length;)r[s]=n[s],e[s]=t[n[s++]];return r[s]=i,Function.apply(null,r).apply(null,e)}return Function(i)()}for(var o=Array(arguments.length-1),u=0;u<o.length;)o[u]=arguments[++u];if(u=0,t=t.replace(/%([%dfijs])/g,function(t,i){var n=o[u++];switch(i){case"d":case"f":return""+ +(""+n);case"i":return""+Math.floor(n);case"j":return JSON.stringify(n);case"s":return""+n}return"%"}),u!==o.length)throw Error("parameter count mismatch");return f.push(t),h}function a(t){return"function "+(t||n||"")+"("+(i&&i.join(",")||"")+"){\n "+f.join("\n ")+"\n}"}return h.toString=a,h}(i.exports=c).verbose=!1},{}],4:[function(t,i,n){function r(){this.i={}}(i.exports=r).prototype.on=function(t,i,n){return(this.i[t]||(this.i[t]=[])).push({fn:i,ctx:n||this}),this},r.prototype.off=function(t,i){if(t===nt)this.i={};else if(i===nt)this.i[t]=[];else for(var n=this.i[t],r=0;r<n.length;)n[r].fn===i?n.splice(r,1):++r;return this},r.prototype.emit=function(t){var i=this.i[t];if(i){for(var n=[],r=1;r<arguments.length;)n.push(arguments[r++]);for(r=0;r<i.length;)i[r].fn.apply(i[r++].ctx,n)}return this}},{}],5:[function(t,i,n){i.exports=u;var s=t(1),o=t(7)("fs");function u(n,r,e){return r="function"==typeof r?(e=r,{}):r||{},e?!r.xhr&&o&&o.readFile?o.readFile(n,function(t,i){return t&&"undefined"!=typeof XMLHttpRequest?u.xhr(n,r,e):t?e(t):e(null,r.binary?i:i.toString("utf8"))}):u.xhr(n,r,e):s(u,this,n,r)}u.xhr=function(t,n,r){var e=new XMLHttpRequest;e.onreadystatechange=function(){if(4!==e.readyState)return nt;if(0!==e.status&&200!==e.status)return r(Error("status "+e.status));if(n.binary){if(!(t=e.response))for(var t=[],i=0;i<e.responseText.length;++i)t.push(255&e.responseText.charCodeAt(i));return r(null,"undefined"!=typeof Uint8Array?new Uint8Array(t):t)}return r(null,e.responseText)},n.binary&&("overrideMimeType"in e&&e.overrideMimeType("text/plain; charset=x-user-defined"),e.responseType="arraybuffer"),e.open("GET",t),e.send()}},{1:1,7:7}],6:[function(t,i,n){function r
|
||
|
//# sourceMappingURL=protobuf.min.js.map
|
||
|
diff --git a/node_modules/protobufjs/ext/descriptor/index.d.ts b/node_modules/protobufjs/ext/descriptor/index.d.ts
|
||
|
index 7b6c20b..da2a2c0 100644
|
||
|
--- a/node_modules/protobufjs/ext/descriptor/index.d.ts
|
||
|
+++ b/node_modules/protobufjs/ext/descriptor/index.d.ts
|
||
|
@@ -1,4 +1,5 @@
|
||
|
import * as $protobuf from "../..";
|
||
|
+import Long = require("long");
|
||
|
export const FileDescriptorSet: $protobuf.Type;
|
||
|
|
||
|
export const FileDescriptorProto: $protobuf.Type;
|
||
|
@@ -58,6 +59,8 @@ export const GeneratedCodeInfo: $protobuf.Type & {
|
||
|
|
||
|
export interface IFileDescriptorSet {
|
||
|
file: IFileDescriptorProto[];
|
||
|
+
|
||
|
+ $unknownFields?: ReadonlyArray<Uint8Array>;
|
||
|
}
|
||
|
|
||
|
export interface IFileDescriptorProto {
|
||
|
@@ -73,6 +76,8 @@ export interface IFileDescriptorProto {
|
||
|
options?: IFileOptions;
|
||
|
sourceCodeInfo?: any;
|
||
|
syntax?: string;
|
||
|
+
|
||
|
+ $unknownFields?: ReadonlyArray<Uint8Array>;
|
||
|
}
|
||
|
|
||
|
export interface IFileOptions {
|
||
|
@@ -90,6 +95,8 @@ export interface IFileOptions {
|
||
|
ccEnableArenas?: boolean;
|
||
|
objcClassPrefix?: string;
|
||
|
csharpNamespace?: string;
|
||
|
+
|
||
|
+ $unknownFields?: ReadonlyArray<Uint8Array>;
|
||
|
}
|
||
|
|
||
|
type IFileOptionsOptimizeMode = number;
|
||
|
@@ -105,20 +112,28 @@ export interface IDescriptorProto {
|
||
|
options?: IMessageOptions;
|
||
|
reservedRange?: IDescriptorProtoReservedRange[];
|
||
|
reservedName?: string[];
|
||
|
+
|
||
|
+ $unknownFields?: ReadonlyArray<Uint8Array>;
|
||
|
}
|
||
|
|
||
|
export interface IMessageOptions {
|
||
|
mapEntry?: boolean;
|
||
|
+
|
||
|
+ $unknownFields?: ReadonlyArray<Uint8Array>;
|
||
|
}
|
||
|
|
||
|
export interface IDescriptorProtoExtensionRange {
|
||
|
start?: number;
|
||
|
end?: number;
|
||
|
+
|
||
|
+ $unknownFields?: ReadonlyArray<Uint8Array>;
|
||
|
}
|
||
|
|
||
|
export interface IDescriptorProtoReservedRange {
|
||
|
start?: number;
|
||
|
end?: number;
|
||
|
+
|
||
|
+ $unknownFields?: ReadonlyArray<Uint8Array>;
|
||
|
}
|
||
|
|
||
|
export interface IFieldDescriptorProto {
|
||
|
@@ -132,6 +147,8 @@ export interface IFieldDescriptorProto {
|
||
|
oneofIndex?: number;
|
||
|
jsonName?: any;
|
||
|
options?: IFieldOptions;
|
||
|
+
|
||
|
+ $unknownFields?: ReadonlyArray<Uint8Array>;
|
||
|
}
|
||
|
|
||
|
type IFieldDescriptorProtoLabel = number;
|
||
|
@@ -141,6 +158,8 @@ type IFieldDescriptorProtoType = number;
|
||
|
export interface IFieldOptions {
|
||
|
packed?: boolean;
|
||
|
jstype?: IFieldOptionsJSType;
|
||
|
+
|
||
|
+ $unknownFields?: ReadonlyArray<Uint8Array>;
|
||
|
}
|
||
|
|
||
|
type IFieldOptionsJSType = number;
|
||
|
@@ -149,32 +168,44 @@ export interface IEnumDescriptorProto {
|
||
|
name?: string;
|
||
|
value?: IEnumValueDescriptorProto[];
|
||
|
options?: IEnumOptions;
|
||
|
+
|
||
|
+ $unknownFields?: ReadonlyArray<Uint8Array>;
|
||
|
}
|
||
|
|
||
|
export interface IEnumValueDescriptorProto {
|
||
|
name?: string;
|
||
|
number?: number;
|
||
|
options?: any;
|
||
|
+
|
||
|
+ $unknownFields?: ReadonlyArray<Uint8Array>;
|
||
|
}
|
||
|
|
||
|
export interface IEnumOptions {
|
||
|
allowAlias?: boolean;
|
||
|
deprecated?: boolean;
|
||
|
+
|
||
|
+ $unknownFields?: ReadonlyArray<Uint8Array>;
|
||
|
}
|
||
|
|
||
|
export interface IOneofDescriptorProto {
|
||
|
name?: string;
|
||
|
options?: any;
|
||
|
+
|
||
|
+ $unknownFields?: ReadonlyArray<Uint8Array>;
|
||
|
}
|
||
|
|
||
|
export interface IServiceDescriptorProto {
|
||
|
name?: string;
|
||
|
method?: IMethodDescriptorProto[];
|
||
|
options?: IServiceOptions;
|
||
|
+
|
||
|
+ $unknownFields?: ReadonlyArray<Uint8Array>;
|
||
|
}
|
||
|
|
||
|
export interface IServiceOptions {
|
||
|
deprecated?: boolean;
|
||
|
+
|
||
|
+ $unknownFields?: ReadonlyArray<Uint8Array>;
|
||
|
}
|
||
|
|
||
|
export interface IMethodDescriptorProto {
|
||
|
@@ -184,8 +215,12 @@ export interface IMethodDescriptorProto {
|
||
|
options?: IMethodOptions;
|
||
|
clientStreaming?: boolean;
|
||
|
serverStreaming?: boolean;
|
||
|
+
|
||
|
+ $unknownFields?: ReadonlyArray<Uint8Array>;
|
||
|
}
|
||
|
|
||
|
export interface IMethodOptions {
|
||
|
deprecated?: boolean;
|
||
|
+
|
||
|
+ $unknownFields?: ReadonlyArray<Uint8Array>;
|
||
|
}
|
||
|
diff --git a/node_modules/protobufjs/index.d.ts b/node_modules/protobufjs/index.d.ts
|
||
|
index dcbdabb..f5a4f8c 100644
|
||
|
--- a/node_modules/protobufjs/index.d.ts
|
||
|
+++ b/node_modules/protobufjs/index.d.ts
|
||
|
@@ -16,27 +16,37 @@ export namespace common {
|
||
|
interface IAny {
|
||
|
typeUrl?: string;
|
||
|
bytes?: Uint8Array;
|
||
|
+
|
||
|
+ $unknownFields?: ReadonlyArray<Uint8Array>;
|
||
|
}
|
||
|
|
||
|
/** Properties of a google.protobuf.Duration message. */
|
||
|
interface IDuration {
|
||
|
seconds?: (number|Long);
|
||
|
nanos?: number;
|
||
|
+
|
||
|
+ $unknownFields?: ReadonlyArray<Uint8Array>;
|
||
|
}
|
||
|
|
||
|
/** Properties of a google.protobuf.Timestamp message. */
|
||
|
interface ITimestamp {
|
||
|
seconds?: (number|Long);
|
||
|
nanos?: number;
|
||
|
+
|
||
|
+ $unknownFields?: ReadonlyArray<Uint8Array>;
|
||
|
}
|
||
|
|
||
|
/** Properties of a google.protobuf.Empty message. */
|
||
|
interface IEmpty {
|
||
|
+
|
||
|
+ $unknownFields?: ReadonlyArray<Uint8Array>;
|
||
|
}
|
||
|
|
||
|
/** Properties of a google.protobuf.Struct message. */
|
||
|
interface IStruct {
|
||
|
fields?: { [k: string]: IValue };
|
||
|
+
|
||
|
+ $unknownFields?: ReadonlyArray<Uint8Array>;
|
||
|
}
|
||
|
|
||
|
/** Properties of a google.protobuf.Value message. */
|
||
|
@@ -48,56 +58,78 @@ export namespace common {
|
||
|
boolValue?: boolean;
|
||
|
structValue?: IStruct;
|
||
|
listValue?: IListValue;
|
||
|
+
|
||
|
+ $unknownFields?: ReadonlyArray<Uint8Array>;
|
||
|
}
|
||
|
|
||
|
/** Properties of a google.protobuf.ListValue message. */
|
||
|
interface IListValue {
|
||
|
values?: IValue[];
|
||
|
+
|
||
|
+ $unknownFields?: ReadonlyArray<Uint8Array>;
|
||
|
}
|
||
|
|
||
|
/** Properties of a google.protobuf.DoubleValue message. */
|
||
|
interface IDoubleValue {
|
||
|
value?: number;
|
||
|
+
|
||
|
+ $unknownFields?: ReadonlyArray<Uint8Array>;
|
||
|
}
|
||
|
|
||
|
/** Properties of a google.protobuf.FloatValue message. */
|
||
|
interface IFloatValue {
|
||
|
value?: number;
|
||
|
+
|
||
|
+ $unknownFields?: ReadonlyArray<Uint8Array>;
|
||
|
}
|
||
|
|
||
|
/** Properties of a google.protobuf.Int64Value message. */
|
||
|
interface IInt64Value {
|
||
|
value?: (number|Long);
|
||
|
+
|
||
|
+ $unknownFields?: ReadonlyArray<Uint8Array>;
|
||
|
}
|
||
|
|
||
|
/** Properties of a google.protobuf.UInt64Value message. */
|
||
|
interface IUInt64Value {
|
||
|
value?: (number|Long);
|
||
|
+
|
||
|
+ $unknownFields?: ReadonlyArray<Uint8Array>;
|
||
|
}
|
||
|
|
||
|
/** Properties of a google.protobuf.Int32Value message. */
|
||
|
interface IInt32Value {
|
||
|
value?: number;
|
||
|
+
|
||
|
+ $unknownFields?: ReadonlyArray<Uint8Array>;
|
||
|
}
|
||
|
|
||
|
/** Properties of a google.protobuf.UInt32Value message. */
|
||
|
interface IUInt32Value {
|
||
|
value?: number;
|
||
|
+
|
||
|
+ $unknownFields?: ReadonlyArray<Uint8Array>;
|
||
|
}
|
||
|
|
||
|
/** Properties of a google.protobuf.BoolValue message. */
|
||
|
interface IBoolValue {
|
||
|
value?: boolean;
|
||
|
+
|
||
|
+ $unknownFields?: ReadonlyArray<Uint8Array>;
|
||
|
}
|
||
|
|
||
|
/** Properties of a google.protobuf.StringValue message. */
|
||
|
interface IStringValue {
|
||
|
value?: string;
|
||
|
+
|
||
|
+ $unknownFields?: ReadonlyArray<Uint8Array>;
|
||
|
}
|
||
|
|
||
|
/** Properties of a google.protobuf.BytesValue message. */
|
||
|
interface IBytesValue {
|
||
|
value?: Uint8Array;
|
||
|
+
|
||
|
+ $unknownFields?: ReadonlyArray<Uint8Array>;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
@@ -232,6 +264,8 @@ export class Enum extends ReflectionObject {
|
||
|
* @returns `true` if reserved, otherwise `false`
|
||
|
*/
|
||
|
public isReservedName(name: string): boolean;
|
||
|
+
|
||
|
+ public $unknownFields?: ReadonlyArray<Uint8Array>;
|
||
|
}
|
||
|
|
||
|
/** Enum descriptor. */
|
||
|
@@ -242,6 +276,8 @@ export interface IEnum {
|
||
|
|
||
|
/** Enum options */
|
||
|
options?: { [k: string]: any };
|
||
|
+
|
||
|
+ $unknownFields?: ReadonlyArray<Uint8Array>;
|
||
|
}
|
||
|
|
||
|
/** Reflected message field. */
|
||
|
@@ -288,6 +324,8 @@ export class Field extends FieldBase {
|
||
|
* @returns Decorator function
|
||
|
*/
|
||
|
public static d<T extends Message<T>>(fieldId: number, fieldType: (Constructor<T>|string), fieldRule?: ("optional"|"required"|"repeated")): FieldDecorator;
|
||
|
+
|
||
|
+ public $unknownFields?: ReadonlyArray<Uint8Array>;
|
||
|
}
|
||
|
|
||
|
/** Base class of all reflected message fields. This is not an actual class but here for the sake of having consistent type definitions. */
|
||
|
@@ -369,6 +407,8 @@ export class FieldBase extends ReflectionObject {
|
||
|
* @throws {Error} If any reference cannot be resolved
|
||
|
*/
|
||
|
public resolve(): Field;
|
||
|
+
|
||
|
+ public $unknownFields?: ReadonlyArray<Uint8Array>;
|
||
|
}
|
||
|
|
||
|
/** Field descriptor. */
|
||
|
@@ -385,6 +425,8 @@ export interface IField {
|
||
|
|
||
|
/** Field options */
|
||
|
options?: { [k: string]: any };
|
||
|
+
|
||
|
+ $unknownFields?: ReadonlyArray<Uint8Array>;
|
||
|
}
|
||
|
|
||
|
/** Extension field descriptor. */
|
||
|
@@ -392,6 +434,8 @@ export interface IExtensionField extends IField {
|
||
|
|
||
|
/** Extended type */
|
||
|
extend: string;
|
||
|
+
|
||
|
+ $unknownFields?: ReadonlyArray<Uint8Array>;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
@@ -494,6 +538,8 @@ export class MapField extends FieldBase {
|
||
|
* @returns Decorator function
|
||
|
*/
|
||
|
public static d<T extends { [key: string]: number | Long | string | boolean | Uint8Array | Buffer | number[] | Message<{}> }>(fieldId: number, fieldKeyType: ("int32"|"uint32"|"sint32"|"fixed32"|"sfixed32"|"int64"|"uint64"|"sint64"|"fixed64"|"sfixed64"|"bool"|"string"), fieldValueType: ("double"|"float"|"int32"|"uint32"|"sint32"|"fixed32"|"sfixed32"|"int64"|"uint64"|"sint64"|"fixed64"|"sfixed64"|"bool"|"string"|"bytes"|object|Constructor<{}>)): FieldDecorator;
|
||
|
+
|
||
|
+ public $unknownFields?: ReadonlyArray<Uint8Array>;
|
||
|
}
|
||
|
|
||
|
/** Map field descriptor. */
|
||
|
@@ -501,6 +547,8 @@ export interface IMapField extends IField {
|
||
|
|
||
|
/** Key type */
|
||
|
keyType: string;
|
||
|
+
|
||
|
+ $unknownFields?: ReadonlyArray<Uint8Array>;
|
||
|
}
|
||
|
|
||
|
/** Extension map field descriptor. */
|
||
|
@@ -508,6 +556,8 @@ export interface IExtensionMapField extends IMapField {
|
||
|
|
||
|
/** Extended type */
|
||
|
extend: string;
|
||
|
+
|
||
|
+ $unknownFields?: ReadonlyArray<Uint8Array>;
|
||
|
}
|
||
|
|
||
|
/** Abstract runtime message. */
|
||
|
@@ -589,6 +639,8 @@ export class Message<T extends object = object> {
|
||
|
* @returns JSON object
|
||
|
*/
|
||
|
public toJSON(): { [k: string]: any };
|
||
|
+
|
||
|
+ public $unknownFields?: ReadonlyArray<Uint8Array>;
|
||
|
}
|
||
|
|
||
|
/** Reflected service method. */
|
||
|
@@ -650,6 +702,8 @@ export class Method extends ReflectionObject {
|
||
|
* @returns Method descriptor
|
||
|
*/
|
||
|
public toJSON(toJSONOptions?: IToJSONOptions): IMethod;
|
||
|
+
|
||
|
+ public $unknownFields?: ReadonlyArray<Uint8Array>;
|
||
|
}
|
||
|
|
||
|
/** Method descriptor. */
|
||
|
@@ -678,6 +732,8 @@ export interface IMethod {
|
||
|
|
||
|
/** Method options properly parsed into an object */
|
||
|
parsedOptions?: { [k: string]: any };
|
||
|
+
|
||
|
+ $unknownFields?: ReadonlyArray<Uint8Array>;
|
||
|
}
|
||
|
|
||
|
/** Reflected namespace. */
|
||
|
@@ -722,6 +778,8 @@ export class Namespace extends NamespaceBase {
|
||
|
* @returns `true` if reserved, otherwise `false`
|
||
|
*/
|
||
|
public static isReservedName(reserved: ((number[]|string)[]|undefined), name: string): boolean;
|
||
|
+
|
||
|
+ public $unknownFields?: ReadonlyArray<Uint8Array>;
|
||
|
}
|
||
|
|
||
|
/** Base class of all reflection objects containing nested objects. This is not an actual class but here for the sake of having consistent type definitions. */
|
||
|
@@ -847,6 +905,8 @@ export abstract class NamespaceBase extends ReflectionObject {
|
||
|
* @throws {Error} If `path` does not point to a service
|
||
|
*/
|
||
|
public lookupService(path: (string|string[])): Service;
|
||
|
+
|
||
|
+ public $unknownFields?: ReadonlyArray<Uint8Array>;
|
||
|
}
|
||
|
|
||
|
/** Namespace descriptor. */
|
||
|
@@ -857,6 +917,8 @@ export interface INamespace {
|
||
|
|
||
|
/** Nested object descriptors */
|
||
|
nested?: { [k: string]: AnyNestedObject };
|
||
|
+
|
||
|
+ $unknownFields?: ReadonlyArray<Uint8Array>;
|
||
|
}
|
||
|
|
||
|
/** Any extension field descriptor. */
|
||
|
@@ -957,6 +1019,8 @@ export abstract class ReflectionObject {
|
||
|
* @returns Class name[, space, full name]
|
||
|
*/
|
||
|
public toString(): string;
|
||
|
+
|
||
|
+ public $unknownFields?: ReadonlyArray<Uint8Array>;
|
||
|
}
|
||
|
|
||
|
/** Reflected oneof. */
|
||
|
@@ -1016,6 +1080,8 @@ export class OneOf extends ReflectionObject {
|
||
|
* @returns Decorator function
|
||
|
*/
|
||
|
public static d<T extends string>(...fieldNames: string[]): OneOfDecorator;
|
||
|
+
|
||
|
+ public $unknownFields?: ReadonlyArray<Uint8Array>;
|
||
|
}
|
||
|
|
||
|
/** Oneof descriptor. */
|
||
|
@@ -1026,6 +1092,8 @@ export interface IOneOf {
|
||
|
|
||
|
/** Oneof options */
|
||
|
options?: { [k: string]: any };
|
||
|
+
|
||
|
+ $unknownFields?: ReadonlyArray<Uint8Array>;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
@@ -1060,6 +1128,8 @@ export interface IParserResult {
|
||
|
|
||
|
/** Populated root instance */
|
||
|
root: Root;
|
||
|
+
|
||
|
+ $unknownFields?: ReadonlyArray<Uint8Array>;
|
||
|
}
|
||
|
|
||
|
/** Options modifying the behavior of {@link parse}. */
|
||
|
@@ -1073,6 +1143,8 @@ export interface IParseOptions {
|
||
|
|
||
|
/** Use trailing comment when both leading comment and trailing comment exist. */
|
||
|
preferTrailingComment?: boolean;
|
||
|
+
|
||
|
+ $unknownFields?: ReadonlyArray<Uint8Array>;
|
||
|
}
|
||
|
|
||
|
/** Options modifying the behavior of JSON serialization. */
|
||
|
@@ -1080,6 +1152,8 @@ export interface IToJSONOptions {
|
||
|
|
||
|
/** Serializes comments. */
|
||
|
keepComments?: boolean;
|
||
|
+
|
||
|
+ $unknownFields?: ReadonlyArray<Uint8Array>;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
@@ -1220,6 +1294,8 @@ export class Reader {
|
||
|
* @returns `this`
|
||
|
*/
|
||
|
public skipType(wireType: number): Reader;
|
||
|
+
|
||
|
+ public $unknownFields?: ReadonlyArray<Uint8Array>;
|
||
|
}
|
||
|
|
||
|
/** Wire format reader using node buffers. */
|
||
|
@@ -1236,6 +1312,8 @@ export class BufferReader extends Reader {
|
||
|
* @returns Value read
|
||
|
*/
|
||
|
public bytes(): Buffer;
|
||
|
+
|
||
|
+ public $unknownFields?: ReadonlyArray<Uint8Array>;
|
||
|
}
|
||
|
|
||
|
/** Root namespace wrapping all types, enums, services, sub-namespaces etc. that belong together. */
|
||
|
@@ -1309,6 +1387,8 @@ export class Root extends NamespaceBase {
|
||
|
* @throws {Error} If synchronous fetching is not supported (i.e. in browsers) or if a file's syntax is invalid
|
||
|
*/
|
||
|
public loadSync(filename: (string|string[]), options?: IParseOptions): Root;
|
||
|
+
|
||
|
+ public $unknownFields?: ReadonlyArray<Uint8Array>;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
@@ -1374,6 +1454,8 @@ export namespace rpc {
|
||
|
* @returns `this`
|
||
|
*/
|
||
|
public end(endedByRPC?: boolean): rpc.Service;
|
||
|
+
|
||
|
+ public $unknownFields?: ReadonlyArray<Uint8Array>;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@@ -1433,6 +1515,8 @@ export class Service extends NamespaceBase {
|
||
|
* @returns RPC service. Useful where requests and/or responses are streamed.
|
||
|
*/
|
||
|
public create(rpcImpl: RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): rpc.Service;
|
||
|
+
|
||
|
+ public $unknownFields?: ReadonlyArray<Uint8Array>;
|
||
|
}
|
||
|
|
||
|
/** Service descriptor. */
|
||
|
@@ -1440,6 +1524,8 @@ export interface IService extends INamespace {
|
||
|
|
||
|
/** Method descriptors */
|
||
|
methods: { [k: string]: IMethod };
|
||
|
+
|
||
|
+ $unknownFields?: ReadonlyArray<Uint8Array>;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
@@ -1496,6 +1582,8 @@ export interface ITokenizerHandle {
|
||
|
|
||
|
/** Current line number */
|
||
|
line: number;
|
||
|
+
|
||
|
+ $unknownFields?: ReadonlyArray<Uint8Array>;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
@@ -1683,6 +1771,8 @@ export class Type extends NamespaceBase {
|
||
|
* @returns Decorator function
|
||
|
*/
|
||
|
public static d<T extends Message<T>>(typeName?: string): TypeDecorator<T>;
|
||
|
+
|
||
|
+ public $unknownFields?: ReadonlyArray<Uint8Array>;
|
||
|
}
|
||
|
|
||
|
/** Message type descriptor. */
|
||
|
@@ -1702,6 +1792,8 @@ export interface IType extends INamespace {
|
||
|
|
||
|
/** Whether a legacy group or not */
|
||
|
group?: boolean;
|
||
|
+
|
||
|
+ $unknownFields?: ReadonlyArray<Uint8Array>;
|
||
|
}
|
||
|
|
||
|
/** Conversion options as used by {@link Type#toObject} and {@link Message.toObject}. */
|
||
|
@@ -1742,6 +1834,8 @@ export interface IConversionOptions {
|
||
|
|
||
|
/** Performs additional JSON compatibility conversions, i.e. NaN and Infinity to strings */
|
||
|
json?: boolean;
|
||
|
+
|
||
|
+ $unknownFields?: ReadonlyArray<Uint8Array>;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
@@ -1838,6 +1932,8 @@ export namespace types {
|
||
|
/** Constructor type. */
|
||
|
export interface Constructor<T> extends Function {
|
||
|
new(...params: any[]): T; prototype: T;
|
||
|
+
|
||
|
+ $unknownFields?: ReadonlyArray<Uint8Array>;
|
||
|
}
|
||
|
|
||
|
/** Properties type. */
|
||
|
@@ -1848,6 +1944,8 @@ type Properties<T> = { [P in keyof T]?: T[P] };
|
||
|
* This is a minimal stand-alone definition of a Buffer instance. The actual type is that exported by node's typings.
|
||
|
*/
|
||
|
export interface Buffer extends Uint8Array {
|
||
|
+
|
||
|
+ $unknownFields?: ReadonlyArray<Uint8Array>;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
@@ -1864,6 +1962,8 @@ export interface Long {
|
||
|
|
||
|
/** Whether unsigned or not */
|
||
|
unsigned: boolean;
|
||
|
+
|
||
|
+ $unknownFields?: ReadonlyArray<Uint8Array>;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
@@ -1961,6 +2061,8 @@ export namespace util {
|
||
|
* @returns Length
|
||
|
*/
|
||
|
public length(): number;
|
||
|
+
|
||
|
+ public $unknownFields?: ReadonlyArray<Uint8Array>;
|
||
|
}
|
||
|
|
||
|
/** Whether running within node or not. */
|
||
|
@@ -2088,6 +2190,8 @@ export namespace util {
|
||
|
|
||
|
/** So far decoded message instance. */
|
||
|
public instance: Message<T>;
|
||
|
+
|
||
|
+ public $unknownFields?: ReadonlyArray<Uint8Array>;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
@@ -2298,6 +2402,8 @@ export namespace util {
|
||
|
* @returns `this`
|
||
|
*/
|
||
|
public emit(evt: string, ...args: any[]): this;
|
||
|
+
|
||
|
+ public $unknownFields?: ReadonlyArray<Uint8Array>;
|
||
|
}
|
||
|
|
||
|
/** Reads / writes floats / doubles from / to buffers. */
|
||
|
@@ -2497,6 +2603,8 @@ export interface IWrapper {
|
||
|
|
||
|
/** To object converter */
|
||
|
toObject?: WrapperToObjectConverter;
|
||
|
+
|
||
|
+ $unknownFields?: ReadonlyArray<Uint8Array>;
|
||
|
}
|
||
|
|
||
|
/** Wire format writer using `Uint8Array` if available, otherwise `Array`. */
|
||
|
@@ -2664,6 +2772,8 @@ export class Writer {
|
||
|
* @returns Finished buffer
|
||
|
*/
|
||
|
public finish(): Uint8Array;
|
||
|
+
|
||
|
+ public $unknownFields?: ReadonlyArray<Uint8Array>;
|
||
|
}
|
||
|
|
||
|
/** Wire format writer using node buffers. */
|
||
|
@@ -2684,6 +2794,8 @@ export class BufferWriter extends Writer {
|
||
|
* @returns Finished buffer
|
||
|
*/
|
||
|
public finish(): Buffer;
|
||
|
+
|
||
|
+ public $unknownFields?: ReadonlyArray<Uint8Array>;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
@@ -2723,6 +2835,8 @@ export interface IFetchOptions {
|
||
|
|
||
|
/** If `true`, forces the use of XMLHttpRequest */
|
||
|
xhr?: boolean;
|
||
|
+
|
||
|
+ $unknownFields?: ReadonlyArray<Uint8Array>;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
diff --git a/node_modules/protobufjs/src/decoder.js b/node_modules/protobufjs/src/decoder.js
|
||
|
index b421bb4..31aa011 100644
|
||
|
--- a/node_modules/protobufjs/src/decoder.js
|
||
|
+++ b/node_modules/protobufjs/src/decoder.js
|
||
|
@@ -21,6 +21,7 @@ function decoder(mtype) {
|
||
|
("r=Reader.create(r)")
|
||
|
("var c=l===undefined?r.len:r.pos+l,m=new this.ctor" + (mtype.fieldsArray.filter(function(field) { return field.map; }).length ? ",k,value" : ""))
|
||
|
("while(r.pos<c){")
|
||
|
+ ("var unknownStartPos = r.pos")
|
||
|
("var t=r.uint32()");
|
||
|
if (mtype.group) gen
|
||
|
("if((t&7)===4)")
|
||
|
@@ -28,6 +29,8 @@ function decoder(mtype) {
|
||
|
gen
|
||
|
("switch(t>>>3){");
|
||
|
|
||
|
+ var unknownRef = "m" + util.safeProp("$unknownFields");
|
||
|
+
|
||
|
var i = 0;
|
||
|
for (; i < /* initializes */ mtype.fieldsArray.length; ++i) {
|
||
|
var field = mtype._fieldsArray[i].resolve(),
|
||
|
@@ -110,6 +113,11 @@ function decoder(mtype) {
|
||
|
} gen
|
||
|
("default:")
|
||
|
("r.skipType(t&7)")
|
||
|
+ ("if (!(%s)) {", unknownRef)
|
||
|
+ ("%s = []", unknownRef)
|
||
|
+ ("}")
|
||
|
+
|
||
|
+ ("%s.push(r.buf.slice(unknownStartPos, r.pos))", unknownRef)
|
||
|
("break")
|
||
|
|
||
|
("}")
|
||
|
diff --git a/node_modules/protobufjs/src/encoder.js b/node_modules/protobufjs/src/encoder.js
|
||
|
index 52a3b01..48d2fd3 100644
|
||
|
--- a/node_modules/protobufjs/src/encoder.js
|
||
|
+++ b/node_modules/protobufjs/src/encoder.js
|
||
|
@@ -36,6 +36,21 @@ function encoder(mtype) {
|
||
|
// "when a message is serialized its known fields should be written sequentially by field number"
|
||
|
var fields = /* initializes */ mtype.fieldsArray.slice().sort(util.compareFieldsById);
|
||
|
|
||
|
+ var unknownRef = "m" + util.safeProp("$unknownFields");
|
||
|
+
|
||
|
+ // Redecode unknown fields and apply them to the message before encoding
|
||
|
+ gen
|
||
|
+ ("var fullyUnknown=[]")
|
||
|
+ ("if(%s&&this.ctor.decode) {", unknownRef)
|
||
|
+ ("for(var i=0;i<%s.length;++i) {", unknownRef)
|
||
|
+ ("try {")
|
||
|
+ ("var known=this.ctor.decode(%s[i])", unknownRef)
|
||
|
+ ("fullyUnknown=fullyUnknown.concat(known.$unknownFields||[])")
|
||
|
+ ("m=Object.assign(known,m)")
|
||
|
+ ("}catch(_){}")
|
||
|
+ ("}")
|
||
|
+ ("}");
|
||
|
+
|
||
|
for (var i = 0; i < fields.length; ++i) {
|
||
|
var field = fields[i].resolve(),
|
||
|
index = mtype._fieldsArray.indexOf(field),
|
||
|
@@ -94,6 +109,11 @@ function encoder(mtype) {
|
||
|
}
|
||
|
}
|
||
|
|
||
|
+ gen
|
||
|
+ ("for(var i=0;i<fullyUnknown.length;++i) {")
|
||
|
+ ("w._unknownField(fullyUnknown[i])")
|
||
|
+ ("}");
|
||
|
+
|
||
|
return gen
|
||
|
("return w");
|
||
|
/* eslint-enable no-unexpected-multiline, block-scoped-var, no-redeclare */
|
||
|
diff --git a/node_modules/protobufjs/src/writer.js b/node_modules/protobufjs/src/writer.js
|
||
|
index 17c2770..8422f89 100644
|
||
|
--- a/node_modules/protobufjs/src/writer.js
|
||
|
+++ b/node_modules/protobufjs/src/writer.js
|
||
|
@@ -383,6 +383,11 @@ Writer.prototype.bytes = function write_bytes(value) {
|
||
|
return this.uint32(len)._push(writeBytes, len, value);
|
||
|
};
|
||
|
|
||
|
+
|
||
|
+Writer.prototype._unknownField = function __unknownField(field) {
|
||
|
+ return this._push(writeBytes, field.length, field);
|
||
|
+};
|
||
|
+
|
||
|
/**
|
||
|
* Writes a string.
|
||
|
* @param {string} value Value to write
|