@types/k6 0.54.2 → 0.57.1
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.
- k6/README.md +2 -2
- k6/browser/index.d.ts +2 -2
- k6/experimental/csv/index.d.ts +16 -0
- k6/package.json +25 -13
- k6/experimental/browser/index.d.ts +0 -4888
k6/README.md
CHANGED
|
@@ -8,8 +8,8 @@ This package contains type definitions for k6 (https://grafana.com/docs/k6/lates
|
|
|
8
8
|
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/k6.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated: Thu,
|
|
11
|
+
* Last updated: Thu, 20 Feb 2025 10:36:09 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
|
|
14
14
|
# Credits
|
|
15
|
-
These definitions were written by [Mihail Stoykov](https://github.com/MStoykov), [Ivan](https://github.com/codebien), [Théo Crevon](https://github.com/oleiade), [Oleg Bespalov](https://github.com/olegbespalov), [
|
|
15
|
+
These definitions were written by [Mihail Stoykov](https://github.com/MStoykov), [Ivan](https://github.com/codebien), [Théo Crevon](https://github.com/oleiade), [Oleg Bespalov](https://github.com/olegbespalov), [Ankur Agarwal](https://github.com/ankur22), [İnanç Gümüş](https://github.com/inancgumus), and [Joan López de la Franca Beltran](https://github.com/joanlopez).
|
k6/browser/index.d.ts
CHANGED
|
@@ -978,7 +978,7 @@ export interface MetricMessage {
|
|
|
978
978
|
* to match against the current metric's URL and name tags.
|
|
979
979
|
* Required.
|
|
980
980
|
*/
|
|
981
|
-
matches: {
|
|
981
|
+
matches: Array<{
|
|
982
982
|
/**
|
|
983
983
|
* The regular expression used to find matches in the current
|
|
984
984
|
* metric's URL and name tags. Required.
|
|
@@ -991,7 +991,7 @@ export interface MetricMessage {
|
|
|
991
991
|
* tag.
|
|
992
992
|
*/
|
|
993
993
|
method?: "GET" | "POST" | "PUT" | "DELETE" | "PATCH" | "OPTIONS" | "HEAD" | "TRACE" | "CONNECT";
|
|
994
|
-
}
|
|
994
|
+
}>;
|
|
995
995
|
}): void;
|
|
996
996
|
}
|
|
997
997
|
|
k6/experimental/csv/index.d.ts
CHANGED
|
@@ -75,6 +75,22 @@ export interface Options {
|
|
|
75
75
|
* The line number the parsing should stop at. Default is undefined.
|
|
76
76
|
*/
|
|
77
77
|
toLine?: number;
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* AsObjects indicates that the CSV rows should be returned as objects, where
|
|
81
|
+
* the keys are the header column names, and values are the corresponding
|
|
82
|
+
* row values.
|
|
83
|
+
*
|
|
84
|
+
* When this option is enabled, the first line of the CSV file is treated as the header.
|
|
85
|
+
*
|
|
86
|
+
* If the option is set and no header line is present, this should be considered an error
|
|
87
|
+
* case.
|
|
88
|
+
*
|
|
89
|
+
* This option is incompatible with the `skipFirstLine` option, and if both are set, an error
|
|
90
|
+
* should be returned. Same thing applies if the `fromLine` option is set to a value greater
|
|
91
|
+
* than 0.
|
|
92
|
+
*/
|
|
93
|
+
asObjects?: boolean;
|
|
78
94
|
}
|
|
79
95
|
|
|
80
96
|
export * as default from "k6/experimental/csv";
|
k6/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/k6",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.57.1",
|
|
4
4
|
"description": "TypeScript definitions for k6",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/k6",
|
|
6
6
|
"license": "MIT",
|
|
@@ -25,11 +25,6 @@
|
|
|
25
25
|
"githubUsername": "olegbespalov",
|
|
26
26
|
"url": "https://github.com/olegbespalov"
|
|
27
27
|
},
|
|
28
|
-
{
|
|
29
|
-
"name": "Nicole van der Hoeven",
|
|
30
|
-
"githubUsername": "nicolevanderhoeven",
|
|
31
|
-
"url": "https://github.com/nicolevanderhoeven"
|
|
32
|
-
},
|
|
33
28
|
{
|
|
34
29
|
"name": "Ankur Agarwal",
|
|
35
30
|
"githubUsername": "ankur22",
|
|
@@ -40,11 +35,6 @@
|
|
|
40
35
|
"githubUsername": "inancgumus",
|
|
41
36
|
"url": "https://github.com/inancgumus"
|
|
42
37
|
},
|
|
43
|
-
{
|
|
44
|
-
"name": "Daniel Jiménez",
|
|
45
|
-
"githubUsername": "ka3de",
|
|
46
|
-
"url": "https://github.com/ka3de"
|
|
47
|
-
},
|
|
48
38
|
{
|
|
49
39
|
"name": "Joan López de la Franca Beltran",
|
|
50
40
|
"githubUsername": "joanlopez",
|
|
@@ -54,6 +44,28 @@
|
|
|
54
44
|
"type": "module",
|
|
55
45
|
"main": "",
|
|
56
46
|
"types": "index.d.ts",
|
|
47
|
+
"exports": {
|
|
48
|
+
".": "./index.d.ts",
|
|
49
|
+
"./options": "./options/index.d.ts",
|
|
50
|
+
"./ws": "./ws/index.d.ts",
|
|
51
|
+
"./http": "./http/index.d.ts",
|
|
52
|
+
"./net/grpc": "./net/grpc/index.d.ts",
|
|
53
|
+
"./html": "./html/index.d.ts",
|
|
54
|
+
"./metrics": "./metrics/index.d.ts",
|
|
55
|
+
"./timers": "./timers/index.d.ts",
|
|
56
|
+
"./execution": "./execution/index.d.ts",
|
|
57
|
+
"./encoding": "./encoding/index.d.ts",
|
|
58
|
+
"./data": "./data/index.d.ts",
|
|
59
|
+
"./crypto": "./crypto/index.d.ts",
|
|
60
|
+
"./browser": "./browser/index.d.ts",
|
|
61
|
+
"./experimental/csv": "./experimental/csv/index.d.ts",
|
|
62
|
+
"./experimental/fs": "./experimental/fs/index.d.ts",
|
|
63
|
+
"./experimental/redis": "./experimental/redis/index.d.ts",
|
|
64
|
+
"./experimental/webcrypto": "./experimental/webcrypto/index.d.ts",
|
|
65
|
+
"./experimental/streams": "./experimental/streams/index.d.ts",
|
|
66
|
+
"./experimental/websockets": "./experimental/websockets/index.d.ts",
|
|
67
|
+
"./package.json": "./package.json"
|
|
68
|
+
},
|
|
57
69
|
"repository": {
|
|
58
70
|
"type": "git",
|
|
59
71
|
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
|
|
@@ -62,6 +74,6 @@
|
|
|
62
74
|
"scripts": {},
|
|
63
75
|
"dependencies": {},
|
|
64
76
|
"peerDependencies": {},
|
|
65
|
-
"typesPublisherContentHash": "
|
|
66
|
-
"typeScriptVersion": "
|
|
77
|
+
"typesPublisherContentHash": "0066ffc754835dfbebd1c0296d5f8ba656b4dbd27b3a17f8f1deb90c20138cfe",
|
|
78
|
+
"typeScriptVersion": "5.0"
|
|
67
79
|
}
|