cdk-lambda-subminute 2.0.401 → 2.0.403
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/aws-sdk/README.md +1 -1
- package/node_modules/aws-sdk/apis/codestar-connections-2019-12-01.min.json +27 -21
- package/node_modules/aws-sdk/apis/connect-2017-08-08.min.json +52 -52
- package/node_modules/aws-sdk/apis/kafka-2018-11-14.min.json +53 -44
- package/node_modules/aws-sdk/apis/mediapackagev2-2022-12-25.min.json +51 -30
- package/node_modules/aws-sdk/clients/cloudformation.d.ts +5 -5
- package/node_modules/aws-sdk/clients/codestarconnections.d.ts +26 -0
- package/node_modules/aws-sdk/clients/connect.d.ts +20 -19
- package/node_modules/aws-sdk/clients/ec2.d.ts +147 -147
- package/node_modules/aws-sdk/clients/elasticache.d.ts +5 -5
- package/node_modules/aws-sdk/clients/kafka.d.ts +11 -0
- package/node_modules/aws-sdk/clients/mediapackagev2.d.ts +49 -0
- package/node_modules/aws-sdk/clients/ssm.d.ts +48 -48
- package/node_modules/aws-sdk/dist/aws-sdk-core-react-native.js +18 -17
- package/node_modules/aws-sdk/dist/aws-sdk-react-native.js +39 -37
- package/node_modules/aws-sdk/dist/aws-sdk.js +55 -55
- package/node_modules/aws-sdk/dist/aws-sdk.min.js +4 -4
- package/node_modules/aws-sdk/lib/core.js +1 -1
- package/node_modules/aws-sdk/package.json +1 -1
- package/node_modules/which-typed-array/CHANGELOG.md +11 -0
- package/node_modules/which-typed-array/index.d.ts +59 -14
- package/node_modules/which-typed-array/index.js +16 -13
- package/node_modules/which-typed-array/package.json +10 -8
- package/node_modules/which-typed-array/test/index.js +1 -3
- package/node_modules/which-typed-array/tsconfig.json +2 -42
- package/package.json +2 -2
@@ -5,6 +5,17 @@ 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.15](https://github.com/inspect-js/which-typed-array/compare/v1.1.14...v1.1.15) - 2024-03-10
|
9
|
+
|
10
|
+
### Commits
|
11
|
+
|
12
|
+
- [types] use a namespace; improve type [`f42bec3`](https://github.com/inspect-js/which-typed-array/commit/f42bec34d5c47bd9e4ab1b48dcde60c09c666712)
|
13
|
+
- [types] use shared config [`464a9e3`](https://github.com/inspect-js/which-typed-array/commit/464a9e358c2597253c747970b12032406a19b8d2)
|
14
|
+
- [actions] remove redundant finisher; use reusable workflow [`d114ee8`](https://github.com/inspect-js/which-typed-array/commit/d114ee83ceb6c7898386f4b5935a3ed9e2ec61e4)
|
15
|
+
- [Dev Deps] update `@types/node`, `tape`, `typescript`; add `@arethetypeswrong/cli` [`9cc63d8`](https://github.com/inspect-js/which-typed-array/commit/9cc63d8635e80ce6dabcb352d23050111040d747)
|
16
|
+
- [types] add a helpful hover description [`29ccf8d`](https://github.com/inspect-js/which-typed-array/commit/29ccf8dab0f805cdac6ec56d7b9cc27476708273)
|
17
|
+
- [Deps] update `available-typed-arrays`, `call-bind`, `has-tostringtag` [`7ecfd8e`](https://github.com/inspect-js/which-typed-array/commit/7ecfd8e29d09f8708f7cab7cc41fea9ae5a20867)
|
18
|
+
|
8
19
|
## [v1.1.14](https://github.com/inspect-js/which-typed-array/compare/v1.1.13...v1.1.14) - 2024-02-01
|
9
20
|
|
10
21
|
### Commits
|
@@ -1,16 +1,61 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
1
|
+
/**
|
2
|
+
* Determines the type of the given collection, or returns false.
|
3
|
+
*
|
4
|
+
* @param {unknown} value The potential collection
|
5
|
+
* @returns {TypedArrayName | false | null} 'Int8Array' | 'Uint8Array' | 'Uint8ClampedArray' | 'Int16Array' | 'Uint16Array' | 'Int32Array' | 'Uint32Array' | 'Float32Array' | 'Float64Array' | 'BigInt64Array' | 'BigUint64Array' | false | null
|
6
|
+
*/
|
7
|
+
declare function whichTypedArray(value: Int8Array): 'Int8Array';
|
8
|
+
declare function whichTypedArray(value: Uint8Array): 'Uint8Array';
|
9
|
+
declare function whichTypedArray(value: Uint8ClampedArray): 'Uint8ClampedArray';
|
10
|
+
declare function whichTypedArray(value: Int16Array): 'Int16Array';
|
11
|
+
declare function whichTypedArray(value: Uint16Array): 'Uint16Array';
|
12
|
+
declare function whichTypedArray(value: Int32Array): 'Int32Array';
|
13
|
+
declare function whichTypedArray(value: Uint32Array): 'Uint32Array';
|
14
|
+
declare function whichTypedArray(value: Float32Array): 'Float32Array';
|
15
|
+
declare function whichTypedArray(value: Float64Array): 'Float64Array';
|
16
|
+
declare function whichTypedArray(value: BigInt64Array): 'BigInt64Array';
|
17
|
+
declare function whichTypedArray(value: BigUint64Array): 'BigUint64Array';
|
18
|
+
declare function whichTypedArray(value: unknown): false | null;
|
13
19
|
|
14
|
-
declare
|
20
|
+
declare namespace whichTypedArray {
|
21
|
+
type TypedArrayName =
|
22
|
+
| 'Int8Array'
|
23
|
+
| 'Uint8Array'
|
24
|
+
| 'Uint8ClampedArray'
|
25
|
+
| 'Int16Array'
|
26
|
+
| 'Uint16Array'
|
27
|
+
| 'Int32Array'
|
28
|
+
| 'Uint32Array'
|
29
|
+
| 'Float32Array'
|
30
|
+
| 'Float64Array'
|
31
|
+
| 'BigInt64Array'
|
32
|
+
| 'BigUint64Array';
|
15
33
|
|
16
|
-
|
34
|
+
type TypedArray =
|
35
|
+
| Int8Array
|
36
|
+
| Uint8Array
|
37
|
+
| Uint8ClampedArray
|
38
|
+
| Int16Array
|
39
|
+
| Uint16Array
|
40
|
+
| Int32Array
|
41
|
+
| Uint32Array
|
42
|
+
| Float32Array
|
43
|
+
| Float64Array
|
44
|
+
| BigInt64Array
|
45
|
+
| BigUint64Array;
|
46
|
+
|
47
|
+
type TypedArrayConstructor =
|
48
|
+
| Int8ArrayConstructor
|
49
|
+
| Uint8ArrayConstructor
|
50
|
+
| Uint8ClampedArrayConstructor
|
51
|
+
| Int16ArrayConstructor
|
52
|
+
| Uint16ArrayConstructor
|
53
|
+
| Int32ArrayConstructor
|
54
|
+
| Uint32ArrayConstructor
|
55
|
+
| Float32ArrayConstructor
|
56
|
+
| Float64ArrayConstructor
|
57
|
+
| BigInt64ArrayConstructor
|
58
|
+
| BigUint64ArrayConstructor;
|
59
|
+
}
|
60
|
+
|
61
|
+
export = whichTypedArray;
|
@@ -6,6 +6,7 @@ var callBind = require('call-bind');
|
|
6
6
|
var callBound = require('call-bind/callBound');
|
7
7
|
var gOPD = require('gopd');
|
8
8
|
|
9
|
+
/** @type {(O: object) => string} */
|
9
10
|
var $toString = callBound('Object.prototype.toString');
|
10
11
|
var hasToStringTag = require('has-tostringtag/shams')();
|
11
12
|
|
@@ -15,7 +16,8 @@ var typedArrays = availableTypedArrays();
|
|
15
16
|
var $slice = callBound('String.prototype.slice');
|
16
17
|
var getPrototypeOf = Object.getPrototypeOf; // require('getprototypeof');
|
17
18
|
|
18
|
-
|
19
|
+
/** @type {<T = unknown>(array: readonly T[], value: unknown) => number} */
|
20
|
+
var $indexOf = callBound('Array.prototype.indexOf', true) || function indexOf(array, value) {
|
19
21
|
for (var i = 0; i < array.length; i += 1) {
|
20
22
|
if (array[i] === value) {
|
21
23
|
return i;
|
@@ -24,9 +26,8 @@ var $indexOf = callBound('Array.prototype.indexOf', true) || /** @type {(array:
|
|
24
26
|
return -1;
|
25
27
|
};
|
26
28
|
|
27
|
-
/** @typedef {
|
28
|
-
/** @
|
29
|
-
/** @type {{ [k in `\$${TypedArrayName}`]?: (receiver: TypedArray) => string | typeof Uint8Array.prototype.slice.call | typeof Uint8Array.prototype.set.call } & { __proto__: null }} */
|
29
|
+
/** @typedef {(receiver: import('.').TypedArray) => string | typeof Uint8Array.prototype.slice.call | typeof Uint8Array.prototype.set.call} Getter */
|
30
|
+
/** @type {{ [k in `\$${import('.').TypedArrayName}`]?: Getter } & { __proto__: null }} */
|
30
31
|
var cache = { __proto__: null };
|
31
32
|
if (hasToStringTag && gOPD && getPrototypeOf) {
|
32
33
|
forEach(typedArrays, function (typedArray) {
|
@@ -55,13 +56,14 @@ if (hasToStringTag && gOPD && getPrototypeOf) {
|
|
55
56
|
});
|
56
57
|
}
|
57
58
|
|
58
|
-
/** @type {import('.')} */
|
59
|
+
/** @type {(value: object) => false | import('.').TypedArrayName} */
|
59
60
|
var tryTypedArrays = function tryAllTypedArrays(value) {
|
60
|
-
/** @type {ReturnType<tryAllTypedArrays>} */ var found = false;
|
61
|
+
/** @type {ReturnType<typeof tryAllTypedArrays>} */ var found = false;
|
61
62
|
forEach(
|
62
63
|
// eslint-disable-next-line no-extra-parens
|
63
|
-
/** @type {Record<`\$${TypedArrayName}`,
|
64
|
-
/** @type {(getter:
|
64
|
+
/** @type {Record<`\$${TypedArrayName}`, Getter>} */ /** @type {any} */ (cache),
|
65
|
+
/** @type {(getter: Getter, name: `\$${import('.').TypedArrayName}`) => void} */
|
66
|
+
function (getter, typedArray) {
|
65
67
|
if (!found) {
|
66
68
|
try {
|
67
69
|
// @ts-expect-error TODO: fix
|
@@ -75,16 +77,16 @@ var tryTypedArrays = function tryAllTypedArrays(value) {
|
|
75
77
|
return found;
|
76
78
|
};
|
77
79
|
|
78
|
-
/** @type {import('.')} */
|
80
|
+
/** @type {(value: object) => false | import('.').TypedArrayName} */
|
79
81
|
var trySlices = function tryAllSlices(value) {
|
80
|
-
/** @type {ReturnType<tryAllSlices>} */ var found = false;
|
82
|
+
/** @type {ReturnType<typeof tryAllSlices>} */ var found = false;
|
81
83
|
forEach(
|
82
84
|
// eslint-disable-next-line no-extra-parens
|
83
|
-
/** @type {any} */ (cache),
|
84
|
-
/** @type {(getter: typeof cache, name: `\$${TypedArrayName}`) => void} */ function (getter, name) {
|
85
|
+
/** @type {Record<`\$${TypedArrayName}`, Getter>} */ /** @type {any} */ (cache),
|
86
|
+
/** @type {(getter: typeof cache, name: `\$${import('.').TypedArrayName}`) => void} */ function (getter, name) {
|
85
87
|
if (!found) {
|
86
88
|
try {
|
87
|
-
|
89
|
+
// @ts-expect-error TODO: fix
|
88
90
|
getter(value);
|
89
91
|
found = $slice(name, 1);
|
90
92
|
} catch (e) { /**/ }
|
@@ -98,6 +100,7 @@ var trySlices = function tryAllSlices(value) {
|
|
98
100
|
module.exports = function whichTypedArray(value) {
|
99
101
|
if (!value || typeof value !== 'object') { return false; }
|
100
102
|
if (!hasToStringTag) {
|
103
|
+
/** @type {string} */
|
101
104
|
var tag = $slice($toString(value), 8, -1);
|
102
105
|
if ($indexOf(typedArrays, tag) > -1) {
|
103
106
|
return tag;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "which-typed-array",
|
3
|
-
"version": "1.1.
|
3
|
+
"version": "1.1.15",
|
4
4
|
"author": {
|
5
5
|
"name": "Jordan Harband",
|
6
6
|
"email": "ljharb@gmail.com",
|
@@ -31,7 +31,7 @@
|
|
31
31
|
"test:harmony": "nyc node --harmony --es-staging test",
|
32
32
|
"posttest": "aud --production",
|
33
33
|
"lint": "eslint --ext=js,mjs .",
|
34
|
-
"postlint": "tsc -p .",
|
34
|
+
"postlint": "tsc -p . && attw -P",
|
35
35
|
"version": "auto-changelog && git add CHANGELOG.md",
|
36
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)\")\""
|
37
37
|
},
|
@@ -60,21 +60,23 @@
|
|
60
60
|
"@@toStringTag"
|
61
61
|
],
|
62
62
|
"dependencies": {
|
63
|
-
"available-typed-arrays": "^1.0.
|
64
|
-
"call-bind": "^1.0.
|
63
|
+
"available-typed-arrays": "^1.0.7",
|
64
|
+
"call-bind": "^1.0.7",
|
65
65
|
"for-each": "^0.3.3",
|
66
66
|
"gopd": "^1.0.1",
|
67
|
-
"has-tostringtag": "^1.0.
|
67
|
+
"has-tostringtag": "^1.0.2"
|
68
68
|
},
|
69
69
|
"devDependencies": {
|
70
|
+
"@arethetypeswrong/cli": "^0.15.1",
|
70
71
|
"@ljharb/eslint-config": "^21.1.0",
|
72
|
+
"@ljharb/tsconfig": "^0.2.0",
|
71
73
|
"@types/call-bind": "^1.0.5",
|
72
74
|
"@types/for-each": "^0.3.3",
|
73
75
|
"@types/gopd": "^1.0.3",
|
74
76
|
"@types/is-callable": "^1.1.2",
|
75
77
|
"@types/make-arrow-function": "^1.2.2",
|
76
78
|
"@types/make-generator-function": "^2.0.3",
|
77
|
-
"@types/node": "^20.11.
|
79
|
+
"@types/node": "^20.11.25",
|
78
80
|
"@types/tape": "^5.6.4",
|
79
81
|
"aud": "^2.0.4",
|
80
82
|
"auto-changelog": "^2.4.0",
|
@@ -86,8 +88,8 @@
|
|
86
88
|
"npmignore": "^0.3.1",
|
87
89
|
"nyc": "^10.3.2",
|
88
90
|
"safe-publish-latest": "^2.0.0",
|
89
|
-
"tape": "^5.7.
|
90
|
-
"typescript": "
|
91
|
+
"tape": "^5.7.5",
|
92
|
+
"typescript": "next"
|
91
93
|
},
|
92
94
|
"testling": {
|
93
95
|
"files": "test/index.js",
|
@@ -90,12 +90,10 @@ test('@@toStringTag', { skip: !hasToStringTag }, function (t) {
|
|
90
90
|
t.end();
|
91
91
|
});
|
92
92
|
|
93
|
-
/** @typedef {Int8ArrayConstructor | Uint8ArrayConstructor | Uint8ClampedArrayConstructor | Int16ArrayConstructor | Uint16ArrayConstructor | Int32ArrayConstructor | Uint32ArrayConstructor | Float32ArrayConstructor | Float64ArrayConstructor | BigInt64ArrayConstructor | BigUint64ArrayConstructor} TypedArrayConstructor */
|
94
|
-
|
95
93
|
test('Typed Arrays', function (t) {
|
96
94
|
forEach(typedArrayNames, function (typedArray) {
|
97
95
|
// @ts-expect-error TODO: fix
|
98
|
-
/** @type {TypedArrayConstructor} */ var TypedArray = global[typedArray];
|
96
|
+
/** @type {import('../').TypedArrayConstructor} */ var TypedArray = global[typedArray];
|
99
97
|
if (isCallable(TypedArray)) {
|
100
98
|
var arr = new TypedArray(10);
|
101
99
|
t.equal(whichTypedArray(arr), typedArray, 'new ' + typedArray + '(10) is typed array of type ' + typedArray);
|
@@ -1,47 +1,7 @@
|
|
1
1
|
{
|
2
|
+
"extends": "@ljharb/tsconfig",
|
2
3
|
"compilerOptions": {
|
3
|
-
|
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. */
|
4
|
+
"target": "ES2021",
|
45
5
|
},
|
46
6
|
"exclude": [
|
47
7
|
"coverage"
|
package/package.json
CHANGED
@@ -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.1576.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.403",
|
93
93
|
"jest": {
|
94
94
|
"testMatch": [
|
95
95
|
"<rootDir>/src/**/__tests__/**/*.ts?(x)",
|