cdk-common 2.0.1289 → 2.0.1291

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 (93) 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/assert/strict.d.ts +105 -2
  5. package/node_modules/@types/concat-stream/node_modules/@types/node/assert.d.ts +119 -95
  6. package/node_modules/@types/concat-stream/node_modules/@types/node/crypto.d.ts +117 -7
  7. package/node_modules/@types/concat-stream/node_modules/@types/node/events.d.ts +79 -0
  8. package/node_modules/@types/concat-stream/node_modules/@types/node/fs.d.ts +224 -0
  9. package/node_modules/@types/concat-stream/node_modules/@types/node/http.d.ts +28 -3
  10. package/node_modules/@types/concat-stream/node_modules/@types/node/package.json +3 -3
  11. package/node_modules/@types/concat-stream/node_modules/@types/node/test.d.ts +2 -23
  12. package/node_modules/@types/concat-stream/node_modules/@types/node/util.d.ts +5 -0
  13. package/node_modules/@types/concat-stream/node_modules/@types/node/web-globals/events.d.ts +3 -0
  14. package/node_modules/@types/concat-stream/node_modules/@types/node/worker_threads.d.ts +33 -47
  15. package/node_modules/@types/concat-stream/node_modules/@types/node/zlib.d.ts +6 -0
  16. package/node_modules/@types/concat-stream/node_modules/undici-types/agent.d.ts +0 -4
  17. package/node_modules/@types/concat-stream/node_modules/undici-types/client.d.ts +0 -2
  18. package/node_modules/@types/concat-stream/node_modules/undici-types/dispatcher.d.ts +0 -6
  19. package/node_modules/@types/concat-stream/node_modules/undici-types/h2c-client.d.ts +0 -2
  20. package/node_modules/@types/concat-stream/node_modules/undici-types/index.d.ts +3 -1
  21. package/node_modules/@types/concat-stream/node_modules/undici-types/mock-interceptor.d.ts +0 -1
  22. package/node_modules/@types/concat-stream/node_modules/undici-types/package.json +1 -1
  23. package/node_modules/@types/concat-stream/node_modules/undici-types/snapshot-agent.d.ts +107 -0
  24. package/node_modules/@types/form-data/node_modules/@types/node/README.md +1 -1
  25. package/node_modules/@types/form-data/node_modules/@types/node/assert/strict.d.ts +105 -2
  26. package/node_modules/@types/form-data/node_modules/@types/node/assert.d.ts +119 -95
  27. package/node_modules/@types/form-data/node_modules/@types/node/crypto.d.ts +117 -7
  28. package/node_modules/@types/form-data/node_modules/@types/node/events.d.ts +79 -0
  29. package/node_modules/@types/form-data/node_modules/@types/node/fs.d.ts +224 -0
  30. package/node_modules/@types/form-data/node_modules/@types/node/http.d.ts +28 -3
  31. package/node_modules/@types/form-data/node_modules/@types/node/package.json +3 -3
  32. package/node_modules/@types/form-data/node_modules/@types/node/test.d.ts +2 -23
  33. package/node_modules/@types/form-data/node_modules/@types/node/util.d.ts +5 -0
  34. package/node_modules/@types/form-data/node_modules/@types/node/web-globals/events.d.ts +3 -0
  35. package/node_modules/@types/form-data/node_modules/@types/node/worker_threads.d.ts +33 -47
  36. package/node_modules/@types/form-data/node_modules/@types/node/zlib.d.ts +6 -0
  37. package/node_modules/@types/form-data/node_modules/undici-types/agent.d.ts +0 -4
  38. package/node_modules/@types/form-data/node_modules/undici-types/client.d.ts +0 -2
  39. package/node_modules/@types/form-data/node_modules/undici-types/dispatcher.d.ts +0 -6
  40. package/node_modules/@types/form-data/node_modules/undici-types/h2c-client.d.ts +0 -2
  41. package/node_modules/@types/form-data/node_modules/undici-types/index.d.ts +3 -1
  42. package/node_modules/@types/form-data/node_modules/undici-types/mock-interceptor.d.ts +0 -1
  43. package/node_modules/@types/form-data/node_modules/undici-types/package.json +1 -1
  44. package/node_modules/@types/form-data/node_modules/undici-types/snapshot-agent.d.ts +107 -0
  45. package/node_modules/async-function/.eslintrc +16 -0
  46. package/node_modules/async-function/.github/FUNDING.yml +12 -0
  47. package/node_modules/async-function/.nycrc +9 -0
  48. package/node_modules/async-function/CHANGELOG.md +16 -0
  49. package/node_modules/async-function/LICENSE +21 -0
  50. package/node_modules/async-function/README.md +51 -0
  51. package/node_modules/async-function/index.d.mts +3 -0
  52. package/node_modules/async-function/index.d.ts +13 -0
  53. package/node_modules/async-function/index.js +8 -0
  54. package/node_modules/async-function/index.mjs +4 -0
  55. package/node_modules/async-function/legacy.js +18 -0
  56. package/node_modules/async-function/package.json +86 -0
  57. package/node_modules/async-function/require.mjs +5 -0
  58. package/node_modules/async-function/test/index.js +40 -0
  59. package/node_modules/async-function/tsconfig.json +9 -0
  60. package/node_modules/async-generator-function/.eslintrc +26 -0
  61. package/node_modules/async-generator-function/.github/FUNDING.yml +12 -0
  62. package/node_modules/async-generator-function/.nycrc +9 -0
  63. package/node_modules/async-generator-function/CHANGELOG.md +15 -0
  64. package/node_modules/async-generator-function/LICENSE +21 -0
  65. package/node_modules/async-generator-function/README.md +52 -0
  66. package/node_modules/async-generator-function/index.d.mts +3 -0
  67. package/node_modules/async-generator-function/index.d.ts +22 -0
  68. package/node_modules/async-generator-function/index.js +8 -0
  69. package/node_modules/async-generator-function/index.mjs +4 -0
  70. package/node_modules/async-generator-function/legacy.js +18 -0
  71. package/node_modules/async-generator-function/package.json +87 -0
  72. package/node_modules/async-generator-function/require.mjs +5 -0
  73. package/node_modules/async-generator-function/test/index.js +40 -0
  74. package/node_modules/async-generator-function/tsconfig.json +9 -0
  75. package/node_modules/generator-function/.eslintrc +16 -0
  76. package/node_modules/generator-function/.github/FUNDING.yml +12 -0
  77. package/node_modules/generator-function/.nycrc +9 -0
  78. package/node_modules/generator-function/CHANGELOG.md +21 -0
  79. package/node_modules/generator-function/LICENSE.md +7 -0
  80. package/node_modules/generator-function/README.md +51 -0
  81. package/node_modules/generator-function/index.d.mts +3 -0
  82. package/node_modules/generator-function/index.d.ts +3 -0
  83. package/node_modules/generator-function/index.js +8 -0
  84. package/node_modules/generator-function/index.mjs +4 -0
  85. package/node_modules/generator-function/legacy.js +18 -0
  86. package/node_modules/generator-function/package.json +88 -0
  87. package/node_modules/generator-function/require.mjs +5 -0
  88. package/node_modules/generator-function/test/index.js +42 -0
  89. package/node_modules/generator-function/tsconfig.json +9 -0
  90. package/node_modules/get-intrinsic/CHANGELOG.md +7 -0
  91. package/node_modules/get-intrinsic/index.js +8 -13
  92. package/node_modules/get-intrinsic/package.json +7 -4
  93. package/package.json +3 -3
@@ -0,0 +1,88 @@
1
+ {
2
+ "name": "generator-function",
3
+ "version": "2.0.0",
4
+ "description": "A function that returns the normally hidden `GeneratorFunction` 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
+ "sideEffects": false,
20
+ "scripts": {
21
+ "prepack": "npmignore --auto --commentLines=autogenerated",
22
+ "prepublish": "not-in-publish || npm run prepublishOnly",
23
+ "prepublishOnly": "safe-publish-latest",
24
+ "pretest": "npm run --silent lint",
25
+ "test": "npm run tests-only",
26
+ "posttest": "npx npm@\">=10.2\" audit --production",
27
+ "tests-only": "nyc tape 'test/**/*.js'",
28
+ "prelint": "evalmd README.md",
29
+ "lint": "eslint --ext=js,mjs .",
30
+ "postlint": "tsc && attw -P",
31
+ "version": "auto-changelog && git add CHANGELOG.md",
32
+ "postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\""
33
+ },
34
+ "repository": {
35
+ "type": "git",
36
+ "url": "git+https://github.com/ljharb/generator-function.git"
37
+ },
38
+ "keywords": [
39
+ "generator",
40
+ "function",
41
+ "native"
42
+ ],
43
+ "author": "Jordan Harbamd <ljharb@gmail.com>",
44
+ "license": "MIT",
45
+ "bugs": {
46
+ "url": "https://github.com/ljharb/generator-function/issues"
47
+ },
48
+ "homepage": "https://github.com/ljharb/generator-function#readme",
49
+ "devDependencies": {
50
+ "@arethetypeswrong/cli": "^0.18.2",
51
+ "@ljharb/eslint-config": "^21.2.0",
52
+ "@ljharb/tsconfig": "^0.3.2",
53
+ "@types/semver": "^6.2.7",
54
+ "@types/tape": "^5.8.1",
55
+ "auto-changelog": "^2.5.0",
56
+ "encoding": "^0.1.13",
57
+ "eslint": "=8.8.0",
58
+ "evalmd": "^0.0.19",
59
+ "generator-function": "file:.",
60
+ "get-proto": "^1.0.1",
61
+ "in-publish": "^2.0.1",
62
+ "npmignore": "^0.3.1",
63
+ "nyc": "^10.3.2",
64
+ "safe-publish-latest": "^2.0.0",
65
+ "semver": "^6.3.1",
66
+ "tape": "^5.9.0",
67
+ "typescript": "next"
68
+ },
69
+ "engines": {
70
+ "node": ">= 0.4"
71
+ },
72
+ "auto-changelog": {
73
+ "output": "CHANGELOG.md",
74
+ "template": "keepachangelog",
75
+ "unreleased": false,
76
+ "commitLimit": false,
77
+ "backfillLimit": false,
78
+ "hideCredit": true
79
+ },
80
+ "publishConfig": {
81
+ "ignore": [
82
+ ".github/workflows"
83
+ ]
84
+ },
85
+ "testling": {
86
+ "files": "test/index.js"
87
+ }
88
+ }
@@ -0,0 +1,5 @@
1
+ import getGeneratorFunction from './index.js';
2
+
3
+ export default getGeneratorFunction;
4
+
5
+ export { getGeneratorFunction as 'module.exports' };
@@ -0,0 +1,42 @@
1
+ 'use strict';
2
+
3
+ var test = require('tape');
4
+ var getProto = require('get-proto');
5
+ var semver = require('semver');
6
+
7
+ var getGeneratorFunction = require('generator-function');
8
+
9
+ test('getGeneratorFunction', function (t) {
10
+ var result = getGeneratorFunction();
11
+
12
+ /* eslint-env browser */
13
+ if (typeof window === 'undefined' && typeof process !== 'undefined') {
14
+ t.equal(
15
+ !!result,
16
+ semver.satisfies(process.version, '>= 1'),
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 GeneratorFunction exists
23
+ st.equal(typeof result, 'function', 'is a function');
24
+ st.equal(getProto(result), Function, 'extends Function');
25
+
26
+ var iterator = result('a', 'return a')(42);
27
+ st.deepEqual(iterator.next(), { value: 42, done: true }, 'returns a generator function which returns an iterator');
28
+ } else {
29
+ st.fail('should never get here');
30
+ }
31
+
32
+ st.end();
33
+ });
34
+
35
+ t.test('does not exist', { skip: !!result }, function (st) {
36
+ st.equal(result, false, 'is false');
37
+
38
+ st.end();
39
+ });
40
+
41
+ t.end();
42
+ });
@@ -0,0 +1,9 @@
1
+ {
2
+ "extends": "@ljharb/tsconfig",
3
+ "compilerOptions": {
4
+ "target": "es2021",
5
+ },
6
+ "exclude": [
7
+ "coverage",
8
+ ],
9
+ }
@@ -5,6 +5,13 @@ 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
+
8
15
  ## [v1.3.0](https://github.com/ljharb/get-intrinsic/compare/v1.2.7...v1.3.0) - 2025-02-22
9
16
 
10
17
  ### Commits
@@ -20,15 +20,6 @@ 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
-
32
23
  var $gOPD = require('gopd');
33
24
  var $defineProperty = require('es-define-property');
34
25
 
@@ -94,7 +85,7 @@ var INTRINSICS = {
94
85
  '%Float32Array%': typeof Float32Array === 'undefined' ? undefined : Float32Array,
95
86
  '%Float64Array%': typeof Float64Array === 'undefined' ? undefined : Float64Array,
96
87
  '%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined : FinalizationRegistry,
97
- '%Function%': $Function,
88
+ '%Function%': Function,
98
89
  '%GeneratorFunction%': needsEval,
99
90
  '%Int8Array%': typeof Int8Array === 'undefined' ? undefined : Int8Array,
100
91
  '%Int16Array%': typeof Int16Array === 'undefined' ? undefined : Int16Array,
@@ -160,14 +151,18 @@ if (getProto) {
160
151
  }
161
152
  }
162
153
 
154
+ var getAsyncFunction = require('async-function');
155
+ var getGeneratorFunction = require('generator-function');
156
+ var getAsyncGeneratorFunction = require('async-generator-function');
157
+
163
158
  var doEval = function doEval(name) {
164
159
  var value;
165
160
  if (name === '%AsyncFunction%') {
166
- value = getEvalledConstructor('async function () {}');
161
+ value = getAsyncFunction() || void undefined;
167
162
  } else if (name === '%GeneratorFunction%') {
168
- value = getEvalledConstructor('function* () {}');
163
+ value = getGeneratorFunction() || void undefined;
169
164
  } else if (name === '%AsyncGeneratorFunction%') {
170
- value = getEvalledConstructor('async function* () {}');
165
+ value = getAsyncGeneratorFunction() || void undefined;
171
166
  } else if (name === '%AsyncGenerator%') {
172
167
  var fn = doEval('%AsyncGeneratorFunction%');
173
168
  if (fn) {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "get-intrinsic",
3
- "version": "1.3.0",
3
+ "version": "1.3.1",
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,11 +44,14 @@
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",
47
49
  "call-bind-apply-helpers": "^1.0.2",
48
50
  "es-define-property": "^1.0.1",
49
51
  "es-errors": "^1.3.0",
50
52
  "es-object-atoms": "^1.1.1",
51
53
  "function-bind": "^1.1.2",
54
+ "generator-function": "^2.0.0",
52
55
  "get-proto": "^1.0.1",
53
56
  "gopd": "^1.2.0",
54
57
  "has-symbols": "^1.1.0",
@@ -56,11 +59,11 @@
56
59
  "math-intrinsics": "^1.1.0"
57
60
  },
58
61
  "devDependencies": {
59
- "@ljharb/eslint-config": "^21.1.1",
62
+ "@ljharb/eslint-config": "^21.2.0",
60
63
  "auto-changelog": "^2.5.0",
61
- "call-bound": "^1.0.3",
64
+ "call-bound": "^1.0.4",
62
65
  "encoding": "^0.1.13",
63
- "es-abstract": "^1.23.9",
66
+ "es-abstract": "^1.24.0",
64
67
  "es-value-fixtures": "^1.7.1",
65
68
  "eslint": "=8.8.0",
66
69
  "evalmd": "^0.0.19",
package/package.json CHANGED
@@ -50,9 +50,9 @@
50
50
  "jest": "^27",
51
51
  "jest-junit": "^16",
52
52
  "jsii": "5.7.x",
53
- "jsii-diff": "^1.114.1",
53
+ "jsii-diff": "^1.115.0",
54
54
  "jsii-docgen": "^10.5.0",
55
- "jsii-pacmak": "^1.114.1",
55
+ "jsii-pacmak": "^1.115.0",
56
56
  "jsii-rosetta": "5.7.x",
57
57
  "projen": "0.96.3",
58
58
  "ts-jest": "^27",
@@ -87,7 +87,7 @@
87
87
  "publishConfig": {
88
88
  "access": "public"
89
89
  },
90
- "version": "2.0.1289",
90
+ "version": "2.0.1291",
91
91
  "jest": {
92
92
  "coverageProvider": "v8",
93
93
  "testMatch": [