@chainsafe/lodestar-utils
Advanced tools
Comparing version 0.16.0 to 0.17.0
@@ -51,4 +51,6 @@ "use strict"; | ||
function toHex(buffer) { | ||
if (buffer instanceof Uint8Array) { | ||
return "0x" + Buffer.from(buffer.buffer, buffer.byteOffset).toString("hex"); | ||
if (Buffer.isBuffer(buffer)) { | ||
return "0x" + buffer.toString("hex"); | ||
} else if (buffer instanceof Uint8Array) { | ||
return "0x" + Buffer.from(buffer.buffer, buffer.byteOffset, buffer.length).toString("hex"); | ||
} else { | ||
@@ -55,0 +57,0 @@ return "0x" + Buffer.from(buffer).toString("hex"); |
@@ -9,2 +9,3 @@ export * from "./events"; | ||
export * from "./objects"; | ||
export * from "./notNullish"; | ||
export * from "./sleep"; | ||
@@ -11,0 +12,0 @@ export * from "./sort"; |
@@ -111,2 +111,15 @@ "use strict"; | ||
var _notNullish = require("./notNullish"); | ||
Object.keys(_notNullish).forEach(function (key) { | ||
if (key === "default" || key === "__esModule") return; | ||
if (key in exports && exports[key] === _notNullish[key]) return; | ||
Object.defineProperty(exports, key, { | ||
enumerable: true, | ||
get: function () { | ||
return _notNullish[key]; | ||
} | ||
}); | ||
}); | ||
var _sleep = require("./sleep"); | ||
@@ -113,0 +126,0 @@ |
@@ -14,3 +14,3 @@ { | ||
}, | ||
"version": "0.16.0", | ||
"version": "0.17.0", | ||
"main": "lib/index.js", | ||
@@ -41,3 +41,3 @@ "files": [ | ||
"@chainsafe/bls": "5.1.0", | ||
"@chainsafe/ssz": "^0.6.13", | ||
"@chainsafe/ssz": "^0.7.0", | ||
"abort-controller": "^3.0.0", | ||
@@ -63,3 +63,3 @@ "any-signal": "2.1.1", | ||
], | ||
"gitHead": "fe7e44bd008601b71972bee9d50b87246ac943d7" | ||
"gitHead": "083db35cb33eb46e5e4ea6d647dccbfc0854a1b2" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
126344
69
1479
+ Added@chainsafe/persistent-merkle-tree@0.3.7(transitive)
+ Added@chainsafe/ssz@0.7.1(transitive)
- Removed@chainsafe/persistent-merkle-tree@0.2.3(transitive)
- Removed@chainsafe/ssz@0.6.13(transitive)
Updated@chainsafe/ssz@^0.7.0