Socket
Socket
Sign inDemoInstall

near-api-js

Package Overview
Dependencies
Maintainers
1
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 0.25.0 to 0.25.1

5

lib/near.d.ts
import BN from 'bn.js';
import { Account } from './account';
import { Connection } from './connection';
import { Signer } from './signer';
import { Contract } from './contract';

@@ -9,3 +10,5 @@ import { PublicKey } from './utils/key_pair';

declare type NearConfig = {
deps: {
keyStore?: KeyStore;
signer?: Signer;
deps?: {
keyStore: KeyStore;

@@ -12,0 +15,0 @@ };

2

lib/near.js

@@ -20,3 +20,3 @@ "use strict";

provider: { type: 'JsonRpcProvider', args: { url: config.nodeUrl } },
signer: { type: 'InMemorySigner', keyStore: config.deps.keyStore }
signer: config.signer || { type: 'InMemorySigner', keyStore: config.keyStore || config.deps.keyStore }
});

@@ -23,0 +23,0 @@ if (config.masterAccount) {

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

@@ -6,0 +6,0 @@ "type": "git",

@@ -5,2 +5,3 @@

import { Connection } from './connection';
import { Signer } from './signer';
import { Contract } from './contract';

@@ -13,3 +14,5 @@ import { readKeyFile } from './key_stores/unencrypted_file_system_keystore';

type NearConfig = {
deps: { keyStore: KeyStore }
keyStore?: KeyStore,
signer?: Signer,
deps?: { keyStore: KeyStore }
helperUrl?: string

@@ -32,3 +35,3 @@ initialBalance?: string

provider: { type: 'JsonRpcProvider', args: { url: config.nodeUrl } },
signer: { type: 'InMemorySigner', keyStore: config.deps.keyStore }
signer: config.signer || { type: 'InMemorySigner', keyStore: config.keyStore || config.deps.keyStore }
});

@@ -35,0 +38,0 @@ if (config.masterAccount) {

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