cdk-common 2.0.1062 → 2.0.1064
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.jsii +2 -2
- package/lib/main.js +1 -1
- package/node_modules/@types/concat-stream/node_modules/@types/node/README.md +1 -1
- package/node_modules/@types/concat-stream/node_modules/@types/node/globals.d.ts +8 -6
- package/node_modules/@types/concat-stream/node_modules/@types/node/module.d.ts +8 -1
- package/node_modules/@types/concat-stream/node_modules/@types/node/net.d.ts +3 -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/sqlite.d.ts +30 -9
- package/node_modules/@types/form-data/node_modules/@types/node/README.md +1 -1
- package/node_modules/@types/form-data/node_modules/@types/node/globals.d.ts +8 -6
- package/node_modules/@types/form-data/node_modules/@types/node/module.d.ts +8 -1
- package/node_modules/@types/form-data/node_modules/@types/node/net.d.ts +3 -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/sqlite.d.ts +30 -9
- package/node_modules/get-intrinsic/CHANGELOG.md +8 -0
- package/node_modules/get-intrinsic/index.js +10 -5
- package/node_modules/get-intrinsic/package.json +5 -5
- package/node_modules/get-proto/.eslintrc +10 -0
- package/node_modules/get-proto/.github/FUNDING.yml +12 -0
- package/node_modules/get-proto/.nycrc +9 -0
- package/node_modules/get-proto/CHANGELOG.md +21 -0
- package/node_modules/get-proto/LICENSE +21 -0
- package/node_modules/get-proto/Object.getPrototypeOf.d.ts +5 -0
- package/node_modules/get-proto/Object.getPrototypeOf.js +6 -0
- package/node_modules/get-proto/README.md +50 -0
- package/node_modules/get-proto/Reflect.getPrototypeOf.d.ts +3 -0
- package/node_modules/get-proto/Reflect.getPrototypeOf.js +4 -0
- package/node_modules/get-proto/index.d.ts +5 -0
- package/node_modules/get-proto/index.js +27 -0
- package/node_modules/get-proto/package.json +81 -0
- package/node_modules/get-proto/test/index.js +68 -0
- package/node_modules/get-proto/tsconfig.json +9 -0
- package/package.json +1 -1
package/.jsii
CHANGED
|
@@ -11700,6 +11700,6 @@
|
|
|
11700
11700
|
"symbolId": "src/main:LambdaArmFunctionProps"
|
|
11701
11701
|
}
|
|
11702
11702
|
},
|
|
11703
|
-
"version": "2.0.
|
|
11704
|
-
"fingerprint": "
|
|
11703
|
+
"version": "2.0.1064",
|
|
11704
|
+
"fingerprint": "qSTxAtfbHpM2Pb3qiwEYqKgBbepLgbxlg5YJ6Tw9WpU="
|
|
11705
11705
|
}
|
package/lib/main.js
CHANGED
|
@@ -41,5 +41,5 @@ class LambdaArmFunction extends constructs_1.Construct {
|
|
|
41
41
|
}
|
|
42
42
|
exports.LambdaArmFunction = LambdaArmFunction;
|
|
43
43
|
_a = JSII_RTTI_SYMBOL_1;
|
|
44
|
-
LambdaArmFunction[_a] = { fqn: "cdk-common.LambdaArmFunction", version: "2.0.
|
|
44
|
+
LambdaArmFunction[_a] = { fqn: "cdk-common.LambdaArmFunction", version: "2.0.1064" };
|
|
45
45
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWFpbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3NyYy9tYWluLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7O0FBQUEsbUNBQW1DO0FBQ25DLGlEQUFpRDtBQUNqRCwyQ0FBdUM7QUFLdkMsTUFBYSxpQkFBa0IsU0FBUSxzQkFBUztJQUU5QyxZQUFZLEtBQWdCLEVBQUUsRUFBVSxFQUFFLEtBQTRCO1FBQ3BFLEtBQUssQ0FBQyxLQUFLLEVBQUUsRUFBRSxDQUFDLENBQUM7UUFFakIsSUFBSSxLQUFLLENBQUMsT0FBTyxLQUFLLE1BQU0sQ0FBQyxPQUFPLENBQUMsV0FBVyxFQUFFLENBQUM7WUFDakQsR0FBRyxDQUFDLFdBQVcsQ0FBQyxF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9uKHRoaXMsICdMYW1iZGFGdW5jdGlvbicsIHsgYXJjaGl0ZWN0dXJlOiBsYW1iZGEuQXJjaGl0ZWN0dXJlLkFSTV82NCwgLi4ucHJvcHMgfSk7XG4gIH1cbn0iXX0=
|
|
@@ -8,7 +8,7 @@ This package contains type definitions for node (https://nodejs.org/).
|
|
|
8
8
|
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated:
|
|
11
|
+
* Last updated: Fri, 03 Jan 2025 06:37:24 GMT
|
|
12
12
|
* Dependencies: [undici-types](https://npmjs.com/package/undici-types)
|
|
13
13
|
|
|
14
14
|
# Credits
|
|
@@ -249,19 +249,21 @@ declare global {
|
|
|
249
249
|
};
|
|
250
250
|
|
|
251
251
|
/**
|
|
252
|
-
* A browser-compatible implementation of [`localStorage`](https://developer.mozilla.org/en-US/docs/Web/API/Window/localStorage).
|
|
253
|
-
*
|
|
252
|
+
* A browser-compatible implementation of [`localStorage`](https://developer.mozilla.org/en-US/docs/Web/API/Window/localStorage). Data is stored
|
|
253
|
+
* unencrypted in the file specified by the `--localstorage-file` CLI flag.
|
|
254
|
+
* The maximum amount of data that can be stored is 10 MB.
|
|
254
255
|
* Any modification of this data outside of the Web Storage API is not supported.
|
|
255
256
|
* Enable this API with the `--experimental-webstorage` CLI flag.
|
|
257
|
+
* `localStorage` data is not stored per user or per request when used in the context
|
|
258
|
+
* of a server, it is shared across all users and requests.
|
|
256
259
|
* @since v22.4.0
|
|
257
260
|
*/
|
|
258
261
|
var localStorage: Storage;
|
|
259
262
|
|
|
260
263
|
/**
|
|
261
|
-
* A browser-compatible implementation of [`sessionStorage`](https://developer.mozilla.org/en-US/docs/Web/API/Window/sessionStorage).
|
|
262
|
-
*
|
|
263
|
-
*
|
|
264
|
-
* Enable this API with the `--experimental-webstorage` CLI flag.
|
|
264
|
+
* A browser-compatible implementation of [`sessionStorage`](https://developer.mozilla.org/en-US/docs/Web/API/Window/sessionStorage). Data is stored in
|
|
265
|
+
* memory, with a storage quota of 10 MB. `sessionStorage` data persists only within
|
|
266
|
+
* the currently running process, and is not shared between workers.
|
|
265
267
|
* @since v22.4.0
|
|
266
268
|
*/
|
|
267
269
|
var sessionStorage: Storage;
|
|
@@ -125,7 +125,14 @@ declare module "module" {
|
|
|
125
125
|
interface ImportAttributes extends NodeJS.Dict<string> {
|
|
126
126
|
type?: string | undefined;
|
|
127
127
|
}
|
|
128
|
-
type ModuleFormat =
|
|
128
|
+
type ModuleFormat =
|
|
129
|
+
| "builtin"
|
|
130
|
+
| "commonjs"
|
|
131
|
+
| "commonjs-typescript"
|
|
132
|
+
| "json"
|
|
133
|
+
| "module"
|
|
134
|
+
| "module-typescript"
|
|
135
|
+
| "wasm";
|
|
129
136
|
type ModuleSource = string | ArrayBuffer | NodeJS.TypedArray;
|
|
130
137
|
interface GlobalPreloadContext {
|
|
131
138
|
port: MessagePort;
|
|
@@ -896,6 +896,9 @@ declare module "net" {
|
|
|
896
896
|
function getDefaultAutoSelectFamily(): boolean;
|
|
897
897
|
/**
|
|
898
898
|
* Sets the default value of the `autoSelectFamily` option of `socket.connect(options)`.
|
|
899
|
+
* @param value The new default value.
|
|
900
|
+
* The initial default value is `true`, unless the command line option
|
|
901
|
+
* `--no-network-family-autoselection` is provided.
|
|
899
902
|
* @since v19.4.0
|
|
900
903
|
*/
|
|
901
904
|
function setDefaultAutoSelectFamily(value: boolean): void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "22.10.
|
|
3
|
+
"version": "22.10.5",
|
|
4
4
|
"description": "TypeScript definitions for node",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
|
|
6
6
|
"license": "MIT",
|
|
@@ -215,6 +215,6 @@
|
|
|
215
215
|
"undici-types": "~6.20.0"
|
|
216
216
|
},
|
|
217
217
|
"peerDependencies": {},
|
|
218
|
-
"typesPublisherContentHash": "
|
|
218
|
+
"typesPublisherContentHash": "5204c15eb02bc9a74afae771b0dc25867021c6aa886a7aad0f8c75fe7571881e",
|
|
219
219
|
"typeScriptVersion": "5.0"
|
|
220
220
|
}
|
|
@@ -45,10 +45,31 @@
|
|
|
45
45
|
declare module "node:sqlite" {
|
|
46
46
|
interface DatabaseSyncOptions {
|
|
47
47
|
/**
|
|
48
|
-
* If `true`, the database is opened by the constructor.
|
|
49
|
-
*
|
|
48
|
+
* If `true`, the database is opened by the constructor. When
|
|
49
|
+
* this value is `false`, the database must be opened via the `open()` method.
|
|
50
|
+
* @since v22.5.0
|
|
51
|
+
* @default true
|
|
50
52
|
*/
|
|
51
53
|
open?: boolean | undefined;
|
|
54
|
+
/**
|
|
55
|
+
* If `true`, foreign key constraints
|
|
56
|
+
* are enabled. This is recommended but can be disabled for compatibility with
|
|
57
|
+
* legacy database schemas. The enforcement of foreign key constraints can be
|
|
58
|
+
* enabled and disabled after opening the database using
|
|
59
|
+
* [`PRAGMA foreign_keys`](https://www.sqlite.org/pragma.html#pragma_foreign_keys).
|
|
60
|
+
* @since v22.10.0
|
|
61
|
+
* @default true
|
|
62
|
+
*/
|
|
63
|
+
enableForeignKeyConstraints?: boolean | undefined;
|
|
64
|
+
/**
|
|
65
|
+
* If `true`, SQLite will accept
|
|
66
|
+
* [double-quoted string literals](https://www.sqlite.org/quirks.html#dblquote).
|
|
67
|
+
* This is not recommended but can be
|
|
68
|
+
* enabled for compatibility with legacy database schemas.
|
|
69
|
+
* @since v22.10.0
|
|
70
|
+
* @default false
|
|
71
|
+
*/
|
|
72
|
+
enableDoubleQuotedStringLiterals?: boolean | undefined;
|
|
52
73
|
}
|
|
53
74
|
/**
|
|
54
75
|
* This class represents a single [connection](https://www.sqlite.org/c3ref/sqlite3.html) to a SQLite database. All APIs
|
|
@@ -140,12 +161,13 @@ declare module "node:sqlite" {
|
|
|
140
161
|
...anonymousParameters: SupportedValueType[]
|
|
141
162
|
): unknown[];
|
|
142
163
|
/**
|
|
143
|
-
*
|
|
144
|
-
* placeholders replaced by values
|
|
164
|
+
* The source SQL text of the prepared statement with parameter
|
|
165
|
+
* placeholders replaced by the values that were used during the most recent
|
|
166
|
+
* execution of this prepared statement. This property is a wrapper around
|
|
167
|
+
* [`sqlite3_expanded_sql()`](https://www.sqlite.org/c3ref/expanded_sql.html).
|
|
145
168
|
* @since v22.5.0
|
|
146
|
-
* @return The source SQL expanded to include parameter values.
|
|
147
169
|
*/
|
|
148
|
-
expandedSQL
|
|
170
|
+
readonly expandedSQL: string;
|
|
149
171
|
/**
|
|
150
172
|
* This method executes a prepared statement and returns the first result as an
|
|
151
173
|
* object. If the prepared statement does not return any results, this method
|
|
@@ -203,11 +225,10 @@ declare module "node:sqlite" {
|
|
|
203
225
|
*/
|
|
204
226
|
setReadBigInts(enabled: boolean): void;
|
|
205
227
|
/**
|
|
206
|
-
*
|
|
228
|
+
* The source SQL text of the prepared statement. This property is a
|
|
207
229
|
* wrapper around [`sqlite3_sql()`](https://www.sqlite.org/c3ref/expanded_sql.html).
|
|
208
230
|
* @since v22.5.0
|
|
209
|
-
* @return The source SQL used to create this prepared statement.
|
|
210
231
|
*/
|
|
211
|
-
sourceSQL
|
|
232
|
+
readonly sourceSQL: string;
|
|
212
233
|
}
|
|
213
234
|
}
|
|
@@ -8,7 +8,7 @@ This package contains type definitions for node (https://nodejs.org/).
|
|
|
8
8
|
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated:
|
|
11
|
+
* Last updated: Fri, 03 Jan 2025 06:37:24 GMT
|
|
12
12
|
* Dependencies: [undici-types](https://npmjs.com/package/undici-types)
|
|
13
13
|
|
|
14
14
|
# Credits
|
|
@@ -249,19 +249,21 @@ declare global {
|
|
|
249
249
|
};
|
|
250
250
|
|
|
251
251
|
/**
|
|
252
|
-
* A browser-compatible implementation of [`localStorage`](https://developer.mozilla.org/en-US/docs/Web/API/Window/localStorage).
|
|
253
|
-
*
|
|
252
|
+
* A browser-compatible implementation of [`localStorage`](https://developer.mozilla.org/en-US/docs/Web/API/Window/localStorage). Data is stored
|
|
253
|
+
* unencrypted in the file specified by the `--localstorage-file` CLI flag.
|
|
254
|
+
* The maximum amount of data that can be stored is 10 MB.
|
|
254
255
|
* Any modification of this data outside of the Web Storage API is not supported.
|
|
255
256
|
* Enable this API with the `--experimental-webstorage` CLI flag.
|
|
257
|
+
* `localStorage` data is not stored per user or per request when used in the context
|
|
258
|
+
* of a server, it is shared across all users and requests.
|
|
256
259
|
* @since v22.4.0
|
|
257
260
|
*/
|
|
258
261
|
var localStorage: Storage;
|
|
259
262
|
|
|
260
263
|
/**
|
|
261
|
-
* A browser-compatible implementation of [`sessionStorage`](https://developer.mozilla.org/en-US/docs/Web/API/Window/sessionStorage).
|
|
262
|
-
*
|
|
263
|
-
*
|
|
264
|
-
* Enable this API with the `--experimental-webstorage` CLI flag.
|
|
264
|
+
* A browser-compatible implementation of [`sessionStorage`](https://developer.mozilla.org/en-US/docs/Web/API/Window/sessionStorage). Data is stored in
|
|
265
|
+
* memory, with a storage quota of 10 MB. `sessionStorage` data persists only within
|
|
266
|
+
* the currently running process, and is not shared between workers.
|
|
265
267
|
* @since v22.4.0
|
|
266
268
|
*/
|
|
267
269
|
var sessionStorage: Storage;
|
|
@@ -125,7 +125,14 @@ declare module "module" {
|
|
|
125
125
|
interface ImportAttributes extends NodeJS.Dict<string> {
|
|
126
126
|
type?: string | undefined;
|
|
127
127
|
}
|
|
128
|
-
type ModuleFormat =
|
|
128
|
+
type ModuleFormat =
|
|
129
|
+
| "builtin"
|
|
130
|
+
| "commonjs"
|
|
131
|
+
| "commonjs-typescript"
|
|
132
|
+
| "json"
|
|
133
|
+
| "module"
|
|
134
|
+
| "module-typescript"
|
|
135
|
+
| "wasm";
|
|
129
136
|
type ModuleSource = string | ArrayBuffer | NodeJS.TypedArray;
|
|
130
137
|
interface GlobalPreloadContext {
|
|
131
138
|
port: MessagePort;
|
|
@@ -896,6 +896,9 @@ declare module "net" {
|
|
|
896
896
|
function getDefaultAutoSelectFamily(): boolean;
|
|
897
897
|
/**
|
|
898
898
|
* Sets the default value of the `autoSelectFamily` option of `socket.connect(options)`.
|
|
899
|
+
* @param value The new default value.
|
|
900
|
+
* The initial default value is `true`, unless the command line option
|
|
901
|
+
* `--no-network-family-autoselection` is provided.
|
|
899
902
|
* @since v19.4.0
|
|
900
903
|
*/
|
|
901
904
|
function setDefaultAutoSelectFamily(value: boolean): void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "22.10.
|
|
3
|
+
"version": "22.10.5",
|
|
4
4
|
"description": "TypeScript definitions for node",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
|
|
6
6
|
"license": "MIT",
|
|
@@ -215,6 +215,6 @@
|
|
|
215
215
|
"undici-types": "~6.20.0"
|
|
216
216
|
},
|
|
217
217
|
"peerDependencies": {},
|
|
218
|
-
"typesPublisherContentHash": "
|
|
218
|
+
"typesPublisherContentHash": "5204c15eb02bc9a74afae771b0dc25867021c6aa886a7aad0f8c75fe7571881e",
|
|
219
219
|
"typeScriptVersion": "5.0"
|
|
220
220
|
}
|
|
@@ -45,10 +45,31 @@
|
|
|
45
45
|
declare module "node:sqlite" {
|
|
46
46
|
interface DatabaseSyncOptions {
|
|
47
47
|
/**
|
|
48
|
-
* If `true`, the database is opened by the constructor.
|
|
49
|
-
*
|
|
48
|
+
* If `true`, the database is opened by the constructor. When
|
|
49
|
+
* this value is `false`, the database must be opened via the `open()` method.
|
|
50
|
+
* @since v22.5.0
|
|
51
|
+
* @default true
|
|
50
52
|
*/
|
|
51
53
|
open?: boolean | undefined;
|
|
54
|
+
/**
|
|
55
|
+
* If `true`, foreign key constraints
|
|
56
|
+
* are enabled. This is recommended but can be disabled for compatibility with
|
|
57
|
+
* legacy database schemas. The enforcement of foreign key constraints can be
|
|
58
|
+
* enabled and disabled after opening the database using
|
|
59
|
+
* [`PRAGMA foreign_keys`](https://www.sqlite.org/pragma.html#pragma_foreign_keys).
|
|
60
|
+
* @since v22.10.0
|
|
61
|
+
* @default true
|
|
62
|
+
*/
|
|
63
|
+
enableForeignKeyConstraints?: boolean | undefined;
|
|
64
|
+
/**
|
|
65
|
+
* If `true`, SQLite will accept
|
|
66
|
+
* [double-quoted string literals](https://www.sqlite.org/quirks.html#dblquote).
|
|
67
|
+
* This is not recommended but can be
|
|
68
|
+
* enabled for compatibility with legacy database schemas.
|
|
69
|
+
* @since v22.10.0
|
|
70
|
+
* @default false
|
|
71
|
+
*/
|
|
72
|
+
enableDoubleQuotedStringLiterals?: boolean | undefined;
|
|
52
73
|
}
|
|
53
74
|
/**
|
|
54
75
|
* This class represents a single [connection](https://www.sqlite.org/c3ref/sqlite3.html) to a SQLite database. All APIs
|
|
@@ -140,12 +161,13 @@ declare module "node:sqlite" {
|
|
|
140
161
|
...anonymousParameters: SupportedValueType[]
|
|
141
162
|
): unknown[];
|
|
142
163
|
/**
|
|
143
|
-
*
|
|
144
|
-
* placeholders replaced by values
|
|
164
|
+
* The source SQL text of the prepared statement with parameter
|
|
165
|
+
* placeholders replaced by the values that were used during the most recent
|
|
166
|
+
* execution of this prepared statement. This property is a wrapper around
|
|
167
|
+
* [`sqlite3_expanded_sql()`](https://www.sqlite.org/c3ref/expanded_sql.html).
|
|
145
168
|
* @since v22.5.0
|
|
146
|
-
* @return The source SQL expanded to include parameter values.
|
|
147
169
|
*/
|
|
148
|
-
expandedSQL
|
|
170
|
+
readonly expandedSQL: string;
|
|
149
171
|
/**
|
|
150
172
|
* This method executes a prepared statement and returns the first result as an
|
|
151
173
|
* object. If the prepared statement does not return any results, this method
|
|
@@ -203,11 +225,10 @@ declare module "node:sqlite" {
|
|
|
203
225
|
*/
|
|
204
226
|
setReadBigInts(enabled: boolean): void;
|
|
205
227
|
/**
|
|
206
|
-
*
|
|
228
|
+
* The source SQL text of the prepared statement. This property is a
|
|
207
229
|
* wrapper around [`sqlite3_sql()`](https://www.sqlite.org/c3ref/expanded_sql.html).
|
|
208
230
|
* @since v22.5.0
|
|
209
|
-
* @return The source SQL used to create this prepared statement.
|
|
210
231
|
*/
|
|
211
|
-
sourceSQL
|
|
232
|
+
readonly sourceSQL: string;
|
|
212
233
|
}
|
|
213
234
|
}
|
|
@@ -5,6 +5,14 @@ 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.7](https://github.com/ljharb/get-intrinsic/compare/v1.2.6...v1.2.7) - 2025-01-02
|
|
9
|
+
|
|
10
|
+
### Commits
|
|
11
|
+
|
|
12
|
+
- [Refactor] use `get-proto` directly [`00ab955`](https://github.com/ljharb/get-intrinsic/commit/00ab95546a0980c8ad42a84253daaa8d2adcedf9)
|
|
13
|
+
- [Deps] update `math-intrinsics` [`c716cdd`](https://github.com/ljharb/get-intrinsic/commit/c716cdd6bbe36b438057025561b8bb5a879ac8a0)
|
|
14
|
+
- [Dev Deps] update `call-bound`, `es-abstract` [`dc648a6`](https://github.com/ljharb/get-intrinsic/commit/dc648a67eb359037dff8d8619bfa71d86debccb1)
|
|
15
|
+
|
|
8
16
|
## [v1.2.6](https://github.com/ljharb/get-intrinsic/compare/v1.2.5...v1.2.6) - 2024-12-11
|
|
9
17
|
|
|
10
18
|
### Commits
|
|
@@ -17,6 +17,8 @@ var floor = require('math-intrinsics/floor');
|
|
|
17
17
|
var max = require('math-intrinsics/max');
|
|
18
18
|
var min = require('math-intrinsics/min');
|
|
19
19
|
var pow = require('math-intrinsics/pow');
|
|
20
|
+
var round = require('math-intrinsics/round');
|
|
21
|
+
var sign = require('math-intrinsics/sign');
|
|
20
22
|
|
|
21
23
|
var $Function = Function;
|
|
22
24
|
|
|
@@ -51,11 +53,10 @@ var ThrowTypeError = $gOPD
|
|
|
51
53
|
: throwTypeError;
|
|
52
54
|
|
|
53
55
|
var hasSymbols = require('has-symbols')();
|
|
54
|
-
var getDunderProto = require('dunder-proto/get');
|
|
55
56
|
|
|
56
|
-
var getProto = (
|
|
57
|
-
|
|
58
|
-
|
|
57
|
+
var getProto = require('get-proto');
|
|
58
|
+
var $ObjectGPO = require('get-proto/Object.getPrototypeOf');
|
|
59
|
+
var $ReflectGPO = require('get-proto/Reflect.getPrototypeOf');
|
|
59
60
|
|
|
60
61
|
var $apply = require('call-bind-apply-helpers/functionApply');
|
|
61
62
|
var $call = require('call-bind-apply-helpers/functionCall');
|
|
@@ -137,11 +138,15 @@ var INTRINSICS = {
|
|
|
137
138
|
'%Function.prototype.call%': $call,
|
|
138
139
|
'%Function.prototype.apply%': $apply,
|
|
139
140
|
'%Object.defineProperty%': $defineProperty,
|
|
141
|
+
'%Object.getPrototypeOf%': $ObjectGPO,
|
|
140
142
|
'%Math.abs%': abs,
|
|
141
143
|
'%Math.floor%': floor,
|
|
142
144
|
'%Math.max%': max,
|
|
143
145
|
'%Math.min%': min,
|
|
144
|
-
'%Math.pow%': pow
|
|
146
|
+
'%Math.pow%': pow,
|
|
147
|
+
'%Math.round%': round,
|
|
148
|
+
'%Math.sign%': sign,
|
|
149
|
+
'%Reflect.getPrototypeOf%': $ReflectGPO
|
|
145
150
|
};
|
|
146
151
|
|
|
147
152
|
if (getProto) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "get-intrinsic",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.7",
|
|
4
4
|
"description": "Get and robustly cache all JS language-level intrinsics at first require time",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"exports": {
|
|
@@ -45,22 +45,22 @@
|
|
|
45
45
|
"homepage": "https://github.com/ljharb/get-intrinsic#readme",
|
|
46
46
|
"dependencies": {
|
|
47
47
|
"call-bind-apply-helpers": "^1.0.1",
|
|
48
|
-
"dunder-proto": "^1.0.0",
|
|
49
48
|
"es-define-property": "^1.0.1",
|
|
50
49
|
"es-errors": "^1.3.0",
|
|
51
50
|
"es-object-atoms": "^1.0.0",
|
|
52
51
|
"function-bind": "^1.1.2",
|
|
52
|
+
"get-proto": "^1.0.0",
|
|
53
53
|
"gopd": "^1.2.0",
|
|
54
54
|
"has-symbols": "^1.1.0",
|
|
55
55
|
"hasown": "^2.0.2",
|
|
56
|
-
"math-intrinsics": "^1.
|
|
56
|
+
"math-intrinsics": "^1.1.0"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"@ljharb/eslint-config": "^21.1.1",
|
|
60
60
|
"auto-changelog": "^2.5.0",
|
|
61
|
-
"call-bound": "^1.0.
|
|
61
|
+
"call-bound": "^1.0.3",
|
|
62
62
|
"encoding": "^0.1.13",
|
|
63
|
-
"es-abstract": "^1.23.
|
|
63
|
+
"es-abstract": "^1.23.8",
|
|
64
64
|
"es-value-fixtures": "^1.5.0",
|
|
65
65
|
"eslint": "=8.8.0",
|
|
66
66
|
"evalmd": "^0.0.19",
|
|
@@ -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/get-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,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
|
+
## [v1.0.1](https://github.com/ljharb/get-proto/compare/v1.0.0...v1.0.1) - 2025-01-02
|
|
9
|
+
|
|
10
|
+
### Commits
|
|
11
|
+
|
|
12
|
+
- [Fix] for the `Object.getPrototypeOf` window, throw for non-objects [`7fe6508`](https://github.com/ljharb/get-proto/commit/7fe6508b71419ebe1976bedb86001d1feaeaa49a)
|
|
13
|
+
|
|
14
|
+
## v1.0.0 - 2025-01-01
|
|
15
|
+
|
|
16
|
+
### Commits
|
|
17
|
+
|
|
18
|
+
- Initial implementation, tests, readme, types [`5c70775`](https://github.com/ljharb/get-proto/commit/5c707751e81c3deeb2cf980d185fc7fd43611415)
|
|
19
|
+
- Initial commit [`7c65c2a`](https://github.com/ljharb/get-proto/commit/7c65c2ad4e33d5dae2f219ebe1a046ae2256972c)
|
|
20
|
+
- npm init [`0b8cf82`](https://github.com/ljharb/get-proto/commit/0b8cf824c9634e4a34ef7dd2a2cdc5be6ac79518)
|
|
21
|
+
- Only apps should have lockfiles [`a6d1bff`](https://github.com/ljharb/get-proto/commit/a6d1bffc364f5828377cea7194558b2dbef7aea2)
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Jordan Harband
|
|
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,50 @@
|
|
|
1
|
+
# get-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
|
+
Robustly get the [[Prototype]] of an object. Uses the best available method.
|
|
11
|
+
|
|
12
|
+
## Getting started
|
|
13
|
+
|
|
14
|
+
```sh
|
|
15
|
+
npm install --save get-proto
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## Usage/Examples
|
|
19
|
+
|
|
20
|
+
```js
|
|
21
|
+
const assert = require('assert');
|
|
22
|
+
const getProto = require('get-proto');
|
|
23
|
+
|
|
24
|
+
const a = { a: 1, b: 2, [Symbol.toStringTag]: 'foo' };
|
|
25
|
+
const b = { c: 3, __proto__: a };
|
|
26
|
+
|
|
27
|
+
assert.equal(getProto(b), a);
|
|
28
|
+
assert.equal(getProto(a), Object.prototype);
|
|
29
|
+
assert.equal(getProto({ __proto__: null }), null);
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
## Tests
|
|
33
|
+
|
|
34
|
+
Clone the repo, `npm install`, and run `npm test`
|
|
35
|
+
|
|
36
|
+
[package-url]: https://npmjs.org/package/get-proto
|
|
37
|
+
[npm-version-svg]: https://versionbadg.es/ljharb/get-proto.svg
|
|
38
|
+
[deps-svg]: https://david-dm.org/ljharb/get-proto.svg
|
|
39
|
+
[deps-url]: https://david-dm.org/ljharb/get-proto
|
|
40
|
+
[dev-deps-svg]: https://david-dm.org/ljharb/get-proto/dev-status.svg
|
|
41
|
+
[dev-deps-url]: https://david-dm.org/ljharb/get-proto#info=devDependencies
|
|
42
|
+
[npm-badge-png]: https://nodei.co/npm/get-proto.png?downloads=true&stars=true
|
|
43
|
+
[license-image]: https://img.shields.io/npm/l/get-proto.svg
|
|
44
|
+
[license-url]: LICENSE
|
|
45
|
+
[downloads-image]: https://img.shields.io/npm/dm/get-proto.svg
|
|
46
|
+
[downloads-url]: https://npm-stat.com/charts.html?package=get-proto
|
|
47
|
+
[codecov-image]: https://codecov.io/gh/ljharb/get-proto/branch/main/graphs/badge.svg
|
|
48
|
+
[codecov-url]: https://app.codecov.io/gh/ljharb/get-proto/
|
|
49
|
+
[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/ljharb/get-proto
|
|
50
|
+
[actions-url]: https://github.com/ljharb/get-proto/actions
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var reflectGetProto = require('./Reflect.getPrototypeOf');
|
|
4
|
+
var originalGetProto = require('./Object.getPrototypeOf');
|
|
5
|
+
|
|
6
|
+
var getDunderProto = require('dunder-proto/get');
|
|
7
|
+
|
|
8
|
+
/** @type {import('.')} */
|
|
9
|
+
module.exports = reflectGetProto
|
|
10
|
+
? function getProto(O) {
|
|
11
|
+
// @ts-expect-error TS can't narrow inside a closure, for some reason
|
|
12
|
+
return reflectGetProto(O);
|
|
13
|
+
}
|
|
14
|
+
: originalGetProto
|
|
15
|
+
? function getProto(O) {
|
|
16
|
+
if (!O || (typeof O !== 'object' && typeof O !== 'function')) {
|
|
17
|
+
throw new TypeError('getProto: not an object');
|
|
18
|
+
}
|
|
19
|
+
// @ts-expect-error TS can't narrow inside a closure, for some reason
|
|
20
|
+
return originalGetProto(O);
|
|
21
|
+
}
|
|
22
|
+
: getDunderProto
|
|
23
|
+
? function getProto(O) {
|
|
24
|
+
// @ts-expect-error TS can't narrow inside a closure, for some reason
|
|
25
|
+
return getDunderProto(O);
|
|
26
|
+
}
|
|
27
|
+
: null;
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "get-proto",
|
|
3
|
+
"version": "1.0.1",
|
|
4
|
+
"description": "Robustly get the [[Prototype]] of an object",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"exports": {
|
|
7
|
+
".": "./index.js",
|
|
8
|
+
"./Reflect.getPrototypeOf": "./Reflect.getPrototypeOf.js",
|
|
9
|
+
"./Object.getPrototypeOf": "./Object.getPrototypeOf.js",
|
|
10
|
+
"./package.json": "./package.json"
|
|
11
|
+
},
|
|
12
|
+
"scripts": {
|
|
13
|
+
"prepack": "npmignore --auto --commentLines=autogenerated",
|
|
14
|
+
"prepublish": "not-in-publish || npm run prepublishOnly",
|
|
15
|
+
"prepublishOnly": "safe-publish-latest",
|
|
16
|
+
"pretest": "npm run --silent lint",
|
|
17
|
+
"test": "npm run tests-only",
|
|
18
|
+
"posttest": "npx npm@\">=10.2\" audit --production",
|
|
19
|
+
"tests-only": "nyc tape 'test/**/*.js'",
|
|
20
|
+
"prelint": "evalmd README.md",
|
|
21
|
+
"lint": "eslint --ext=js,mjs .",
|
|
22
|
+
"postlint": "tsc && attw -P",
|
|
23
|
+
"version": "auto-changelog && git add CHANGELOG.md",
|
|
24
|
+
"postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\""
|
|
25
|
+
},
|
|
26
|
+
"repository": {
|
|
27
|
+
"type": "git",
|
|
28
|
+
"url": "git+https://github.com/ljharb/get-proto.git"
|
|
29
|
+
},
|
|
30
|
+
"keywords": [
|
|
31
|
+
"get",
|
|
32
|
+
"proto",
|
|
33
|
+
"prototype",
|
|
34
|
+
"getPrototypeOf",
|
|
35
|
+
"[[Prototype]]"
|
|
36
|
+
],
|
|
37
|
+
"author": "Jordan Harband <ljharb@gmail.com>",
|
|
38
|
+
"license": "MIT",
|
|
39
|
+
"bugs": {
|
|
40
|
+
"url": "https://github.com/ljharb/get-proto/issues"
|
|
41
|
+
},
|
|
42
|
+
"homepage": "https://github.com/ljharb/get-proto#readme",
|
|
43
|
+
"dependencies": {
|
|
44
|
+
"dunder-proto": "^1.0.1",
|
|
45
|
+
"es-object-atoms": "^1.0.0"
|
|
46
|
+
},
|
|
47
|
+
"devDependencies": {
|
|
48
|
+
"@arethetypeswrong/cli": "^0.17.2",
|
|
49
|
+
"@ljharb/eslint-config": "^21.1.1",
|
|
50
|
+
"@ljharb/tsconfig": "^0.2.3",
|
|
51
|
+
"@types/tape": "^5.8.0",
|
|
52
|
+
"auto-changelog": "^2.5.0",
|
|
53
|
+
"eslint": "=8.8.0",
|
|
54
|
+
"evalmd": "^0.0.19",
|
|
55
|
+
"in-publish": "^2.0.1",
|
|
56
|
+
"npmignore": "^0.3.1",
|
|
57
|
+
"nyc": "^10.3.2",
|
|
58
|
+
"safe-publish-latest": "^2.0.0",
|
|
59
|
+
"tape": "^5.9.0",
|
|
60
|
+
"typescript": "next"
|
|
61
|
+
},
|
|
62
|
+
"engines": {
|
|
63
|
+
"node": ">= 0.4"
|
|
64
|
+
},
|
|
65
|
+
"auto-changelog": {
|
|
66
|
+
"output": "CHANGELOG.md",
|
|
67
|
+
"template": "keepachangelog",
|
|
68
|
+
"unreleased": false,
|
|
69
|
+
"commitLimit": false,
|
|
70
|
+
"backfillLimit": false,
|
|
71
|
+
"hideCredit": true
|
|
72
|
+
},
|
|
73
|
+
"publishConfig": {
|
|
74
|
+
"ignore": [
|
|
75
|
+
".github/workflows"
|
|
76
|
+
]
|
|
77
|
+
},
|
|
78
|
+
"testling": {
|
|
79
|
+
"files": "test/index.js"
|
|
80
|
+
}
|
|
81
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var test = require('tape');
|
|
4
|
+
|
|
5
|
+
var getProto = require('../');
|
|
6
|
+
|
|
7
|
+
test('getProto', function (t) {
|
|
8
|
+
t.equal(typeof getProto, 'function', 'is a function');
|
|
9
|
+
|
|
10
|
+
t.test('can get', { skip: !getProto }, function (st) {
|
|
11
|
+
if (getProto) { // TS doesn't understand tape's skip
|
|
12
|
+
var proto = { b: 2 };
|
|
13
|
+
st.equal(getProto(proto), Object.prototype, 'proto: returns the [[Prototype]]');
|
|
14
|
+
|
|
15
|
+
st.test('nullish value', function (s2t) {
|
|
16
|
+
// @ts-expect-error
|
|
17
|
+
s2t['throws'](function () { return getProto(undefined); }, TypeError, 'undefined is not an object');
|
|
18
|
+
// @ts-expect-error
|
|
19
|
+
s2t['throws'](function () { return getProto(null); }, TypeError, 'null is not an object');
|
|
20
|
+
s2t.end();
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
// @ts-expect-error
|
|
24
|
+
st['throws'](function () { getProto(true); }, 'throws for true');
|
|
25
|
+
// @ts-expect-error
|
|
26
|
+
st['throws'](function () { getProto(false); }, 'throws for false');
|
|
27
|
+
// @ts-expect-error
|
|
28
|
+
st['throws'](function () { getProto(42); }, 'throws for 42');
|
|
29
|
+
// @ts-expect-error
|
|
30
|
+
st['throws'](function () { getProto(NaN); }, 'throws for NaN');
|
|
31
|
+
// @ts-expect-error
|
|
32
|
+
st['throws'](function () { getProto(0); }, 'throws for +0');
|
|
33
|
+
// @ts-expect-error
|
|
34
|
+
st['throws'](function () { getProto(-0); }, 'throws for -0');
|
|
35
|
+
// @ts-expect-error
|
|
36
|
+
st['throws'](function () { getProto(Infinity); }, 'throws for ∞');
|
|
37
|
+
// @ts-expect-error
|
|
38
|
+
st['throws'](function () { getProto(-Infinity); }, 'throws for -∞');
|
|
39
|
+
// @ts-expect-error
|
|
40
|
+
st['throws'](function () { getProto(''); }, 'throws for empty string');
|
|
41
|
+
// @ts-expect-error
|
|
42
|
+
st['throws'](function () { getProto('foo'); }, 'throws for non-empty string');
|
|
43
|
+
st.equal(getProto(/a/g), RegExp.prototype);
|
|
44
|
+
st.equal(getProto(new Date()), Date.prototype);
|
|
45
|
+
st.equal(getProto(function () {}), Function.prototype);
|
|
46
|
+
st.equal(getProto([]), Array.prototype);
|
|
47
|
+
st.equal(getProto({}), Object.prototype);
|
|
48
|
+
|
|
49
|
+
var nullObject = { __proto__: null };
|
|
50
|
+
if ('toString' in nullObject) {
|
|
51
|
+
st.comment('no null objects in this engine');
|
|
52
|
+
st.equal(getProto(nullObject), Object.prototype, '"null" object has Object.prototype as [[Prototype]]');
|
|
53
|
+
} else {
|
|
54
|
+
st.equal(getProto(nullObject), null, 'null object has null [[Prototype]]');
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
st.end();
|
|
59
|
+
});
|
|
60
|
+
|
|
61
|
+
t.test('can not get', { skip: !!getProto }, function (st) {
|
|
62
|
+
st.equal(getProto, null);
|
|
63
|
+
|
|
64
|
+
st.end();
|
|
65
|
+
});
|
|
66
|
+
|
|
67
|
+
t.end();
|
|
68
|
+
});
|