Socket
Socket
Sign inDemoInstall

near-api-js

Package Overview
Dependencies
Maintainers
9
Versions
77
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

near-api-js - npm Package Compare versions

Comparing version 2.1.1 to 2.1.2

6

lib/connect.js

@@ -24,2 +24,3 @@ "use strict";

* 2. {@link ConnectConfig.keyPath}
* 3. {@link ConnectConfig.deps.keyStore} (deprecated, only for use in legacy applications)
*

@@ -50,5 +51,6 @@ * If all three are passed they are prioritize in that order.

function connect(config) {
var _a, _b;
return __awaiter(this, void 0, void 0, function* () {
// Try to find extra key in `KeyPath` if provided.
if (config.keyPath && config.keyStore) {
if (config.keyPath && (config.keyStore || ((_a = config.deps) === null || _a === void 0 ? void 0 : _a.keyStore))) {
try {

@@ -66,3 +68,3 @@ const accountKeyFile = yield (0, unencrypted_file_system_keystore_1.readKeyFile)(config.keyPath);

keyPathStore,
config.keyStore
config.keyStore || ((_b = config.deps) === null || _b === void 0 ? void 0 : _b.keyStore)
], { writeKeyStoreIndex: 1 });

@@ -69,0 +71,0 @@ if (!process.env['NEAR_NO_LOGS']) {

{
"name": "near-api-js",
"description": "JavaScript library to interact with NEAR Protocol via RPC API",
"version": "2.1.1",
"version": "2.1.2",
"repository": {

@@ -24,13 +24,13 @@ "type": "git",

"tweetnacl": "^1.0.1",
"@near-js/accounts": "0.1.1",
"@near-js/crypto": "0.0.3",
"@near-js/keystores": "0.0.3",
"@near-js/keystores-browser": "0.0.3",
"@near-js/keystores-node": "0.0.3",
"@near-js/providers": "0.0.4",
"@near-js/signers": "0.0.3",
"@near-js/transactions": "0.1.0",
"@near-js/types": "0.0.3",
"@near-js/utils": "0.0.3",
"@near-js/wallet-account": "0.0.4"
"@near-js/accounts": "0.1.2",
"@near-js/crypto": "0.0.4",
"@near-js/keystores": "0.0.4",
"@near-js/keystores-browser": "0.0.4",
"@near-js/keystores-node": "0.0.4",
"@near-js/providers": "0.0.5",
"@near-js/signers": "0.0.4",
"@near-js/transactions": "0.1.1",
"@near-js/types": "0.0.4",
"@near-js/utils": "0.0.4",
"@near-js/wallet-account": "0.0.5"
},

@@ -37,0 +37,0 @@ "devDependencies": {

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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