@near-js/transactions
Advanced tools
Comparing version 1.0.1 to 1.1.0
@@ -11,8 +11,5 @@ "use strict"; | ||
}; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.signDelegateAction = exports.signTransaction = void 0; | ||
const js_sha256_1 = __importDefault(require("js-sha256")); | ||
const sha256_1 = require("@noble/hashes/sha256"); | ||
const actions_1 = require("./actions"); | ||
@@ -32,3 +29,3 @@ const create_transaction_1 = require("./create_transaction"); | ||
const message = (0, schema_1.encodeTransaction)(transaction); | ||
const hash = new Uint8Array(js_sha256_1.default.sha256.array(message)); | ||
const hash = new Uint8Array((0, sha256_1.sha256)(message)); | ||
const signature = yield signer.signMessage(message, accountId, networkId); | ||
@@ -74,3 +71,3 @@ const signedTx = new schema_1.SignedTransaction({ | ||
return { | ||
hash: new Uint8Array(js_sha256_1.default.sha256.array(message)), | ||
hash: new Uint8Array((0, sha256_1.sha256)(message)), | ||
signedDelegateAction, | ||
@@ -77,0 +74,0 @@ }; |
{ | ||
"name": "@near-js/transactions", | ||
"version": "1.0.1", | ||
"version": "1.1.0", | ||
"description": "Functions and data types for transactions on NEAR", | ||
@@ -12,5 +12,5 @@ "main": "lib/index.js", | ||
"borsh": "1.0.0", | ||
"js-sha256": "0.9.0", | ||
"@near-js/crypto": "1.1.0", | ||
"@near-js/signers": "0.0.7", | ||
"@noble/hashes": "1.3.3", | ||
"@near-js/crypto": "1.2.0", | ||
"@near-js/signers": "0.1.0", | ||
"@near-js/types": "0.0.4", | ||
@@ -24,3 +24,3 @@ "@near-js/utils": "0.0.5" | ||
"typescript": "4.9.4", | ||
"@near-js/keystores": "0.0.7" | ||
"@near-js/keystores": "0.0.8" | ||
}, | ||
@@ -27,0 +27,0 @@ "files": [ |
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
45050
861
+ Added@noble/hashes@1.3.3
+ Added@near-js/crypto@1.2.0(transitive)
+ Added@near-js/keystores@0.0.8(transitive)
+ Added@near-js/signers@0.1.0(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)
- Removed@near-js/signers@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/signers@0.1.0