cdk-common 2.0.494 → 2.0.496
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/.jsii +8 -2
- package/API.md +5 -0
- package/lib/main.js +1 -1
- package/lib/managed-policies.d.ts +1 -0
- package/lib/managed-policies.js +2 -1
- package/node_modules/@types/concat-stream/node_modules/@types/node/README.md +1 -1
- package/node_modules/@types/concat-stream/node_modules/@types/node/buffer.d.ts +2 -2
- package/node_modules/@types/concat-stream/node_modules/@types/node/globals.d.ts +1 -0
- package/node_modules/@types/concat-stream/node_modules/@types/node/package.json +2 -2
- package/node_modules/@types/concat-stream/node_modules/@types/node/test.d.ts +12 -17
- package/node_modules/@types/concat-stream/node_modules/@types/node/ts4.8/buffer.d.ts +2 -2
- package/node_modules/@types/concat-stream/node_modules/@types/node/ts4.8/globals.d.ts +1 -0
- package/node_modules/@types/concat-stream/node_modules/@types/node/ts4.8/url.d.ts +3 -3
- package/node_modules/@types/concat-stream/node_modules/@types/node/ts4.8/util.d.ts +1 -1
- package/node_modules/@types/concat-stream/node_modules/@types/node/url.d.ts +3 -3
- package/node_modules/@types/concat-stream/node_modules/@types/node/util.d.ts +1 -1
- package/node_modules/@types/form-data/node_modules/@types/node/README.md +1 -1
- package/node_modules/@types/form-data/node_modules/@types/node/buffer.d.ts +2 -2
- package/node_modules/@types/form-data/node_modules/@types/node/globals.d.ts +1 -0
- package/node_modules/@types/form-data/node_modules/@types/node/package.json +2 -2
- package/node_modules/@types/form-data/node_modules/@types/node/test.d.ts +12 -17
- package/node_modules/@types/form-data/node_modules/@types/node/ts4.8/buffer.d.ts +2 -2
- package/node_modules/@types/form-data/node_modules/@types/node/ts4.8/globals.d.ts +1 -0
- package/node_modules/@types/form-data/node_modules/@types/node/ts4.8/url.d.ts +3 -3
- package/node_modules/@types/form-data/node_modules/@types/node/ts4.8/util.d.ts +1 -1
- package/node_modules/@types/form-data/node_modules/@types/node/url.d.ts +3 -3
- package/node_modules/@types/form-data/node_modules/@types/node/util.d.ts +1 -1
- package/node_modules/qs/CHANGELOG.md +4 -0
- package/node_modules/qs/dist/qs.js +43 -22
- package/node_modules/qs/lib/parse.js +2 -1
- package/node_modules/qs/package.json +4 -1
- package/node_modules/qs/test/empty-keys-cases.js +37 -0
- package/node_modules/qs/test/parse.js +45 -2
- package/node_modules/qs/test/stringify.js +18 -0
- package/package.json +2 -2
|
@@ -8,7 +8,7 @@ This package contains type definitions for Node.js (https://nodejs.org/).
|
|
|
8
8
|
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated:
|
|
11
|
+
* Last updated: Tue, 16 May 2023 20:02:56 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
* Global values: `AbortController`, `AbortSignal`, `__dirname`, `__filename`, `console`, `exports`, `gc`, `global`, `module`, `process`, `require`, `structuredClone`
|
|
14
14
|
|
|
@@ -2309,7 +2309,7 @@ declare module 'buffer' {
|
|
|
2309
2309
|
* **For code running using Node.js APIs, converting between base64-encoded strings**
|
|
2310
2310
|
* **and binary data should be performed using `Buffer.from(str, 'base64')` and`buf.toString('base64')`.**
|
|
2311
2311
|
* @since v15.13.0, v14.17.0
|
|
2312
|
-
* @
|
|
2312
|
+
* @legacy Use `Buffer.from(data, 'base64')` instead.
|
|
2313
2313
|
* @param data The Base64-encoded input string.
|
|
2314
2314
|
*/
|
|
2315
2315
|
function atob(data: string): string;
|
|
@@ -2325,7 +2325,7 @@ declare module 'buffer' {
|
|
|
2325
2325
|
* **For code running using Node.js APIs, converting between base64-encoded strings**
|
|
2326
2326
|
* **and binary data should be performed using `Buffer.from(str, 'base64')` and`buf.toString('base64')`.**
|
|
2327
2327
|
* @since v15.13.0, v14.17.0
|
|
2328
|
-
* @
|
|
2328
|
+
* @legacy Use `buf.toString('base64')` instead.
|
|
2329
2329
|
* @param data An ASCII (Latin1) string.
|
|
2330
2330
|
*/
|
|
2331
2331
|
function btoa(data: string): string;
|
|
@@ -64,6 +64,7 @@ interface AbortSignal extends EventTarget {
|
|
|
64
64
|
readonly aborted: boolean;
|
|
65
65
|
readonly reason: any;
|
|
66
66
|
onabort: null | ((this: AbortSignal, event: Event) => any);
|
|
67
|
+
throwIfAborted(): void;
|
|
67
68
|
}
|
|
68
69
|
|
|
69
70
|
declare var AbortController: typeof globalThis extends {onmessage: any; AbortController: infer T}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "20.1.
|
|
3
|
+
"version": "20.1.7",
|
|
4
4
|
"description": "TypeScript definitions for Node.js",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
|
|
6
6
|
"license": "MIT",
|
|
@@ -232,6 +232,6 @@
|
|
|
232
232
|
},
|
|
233
233
|
"scripts": {},
|
|
234
234
|
"dependencies": {},
|
|
235
|
-
"typesPublisherContentHash": "
|
|
235
|
+
"typesPublisherContentHash": "66c03deccac83a7d603defb282c78bd668ddc17b46fda8c94bc538f577bb3567",
|
|
236
236
|
"typeScriptVersion": "4.3"
|
|
237
237
|
}
|
|
@@ -171,21 +171,21 @@ declare module 'node:test' {
|
|
|
171
171
|
* The `it()` function is imported from the `node:test` module.
|
|
172
172
|
* @since v18.6.0, v16.17.0
|
|
173
173
|
*/
|
|
174
|
-
function it(name?: string, options?: TestOptions, fn?:
|
|
175
|
-
function it(name?: string, fn?:
|
|
176
|
-
function it(options?: TestOptions, fn?:
|
|
177
|
-
function it(fn?:
|
|
174
|
+
function it(name?: string, options?: TestOptions, fn?: TestFn): void;
|
|
175
|
+
function it(name?: string, fn?: TestFn): void;
|
|
176
|
+
function it(options?: TestOptions, fn?: TestFn): void;
|
|
177
|
+
function it(fn?: TestFn): void;
|
|
178
178
|
namespace it {
|
|
179
179
|
// Shorthand for skipping a test, same as `it([name], { skip: true }[, fn])`.
|
|
180
|
-
function skip(name?: string, options?: TestOptions, fn?:
|
|
181
|
-
function skip(name?: string, fn?:
|
|
182
|
-
function skip(options?: TestOptions, fn?:
|
|
183
|
-
function skip(fn?:
|
|
180
|
+
function skip(name?: string, options?: TestOptions, fn?: TestFn): void;
|
|
181
|
+
function skip(name?: string, fn?: TestFn): void;
|
|
182
|
+
function skip(options?: TestOptions, fn?: TestFn): void;
|
|
183
|
+
function skip(fn?: TestFn): void;
|
|
184
184
|
// Shorthand for marking a test as `TODO`, same as `it([name], { todo: true }[, fn])`.
|
|
185
|
-
function todo(name?: string, options?: TestOptions, fn?:
|
|
186
|
-
function todo(name?: string, fn?:
|
|
187
|
-
function todo(options?: TestOptions, fn?:
|
|
188
|
-
function todo(fn?:
|
|
185
|
+
function todo(name?: string, options?: TestOptions, fn?: TestFn): void;
|
|
186
|
+
function todo(name?: string, fn?: TestFn): void;
|
|
187
|
+
function todo(options?: TestOptions, fn?: TestFn): void;
|
|
188
|
+
function todo(fn?: TestFn): void;
|
|
189
189
|
}
|
|
190
190
|
/**
|
|
191
191
|
* The type of a function under test. The first argument to this function is a
|
|
@@ -198,11 +198,6 @@ declare module 'node:test' {
|
|
|
198
198
|
* If the test uses callbacks, the callback function is passed as an argument
|
|
199
199
|
*/
|
|
200
200
|
type SuiteFn = (done: (result?: any) => void) => void;
|
|
201
|
-
/**
|
|
202
|
-
* The type of a function under test.
|
|
203
|
-
* If the test uses callbacks, the callback function is passed as an argument
|
|
204
|
-
*/
|
|
205
|
-
type ItFn = (done: (result?: any) => void) => any;
|
|
206
201
|
interface RunOptions {
|
|
207
202
|
/**
|
|
208
203
|
* If a number is provided, then that many files would run in parallel.
|
|
@@ -2309,7 +2309,7 @@ declare module 'buffer' {
|
|
|
2309
2309
|
* **For code running using Node.js APIs, converting between base64-encoded strings**
|
|
2310
2310
|
* **and binary data should be performed using `Buffer.from(str, 'base64')` and`buf.toString('base64')`.**
|
|
2311
2311
|
* @since v15.13.0, v14.17.0
|
|
2312
|
-
* @
|
|
2312
|
+
* @legacy Use `Buffer.from(data, 'base64')` instead.
|
|
2313
2313
|
* @param data The Base64-encoded input string.
|
|
2314
2314
|
*/
|
|
2315
2315
|
function atob(data: string): string;
|
|
@@ -2325,7 +2325,7 @@ declare module 'buffer' {
|
|
|
2325
2325
|
* **For code running using Node.js APIs, converting between base64-encoded strings**
|
|
2326
2326
|
* **and binary data should be performed using `Buffer.from(str, 'base64')` and`buf.toString('base64')`.**
|
|
2327
2327
|
* @since v15.13.0, v14.17.0
|
|
2328
|
-
* @
|
|
2328
|
+
* @legacy Use `buf.toString('base64')` instead.
|
|
2329
2329
|
* @param data An ASCII (Latin1) string.
|
|
2330
2330
|
*/
|
|
2331
2331
|
function btoa(data: string): string;
|
|
@@ -64,6 +64,7 @@ interface AbortSignal extends EventTarget {
|
|
|
64
64
|
readonly aborted: boolean;
|
|
65
65
|
readonly reason: any;
|
|
66
66
|
onabort: null | ((this: AbortSignal, event: Event) => any);
|
|
67
|
+
throwIfAborted(): void;
|
|
67
68
|
}
|
|
68
69
|
|
|
69
70
|
declare var AbortController: typeof globalThis extends {onmessage: any; AbortController: infer T}
|
|
@@ -129,7 +129,7 @@ declare module 'url' {
|
|
|
129
129
|
* string, an `Error` is thrown.
|
|
130
130
|
* * `result` is returned.
|
|
131
131
|
* @since v0.1.25
|
|
132
|
-
* @
|
|
132
|
+
* @legacy Use the WHATWG URL API instead.
|
|
133
133
|
* @param urlObject A URL object (as returned by `url.parse()` or constructed otherwise). If a string, it is converted to an object by passing it to `url.parse()`.
|
|
134
134
|
*/
|
|
135
135
|
function format(urlObject: URL, options?: URLFormatOptions): string;
|
|
@@ -193,7 +193,7 @@ declare module 'url' {
|
|
|
193
193
|
* string, an `Error` is thrown.
|
|
194
194
|
* * `result` is returned.
|
|
195
195
|
* @since v0.1.25
|
|
196
|
-
* @
|
|
196
|
+
* @legacy Use the WHATWG URL API instead.
|
|
197
197
|
* @param urlObject A URL object (as returned by `url.parse()` or constructed otherwise). If a string, it is converted to an object by passing it to `url.parse()`.
|
|
198
198
|
*/
|
|
199
199
|
function format(urlObject: UrlObject | string): string;
|
|
@@ -226,7 +226,7 @@ declare module 'url' {
|
|
|
226
226
|
* resolve('http://example.com/one', '/two'); // 'http://example.com/two'
|
|
227
227
|
* ```
|
|
228
228
|
* @since v0.1.25
|
|
229
|
-
* @
|
|
229
|
+
* @legacy Use the WHATWG URL API instead.
|
|
230
230
|
* @param from The base URL to use if `to` is a relative URL.
|
|
231
231
|
* @param to The target URL to resolve.
|
|
232
232
|
*/
|
|
@@ -575,7 +575,7 @@ declare module 'util' {
|
|
|
575
575
|
* stream.write('With ES6');
|
|
576
576
|
* ```
|
|
577
577
|
* @since v0.3.0
|
|
578
|
-
* @
|
|
578
|
+
* @legacy Use ES2015 class syntax and `extends` keyword instead.
|
|
579
579
|
*/
|
|
580
580
|
export function inherits(constructor: unknown, superConstructor: unknown): void;
|
|
581
581
|
export type DebugLoggerFunction = (msg: string, ...param: unknown[]) => void;
|
|
@@ -129,7 +129,7 @@ declare module 'url' {
|
|
|
129
129
|
* string, an `Error` is thrown.
|
|
130
130
|
* * `result` is returned.
|
|
131
131
|
* @since v0.1.25
|
|
132
|
-
* @
|
|
132
|
+
* @legacy Use the WHATWG URL API instead.
|
|
133
133
|
* @param urlObject A URL object (as returned by `url.parse()` or constructed otherwise). If a string, it is converted to an object by passing it to `url.parse()`.
|
|
134
134
|
*/
|
|
135
135
|
function format(urlObject: URL, options?: URLFormatOptions): string;
|
|
@@ -193,7 +193,7 @@ declare module 'url' {
|
|
|
193
193
|
* string, an `Error` is thrown.
|
|
194
194
|
* * `result` is returned.
|
|
195
195
|
* @since v0.1.25
|
|
196
|
-
* @
|
|
196
|
+
* @legacy Use the WHATWG URL API instead.
|
|
197
197
|
* @param urlObject A URL object (as returned by `url.parse()` or constructed otherwise). If a string, it is converted to an object by passing it to `url.parse()`.
|
|
198
198
|
*/
|
|
199
199
|
function format(urlObject: UrlObject | string): string;
|
|
@@ -226,7 +226,7 @@ declare module 'url' {
|
|
|
226
226
|
* resolve('http://example.com/one', '/two'); // 'http://example.com/two'
|
|
227
227
|
* ```
|
|
228
228
|
* @since v0.1.25
|
|
229
|
-
* @
|
|
229
|
+
* @legacy Use the WHATWG URL API instead.
|
|
230
230
|
* @param from The base URL to use if `to` is a relative URL.
|
|
231
231
|
* @param to The target URL to resolve.
|
|
232
232
|
*/
|
|
@@ -575,7 +575,7 @@ declare module 'util' {
|
|
|
575
575
|
* stream.write('With ES6');
|
|
576
576
|
* ```
|
|
577
577
|
* @since v0.3.0
|
|
578
|
-
* @
|
|
578
|
+
* @legacy Use ES2015 class syntax and `extends` keyword instead.
|
|
579
579
|
*/
|
|
580
580
|
export function inherits(constructor: unknown, superConstructor: unknown): void;
|
|
581
581
|
export type DebugLoggerFunction = (msg: string, ...param: unknown[]) => void;
|
|
@@ -8,7 +8,7 @@ This package contains type definitions for Node.js (https://nodejs.org/).
|
|
|
8
8
|
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated:
|
|
11
|
+
* Last updated: Tue, 16 May 2023 20:02:56 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
* Global values: `AbortController`, `AbortSignal`, `__dirname`, `__filename`, `console`, `exports`, `gc`, `global`, `module`, `process`, `require`, `structuredClone`
|
|
14
14
|
|
|
@@ -2309,7 +2309,7 @@ declare module 'buffer' {
|
|
|
2309
2309
|
* **For code running using Node.js APIs, converting between base64-encoded strings**
|
|
2310
2310
|
* **and binary data should be performed using `Buffer.from(str, 'base64')` and`buf.toString('base64')`.**
|
|
2311
2311
|
* @since v15.13.0, v14.17.0
|
|
2312
|
-
* @
|
|
2312
|
+
* @legacy Use `Buffer.from(data, 'base64')` instead.
|
|
2313
2313
|
* @param data The Base64-encoded input string.
|
|
2314
2314
|
*/
|
|
2315
2315
|
function atob(data: string): string;
|
|
@@ -2325,7 +2325,7 @@ declare module 'buffer' {
|
|
|
2325
2325
|
* **For code running using Node.js APIs, converting between base64-encoded strings**
|
|
2326
2326
|
* **and binary data should be performed using `Buffer.from(str, 'base64')` and`buf.toString('base64')`.**
|
|
2327
2327
|
* @since v15.13.0, v14.17.0
|
|
2328
|
-
* @
|
|
2328
|
+
* @legacy Use `buf.toString('base64')` instead.
|
|
2329
2329
|
* @param data An ASCII (Latin1) string.
|
|
2330
2330
|
*/
|
|
2331
2331
|
function btoa(data: string): string;
|
|
@@ -64,6 +64,7 @@ interface AbortSignal extends EventTarget {
|
|
|
64
64
|
readonly aborted: boolean;
|
|
65
65
|
readonly reason: any;
|
|
66
66
|
onabort: null | ((this: AbortSignal, event: Event) => any);
|
|
67
|
+
throwIfAborted(): void;
|
|
67
68
|
}
|
|
68
69
|
|
|
69
70
|
declare var AbortController: typeof globalThis extends {onmessage: any; AbortController: infer T}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "20.1.
|
|
3
|
+
"version": "20.1.7",
|
|
4
4
|
"description": "TypeScript definitions for Node.js",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
|
|
6
6
|
"license": "MIT",
|
|
@@ -232,6 +232,6 @@
|
|
|
232
232
|
},
|
|
233
233
|
"scripts": {},
|
|
234
234
|
"dependencies": {},
|
|
235
|
-
"typesPublisherContentHash": "
|
|
235
|
+
"typesPublisherContentHash": "66c03deccac83a7d603defb282c78bd668ddc17b46fda8c94bc538f577bb3567",
|
|
236
236
|
"typeScriptVersion": "4.3"
|
|
237
237
|
}
|
|
@@ -171,21 +171,21 @@ declare module 'node:test' {
|
|
|
171
171
|
* The `it()` function is imported from the `node:test` module.
|
|
172
172
|
* @since v18.6.0, v16.17.0
|
|
173
173
|
*/
|
|
174
|
-
function it(name?: string, options?: TestOptions, fn?:
|
|
175
|
-
function it(name?: string, fn?:
|
|
176
|
-
function it(options?: TestOptions, fn?:
|
|
177
|
-
function it(fn?:
|
|
174
|
+
function it(name?: string, options?: TestOptions, fn?: TestFn): void;
|
|
175
|
+
function it(name?: string, fn?: TestFn): void;
|
|
176
|
+
function it(options?: TestOptions, fn?: TestFn): void;
|
|
177
|
+
function it(fn?: TestFn): void;
|
|
178
178
|
namespace it {
|
|
179
179
|
// Shorthand for skipping a test, same as `it([name], { skip: true }[, fn])`.
|
|
180
|
-
function skip(name?: string, options?: TestOptions, fn?:
|
|
181
|
-
function skip(name?: string, fn?:
|
|
182
|
-
function skip(options?: TestOptions, fn?:
|
|
183
|
-
function skip(fn?:
|
|
180
|
+
function skip(name?: string, options?: TestOptions, fn?: TestFn): void;
|
|
181
|
+
function skip(name?: string, fn?: TestFn): void;
|
|
182
|
+
function skip(options?: TestOptions, fn?: TestFn): void;
|
|
183
|
+
function skip(fn?: TestFn): void;
|
|
184
184
|
// Shorthand for marking a test as `TODO`, same as `it([name], { todo: true }[, fn])`.
|
|
185
|
-
function todo(name?: string, options?: TestOptions, fn?:
|
|
186
|
-
function todo(name?: string, fn?:
|
|
187
|
-
function todo(options?: TestOptions, fn?:
|
|
188
|
-
function todo(fn?:
|
|
185
|
+
function todo(name?: string, options?: TestOptions, fn?: TestFn): void;
|
|
186
|
+
function todo(name?: string, fn?: TestFn): void;
|
|
187
|
+
function todo(options?: TestOptions, fn?: TestFn): void;
|
|
188
|
+
function todo(fn?: TestFn): void;
|
|
189
189
|
}
|
|
190
190
|
/**
|
|
191
191
|
* The type of a function under test. The first argument to this function is a
|
|
@@ -198,11 +198,6 @@ declare module 'node:test' {
|
|
|
198
198
|
* If the test uses callbacks, the callback function is passed as an argument
|
|
199
199
|
*/
|
|
200
200
|
type SuiteFn = (done: (result?: any) => void) => void;
|
|
201
|
-
/**
|
|
202
|
-
* The type of a function under test.
|
|
203
|
-
* If the test uses callbacks, the callback function is passed as an argument
|
|
204
|
-
*/
|
|
205
|
-
type ItFn = (done: (result?: any) => void) => any;
|
|
206
201
|
interface RunOptions {
|
|
207
202
|
/**
|
|
208
203
|
* If a number is provided, then that many files would run in parallel.
|
|
@@ -2309,7 +2309,7 @@ declare module 'buffer' {
|
|
|
2309
2309
|
* **For code running using Node.js APIs, converting between base64-encoded strings**
|
|
2310
2310
|
* **and binary data should be performed using `Buffer.from(str, 'base64')` and`buf.toString('base64')`.**
|
|
2311
2311
|
* @since v15.13.0, v14.17.0
|
|
2312
|
-
* @
|
|
2312
|
+
* @legacy Use `Buffer.from(data, 'base64')` instead.
|
|
2313
2313
|
* @param data The Base64-encoded input string.
|
|
2314
2314
|
*/
|
|
2315
2315
|
function atob(data: string): string;
|
|
@@ -2325,7 +2325,7 @@ declare module 'buffer' {
|
|
|
2325
2325
|
* **For code running using Node.js APIs, converting between base64-encoded strings**
|
|
2326
2326
|
* **and binary data should be performed using `Buffer.from(str, 'base64')` and`buf.toString('base64')`.**
|
|
2327
2327
|
* @since v15.13.0, v14.17.0
|
|
2328
|
-
* @
|
|
2328
|
+
* @legacy Use `buf.toString('base64')` instead.
|
|
2329
2329
|
* @param data An ASCII (Latin1) string.
|
|
2330
2330
|
*/
|
|
2331
2331
|
function btoa(data: string): string;
|
|
@@ -64,6 +64,7 @@ interface AbortSignal extends EventTarget {
|
|
|
64
64
|
readonly aborted: boolean;
|
|
65
65
|
readonly reason: any;
|
|
66
66
|
onabort: null | ((this: AbortSignal, event: Event) => any);
|
|
67
|
+
throwIfAborted(): void;
|
|
67
68
|
}
|
|
68
69
|
|
|
69
70
|
declare var AbortController: typeof globalThis extends {onmessage: any; AbortController: infer T}
|
|
@@ -129,7 +129,7 @@ declare module 'url' {
|
|
|
129
129
|
* string, an `Error` is thrown.
|
|
130
130
|
* * `result` is returned.
|
|
131
131
|
* @since v0.1.25
|
|
132
|
-
* @
|
|
132
|
+
* @legacy Use the WHATWG URL API instead.
|
|
133
133
|
* @param urlObject A URL object (as returned by `url.parse()` or constructed otherwise). If a string, it is converted to an object by passing it to `url.parse()`.
|
|
134
134
|
*/
|
|
135
135
|
function format(urlObject: URL, options?: URLFormatOptions): string;
|
|
@@ -193,7 +193,7 @@ declare module 'url' {
|
|
|
193
193
|
* string, an `Error` is thrown.
|
|
194
194
|
* * `result` is returned.
|
|
195
195
|
* @since v0.1.25
|
|
196
|
-
* @
|
|
196
|
+
* @legacy Use the WHATWG URL API instead.
|
|
197
197
|
* @param urlObject A URL object (as returned by `url.parse()` or constructed otherwise). If a string, it is converted to an object by passing it to `url.parse()`.
|
|
198
198
|
*/
|
|
199
199
|
function format(urlObject: UrlObject | string): string;
|
|
@@ -226,7 +226,7 @@ declare module 'url' {
|
|
|
226
226
|
* resolve('http://example.com/one', '/two'); // 'http://example.com/two'
|
|
227
227
|
* ```
|
|
228
228
|
* @since v0.1.25
|
|
229
|
-
* @
|
|
229
|
+
* @legacy Use the WHATWG URL API instead.
|
|
230
230
|
* @param from The base URL to use if `to` is a relative URL.
|
|
231
231
|
* @param to The target URL to resolve.
|
|
232
232
|
*/
|
|
@@ -575,7 +575,7 @@ declare module 'util' {
|
|
|
575
575
|
* stream.write('With ES6');
|
|
576
576
|
* ```
|
|
577
577
|
* @since v0.3.0
|
|
578
|
-
* @
|
|
578
|
+
* @legacy Use ES2015 class syntax and `extends` keyword instead.
|
|
579
579
|
*/
|
|
580
580
|
export function inherits(constructor: unknown, superConstructor: unknown): void;
|
|
581
581
|
export type DebugLoggerFunction = (msg: string, ...param: unknown[]) => void;
|
|
@@ -129,7 +129,7 @@ declare module 'url' {
|
|
|
129
129
|
* string, an `Error` is thrown.
|
|
130
130
|
* * `result` is returned.
|
|
131
131
|
* @since v0.1.25
|
|
132
|
-
* @
|
|
132
|
+
* @legacy Use the WHATWG URL API instead.
|
|
133
133
|
* @param urlObject A URL object (as returned by `url.parse()` or constructed otherwise). If a string, it is converted to an object by passing it to `url.parse()`.
|
|
134
134
|
*/
|
|
135
135
|
function format(urlObject: URL, options?: URLFormatOptions): string;
|
|
@@ -193,7 +193,7 @@ declare module 'url' {
|
|
|
193
193
|
* string, an `Error` is thrown.
|
|
194
194
|
* * `result` is returned.
|
|
195
195
|
* @since v0.1.25
|
|
196
|
-
* @
|
|
196
|
+
* @legacy Use the WHATWG URL API instead.
|
|
197
197
|
* @param urlObject A URL object (as returned by `url.parse()` or constructed otherwise). If a string, it is converted to an object by passing it to `url.parse()`.
|
|
198
198
|
*/
|
|
199
199
|
function format(urlObject: UrlObject | string): string;
|
|
@@ -226,7 +226,7 @@ declare module 'url' {
|
|
|
226
226
|
* resolve('http://example.com/one', '/two'); // 'http://example.com/two'
|
|
227
227
|
* ```
|
|
228
228
|
* @since v0.1.25
|
|
229
|
-
* @
|
|
229
|
+
* @legacy Use the WHATWG URL API instead.
|
|
230
230
|
* @param from The base URL to use if `to` is a relative URL.
|
|
231
231
|
* @param to The target URL to resolve.
|
|
232
232
|
*/
|
|
@@ -575,7 +575,7 @@ declare module 'util' {
|
|
|
575
575
|
* stream.write('With ES6');
|
|
576
576
|
* ```
|
|
577
577
|
* @since v0.3.0
|
|
578
|
-
* @
|
|
578
|
+
* @legacy Use ES2015 class syntax and `extends` keyword instead.
|
|
579
579
|
*/
|
|
580
580
|
export function inherits(constructor: unknown, superConstructor: unknown): void;
|
|
581
581
|
export type DebugLoggerFunction = (msg: string, ...param: unknown[]) => void;
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
## **6.11.2**
|
|
2
|
+
- [Fix] `parse`: Fix parsing when the global Object prototype is frozen (#473)
|
|
3
|
+
- [Tests] add passing test cases with empty keys (#473)
|
|
4
|
+
|
|
1
5
|
## **6.11.1**
|
|
2
6
|
- [Fix] `stringify`: encode comma values more consistently (#463)
|
|
3
7
|
- [readme] add usage of `filter` option for injecting custom serialization, i.e. of custom types (#447)
|
|
@@ -88,7 +88,8 @@ var isoSentinel = 'utf8=%26%2310003%3B'; // encodeURIComponent('✓')
|
|
|
88
88
|
var charsetSentinel = 'utf8=%E2%9C%93'; // encodeURIComponent('✓')
|
|
89
89
|
|
|
90
90
|
var parseValues = function parseQueryStringValues(str, options) {
|
|
91
|
-
var obj = {};
|
|
91
|
+
var obj = { __proto__: null };
|
|
92
|
+
|
|
92
93
|
var cleanStr = options.ignoreQueryPrefix ? str.replace(/^\?/, '') : str;
|
|
93
94
|
var limit = options.parameterLimit === Infinity ? undefined : options.parameterLimit;
|
|
94
95
|
var parts = cleanStr.split(options.delimiter, limit);
|
|
@@ -623,7 +624,7 @@ module.exports = function (object, opts) {
|
|
|
623
624
|
return joined.length > 0 ? prefix + joined : '';
|
|
624
625
|
};
|
|
625
626
|
|
|
626
|
-
},{"./formats":1,"./utils":5,"side-channel":
|
|
627
|
+
},{"./formats":1,"./utils":5,"side-channel":17}],5:[function(require,module,exports){
|
|
627
628
|
'use strict';
|
|
628
629
|
|
|
629
630
|
var formats = require('./formats');
|
|
@@ -1052,18 +1053,23 @@ var ThrowTypeError = $gOPD
|
|
|
1052
1053
|
: throwTypeError;
|
|
1053
1054
|
|
|
1054
1055
|
var hasSymbols = require('has-symbols')();
|
|
1056
|
+
var hasProto = require('has-proto')();
|
|
1055
1057
|
|
|
1056
|
-
var getProto = Object.getPrototypeOf ||
|
|
1058
|
+
var getProto = Object.getPrototypeOf || (
|
|
1059
|
+
hasProto
|
|
1060
|
+
? function (x) { return x.__proto__; } // eslint-disable-line no-proto
|
|
1061
|
+
: null
|
|
1062
|
+
);
|
|
1057
1063
|
|
|
1058
1064
|
var needsEval = {};
|
|
1059
1065
|
|
|
1060
|
-
var TypedArray = typeof Uint8Array === 'undefined' ? undefined : getProto(Uint8Array);
|
|
1066
|
+
var TypedArray = typeof Uint8Array === 'undefined' || !getProto ? undefined : getProto(Uint8Array);
|
|
1061
1067
|
|
|
1062
1068
|
var INTRINSICS = {
|
|
1063
1069
|
'%AggregateError%': typeof AggregateError === 'undefined' ? undefined : AggregateError,
|
|
1064
1070
|
'%Array%': Array,
|
|
1065
1071
|
'%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined : ArrayBuffer,
|
|
1066
|
-
'%ArrayIteratorPrototype%': hasSymbols ? getProto([][Symbol.iterator]()) : undefined,
|
|
1072
|
+
'%ArrayIteratorPrototype%': hasSymbols && getProto ? getProto([][Symbol.iterator]()) : undefined,
|
|
1067
1073
|
'%AsyncFromSyncIteratorPrototype%': undefined,
|
|
1068
1074
|
'%AsyncFunction%': needsEval,
|
|
1069
1075
|
'%AsyncGenerator%': needsEval,
|
|
@@ -1093,10 +1099,10 @@ var INTRINSICS = {
|
|
|
1093
1099
|
'%Int32Array%': typeof Int32Array === 'undefined' ? undefined : Int32Array,
|
|
1094
1100
|
'%isFinite%': isFinite,
|
|
1095
1101
|
'%isNaN%': isNaN,
|
|
1096
|
-
'%IteratorPrototype%': hasSymbols ? getProto(getProto([][Symbol.iterator]())) : undefined,
|
|
1102
|
+
'%IteratorPrototype%': hasSymbols && getProto ? getProto(getProto([][Symbol.iterator]())) : undefined,
|
|
1097
1103
|
'%JSON%': typeof JSON === 'object' ? JSON : undefined,
|
|
1098
1104
|
'%Map%': typeof Map === 'undefined' ? undefined : Map,
|
|
1099
|
-
'%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols ? undefined : getProto(new Map()[Symbol.iterator]()),
|
|
1105
|
+
'%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols || !getProto ? undefined : getProto(new Map()[Symbol.iterator]()),
|
|
1100
1106
|
'%Math%': Math,
|
|
1101
1107
|
'%Number%': Number,
|
|
1102
1108
|
'%Object%': Object,
|
|
@@ -1109,10 +1115,10 @@ var INTRINSICS = {
|
|
|
1109
1115
|
'%Reflect%': typeof Reflect === 'undefined' ? undefined : Reflect,
|
|
1110
1116
|
'%RegExp%': RegExp,
|
|
1111
1117
|
'%Set%': typeof Set === 'undefined' ? undefined : Set,
|
|
1112
|
-
'%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols ? undefined : getProto(new Set()[Symbol.iterator]()),
|
|
1118
|
+
'%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols || !getProto ? undefined : getProto(new Set()[Symbol.iterator]()),
|
|
1113
1119
|
'%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined : SharedArrayBuffer,
|
|
1114
1120
|
'%String%': String,
|
|
1115
|
-
'%StringIteratorPrototype%': hasSymbols ? getProto(''[Symbol.iterator]()) : undefined,
|
|
1121
|
+
'%StringIteratorPrototype%': hasSymbols && getProto ? getProto(''[Symbol.iterator]()) : undefined,
|
|
1116
1122
|
'%Symbol%': hasSymbols ? Symbol : undefined,
|
|
1117
1123
|
'%SyntaxError%': $SyntaxError,
|
|
1118
1124
|
'%ThrowTypeError%': ThrowTypeError,
|
|
@@ -1128,12 +1134,14 @@ var INTRINSICS = {
|
|
|
1128
1134
|
'%WeakSet%': typeof WeakSet === 'undefined' ? undefined : WeakSet
|
|
1129
1135
|
};
|
|
1130
1136
|
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
+
if (getProto) {
|
|
1138
|
+
try {
|
|
1139
|
+
null.error; // eslint-disable-line no-unused-expressions
|
|
1140
|
+
} catch (e) {
|
|
1141
|
+
// https://github.com/tc39/proposal-shadowrealm/pull/384#issuecomment-1364264229
|
|
1142
|
+
var errorProto = getProto(getProto(e));
|
|
1143
|
+
INTRINSICS['%Error.prototype%'] = errorProto;
|
|
1144
|
+
}
|
|
1137
1145
|
}
|
|
1138
1146
|
|
|
1139
1147
|
var doEval = function doEval(name) {
|
|
@@ -1151,7 +1159,7 @@ var doEval = function doEval(name) {
|
|
|
1151
1159
|
}
|
|
1152
1160
|
} else if (name === '%AsyncIteratorPrototype%') {
|
|
1153
1161
|
var gen = doEval('%AsyncGenerator%');
|
|
1154
|
-
if (gen) {
|
|
1162
|
+
if (gen && getProto) {
|
|
1155
1163
|
value = getProto(gen.prototype);
|
|
1156
1164
|
}
|
|
1157
1165
|
}
|
|
@@ -1352,7 +1360,20 @@ module.exports = function GetIntrinsic(name, allowMissing) {
|
|
|
1352
1360
|
return value;
|
|
1353
1361
|
};
|
|
1354
1362
|
|
|
1355
|
-
},{"function-bind":10,"has":
|
|
1363
|
+
},{"function-bind":10,"has":15,"has-proto":12,"has-symbols":13}],12:[function(require,module,exports){
|
|
1364
|
+
'use strict';
|
|
1365
|
+
|
|
1366
|
+
var test = {
|
|
1367
|
+
foo: {}
|
|
1368
|
+
};
|
|
1369
|
+
|
|
1370
|
+
var $Object = Object;
|
|
1371
|
+
|
|
1372
|
+
module.exports = function hasProto() {
|
|
1373
|
+
return { __proto__: test }.foo === test.foo && !({ __proto__: null } instanceof $Object);
|
|
1374
|
+
};
|
|
1375
|
+
|
|
1376
|
+
},{}],13:[function(require,module,exports){
|
|
1356
1377
|
'use strict';
|
|
1357
1378
|
|
|
1358
1379
|
var origSymbol = typeof Symbol !== 'undefined' && Symbol;
|
|
@@ -1367,7 +1388,7 @@ module.exports = function hasNativeSymbols() {
|
|
|
1367
1388
|
return hasSymbolSham();
|
|
1368
1389
|
};
|
|
1369
1390
|
|
|
1370
|
-
},{"./shams":
|
|
1391
|
+
},{"./shams":14}],14:[function(require,module,exports){
|
|
1371
1392
|
'use strict';
|
|
1372
1393
|
|
|
1373
1394
|
/* eslint complexity: [2, 18], max-statements: [2, 33] */
|
|
@@ -1411,14 +1432,14 @@ module.exports = function hasSymbols() {
|
|
|
1411
1432
|
return true;
|
|
1412
1433
|
};
|
|
1413
1434
|
|
|
1414
|
-
},{}],
|
|
1435
|
+
},{}],15:[function(require,module,exports){
|
|
1415
1436
|
'use strict';
|
|
1416
1437
|
|
|
1417
1438
|
var bind = require('function-bind');
|
|
1418
1439
|
|
|
1419
1440
|
module.exports = bind.call(Function.call, Object.prototype.hasOwnProperty);
|
|
1420
1441
|
|
|
1421
|
-
},{"function-bind":10}],
|
|
1442
|
+
},{"function-bind":10}],16:[function(require,module,exports){
|
|
1422
1443
|
var hasMap = typeof Map === 'function' && Map.prototype;
|
|
1423
1444
|
var mapSizeDescriptor = Object.getOwnPropertyDescriptor && hasMap ? Object.getOwnPropertyDescriptor(Map.prototype, 'size') : null;
|
|
1424
1445
|
var mapSize = hasMap && mapSizeDescriptor && typeof mapSizeDescriptor.get === 'function' ? mapSizeDescriptor.get : null;
|
|
@@ -1936,7 +1957,7 @@ function arrObjKeys(obj, inspect) {
|
|
|
1936
1957
|
return xs;
|
|
1937
1958
|
}
|
|
1938
1959
|
|
|
1939
|
-
},{"./util.inspect":6}],
|
|
1960
|
+
},{"./util.inspect":6}],17:[function(require,module,exports){
|
|
1940
1961
|
'use strict';
|
|
1941
1962
|
|
|
1942
1963
|
var GetIntrinsic = require('get-intrinsic');
|
|
@@ -2062,5 +2083,5 @@ module.exports = function getSideChannel() {
|
|
|
2062
2083
|
return channel;
|
|
2063
2084
|
};
|
|
2064
2085
|
|
|
2065
|
-
},{"call-bind/callBound":7,"get-intrinsic":11,"object-inspect":
|
|
2086
|
+
},{"call-bind/callBound":7,"get-intrinsic":11,"object-inspect":16}]},{},[2])(2)
|
|
2066
2087
|
});
|
|
@@ -49,7 +49,8 @@ var isoSentinel = 'utf8=%26%2310003%3B'; // encodeURIComponent('✓')
|
|
|
49
49
|
var charsetSentinel = 'utf8=%E2%9C%93'; // encodeURIComponent('✓')
|
|
50
50
|
|
|
51
51
|
var parseValues = function parseQueryStringValues(str, options) {
|
|
52
|
-
var obj = {};
|
|
52
|
+
var obj = { __proto__: null };
|
|
53
|
+
|
|
53
54
|
var cleanStr = options.ignoreQueryPrefix ? str.replace(/^\?/, '') : str;
|
|
54
55
|
var limit = options.parameterLimit === Infinity ? undefined : options.parameterLimit;
|
|
55
56
|
var parts = cleanStr.split(options.delimiter, limit);
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "qs",
|
|
3
3
|
"description": "A querystring parser that supports nesting and arrays, with a depth limit",
|
|
4
4
|
"homepage": "https://github.com/ljharb/qs",
|
|
5
|
-
"version": "6.11.
|
|
5
|
+
"version": "6.11.2",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
8
8
|
"url": "https://github.com/ljharb/qs.git"
|
|
@@ -40,10 +40,13 @@
|
|
|
40
40
|
"eslint": "=8.8.0",
|
|
41
41
|
"evalmd": "^0.0.19",
|
|
42
42
|
"for-each": "^0.3.3",
|
|
43
|
+
"has-override-mistake": "^1.0.0",
|
|
44
|
+
"has-property-descriptors": "^1.0.0",
|
|
43
45
|
"has-symbols": "^1.0.3",
|
|
44
46
|
"iconv-lite": "^0.5.1",
|
|
45
47
|
"in-publish": "^2.0.1",
|
|
46
48
|
"mkdirp": "^0.5.5",
|
|
49
|
+
"mock-property": "^1.0.0",
|
|
47
50
|
"npmignore": "^0.3.0",
|
|
48
51
|
"nyc": "^10.3.2",
|
|
49
52
|
"object-inspect": "^1.12.3",
|