Socket
Socket
Sign inDemoInstall

wait-on

Package Overview
Dependencies
Maintainers
1
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wait-on - npm Package Compare versions

Comparing version 5.1.0-rc.1 to 5.1.0

2

package.json
{
"name": "wait-on",
"description": "wait-on is a cross platform command line utility and Node.js API which will wait for files, ports, sockets, and http(s) resources to become available",
"version": "5.1.0-rc.1",
"version": "5.1.0",
"main": "lib/wait-on",

@@ -6,0 +6,0 @@ "bin": {

@@ -162,2 +162,3 @@ # wait-on - wait for files, ports, sockets, http(s) resources

interval: 100, // poll interval in ms, default 250ms
simultaneous: 1, // limit to 1 connection per resource at a time
timeout: 30000, // timeout in ms, default Infinity

@@ -236,2 +237,3 @@ tcpTimeout: 1000, // tcp timeout in ms, default 300ms

- opts.reverse - optional flag to reverse operation so checks are for resources being NOT available, default false
- opts.simultaneous - optional count to limit concurrent connections per resource at a time, setting to 1 waits for previous connection to succeed, fail, or timeout before sending another, default infinity
- opts.timeout - optional timeout in ms, default Infinity. Aborts with error.

@@ -247,7 +249,21 @@ - opts.tcpTimeout - optional tcp timeout in ms, default 300ms

- opts.passphrase: 'yourpassphrase',
- opts.auth: { user, pass }
- opts.strictSSL: false,
- opts.followRedirect: false, // defaults to true
- opts.headers: { 'x-custom': 'headers' },
- opts.proxy: undefined, false, or object as defined in axios. Default is undefined. If not set axios detects proxy from env vars http_proxy and https_proxy. https://github.com/axios/axios#config-defaults
```js
// example proxy object
{
host: '127.0.0.1',
port: 9000,
auth: {
username: 'mikeymike',
password: 'rapunz3l'
}
}
```
- opts.auth: { user, pass }
- opts.strictSSL: false,
- opts.followRedirect: false, // defaults to true
- opts.headers: { 'x-custom': 'headers' },
- cb(err) - if err is provided then, resource checks did not succeed

@@ -254,0 +270,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