Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@near-js/transactions

Package Overview
Dependencies
Maintainers
2
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@near-js/transactions - npm Package Compare versions

Comparing version 1.0.1 to 1.1.0

9

lib/sign.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc