@gatling.io/http 3.14.306 → 3.14.500
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/package.json +6 -6
- package/target/sse.d.ts +4 -6
- package/target/sse.js +9 -10
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gatling.io/http",
|
|
3
|
-
"version": "3.14.
|
|
3
|
+
"version": "3.14.500",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"homepage": "https://gatling.io",
|
|
6
6
|
"repository": "github:gatling/gatling-js",
|
|
@@ -20,17 +20,17 @@
|
|
|
20
20
|
"main": "target/index.js",
|
|
21
21
|
"types": "target/index.d.ts",
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@gatling.io/
|
|
24
|
-
"@gatling.io/
|
|
23
|
+
"@gatling.io/core": "3.14.500",
|
|
24
|
+
"@gatling.io/jvm-types": "3.14.500"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"@types/jest": "30.0.0",
|
|
28
|
-
"jest": "30.
|
|
28
|
+
"jest": "30.1.3",
|
|
29
29
|
"prettier": "3.6.2",
|
|
30
30
|
"rimraf": "6.0.1",
|
|
31
|
-
"ts-jest": "29.4.
|
|
31
|
+
"ts-jest": "29.4.4",
|
|
32
32
|
"ts-node": "10.9.2",
|
|
33
|
-
"typescript": "5.
|
|
33
|
+
"typescript": "5.9.2"
|
|
34
34
|
},
|
|
35
35
|
"scripts": {
|
|
36
36
|
"clean": "rimraf target",
|
package/target/sse.d.ts
CHANGED
|
@@ -94,15 +94,9 @@ export interface SseAwaitActionBuilder<T> {
|
|
|
94
94
|
export interface SseConnectActionBuilder extends SseAwaitActionBuilder<SseConnectActionBuilder>, RequestWithBodyActionBuilder<SseConnectActionBuilder>, RequestActionBuilder<SseConnectActionBuilder>, ActionBuilder {
|
|
95
95
|
_underlying: JvmSseConnectActionBuilder;
|
|
96
96
|
}
|
|
97
|
-
export declare const wrapSseConnectActionBuilder: (_underlying: JvmSseConnectActionBuilder) => SseConnectActionBuilder;
|
|
98
|
-
export interface SseInboundMessage {
|
|
99
|
-
message(): string;
|
|
100
|
-
timestamp(): number;
|
|
101
|
-
}
|
|
102
97
|
export interface SseSetCheckActionBuilder extends SseAwaitActionBuilder<SseSetCheckActionBuilder>, ActionBuilder {
|
|
103
98
|
_underlying: JvmSseSetCheckActionBuilder;
|
|
104
99
|
}
|
|
105
|
-
export declare const wrapSseSetCheckActionBuilder: (_underlying: JvmSseSetCheckActionBuilder) => SseSetCheckActionBuilder;
|
|
106
100
|
/**
|
|
107
101
|
* DSL for building <a
|
|
108
102
|
* href="https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events">SSE</a>
|
|
@@ -179,6 +173,10 @@ export interface SseApply {
|
|
|
179
173
|
*/
|
|
180
174
|
(name: string, sseName?: string): Sse;
|
|
181
175
|
}
|
|
176
|
+
export interface SseInboundMessage {
|
|
177
|
+
message(): string;
|
|
178
|
+
timestamp(): number;
|
|
179
|
+
}
|
|
182
180
|
export interface SsePrefix {
|
|
183
181
|
/**
|
|
184
182
|
* Boostrap a SSE check
|
package/target/sse.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.sse =
|
|
3
|
+
exports.sse = void 0;
|
|
4
4
|
const core_1 = require("@gatling.io/core");
|
|
5
5
|
const jvm_types_1 = require("@gatling.io/jvm-types");
|
|
6
6
|
const request_1 = require("./request");
|
|
@@ -48,21 +48,19 @@ const sseAwaitActionBuilderImpl = (jvmBuilder, wrap) => ({
|
|
|
48
48
|
});
|
|
49
49
|
const wrapSseConnectActionBuilder = (_underlying) => ({
|
|
50
50
|
_underlying,
|
|
51
|
-
...(0, request_1.requestActionBuilderImpl)(_underlying,
|
|
52
|
-
...(0, request_1.requestWithBodyActionBuilderImpl)(_underlying,
|
|
53
|
-
...sseAwaitActionBuilderImpl(_underlying,
|
|
51
|
+
...(0, request_1.requestActionBuilderImpl)(_underlying, wrapSseConnectActionBuilder),
|
|
52
|
+
...(0, request_1.requestWithBodyActionBuilderImpl)(_underlying, wrapSseConnectActionBuilder),
|
|
53
|
+
...sseAwaitActionBuilderImpl(_underlying, wrapSseConnectActionBuilder)
|
|
54
54
|
});
|
|
55
|
-
exports.wrapSseConnectActionBuilder = wrapSseConnectActionBuilder;
|
|
56
55
|
const wrapSseSetCheckActionBuilder = (_underlying) => ({
|
|
57
56
|
_underlying,
|
|
58
|
-
...sseAwaitActionBuilderImpl(_underlying,
|
|
57
|
+
...sseAwaitActionBuilderImpl(_underlying, wrapSseSetCheckActionBuilder)
|
|
59
58
|
});
|
|
60
|
-
exports.wrapSseSetCheckActionBuilder = wrapSseSetCheckActionBuilder;
|
|
61
59
|
const wrapSse = (jvmSse) => ({
|
|
62
60
|
sseName: (sseName) => wrapSse(typeof sseName === "function" ? jvmSse.sseName((0, core_1.underlyingSessionTo)(sseName)) : jvmSse.sseName(sseName)),
|
|
63
|
-
get: (url) =>
|
|
64
|
-
post: (url) =>
|
|
65
|
-
setCheck: () =>
|
|
61
|
+
get: (url) => wrapSseConnectActionBuilder(typeof url === "function" ? jvmSse.get((0, core_1.underlyingSessionTo)(url)) : jvmSse.get(url)),
|
|
62
|
+
post: (url) => wrapSseConnectActionBuilder(typeof url === "function" ? jvmSse.post((0, core_1.underlyingSessionTo)(url)) : jvmSse.post(url)),
|
|
63
|
+
setCheck: () => wrapSseSetCheckActionBuilder(jvmSse.setCheck()),
|
|
66
64
|
close: () => (0, core_1.wrapActionBuilder)(jvmSse.close())
|
|
67
65
|
});
|
|
68
66
|
const sseApply = (name, sseName) => {
|
|
@@ -95,4 +93,5 @@ const ssePrefix = {
|
|
|
95
93
|
throw Error(`processUnmatchedMessages() called with invalid arguments ${arg0}, ${arg1}`);
|
|
96
94
|
}
|
|
97
95
|
};
|
|
96
|
+
// FIXME Sse.Apply && Prefix?
|
|
98
97
|
exports.sse = Object.assign(sseApply, ssePrefix);
|