cdk-common 2.0.729 → 2.0.731
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 +2 -2
- 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/crypto.d.ts +1 -1
- package/node_modules/@types/concat-stream/node_modules/@types/node/module.d.ts +2 -2
- package/node_modules/@types/concat-stream/node_modules/@types/node/package.json +2 -2
- package/node_modules/@types/concat-stream/node_modules/@types/node/process.d.ts +17 -0
- package/node_modules/@types/concat-stream/node_modules/@types/node/ts4.8/crypto.d.ts +1 -1
- package/node_modules/@types/concat-stream/node_modules/@types/node/ts4.8/module.d.ts +2 -2
- package/node_modules/@types/concat-stream/node_modules/@types/node/ts4.8/process.d.ts +17 -0
- package/node_modules/@types/form-data/node_modules/@types/node/README.md +1 -1
- package/node_modules/@types/form-data/node_modules/@types/node/crypto.d.ts +1 -1
- package/node_modules/@types/form-data/node_modules/@types/node/module.d.ts +2 -2
- package/node_modules/@types/form-data/node_modules/@types/node/package.json +2 -2
- package/node_modules/@types/form-data/node_modules/@types/node/process.d.ts +17 -0
- package/node_modules/@types/form-data/node_modules/@types/node/ts4.8/crypto.d.ts +1 -1
- package/node_modules/@types/form-data/node_modules/@types/node/ts4.8/module.d.ts +2 -2
- package/node_modules/@types/form-data/node_modules/@types/node/ts4.8/process.d.ts +17 -0
- package/node_modules/set-function-length/CHANGELOG.md +10 -0
- package/node_modules/set-function-length/env.d.ts +6 -0
- package/node_modules/set-function-length/env.d.ts.map +1 -0
- package/node_modules/set-function-length/env.js +9 -4
- package/node_modules/set-function-length/index.d.ts +7 -0
- package/node_modules/set-function-length/index.d.ts.map +1 -0
- package/node_modules/set-function-length/index.js +5 -2
- package/node_modules/set-function-length/package.json +32 -13
- package/node_modules/set-function-length/tsconfig.json +59 -0
- package/package.json +1 -1
package/.jsii
CHANGED
|
@@ -10718,6 +10718,6 @@
|
|
|
10718
10718
|
"symbolId": "src/main:LambdaArmFunctionProps"
|
|
10719
10719
|
}
|
|
10720
10720
|
},
|
|
10721
|
-
"version": "2.0.
|
|
10722
|
-
"fingerprint": "
|
|
10721
|
+
"version": "2.0.731",
|
|
10722
|
+
"fingerprint": "B06a202QPkYgCzVxInFaJ7TNuPB7E7UJNZ0XqqyrWsA="
|
|
10723
10723
|
}
|
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.731" };
|
|
45
45
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWFpbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3NyYy9tYWluLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7O0FBQUEsbUNBQW1DO0FBQ25DLGlEQUFpRDtBQUNqRCwyQ0FBdUM7QUFLdkMsTUFBYSxpQkFBa0IsU0FBUSxzQkFBUztJQUU5QyxZQUFZLEtBQWdCLEVBQUUsRUFBVSxFQUFFLEtBQTRCO1FBQ3BFLEtBQUssQ0FBQyxLQUFLLEVBQUUsRUFBRSxDQUFDLENBQUM7UUFFakIsSUFBSSxLQUFLLENBQUMsT0FBTyxLQUFLLE1BQU0sQ0FBQyxPQUFPLENBQUMsV0FBVyxFQUFFO1lBQ2hELEdBQUcsQ0FBQyxXQUFXLENBQUMsRUFBRSxDQUFDLElBQUksQ0FBQyxDQUFDLFVBQVUsQ0FBQyxtQ0FBbUMsQ0FBQyxDQUFDO1NBQzFFO2FBQU0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dZb3UgYXJlIHVzaW5nIEphdmEgOCBvbiBhbDIgYXQgQVJNJyk7XG4gICAgfSBlbHNlIGlmIChwcm9wcy5ydW50aW1lID09PSBsYW1iZGEuUnVudGltZS5KQVZBXzExKSB7XG4gICAgICBjZGsuQW5ub3RhdGlvbnMub2YodGhpcykuYWRkV2FybmluZygnWW91IGFyZSB1c2luZyBKYXZhIDExIGF0IEFSTScpO1xuICAgIH0gZWxzZSBpZiAocHJvcHMucnVudGltZSA9PT0gbGFtYmRhLlJ1bnRpbWUuRE9UTkVUX0NPUkVfM18xKSB7XG4gICAgICBjZGsuQW5ub3RhdGlvbnMub2YodGhpcykuYWRkV2FybmluZygnWW91IGFyZSB1c2luZyBET1RORVQgQ09SRSAzLjEgYXQgQVJNJyk7XG4gICAgfSBlbHNlIGlmIChwcm9wcy5ydW50aW1lID09PSBsYW1iZGEuUnVudGltZS5SVUJZXzJfNykge1xuICAgICAgY2RrLkFubm90YXRpb25zLm9mKHRoaXMpLmFkZFdhcm5pbmcoJ1lvdSBhcmUgdXNpbmcgUlVCWSAyLjcgYXQgQVJNJyk7XG4gICAgfSBlbHNlIHtcbiAgICAgIHRocm93IG5ldyBFcnJvcihgSW52YWxpZCBSdW50aW1lICR7cHJvcHMucnVudGltZX0gYXQgQVJNLCBTZWUgaHR0cHM6Ly9kb2NzLmF3cy5hbWF6b24uY29tL2xhbWJkYS9sYXRlc3QvZGcvZm91bmRhdGlvbi1hcmNoLmh0bWw/aWNtcGlkPWRvY3NfbGFtYmRhX3Jzc2ApO1xuICAgIH1cblxuICAgIHRoaXMubGFtYmRhRnVuY3Rpb24gPSBuZXcgbGFtYmRhLkZ1bmN0aW9uKHRoaXMsICdMYW1iZGFGdW5jdGlvbicsIHsgYXJjaGl0ZWN0dXJlOiBsYW1iZGEuQXJjaGl0ZWN0dXJlLkFSTV82NCwgLi4ucHJvcHMgfSk7XG4gIH1cbn0iXX0=
|
|
@@ -8,7 +8,7 @@ This package contains type definitions for node (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: Mon, 15 Jan 2024 21:35:33 GMT
|
|
12
12
|
* Dependencies: [undici-types](https://npmjs.com/package/undici-types)
|
|
13
13
|
|
|
14
14
|
# Credits
|
|
@@ -363,7 +363,7 @@ declare module "crypto" {
|
|
|
363
363
|
* @since v13.1.0
|
|
364
364
|
* @param options `stream.transform` options
|
|
365
365
|
*/
|
|
366
|
-
copy(options?:
|
|
366
|
+
copy(options?: HashOptions): Hash;
|
|
367
367
|
/**
|
|
368
368
|
* Updates the hash content with the given `data`, the encoding of which
|
|
369
369
|
* is given in `inputEncoding`.
|
|
@@ -280,13 +280,13 @@ declare module "module" {
|
|
|
280
280
|
* The directory name of the current module. This is the same as the `path.dirname()` of the `import.meta.filename`.
|
|
281
281
|
* **Caveat:** only present on `file:` modules.
|
|
282
282
|
*/
|
|
283
|
-
dirname
|
|
283
|
+
dirname: string;
|
|
284
284
|
/**
|
|
285
285
|
* The full absolute path and filename of the current module, with symlinks resolved.
|
|
286
286
|
* This is the same as the `url.fileURLToPath()` of the `import.meta.url`.
|
|
287
287
|
* **Caveat:** only local modules support this property. Modules not using the `file:` protocol will not provide it.
|
|
288
288
|
*/
|
|
289
|
-
filename
|
|
289
|
+
filename: string;
|
|
290
290
|
/**
|
|
291
291
|
* The absolute `file:` URL of the module.
|
|
292
292
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "20.11.
|
|
3
|
+
"version": "20.11.3",
|
|
4
4
|
"description": "TypeScript definitions for node",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
|
|
6
6
|
"license": "MIT",
|
|
@@ -224,7 +224,7 @@
|
|
|
224
224
|
"dependencies": {
|
|
225
225
|
"undici-types": "~5.26.4"
|
|
226
226
|
},
|
|
227
|
-
"typesPublisherContentHash": "
|
|
227
|
+
"typesPublisherContentHash": "66df1ea212bb8fccec491d2f2693114de8a75af1d23078e45a3f1667b7dba00d",
|
|
228
228
|
"typeScriptVersion": "4.6",
|
|
229
229
|
"nonNpm": true
|
|
230
230
|
}
|
|
@@ -1316,6 +1316,23 @@ declare module "process" {
|
|
|
1316
1316
|
*/
|
|
1317
1317
|
uptime(): number;
|
|
1318
1318
|
hrtime: HRTime;
|
|
1319
|
+
/**
|
|
1320
|
+
* If the Node.js process was spawned with an IPC channel, the process.channel property is a reference to the IPC channel.
|
|
1321
|
+
* If no IPC channel exists, this property is undefined.
|
|
1322
|
+
* @since v7.1.0
|
|
1323
|
+
*/
|
|
1324
|
+
channel?: {
|
|
1325
|
+
/**
|
|
1326
|
+
* This method makes the IPC channel keep the event loop of the process running if .unref() has been called before.
|
|
1327
|
+
* @since v7.1.0
|
|
1328
|
+
*/
|
|
1329
|
+
ref(): void;
|
|
1330
|
+
/**
|
|
1331
|
+
* This method makes the IPC channel not keep the event loop of the process running, and lets it finish even while the channel is open.
|
|
1332
|
+
* @since v7.1.0
|
|
1333
|
+
*/
|
|
1334
|
+
unref(): void;
|
|
1335
|
+
};
|
|
1319
1336
|
/**
|
|
1320
1337
|
* If Node.js is spawned with an IPC channel, the `process.send()` method can be
|
|
1321
1338
|
* used to send messages to the parent process. Messages will be received as a `'message'` event on the parent's `ChildProcess` object.
|
|
@@ -363,7 +363,7 @@ declare module "crypto" {
|
|
|
363
363
|
* @since v13.1.0
|
|
364
364
|
* @param options `stream.transform` options
|
|
365
365
|
*/
|
|
366
|
-
copy(options?:
|
|
366
|
+
copy(options?: HashOptions): Hash;
|
|
367
367
|
/**
|
|
368
368
|
* Updates the hash content with the given `data`, the encoding of which
|
|
369
369
|
* is given in `inputEncoding`.
|
|
@@ -280,13 +280,13 @@ declare module "module" {
|
|
|
280
280
|
* The directory name of the current module. This is the same as the `path.dirname()` of the `import.meta.filename`.
|
|
281
281
|
* **Caveat:** only present on `file:` modules.
|
|
282
282
|
*/
|
|
283
|
-
dirname
|
|
283
|
+
dirname: string;
|
|
284
284
|
/**
|
|
285
285
|
* The full absolute path and filename of the current module, with symlinks resolved.
|
|
286
286
|
* This is the same as the `url.fileURLToPath()` of the `import.meta.url`.
|
|
287
287
|
* **Caveat:** only local modules support this property. Modules not using the `file:` protocol will not provide it.
|
|
288
288
|
*/
|
|
289
|
-
filename
|
|
289
|
+
filename: string;
|
|
290
290
|
/**
|
|
291
291
|
* The absolute `file:` URL of the module.
|
|
292
292
|
*/
|
|
@@ -1316,6 +1316,23 @@ declare module "process" {
|
|
|
1316
1316
|
*/
|
|
1317
1317
|
uptime(): number;
|
|
1318
1318
|
hrtime: HRTime;
|
|
1319
|
+
/**
|
|
1320
|
+
* If the Node.js process was spawned with an IPC channel, the process.channel property is a reference to the IPC channel.
|
|
1321
|
+
* If no IPC channel exists, this property is undefined.
|
|
1322
|
+
* @since v7.1.0
|
|
1323
|
+
*/
|
|
1324
|
+
channel?: {
|
|
1325
|
+
/**
|
|
1326
|
+
* This method makes the IPC channel keep the event loop of the process running if .unref() has been called before.
|
|
1327
|
+
* @since v7.1.0
|
|
1328
|
+
*/
|
|
1329
|
+
ref(): void;
|
|
1330
|
+
/**
|
|
1331
|
+
* This method makes the IPC channel not keep the event loop of the process running, and lets it finish even while the channel is open.
|
|
1332
|
+
* @since v7.1.0
|
|
1333
|
+
*/
|
|
1334
|
+
unref(): void;
|
|
1335
|
+
};
|
|
1319
1336
|
/**
|
|
1320
1337
|
* If Node.js is spawned with an IPC channel, the `process.send()` method can be
|
|
1321
1338
|
* used to send messages to the parent process. Messages will be received as a `'message'` event on the parent's `ChildProcess` object.
|
|
@@ -8,7 +8,7 @@ This package contains type definitions for node (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: Mon, 15 Jan 2024 21:35:33 GMT
|
|
12
12
|
* Dependencies: [undici-types](https://npmjs.com/package/undici-types)
|
|
13
13
|
|
|
14
14
|
# Credits
|
|
@@ -363,7 +363,7 @@ declare module "crypto" {
|
|
|
363
363
|
* @since v13.1.0
|
|
364
364
|
* @param options `stream.transform` options
|
|
365
365
|
*/
|
|
366
|
-
copy(options?:
|
|
366
|
+
copy(options?: HashOptions): Hash;
|
|
367
367
|
/**
|
|
368
368
|
* Updates the hash content with the given `data`, the encoding of which
|
|
369
369
|
* is given in `inputEncoding`.
|
|
@@ -280,13 +280,13 @@ declare module "module" {
|
|
|
280
280
|
* The directory name of the current module. This is the same as the `path.dirname()` of the `import.meta.filename`.
|
|
281
281
|
* **Caveat:** only present on `file:` modules.
|
|
282
282
|
*/
|
|
283
|
-
dirname
|
|
283
|
+
dirname: string;
|
|
284
284
|
/**
|
|
285
285
|
* The full absolute path and filename of the current module, with symlinks resolved.
|
|
286
286
|
* This is the same as the `url.fileURLToPath()` of the `import.meta.url`.
|
|
287
287
|
* **Caveat:** only local modules support this property. Modules not using the `file:` protocol will not provide it.
|
|
288
288
|
*/
|
|
289
|
-
filename
|
|
289
|
+
filename: string;
|
|
290
290
|
/**
|
|
291
291
|
* The absolute `file:` URL of the module.
|
|
292
292
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "20.11.
|
|
3
|
+
"version": "20.11.3",
|
|
4
4
|
"description": "TypeScript definitions for node",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
|
|
6
6
|
"license": "MIT",
|
|
@@ -224,7 +224,7 @@
|
|
|
224
224
|
"dependencies": {
|
|
225
225
|
"undici-types": "~5.26.4"
|
|
226
226
|
},
|
|
227
|
-
"typesPublisherContentHash": "
|
|
227
|
+
"typesPublisherContentHash": "66df1ea212bb8fccec491d2f2693114de8a75af1d23078e45a3f1667b7dba00d",
|
|
228
228
|
"typeScriptVersion": "4.6",
|
|
229
229
|
"nonNpm": true
|
|
230
230
|
}
|
|
@@ -1316,6 +1316,23 @@ declare module "process" {
|
|
|
1316
1316
|
*/
|
|
1317
1317
|
uptime(): number;
|
|
1318
1318
|
hrtime: HRTime;
|
|
1319
|
+
/**
|
|
1320
|
+
* If the Node.js process was spawned with an IPC channel, the process.channel property is a reference to the IPC channel.
|
|
1321
|
+
* If no IPC channel exists, this property is undefined.
|
|
1322
|
+
* @since v7.1.0
|
|
1323
|
+
*/
|
|
1324
|
+
channel?: {
|
|
1325
|
+
/**
|
|
1326
|
+
* This method makes the IPC channel keep the event loop of the process running if .unref() has been called before.
|
|
1327
|
+
* @since v7.1.0
|
|
1328
|
+
*/
|
|
1329
|
+
ref(): void;
|
|
1330
|
+
/**
|
|
1331
|
+
* This method makes the IPC channel not keep the event loop of the process running, and lets it finish even while the channel is open.
|
|
1332
|
+
* @since v7.1.0
|
|
1333
|
+
*/
|
|
1334
|
+
unref(): void;
|
|
1335
|
+
};
|
|
1319
1336
|
/**
|
|
1320
1337
|
* If Node.js is spawned with an IPC channel, the `process.send()` method can be
|
|
1321
1338
|
* used to send messages to the parent process. Messages will be received as a `'message'` event on the parent's `ChildProcess` object.
|
|
@@ -363,7 +363,7 @@ declare module "crypto" {
|
|
|
363
363
|
* @since v13.1.0
|
|
364
364
|
* @param options `stream.transform` options
|
|
365
365
|
*/
|
|
366
|
-
copy(options?:
|
|
366
|
+
copy(options?: HashOptions): Hash;
|
|
367
367
|
/**
|
|
368
368
|
* Updates the hash content with the given `data`, the encoding of which
|
|
369
369
|
* is given in `inputEncoding`.
|
|
@@ -280,13 +280,13 @@ declare module "module" {
|
|
|
280
280
|
* The directory name of the current module. This is the same as the `path.dirname()` of the `import.meta.filename`.
|
|
281
281
|
* **Caveat:** only present on `file:` modules.
|
|
282
282
|
*/
|
|
283
|
-
dirname
|
|
283
|
+
dirname: string;
|
|
284
284
|
/**
|
|
285
285
|
* The full absolute path and filename of the current module, with symlinks resolved.
|
|
286
286
|
* This is the same as the `url.fileURLToPath()` of the `import.meta.url`.
|
|
287
287
|
* **Caveat:** only local modules support this property. Modules not using the `file:` protocol will not provide it.
|
|
288
288
|
*/
|
|
289
|
-
filename
|
|
289
|
+
filename: string;
|
|
290
290
|
/**
|
|
291
291
|
* The absolute `file:` URL of the module.
|
|
292
292
|
*/
|
|
@@ -1316,6 +1316,23 @@ declare module "process" {
|
|
|
1316
1316
|
*/
|
|
1317
1317
|
uptime(): number;
|
|
1318
1318
|
hrtime: HRTime;
|
|
1319
|
+
/**
|
|
1320
|
+
* If the Node.js process was spawned with an IPC channel, the process.channel property is a reference to the IPC channel.
|
|
1321
|
+
* If no IPC channel exists, this property is undefined.
|
|
1322
|
+
* @since v7.1.0
|
|
1323
|
+
*/
|
|
1324
|
+
channel?: {
|
|
1325
|
+
/**
|
|
1326
|
+
* This method makes the IPC channel keep the event loop of the process running if .unref() has been called before.
|
|
1327
|
+
* @since v7.1.0
|
|
1328
|
+
*/
|
|
1329
|
+
ref(): void;
|
|
1330
|
+
/**
|
|
1331
|
+
* This method makes the IPC channel not keep the event loop of the process running, and lets it finish even while the channel is open.
|
|
1332
|
+
* @since v7.1.0
|
|
1333
|
+
*/
|
|
1334
|
+
unref(): void;
|
|
1335
|
+
};
|
|
1319
1336
|
/**
|
|
1320
1337
|
* If Node.js is spawned with an IPC channel, the `process.send()` method can be
|
|
1321
1338
|
* used to send messages to the parent process. Messages will be received as a `'message'` event on the parent's `ChildProcess` object.
|
|
@@ -5,6 +5,16 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [v1.2.0](https://github.com/ljharb/set-function-length/compare/v1.1.1...v1.2.0) - 2024-01-14
|
|
9
|
+
|
|
10
|
+
### Commits
|
|
11
|
+
|
|
12
|
+
- [New] add types [`f6d9088`](https://github.com/ljharb/set-function-length/commit/f6d9088b9283a3112b21c6776e8bef6d1f30558a)
|
|
13
|
+
- [Fix] ensure `env` properties are always booleans [`0c42f84`](https://github.com/ljharb/set-function-length/commit/0c42f84979086389b3229e1b4272697fd352275a)
|
|
14
|
+
- [Dev Deps] update `aud`, `call-bind`, `npmignore`, `tape` [`2b75f75`](https://github.com/ljharb/set-function-length/commit/2b75f75468093a4bb8ce8ca989b2edd2e80d95d1)
|
|
15
|
+
- [Deps] update `get-intrinsic`, `has-property-descriptors` [`19bf0fc`](https://github.com/ljharb/set-function-length/commit/19bf0fc4ffaa5ad425acbfa150516be9f3b6263a)
|
|
16
|
+
- [meta] add `sideEffects` flag [`8bb9b78`](https://github.com/ljharb/set-function-length/commit/8bb9b78c11c621123f725c9470222f43466c01d0)
|
|
17
|
+
|
|
8
18
|
## [v1.1.1](https://github.com/ljharb/set-function-length/compare/v1.1.0...v1.1.1) - 2023-10-19
|
|
9
19
|
|
|
10
20
|
### Fixed
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export var boundFnsHaveConfigurableLengths: boolean;
|
|
2
|
+
export var boundFnsHaveWritableLengths: boolean;
|
|
3
|
+
export var functionsHaveConfigurableLengths: boolean;
|
|
4
|
+
export var functionsHaveWritableLengths: boolean;
|
|
5
|
+
export declare let __proto__: null;
|
|
6
|
+
//# sourceMappingURL=env.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"env.d.ts","sourceRoot":"","sources":["env.js"],"names":[],"mappings":"AAaA,oDAAsE;AAEtE,gDAA8D;AAN9D,qDAA2E;AAE3E,iDAAmE"}
|
|
@@ -1,14 +1,19 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var gOPD = require('gopd');
|
|
4
|
+
var bind = require('function-bind');
|
|
4
5
|
|
|
5
|
-
var
|
|
6
|
+
var unbound = gOPD && gOPD(function () {}, 'length');
|
|
7
|
+
// @ts-expect-error ts(2555) TS is overly strict with .call
|
|
8
|
+
var bound = gOPD && gOPD(bind.call(function () {}), 'length');
|
|
6
9
|
|
|
7
|
-
var
|
|
10
|
+
var functionsHaveConfigurableLengths = !!(unbound && unbound.configurable);
|
|
8
11
|
|
|
9
|
-
var
|
|
12
|
+
var functionsHaveWritableLengths = !!(unbound && unbound.writable);
|
|
10
13
|
|
|
11
|
-
var
|
|
14
|
+
var boundFnsHaveConfigurableLengths = !!(bound && bound.configurable);
|
|
15
|
+
|
|
16
|
+
var boundFnsHaveWritableLengths = !!(bound && bound.writable);
|
|
12
17
|
|
|
13
18
|
module.exports = {
|
|
14
19
|
__proto__: null,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.js"],"names":[],"mappings":";;;+DAYkD,MAAM,UAAU,OAAO;;sBAFjD,OAAO,EAAE,KAAK,OAAO"}
|
|
@@ -8,6 +8,9 @@ var gOPD = require('gopd');
|
|
|
8
8
|
var $TypeError = GetIntrinsic('%TypeError%');
|
|
9
9
|
var $floor = GetIntrinsic('%Math.floor%');
|
|
10
10
|
|
|
11
|
+
/** @typedef {(...args: unknown[]) => unknown} Func */
|
|
12
|
+
|
|
13
|
+
/** @type {<T extends Func = Func>(fn: T, length: number, loose?: boolean) => T} */
|
|
11
14
|
module.exports = function setFunctionLength(fn, length) {
|
|
12
15
|
if (typeof fn !== 'function') {
|
|
13
16
|
throw new $TypeError('`fn` is not a function');
|
|
@@ -32,9 +35,9 @@ module.exports = function setFunctionLength(fn, length) {
|
|
|
32
35
|
|
|
33
36
|
if (functionLengthIsConfigurable || functionLengthIsWritable || !loose) {
|
|
34
37
|
if (hasDescriptors) {
|
|
35
|
-
define(fn, 'length', length, true, true);
|
|
38
|
+
define(/** @type {Parameters<define>[0]} */ (fn), 'length', length, true, true);
|
|
36
39
|
} else {
|
|
37
|
-
define(fn, 'length', length);
|
|
40
|
+
define(/** @type {Parameters<define>[0]} */ (fn), 'length', length);
|
|
38
41
|
}
|
|
39
42
|
}
|
|
40
43
|
return fn;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "set-function-length",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "Set a function's length property",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"exports": {
|
|
@@ -8,15 +8,21 @@
|
|
|
8
8
|
"./env": "./env.js",
|
|
9
9
|
"./package.json": "./package.json"
|
|
10
10
|
},
|
|
11
|
+
"sideEffects": false,
|
|
11
12
|
"directories": {
|
|
12
13
|
"test": "test"
|
|
13
14
|
},
|
|
14
15
|
"scripts": {
|
|
15
|
-
"prepack": "npmignore --auto --commentLines=autogenerated",
|
|
16
|
+
"prepack": "npmignore --auto --commentLines=autogenerated && npm run emit",
|
|
16
17
|
"prepublish": "not-in-publish || npm run prepublishOnly",
|
|
17
18
|
"prepublishOnly": "safe-publish-latest",
|
|
19
|
+
"tsc": "tsc -p .",
|
|
20
|
+
"preemit": "rm -f *.ts *.ts.map test/*.ts test/*.ts.map",
|
|
21
|
+
"emit": "npm run tsc -- --noEmit false --emitDeclarationOnly",
|
|
22
|
+
"postemit": "rm test/*.ts test/*.ts.map",
|
|
18
23
|
"prelint": "evalmd README.md",
|
|
19
24
|
"lint": "eslint --ext=js,mjs .",
|
|
25
|
+
"postlint": "npm run tsc",
|
|
20
26
|
"pretest": "npm run lint",
|
|
21
27
|
"tests-only": "nyc tape 'test/**/*.js'",
|
|
22
28
|
"test": "npm run tests-only",
|
|
@@ -42,27 +48,38 @@
|
|
|
42
48
|
"url": "https://github.com/ljharb/set-function-length/issues"
|
|
43
49
|
},
|
|
44
50
|
"homepage": "https://github.com/ljharb/set-function-length#readme",
|
|
51
|
+
"dependencies": {
|
|
52
|
+
"define-data-property": "^1.1.1",
|
|
53
|
+
"function-bind": "^1.1.2",
|
|
54
|
+
"get-intrinsic": "^1.2.2",
|
|
55
|
+
"gopd": "^1.0.1",
|
|
56
|
+
"has-property-descriptors": "^1.0.1"
|
|
57
|
+
},
|
|
45
58
|
"devDependencies": {
|
|
46
59
|
"@ljharb/eslint-config": "^21.1.0",
|
|
47
|
-
"
|
|
60
|
+
"@types/call-bind": "^1.0.5",
|
|
61
|
+
"@types/define-properties": "^1.1.5",
|
|
62
|
+
"@types/es-value-fixtures": "^1.4.4",
|
|
63
|
+
"@types/for-each": "^0.3.3",
|
|
64
|
+
"@types/function-bind": "^1.1.10",
|
|
65
|
+
"@types/gopd": "^1.0.3",
|
|
66
|
+
"@types/has-property-descriptors": "^1.0.3",
|
|
67
|
+
"@types/object-inspect": "^1.8.4",
|
|
68
|
+
"@types/tape": "^5.6.4",
|
|
69
|
+
"aud": "^2.0.4",
|
|
48
70
|
"auto-changelog": "^2.4.0",
|
|
49
|
-
"call-bind": "^1.0.
|
|
71
|
+
"call-bind": "^1.0.5",
|
|
50
72
|
"es-value-fixtures": "^1.4.2",
|
|
51
73
|
"eslint": "=8.8.0",
|
|
52
74
|
"evalmd": "^0.0.19",
|
|
53
75
|
"for-each": "^0.3.3",
|
|
54
76
|
"in-publish": "^2.0.1",
|
|
55
|
-
"npmignore": "^0.3.
|
|
77
|
+
"npmignore": "^0.3.1",
|
|
56
78
|
"nyc": "^10.3.2",
|
|
57
79
|
"object-inspect": "^1.13.1",
|
|
58
80
|
"safe-publish-latest": "^2.0.0",
|
|
59
|
-
"tape": "^5.7.
|
|
60
|
-
|
|
61
|
-
"dependencies": {
|
|
62
|
-
"define-data-property": "^1.1.1",
|
|
63
|
-
"get-intrinsic": "^1.2.1",
|
|
64
|
-
"gopd": "^1.0.1",
|
|
65
|
-
"has-property-descriptors": "^1.0.0"
|
|
81
|
+
"tape": "^5.7.3",
|
|
82
|
+
"typescript": "^5.4.0-dev.20240113"
|
|
66
83
|
},
|
|
67
84
|
"engines": {
|
|
68
85
|
"node": ">= 0.4"
|
|
@@ -78,7 +95,9 @@
|
|
|
78
95
|
"publishConfig": {
|
|
79
96
|
"ignore": [
|
|
80
97
|
".github/workflows",
|
|
81
|
-
"test"
|
|
98
|
+
"test",
|
|
99
|
+
"!*.d.ts",
|
|
100
|
+
"!*.d.ts.map"
|
|
82
101
|
]
|
|
83
102
|
}
|
|
84
103
|
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
/* Visit https://aka.ms/tsconfig to read more about this file */
|
|
4
|
+
|
|
5
|
+
/* Projects */
|
|
6
|
+
|
|
7
|
+
/* Language and Environment */
|
|
8
|
+
"target": "es2022", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
|
|
9
|
+
// "lib": [], /* Specify a set of bundled library declaration files that describe the target runtime environment. */
|
|
10
|
+
// "noLib": true, /* Disable including any library files, including the default lib.d.ts. */
|
|
11
|
+
"useDefineForClassFields": true, /* Emit ECMAScript-standard-compliant class fields. */
|
|
12
|
+
// "moduleDetection": "auto", /* Control what method is used to detect module-format JS files. */
|
|
13
|
+
|
|
14
|
+
/* Modules */
|
|
15
|
+
"module": "commonjs", /* Specify what module code is generated. */
|
|
16
|
+
// "rootDir": "./", /* Specify the root folder within your source files. */
|
|
17
|
+
// "moduleResolution": "node10", /* Specify how TypeScript looks up a file from a given module specifier. */
|
|
18
|
+
// "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */
|
|
19
|
+
// "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */
|
|
20
|
+
// "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */
|
|
21
|
+
"typeRoots": ["types"], /* Specify multiple folders that act like './node_modules/@types'. */
|
|
22
|
+
"resolveJsonModule": true, /* Enable importing .json files. */
|
|
23
|
+
|
|
24
|
+
/* JavaScript Support */
|
|
25
|
+
"allowJs": true, /* Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files. */
|
|
26
|
+
"checkJs": true, /* Enable error reporting in type-checked JavaScript files. */
|
|
27
|
+
"maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'. */
|
|
28
|
+
|
|
29
|
+
/* Emit */
|
|
30
|
+
"declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */
|
|
31
|
+
"declarationMap": true, /* Create sourcemaps for d.ts files. */
|
|
32
|
+
// "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */
|
|
33
|
+
"noEmit": true, /* Disable emitting files from a compilation. */
|
|
34
|
+
|
|
35
|
+
/* Interop Constraints */
|
|
36
|
+
"allowSyntheticDefaultImports": true, /* Allow 'import x from y' when a module doesn't have a default export. */
|
|
37
|
+
"esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */
|
|
38
|
+
"forceConsistentCasingInFileNames": true, /* Ensure that casing is correct in imports. */
|
|
39
|
+
|
|
40
|
+
/* Type Checking */
|
|
41
|
+
"strict": true, /* Enable all strict type-checking options. */
|
|
42
|
+
"noImplicitAny": true, /* Enable error reporting for expressions and declarations with an implied 'any' type. */
|
|
43
|
+
"noImplicitThis": true, /* Enable error reporting when 'this' is given the type 'any'. */
|
|
44
|
+
"useUnknownInCatchVariables": true, /* Default catch clause variables as 'unknown' instead of 'any'. */
|
|
45
|
+
"noUnusedLocals": true, /* Enable error reporting when local variables aren't read. */
|
|
46
|
+
"noUnusedParameters": true, /* Raise an error when a function parameter isn't read. */
|
|
47
|
+
"noImplicitReturns": true, /* Enable error reporting for codepaths that do not explicitly return in a function. */
|
|
48
|
+
"noFallthroughCasesInSwitch": true, /* Enable error reporting for fallthrough cases in switch statements. */
|
|
49
|
+
"noUncheckedIndexedAccess": true, /* Add 'undefined' to a type when accessed using an index. */
|
|
50
|
+
"noImplicitOverride": true, /* Ensure overriding members in derived classes are marked with an override modifier. */
|
|
51
|
+
// "noPropertyAccessFromIndexSignature": true, /* Enforces using indexed accessors for keys declared using an indexed type. */
|
|
52
|
+
|
|
53
|
+
/* Completeness */
|
|
54
|
+
// "skipLibCheck": true /* Skip type checking all .d.ts files. */
|
|
55
|
+
},
|
|
56
|
+
"exclude": [
|
|
57
|
+
"coverage"
|
|
58
|
+
]
|
|
59
|
+
}
|