@ethersproject/sha2
Advanced tools
Comparing version 5.4.0 to 5.5.0
@@ -1,2 +0,2 @@ | ||
export declare const version = "sha2/5.4.0"; | ||
export declare const version = "sha2/5.5.0"; | ||
//# sourceMappingURL=_version.d.ts.map |
@@ -1,2 +0,2 @@ | ||
export const version = "sha2/5.4.0"; | ||
export const version = "sha2/5.5.0"; | ||
//# sourceMappingURL=_version.js.map |
@@ -1,2 +0,2 @@ | ||
export declare const version = "sha2/5.4.0"; | ||
export declare const version = "sha2/5.5.0"; | ||
//# sourceMappingURL=_version.d.ts.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.version = void 0; | ||
exports.version = "sha2/5.4.0"; | ||
exports.version = "sha2/5.5.0"; | ||
//# sourceMappingURL=_version.js.map |
@@ -15,11 +15,11 @@ "use strict"; | ||
function ripemd160(data) { | ||
return "0x" + (hash_js_1.default.ripemd160().update(bytes_1.arrayify(data)).digest("hex")); | ||
return "0x" + (hash_js_1.default.ripemd160().update((0, bytes_1.arrayify)(data)).digest("hex")); | ||
} | ||
exports.ripemd160 = ripemd160; | ||
function sha256(data) { | ||
return "0x" + (hash_js_1.default.sha256().update(bytes_1.arrayify(data)).digest("hex")); | ||
return "0x" + (hash_js_1.default.sha256().update((0, bytes_1.arrayify)(data)).digest("hex")); | ||
} | ||
exports.sha256 = sha256; | ||
function sha512(data) { | ||
return "0x" + (hash_js_1.default.sha512().update(bytes_1.arrayify(data)).digest("hex")); | ||
return "0x" + (hash_js_1.default.sha512().update((0, bytes_1.arrayify)(data)).digest("hex")); | ||
} | ||
@@ -34,5 +34,5 @@ exports.sha512 = sha512; | ||
} | ||
return "0x" + hash_js_1.default.hmac(hash_js_1.default[algorithm], bytes_1.arrayify(key)).update(bytes_1.arrayify(data)).digest("hex"); | ||
return "0x" + hash_js_1.default.hmac(hash_js_1.default[algorithm], (0, bytes_1.arrayify)(key)).update((0, bytes_1.arrayify)(data)).digest("hex"); | ||
} | ||
exports.computeHmac = computeHmac; | ||
//# sourceMappingURL=browser-sha2.js.map |
@@ -11,11 +11,11 @@ "use strict"; | ||
function ripemd160(data) { | ||
return "0x" + crypto_1.createHash("ripemd160").update(Buffer.from(bytes_1.arrayify(data))).digest("hex"); | ||
return "0x" + (0, crypto_1.createHash)("ripemd160").update(Buffer.from((0, bytes_1.arrayify)(data))).digest("hex"); | ||
} | ||
exports.ripemd160 = ripemd160; | ||
function sha256(data) { | ||
return "0x" + crypto_1.createHash("sha256").update(Buffer.from(bytes_1.arrayify(data))).digest("hex"); | ||
return "0x" + (0, crypto_1.createHash)("sha256").update(Buffer.from((0, bytes_1.arrayify)(data))).digest("hex"); | ||
} | ||
exports.sha256 = sha256; | ||
function sha512(data) { | ||
return "0x" + crypto_1.createHash("sha512").update(Buffer.from(bytes_1.arrayify(data))).digest("hex"); | ||
return "0x" + (0, crypto_1.createHash)("sha512").update(Buffer.from((0, bytes_1.arrayify)(data))).digest("hex"); | ||
} | ||
@@ -31,5 +31,5 @@ exports.sha512 = sha512; | ||
} | ||
return "0x" + crypto_1.createHmac(algorithm, Buffer.from(bytes_1.arrayify(key))).update(Buffer.from(bytes_1.arrayify(data))).digest("hex"); | ||
return "0x" + (0, crypto_1.createHmac)(algorithm, Buffer.from((0, bytes_1.arrayify)(key))).update(Buffer.from((0, bytes_1.arrayify)(data))).digest("hex"); | ||
} | ||
exports.computeHmac = computeHmac; | ||
//# sourceMappingURL=sha2.js.map |
@@ -10,4 +10,4 @@ { | ||
"dependencies": { | ||
"@ethersproject/bytes": "^5.4.0", | ||
"@ethersproject/logger": "^5.4.0", | ||
"@ethersproject/bytes": "^5.5.0", | ||
"@ethersproject/logger": "^5.5.0", | ||
"hash.js": "1.1.7" | ||
@@ -27,3 +27,3 @@ }, | ||
], | ||
"gitHead": "c2c0ce75039e7256b287f9a764188d08ed0b7296", | ||
"gitHead": "73a46efea32c3f9a4833ed77896a216e3d3752a0", | ||
"keywords": [ | ||
@@ -49,5 +49,5 @@ "Ethereum", | ||
"sideEffects": false, | ||
"tarballHash": "0x4bf12ea02c62c4320f92b46101abb4ac7ac708b7d097eaef3f577124ff64857f", | ||
"tarballHash": "0x07b87d006dce28d562d86a6fa9b1ff89183c48f2f1461d8fa41d67366d0546cc", | ||
"types": "./lib/index.d.ts", | ||
"version": "5.4.0" | ||
"version": "5.5.0" | ||
} |
@@ -1,1 +0,1 @@ | ||
export const version = "sha2/5.4.0"; | ||
export const version = "sha2/5.5.0"; |
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
21512
Updated@ethersproject/bytes@^5.5.0
Updated@ethersproject/logger@^5.5.0