@jjrawlins/cdk-iam-policy-builder-helper 0.0.42 → 0.0.43
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 +4 -4
- package/cdk-iam-policy-builder-helper/jsii/jsii.go +2 -2
- package/cdk-iam-policy-builder-helper/version +1 -1
- package/node_modules/@aws-sdk/client-iam/package.json +11 -11
- package/node_modules/@aws-sdk/client-sso/package.json +10 -10
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +13 -7
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/ProtocolLib.js +3 -2
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/cbor/AwsSmithyRpcV2CborProtocol.js +3 -2
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsJsonRpcProtocol.js +3 -2
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsRestJsonProtocol.js +3 -2
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/query/AwsQueryProtocol.js +3 -2
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/AwsRestXmlProtocol.js +3 -2
- package/node_modules/@aws-sdk/core/package.json +3 -3
- package/node_modules/@aws-sdk/credential-provider-env/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-http/package.json +3 -3
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +8 -8
- package/node_modules/@aws-sdk/credential-provider-node/package.json +7 -7
- package/node_modules/@aws-sdk/credential-provider-process/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +4 -4
- package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +3 -3
- package/node_modules/@aws-sdk/middleware-user-agent/package.json +3 -3
- package/node_modules/@aws-sdk/nested-clients/package.json +10 -10
- package/node_modules/@aws-sdk/token-providers/package.json +3 -3
- package/node_modules/@aws-sdk/util-user-agent-node/package.json +2 -2
- package/node_modules/async-function/.eslintrc +16 -0
- package/node_modules/async-function/.github/FUNDING.yml +12 -0
- package/node_modules/async-function/.nycrc +9 -0
- package/node_modules/async-function/CHANGELOG.md +16 -0
- package/node_modules/async-function/LICENSE +21 -0
- package/node_modules/async-function/README.md +51 -0
- package/node_modules/async-function/index.d.mts +3 -0
- package/node_modules/async-function/index.d.ts +13 -0
- package/node_modules/async-function/index.js +8 -0
- package/node_modules/async-function/index.mjs +4 -0
- package/node_modules/async-function/legacy.js +18 -0
- package/node_modules/async-function/package.json +86 -0
- package/node_modules/async-function/require.mjs +5 -0
- package/node_modules/async-function/test/index.js +40 -0
- package/node_modules/async-function/tsconfig.json +9 -0
- package/node_modules/async-generator-function/.eslintrc +26 -0
- package/node_modules/async-generator-function/.github/FUNDING.yml +12 -0
- package/node_modules/async-generator-function/.nycrc +9 -0
- package/node_modules/async-generator-function/CHANGELOG.md +15 -0
- package/node_modules/async-generator-function/LICENSE +21 -0
- package/node_modules/async-generator-function/README.md +52 -0
- package/node_modules/async-generator-function/index.d.mts +3 -0
- package/node_modules/async-generator-function/index.d.ts +22 -0
- package/node_modules/async-generator-function/index.js +8 -0
- package/node_modules/async-generator-function/index.mjs +4 -0
- package/node_modules/async-generator-function/legacy.js +18 -0
- package/node_modules/async-generator-function/package.json +87 -0
- package/node_modules/async-generator-function/require.mjs +5 -0
- package/node_modules/async-generator-function/test/index.js +40 -0
- package/node_modules/async-generator-function/tsconfig.json +9 -0
- package/node_modules/generator-function/.eslintrc +16 -0
- package/node_modules/generator-function/.github/FUNDING.yml +12 -0
- package/node_modules/generator-function/.nycrc +9 -0
- package/node_modules/generator-function/CHANGELOG.md +21 -0
- package/node_modules/generator-function/LICENSE.md +7 -0
- package/node_modules/generator-function/README.md +51 -0
- package/node_modules/generator-function/index.d.mts +3 -0
- package/node_modules/generator-function/index.d.ts +3 -0
- package/node_modules/generator-function/index.js +8 -0
- package/node_modules/generator-function/index.mjs +4 -0
- package/node_modules/generator-function/legacy.js +18 -0
- package/node_modules/generator-function/package.json +88 -0
- package/node_modules/generator-function/require.mjs +5 -0
- package/node_modules/generator-function/test/index.js +42 -0
- package/node_modules/generator-function/tsconfig.json +9 -0
- package/node_modules/get-intrinsic/CHANGELOG.md +7 -0
- package/node_modules/get-intrinsic/index.js +8 -13
- package/node_modules/get-intrinsic/package.json +7 -4
- package/package.json +4 -4
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var test = require('tape');
|
|
4
|
+
var getProto = require('get-proto');
|
|
5
|
+
var semver = require('semver');
|
|
6
|
+
|
|
7
|
+
var getAsyncGeneratorFunction = require('../');
|
|
8
|
+
|
|
9
|
+
test('getAsyncGeneratorFunction', function (t) {
|
|
10
|
+
var result = getAsyncGeneratorFunction();
|
|
11
|
+
|
|
12
|
+
/* eslint-env browser */
|
|
13
|
+
if (typeof window === 'undefined' && typeof process !== 'undefined') {
|
|
14
|
+
t.equal(
|
|
15
|
+
!!result,
|
|
16
|
+
semver.satisfies(process.version, '>= 10'),
|
|
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 AsyncGeneratorFunction 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).next().then(function (a) {
|
|
27
|
+
st.deepEqual(a, { done: true, value: 42 }, 'returns an async generator 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
|
+
});
|
|
@@ -0,0 +1,12 @@
|
|
|
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/generator-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']
|
|
@@ -0,0 +1,21 @@
|
|
|
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
|
+
## [v2.0.0](https://github.com/TimothyGu/generator-function/compare/v1.0.0...v2.0.0) - 2025-09-29
|
|
9
|
+
|
|
10
|
+
### Commits
|
|
11
|
+
|
|
12
|
+
- Initial reimplementation, tests, readme, types [`e5940de`](https://github.com/TimothyGu/generator-function/commit/e5940de4328fc70ad27aa4bab4245f6c9ce62a44)
|
|
13
|
+
- [meta] remove unused files [`460bbe9`](https://github.com/TimothyGu/generator-function/commit/460bbe9cc6c89f9fdab05a001dc924308124613b)
|
|
14
|
+
- [Dev Deps] add missing peer dep [`b873c0d`](https://github.com/TimothyGu/generator-function/commit/b873c0dad8f38b08e2acc4bd5204a90dde0fe051)
|
|
15
|
+
- [meta] fix FUNDING.yml [`9ae9d43`](https://github.com/TimothyGu/generator-function/commit/9ae9d432a0c06d698e1aeb20b1161ca8a08b3cbb)
|
|
16
|
+
|
|
17
|
+
## v1.0.0 - 2015-10-10
|
|
18
|
+
|
|
19
|
+
### Commits
|
|
20
|
+
|
|
21
|
+
- Initial commit [`176e0cd`](https://github.com/TimothyGu/generator-function/commit/176e0cd3a5ebb004aa666c6eecbe5a968efbddf9)
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
Copyright (c) 2015 Tiancheng “Timothy” Gu
|
|
2
|
+
|
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
4
|
+
|
|
5
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
6
|
+
|
|
7
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
# generator-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 `GeneratorFunction` constructor, when available.
|
|
11
|
+
|
|
12
|
+
## Getting started
|
|
13
|
+
|
|
14
|
+
```sh
|
|
15
|
+
npm install --save generator-function
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## Usage/Examples
|
|
19
|
+
|
|
20
|
+
```js
|
|
21
|
+
const assert = require('assert');
|
|
22
|
+
const GeneratorFunction = require('generator-function')();
|
|
23
|
+
|
|
24
|
+
const fn = new GeneratorFunction('return 1');
|
|
25
|
+
|
|
26
|
+
assert.equal(fn.toString(), 'function* anonymous(\n) {\nreturn 1\n}');
|
|
27
|
+
|
|
28
|
+
const iterator = fn();
|
|
29
|
+
|
|
30
|
+
assert.deepEqual(iterator.next(), { done: true, value: 1 });
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
## Tests
|
|
34
|
+
|
|
35
|
+
Clone the repo, `npm install`, and run `npm test`
|
|
36
|
+
|
|
37
|
+
[package-url]: https://npmjs.org/package/generator-function
|
|
38
|
+
[npm-version-svg]: https://versionbadg.es/ljharb/generator-function.svg
|
|
39
|
+
[deps-svg]: https://david-dm.org/ljharb/generator-function.svg
|
|
40
|
+
[deps-url]: https://david-dm.org/ljharb/generator-function
|
|
41
|
+
[dev-deps-svg]: https://david-dm.org/ljharb/generator-function/dev-status.svg
|
|
42
|
+
[dev-deps-url]: https://david-dm.org/ljharb/generator-function#info=devDependencies
|
|
43
|
+
[npm-badge-png]: https://nodei.co/npm/generator-function.png?downloads=true&stars=true
|
|
44
|
+
[license-image]: https://img.shields.io/npm/l/generator-function.svg
|
|
45
|
+
[license-url]: LICENSE
|
|
46
|
+
[downloads-image]: https://img.shields.io/npm/dm/generator-function.svg
|
|
47
|
+
[downloads-url]: https://npm-stat.com/charts.html?package=generator-function
|
|
48
|
+
[codecov-image]: https://codecov.io/gh/ljharb/generator-function/branch/main/graphs/badge.svg
|
|
49
|
+
[codecov-url]: https://app.codecov.io/gh/ljharb/generator-function/
|
|
50
|
+
[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/ljharb/generator-function
|
|
51
|
+
[actions-url]: https://github.com/ljharb/generator-function/actions
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
/** @type {GeneratorFunctionConstructor | false} */
|
|
4
|
+
var cached;
|
|
5
|
+
|
|
6
|
+
/** @type {import('./index.js')} */
|
|
7
|
+
module.exports = function getGeneratorFunction() {
|
|
8
|
+
if (typeof cached === 'undefined') {
|
|
9
|
+
try {
|
|
10
|
+
// eslint-disable-next-line no-new-func
|
|
11
|
+
cached = Function('return function* () {}')().constructor;
|
|
12
|
+
} catch (e) {
|
|
13
|
+
cached = false;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
return cached;
|
|
17
|
+
};
|
|
18
|
+
|
|
@@ -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,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
|
+
});
|
|
@@ -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%':
|
|
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 =
|
|
161
|
+
value = getAsyncFunction() || void undefined;
|
|
167
162
|
} else if (name === '%GeneratorFunction%') {
|
|
168
|
-
value =
|
|
163
|
+
value = getGeneratorFunction() || void undefined;
|
|
169
164
|
} else if (name === '%AsyncGeneratorFunction%') {
|
|
170
|
-
value =
|
|
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.
|
|
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.
|
|
62
|
+
"@ljharb/eslint-config": "^21.2.0",
|
|
60
63
|
"auto-changelog": "^2.5.0",
|
|
61
|
-
"call-bound": "^1.0.
|
|
64
|
+
"call-bound": "^1.0.4",
|
|
62
65
|
"encoding": "^0.1.13",
|
|
63
|
-
"es-abstract": "^1.
|
|
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
|
@@ -55,9 +55,9 @@
|
|
|
55
55
|
"jest": "^29.7.0",
|
|
56
56
|
"jest-junit": "^16",
|
|
57
57
|
"jsii": "~5.8.0",
|
|
58
|
-
"jsii-diff": "^1.
|
|
58
|
+
"jsii-diff": "^1.115.0",
|
|
59
59
|
"jsii-docgen": "^10.5.0",
|
|
60
|
-
"jsii-pacmak": "^1.
|
|
60
|
+
"jsii-pacmak": "^1.115.0",
|
|
61
61
|
"jsii-rosetta": "~5.8.0",
|
|
62
62
|
"projen": "^0.96.3",
|
|
63
63
|
"ts-jest": "^29.4.4",
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
"constructs": "^10.0.5"
|
|
70
70
|
},
|
|
71
71
|
"dependencies": {
|
|
72
|
-
"@aws-sdk/client-iam": "^3.
|
|
72
|
+
"@aws-sdk/client-iam": "^3.899.0",
|
|
73
73
|
"axios": "^1.8.2",
|
|
74
74
|
"constructs": "^10.4.2",
|
|
75
75
|
"jsonc-parser": "^3.3.1"
|
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
"publishConfig": {
|
|
102
102
|
"access": "public"
|
|
103
103
|
},
|
|
104
|
-
"version": "0.0.
|
|
104
|
+
"version": "0.0.43",
|
|
105
105
|
"jest": {
|
|
106
106
|
"coverageProvider": "v8",
|
|
107
107
|
"testMatch": [
|