@artilleryio/int-core 2.0.1 → 2.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/phases.js +6 -1
- package/package.json +2 -2
package/lib/phases.js
CHANGED
|
@@ -12,10 +12,15 @@ const arrivals = require('arrivals');
|
|
|
12
12
|
const debug = require('debug')('phases');
|
|
13
13
|
const crypto = require('crypto');
|
|
14
14
|
const driftless = require('driftless');
|
|
15
|
-
const sleep = require('../../artillery/lib/util/sleep');
|
|
16
15
|
|
|
17
16
|
module.exports = phaser;
|
|
18
17
|
|
|
18
|
+
async function sleep(ms) {
|
|
19
|
+
return new Promise((resolve) => {
|
|
20
|
+
setTimeout(resolve, ms);
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
|
|
19
24
|
function phaser(phaseSpecs) {
|
|
20
25
|
let ee = new EventEmitter();
|
|
21
26
|
|
package/package.json
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@artilleryio/int-core",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.3",
|
|
4
4
|
"main": "./index.js",
|
|
5
5
|
"dependencies": {
|
|
6
|
+
"@artilleryio/int-commons": "latest",
|
|
6
7
|
"@artilleryio/sketches-js": "^1.0.4",
|
|
7
8
|
"@hapi/basic": "^6.0.0",
|
|
8
9
|
"agentkeepalive": "^4.1.0",
|
|
@@ -10,7 +11,6 @@
|
|
|
10
11
|
"async": "^2.6.4",
|
|
11
12
|
"chalk": "^2.4.2",
|
|
12
13
|
"cheerio": "^1.0.0-rc.10",
|
|
13
|
-
"commons": "*",
|
|
14
14
|
"cookie-parser": "^1.4.3",
|
|
15
15
|
"csv-parse": "^4.16.3",
|
|
16
16
|
"debug": "^4.3.1",
|