cdk-common 2.0.492 → 2.0.494
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 +8 -2
- package/API.md +5 -0
- package/lib/main.js +1 -1
- package/lib/managed-policies.d.ts +1 -0
- package/lib/managed-policies.js +2 -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/child_process.d.ts +27 -0
- package/node_modules/@types/concat-stream/node_modules/@types/node/package.json +2 -2
- package/node_modules/@types/concat-stream/node_modules/@types/node/ts4.8/child_process.d.ts +27 -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/child_process.d.ts +27 -0
- package/node_modules/@types/form-data/node_modules/@types/node/package.json +2 -2
- package/node_modules/@types/form-data/node_modules/@types/node/ts4.8/child_process.d.ts +27 -0
- package/node_modules/get-intrinsic/CHANGELOG.md +7 -0
- package/node_modules/get-intrinsic/index.js +21 -14
- package/node_modules/get-intrinsic/package.json +3 -2
- package/node_modules/has-proto/.eslintrc +5 -0
- package/node_modules/has-proto/.github/FUNDING.yml +12 -0
- package/node_modules/has-proto/CHANGELOG.md +23 -0
- package/node_modules/has-proto/LICENSE +21 -0
- package/node_modules/has-proto/README.md +38 -0
- package/node_modules/has-proto/index.js +11 -0
- package/node_modules/has-proto/package.json +74 -0
- package/node_modules/has-proto/test/index.js +19 -0
- package/package.json +2 -2
|
@@ -8,7 +8,7 @@ This package contains type definitions for Node.js (https://nodejs.org/).
|
|
|
8
8
|
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated:
|
|
11
|
+
* Last updated: Sat, 13 May 2023 14:32:53 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
* Global values: `AbortController`, `AbortSignal`, `__dirname`, `__filename`, `console`, `exports`, `gc`, `global`, `module`, `process`, `require`, `structuredClone`
|
|
14
14
|
|
|
@@ -630,6 +630,15 @@ declare module 'child_process' {
|
|
|
630
630
|
}
|
|
631
631
|
interface CommonSpawnOptions extends CommonOptions, MessagingOptions, Abortable {
|
|
632
632
|
argv0?: string | undefined;
|
|
633
|
+
/**
|
|
634
|
+
* Can be set to 'pipe', 'inherit', 'overlapped', or 'ignore', or an array of these strings.
|
|
635
|
+
* If passed as an array, the first element is used for `stdin`, the second for
|
|
636
|
+
* `stdout`, and the third for `stderr`. A fourth element can be used to
|
|
637
|
+
* specify the `stdio` behavior beyond the standard streams. See
|
|
638
|
+
* {@link ChildProcess.stdio} for more information.
|
|
639
|
+
*
|
|
640
|
+
* @default 'pipe'
|
|
641
|
+
*/
|
|
633
642
|
stdio?: StdioOptions | undefined;
|
|
634
643
|
shell?: boolean | string | undefined;
|
|
635
644
|
windowsVerbatimArguments?: boolean | undefined;
|
|
@@ -1191,6 +1200,15 @@ declare module 'child_process' {
|
|
|
1191
1200
|
execPath?: string | undefined;
|
|
1192
1201
|
execArgv?: string[] | undefined;
|
|
1193
1202
|
silent?: boolean | undefined;
|
|
1203
|
+
/**
|
|
1204
|
+
* Can be set to 'pipe', 'inherit', 'overlapped', or 'ignore', or an array of these strings.
|
|
1205
|
+
* If passed as an array, the first element is used for `stdin`, the second for
|
|
1206
|
+
* `stdout`, and the third for `stderr`. A fourth element can be used to
|
|
1207
|
+
* specify the `stdio` behavior beyond the standard streams. See
|
|
1208
|
+
* {@link ChildProcess.stdio} for more information.
|
|
1209
|
+
*
|
|
1210
|
+
* @default 'pipe'
|
|
1211
|
+
*/
|
|
1194
1212
|
stdio?: StdioOptions | undefined;
|
|
1195
1213
|
detached?: boolean | undefined;
|
|
1196
1214
|
windowsVerbatimArguments?: boolean | undefined;
|
|
@@ -1291,6 +1309,15 @@ declare module 'child_process' {
|
|
|
1291
1309
|
function spawnSync(command: string, args?: ReadonlyArray<string>, options?: SpawnSyncOptions): SpawnSyncReturns<string | Buffer>;
|
|
1292
1310
|
interface CommonExecOptions extends CommonOptions {
|
|
1293
1311
|
input?: string | NodeJS.ArrayBufferView | undefined;
|
|
1312
|
+
/**
|
|
1313
|
+
* Can be set to 'pipe', 'inherit, or 'ignore', or an array of these strings.
|
|
1314
|
+
* If passed as an array, the first element is used for `stdin`, the second for
|
|
1315
|
+
* `stdout`, and the third for `stderr`. A fourth element can be used to
|
|
1316
|
+
* specify the `stdio` behavior beyond the standard streams. See
|
|
1317
|
+
* {@link ChildProcess.stdio} for more information.
|
|
1318
|
+
*
|
|
1319
|
+
* @default 'pipe'
|
|
1320
|
+
*/
|
|
1294
1321
|
stdio?: StdioOptions | undefined;
|
|
1295
1322
|
killSignal?: NodeJS.Signals | number | undefined;
|
|
1296
1323
|
maxBuffer?: number | undefined;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "20.1.
|
|
3
|
+
"version": "20.1.4",
|
|
4
4
|
"description": "TypeScript definitions for Node.js",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
|
|
6
6
|
"license": "MIT",
|
|
@@ -232,6 +232,6 @@
|
|
|
232
232
|
},
|
|
233
233
|
"scripts": {},
|
|
234
234
|
"dependencies": {},
|
|
235
|
-
"typesPublisherContentHash": "
|
|
235
|
+
"typesPublisherContentHash": "4c53e638a8442f87b3d0008668c4efbadebc5aeb21308aa0b92fe3cbb4dee791",
|
|
236
236
|
"typeScriptVersion": "4.3"
|
|
237
237
|
}
|
|
@@ -630,6 +630,15 @@ declare module 'child_process' {
|
|
|
630
630
|
}
|
|
631
631
|
interface CommonSpawnOptions extends CommonOptions, MessagingOptions, Abortable {
|
|
632
632
|
argv0?: string | undefined;
|
|
633
|
+
/**
|
|
634
|
+
* Can be set to 'pipe', 'inherit', 'overlapped', or 'ignore', or an array of these strings.
|
|
635
|
+
* If passed as an array, the first element is used for `stdin`, the second for
|
|
636
|
+
* `stdout`, and the third for `stderr`. A fourth element can be used to
|
|
637
|
+
* specify the `stdio` behavior beyond the standard streams. See
|
|
638
|
+
* {@link ChildProcess.stdio} for more information.
|
|
639
|
+
*
|
|
640
|
+
* @default 'pipe'
|
|
641
|
+
*/
|
|
633
642
|
stdio?: StdioOptions | undefined;
|
|
634
643
|
shell?: boolean | string | undefined;
|
|
635
644
|
windowsVerbatimArguments?: boolean | undefined;
|
|
@@ -1191,6 +1200,15 @@ declare module 'child_process' {
|
|
|
1191
1200
|
execPath?: string | undefined;
|
|
1192
1201
|
execArgv?: string[] | undefined;
|
|
1193
1202
|
silent?: boolean | undefined;
|
|
1203
|
+
/**
|
|
1204
|
+
* Can be set to 'pipe', 'inherit', 'overlapped', or 'ignore', or an array of these strings.
|
|
1205
|
+
* If passed as an array, the first element is used for `stdin`, the second for
|
|
1206
|
+
* `stdout`, and the third for `stderr`. A fourth element can be used to
|
|
1207
|
+
* specify the `stdio` behavior beyond the standard streams. See
|
|
1208
|
+
* {@link ChildProcess.stdio} for more information.
|
|
1209
|
+
*
|
|
1210
|
+
* @default 'pipe'
|
|
1211
|
+
*/
|
|
1194
1212
|
stdio?: StdioOptions | undefined;
|
|
1195
1213
|
detached?: boolean | undefined;
|
|
1196
1214
|
windowsVerbatimArguments?: boolean | undefined;
|
|
@@ -1291,6 +1309,15 @@ declare module 'child_process' {
|
|
|
1291
1309
|
function spawnSync(command: string, args?: ReadonlyArray<string>, options?: SpawnSyncOptions): SpawnSyncReturns<string | Buffer>;
|
|
1292
1310
|
interface CommonExecOptions extends CommonOptions {
|
|
1293
1311
|
input?: string | NodeJS.ArrayBufferView | undefined;
|
|
1312
|
+
/**
|
|
1313
|
+
* Can be set to 'pipe', 'inherit', 'overlapped', or 'ignore', or an array of these strings.
|
|
1314
|
+
* If passed as an array, the first element is used for `stdin`, the second for
|
|
1315
|
+
* `stdout`, and the third for `stderr`. A fourth element can be used to
|
|
1316
|
+
* specify the `stdio` behavior beyond the standard streams. See
|
|
1317
|
+
* {@link ChildProcess.stdio} for more information.
|
|
1318
|
+
*
|
|
1319
|
+
* @default 'pipe'
|
|
1320
|
+
*/
|
|
1294
1321
|
stdio?: StdioOptions | undefined;
|
|
1295
1322
|
killSignal?: NodeJS.Signals | number | undefined;
|
|
1296
1323
|
maxBuffer?: number | undefined;
|
|
@@ -8,7 +8,7 @@ This package contains type definitions for Node.js (https://nodejs.org/).
|
|
|
8
8
|
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated:
|
|
11
|
+
* Last updated: Sat, 13 May 2023 14:32:53 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
* Global values: `AbortController`, `AbortSignal`, `__dirname`, `__filename`, `console`, `exports`, `gc`, `global`, `module`, `process`, `require`, `structuredClone`
|
|
14
14
|
|
|
@@ -630,6 +630,15 @@ declare module 'child_process' {
|
|
|
630
630
|
}
|
|
631
631
|
interface CommonSpawnOptions extends CommonOptions, MessagingOptions, Abortable {
|
|
632
632
|
argv0?: string | undefined;
|
|
633
|
+
/**
|
|
634
|
+
* Can be set to 'pipe', 'inherit', 'overlapped', or 'ignore', or an array of these strings.
|
|
635
|
+
* If passed as an array, the first element is used for `stdin`, the second for
|
|
636
|
+
* `stdout`, and the third for `stderr`. A fourth element can be used to
|
|
637
|
+
* specify the `stdio` behavior beyond the standard streams. See
|
|
638
|
+
* {@link ChildProcess.stdio} for more information.
|
|
639
|
+
*
|
|
640
|
+
* @default 'pipe'
|
|
641
|
+
*/
|
|
633
642
|
stdio?: StdioOptions | undefined;
|
|
634
643
|
shell?: boolean | string | undefined;
|
|
635
644
|
windowsVerbatimArguments?: boolean | undefined;
|
|
@@ -1191,6 +1200,15 @@ declare module 'child_process' {
|
|
|
1191
1200
|
execPath?: string | undefined;
|
|
1192
1201
|
execArgv?: string[] | undefined;
|
|
1193
1202
|
silent?: boolean | undefined;
|
|
1203
|
+
/**
|
|
1204
|
+
* Can be set to 'pipe', 'inherit', 'overlapped', or 'ignore', or an array of these strings.
|
|
1205
|
+
* If passed as an array, the first element is used for `stdin`, the second for
|
|
1206
|
+
* `stdout`, and the third for `stderr`. A fourth element can be used to
|
|
1207
|
+
* specify the `stdio` behavior beyond the standard streams. See
|
|
1208
|
+
* {@link ChildProcess.stdio} for more information.
|
|
1209
|
+
*
|
|
1210
|
+
* @default 'pipe'
|
|
1211
|
+
*/
|
|
1194
1212
|
stdio?: StdioOptions | undefined;
|
|
1195
1213
|
detached?: boolean | undefined;
|
|
1196
1214
|
windowsVerbatimArguments?: boolean | undefined;
|
|
@@ -1291,6 +1309,15 @@ declare module 'child_process' {
|
|
|
1291
1309
|
function spawnSync(command: string, args?: ReadonlyArray<string>, options?: SpawnSyncOptions): SpawnSyncReturns<string | Buffer>;
|
|
1292
1310
|
interface CommonExecOptions extends CommonOptions {
|
|
1293
1311
|
input?: string | NodeJS.ArrayBufferView | undefined;
|
|
1312
|
+
/**
|
|
1313
|
+
* Can be set to 'pipe', 'inherit, or 'ignore', or an array of these strings.
|
|
1314
|
+
* If passed as an array, the first element is used for `stdin`, the second for
|
|
1315
|
+
* `stdout`, and the third for `stderr`. A fourth element can be used to
|
|
1316
|
+
* specify the `stdio` behavior beyond the standard streams. See
|
|
1317
|
+
* {@link ChildProcess.stdio} for more information.
|
|
1318
|
+
*
|
|
1319
|
+
* @default 'pipe'
|
|
1320
|
+
*/
|
|
1294
1321
|
stdio?: StdioOptions | undefined;
|
|
1295
1322
|
killSignal?: NodeJS.Signals | number | undefined;
|
|
1296
1323
|
maxBuffer?: number | undefined;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "20.1.
|
|
3
|
+
"version": "20.1.4",
|
|
4
4
|
"description": "TypeScript definitions for Node.js",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
|
|
6
6
|
"license": "MIT",
|
|
@@ -232,6 +232,6 @@
|
|
|
232
232
|
},
|
|
233
233
|
"scripts": {},
|
|
234
234
|
"dependencies": {},
|
|
235
|
-
"typesPublisherContentHash": "
|
|
235
|
+
"typesPublisherContentHash": "4c53e638a8442f87b3d0008668c4efbadebc5aeb21308aa0b92fe3cbb4dee791",
|
|
236
236
|
"typeScriptVersion": "4.3"
|
|
237
237
|
}
|
|
@@ -630,6 +630,15 @@ declare module 'child_process' {
|
|
|
630
630
|
}
|
|
631
631
|
interface CommonSpawnOptions extends CommonOptions, MessagingOptions, Abortable {
|
|
632
632
|
argv0?: string | undefined;
|
|
633
|
+
/**
|
|
634
|
+
* Can be set to 'pipe', 'inherit', 'overlapped', or 'ignore', or an array of these strings.
|
|
635
|
+
* If passed as an array, the first element is used for `stdin`, the second for
|
|
636
|
+
* `stdout`, and the third for `stderr`. A fourth element can be used to
|
|
637
|
+
* specify the `stdio` behavior beyond the standard streams. See
|
|
638
|
+
* {@link ChildProcess.stdio} for more information.
|
|
639
|
+
*
|
|
640
|
+
* @default 'pipe'
|
|
641
|
+
*/
|
|
633
642
|
stdio?: StdioOptions | undefined;
|
|
634
643
|
shell?: boolean | string | undefined;
|
|
635
644
|
windowsVerbatimArguments?: boolean | undefined;
|
|
@@ -1191,6 +1200,15 @@ declare module 'child_process' {
|
|
|
1191
1200
|
execPath?: string | undefined;
|
|
1192
1201
|
execArgv?: string[] | undefined;
|
|
1193
1202
|
silent?: boolean | undefined;
|
|
1203
|
+
/**
|
|
1204
|
+
* Can be set to 'pipe', 'inherit', 'overlapped', or 'ignore', or an array of these strings.
|
|
1205
|
+
* If passed as an array, the first element is used for `stdin`, the second for
|
|
1206
|
+
* `stdout`, and the third for `stderr`. A fourth element can be used to
|
|
1207
|
+
* specify the `stdio` behavior beyond the standard streams. See
|
|
1208
|
+
* {@link ChildProcess.stdio} for more information.
|
|
1209
|
+
*
|
|
1210
|
+
* @default 'pipe'
|
|
1211
|
+
*/
|
|
1194
1212
|
stdio?: StdioOptions | undefined;
|
|
1195
1213
|
detached?: boolean | undefined;
|
|
1196
1214
|
windowsVerbatimArguments?: boolean | undefined;
|
|
@@ -1291,6 +1309,15 @@ declare module 'child_process' {
|
|
|
1291
1309
|
function spawnSync(command: string, args?: ReadonlyArray<string>, options?: SpawnSyncOptions): SpawnSyncReturns<string | Buffer>;
|
|
1292
1310
|
interface CommonExecOptions extends CommonOptions {
|
|
1293
1311
|
input?: string | NodeJS.ArrayBufferView | undefined;
|
|
1312
|
+
/**
|
|
1313
|
+
* Can be set to 'pipe', 'inherit', 'overlapped', or 'ignore', or an array of these strings.
|
|
1314
|
+
* If passed as an array, the first element is used for `stdin`, the second for
|
|
1315
|
+
* `stdout`, and the third for `stderr`. A fourth element can be used to
|
|
1316
|
+
* specify the `stdio` behavior beyond the standard streams. See
|
|
1317
|
+
* {@link ChildProcess.stdio} for more information.
|
|
1318
|
+
*
|
|
1319
|
+
* @default 'pipe'
|
|
1320
|
+
*/
|
|
1294
1321
|
stdio?: StdioOptions | undefined;
|
|
1295
1322
|
killSignal?: NodeJS.Signals | number | undefined;
|
|
1296
1323
|
maxBuffer?: number | undefined;
|
|
@@ -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.2.1](https://github.com/ljharb/get-intrinsic/compare/v1.2.0...v1.2.1) - 2023-05-13
|
|
9
|
+
|
|
10
|
+
### Commits
|
|
11
|
+
|
|
12
|
+
- [Fix] avoid a crash in envs without `__proto__` [`7bad8d0`](https://github.com/ljharb/get-intrinsic/commit/7bad8d061bf8721733b58b73a2565af2b6756b64)
|
|
13
|
+
- [Dev Deps] update `es-abstract` [`c60e6b7`](https://github.com/ljharb/get-intrinsic/commit/c60e6b7b4cf9660c7f27ed970970fd55fac48dc5)
|
|
14
|
+
|
|
8
15
|
## [v1.2.0](https://github.com/ljharb/get-intrinsic/compare/v1.1.3...v1.2.0) - 2023-01-19
|
|
9
16
|
|
|
10
17
|
### Commits
|
|
@@ -43,18 +43,23 @@ var ThrowTypeError = $gOPD
|
|
|
43
43
|
: throwTypeError;
|
|
44
44
|
|
|
45
45
|
var hasSymbols = require('has-symbols')();
|
|
46
|
+
var hasProto = require('has-proto')();
|
|
46
47
|
|
|
47
|
-
var getProto = Object.getPrototypeOf ||
|
|
48
|
+
var getProto = Object.getPrototypeOf || (
|
|
49
|
+
hasProto
|
|
50
|
+
? function (x) { return x.__proto__; } // eslint-disable-line no-proto
|
|
51
|
+
: null
|
|
52
|
+
);
|
|
48
53
|
|
|
49
54
|
var needsEval = {};
|
|
50
55
|
|
|
51
|
-
var TypedArray = typeof Uint8Array === 'undefined' ? undefined : getProto(Uint8Array);
|
|
56
|
+
var TypedArray = typeof Uint8Array === 'undefined' || !getProto ? undefined : getProto(Uint8Array);
|
|
52
57
|
|
|
53
58
|
var INTRINSICS = {
|
|
54
59
|
'%AggregateError%': typeof AggregateError === 'undefined' ? undefined : AggregateError,
|
|
55
60
|
'%Array%': Array,
|
|
56
61
|
'%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined : ArrayBuffer,
|
|
57
|
-
'%ArrayIteratorPrototype%': hasSymbols ? getProto([][Symbol.iterator]()) : undefined,
|
|
62
|
+
'%ArrayIteratorPrototype%': hasSymbols && getProto ? getProto([][Symbol.iterator]()) : undefined,
|
|
58
63
|
'%AsyncFromSyncIteratorPrototype%': undefined,
|
|
59
64
|
'%AsyncFunction%': needsEval,
|
|
60
65
|
'%AsyncGenerator%': needsEval,
|
|
@@ -84,10 +89,10 @@ var INTRINSICS = {
|
|
|
84
89
|
'%Int32Array%': typeof Int32Array === 'undefined' ? undefined : Int32Array,
|
|
85
90
|
'%isFinite%': isFinite,
|
|
86
91
|
'%isNaN%': isNaN,
|
|
87
|
-
'%IteratorPrototype%': hasSymbols ? getProto(getProto([][Symbol.iterator]())) : undefined,
|
|
92
|
+
'%IteratorPrototype%': hasSymbols && getProto ? getProto(getProto([][Symbol.iterator]())) : undefined,
|
|
88
93
|
'%JSON%': typeof JSON === 'object' ? JSON : undefined,
|
|
89
94
|
'%Map%': typeof Map === 'undefined' ? undefined : Map,
|
|
90
|
-
'%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols ? undefined : getProto(new Map()[Symbol.iterator]()),
|
|
95
|
+
'%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols || !getProto ? undefined : getProto(new Map()[Symbol.iterator]()),
|
|
91
96
|
'%Math%': Math,
|
|
92
97
|
'%Number%': Number,
|
|
93
98
|
'%Object%': Object,
|
|
@@ -100,10 +105,10 @@ var INTRINSICS = {
|
|
|
100
105
|
'%Reflect%': typeof Reflect === 'undefined' ? undefined : Reflect,
|
|
101
106
|
'%RegExp%': RegExp,
|
|
102
107
|
'%Set%': typeof Set === 'undefined' ? undefined : Set,
|
|
103
|
-
'%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols ? undefined : getProto(new Set()[Symbol.iterator]()),
|
|
108
|
+
'%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols || !getProto ? undefined : getProto(new Set()[Symbol.iterator]()),
|
|
104
109
|
'%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined : SharedArrayBuffer,
|
|
105
110
|
'%String%': String,
|
|
106
|
-
'%StringIteratorPrototype%': hasSymbols ? getProto(''[Symbol.iterator]()) : undefined,
|
|
111
|
+
'%StringIteratorPrototype%': hasSymbols && getProto ? getProto(''[Symbol.iterator]()) : undefined,
|
|
107
112
|
'%Symbol%': hasSymbols ? Symbol : undefined,
|
|
108
113
|
'%SyntaxError%': $SyntaxError,
|
|
109
114
|
'%ThrowTypeError%': ThrowTypeError,
|
|
@@ -119,12 +124,14 @@ var INTRINSICS = {
|
|
|
119
124
|
'%WeakSet%': typeof WeakSet === 'undefined' ? undefined : WeakSet
|
|
120
125
|
};
|
|
121
126
|
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
127
|
+
if (getProto) {
|
|
128
|
+
try {
|
|
129
|
+
null.error; // eslint-disable-line no-unused-expressions
|
|
130
|
+
} catch (e) {
|
|
131
|
+
// https://github.com/tc39/proposal-shadowrealm/pull/384#issuecomment-1364264229
|
|
132
|
+
var errorProto = getProto(getProto(e));
|
|
133
|
+
INTRINSICS['%Error.prototype%'] = errorProto;
|
|
134
|
+
}
|
|
128
135
|
}
|
|
129
136
|
|
|
130
137
|
var doEval = function doEval(name) {
|
|
@@ -142,7 +149,7 @@ var doEval = function doEval(name) {
|
|
|
142
149
|
}
|
|
143
150
|
} else if (name === '%AsyncIteratorPrototype%') {
|
|
144
151
|
var gen = doEval('%AsyncGenerator%');
|
|
145
|
-
if (gen) {
|
|
152
|
+
if (gen && getProto) {
|
|
146
153
|
value = getProto(gen.prototype);
|
|
147
154
|
}
|
|
148
155
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "get-intrinsic",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.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": {
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"aud": "^2.0.2",
|
|
53
53
|
"auto-changelog": "^2.4.0",
|
|
54
54
|
"call-bind": "^1.0.2",
|
|
55
|
-
"es-abstract": "^1.21.
|
|
55
|
+
"es-abstract": "^1.21.2",
|
|
56
56
|
"es-value-fixtures": "^1.4.2",
|
|
57
57
|
"eslint": "=8.8.0",
|
|
58
58
|
"evalmd": "^0.0.19",
|
|
@@ -79,6 +79,7 @@
|
|
|
79
79
|
"dependencies": {
|
|
80
80
|
"function-bind": "^1.1.1",
|
|
81
81
|
"has": "^1.0.3",
|
|
82
|
+
"has-proto": "^1.0.1",
|
|
82
83
|
"has-symbols": "^1.0.3"
|
|
83
84
|
},
|
|
84
85
|
"testling": {
|
|
@@ -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/has-proto
|
|
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,23 @@
|
|
|
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.1](https://github.com/inspect-js/has-proto/compare/v1.0.0...v1.0.1) - 2022-12-21
|
|
9
|
+
|
|
10
|
+
### Commits
|
|
11
|
+
|
|
12
|
+
- [meta] correct URLs and description [`ef34483`](https://github.com/inspect-js/has-proto/commit/ef34483ca0d35680f271b6b96e35526151b25dfc)
|
|
13
|
+
- [patch] add an additional criteria [`e81959e`](https://github.com/inspect-js/has-proto/commit/e81959ed7c7a77fbf459f00cb4ef824f1099497f)
|
|
14
|
+
- [Dev Deps] update `aud` [`2bec2c4`](https://github.com/inspect-js/has-proto/commit/2bec2c47b072b122ff5443fba0263f6dc649531f)
|
|
15
|
+
|
|
16
|
+
## v1.0.0 - 2022-12-12
|
|
17
|
+
|
|
18
|
+
### Commits
|
|
19
|
+
|
|
20
|
+
- Initial implementation, tests, readme [`6886fea`](https://github.com/inspect-js/has-proto/commit/6886fea578f67daf69a7920b2eb7637ea6ebb0bc)
|
|
21
|
+
- Initial commit [`99129c8`](https://github.com/inspect-js/has-proto/commit/99129c8f42471ac89cb681ba9cb9d52a583eb94f)
|
|
22
|
+
- npm init [`2844ad8`](https://github.com/inspect-js/has-proto/commit/2844ad8e75b84d66a46765b3bab9d2e8ea692e10)
|
|
23
|
+
- Only apps should have lockfiles [`c65bc5e`](https://github.com/inspect-js/has-proto/commit/c65bc5e40b9004463f7336d47c67245fb139a36a)
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2022 Inspect JS
|
|
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.
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# has-proto <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
|
+
Does this environment have the ability to set the [[Prototype]] of an object on creation with `__proto__`?
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```js
|
|
15
|
+
var hasProto = require('has-proto');
|
|
16
|
+
var assert = require('assert');
|
|
17
|
+
|
|
18
|
+
assert.equal(typeof hasProto(), 'boolean');
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
## Tests
|
|
22
|
+
Simply clone the repo, `npm install`, and run `npm test`
|
|
23
|
+
|
|
24
|
+
[package-url]: https://npmjs.org/package/has-proto
|
|
25
|
+
[npm-version-svg]: https://versionbadg.es/inspect-js/has-proto.svg
|
|
26
|
+
[deps-svg]: https://david-dm.org/inspect-js/has-proto.svg
|
|
27
|
+
[deps-url]: https://david-dm.org/inspect-js/has-proto
|
|
28
|
+
[dev-deps-svg]: https://david-dm.org/inspect-js/has-proto/dev-status.svg
|
|
29
|
+
[dev-deps-url]: https://david-dm.org/inspect-js/has-proto#info=devDependencies
|
|
30
|
+
[npm-badge-png]: https://nodei.co/npm/has-proto.png?downloads=true&stars=true
|
|
31
|
+
[license-image]: https://img.shields.io/npm/l/has-proto.svg
|
|
32
|
+
[license-url]: LICENSE
|
|
33
|
+
[downloads-image]: https://img.shields.io/npm/dm/has-proto.svg
|
|
34
|
+
[downloads-url]: https://npm-stat.com/charts.html?package=has-proto
|
|
35
|
+
[codecov-image]: https://codecov.io/gh/inspect-js/has-proto/branch/main/graphs/badge.svg
|
|
36
|
+
[codecov-url]: https://app.codecov.io/gh/inspect-js/has-proto/
|
|
37
|
+
[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/inspect-js/has-proto
|
|
38
|
+
[actions-url]: https://github.com/inspect-js/has-proto/actions
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "has-proto",
|
|
3
|
+
"version": "1.0.1",
|
|
4
|
+
"description": "Does this environment have the ability to get the [[Prototype]] of an object on creation with `__proto__`?",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"exports": {
|
|
7
|
+
".": "./index.js",
|
|
8
|
+
"./package.json": "./package.json"
|
|
9
|
+
},
|
|
10
|
+
"scripts": {
|
|
11
|
+
"prepack": "npmignore --auto --commentLines=autogenerated",
|
|
12
|
+
"prepublishOnly": "safe-publish-latest",
|
|
13
|
+
"prepublish": "not-in-publish || npm run prepublishOnly",
|
|
14
|
+
"lint": "eslint --ext=js,mjs .",
|
|
15
|
+
"pretest": "npm run lint",
|
|
16
|
+
"tests-only": "tape 'test/**/*.js'",
|
|
17
|
+
"test": "npm run tests-only",
|
|
18
|
+
"posttest": "aud --production",
|
|
19
|
+
"version": "auto-changelog && git add CHANGELOG.md",
|
|
20
|
+
"postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\""
|
|
21
|
+
},
|
|
22
|
+
"repository": {
|
|
23
|
+
"type": "git",
|
|
24
|
+
"url": "git+https://github.com/inspect-js/has-proto.git"
|
|
25
|
+
},
|
|
26
|
+
"keywords": [
|
|
27
|
+
"prototype",
|
|
28
|
+
"proto",
|
|
29
|
+
"set",
|
|
30
|
+
"get",
|
|
31
|
+
"__proto__",
|
|
32
|
+
"getPrototypeOf",
|
|
33
|
+
"setPrototypeOf",
|
|
34
|
+
"has"
|
|
35
|
+
],
|
|
36
|
+
"author": "Jordan Harband <ljharb@gmail.com>",
|
|
37
|
+
"funding": {
|
|
38
|
+
"url": "https://github.com/sponsors/ljharb"
|
|
39
|
+
},
|
|
40
|
+
"license": "MIT",
|
|
41
|
+
"bugs": {
|
|
42
|
+
"url": "https://github.com/inspect-js/has-proto/issues"
|
|
43
|
+
},
|
|
44
|
+
"homepage": "https://github.com/inspect-js/has-proto#readme",
|
|
45
|
+
"testling": {
|
|
46
|
+
"files": "test/index.js"
|
|
47
|
+
},
|
|
48
|
+
"devDependencies": {
|
|
49
|
+
"@ljharb/eslint-config": "^21.0.0",
|
|
50
|
+
"aud": "^2.0.2",
|
|
51
|
+
"auto-changelog": "^2.4.0",
|
|
52
|
+
"eslint": "=8.8.0",
|
|
53
|
+
"in-publish": "^2.0.1",
|
|
54
|
+
"npmignore": "^0.3.0",
|
|
55
|
+
"safe-publish-latest": "^2.0.0",
|
|
56
|
+
"tape": "^5.6.1"
|
|
57
|
+
},
|
|
58
|
+
"engines": {
|
|
59
|
+
"node": ">= 0.4"
|
|
60
|
+
},
|
|
61
|
+
"auto-changelog": {
|
|
62
|
+
"output": "CHANGELOG.md",
|
|
63
|
+
"template": "keepachangelog",
|
|
64
|
+
"unreleased": false,
|
|
65
|
+
"commitLimit": false,
|
|
66
|
+
"backfillLimit": false,
|
|
67
|
+
"hideCredit": true
|
|
68
|
+
},
|
|
69
|
+
"publishConfig": {
|
|
70
|
+
"ignore": [
|
|
71
|
+
".github/workflows"
|
|
72
|
+
]
|
|
73
|
+
}
|
|
74
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var test = require('tape');
|
|
4
|
+
var hasProto = require('../');
|
|
5
|
+
|
|
6
|
+
test('hasProto', function (t) {
|
|
7
|
+
var result = hasProto();
|
|
8
|
+
t.equal(typeof result, 'boolean', 'returns a boolean (' + result + ')');
|
|
9
|
+
|
|
10
|
+
var obj = { __proto__: null };
|
|
11
|
+
if (result) {
|
|
12
|
+
t.notOk('toString' in obj, 'null object lacks toString');
|
|
13
|
+
} else {
|
|
14
|
+
t.ok('toString' in obj, 'without proto, null object has toString');
|
|
15
|
+
t.equal(obj.__proto__, null); // eslint-disable-line no-proto
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
t.end();
|
|
19
|
+
});
|
package/package.json
CHANGED
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"jsii-docgen": "^3.8.31",
|
|
55
55
|
"jsii-pacmak": "^1.81.0",
|
|
56
56
|
"npm-check-updates": "^16",
|
|
57
|
-
"projen": "0.71.
|
|
57
|
+
"projen": "0.71.55",
|
|
58
58
|
"standard-version": "^9",
|
|
59
59
|
"ts-jest": "^27",
|
|
60
60
|
"typescript": "^4.9"
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
],
|
|
87
87
|
"main": "lib/index.js",
|
|
88
88
|
"license": "Apache-2.0",
|
|
89
|
-
"version": "2.0.
|
|
89
|
+
"version": "2.0.494",
|
|
90
90
|
"jest": {
|
|
91
91
|
"testMatch": [
|
|
92
92
|
"<rootDir>/src/**/__tests__/**/*.ts?(x)",
|