@gatling.io/core 3.14.905 → 3.15.0
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 +4 -4
- package/target/feeders.d.ts +8 -32
- package/target/feeders.js +4 -17
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gatling.io/core",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.15.0",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"homepage": "https://gatling.io",
|
|
6
6
|
"repository": "github:gatling/gatling-js",
|
|
@@ -20,13 +20,13 @@
|
|
|
20
20
|
"main": "target/index.js",
|
|
21
21
|
"types": "target/index.d.ts",
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@gatling.io/jvm-types": "3.
|
|
23
|
+
"@gatling.io/jvm-types": "3.15.0"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"@types/jest": "30.0.0",
|
|
27
27
|
"jest": "30.2.0",
|
|
28
|
-
"prettier": "3.8.
|
|
29
|
-
"rimraf": "6.1.
|
|
28
|
+
"prettier": "3.8.1",
|
|
29
|
+
"rimraf": "6.1.3",
|
|
30
30
|
"ts-jest": "29.4.6",
|
|
31
31
|
"ts-node": "10.9.2",
|
|
32
32
|
"typescript": "5.9.3"
|
package/target/feeders.d.ts
CHANGED
|
@@ -65,30 +65,6 @@ export interface FileBasedFeederBuilder<T> extends FeederBuilder<T> {
|
|
|
65
65
|
unzip(): FileBasedFeederBuilder<T>;
|
|
66
66
|
}
|
|
67
67
|
export declare const wrapFileBasedFeederBuilder: <T>(_underlying: JvmFeederBuilderFileBased<T>) => FileBasedFeederBuilder<T>;
|
|
68
|
-
export interface BatchableFeederBuilder<T> extends FileBasedFeederBuilder<T> {
|
|
69
|
-
/**
|
|
70
|
-
* Force loading the whole data in memory from the underlying source at once. Faster runtime but
|
|
71
|
-
* slower boot time and higher heap usage.
|
|
72
|
-
*
|
|
73
|
-
* @returns a new Batchable
|
|
74
|
-
*/
|
|
75
|
-
eager(): BatchableFeederBuilder<T>;
|
|
76
|
-
/**
|
|
77
|
-
* Force loading small chunks of data from the underlying source one by one. Slower runtime but
|
|
78
|
-
* faster boot time and lower memory consumption.
|
|
79
|
-
*
|
|
80
|
-
* @returns a new Batchable
|
|
81
|
-
*/
|
|
82
|
-
batch(): BatchableFeederBuilder<T>;
|
|
83
|
-
/**
|
|
84
|
-
* Force loading small chunks of data from the underlying source one by one Slower runtime but
|
|
85
|
-
* faster boot time and lower memory consumption.
|
|
86
|
-
*
|
|
87
|
-
* @param lines - the number of buffered lines
|
|
88
|
-
* @returns a new Batchable
|
|
89
|
-
*/
|
|
90
|
-
batch(lines: number): BatchableFeederBuilder<T>;
|
|
91
|
-
}
|
|
92
68
|
export interface CsvFunction {
|
|
93
69
|
/**
|
|
94
70
|
* Bootstrap a new {@link https://datatracker.ietf.org/doc/html/rfc4180 | CSV file} based feeder
|
|
@@ -96,7 +72,7 @@ export interface CsvFunction {
|
|
|
96
72
|
* @param filePath - the path of the file, relative to the root of the resources folder
|
|
97
73
|
* @returns a new feeder
|
|
98
74
|
*/
|
|
99
|
-
(filePath: string):
|
|
75
|
+
(filePath: string): FileBasedFeederBuilder<string>;
|
|
100
76
|
/**
|
|
101
77
|
* Bootstrap a new {@link https://datatracker.ietf.org/doc/html/rfc4180 | CSV file} based feeder
|
|
102
78
|
*
|
|
@@ -104,7 +80,7 @@ export interface CsvFunction {
|
|
|
104
80
|
* @param quoteChar - the quote char to wrap values containing special characters
|
|
105
81
|
* @returns a new feeder
|
|
106
82
|
*/
|
|
107
|
-
(filePath: string, quoteChar: string):
|
|
83
|
+
(filePath: string, quoteChar: string): FileBasedFeederBuilder<string>;
|
|
108
84
|
}
|
|
109
85
|
export declare const csv: CsvFunction;
|
|
110
86
|
export interface SsvFunction {
|
|
@@ -115,7 +91,7 @@ export interface SsvFunction {
|
|
|
115
91
|
* @param filePath - the path of the file, relative to the root of the resources folder
|
|
116
92
|
* @returns a new feeder
|
|
117
93
|
*/
|
|
118
|
-
(filePath: string):
|
|
94
|
+
(filePath: string): FileBasedFeederBuilder<string>;
|
|
119
95
|
/**
|
|
120
96
|
* Bootstrap a new {@link https://datatracker.ietf.org/doc/html/rfc4180 | CSV file} based feeder, where the separator
|
|
121
97
|
* is a semi-colon
|
|
@@ -124,7 +100,7 @@ export interface SsvFunction {
|
|
|
124
100
|
* @param quoteChar - the quote char to wrap values containing special characters (must be a single character)
|
|
125
101
|
* @returns a new feeder
|
|
126
102
|
*/
|
|
127
|
-
(filePath: string, quoteChar: string):
|
|
103
|
+
(filePath: string, quoteChar: string): FileBasedFeederBuilder<string>;
|
|
128
104
|
}
|
|
129
105
|
export declare const ssv: SsvFunction;
|
|
130
106
|
export interface TsvFunction {
|
|
@@ -135,7 +111,7 @@ export interface TsvFunction {
|
|
|
135
111
|
* @param filePath - the path of the file, relative to the root of the resources folder
|
|
136
112
|
* @returns a new feeder
|
|
137
113
|
*/
|
|
138
|
-
(filePath: string):
|
|
114
|
+
(filePath: string): FileBasedFeederBuilder<string>;
|
|
139
115
|
/**
|
|
140
116
|
* Bootstrap a new {@link https://datatracker.ietf.org/doc/html/rfc4180 | CSV file} based feeder, where the separator
|
|
141
117
|
* is a tab
|
|
@@ -144,7 +120,7 @@ export interface TsvFunction {
|
|
|
144
120
|
* @param quoteChar - the quote char to wrap values containing special characters (must be a single character)
|
|
145
121
|
* @returns a new feeder
|
|
146
122
|
*/
|
|
147
|
-
(filePath: string, quoteChar: string):
|
|
123
|
+
(filePath: string, quoteChar: string): FileBasedFeederBuilder<string>;
|
|
148
124
|
}
|
|
149
125
|
export declare const tsv: TsvFunction;
|
|
150
126
|
export interface SeparatedValuesFunction {
|
|
@@ -156,7 +132,7 @@ export interface SeparatedValuesFunction {
|
|
|
156
132
|
* @param separator - the provided separator char (must be a single character)
|
|
157
133
|
* @returns a new feeder
|
|
158
134
|
*/
|
|
159
|
-
(filePath: string, separator: string):
|
|
135
|
+
(filePath: string, separator: string): FileBasedFeederBuilder<string>;
|
|
160
136
|
/**
|
|
161
137
|
* Bootstrap a new {@link https://datatracker.ietf.org/doc/html/rfc4180 | CSV file} based feeder, where the separator
|
|
162
138
|
* is a tab
|
|
@@ -166,7 +142,7 @@ export interface SeparatedValuesFunction {
|
|
|
166
142
|
* @param quoteChar - the quote char to wrap values containing special characters (must be a single character)
|
|
167
143
|
* @returns a new feeder
|
|
168
144
|
*/
|
|
169
|
-
(filePath: string, separator: string, quoteChar: string):
|
|
145
|
+
(filePath: string, separator: string, quoteChar: string): FileBasedFeederBuilder<string>;
|
|
170
146
|
}
|
|
171
147
|
export declare const separatedValues: SeparatedValuesFunction;
|
|
172
148
|
/**
|
package/target/feeders.js
CHANGED
|
@@ -24,26 +24,13 @@ const wrapFileBasedFeederBuilder = (_underlying) => ({
|
|
|
24
24
|
unzip: () => (0, exports.wrapFileBasedFeederBuilder)(_underlying.unzip())
|
|
25
25
|
});
|
|
26
26
|
exports.wrapFileBasedFeederBuilder = wrapFileBasedFeederBuilder;
|
|
27
|
-
const
|
|
28
|
-
_underlying,
|
|
29
|
-
queue: () => wrapBatchableFeederBuilder(_underlying.queue()),
|
|
30
|
-
random: () => wrapBatchableFeederBuilder(_underlying.random()),
|
|
31
|
-
shuffle: () => wrapBatchableFeederBuilder(_underlying.shuffle()),
|
|
32
|
-
circular: () => wrapBatchableFeederBuilder(_underlying.circular()),
|
|
33
|
-
transform: (f) => wrapFeederBuilder(_underlying.transform(f)),
|
|
34
|
-
recordsCount: () => _underlying.recordsCount(),
|
|
35
|
-
shard: () => wrapBatchableFeederBuilder(_underlying.shard()),
|
|
36
|
-
unzip: () => wrapBatchableFeederBuilder(_underlying.unzip()),
|
|
37
|
-
eager: () => wrapBatchableFeederBuilder(_underlying.eager()),
|
|
38
|
-
batch: (lines) => wrapBatchableFeederBuilder(lines !== undefined ? _underlying.batch(lines) : _underlying.batch())
|
|
39
|
-
});
|
|
40
|
-
const csv = (filePath, quoteChar) => wrapBatchableFeederBuilder(quoteChar !== undefined ? jvm_types_1.CoreDsl.csv(filePath, quoteChar) : jvm_types_1.CoreDsl.csv(filePath));
|
|
27
|
+
const csv = (filePath, quoteChar) => (0, exports.wrapFileBasedFeederBuilder)(quoteChar !== undefined ? jvm_types_1.CoreDsl.csv(filePath, quoteChar) : jvm_types_1.CoreDsl.csv(filePath));
|
|
41
28
|
exports.csv = csv;
|
|
42
|
-
const ssv = (filePath, quoteChar) =>
|
|
29
|
+
const ssv = (filePath, quoteChar) => (0, exports.wrapFileBasedFeederBuilder)(quoteChar !== undefined ? jvm_types_1.CoreDsl.ssv(filePath, quoteChar) : jvm_types_1.CoreDsl.ssv(filePath));
|
|
43
30
|
exports.ssv = ssv;
|
|
44
|
-
const tsv = (filePath, quoteChar) =>
|
|
31
|
+
const tsv = (filePath, quoteChar) => (0, exports.wrapFileBasedFeederBuilder)(quoteChar !== undefined ? jvm_types_1.CoreDsl.tsv(filePath, quoteChar) : jvm_types_1.CoreDsl.tsv(filePath));
|
|
45
32
|
exports.tsv = tsv;
|
|
46
|
-
const separatedValues = (filePath, separator, quoteChar) =>
|
|
33
|
+
const separatedValues = (filePath, separator, quoteChar) => (0, exports.wrapFileBasedFeederBuilder)(quoteChar !== undefined
|
|
47
34
|
? jvm_types_1.CoreDsl.separatedValues(filePath, separator, quoteChar)
|
|
48
35
|
: jvm_types_1.CoreDsl.separatedValues(filePath, separator));
|
|
49
36
|
exports.separatedValues = separatedValues;
|