cdk-lambda-subminute 2.0.368 → 2.0.369
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 +3 -3
- package/lib/cdk-lambda-subminute.js +3 -3
- package/node_modules/available-typed-arrays/.eslintrc +0 -4
- package/node_modules/available-typed-arrays/CHANGELOG.md +15 -0
- package/node_modules/available-typed-arrays/index.d.ts +17 -0
- package/node_modules/available-typed-arrays/index.js +4 -2
- package/node_modules/available-typed-arrays/package.json +23 -15
- package/node_modules/available-typed-arrays/tsconfig.json +49 -0
- package/node_modules/aws-sdk/README.md +1 -1
- package/node_modules/aws-sdk/apis/appsync-2017-07-25.min.json +67 -6
- package/node_modules/aws-sdk/apis/cognito-idp-2016-04-18.min.json +1 -1
- package/node_modules/aws-sdk/apis/datasync-2018-11-09.min.json +76 -32
- package/node_modules/aws-sdk/apis/es-2015-01-01.min.json +227 -152
- package/node_modules/aws-sdk/apis/glue-2017-03-31.min.json +102 -101
- package/node_modules/aws-sdk/apis/ivs-2020-07-14.min.json +240 -49
- package/node_modules/aws-sdk/apis/ivs-2020-07-14.paginators.json +5 -0
- package/node_modules/aws-sdk/apis/logs-2014-03-28.min.json +2 -1
- package/node_modules/aws-sdk/apis/managedblockchain-query-2023-05-04.min.json +14 -5
- package/node_modules/aws-sdk/apis/mediaconvert-2017-08-29.min.json +104 -87
- package/node_modules/aws-sdk/apis/models.lex.v2-2020-08-07.min.json +597 -333
- package/node_modules/aws-sdk/apis/models.lex.v2-2020-08-07.paginators.json +10 -0
- package/node_modules/aws-sdk/apis/opensearch-2021-01-01.min.json +259 -184
- package/node_modules/aws-sdk/apis/redshift-2012-12-01.min.json +68 -3
- package/node_modules/aws-sdk/apis/redshift-2012-12-01.paginators.json +6 -0
- package/node_modules/aws-sdk/apis/sagemaker-2017-07-24.min.json +779 -773
- package/node_modules/aws-sdk/apis/wafv2-2019-07-29.min.json +45 -28
- package/node_modules/aws-sdk/clients/appsync.d.ts +47 -0
- package/node_modules/aws-sdk/clients/cloudwatchlogs.d.ts +12 -8
- package/node_modules/aws-sdk/clients/cognitoidentityserviceprovider.d.ts +63 -63
- package/node_modules/aws-sdk/clients/datasync.d.ts +185 -124
- package/node_modules/aws-sdk/clients/dynamodb.d.ts +3 -3
- package/node_modules/aws-sdk/clients/ecs.d.ts +5 -5
- package/node_modules/aws-sdk/clients/es.d.ts +111 -0
- package/node_modules/aws-sdk/clients/glue.d.ts +8 -3
- package/node_modules/aws-sdk/clients/ivs.d.ts +223 -4
- package/node_modules/aws-sdk/clients/lexmodelsv2.d.ts +324 -0
- package/node_modules/aws-sdk/clients/managedblockchainquery.d.ts +30 -20
- package/node_modules/aws-sdk/clients/mediaconvert.d.ts +17 -8
- package/node_modules/aws-sdk/clients/opensearch.d.ts +108 -0
- package/node_modules/aws-sdk/clients/redshift.d.ts +119 -0
- package/node_modules/aws-sdk/clients/sagemaker.d.ts +51 -41
- package/node_modules/aws-sdk/clients/wafv2.d.ts +23 -3
- package/node_modules/aws-sdk/clients/workspaces.d.ts +1 -1
- package/node_modules/aws-sdk/dist/aws-sdk-core-react-native.js +211 -108
- package/node_modules/aws-sdk/dist/aws-sdk-react-native.js +2385 -2179
- package/node_modules/aws-sdk/dist/aws-sdk.js +80 -8
- package/node_modules/aws-sdk/dist/aws-sdk.min.js +38 -38
- package/node_modules/aws-sdk/lib/core.js +1 -1
- package/node_modules/aws-sdk/lib/credentials/remote_credentials.js +14 -2
- package/node_modules/aws-sdk/lib/dynamodb/document_client.d.ts +1 -1
- package/node_modules/aws-sdk/package.json +1 -1
- package/node_modules/call-bind/CHANGELOG.md +9 -0
- package/node_modules/call-bind/index.js +1 -1
- package/node_modules/call-bind/package.json +10 -6
- package/node_modules/define-data-property/CHANGELOG.md +11 -0
- package/node_modules/define-data-property/index.js +2 -2
- package/node_modules/define-data-property/package.json +19 -18
- package/node_modules/define-data-property/test/index.js +7 -7
- package/node_modules/es-errors/.eslintrc +5 -0
- package/node_modules/es-errors/.github/FUNDING.yml +12 -0
- package/node_modules/es-errors/CHANGELOG.md +40 -0
- package/node_modules/es-errors/LICENSE +21 -0
- package/node_modules/es-errors/README.md +55 -0
- package/node_modules/es-errors/eval.d.ts +3 -0
- package/node_modules/es-errors/eval.js +4 -0
- package/node_modules/es-errors/index.d.ts +3 -0
- package/node_modules/es-errors/index.js +4 -0
- package/node_modules/es-errors/package.json +80 -0
- package/node_modules/es-errors/range.d.ts +3 -0
- package/node_modules/es-errors/range.js +4 -0
- package/node_modules/es-errors/ref.d.ts +3 -0
- package/node_modules/es-errors/ref.js +4 -0
- package/node_modules/es-errors/syntax.d.ts +3 -0
- package/node_modules/es-errors/syntax.js +4 -0
- package/node_modules/es-errors/test/index.js +19 -0
- package/node_modules/es-errors/tsconfig.json +49 -0
- package/node_modules/es-errors/type.d.ts +3 -0
- package/node_modules/es-errors/type.js +4 -0
- package/node_modules/es-errors/uri.d.ts +3 -0
- package/node_modules/es-errors/uri.js +4 -0
- package/node_modules/get-intrinsic/CHANGELOG.md +18 -0
- package/node_modules/get-intrinsic/index.js +15 -7
- package/node_modules/get-intrinsic/package.json +12 -12
- package/node_modules/has-tostringtag/.eslintrc +0 -6
- package/node_modules/has-tostringtag/.nycrc +13 -0
- package/node_modules/has-tostringtag/CHANGELOG.md +22 -0
- package/node_modules/has-tostringtag/index.d.ts +3 -0
- package/node_modules/has-tostringtag/index.js +1 -0
- package/node_modules/has-tostringtag/package.json +37 -13
- package/node_modules/has-tostringtag/shams.d.ts +3 -0
- package/node_modules/has-tostringtag/shams.js +1 -0
- package/node_modules/has-tostringtag/test/shams/core-js.js +3 -0
- package/node_modules/has-tostringtag/test/shams/get-own-property-symbols.js +2 -0
- package/node_modules/has-tostringtag/test/tests.js +2 -1
- package/node_modules/has-tostringtag/tsconfig.json +49 -0
- package/node_modules/is-typed-array/CHANGELOG.md +10 -0
- package/node_modules/is-typed-array/index.d.ts +16 -0
- package/node_modules/is-typed-array/index.js +1 -0
- package/node_modules/is-typed-array/package.json +18 -7
- package/node_modules/is-typed-array/test/index.js +9 -1
- package/node_modules/is-typed-array/tsconfig.json +49 -0
- package/node_modules/set-function-length/CHANGELOG.md +8 -0
- package/node_modules/set-function-length/index.js +1 -1
- package/node_modules/set-function-length/package.json +7 -6
- package/node_modules/which-typed-array/CHANGELOG.md +9 -0
- package/node_modules/which-typed-array/index.d.ts +16 -0
- package/node_modules/which-typed-array/index.js +39 -18
- package/node_modules/which-typed-array/package.json +18 -7
- package/node_modules/which-typed-array/test/index.js +9 -1
- package/node_modules/which-typed-array/tsconfig.json +49 -0
- package/package.json +4 -4
- package/node_modules/available-typed-arrays/.eslintignore +0 -1
@@ -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.1](https://github.com/ljharb/set-function-length/compare/v1.2.0...v1.2.1) - 2024-02-06
|
9
|
+
|
10
|
+
### Commits
|
11
|
+
|
12
|
+
- [Dev Deps] update `call-bind`, `tape`, `typescript` [`d9a4601`](https://github.com/ljharb/set-function-length/commit/d9a460199c4c1fa37da9ebe055e2c884128f0738)
|
13
|
+
- [Deps] update `define-data-property`, `get-intrinsic` [`38d39ae`](https://github.com/ljharb/set-function-length/commit/38d39aed13a757ed36211d5b0437b88485090c6b)
|
14
|
+
- [Refactor] use `es-errors`, so things that only need those do not need `get-intrinsic` [`b4bfe5a`](https://github.com/ljharb/set-function-length/commit/b4bfe5ae0953b906d55b85f867eca5e7f673ebf4)
|
15
|
+
|
8
16
|
## [v1.2.0](https://github.com/ljharb/set-function-length/compare/v1.1.1...v1.2.0) - 2024-01-14
|
9
17
|
|
10
18
|
### Commits
|
@@ -5,7 +5,7 @@ var define = require('define-data-property');
|
|
5
5
|
var hasDescriptors = require('has-property-descriptors')();
|
6
6
|
var gOPD = require('gopd');
|
7
7
|
|
8
|
-
var $TypeError =
|
8
|
+
var $TypeError = require('es-errors/type');
|
9
9
|
var $floor = GetIntrinsic('%Math.floor%');
|
10
10
|
|
11
11
|
/** @typedef {(...args: unknown[]) => unknown} Func */
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "set-function-length",
|
3
|
-
"version": "1.2.
|
3
|
+
"version": "1.2.1",
|
4
4
|
"description": "Set a function's length property",
|
5
5
|
"main": "index.js",
|
6
6
|
"exports": {
|
@@ -49,9 +49,10 @@
|
|
49
49
|
},
|
50
50
|
"homepage": "https://github.com/ljharb/set-function-length#readme",
|
51
51
|
"dependencies": {
|
52
|
-
"define-data-property": "^1.1.
|
52
|
+
"define-data-property": "^1.1.2",
|
53
|
+
"es-errors": "^1.3.0",
|
53
54
|
"function-bind": "^1.1.2",
|
54
|
-
"get-intrinsic": "^1.2.
|
55
|
+
"get-intrinsic": "^1.2.3",
|
55
56
|
"gopd": "^1.0.1",
|
56
57
|
"has-property-descriptors": "^1.0.1"
|
57
58
|
},
|
@@ -68,7 +69,7 @@
|
|
68
69
|
"@types/tape": "^5.6.4",
|
69
70
|
"aud": "^2.0.4",
|
70
71
|
"auto-changelog": "^2.4.0",
|
71
|
-
"call-bind": "^1.0.
|
72
|
+
"call-bind": "^1.0.6",
|
72
73
|
"es-value-fixtures": "^1.4.2",
|
73
74
|
"eslint": "=8.8.0",
|
74
75
|
"evalmd": "^0.0.19",
|
@@ -78,8 +79,8 @@
|
|
78
79
|
"nyc": "^10.3.2",
|
79
80
|
"object-inspect": "^1.13.1",
|
80
81
|
"safe-publish-latest": "^2.0.0",
|
81
|
-
"tape": "^5.7.
|
82
|
-
"typescript": "
|
82
|
+
"tape": "^5.7.4",
|
83
|
+
"typescript": "next"
|
83
84
|
},
|
84
85
|
"engines": {
|
85
86
|
"node": ">= 0.4"
|
@@ -5,6 +5,15 @@ 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.1.14](https://github.com/inspect-js/which-typed-array/compare/v1.1.13...v1.1.14) - 2024-02-01
|
9
|
+
|
10
|
+
### Commits
|
11
|
+
|
12
|
+
- [patch] add types [`49c4d4c`](https://github.com/inspect-js/which-typed-array/commit/49c4d4c5db9bebb8d6f8c18a01047e44eea15e17)
|
13
|
+
- [Dev Deps] update `aud`, `npmignore`, `tape` [`e5fab7b`](https://github.com/inspect-js/which-typed-array/commit/e5fab7b3dc9df2bceb88f15c3d0a2c0176cf2567)
|
14
|
+
- [Deps] update `available-typed-arrays`, `call-bind` [`97e2b44`](https://github.com/inspect-js/which-typed-array/commit/97e2b44bad85c9183f1219e28211b3abd167677c)
|
15
|
+
- [Deps] update `has-tostringtag` [`1efa8bf`](https://github.com/inspect-js/which-typed-array/commit/1efa8bf910c080c14f011aa7c645ac88bc7a7078)
|
16
|
+
|
8
17
|
## [v1.1.13](https://github.com/inspect-js/which-typed-array/compare/v1.1.12...v1.1.13) - 2023-10-19
|
9
18
|
|
10
19
|
### Commits
|
@@ -0,0 +1,16 @@
|
|
1
|
+
type TypedArrayName =
|
2
|
+
| 'Int8Array'
|
3
|
+
| 'Uint8Array'
|
4
|
+
| 'Uint8ClampedArray'
|
5
|
+
| 'Int16Array'
|
6
|
+
| 'Uint16Array'
|
7
|
+
| 'Int32Array'
|
8
|
+
| 'Uint32Array'
|
9
|
+
| 'Float32Array'
|
10
|
+
| 'Float64Array'
|
11
|
+
| 'BigInt64Array'
|
12
|
+
| 'BigUint64Array';
|
13
|
+
|
14
|
+
declare function whichTypedArray(value: unknown): TypedArrayName | false | null;
|
15
|
+
|
16
|
+
export = whichTypedArray;
|
@@ -15,7 +15,7 @@ var typedArrays = availableTypedArrays();
|
|
15
15
|
var $slice = callBound('String.prototype.slice');
|
16
16
|
var getPrototypeOf = Object.getPrototypeOf; // require('getprototypeof');
|
17
17
|
|
18
|
-
var $indexOf = callBound('Array.prototype.indexOf', true) || function indexOf(array, value) {
|
18
|
+
var $indexOf = callBound('Array.prototype.indexOf', true) || /** @type {(array: readonly unknown[], value: unknown) => keyof array} */ function indexOf(array, value) {
|
19
19
|
for (var i = 0; i < array.length; i += 1) {
|
20
20
|
if (array[i] === value) {
|
21
21
|
return i;
|
@@ -23,17 +23,24 @@ var $indexOf = callBound('Array.prototype.indexOf', true) || function indexOf(ar
|
|
23
23
|
}
|
24
24
|
return -1;
|
25
25
|
};
|
26
|
+
|
27
|
+
/** @typedef {Int8Array | Uint8Array | Uint8ClampedArray | Int16Array | Uint16Array | Int32Array | Uint32Array | Float32Array | Float64Array | BigInt64Array | BigUint64Array} TypedArray */
|
28
|
+
/** @typedef {'Int8Array' | 'Uint8Array' | 'Uint8ClampedArray' | 'Int16Array' | 'Uint16Array' | 'Int32Array' | 'Uint32Array' | 'Float32Array' | 'Float64Array' | 'BigInt64Array' | 'BigUint64Array'} TypedArrayName */
|
29
|
+
/** @type {{ [k in `\$${TypedArrayName}`]?: (receiver: TypedArray) => string | typeof Uint8Array.prototype.slice.call | typeof Uint8Array.prototype.set.call } & { __proto__: null }} */
|
26
30
|
var cache = { __proto__: null };
|
27
31
|
if (hasToStringTag && gOPD && getPrototypeOf) {
|
28
32
|
forEach(typedArrays, function (typedArray) {
|
29
33
|
var arr = new g[typedArray]();
|
30
34
|
if (Symbol.toStringTag in arr) {
|
31
35
|
var proto = getPrototypeOf(arr);
|
36
|
+
// @ts-expect-error TS won't narrow inside a closure
|
32
37
|
var descriptor = gOPD(proto, Symbol.toStringTag);
|
33
38
|
if (!descriptor) {
|
34
39
|
var superProto = getPrototypeOf(proto);
|
40
|
+
// @ts-expect-error TS won't narrow inside a closure
|
35
41
|
descriptor = gOPD(superProto, Symbol.toStringTag);
|
36
42
|
}
|
43
|
+
// @ts-expect-error TODO: fix
|
37
44
|
cache['$' + typedArray] = callBind(descriptor.get);
|
38
45
|
}
|
39
46
|
});
|
@@ -42,38 +49,52 @@ if (hasToStringTag && gOPD && getPrototypeOf) {
|
|
42
49
|
var arr = new g[typedArray]();
|
43
50
|
var fn = arr.slice || arr.set;
|
44
51
|
if (fn) {
|
52
|
+
// @ts-expect-error TODO: fix
|
45
53
|
cache['$' + typedArray] = callBind(fn);
|
46
54
|
}
|
47
55
|
});
|
48
56
|
}
|
49
57
|
|
58
|
+
/** @type {import('.')} */
|
50
59
|
var tryTypedArrays = function tryAllTypedArrays(value) {
|
51
|
-
var found = false;
|
52
|
-
forEach(
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
60
|
+
/** @type {ReturnType<tryAllTypedArrays>} */ var found = false;
|
61
|
+
forEach(
|
62
|
+
// eslint-disable-next-line no-extra-parens
|
63
|
+
/** @type {Record<`\$${TypedArrayName}`, typeof cache>} */ /** @type {any} */ (cache),
|
64
|
+
/** @type {(getter: typeof cache, name: `\$${TypedArrayName}`) => void} */ function (getter, typedArray) {
|
65
|
+
if (!found) {
|
66
|
+
try {
|
67
|
+
// @ts-expect-error TODO: fix
|
68
|
+
if ('$' + getter(value) === typedArray) {
|
69
|
+
found = $slice(typedArray, 1);
|
70
|
+
}
|
71
|
+
} catch (e) { /**/ }
|
72
|
+
}
|
59
73
|
}
|
60
|
-
|
74
|
+
);
|
61
75
|
return found;
|
62
76
|
};
|
63
77
|
|
78
|
+
/** @type {import('.')} */
|
64
79
|
var trySlices = function tryAllSlices(value) {
|
65
|
-
var found = false;
|
66
|
-
forEach(
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
80
|
+
/** @type {ReturnType<tryAllSlices>} */ var found = false;
|
81
|
+
forEach(
|
82
|
+
// eslint-disable-next-line no-extra-parens
|
83
|
+
/** @type {any} */ (cache),
|
84
|
+
/** @type {(getter: typeof cache, name: `\$${TypedArrayName}`) => void} */ function (getter, name) {
|
85
|
+
if (!found) {
|
86
|
+
try {
|
87
|
+
// @ts-expect-error TODO: fix
|
88
|
+
getter(value);
|
89
|
+
found = $slice(name, 1);
|
90
|
+
} catch (e) { /**/ }
|
91
|
+
}
|
72
92
|
}
|
73
|
-
|
93
|
+
);
|
74
94
|
return found;
|
75
95
|
};
|
76
96
|
|
97
|
+
/** @type {import('.')} */
|
77
98
|
module.exports = function whichTypedArray(value) {
|
78
99
|
if (!value || typeof value !== 'object') { return false; }
|
79
100
|
if (!hasToStringTag) {
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "which-typed-array",
|
3
|
-
"version": "1.1.
|
3
|
+
"version": "1.1.14",
|
4
4
|
"author": {
|
5
5
|
"name": "Jordan Harband",
|
6
6
|
"email": "ljharb@gmail.com",
|
@@ -19,6 +19,7 @@
|
|
19
19
|
"description": "Which kind of Typed Array is this JavaScript value? Works cross-realm, without `instanceof`, and despite Symbol.toStringTag.",
|
20
20
|
"license": "MIT",
|
21
21
|
"main": "index.js",
|
22
|
+
"types": "./index.d.ts",
|
22
23
|
"sideEffects": false,
|
23
24
|
"scripts": {
|
24
25
|
"prepack": "npmignore --auto --commentLines=autogenerated",
|
@@ -30,6 +31,7 @@
|
|
30
31
|
"test:harmony": "nyc node --harmony --es-staging test",
|
31
32
|
"posttest": "aud --production",
|
32
33
|
"lint": "eslint --ext=js,mjs .",
|
34
|
+
"postlint": "tsc -p .",
|
33
35
|
"version": "auto-changelog && git add CHANGELOG.md",
|
34
36
|
"postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\""
|
35
37
|
},
|
@@ -58,25 +60,34 @@
|
|
58
60
|
"@@toStringTag"
|
59
61
|
],
|
60
62
|
"dependencies": {
|
61
|
-
"available-typed-arrays": "^1.0.
|
62
|
-
"call-bind": "^1.0.
|
63
|
+
"available-typed-arrays": "^1.0.6",
|
64
|
+
"call-bind": "^1.0.5",
|
63
65
|
"for-each": "^0.3.3",
|
64
66
|
"gopd": "^1.0.1",
|
65
|
-
"has-tostringtag": "^1.0.
|
67
|
+
"has-tostringtag": "^1.0.1"
|
66
68
|
},
|
67
69
|
"devDependencies": {
|
68
70
|
"@ljharb/eslint-config": "^21.1.0",
|
69
|
-
"
|
71
|
+
"@types/call-bind": "^1.0.5",
|
72
|
+
"@types/for-each": "^0.3.3",
|
73
|
+
"@types/gopd": "^1.0.3",
|
74
|
+
"@types/is-callable": "^1.1.2",
|
75
|
+
"@types/make-arrow-function": "^1.2.2",
|
76
|
+
"@types/make-generator-function": "^2.0.3",
|
77
|
+
"@types/node": "^20.11.14",
|
78
|
+
"@types/tape": "^5.6.4",
|
79
|
+
"aud": "^2.0.4",
|
70
80
|
"auto-changelog": "^2.4.0",
|
71
81
|
"eslint": "=8.8.0",
|
72
82
|
"in-publish": "^2.0.1",
|
73
83
|
"is-callable": "^1.2.7",
|
74
84
|
"make-arrow-function": "^1.2.0",
|
75
85
|
"make-generator-function": "^2.0.0",
|
76
|
-
"npmignore": "^0.3.
|
86
|
+
"npmignore": "^0.3.1",
|
77
87
|
"nyc": "^10.3.2",
|
78
88
|
"safe-publish-latest": "^2.0.0",
|
79
|
-
"tape": "^5.7.
|
89
|
+
"tape": "^5.7.4",
|
90
|
+
"typescript": "^5.4.0-dev.20240131"
|
80
91
|
},
|
81
92
|
"testling": {
|
82
93
|
"files": "test/index.js",
|
@@ -24,6 +24,7 @@ var typedArrayNames = [
|
|
24
24
|
|
25
25
|
test('not arrays', function (t) {
|
26
26
|
t.test('non-number/string primitives', function (st) {
|
27
|
+
// @ts-expect-error
|
27
28
|
st.equal(false, whichTypedArray(), 'undefined is not typed array');
|
28
29
|
st.equal(false, whichTypedArray(null), 'null is not typed array');
|
29
30
|
st.equal(false, whichTypedArray(false), 'false is not typed array');
|
@@ -74,9 +75,13 @@ test('Arrow functions', { skip: arrows.length === 0 }, function (t) {
|
|
74
75
|
|
75
76
|
test('@@toStringTag', { skip: !hasToStringTag }, function (t) {
|
76
77
|
forEach(typedArrayNames, function (typedArray) {
|
78
|
+
// @ts-expect-error TODO: fix
|
77
79
|
if (typeof global[typedArray] === 'function') {
|
80
|
+
// @ts-expect-error TODO: fix
|
78
81
|
var fakeTypedArray = [];
|
82
|
+
// @ts-expect-error TODO: fix
|
79
83
|
fakeTypedArray[Symbol.toStringTag] = typedArray;
|
84
|
+
// @ts-expect-error TODO: fix
|
80
85
|
t.equal(false, whichTypedArray(fakeTypedArray), 'faked ' + typedArray + ' is not typed array');
|
81
86
|
} else {
|
82
87
|
t.comment('# SKIP ' + typedArray + ' is not supported');
|
@@ -85,9 +90,12 @@ test('@@toStringTag', { skip: !hasToStringTag }, function (t) {
|
|
85
90
|
t.end();
|
86
91
|
});
|
87
92
|
|
93
|
+
/** @typedef {Int8ArrayConstructor | Uint8ArrayConstructor | Uint8ClampedArrayConstructor | Int16ArrayConstructor | Uint16ArrayConstructor | Int32ArrayConstructor | Uint32ArrayConstructor | Float32ArrayConstructor | Float64ArrayConstructor | BigInt64ArrayConstructor | BigUint64ArrayConstructor} TypedArrayConstructor */
|
94
|
+
|
88
95
|
test('Typed Arrays', function (t) {
|
89
96
|
forEach(typedArrayNames, function (typedArray) {
|
90
|
-
|
97
|
+
// @ts-expect-error TODO: fix
|
98
|
+
/** @type {TypedArrayConstructor} */ var TypedArray = global[typedArray];
|
91
99
|
if (isCallable(TypedArray)) {
|
92
100
|
var arr = new TypedArray(10);
|
93
101
|
t.equal(whichTypedArray(arr), typedArray, 'new ' + typedArray + '(10) is typed array of type ' + typedArray);
|
@@ -0,0 +1,49 @@
|
|
1
|
+
{
|
2
|
+
"compilerOptions": {
|
3
|
+
/* Visit https://aka.ms/tsconfig to read more about this file */
|
4
|
+
|
5
|
+
/* Projects */
|
6
|
+
|
7
|
+
/* Language and Environment */
|
8
|
+
"target": "ESNext", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
|
9
|
+
// "lib": [], /* Specify a set of bundled library declaration files that describe the target runtime environment. */
|
10
|
+
// "noLib": true, /* Disable including any library files, including the default lib.d.ts. */
|
11
|
+
"useDefineForClassFields": true, /* Emit ECMAScript-standard-compliant class fields. */
|
12
|
+
// "moduleDetection": "auto", /* Control what method is used to detect module-format JS files. */
|
13
|
+
|
14
|
+
/* Modules */
|
15
|
+
"module": "commonjs", /* Specify what module code is generated. */
|
16
|
+
// "rootDir": "./", /* Specify the root folder within your source files. */
|
17
|
+
// "moduleResolution": "node10", /* Specify how TypeScript looks up a file from a given module specifier. */
|
18
|
+
// "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */
|
19
|
+
// "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */
|
20
|
+
// "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */
|
21
|
+
"typeRoots": ["types"], /* Specify multiple folders that act like './node_modules/@types'. */
|
22
|
+
"resolveJsonModule": true, /* Enable importing .json files. */
|
23
|
+
// "allowArbitraryExtensions": true, /* Enable importing files with any extension, provided a declaration file is present. */
|
24
|
+
|
25
|
+
/* JavaScript Support */
|
26
|
+
"allowJs": true, /* Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files. */
|
27
|
+
"checkJs": true, /* Enable error reporting in type-checked JavaScript files. */
|
28
|
+
"maxNodeModuleJsDepth": 0, /* Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'. */
|
29
|
+
|
30
|
+
/* Emit */
|
31
|
+
"declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */
|
32
|
+
"declarationMap": true, /* Create sourcemaps for d.ts files. */
|
33
|
+
"noEmit": true, /* Disable emitting files from a compilation. */
|
34
|
+
|
35
|
+
/* Interop Constraints */
|
36
|
+
"allowSyntheticDefaultImports": true, /* Allow 'import x from y' when a module doesn't have a default export. */
|
37
|
+
"esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */
|
38
|
+
"forceConsistentCasingInFileNames": true, /* Ensure that casing is correct in imports. */
|
39
|
+
|
40
|
+
/* Type Checking */
|
41
|
+
"strict": true, /* Enable all strict type-checking options. */
|
42
|
+
|
43
|
+
/* Completeness */
|
44
|
+
//"skipLibCheck": true /* Skip type checking all .d.ts files. */
|
45
|
+
},
|
46
|
+
"exclude": [
|
47
|
+
"coverage"
|
48
|
+
]
|
49
|
+
}
|
package/package.json
CHANGED
@@ -40,7 +40,7 @@
|
|
40
40
|
},
|
41
41
|
"devDependencies": {
|
42
42
|
"@types/jest": "^27",
|
43
|
-
"@types/node": "^16",
|
43
|
+
"@types/node": "^16 <= 16.18.78",
|
44
44
|
"@typescript-eslint/eslint-plugin": "^6",
|
45
45
|
"@typescript-eslint/parser": "^6",
|
46
46
|
"aws-cdk-lib": "^2.95.0",
|
@@ -55,7 +55,7 @@
|
|
55
55
|
"jsii-docgen": "^1.8.110",
|
56
56
|
"jsii-pacmak": "^1.94.0",
|
57
57
|
"jsii-rosetta": "1.x",
|
58
|
-
"projen": "^0.79.
|
58
|
+
"projen": "^0.79.9",
|
59
59
|
"source-map-support": "^0.5.21",
|
60
60
|
"standard-version": "^9",
|
61
61
|
"ts-jest": "^27",
|
@@ -67,7 +67,7 @@
|
|
67
67
|
},
|
68
68
|
"dependencies": {
|
69
69
|
"aws-cdk-lib": "^2.95.0",
|
70
|
-
"aws-sdk": "^2.
|
70
|
+
"aws-sdk": "^2.1553.0",
|
71
71
|
"constructs": "^10.0.5"
|
72
72
|
},
|
73
73
|
"bundledDependencies": [
|
@@ -89,7 +89,7 @@
|
|
89
89
|
],
|
90
90
|
"main": "lib/index.js",
|
91
91
|
"license": "Apache-2.0",
|
92
|
-
"version": "2.0.
|
92
|
+
"version": "2.0.369",
|
93
93
|
"jest": {
|
94
94
|
"testMatch": [
|
95
95
|
"<rootDir>/src/**/__tests__/**/*.ts?(x)",
|
@@ -1 +0,0 @@
|
|
1
|
-
coverage/
|