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

@abtnode/util

Package Overview
Dependencies
Maintainers
3
Versions
770
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@abtnode/util - npm Package Compare versions

Comparing version 1.0.16 to 1.0.18

lib/constants.js

5

lib/ensure_endpoint_healthy.js

@@ -56,3 +56,4 @@ const axios = require('axios');

module.exports = async ({ endpoint, timeout = 10 * 1000 }) => {
module.exports = async ({ endpoint, timeout = 10 * 1000, minConsecutiveTime = 5 * 1000 }) => {
debug('ensure endpoint healthy', { endpoint, minConsecutiveTime });
if (timeout < 10 * 1000) {

@@ -64,4 +65,4 @@ throw new Error('minimum timeout is 10000ms');

await ensureStarted(endpoint);
await ensureHealthy({ endpoint });
await ensureHealthy({ endpoint, minConsecutiveTime });
}, timeout);
};

@@ -11,4 +11,9 @@ const pkg = require('../package.json');

const sleep = require('./sleep');
const getTmpDirectory = require('./get_tmp_directory');
const getFolderSize = require('./get_folder_size');
const constants = require('./constants');
module.exports = {
getTmpDirectory,
getFolderSize,
isDocker,

@@ -24,2 +29,3 @@ isValidPort,

ensureEndpointHealthy,
constants,
};

1

lib/read_blocklet_config.js

@@ -44,2 +44,3 @@ const fs = require('fs');

capabilities: false,
exposeServices: false,
};

@@ -46,0 +47,0 @@

@@ -6,3 +6,3 @@ {

},
"version": "1.0.16",
"version": "1.0.18",
"description": "ArcBlock's JavaScript utility",

@@ -31,3 +31,2 @@ "main": "lib/index.js",

"lodash": "^4.17.15",
"nedb": "^1.8.0",
"parallel-transform": "^1.2.0",

@@ -44,3 +43,3 @@ "pump": "^3.0.0",

},
"gitHead": "e211a00e13e0e7b2e7ffd75b9e3864bdc79c90ac"
"gitHead": "55d8a175fa61b4bfcc94a95776b30fcc01c53950"
}
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