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

@near-js/signers

Package Overview
Dependencies
Maintainers
2
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@near-js/signers - npm Package Compare versions

Comparing version 0.0.7 to 0.1.0

7

lib/in_memory_signer.js

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

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