New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

nano-account-crawler

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nano-account-crawler - npm Package Compare versions

Comparing version 1.0.23 to 1.0.24

2

package.json
{
"name": "nano-account-crawler",
"version": "1.0.23",
"version": "1.0.24",
"description": "Makes block iterators that make multiple RPC calls to Nano nodes if neccessary. Block confirmation height is checked so only confirmed blocks are iterated.",

@@ -5,0 +5,0 @@ "repository": "https://github.com/Airtune/nano-account-crawler",

@@ -108,3 +108,3 @@ import {

}
this.validateIsAccountInfo(response);
this.validateIsAccountInfo(account, response);

@@ -165,13 +165,13 @@ return response;

private validateIsAccountInfo(accountInfo: INanoAccountInfo) {
private validateIsAccountInfo(account: TAccount, accountInfo: INanoAccountInfo) {
if (typeof(accountInfo) !== 'object') {
throw Error(`UnexpectedNanoNodeResponse: Unexpected accountInfo. Expected type to be 'object', got: ${typeof(accountInfo)}`);
throw Error(`UnexpectedNanoNodeResponse: Unexpected accountInfo. Expected type to be 'object', got: '${typeof(accountInfo)}' for ${account}`);
}
if (accountInfo.hasOwnProperty('error')) {
throw Error(`NanoNodeError: ${accountInfo.error}`);
throw Error(`NanoNodeError: ${accountInfo.error} for ${account}`);
}
if (typeof(accountInfo['confirmation_height']) !== 'string') {
throw Error(`UnexpectedNanoNodeResponse: Unexpected accountInfo['confirmation_height']. Expected type to be 'string', got: ${typeof(accountInfo['confirmation_height'])}`);
throw Error(`UnexpectedNanoNodeResponse: Unexpected accountInfo['confirmation_height']. Expected type to be 'string', got: ${typeof(accountInfo['confirmation_height'])} for ${account}`);
}

@@ -178,0 +178,0 @@ }

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