@near-js/signers
Advanced tools
Comparing version 0.0.7 to 0.1.0
@@ -11,5 +11,2 @@ "use strict"; | ||
}; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -19,3 +16,3 @@ exports.InMemorySigner = void 0; | ||
const keystores_1 = require("@near-js/keystores"); | ||
const js_sha256_1 = __importDefault(require("js-sha256")); | ||
const sha256_1 = require("@noble/hashes/sha256"); | ||
const signer_1 = require("./signer"); | ||
@@ -82,3 +79,3 @@ /** | ||
return __awaiter(this, void 0, void 0, function* () { | ||
const hash = new Uint8Array(js_sha256_1.default.sha256.array(message)); | ||
const hash = new Uint8Array((0, sha256_1.sha256)(message)); | ||
if (!accountId) { | ||
@@ -85,0 +82,0 @@ throw new Error('InMemorySigner requires provided account id'); |
{ | ||
"name": "@near-js/signers", | ||
"version": "0.0.7", | ||
"version": "0.1.0", | ||
"description": "Core dependencies for the NEAR API JavaScript client", | ||
@@ -10,5 +10,5 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"js-sha256": "0.9.0", | ||
"@near-js/crypto": "1.1.0", | ||
"@near-js/keystores": "0.0.7" | ||
"@noble/hashes": "1.3.3", | ||
"@near-js/crypto": "1.2.0", | ||
"@near-js/keystores": "0.0.8" | ||
}, | ||
@@ -15,0 +15,0 @@ "devDependencies": { |
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
12019
175
+ Added@noble/hashes@1.3.3
+ Added@near-js/crypto@1.2.0(transitive)
+ Added@near-js/keystores@0.0.8(transitive)
+ Added@noble/hashes@1.3.3(transitive)
- Removedjs-sha256@0.9.0
- Removed@near-js/crypto@1.1.0(transitive)
- Removed@near-js/keystores@0.0.7(transitive)
- Removedasn1.js@4.10.1(transitive)
- Removedbn.js@4.12.0(transitive)
- Removedbrorand@1.1.0(transitive)
- Removedbrowserify-aes@1.2.0(transitive)
- Removedbrowserify-cipher@1.0.1(transitive)
- Removedbrowserify-des@1.0.2(transitive)
- Removedbrowserify-rsa@4.1.1(transitive)
- Removedbrowserify-sign@4.2.3(transitive)
- Removedbuffer-xor@1.0.3(transitive)
- Removedcipher-base@1.0.4(transitive)
- Removedcore-util-is@1.0.3(transitive)
- Removedcreate-ecdh@4.0.4(transitive)
- Removedcreate-hash@1.2.0(transitive)
- Removedcreate-hmac@1.1.7(transitive)
- Removedcrypto-browserify@3.12.0(transitive)
- Removeddes.js@1.1.0(transitive)
- Removeddiffie-hellman@5.0.3(transitive)
- Removedelliptic@6.6.0(transitive)
- Removedevp_bytestokey@1.0.3(transitive)
- Removedhash-base@3.0.4(transitive)
- Removedhash.js@1.1.7(transitive)
- Removedhmac-drbg@1.0.1(transitive)
- Removedinherits@2.0.4(transitive)
- Removedisarray@1.0.0(transitive)
- Removedjs-sha256@0.9.0(transitive)
- Removedmd5.js@1.3.5(transitive)
- Removedmiller-rabin@4.0.1(transitive)
- Removedminimalistic-assert@1.0.1(transitive)
- Removedminimalistic-crypto-utils@1.0.1(transitive)
- Removedparse-asn1@5.1.7(transitive)
- Removedpbkdf2@3.1.2(transitive)
- Removedprocess-nextick-args@2.0.1(transitive)
- Removedpublic-encrypt@4.0.3(transitive)
- Removedrandomfill@1.0.4(transitive)
- Removedreadable-stream@2.3.8(transitive)
- Removedripemd160@2.0.2(transitive)
- Removedsafe-buffer@5.1.2(transitive)
- Removedsha.js@2.4.11(transitive)
- Removedstring_decoder@1.1.1(transitive)
- Removedutil-deprecate@1.0.2(transitive)
Updated@near-js/crypto@1.2.0
Updated@near-js/keystores@0.0.8