@emurgo/yoroi-lib
Advanced tools
Comparing version 0.8.4 to 0.8.5
@@ -11,12 +11,5 @@ "use strict"; | ||
}; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const blake2_1 = __importDefault(require("blake2")); | ||
const blake2b = (x, size) => __awaiter(void 0, void 0, void 0, function* () { | ||
return blake2_1.default.createHash('blake2b', { digestLength: size / 8 }) | ||
.update(Buffer.from(x)) | ||
.digest('hex'); | ||
}); | ||
const blake2b_1 = require("@noble/hashes/blake2b"); | ||
const blake2b = (x, size) => __awaiter(void 0, void 0, void 0, function* () { return Buffer.from((0, blake2b_1.blake2b)(x, { dkLen: size / 8 })).toString('hex'); }); | ||
exports.default = blake2b; |
{ | ||
"name": "@emurgo/yoroi-lib", | ||
"version": "0.8.4", | ||
"version": "0.8.5", | ||
"description": "", | ||
@@ -30,10 +30,9 @@ "main": "dist/index.js", | ||
"@emurgo/cross-csl-core": "^2.7.0", | ||
"@noble/hashes": "^1.3.2", | ||
"axios": "^0.24.0", | ||
"bech32": "^2.0.0", | ||
"bignumber.js": "^9.0.1", | ||
"blake2": "^5.0.0" | ||
"bignumber.js": "^9.0.1" | ||
}, | ||
"devDependencies": { | ||
"@emurgo/cross-csl-nodejs": "^2.7.0", | ||
"@types/blake2": "^4.0.2", | ||
"@types/chai": "^4.2.21", | ||
@@ -40,0 +39,0 @@ "@types/mocha": "^9.0.0", |
17
243030
4335
+ Added@noble/hashes@^1.3.2
+ Added@noble/hashes@1.7.1(transitive)
- Removedblake2@^5.0.0
- Removedblake2@5.0.0(transitive)