cdk-common 2.0.292 → 2.0.294
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 +3 -3
- package/lib/main.js +1 -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/dom-events.d.ts +4 -4
- package/node_modules/@types/concat-stream/node_modules/@types/node/globals.d.ts +15 -11
- package/node_modules/@types/concat-stream/node_modules/@types/node/package.json +2 -2
- package/node_modules/@types/concat-stream/node_modules/@types/node/querystring.d.ts +3 -3
- 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/dom-events.d.ts +4 -4
- package/node_modules/@types/concat-stream/node_modules/@types/node/ts4.8/querystring.d.ts +3 -3
- package/node_modules/@types/form-data/node_modules/@types/node/README.md +1 -1
- package/node_modules/@types/form-data/node_modules/@types/node/dom-events.d.ts +4 -4
- package/node_modules/@types/form-data/node_modules/@types/node/globals.d.ts +15 -11
- package/node_modules/@types/form-data/node_modules/@types/node/package.json +2 -2
- package/node_modules/@types/form-data/node_modules/@types/node/querystring.d.ts +3 -3
- 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/dom-events.d.ts +4 -4
- package/node_modules/@types/form-data/node_modules/@types/node/ts4.8/querystring.d.ts +3 -3
- package/package.json +5 -5
package/.jsii
CHANGED
|
@@ -2924,7 +2924,7 @@
|
|
|
2924
2924
|
"stability": "experimental"
|
|
2925
2925
|
},
|
|
2926
2926
|
"homepage": "https://github.com/neilkuan/cdk-common.git",
|
|
2927
|
-
"jsiiVersion": "1.
|
|
2927
|
+
"jsiiVersion": "1.70.0 (build 03c2f6f)",
|
|
2928
2928
|
"keywords": [
|
|
2929
2929
|
"aws",
|
|
2930
2930
|
"aws-cdk",
|
|
@@ -8917,6 +8917,6 @@
|
|
|
8917
8917
|
"symbolId": "src/main:LambdaArmFunctionProps"
|
|
8918
8918
|
}
|
|
8919
8919
|
},
|
|
8920
|
-
"version": "2.0.
|
|
8921
|
-
"fingerprint": "
|
|
8920
|
+
"version": "2.0.294",
|
|
8921
|
+
"fingerprint": "flEBgL8yx1OhBMWpje91iPslkjIFqFEJih7ohCDUbvE="
|
|
8922
8922
|
}
|
package/lib/main.js
CHANGED
|
@@ -41,5 +41,5 @@ class LambdaArmFunction extends constructs_1.Construct {
|
|
|
41
41
|
}
|
|
42
42
|
exports.LambdaArmFunction = LambdaArmFunction;
|
|
43
43
|
_a = JSII_RTTI_SYMBOL_1;
|
|
44
|
-
LambdaArmFunction[_a] = { fqn: "cdk-common.LambdaArmFunction", version: "2.0.
|
|
44
|
+
LambdaArmFunction[_a] = { fqn: "cdk-common.LambdaArmFunction", version: "2.0.294" };
|
|
45
45
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWFpbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3NyYy9tYWluLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7O0FBQUEsbUNBQW1DO0FBQ25DLGlEQUFpRDtBQUNqRCwyQ0FBdUM7QUFLdkMsTUFBYSxpQkFBa0IsU0FBUSxzQkFBUztJQUU5QyxZQUFZLEtBQWdCLEVBQUUsRUFBVSxFQUFFLEtBQTRCO1FBQ3BFLEtBQUssQ0FBQyxLQUFLLEVBQUUsRUFBRSxDQUFDLENBQUM7UUFFakIsSUFBSSxLQUFLLENBQUMsT0FBTyxLQUFLLE1BQU0sQ0FBQyxPQUFPLENBQUMsV0FBVyxFQUFFO1lBQ2hELEdBQUcsQ0FBQyxXQUFXLENBQUMsRUFBRSxDQUFDLElBQUksQ0FBQyxDQUFDLFVBQVUsQ0FBQyxtQ0FBbUMsQ0FBQyxDQUFDO1NBQzFFO2FBQU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CdZb3UgYXJlIHVzaW5nIEphdmEgOCBvbiBhbDIgYXQgQVJNJyk7XG4gICAgfSBlbHNlIGlmIChwcm9wcy5ydW50aW1lID09PSBsYW1iZGEuUnVudGltZS5KQVZBXzExKSB7XG4gICAgICBjZGsuQW5ub3RhdGlvbnMub2YodGhpcykuYWRkV2FybmluZygnWW91IGFyZSB1c2luZyBKYXZhIDExIGF0IEFSTScpO1xuICAgIH0gZWxzZSBpZiAocHJvcHMucnVudGltZSA9PT0gbGFtYmRhLlJ1bnRpbWUuRE9UTkVUX0NPUkVfM18xKSB7XG4gICAgICBjZGsuQW5ub3RhdGlvbnMub2YodGhpcykuYWRkV2FybmluZygnWW91IGFyZSB1c2luZyBET1RORVQgQ09SRSAzLjEgYXQgQVJNJyk7XG4gICAgfSBlbHNlIGlmIChwcm9wcy5ydW50aW1lID09PSBsYW1iZGEuUnVudGltZS5SVUJZXzJfNykge1xuICAgICAgY2RrLkFubm90YXRpb25zLm9mKHRoaXMpLmFkZFdhcm5pbmcoJ1lvdSBhcmUgdXNpbmcgUlVCWSAyLjcgYXQgQVJNJyk7XG4gICAgfSBlbHNlIHtcbiAgICAgIHRocm93IG5ldyBFcnJvcihgSW52YWxpZCBSdW50aW1lICR7cHJvcHMucnVudGltZX0gYXQgQVJNLCBTZWUgaHR0cHM6Ly9kb2NzLmF3cy5hbWF6b24uY29tL2xhbWJkYS9sYXRlc3QvZGcvZm91bmRhdGlvbi1hcmNoLmh0bWw/aWNtcGlkPWRvY3NfbGFtYmRhX3Jzc2ApO1xuICAgIH1cblxuICAgIHRoaXMubGFtYmRhRnVuY3Rpb24gPSBuZXcgbGFtYmRhLkZ1bmN0aW9uKHRoaXMsICdMYW1iZGFGdW5jdGlvbicsIHsgYXJjaGl0ZWN0dXJlOiBsYW1iZGEuQXJjaGl0ZWN0dXJlLkFSTV82NCwgLi4ucHJvcHMgfSk7XG4gIH1cbn0iXX0=
|
|
@@ -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, 18 Oct 2022 22:03:06 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
* Global values: `AbortController`, `AbortSignal`, `__dirname`, `__filename`, `console`, `exports`, `gc`, `global`, `module`, `process`, `require`, `structuredClone`
|
|
14
14
|
|
|
@@ -8,8 +8,8 @@ export {}; // Don't export anything!
|
|
|
8
8
|
|
|
9
9
|
// This conditional type will be the existing global Event in a browser, or
|
|
10
10
|
// the copy below in a Node environment.
|
|
11
|
-
type __Event = typeof globalThis extends { onmessage: any, Event:
|
|
12
|
-
?
|
|
11
|
+
type __Event = typeof globalThis extends { onmessage: any, Event: any }
|
|
12
|
+
? {}
|
|
13
13
|
: {
|
|
14
14
|
/** This is not used in Node.js and is provided purely for completeness. */
|
|
15
15
|
readonly bubbles: boolean;
|
|
@@ -48,8 +48,8 @@ type __Event = typeof globalThis extends { onmessage: any, Event: infer T }
|
|
|
48
48
|
};
|
|
49
49
|
|
|
50
50
|
// See comment above explaining conditional type
|
|
51
|
-
type __EventTarget = typeof globalThis extends { onmessage: any, EventTarget:
|
|
52
|
-
?
|
|
51
|
+
type __EventTarget = typeof globalThis extends { onmessage: any, EventTarget: any }
|
|
52
|
+
? {}
|
|
53
53
|
: {
|
|
54
54
|
/**
|
|
55
55
|
* Adds a new handler for the `type` event. Any given `listener` is added only once per `type` and per `capture` option value.
|
|
@@ -64,17 +64,21 @@ interface AbortSignal extends EventTarget {
|
|
|
64
64
|
readonly aborted: boolean;
|
|
65
65
|
}
|
|
66
66
|
|
|
67
|
-
declare var AbortController: {
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
67
|
+
declare var AbortController: typeof globalThis extends {onmessage: any; AbortController: infer T}
|
|
68
|
+
? T
|
|
69
|
+
: {
|
|
70
|
+
prototype: AbortController;
|
|
71
|
+
new(): AbortController;
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
declare var AbortSignal: typeof globalThis extends {onmessage: any; AbortSignal: infer T}
|
|
75
|
+
? T
|
|
76
|
+
: {
|
|
77
|
+
prototype: AbortSignal;
|
|
78
|
+
new(): AbortSignal;
|
|
79
|
+
// TODO: Add abort() static
|
|
80
|
+
timeout(milliseconds: number): AbortSignal;
|
|
81
|
+
};
|
|
78
82
|
//#endregion borrowed
|
|
79
83
|
|
|
80
84
|
//#region ArrayLike.at()
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "18.11.
|
|
3
|
+
"version": "18.11.2",
|
|
4
4
|
"description": "TypeScript definitions for Node.js",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
|
|
6
6
|
"license": "MIT",
|
|
@@ -227,6 +227,6 @@
|
|
|
227
227
|
},
|
|
228
228
|
"scripts": {},
|
|
229
229
|
"dependencies": {},
|
|
230
|
-
"typesPublisherContentHash": "
|
|
230
|
+
"typesPublisherContentHash": "d7bbee366053005eb9ad76ecf711181a2633097e3afe20ba0ac3309f73d09afc",
|
|
231
231
|
"typeScriptVersion": "4.1"
|
|
232
232
|
}
|
|
@@ -6,9 +6,9 @@
|
|
|
6
6
|
* const querystring = require('querystring');
|
|
7
7
|
* ```
|
|
8
8
|
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
9
|
+
* `querystring` is more performant than `URLSearchParams` but is not a
|
|
10
|
+
* standardized API. Use `URLSearchParams` when performance is not critical
|
|
11
|
+
* or when compatibility with browser code is desirable.
|
|
12
12
|
* @see [source](https://github.com/nodejs/node/blob/v18.0.0/lib/querystring.js)
|
|
13
13
|
*/
|
|
14
14
|
declare module 'querystring' {
|
|
@@ -169,8 +169,8 @@ declare module 'buffer' {
|
|
|
169
169
|
import { Blob as NodeBlob } from 'buffer';
|
|
170
170
|
// This conditional type will be the existing global Blob in a browser, or
|
|
171
171
|
// the copy below in a Node environment.
|
|
172
|
-
type __Blob = typeof globalThis extends { onmessage: any, Blob:
|
|
173
|
-
?
|
|
172
|
+
type __Blob = typeof globalThis extends { onmessage: any, Blob: any }
|
|
173
|
+
? {} : NodeBlob;
|
|
174
174
|
|
|
175
175
|
global {
|
|
176
176
|
// Buffer class
|
|
@@ -8,8 +8,8 @@ export {}; // Don't export anything!
|
|
|
8
8
|
|
|
9
9
|
// This conditional type will be the existing global Event in a browser, or
|
|
10
10
|
// the copy below in a Node environment.
|
|
11
|
-
type __Event = typeof globalThis extends { onmessage: any, Event:
|
|
12
|
-
?
|
|
11
|
+
type __Event = typeof globalThis extends { onmessage: any, Event: any }
|
|
12
|
+
? {}
|
|
13
13
|
: {
|
|
14
14
|
/** This is not used in Node.js and is provided purely for completeness. */
|
|
15
15
|
readonly bubbles: boolean;
|
|
@@ -48,8 +48,8 @@ type __Event = typeof globalThis extends { onmessage: any, Event: infer T }
|
|
|
48
48
|
};
|
|
49
49
|
|
|
50
50
|
// See comment above explaining conditional type
|
|
51
|
-
type __EventTarget = typeof globalThis extends { onmessage: any, EventTarget:
|
|
52
|
-
?
|
|
51
|
+
type __EventTarget = typeof globalThis extends { onmessage: any, EventTarget: any }
|
|
52
|
+
? {}
|
|
53
53
|
: {
|
|
54
54
|
/**
|
|
55
55
|
* Adds a new handler for the `type` event. Any given `listener` is added only once per `type` and per `capture` option value.
|
|
@@ -6,9 +6,9 @@
|
|
|
6
6
|
* const querystring = require('querystring');
|
|
7
7
|
* ```
|
|
8
8
|
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
9
|
+
* `querystring` is more performant than `URLSearchParams` but is not a
|
|
10
|
+
* standardized API. Use `URLSearchParams` when performance is not critical
|
|
11
|
+
* or when compatibility with browser code is desirable.
|
|
12
12
|
* @see [source](https://github.com/nodejs/node/blob/v18.0.0/lib/querystring.js)
|
|
13
13
|
*/
|
|
14
14
|
declare module 'querystring' {
|
|
@@ -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, 18 Oct 2022 22:03:06 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
* Global values: `AbortController`, `AbortSignal`, `__dirname`, `__filename`, `console`, `exports`, `gc`, `global`, `module`, `process`, `require`, `structuredClone`
|
|
14
14
|
|
|
@@ -8,8 +8,8 @@ export {}; // Don't export anything!
|
|
|
8
8
|
|
|
9
9
|
// This conditional type will be the existing global Event in a browser, or
|
|
10
10
|
// the copy below in a Node environment.
|
|
11
|
-
type __Event = typeof globalThis extends { onmessage: any, Event:
|
|
12
|
-
?
|
|
11
|
+
type __Event = typeof globalThis extends { onmessage: any, Event: any }
|
|
12
|
+
? {}
|
|
13
13
|
: {
|
|
14
14
|
/** This is not used in Node.js and is provided purely for completeness. */
|
|
15
15
|
readonly bubbles: boolean;
|
|
@@ -48,8 +48,8 @@ type __Event = typeof globalThis extends { onmessage: any, Event: infer T }
|
|
|
48
48
|
};
|
|
49
49
|
|
|
50
50
|
// See comment above explaining conditional type
|
|
51
|
-
type __EventTarget = typeof globalThis extends { onmessage: any, EventTarget:
|
|
52
|
-
?
|
|
51
|
+
type __EventTarget = typeof globalThis extends { onmessage: any, EventTarget: any }
|
|
52
|
+
? {}
|
|
53
53
|
: {
|
|
54
54
|
/**
|
|
55
55
|
* Adds a new handler for the `type` event. Any given `listener` is added only once per `type` and per `capture` option value.
|
|
@@ -64,17 +64,21 @@ interface AbortSignal extends EventTarget {
|
|
|
64
64
|
readonly aborted: boolean;
|
|
65
65
|
}
|
|
66
66
|
|
|
67
|
-
declare var AbortController: {
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
67
|
+
declare var AbortController: typeof globalThis extends {onmessage: any; AbortController: infer T}
|
|
68
|
+
? T
|
|
69
|
+
: {
|
|
70
|
+
prototype: AbortController;
|
|
71
|
+
new(): AbortController;
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
declare var AbortSignal: typeof globalThis extends {onmessage: any; AbortSignal: infer T}
|
|
75
|
+
? T
|
|
76
|
+
: {
|
|
77
|
+
prototype: AbortSignal;
|
|
78
|
+
new(): AbortSignal;
|
|
79
|
+
// TODO: Add abort() static
|
|
80
|
+
timeout(milliseconds: number): AbortSignal;
|
|
81
|
+
};
|
|
78
82
|
//#endregion borrowed
|
|
79
83
|
|
|
80
84
|
//#region ArrayLike.at()
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "18.11.
|
|
3
|
+
"version": "18.11.2",
|
|
4
4
|
"description": "TypeScript definitions for Node.js",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
|
|
6
6
|
"license": "MIT",
|
|
@@ -227,6 +227,6 @@
|
|
|
227
227
|
},
|
|
228
228
|
"scripts": {},
|
|
229
229
|
"dependencies": {},
|
|
230
|
-
"typesPublisherContentHash": "
|
|
230
|
+
"typesPublisherContentHash": "d7bbee366053005eb9ad76ecf711181a2633097e3afe20ba0ac3309f73d09afc",
|
|
231
231
|
"typeScriptVersion": "4.1"
|
|
232
232
|
}
|
|
@@ -6,9 +6,9 @@
|
|
|
6
6
|
* const querystring = require('querystring');
|
|
7
7
|
* ```
|
|
8
8
|
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
9
|
+
* `querystring` is more performant than `URLSearchParams` but is not a
|
|
10
|
+
* standardized API. Use `URLSearchParams` when performance is not critical
|
|
11
|
+
* or when compatibility with browser code is desirable.
|
|
12
12
|
* @see [source](https://github.com/nodejs/node/blob/v18.0.0/lib/querystring.js)
|
|
13
13
|
*/
|
|
14
14
|
declare module 'querystring' {
|
|
@@ -169,8 +169,8 @@ declare module 'buffer' {
|
|
|
169
169
|
import { Blob as NodeBlob } from 'buffer';
|
|
170
170
|
// This conditional type will be the existing global Blob in a browser, or
|
|
171
171
|
// the copy below in a Node environment.
|
|
172
|
-
type __Blob = typeof globalThis extends { onmessage: any, Blob:
|
|
173
|
-
?
|
|
172
|
+
type __Blob = typeof globalThis extends { onmessage: any, Blob: any }
|
|
173
|
+
? {} : NodeBlob;
|
|
174
174
|
|
|
175
175
|
global {
|
|
176
176
|
// Buffer class
|
|
@@ -8,8 +8,8 @@ export {}; // Don't export anything!
|
|
|
8
8
|
|
|
9
9
|
// This conditional type will be the existing global Event in a browser, or
|
|
10
10
|
// the copy below in a Node environment.
|
|
11
|
-
type __Event = typeof globalThis extends { onmessage: any, Event:
|
|
12
|
-
?
|
|
11
|
+
type __Event = typeof globalThis extends { onmessage: any, Event: any }
|
|
12
|
+
? {}
|
|
13
13
|
: {
|
|
14
14
|
/** This is not used in Node.js and is provided purely for completeness. */
|
|
15
15
|
readonly bubbles: boolean;
|
|
@@ -48,8 +48,8 @@ type __Event = typeof globalThis extends { onmessage: any, Event: infer T }
|
|
|
48
48
|
};
|
|
49
49
|
|
|
50
50
|
// See comment above explaining conditional type
|
|
51
|
-
type __EventTarget = typeof globalThis extends { onmessage: any, EventTarget:
|
|
52
|
-
?
|
|
51
|
+
type __EventTarget = typeof globalThis extends { onmessage: any, EventTarget: any }
|
|
52
|
+
? {}
|
|
53
53
|
: {
|
|
54
54
|
/**
|
|
55
55
|
* Adds a new handler for the `type` event. Any given `listener` is added only once per `type` and per `capture` option value.
|
|
@@ -6,9 +6,9 @@
|
|
|
6
6
|
* const querystring = require('querystring');
|
|
7
7
|
* ```
|
|
8
8
|
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
9
|
+
* `querystring` is more performant than `URLSearchParams` but is not a
|
|
10
|
+
* standardized API. Use `URLSearchParams` when performance is not critical
|
|
11
|
+
* or when compatibility with browser code is desirable.
|
|
12
12
|
* @see [source](https://github.com/nodejs/node/blob/v18.0.0/lib/querystring.js)
|
|
13
13
|
*/
|
|
14
14
|
declare module 'querystring' {
|
package/package.json
CHANGED
|
@@ -49,13 +49,13 @@
|
|
|
49
49
|
"eslint-plugin-import": "^2.26.0",
|
|
50
50
|
"jest": "^27",
|
|
51
51
|
"jest-junit": "^13",
|
|
52
|
-
"jsii": "^1.
|
|
53
|
-
"jsii-diff": "^1.
|
|
52
|
+
"jsii": "^1.70.0",
|
|
53
|
+
"jsii-diff": "^1.70.0",
|
|
54
54
|
"jsii-docgen": "^3.8.31",
|
|
55
|
-
"jsii-pacmak": "^1.
|
|
55
|
+
"jsii-pacmak": "^1.70.0",
|
|
56
56
|
"json-schema": "^0.4.0",
|
|
57
57
|
"npm-check-updates": "^16",
|
|
58
|
-
"projen": "0.63.
|
|
58
|
+
"projen": "0.63.28",
|
|
59
59
|
"standard-version": "^9",
|
|
60
60
|
"ts-jest": "^27",
|
|
61
61
|
"typescript": "3.9.10"
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
],
|
|
84
84
|
"main": "lib/index.js",
|
|
85
85
|
"license": "Apache-2.0",
|
|
86
|
-
"version": "2.0.
|
|
86
|
+
"version": "2.0.294",
|
|
87
87
|
"jest": {
|
|
88
88
|
"testMatch": [
|
|
89
89
|
"<rootDir>/src/**/__tests__/**/*.ts?(x)",
|