Comparing version
module.exports = { | ||
env: { | ||
mocha: true, | ||
mocha: true | ||
}, | ||
plugins: ['chai-friendly'], | ||
extends: ['standard', 'prettier', 'prettier/standard'], | ||
extends: ['standard', 'prettier'], | ||
root: true, | ||
@@ -13,9 +13,9 @@ rules: { | ||
{ | ||
varsIgnorePattern: 'should|expect', | ||
}, | ||
varsIgnorePattern: 'should|expect' | ||
} | ||
], | ||
// disable the original no-unused-expressions use chai-friendly | ||
'no-unused-expressions': 'off', | ||
'chai-friendly/no-unused-expressions': 'error', | ||
}, | ||
'chai-friendly/no-unused-expressions': 'error' | ||
} | ||
}; |
@@ -71,2 +71,3 @@ Usage: wait-on {OPTIONS} resource [...resource] | ||
default Infinity | ||
Use postfix 'ms', 's', 'm' or 'h' to change the unit. | ||
@@ -76,3 +77,9 @@ --tcpTimeout | ||
Maximum time in ms for tcp connect, default 300ms | ||
Use postfix 'ms', 's', 'm' or 'h' to change the unit. | ||
--httpTimeout | ||
Maximum time to wait for the HTTP request, default Infinity | ||
Use postfix 'ms', 's', 'm' or 'h' to change the unit. | ||
-v, --verbose | ||
@@ -79,0 +86,0 @@ |
@@ -15,4 +15,4 @@ module.exports = { | ||
auth: { | ||
user: 'yourusername', | ||
pass: 'yourpassword' | ||
username: 'yourusername', | ||
password: 'yourpassword' | ||
}, | ||
@@ -19,0 +19,0 @@ strictSSL: false, |
@@ -10,3 +10,2 @@ 'use strict'; | ||
const axiosPkg = require('axios').default; | ||
const axiosHttpAdapter = require('axios/lib/adapters/http'); | ||
const { isBoolean, isEmpty, negate, noop, once, partial, pick, zip } = require('lodash/fp'); | ||
@@ -18,3 +17,3 @@ const { NEVER, combineLatest, from, merge, throwError, timer } = require('rxjs'); | ||
// be used and it logs all errors polluting the logs | ||
const axios = axiosPkg.create({ adapter: axiosHttpAdapter }); | ||
const axios = axiosPkg.create({ adapter: 'http' }); | ||
const isNotABoolean = negate(isBoolean); | ||
@@ -21,0 +20,0 @@ const isNotEmpty = negate(isEmpty); |
{ | ||
"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": "6.0.1", | ||
"version": "7.2.0", | ||
"main": "lib/wait-on", | ||
@@ -24,24 +24,24 @@ "bin": { | ||
"engines": { | ||
"node": ">=10.0.0" | ||
"node": ">=12.0.0" | ||
}, | ||
"devDependencies": { | ||
"eslint": "^7.29.0", | ||
"eslint-config-prettier": "^8.3.0", | ||
"eslint-config-standard": "^16.0.3", | ||
"eslint": "^8.52.0", | ||
"eslint-config-prettier": "^9.0.0", | ||
"eslint-config-standard": "^17.1.0", | ||
"eslint-plugin-chai-friendly": "^0.7.2", | ||
"eslint-plugin-import": "^2.25.4", | ||
"eslint-plugin-import": "^2.29.0", | ||
"eslint-plugin-n": "^16.2.0", | ||
"eslint-plugin-node": "^11.1.0", | ||
"eslint-plugin-promise": "^5.1.0", | ||
"eslint-plugin-standard": "^5.0.0", | ||
"eslint-plugin-promise": "^6.1.1", | ||
"expect-legacy": "^1.20.2", | ||
"mkdirp": "^1.0.4", | ||
"mocha": "^9.2.0", | ||
"mocha": "^10.2.0", | ||
"temp": "^0.9.4" | ||
}, | ||
"dependencies": { | ||
"axios": "^0.25.0", | ||
"joi": "^17.6.0", | ||
"axios": "^1.6.1", | ||
"joi": "^17.11.0", | ||
"lodash": "^4.17.21", | ||
"minimist": "^1.2.5", | ||
"rxjs": "^7.5.4" | ||
"minimist": "^1.2.8", | ||
"rxjs": "^7.8.1" | ||
}, | ||
@@ -48,0 +48,0 @@ "keywords": [ |
@@ -15,3 +15,4 @@ # wait-on - wait for files, ports, sockets, http(s) resources | ||
Latest version 4+ requires Node.js 10+ | ||
Latest wait-on version 7+ requires Node.js 12+ | ||
wait-on versions 4-6 requires Node.js 10+ | ||
@@ -124,7 +125,14 @@ (Node.js v8 users can use wait-on@5.3.0, v4 users can still use wait-on@2.1.2, and older Node.js | ||
default Infinity | ||
Use postfix 'ms', 's', 'm' or 'h' to change the unit. | ||
--tcpTimeout | ||
Maximum time in ms for tcp connect, default 300ms | ||
Maximum time in ms for tcp connect, default 300ms | ||
Use postfix 'ms', 's', 'm' or 'h' to change the unit. | ||
--httpTimeout | ||
Maximum time to wait for the HTTP request, default Infinity | ||
Use postfix 'ms', 's', 'm' or 'h' to change the unit. | ||
-v, --verbose | ||
@@ -131,0 +139,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
35668
2.86%306
2.68%418
-0.24%+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
- Removed
Updated
Updated
Updated
Updated