@artilleryio/int-core 2.27.0 → 2.28.0-670d2fa
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/.turbo/turbo-build.log +4 -0
- package/dist/index.js +13 -0
- package/dist/lib/engine_http.js +817 -0
- package/dist/lib/engine_socketio.js +347 -0
- package/dist/lib/engine_ws.js +278 -0
- package/dist/lib/is-idle-phase.js +9 -0
- package/dist/lib/phases.js +213 -0
- package/dist/lib/readers.js +58 -0
- package/dist/lib/runner.js +463 -0
- package/dist/lib/ssms.js +555 -0
- package/dist/lib/update-global-object.js +75 -0
- package/dist/lib/weighted-pick.js +54 -0
- package/index.ts +14 -0
- package/lib/{engine_http.js → engine_http.ts} +28 -28
- package/lib/{engine_socketio.js → engine_socketio.ts} +13 -11
- package/lib/{engine_ws.js → engine_ws.ts} +16 -10
- package/lib/{is-idle-phase.js → is-idle-phase.ts} +1 -3
- package/lib/{phases.js → phases.ts} +12 -10
- package/lib/{readers.js → readers.ts} +2 -4
- package/lib/{runner.js → runner.ts} +84 -69
- package/lib/{ssms.js → ssms.ts} +18 -18
- package/{index.js → lib/update-global-object.ts} +9 -14
- package/lib/{weighted-pick.js → weighted-pick.ts} +7 -3
- package/package.json +10 -17
- package/tsconfig.build.json +9 -0
- package/types.d.ts +12 -0
package/package.json
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@artilleryio/int-core",
|
|
3
|
-
"version": "2.
|
|
4
|
-
"
|
|
3
|
+
"version": "2.28.0-670d2fa",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"main": "./dist/index.js",
|
|
5
6
|
"license": "MPL-2.0",
|
|
6
7
|
"dependencies": {
|
|
7
|
-
"@artilleryio/int-commons": "2.
|
|
8
|
+
"@artilleryio/int-commons": "2.24.0-670d2fa",
|
|
8
9
|
"@artilleryio/sketches-js": "^2.1.1",
|
|
9
10
|
"agentkeepalive": "^4.6.0",
|
|
10
11
|
"arrivals": "^2.1.2",
|
|
@@ -38,16 +39,9 @@
|
|
|
38
39
|
"lint": "npx @biomejs/biome check .",
|
|
39
40
|
"lint-fix": "npx @biomejs/biome check --write .",
|
|
40
41
|
"test": "npm run test:unit && npm run test:acceptance",
|
|
41
|
-
"test:unit": "
|
|
42
|
-
"test:acceptance": "
|
|
43
|
-
|
|
44
|
-
"tap": {
|
|
45
|
-
"disable-coverage": true,
|
|
46
|
-
"allow-empty-coverage": true,
|
|
47
|
-
"color": true,
|
|
48
|
-
"test-env": [
|
|
49
|
-
"ARTILLERY_TELEMETRY_DEFAULTS={\"source\":\"test-suite\"}"
|
|
50
|
-
]
|
|
42
|
+
"test:unit": "node --test --test-timeout=300000 --require ./test/setup-env.cjs \"test/unit/*.test.js\"",
|
|
43
|
+
"test:acceptance": "node --test --test-timeout=300000 --require ./test/setup-env.cjs \"test/acceptance/*.test.js\" \"test/acceptance/**/*.test.js\"",
|
|
44
|
+
"build": "tsc -p tsconfig.build.json"
|
|
51
45
|
},
|
|
52
46
|
"devDependencies": {
|
|
53
47
|
"@hapi/basic": "^6.0.0",
|
|
@@ -55,9 +49,8 @@
|
|
|
55
49
|
"express": "^4.16.3",
|
|
56
50
|
"nock": "^11.8.2",
|
|
57
51
|
"proxy": "^2.1.1",
|
|
58
|
-
"rewiremock": "^3.14.3",
|
|
59
52
|
"sinon": "^4.5.0",
|
|
60
|
-
"socket.io": "^4.8.0"
|
|
61
|
-
|
|
62
|
-
|
|
53
|
+
"socket.io": "^4.8.0"
|
|
54
|
+
},
|
|
55
|
+
"types": "./types.d.ts"
|
|
63
56
|
}
|
package/types.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// Loose declarations for external TypeScript consumers.
|
|
2
|
+
// package.json "types" points here so external tsc builds use these
|
|
3
|
+
// instead of following "main" into the .ts sources, which would be
|
|
4
|
+
// compiled with the consumer's own (incompatible) compiler settings.
|
|
5
|
+
// Before the ESM migration this package shipped untyped .js - these
|
|
6
|
+
// `any` declarations preserve that contract. Real types come later.
|
|
7
|
+
|
|
8
|
+
export declare const runner: any;
|
|
9
|
+
export declare const engine_http: any;
|
|
10
|
+
export declare const ssms: any;
|
|
11
|
+
export declare const isIdlePhase: any;
|
|
12
|
+
export declare const updateGlobalObject: any;
|