mirror of
https://github.com/stakwork/sphinx-relay.git
synced 2026-08-13 12:33:24 +02:00
14 lines
601 B
Diff
14 lines
601 B
Diff
|
|
diff --git a/node_modules/protobufjs/src/decoder.js b/node_modules/protobufjs/src/decoder.js
|
||
|
|
index 491dd30..cfaa927 100644
|
||
|
|
--- a/node_modules/protobufjs/src/decoder.js
|
||
|
|
+++ b/node_modules/protobufjs/src/decoder.js
|
||
|
|
@@ -72,7 +72,7 @@ function decoder(mtype) {
|
||
|
|
("}");
|
||
|
|
|
||
|
|
if (types.long[field.keyType] !== undefined) gen
|
||
|
|
- ("%s[typeof k===\"object\"?util.longToHash(k):k]=value", ref);
|
||
|
|
+ ("%s[util.Long.isLong(k)?k.toString():typeof k===\"object\"?util.longToHash(k):k]=value", ref);
|
||
|
|
else gen
|
||
|
|
("%s[k]=value", ref);
|
||
|
|
|