@types/k6 0.37.0 → 0.39.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.
k6/README.md CHANGED
@@ -8,9 +8,9 @@ This package contains type definitions for k6 (https://k6.io/docs/).
8
8
  Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/k6.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Tue, 29 Mar 2022 08:01:44 GMT
11
+ * Last updated: Tue, 06 Sep 2022 12:02:46 GMT
12
12
  * Dependencies: none
13
13
  * Global values: none
14
14
 
15
15
  # Credits
16
- These definitions were written by [na--](https://github.com/na--), [Mihail Stoykov](https://github.com/MStoykov), [Ivan](https://github.com/codebien), [Théo Crevon](https://github.com/oleiade), [Oleg Bespalov](https://github.com/olegbespalov), and [Pepe Cano](https://github.com/ppcano).
16
+ These definitions were written by [na--](https://github.com/na--), [Mihail Stoykov](https://github.com/MStoykov), [Ivan](https://github.com/codebien), [Théo Crevon](https://github.com/oleiade), [Oleg Bespalov](https://github.com/olegbespalov), [Pepe Cano](https://github.com/ppcano), and [Nicole van der Hoeven](https://github.com/nicolevanderhoeven).
k6/execution.d.ts CHANGED
@@ -1,3 +1,5 @@
1
+ import { Options } from './options';
2
+
1
3
  /*
2
4
  * The execution module provides information about the current test execution state.
3
5
  * https://k6.io/docs/javascript-api/k6-execution/
@@ -73,6 +75,8 @@ declare namespace execution {
73
75
  * exec.test.abort('this is the reason');
74
76
  */
75
77
  abort(input?: string): void;
78
+
79
+ options: Options;
76
80
  };
77
81
 
78
82
  /**
k6/http.d.ts CHANGED
@@ -708,6 +708,23 @@ export class CookieJar {
708
708
  * @param options - Optional settings.
709
709
  */
710
710
  set(url: string, name: string, value: string, options?: CookieOptions | null): void;
711
+
712
+ /**
713
+ * Delete all cookies for the given URL.
714
+ * https://k6.io/docs/javascript-api/k6-http/cookiejar/cookiejar-clear
715
+ * @param url - URL to delete all cookies for.
716
+ */
717
+
718
+ clear(url: string): void;
719
+
720
+ /**
721
+ * Deletes specific cookie by name for the given URL.
722
+ * https://k6.io/docs/javascript-api/k6-http/cookiejar/cookiejar-delete/
723
+ * @param url - URL to delete cookie for.
724
+ * @param name - Cookie name to delete.
725
+ */
726
+
727
+ delete(url: string, name: string): void;
711
728
  }
712
729
 
713
730
  /**
k6/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- // Type definitions for k6 0.37
1
+ // Type definitions for k6 0.39
2
2
  // Project: https://k6.io/docs/
3
3
  // Definitions by: na-- <https://github.com/na-->
4
4
  // Mihail Stoykov <https://github.com/MStoykov>
@@ -6,6 +6,7 @@
6
6
  // Théo Crevon <https://github.com/oleiade>
7
7
  // Oleg Bespalov <https://github.com/olegbespalov>
8
8
  // Pepe Cano <https://github.com/ppcano>
9
+ // Nicole van der Hoeven <https://github.com/nicolevanderhoeven>
9
10
  // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
10
11
  // TypeScript Version: 3.4
11
12
 
k6/net/grpc.d.ts CHANGED
@@ -25,8 +25,13 @@ export interface ConnectParams {
25
25
  }
26
26
 
27
27
  export interface Params {
28
+ /**
29
+ * @deprecated Use metadata instead.
30
+ */
28
31
  headers?: object;
29
32
 
33
+ metadata?: object;
34
+
30
35
  tags?: object;
31
36
 
32
37
  timeout?: string | number;
k6/options.d.ts CHANGED
@@ -179,10 +179,13 @@ export interface Certificate {
179
179
  cert: string;
180
180
 
181
181
  /** Domains certificate is valid for. */
182
- domains: string[];
182
+ domains?: string[];
183
183
 
184
184
  /** PEM encoded certificate key. */
185
185
  key: string;
186
+
187
+ /** PEM passphrase. */
188
+ password?: string;
186
189
  }
187
190
 
188
191
  export type ExecutorOptions = "shared-iterations" | "per-vu-iterations" | "constant-vus" | "ramping-vus" | "constant-arrival-rate" | "ramping-arrival-rate" | "externally-controlled";
k6/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/k6",
3
- "version": "0.37.0",
3
+ "version": "0.39.0",
4
4
  "description": "TypeScript definitions for k6",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/k6",
6
6
  "license": "MIT",
@@ -34,6 +34,11 @@
34
34
  "name": "Pepe Cano",
35
35
  "url": "https://github.com/ppcano",
36
36
  "githubUsername": "ppcano"
37
+ },
38
+ {
39
+ "name": "Nicole van der Hoeven",
40
+ "url": "https://github.com/nicolevanderhoeven",
41
+ "githubUsername": "nicolevanderhoeven"
37
42
  }
38
43
  ],
39
44
  "main": "",
@@ -45,6 +50,6 @@
45
50
  },
46
51
  "scripts": {},
47
52
  "dependencies": {},
48
- "typesPublisherContentHash": "a640af732bafeea694ba7efc10969d7bfad3fe35b8573e07d6b255fe07045e22",
49
- "typeScriptVersion": "3.9"
53
+ "typesPublisherContentHash": "17d8a4f8db102a83ff2178f3658fa9282c52df347b50e1deee2f252bb4bcc0a1",
54
+ "typeScriptVersion": "4.1"
50
55
  }