cdk-common 2.0.1291 → 2.0.1293

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.
Files changed (59) hide show
  1. package/.jsii +2 -2
  2. package/lib/main.js +1 -1
  3. package/node_modules/@types/concat-stream/node_modules/@types/node/README.md +1 -1
  4. package/node_modules/@types/concat-stream/node_modules/@types/node/events.d.ts +0 -33
  5. package/node_modules/@types/concat-stream/node_modules/@types/node/package.json +2 -2
  6. package/node_modules/@types/concat-stream/node_modules/@types/node/worker_threads.d.ts +1 -1
  7. package/node_modules/@types/form-data/node_modules/@types/node/README.md +1 -1
  8. package/node_modules/@types/form-data/node_modules/@types/node/events.d.ts +0 -33
  9. package/node_modules/@types/form-data/node_modules/@types/node/package.json +2 -2
  10. package/node_modules/@types/form-data/node_modules/@types/node/worker_threads.d.ts +1 -1
  11. package/node_modules/get-intrinsic/CHANGELOG.md +0 -7
  12. package/node_modules/get-intrinsic/index.js +13 -8
  13. package/node_modules/get-intrinsic/package.json +4 -7
  14. package/package.json +2 -2
  15. package/node_modules/async-function/.eslintrc +0 -16
  16. package/node_modules/async-function/.github/FUNDING.yml +0 -12
  17. package/node_modules/async-function/.nycrc +0 -9
  18. package/node_modules/async-function/CHANGELOG.md +0 -16
  19. package/node_modules/async-function/LICENSE +0 -21
  20. package/node_modules/async-function/README.md +0 -51
  21. package/node_modules/async-function/index.d.mts +0 -3
  22. package/node_modules/async-function/index.d.ts +0 -13
  23. package/node_modules/async-function/index.js +0 -8
  24. package/node_modules/async-function/index.mjs +0 -4
  25. package/node_modules/async-function/legacy.js +0 -18
  26. package/node_modules/async-function/package.json +0 -86
  27. package/node_modules/async-function/require.mjs +0 -5
  28. package/node_modules/async-function/test/index.js +0 -40
  29. package/node_modules/async-function/tsconfig.json +0 -9
  30. package/node_modules/async-generator-function/.eslintrc +0 -26
  31. package/node_modules/async-generator-function/.github/FUNDING.yml +0 -12
  32. package/node_modules/async-generator-function/.nycrc +0 -9
  33. package/node_modules/async-generator-function/CHANGELOG.md +0 -15
  34. package/node_modules/async-generator-function/LICENSE +0 -21
  35. package/node_modules/async-generator-function/README.md +0 -52
  36. package/node_modules/async-generator-function/index.d.mts +0 -3
  37. package/node_modules/async-generator-function/index.d.ts +0 -22
  38. package/node_modules/async-generator-function/index.js +0 -8
  39. package/node_modules/async-generator-function/index.mjs +0 -4
  40. package/node_modules/async-generator-function/legacy.js +0 -18
  41. package/node_modules/async-generator-function/package.json +0 -87
  42. package/node_modules/async-generator-function/require.mjs +0 -5
  43. package/node_modules/async-generator-function/test/index.js +0 -40
  44. package/node_modules/async-generator-function/tsconfig.json +0 -9
  45. package/node_modules/generator-function/.eslintrc +0 -16
  46. package/node_modules/generator-function/.github/FUNDING.yml +0 -12
  47. package/node_modules/generator-function/.nycrc +0 -9
  48. package/node_modules/generator-function/CHANGELOG.md +0 -21
  49. package/node_modules/generator-function/LICENSE.md +0 -7
  50. package/node_modules/generator-function/README.md +0 -51
  51. package/node_modules/generator-function/index.d.mts +0 -3
  52. package/node_modules/generator-function/index.d.ts +0 -3
  53. package/node_modules/generator-function/index.js +0 -8
  54. package/node_modules/generator-function/index.mjs +0 -4
  55. package/node_modules/generator-function/legacy.js +0 -18
  56. package/node_modules/generator-function/package.json +0 -88
  57. package/node_modules/generator-function/require.mjs +0 -5
  58. package/node_modules/generator-function/test/index.js +0 -42
  59. package/node_modules/generator-function/tsconfig.json +0 -9
package/.jsii CHANGED
@@ -12420,6 +12420,6 @@
12420
12420
  "symbolId": "src/main:LambdaArmFunctionProps"
12421
12421
  }
12422
12422
  },
12423
- "version": "2.0.1291",
12424
- "fingerprint": "cKTlO4QG+sdkxM/HZb0baKu3LgiV0mpvjCZY9qIAM0k="
12423
+ "version": "2.0.1293",
12424
+ "fingerprint": "3TrqIkXwM+f6+CXQiZPID1ycO5i9lJbJVVZyN4ZBn7A="
12425
12425
  }
package/lib/main.js CHANGED
@@ -38,5 +38,5 @@ class LambdaArmFunction extends constructs_1.Construct {
38
38
  }
39
39
  exports.LambdaArmFunction = LambdaArmFunction;
40
40
  _a = JSII_RTTI_SYMBOL_1;
41
- LambdaArmFunction[_a] = { fqn: "cdk-common.LambdaArmFunction", version: "2.0.1291" };
41
+ LambdaArmFunction[_a] = { fqn: "cdk-common.LambdaArmFunction", version: "2.0.1293" };
42
42
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWFpbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3NyYy9tYWluLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7O0FBQUEsbUNBQW1DO0FBQ25DLGlEQUFpRDtBQUNqRCwyQ0FBdUM7QUFLdkMsTUFBYSxpQkFBa0IsU0FBUSxzQkFBUztJQUU5QyxZQUFZLEtBQWdCLEVBQUUsRUFBVSxFQUFFLEtBQTRCO1FBQ3BFLEtBQUssQ0FBQyxLQUFLLEVBQUUsRUFBRSxDQUFDLENBQUM7UUFFakIsTUFBTSxlQUFlLEdBQUcsSUFBSSxHQUFHLENBQXlCO1lBQ3RELENBQUMsTUFBTSxDQUFDLE9BQU8sQ0FBQyxXQUFXLEVBQUUsbUNBQW1DLENBQUM7WUFDakUsQ0FBQyxNQUFNLENBQUMsT0FBTyxDQUFDLFdBQVcsRUFBRSxtQ0FBbUMsQ0FBQztZQUNqRSxDQUFDLE1BQU0sQ0FBQyxPQUFPLENBQUMsV0FBVyxFQUFFLG1DQUFtQyxDQUFDO1lBQ2pFLENBQUMsTUFBTSxDQUFDLE9BQU8sQ0FBQyxXQUFXLEVBQUUsa0NBQWtDLENBQUM7WUFDaEUsQ0FBQyxNQUFNLENBQUMsT0FBTyxDQUFDLFdBQVcsRUFBRSxrQ0FBa0MsQ0FBQztZQUNoRSxDQUFDLE1BQU0sQ0FBQyxPQUFPLENBQUMsV0FBVyxFQUFFLGtDQUFrQyxDQUFDO1lBQ2hFLENBQUMsTUFBTSxDQUF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19sYW1iZGFfcnNzYCk7XG4gICAgfVxuXG4gICAgdGhpcy5sYW1iZGFGdW5jdGlvbiA9IG5ldyBsYW1iZGEuRnVuY3Rpb24odGhpcywgJ0xhbWJkYUZ1bmN0aW9uJywge1xuICAgICAgYXJjaGl0ZWN0dXJlOiBwcm9wcy5hcmNoaXRlY3R1cmUgPz8gbGFtYmRhLkFyY2hpdGVjdHVyZS5BUk1fNjQsXG4gICAgICAuLi5wcm9wcyxcbiAgICB9KTtcbiAgfVxufVxuIl19
@@ -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: Mon, 29 Sep 2025 18:40:16 GMT
11
+ * Last updated: Tue, 30 Sep 2025 23:32:16 GMT
12
12
  * Dependencies: [undici-types](https://npmjs.com/package/undici-types)
13
13
 
14
14
  # Credits
@@ -36,39 +36,6 @@
36
36
  */
37
37
  declare module "events" {
38
38
  import { AsyncResource, AsyncResourceOptions } from "node:async_hooks";
39
- // NOTE: This class is in the docs but is **not actually exported** by Node.
40
- // If https://github.com/nodejs/node/issues/39903 gets resolved and Node
41
- // actually starts exporting the class, uncomment below.
42
- // import { EventListener, EventListenerObject } from '__dom-events';
43
- // /** The NodeEventTarget is a Node.js-specific extension to EventTarget that emulates a subset of the EventEmitter API. */
44
- // interface NodeEventTarget extends EventTarget {
45
- // /**
46
- // * Node.js-specific extension to the `EventTarget` class that emulates the equivalent `EventEmitter` API.
47
- // * The only difference between `addListener()` and `addEventListener()` is that addListener() will return a reference to the EventTarget.
48
- // */
49
- // addListener(type: string, listener: EventListener | EventListenerObject, options?: { once: boolean }): this;
50
- // /** Node.js-specific extension to the `EventTarget` class that returns an array of event `type` names for which event listeners are registered. */
51
- // eventNames(): string[];
52
- // /** Node.js-specific extension to the `EventTarget` class that returns the number of event listeners registered for the `type`. */
53
- // listenerCount(type: string): number;
54
- // /** Node.js-specific alias for `eventTarget.removeListener()`. */
55
- // off(type: string, listener: EventListener | EventListenerObject): this;
56
- // /** Node.js-specific alias for `eventTarget.addListener()`. */
57
- // on(type: string, listener: EventListener | EventListenerObject, options?: { once: boolean }): this;
58
- // /** Node.js-specific extension to the `EventTarget` class that adds a `once` listener for the given event `type`. This is equivalent to calling `on` with the `once` option set to `true`. */
59
- // once(type: string, listener: EventListener | EventListenerObject): this;
60
- // /**
61
- // * Node.js-specific extension to the `EventTarget` class.
62
- // * If `type` is specified, removes all registered listeners for `type`,
63
- // * otherwise removes all registered listeners.
64
- // */
65
- // removeAllListeners(type: string): this;
66
- // /**
67
- // * Node.js-specific extension to the `EventTarget` class that removes the listener for the given `type`.
68
- // * The only difference between `removeListener()` and `removeEventListener()` is that `removeListener()` will return a reference to the `EventTarget`.
69
- // */
70
- // removeListener(type: string, listener: EventListener | EventListenerObject): this;
71
- // }
72
39
  interface EventEmitterOptions {
73
40
  /**
74
41
  * Enables automatic capturing of promise rejection.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "24.6.0",
3
+ "version": "24.6.1",
4
4
  "description": "TypeScript definitions for node",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
6
6
  "license": "MIT",
@@ -150,6 +150,6 @@
150
150
  "undici-types": "~7.13.0"
151
151
  },
152
152
  "peerDependencies": {},
153
- "typesPublisherContentHash": "c6b8073e736969ffdeaa3a20924802bc140d9c3e2953bb101d6da23c9409708b",
153
+ "typesPublisherContentHash": "cc6606dfada445f2822eef37a6d8381fff1079463a3445c82c8657b354789aaa",
154
154
  "typeScriptVersion": "5.2"
155
155
  }
@@ -113,7 +113,7 @@ declare module "worker_threads" {
113
113
  * This implementation matches [browser `MessagePort`](https://developer.mozilla.org/en-US/docs/Web/API/MessagePort) s.
114
114
  * @since v10.5.0
115
115
  */
116
- class MessagePort extends EventTarget {
116
+ class MessagePort implements EventTarget {
117
117
  /**
118
118
  * Disables further sending of messages on either side of the connection.
119
119
  * This method can be called when no further communication will happen over this `MessagePort`.
@@ -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: Mon, 29 Sep 2025 18:40:16 GMT
11
+ * Last updated: Tue, 30 Sep 2025 23:32:16 GMT
12
12
  * Dependencies: [undici-types](https://npmjs.com/package/undici-types)
13
13
 
14
14
  # Credits
@@ -36,39 +36,6 @@
36
36
  */
37
37
  declare module "events" {
38
38
  import { AsyncResource, AsyncResourceOptions } from "node:async_hooks";
39
- // NOTE: This class is in the docs but is **not actually exported** by Node.
40
- // If https://github.com/nodejs/node/issues/39903 gets resolved and Node
41
- // actually starts exporting the class, uncomment below.
42
- // import { EventListener, EventListenerObject } from '__dom-events';
43
- // /** The NodeEventTarget is a Node.js-specific extension to EventTarget that emulates a subset of the EventEmitter API. */
44
- // interface NodeEventTarget extends EventTarget {
45
- // /**
46
- // * Node.js-specific extension to the `EventTarget` class that emulates the equivalent `EventEmitter` API.
47
- // * The only difference between `addListener()` and `addEventListener()` is that addListener() will return a reference to the EventTarget.
48
- // */
49
- // addListener(type: string, listener: EventListener | EventListenerObject, options?: { once: boolean }): this;
50
- // /** Node.js-specific extension to the `EventTarget` class that returns an array of event `type` names for which event listeners are registered. */
51
- // eventNames(): string[];
52
- // /** Node.js-specific extension to the `EventTarget` class that returns the number of event listeners registered for the `type`. */
53
- // listenerCount(type: string): number;
54
- // /** Node.js-specific alias for `eventTarget.removeListener()`. */
55
- // off(type: string, listener: EventListener | EventListenerObject): this;
56
- // /** Node.js-specific alias for `eventTarget.addListener()`. */
57
- // on(type: string, listener: EventListener | EventListenerObject, options?: { once: boolean }): this;
58
- // /** Node.js-specific extension to the `EventTarget` class that adds a `once` listener for the given event `type`. This is equivalent to calling `on` with the `once` option set to `true`. */
59
- // once(type: string, listener: EventListener | EventListenerObject): this;
60
- // /**
61
- // * Node.js-specific extension to the `EventTarget` class.
62
- // * If `type` is specified, removes all registered listeners for `type`,
63
- // * otherwise removes all registered listeners.
64
- // */
65
- // removeAllListeners(type: string): this;
66
- // /**
67
- // * Node.js-specific extension to the `EventTarget` class that removes the listener for the given `type`.
68
- // * The only difference between `removeListener()` and `removeEventListener()` is that `removeListener()` will return a reference to the `EventTarget`.
69
- // */
70
- // removeListener(type: string, listener: EventListener | EventListenerObject): this;
71
- // }
72
39
  interface EventEmitterOptions {
73
40
  /**
74
41
  * Enables automatic capturing of promise rejection.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "24.6.0",
3
+ "version": "24.6.1",
4
4
  "description": "TypeScript definitions for node",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
6
6
  "license": "MIT",
@@ -150,6 +150,6 @@
150
150
  "undici-types": "~7.13.0"
151
151
  },
152
152
  "peerDependencies": {},
153
- "typesPublisherContentHash": "c6b8073e736969ffdeaa3a20924802bc140d9c3e2953bb101d6da23c9409708b",
153
+ "typesPublisherContentHash": "cc6606dfada445f2822eef37a6d8381fff1079463a3445c82c8657b354789aaa",
154
154
  "typeScriptVersion": "5.2"
155
155
  }
@@ -113,7 +113,7 @@ declare module "worker_threads" {
113
113
  * This implementation matches [browser `MessagePort`](https://developer.mozilla.org/en-US/docs/Web/API/MessagePort) s.
114
114
  * @since v10.5.0
115
115
  */
116
- class MessagePort extends EventTarget {
116
+ class MessagePort implements EventTarget {
117
117
  /**
118
118
  * Disables further sending of messages on either side of the connection.
119
119
  * This method can be called when no further communication will happen over this `MessagePort`.
@@ -5,13 +5,6 @@ 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.3.1](https://github.com/ljharb/get-intrinsic/compare/v1.3.0...v1.3.1) - 2025-09-29
9
-
10
- ### Commits
11
-
12
- - [Refactor] maximally avoid eval with `async-function`, `generator-function`, `async-generator-function` packages [`93232c9`](https://github.com/ljharb/get-intrinsic/commit/93232c9e84572e002929a038559b2fe3e2e92aed)
13
- - [Dev Deps] update `@ljharb/eslint-config`, `call-bound`, `es-abstract` [`c9de798`](https://github.com/ljharb/get-intrinsic/commit/c9de798767de6b9ebf0312c4d8fcb272976ca579)
14
-
15
8
  ## [v1.3.0](https://github.com/ljharb/get-intrinsic/compare/v1.2.7...v1.3.0) - 2025-02-22
16
9
 
17
10
  ### Commits
@@ -20,6 +20,15 @@ var pow = require('math-intrinsics/pow');
20
20
  var round = require('math-intrinsics/round');
21
21
  var sign = require('math-intrinsics/sign');
22
22
 
23
+ var $Function = Function;
24
+
25
+ // eslint-disable-next-line consistent-return
26
+ var getEvalledConstructor = function (expressionSyntax) {
27
+ try {
28
+ return $Function('"use strict"; return (' + expressionSyntax + ').constructor;')();
29
+ } catch (e) {}
30
+ };
31
+
23
32
  var $gOPD = require('gopd');
24
33
  var $defineProperty = require('es-define-property');
25
34
 
@@ -85,7 +94,7 @@ var INTRINSICS = {
85
94
  '%Float32Array%': typeof Float32Array === 'undefined' ? undefined : Float32Array,
86
95
  '%Float64Array%': typeof Float64Array === 'undefined' ? undefined : Float64Array,
87
96
  '%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined : FinalizationRegistry,
88
- '%Function%': Function,
97
+ '%Function%': $Function,
89
98
  '%GeneratorFunction%': needsEval,
90
99
  '%Int8Array%': typeof Int8Array === 'undefined' ? undefined : Int8Array,
91
100
  '%Int16Array%': typeof Int16Array === 'undefined' ? undefined : Int16Array,
@@ -151,18 +160,14 @@ if (getProto) {
151
160
  }
152
161
  }
153
162
 
154
- var getAsyncFunction = require('async-function');
155
- var getGeneratorFunction = require('generator-function');
156
- var getAsyncGeneratorFunction = require('async-generator-function');
157
-
158
163
  var doEval = function doEval(name) {
159
164
  var value;
160
165
  if (name === '%AsyncFunction%') {
161
- value = getAsyncFunction() || void undefined;
166
+ value = getEvalledConstructor('async function () {}');
162
167
  } else if (name === '%GeneratorFunction%') {
163
- value = getGeneratorFunction() || void undefined;
168
+ value = getEvalledConstructor('function* () {}');
164
169
  } else if (name === '%AsyncGeneratorFunction%') {
165
- value = getAsyncGeneratorFunction() || void undefined;
170
+ value = getEvalledConstructor('async function* () {}');
166
171
  } else if (name === '%AsyncGenerator%') {
167
172
  var fn = doEval('%AsyncGeneratorFunction%');
168
173
  if (fn) {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "get-intrinsic",
3
- "version": "1.3.1",
3
+ "version": "1.3.0",
4
4
  "description": "Get and robustly cache all JS language-level intrinsics at first require time",
5
5
  "main": "index.js",
6
6
  "exports": {
@@ -44,14 +44,11 @@
44
44
  },
45
45
  "homepage": "https://github.com/ljharb/get-intrinsic#readme",
46
46
  "dependencies": {
47
- "async-function": "^1.0.0",
48
- "async-generator-function": "^1.0.0",
49
47
  "call-bind-apply-helpers": "^1.0.2",
50
48
  "es-define-property": "^1.0.1",
51
49
  "es-errors": "^1.3.0",
52
50
  "es-object-atoms": "^1.1.1",
53
51
  "function-bind": "^1.1.2",
54
- "generator-function": "^2.0.0",
55
52
  "get-proto": "^1.0.1",
56
53
  "gopd": "^1.2.0",
57
54
  "has-symbols": "^1.1.0",
@@ -59,11 +56,11 @@
59
56
  "math-intrinsics": "^1.1.0"
60
57
  },
61
58
  "devDependencies": {
62
- "@ljharb/eslint-config": "^21.2.0",
59
+ "@ljharb/eslint-config": "^21.1.1",
63
60
  "auto-changelog": "^2.5.0",
64
- "call-bound": "^1.0.4",
61
+ "call-bound": "^1.0.3",
65
62
  "encoding": "^0.1.13",
66
- "es-abstract": "^1.24.0",
63
+ "es-abstract": "^1.23.9",
67
64
  "es-value-fixtures": "^1.7.1",
68
65
  "eslint": "=8.8.0",
69
66
  "evalmd": "^0.0.19",
package/package.json CHANGED
@@ -54,7 +54,7 @@
54
54
  "jsii-docgen": "^10.5.0",
55
55
  "jsii-pacmak": "^1.115.0",
56
56
  "jsii-rosetta": "5.7.x",
57
- "projen": "0.96.3",
57
+ "projen": "0.96.5",
58
58
  "ts-jest": "^27",
59
59
  "typescript": "^5"
60
60
  },
@@ -87,7 +87,7 @@
87
87
  "publishConfig": {
88
88
  "access": "public"
89
89
  },
90
- "version": "2.0.1291",
90
+ "version": "2.0.1293",
91
91
  "jest": {
92
92
  "coverageProvider": "v8",
93
93
  "testMatch": [
@@ -1,16 +0,0 @@
1
- {
2
- "root": true,
3
-
4
- "extends": "@ljharb",
5
-
6
- "overrides": [
7
- {
8
- "files": "./index.js",
9
- "extends": "@ljharb/eslint-config/node/8"
10
- },
11
- {
12
- "files": "./require.mjs",
13
- "extends": "@ljharb/eslint-config/node/16",
14
- },
15
- ],
16
- }
@@ -1,12 +0,0 @@
1
- # These are supported funding model platforms
2
-
3
- github: [ljharb]
4
- patreon: # Replace with a single Patreon username
5
- open_collective: # Replace with a single Open Collective username
6
- ko_fi: # Replace with a single Ko-fi username
7
- tidelift: npm/async-function
8
- community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
9
- liberapay: # Replace with a single Liberapay username
10
- issuehunt: # Replace with a single IssueHunt username
11
- otechie: # Replace with a single Otechie username
12
- custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
@@ -1,9 +0,0 @@
1
- {
2
- "all": true,
3
- "check-coverage": false,
4
- "reporter": ["text-summary", "text", "html", "json"],
5
- "exclude": [
6
- "coverage",
7
- "test"
8
- ]
9
- }
@@ -1,16 +0,0 @@
1
- # Changelog
2
-
3
- All notable changes to this project will be documented in this file.
4
-
5
- The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
6
- and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
-
8
- ## v1.0.0 - 2025-01-22
9
-
10
- ### Commits
11
-
12
- - Initial implementation, tests, readme, types [`8ad64e4`](https://github.com/ljharb/async-function/commit/8ad64e45668359cf032e095afcbe6ef0d291d6b4)
13
- - Initial commit [`36dac0d`](https://github.com/ljharb/async-function/commit/36dac0de439b8b6d7af6a246cf984b087efaaf87)
14
- - [meta] reformat `package.json` [`11ff004`](https://github.com/ljharb/async-function/commit/11ff0044813122c6d22e3bf360af979f7c3f7fc8)
15
- - first publish [`5ed020c`](https://github.com/ljharb/async-function/commit/5ed020c7852e90f280517a06e4a4d3cb1d295e40)
16
- - Only apps should have lockfiles [`b746134`](https://github.com/ljharb/async-function/commit/b74613407f749720b7d02b26b9fb2093a0124878)
@@ -1,21 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) 2016 EduardoRFS
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
@@ -1,51 +0,0 @@
1
- # async-function <sup>[![Version Badge][npm-version-svg]][package-url]</sup>
2
-
3
- [![github actions][actions-image]][actions-url]
4
- [![coverage][codecov-image]][codecov-url]
5
- [![License][license-image]][license-url]
6
- [![Downloads][downloads-image]][downloads-url]
7
-
8
- [![npm badge][npm-badge-png]][package-url]
9
-
10
- A function that returns the normally hidden `AsyncFunction` constructor, when available.
11
-
12
- ## Getting started
13
-
14
- ```sh
15
- npm install --save async-function
16
- ```
17
-
18
- ## Usage/Examples
19
-
20
- ```js
21
- const assert = require('assert');
22
- const AsyncFunction = require('async-function')();
23
-
24
- const fn = new AsyncFunction('return 1');
25
-
26
- assert.equal(fn.toString(), 'async function anonymous(\n) {\nreturn 1\n}');
27
-
28
- fn().then(x => {
29
- assert.equal(x, 1);
30
- });
31
- ```
32
-
33
- ## Tests
34
-
35
- Clone the repo, `npm install`, and run `npm test`
36
-
37
- [package-url]: https://npmjs.org/package/async-function
38
- [npm-version-svg]: https://versionbadg.es/ljharb/async-function.svg
39
- [deps-svg]: https://david-dm.org/ljharb/async-function.svg
40
- [deps-url]: https://david-dm.org/ljharb/async-function
41
- [dev-deps-svg]: https://david-dm.org/ljharb/async-function/dev-status.svg
42
- [dev-deps-url]: https://david-dm.org/ljharb/async-function#info=devDependencies
43
- [npm-badge-png]: https://nodei.co/npm/async-function.png?downloads=true&stars=true
44
- [license-image]: https://img.shields.io/npm/l/async-function.svg
45
- [license-url]: LICENSE
46
- [downloads-image]: https://img.shields.io/npm/dm/async-function.svg
47
- [downloads-url]: https://npm-stat.com/charts.html?package=async-function
48
- [codecov-image]: https://codecov.io/gh/ljharb/async-function/branch/main/graphs/badge.svg
49
- [codecov-url]: https://app.codecov.io/gh/ljharb/async-function/
50
- [actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/ljharb/async-function
51
- [actions-url]: https://github.com/ljharb/async-function/actions
@@ -1,3 +0,0 @@
1
- import getAsyncFunction = require('.');
2
-
3
- export default getAsyncFunction;
@@ -1,13 +0,0 @@
1
- declare namespace getAsyncFunction {
2
- type AsyncFunction<T = unknown> = (...args: any[]) => Promise<T>;
3
-
4
- interface AsyncFunctionConstructor extends FunctionConstructor {
5
- new <T>(...args: string[]): AsyncFunction<T>;
6
- <T>(...args: string[]): AsyncFunction<T>;
7
- readonly prototype: AsyncFunction;
8
- }
9
- }
10
-
11
- declare function getAsyncFunction(): getAsyncFunction.AsyncFunctionConstructor | false;
12
-
13
- export = getAsyncFunction;
@@ -1,8 +0,0 @@
1
- 'use strict';
2
-
3
- // eslint-disable-next-line no-extra-parens, no-empty-function
4
- const cached = /** @type {import('.').AsyncFunctionConstructor} */ (async function () {}.constructor);
5
-
6
- /** @type {import('.')} */
7
- module.exports = () => cached;
8
-
@@ -1,4 +0,0 @@
1
- import getAsyncFunction from './index.js';
2
-
3
- /** @type {import('./index.d.mts').default} */
4
- export default getAsyncFunction;
@@ -1,18 +0,0 @@
1
- 'use strict';
2
-
3
- /** @type {import('.').AsyncFunctionConstructor | false} */
4
- var cached;
5
-
6
- /** @type {import('.')} */
7
- module.exports = function getAsyncFunction() {
8
- if (typeof cached === 'undefined') {
9
- try {
10
- // eslint-disable-next-line no-new-func
11
- cached = Function('return async function () {}')().constructor;
12
- } catch (e) {
13
- cached = false;
14
- }
15
- }
16
- return cached;
17
- };
18
-
@@ -1,86 +0,0 @@
1
- {
2
- "name": "async-function",
3
- "version": "1.0.0",
4
- "description": "A function that returns the normally hidden `AsyncFunction` constructor",
5
- "main": "./legacy.js",
6
- "jsnext:main": "./index.mjs",
7
- "module": "./index.mjs",
8
- "exports": {
9
- ".": [
10
- {
11
- "module-sync": "./require.mjs",
12
- "import": "./index.mjs",
13
- "default": "./index.js"
14
- },
15
- "./index.js"
16
- ],
17
- "./package.json": "./package.json"
18
- },
19
- "scripts": {
20
- "prepack": "npmignore --auto --commentLines=autogenerated",
21
- "prepublish": "not-in-publish || npm run prepublishOnly",
22
- "prepublishOnly": "safe-publish-latest",
23
- "pretest": "npm run --silent lint",
24
- "test": "npm run tests-only",
25
- "posttest": "npx npm@\">=10.2\" audit --production",
26
- "tests-only": "nyc tape 'test/**/*.js'",
27
- "prelint": "evalmd README.md",
28
- "lint": "eslint --ext=js,mjs .",
29
- "postlint": "tsc && attw -P",
30
- "version": "auto-changelog && git add CHANGELOG.md",
31
- "postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\""
32
- },
33
- "repository": {
34
- "type": "git",
35
- "url": "git+https://github.com/ljharb/async-function.git"
36
- },
37
- "keywords": [
38
- "async",
39
- "await",
40
- "function",
41
- "native"
42
- ],
43
- "author": "Jordan Harbamd <ljharb@gmail.com>",
44
- "license": "MIT",
45
- "bugs": {
46
- "url": "https://github.com/ljharb/async-function/issues"
47
- },
48
- "homepage": "https://github.com/ljharb/async-function#readme",
49
- "devDependencies": {
50
- "@arethetypeswrong/cli": "^0.17.3",
51
- "@ljharb/eslint-config": "^21.1.1",
52
- "@ljharb/tsconfig": "^0.2.3",
53
- "@types/semver": "^6.2.7",
54
- "@types/tape": "^5.8.1",
55
- "auto-changelog": "^2.5.0",
56
- "eslint": "=8.8.0",
57
- "evalmd": "^0.0.19",
58
- "get-proto": "^1.0.1",
59
- "in-publish": "^2.0.1",
60
- "npmignore": "^0.3.1",
61
- "nyc": "^10.3.2",
62
- "safe-publish-latest": "^2.0.0",
63
- "semver": "^6.3.1",
64
- "tape": "^5.9.0",
65
- "typescript": "next"
66
- },
67
- "engines": {
68
- "node": ">= 0.4"
69
- },
70
- "auto-changelog": {
71
- "output": "CHANGELOG.md",
72
- "template": "keepachangelog",
73
- "unreleased": false,
74
- "commitLimit": false,
75
- "backfillLimit": false,
76
- "hideCredit": true
77
- },
78
- "publishConfig": {
79
- "ignore": [
80
- ".github/workflows"
81
- ]
82
- },
83
- "testling": {
84
- "files": "test/index.js"
85
- }
86
- }
@@ -1,5 +0,0 @@
1
- import getAsyncFunction from './index.js';
2
-
3
- export default getAsyncFunction;
4
-
5
- export { getAsyncFunction as 'module.exports' };
@@ -1,40 +0,0 @@
1
- 'use strict';
2
-
3
- var test = require('tape');
4
- var getProto = require('get-proto');
5
- var semver = require('semver');
6
-
7
- var getAsyncFunction = require('../');
8
-
9
- test('getAsyncFunction', function (t) {
10
- var result = getAsyncFunction();
11
-
12
- /* eslint-env browser */
13
- if (typeof window === 'undefined' && typeof process !== 'undefined') {
14
- t.equal(
15
- !!result,
16
- semver.satisfies(process.version, '>= 7.6'),
17
- 'result is present or absent as expected for node ' + process.version
18
- );
19
- }
20
-
21
- t.test('exists', { skip: !result }, function (st) {
22
- if (result && getProto) { // TS can't infer `skip`, or that getProto definitely exists if AsyncFunction exists
23
- st.equal(typeof result, 'function', 'is a function');
24
- st.equal(getProto(result), Function, 'extends Function');
25
-
26
- return result('a', 'return a')(42).then(function (a) {
27
- st.equal(a, 42, 'returns an async function');
28
- });
29
- }
30
- return st.fail('should never get here');
31
- });
32
-
33
- t.test('does not exist', { skip: !!result }, function (st) {
34
- st.equal(result, false, 'is false');
35
-
36
- st.end();
37
- });
38
-
39
- t.end();
40
- });
@@ -1,9 +0,0 @@
1
- {
2
- "extends": "@ljharb/tsconfig",
3
- "compilerOptions": {
4
- "target": "es2021",
5
- },
6
- "exclude": [
7
- "coverage",
8
- ],
9
- }