cdk-lambda-subminute 2.0.368 → 2.0.370

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.
Files changed (117) hide show
  1. package/.jsii +3 -3
  2. package/lib/cdk-lambda-subminute.js +3 -3
  3. package/node_modules/available-typed-arrays/.eslintrc +0 -4
  4. package/node_modules/available-typed-arrays/CHANGELOG.md +15 -0
  5. package/node_modules/available-typed-arrays/index.d.ts +17 -0
  6. package/node_modules/available-typed-arrays/index.js +4 -2
  7. package/node_modules/available-typed-arrays/package.json +23 -15
  8. package/node_modules/available-typed-arrays/tsconfig.json +49 -0
  9. package/node_modules/aws-sdk/README.md +1 -1
  10. package/node_modules/aws-sdk/apis/appsync-2017-07-25.min.json +67 -6
  11. package/node_modules/aws-sdk/apis/codepipeline-2015-07-09.min.json +163 -81
  12. package/node_modules/aws-sdk/apis/cognito-idp-2016-04-18.min.json +1 -1
  13. package/node_modules/aws-sdk/apis/datasync-2018-11-09.min.json +76 -32
  14. package/node_modules/aws-sdk/apis/es-2015-01-01.min.json +227 -152
  15. package/node_modules/aws-sdk/apis/glue-2017-03-31.min.json +102 -101
  16. package/node_modules/aws-sdk/apis/ivs-2020-07-14.min.json +240 -49
  17. package/node_modules/aws-sdk/apis/ivs-2020-07-14.paginators.json +5 -0
  18. package/node_modules/aws-sdk/apis/logs-2014-03-28.min.json +2 -1
  19. package/node_modules/aws-sdk/apis/managedblockchain-query-2023-05-04.min.json +14 -5
  20. package/node_modules/aws-sdk/apis/mediaconvert-2017-08-29.min.json +104 -87
  21. package/node_modules/aws-sdk/apis/models.lex.v2-2020-08-07.min.json +597 -333
  22. package/node_modules/aws-sdk/apis/models.lex.v2-2020-08-07.paginators.json +10 -0
  23. package/node_modules/aws-sdk/apis/opensearch-2021-01-01.min.json +259 -184
  24. package/node_modules/aws-sdk/apis/quicksight-2018-04-01.min.json +852 -756
  25. package/node_modules/aws-sdk/apis/redshift-2012-12-01.min.json +68 -3
  26. package/node_modules/aws-sdk/apis/redshift-2012-12-01.paginators.json +6 -0
  27. package/node_modules/aws-sdk/apis/sagemaker-2017-07-24.min.json +779 -773
  28. package/node_modules/aws-sdk/apis/wafv2-2019-07-29.min.json +45 -28
  29. package/node_modules/aws-sdk/apis/workspaces-2015-04-08.min.json +75 -72
  30. package/node_modules/aws-sdk/clients/appsync.d.ts +47 -0
  31. package/node_modules/aws-sdk/clients/cloudwatchlogs.d.ts +12 -8
  32. package/node_modules/aws-sdk/clients/codepipeline.d.ts +102 -7
  33. package/node_modules/aws-sdk/clients/cognitoidentityserviceprovider.d.ts +63 -63
  34. package/node_modules/aws-sdk/clients/datasync.d.ts +185 -124
  35. package/node_modules/aws-sdk/clients/dynamodb.d.ts +3 -3
  36. package/node_modules/aws-sdk/clients/ecs.d.ts +5 -5
  37. package/node_modules/aws-sdk/clients/es.d.ts +111 -0
  38. package/node_modules/aws-sdk/clients/glue.d.ts +8 -3
  39. package/node_modules/aws-sdk/clients/ivs.d.ts +223 -4
  40. package/node_modules/aws-sdk/clients/lexmodelsv2.d.ts +324 -0
  41. package/node_modules/aws-sdk/clients/managedblockchainquery.d.ts +30 -20
  42. package/node_modules/aws-sdk/clients/mediaconvert.d.ts +17 -8
  43. package/node_modules/aws-sdk/clients/opensearch.d.ts +108 -0
  44. package/node_modules/aws-sdk/clients/quicksight.d.ts +130 -2
  45. package/node_modules/aws-sdk/clients/redshift.d.ts +119 -0
  46. package/node_modules/aws-sdk/clients/sagemaker.d.ts +51 -41
  47. package/node_modules/aws-sdk/clients/wafv2.d.ts +23 -3
  48. package/node_modules/aws-sdk/clients/workspaces.d.ts +16 -3
  49. package/node_modules/aws-sdk/dist/aws-sdk-core-react-native.js +211 -108
  50. package/node_modules/aws-sdk/dist/aws-sdk-react-native.js +2388 -2182
  51. package/node_modules/aws-sdk/dist/aws-sdk.js +243 -89
  52. package/node_modules/aws-sdk/dist/aws-sdk.min.js +89 -89
  53. package/node_modules/aws-sdk/lib/core.js +1 -1
  54. package/node_modules/aws-sdk/lib/credentials/remote_credentials.js +14 -2
  55. package/node_modules/aws-sdk/lib/dynamodb/document_client.d.ts +1 -1
  56. package/node_modules/aws-sdk/package.json +1 -1
  57. package/node_modules/call-bind/CHANGELOG.md +9 -0
  58. package/node_modules/call-bind/index.js +1 -1
  59. package/node_modules/call-bind/package.json +10 -6
  60. package/node_modules/define-data-property/CHANGELOG.md +11 -0
  61. package/node_modules/define-data-property/index.js +2 -2
  62. package/node_modules/define-data-property/package.json +19 -18
  63. package/node_modules/define-data-property/test/index.js +7 -7
  64. package/node_modules/es-errors/.eslintrc +5 -0
  65. package/node_modules/es-errors/.github/FUNDING.yml +12 -0
  66. package/node_modules/es-errors/CHANGELOG.md +40 -0
  67. package/node_modules/es-errors/LICENSE +21 -0
  68. package/node_modules/es-errors/README.md +55 -0
  69. package/node_modules/es-errors/eval.d.ts +3 -0
  70. package/node_modules/es-errors/eval.js +4 -0
  71. package/node_modules/es-errors/index.d.ts +3 -0
  72. package/node_modules/es-errors/index.js +4 -0
  73. package/node_modules/es-errors/package.json +80 -0
  74. package/node_modules/es-errors/range.d.ts +3 -0
  75. package/node_modules/es-errors/range.js +4 -0
  76. package/node_modules/es-errors/ref.d.ts +3 -0
  77. package/node_modules/es-errors/ref.js +4 -0
  78. package/node_modules/es-errors/syntax.d.ts +3 -0
  79. package/node_modules/es-errors/syntax.js +4 -0
  80. package/node_modules/es-errors/test/index.js +19 -0
  81. package/node_modules/es-errors/tsconfig.json +49 -0
  82. package/node_modules/es-errors/type.d.ts +3 -0
  83. package/node_modules/es-errors/type.js +4 -0
  84. package/node_modules/es-errors/uri.d.ts +3 -0
  85. package/node_modules/es-errors/uri.js +4 -0
  86. package/node_modules/get-intrinsic/CHANGELOG.md +18 -0
  87. package/node_modules/get-intrinsic/index.js +15 -7
  88. package/node_modules/get-intrinsic/package.json +12 -12
  89. package/node_modules/has-tostringtag/.eslintrc +0 -6
  90. package/node_modules/has-tostringtag/.nycrc +13 -0
  91. package/node_modules/has-tostringtag/CHANGELOG.md +22 -0
  92. package/node_modules/has-tostringtag/index.d.ts +3 -0
  93. package/node_modules/has-tostringtag/index.js +1 -0
  94. package/node_modules/has-tostringtag/package.json +37 -13
  95. package/node_modules/has-tostringtag/shams.d.ts +3 -0
  96. package/node_modules/has-tostringtag/shams.js +1 -0
  97. package/node_modules/has-tostringtag/test/shams/core-js.js +3 -0
  98. package/node_modules/has-tostringtag/test/shams/get-own-property-symbols.js +2 -0
  99. package/node_modules/has-tostringtag/test/tests.js +2 -1
  100. package/node_modules/has-tostringtag/tsconfig.json +49 -0
  101. package/node_modules/is-typed-array/CHANGELOG.md +10 -0
  102. package/node_modules/is-typed-array/index.d.ts +16 -0
  103. package/node_modules/is-typed-array/index.js +1 -0
  104. package/node_modules/is-typed-array/package.json +18 -7
  105. package/node_modules/is-typed-array/test/index.js +9 -1
  106. package/node_modules/is-typed-array/tsconfig.json +49 -0
  107. package/node_modules/set-function-length/CHANGELOG.md +8 -0
  108. package/node_modules/set-function-length/index.js +1 -1
  109. package/node_modules/set-function-length/package.json +7 -6
  110. package/node_modules/which-typed-array/CHANGELOG.md +9 -0
  111. package/node_modules/which-typed-array/index.d.ts +16 -0
  112. package/node_modules/which-typed-array/index.js +39 -18
  113. package/node_modules/which-typed-array/package.json +18 -7
  114. package/node_modules/which-typed-array/test/index.js +9 -1
  115. package/node_modules/which-typed-array/tsconfig.json +49 -0
  116. package/package.json +4 -4
  117. package/node_modules/available-typed-arrays/.eslintignore +0 -1
@@ -0,0 +1,4 @@
1
+ 'use strict';
2
+
3
+ /** @type {import('./uri')} */
4
+ module.exports = URIError;
@@ -5,6 +5,24 @@ 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.4](https://github.com/ljharb/get-intrinsic/compare/v1.2.3...v1.2.4) - 2024-02-05
9
+
10
+ ### Commits
11
+
12
+ - [Refactor] use all 7 <+ ES6 Errors from `es-errors` [`bcac811`](https://github.com/ljharb/get-intrinsic/commit/bcac811abdc1c982e12abf848a410d6aae148d14)
13
+
14
+ ## [v1.2.3](https://github.com/ljharb/get-intrinsic/compare/v1.2.2...v1.2.3) - 2024-02-03
15
+
16
+ ### Commits
17
+
18
+ - [Refactor] use `es-errors`, so things that only need those do not need `get-intrinsic` [`f11db9c`](https://github.com/ljharb/get-intrinsic/commit/f11db9c4fb97d87bbd53d3c73ac6b3db3613ad3b)
19
+ - [Dev Deps] update `aud`, `es-abstract`, `mock-property`, `npmignore` [`b7ac7d1`](https://github.com/ljharb/get-intrinsic/commit/b7ac7d1616fefb03877b1aed0c8f8d61aad32b6c)
20
+ - [meta] simplify `exports` [`faa0cc6`](https://github.com/ljharb/get-intrinsic/commit/faa0cc618e2830ffb51a8202490b0c215d965cbc)
21
+ - [meta] add missing `engines.node` [`774dd0b`](https://github.com/ljharb/get-intrinsic/commit/774dd0b3e8f741c3f05a6322d124d6087f146af1)
22
+ - [Dev Deps] update `tape` [`5828e8e`](https://github.com/ljharb/get-intrinsic/commit/5828e8e4a04e69312e87a36c0ea39428a7a4c3d8)
23
+ - [Robustness] use null objects for lookups [`eb9a11f`](https://github.com/ljharb/get-intrinsic/commit/eb9a11fa9eb3e13b193fcc05a7fb814341b1a7b7)
24
+ - [meta] add `sideEffects` flag [`89bcc7a`](https://github.com/ljharb/get-intrinsic/commit/89bcc7a42e19bf07b7c21e3094d5ab177109e6d2)
25
+
8
26
  ## [v1.2.2](https://github.com/ljharb/get-intrinsic/compare/v1.2.1...v1.2.2) - 2023-10-20
9
27
 
10
28
  ### Commits
@@ -2,9 +2,15 @@
2
2
 
3
3
  var undefined;
4
4
 
5
- var $SyntaxError = SyntaxError;
5
+ var $Error = require('es-errors');
6
+ var $EvalError = require('es-errors/eval');
7
+ var $RangeError = require('es-errors/range');
8
+ var $ReferenceError = require('es-errors/ref');
9
+ var $SyntaxError = require('es-errors/syntax');
10
+ var $TypeError = require('es-errors/type');
11
+ var $URIError = require('es-errors/uri');
12
+
6
13
  var $Function = Function;
7
- var $TypeError = TypeError;
8
14
 
9
15
  // eslint-disable-next-line consistent-return
10
16
  var getEvalledConstructor = function (expressionSyntax) {
@@ -56,6 +62,7 @@ var needsEval = {};
56
62
  var TypedArray = typeof Uint8Array === 'undefined' || !getProto ? undefined : getProto(Uint8Array);
57
63
 
58
64
  var INTRINSICS = {
65
+ __proto__: null,
59
66
  '%AggregateError%': typeof AggregateError === 'undefined' ? undefined : AggregateError,
60
67
  '%Array%': Array,
61
68
  '%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined : ArrayBuffer,
@@ -76,9 +83,9 @@ var INTRINSICS = {
76
83
  '%decodeURIComponent%': decodeURIComponent,
77
84
  '%encodeURI%': encodeURI,
78
85
  '%encodeURIComponent%': encodeURIComponent,
79
- '%Error%': Error,
86
+ '%Error%': $Error,
80
87
  '%eval%': eval, // eslint-disable-line no-eval
81
- '%EvalError%': EvalError,
88
+ '%EvalError%': $EvalError,
82
89
  '%Float32Array%': typeof Float32Array === 'undefined' ? undefined : Float32Array,
83
90
  '%Float64Array%': typeof Float64Array === 'undefined' ? undefined : Float64Array,
84
91
  '%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined : FinalizationRegistry,
@@ -100,8 +107,8 @@ var INTRINSICS = {
100
107
  '%parseInt%': parseInt,
101
108
  '%Promise%': typeof Promise === 'undefined' ? undefined : Promise,
102
109
  '%Proxy%': typeof Proxy === 'undefined' ? undefined : Proxy,
103
- '%RangeError%': RangeError,
104
- '%ReferenceError%': ReferenceError,
110
+ '%RangeError%': $RangeError,
111
+ '%ReferenceError%': $ReferenceError,
105
112
  '%Reflect%': typeof Reflect === 'undefined' ? undefined : Reflect,
106
113
  '%RegExp%': RegExp,
107
114
  '%Set%': typeof Set === 'undefined' ? undefined : Set,
@@ -118,7 +125,7 @@ var INTRINSICS = {
118
125
  '%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined : Uint8ClampedArray,
119
126
  '%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined : Uint16Array,
120
127
  '%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined : Uint32Array,
121
- '%URIError%': URIError,
128
+ '%URIError%': $URIError,
122
129
  '%WeakMap%': typeof WeakMap === 'undefined' ? undefined : WeakMap,
123
130
  '%WeakRef%': typeof WeakRef === 'undefined' ? undefined : WeakRef,
124
131
  '%WeakSet%': typeof WeakSet === 'undefined' ? undefined : WeakSet
@@ -160,6 +167,7 @@ var doEval = function doEval(name) {
160
167
  };
161
168
 
162
169
  var LEGACY_ALIASES = {
170
+ __proto__: null,
163
171
  '%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'],
164
172
  '%ArrayPrototype%': ['Array', 'prototype'],
165
173
  '%ArrayProto_entries%': ['Array', 'prototype', 'entries'],
@@ -1,17 +1,13 @@
1
1
  {
2
2
  "name": "get-intrinsic",
3
- "version": "1.2.2",
3
+ "version": "1.2.4",
4
4
  "description": "Get and robustly cache all JS language-level intrinsics at first require time",
5
5
  "main": "index.js",
6
6
  "exports": {
7
- ".": [
8
- {
9
- "default": "./index.js"
10
- },
11
- "./index.js"
12
- ],
7
+ ".": "./index.js",
13
8
  "./package.json": "./package.json"
14
9
  },
10
+ "sideEffects": false,
15
11
  "scripts": {
16
12
  "prepack": "npmignore --auto --commentLines=autogenerated",
17
13
  "prepublish": "not-in-publish || npm run prepublishOnly",
@@ -49,10 +45,10 @@
49
45
  "homepage": "https://github.com/ljharb/get-intrinsic#readme",
50
46
  "devDependencies": {
51
47
  "@ljharb/eslint-config": "^21.1.0",
52
- "aud": "^2.0.3",
48
+ "aud": "^2.0.4",
53
49
  "auto-changelog": "^2.4.0",
54
50
  "call-bind": "^1.0.5",
55
- "es-abstract": "^1.22.2",
51
+ "es-abstract": "^1.22.3",
56
52
  "es-value-fixtures": "^1.4.2",
57
53
  "eslint": "=8.8.0",
58
54
  "evalmd": "^0.0.19",
@@ -61,12 +57,12 @@
61
57
  "make-async-function": "^1.0.0",
62
58
  "make-async-generator-function": "^1.0.0",
63
59
  "make-generator-function": "^2.0.0",
64
- "mock-property": "^1.0.2",
65
- "npmignore": "^0.3.0",
60
+ "mock-property": "^1.0.3",
61
+ "npmignore": "^0.3.1",
66
62
  "nyc": "^10.3.2",
67
63
  "object-inspect": "^1.13.1",
68
64
  "safe-publish-latest": "^2.0.0",
69
- "tape": "^5.7.2"
65
+ "tape": "^5.7.4"
70
66
  },
71
67
  "auto-changelog": {
72
68
  "output": "CHANGELOG.md",
@@ -77,6 +73,7 @@
77
73
  "hideCredit": true
78
74
  },
79
75
  "dependencies": {
76
+ "es-errors": "^1.3.0",
80
77
  "function-bind": "^1.1.2",
81
78
  "has-proto": "^1.0.1",
82
79
  "has-symbols": "^1.0.3",
@@ -89,5 +86,8 @@
89
86
  "ignore": [
90
87
  ".github/workflows"
91
88
  ]
89
+ },
90
+ "engines": {
91
+ "node": ">= 0.4"
92
92
  }
93
93
  }
@@ -2,10 +2,4 @@
2
2
  "root": true,
3
3
 
4
4
  "extends": "@ljharb",
5
-
6
- "rules": {
7
- "max-statements-per-line": [2, { "max": 2 }],
8
- "no-magic-numbers": 0,
9
- "multiline-comment-style": 0,
10
- }
11
5
  }
@@ -0,0 +1,13 @@
1
+ {
2
+ "all": true,
3
+ "check-coverage": false,
4
+ "reporter": ["text-summary", "text", "html", "json"],
5
+ "lines": 86,
6
+ "statements": 85.93,
7
+ "functions": 82.43,
8
+ "branches": 76.06,
9
+ "exclude": [
10
+ "coverage",
11
+ "test"
12
+ ]
13
+ }
@@ -5,6 +5,28 @@ 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.0.2](https://github.com/inspect-js/has-tostringtag/compare/v1.0.1...v1.0.2) - 2024-02-01
9
+
10
+ ### Fixed
11
+
12
+ - [Fix] move `has-symbols` back to prod deps [`#3`](https://github.com/inspect-js/has-tostringtag/issues/3)
13
+
14
+ ## [v1.0.1](https://github.com/inspect-js/has-tostringtag/compare/v1.0.0...v1.0.1) - 2024-02-01
15
+
16
+ ### Commits
17
+
18
+ - [patch] add types [`9276414`](https://github.com/inspect-js/has-tostringtag/commit/9276414b22fab3eeb234688841722c4be113201f)
19
+ - [meta] use `npmignore` to autogenerate an npmignore file [`5c0dcd1`](https://github.com/inspect-js/has-tostringtag/commit/5c0dcd1ff66419562a30d1fd88b966cc36bce5fc)
20
+ - [actions] reuse common workflows [`dee9509`](https://github.com/inspect-js/has-tostringtag/commit/dee950904ab5719b62cf8d73d2ac950b09093266)
21
+ - [actions] update codecov uploader [`b8cb3a0`](https://github.com/inspect-js/has-tostringtag/commit/b8cb3a0b8ffbb1593012c4c2daa45fb25642825d)
22
+ - [Tests] generate coverage [`be5b288`](https://github.com/inspect-js/has-tostringtag/commit/be5b28889e2735cdbcef387f84c2829995f2f05e)
23
+ - [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `safe-publish-latest`, `tape` [`69a0827`](https://github.com/inspect-js/has-tostringtag/commit/69a0827974e9b877b2c75b70b057555da8f25a65)
24
+ - [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `aud`, `auto-changelog`, `tape` [`4c9e210`](https://github.com/inspect-js/has-tostringtag/commit/4c9e210a5682f0557a3235d36b68ce809d7fb825)
25
+ - [actions] update rebase action to use reusable workflow [`ca8dcd3`](https://github.com/inspect-js/has-tostringtag/commit/ca8dcd3a6f3f5805d7e3fd461b654aedba0946e7)
26
+ - [Dev Deps] update `@ljharb/eslint-config`, `aud`, `npmignore`, `tape` [`07f3eaf`](https://github.com/inspect-js/has-tostringtag/commit/07f3eafa45dd98208c94479737da77f9a69b94c4)
27
+ - [Deps] update `has-symbols` [`999e009`](https://github.com/inspect-js/has-tostringtag/commit/999e0095a7d1749a58f55472ec8bf8108cdfdcf3)
28
+ - [Tests] remove staging tests since they fail on modern node [`9d9526b`](https://github.com/inspect-js/has-tostringtag/commit/9d9526b1dc1ca7f2292b52efda4c3d857b0e39bd)
29
+
8
30
  ## v1.0.0 - 2021-08-05
9
31
 
10
32
  ### Commits
@@ -0,0 +1,3 @@
1
+ declare function hasToStringTag(): boolean;
2
+
3
+ export = hasToStringTag;
@@ -2,6 +2,7 @@
2
2
 
3
3
  var hasSymbols = require('has-symbols');
4
4
 
5
+ /** @type {import('.')} */
5
6
  module.exports = function hasToStringTag() {
6
7
  return hasSymbols() && typeof Symbol.toStringTag === 'symbol';
7
8
  };
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "has-tostringtag",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "author": {
5
5
  "name": "Jordan Harband",
6
6
  "email": "ljharb@gmail.com",
@@ -19,18 +19,32 @@
19
19
  "description": "Determine if the JS environment has `Symbol.toStringTag` support. Supports spec, or shams.",
20
20
  "license": "MIT",
21
21
  "main": "index.js",
22
+ "types": "./index.d.ts",
22
23
  "exports": {
23
- ".": "./index.js",
24
- "./shams": "./shams.js",
24
+ ".": [
25
+ {
26
+ "types": "./index.d.ts",
27
+ "default": "./index.js"
28
+ },
29
+ "./index.js"
30
+ ],
31
+ "./shams": [
32
+ {
33
+ "types": "./shams.d.ts",
34
+ "default": "./shams.js"
35
+ },
36
+ "./shams.js"
37
+ ],
25
38
  "./package.json": "./package.json"
26
39
  },
27
40
  "scripts": {
41
+ "prepack": "npmignore --auto --commentLines=autogenerated",
28
42
  "prepublishOnly": "safe-publish-latest",
29
43
  "prepublish": "not-in-publish || npm run prepublishOnly",
30
44
  "pretest": "npm run --silent lint",
31
45
  "test": "npm run tests-only",
32
46
  "posttest": "aud --production",
33
- "tests-only": "npm run test:stock && npm run test:staging && npm run test:shams",
47
+ "tests-only": "npm run test:stock && npm run test:shams",
34
48
  "test:stock": "nyc node test",
35
49
  "test:staging": "nyc node --harmony --es-staging test",
36
50
  "test:shams": "npm run --silent test:shams:getownpropertysymbols && npm run --silent test:shams:corejs",
@@ -56,19 +70,21 @@
56
70
  "tostringtag",
57
71
  "Symbol.toStringTag"
58
72
  ],
59
- "dependencies": {
60
- "has-symbols": "^1.0.2"
61
- },
62
73
  "devDependencies": {
63
- "@ljharb/eslint-config": "^17.6.0",
64
- "aud": "^1.1.5",
65
- "auto-changelog": "^2.3.0",
74
+ "@ljharb/eslint-config": "^21.1.0",
75
+ "@types/has-symbols": "^1.0.2",
76
+ "@types/tape": "^5.6.4",
77
+ "aud": "^2.0.4",
78
+ "auto-changelog": "^2.4.0",
66
79
  "core-js": "^2.6.12",
67
- "eslint": "^7.32.0",
80
+ "eslint": "=8.8.0",
68
81
  "get-own-property-symbols": "^0.9.5",
82
+ "in-publish": "^2.0.1",
83
+ "npmignore": "^0.3.1",
69
84
  "nyc": "^10.3.2",
70
- "safe-publish-latest": "^1.1.4",
71
- "tape": "^5.3.0"
85
+ "safe-publish-latest": "^2.0.0",
86
+ "tape": "^5.7.4",
87
+ "typescript": "next"
72
88
  },
73
89
  "engines": {
74
90
  "node": ">= 0.4"
@@ -80,5 +96,13 @@
80
96
  "commitLimit": false,
81
97
  "backfillLimit": false,
82
98
  "hideCredit": true
99
+ },
100
+ "publishConfig": {
101
+ "ignore": [
102
+ ".github/workflows"
103
+ ]
104
+ },
105
+ "dependencies": {
106
+ "has-symbols": "^1.0.3"
83
107
  }
84
108
  }
@@ -0,0 +1,3 @@
1
+ declare function hasToStringTagShams(): boolean;
2
+
3
+ export = hasToStringTagShams;
@@ -2,6 +2,7 @@
2
2
 
3
3
  var hasSymbols = require('has-symbols/shams');
4
4
 
5
+ /** @type {import('.')} */
5
6
  module.exports = function hasToStringTagShams() {
6
7
  return hasSymbols() && !!Symbol.toStringTag;
7
8
  };
@@ -8,6 +8,7 @@ if (typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol') {
8
8
  t.equal(typeof Symbol.toStringTag, 'symbol');
9
9
  t.end();
10
10
  });
11
+ // @ts-expect-error CJS has top-level return
11
12
  return;
12
13
  }
13
14
 
@@ -16,7 +17,9 @@ var hasSymbolToStringTag = require('../../shams');
16
17
  test('polyfilled Symbols', function (t) {
17
18
  /* eslint-disable global-require */
18
19
  t.equal(hasSymbolToStringTag(), false, 'hasSymbolToStringTag is false before polyfilling');
20
+ // @ts-expect-error no types defined
19
21
  require('core-js/fn/symbol');
22
+ // @ts-expect-error no types defined
20
23
  require('core-js/fn/symbol/to-string-tag');
21
24
 
22
25
  require('../tests')(t);
@@ -8,6 +8,7 @@ if (typeof Symbol === 'function' && typeof Symbol() === 'symbol') {
8
8
  t.equal(typeof Symbol(), 'symbol');
9
9
  t.end();
10
10
  });
11
+ // @ts-expect-error CJS has top-level return
11
12
  return;
12
13
  }
13
14
 
@@ -17,6 +18,7 @@ test('polyfilled Symbols', function (t) {
17
18
  /* eslint-disable global-require */
18
19
  t.equal(hasSymbolToStringTag(), false, 'hasSymbolToStringTag is false before polyfilling');
19
20
 
21
+ // @ts-expect-error no types defined
20
22
  require('get-own-property-symbols');
21
23
 
22
24
  require('../tests')(t);
@@ -1,12 +1,13 @@
1
1
  'use strict';
2
2
 
3
3
  // eslint-disable-next-line consistent-return
4
- module.exports = function runSymbolTests(t) {
4
+ module.exports = /** @type {(t: import('tape').Test) => void | false} */ function runSymbolTests(t) {
5
5
  t.equal(typeof Symbol, 'function', 'global Symbol is a function');
6
6
  t.ok(Symbol.toStringTag, 'Symbol.toStringTag exists');
7
7
 
8
8
  if (typeof Symbol !== 'function' || !Symbol.toStringTag) { return false; }
9
9
 
10
+ /** @type {{ [Symbol.toStringTag]?: 'test'}} */
10
11
  var obj = {};
11
12
  obj[Symbol.toStringTag] = 'test';
12
13
 
@@ -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
+ }
@@ -5,6 +5,16 @@ 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.13](https://github.com/inspect-js/is-typed-array/compare/v1.1.12...v1.1.13) - 2024-02-01
9
+
10
+ ### Commits
11
+
12
+ - [patch] add types [`8a8a679`](https://github.com/inspect-js/is-typed-array/commit/8a8a679937d1c4b970c98556460cef2b7fa0bffb)
13
+ - [Dev Deps] update `aud`, `has-tostringtag`, `npmignore`, `object-inspect`, `tape` [`8146b60`](https://github.com/inspect-js/is-typed-array/commit/8146b6019a24f502e66e2c224ce5bea8df9f39bc)
14
+ - [actions] optimize finishers [`34f875a`](https://github.com/inspect-js/is-typed-array/commit/34f875ace16c4900d6b0ef4688e9e3eb7d502715)
15
+ - [Deps] update `which-typed-array` [`19c974f`](https://github.com/inspect-js/is-typed-array/commit/19c974f4bbd93ffc45cb8638b86688bc00f1420b)
16
+ - [meta] add `sideEffects` flag [`0b68e5e`](https://github.com/inspect-js/is-typed-array/commit/0b68e5e58684b79110a82a0a51df8beb7574d6a2)
17
+
8
18
  ## [v1.1.12](https://github.com/inspect-js/is-typed-array/compare/v1.1.11...v1.1.12) - 2023-07-17
9
19
 
10
20
  ### Commits
@@ -0,0 +1,16 @@
1
+ type TypedArray =
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 isTypedArray(value: unknown): value is TypedArray;
15
+
16
+ export = isTypedArray;
@@ -2,6 +2,7 @@
2
2
 
3
3
  var whichTypedArray = require('which-typed-array');
4
4
 
5
+ /** @type {import('.')} */
5
6
  module.exports = function isTypedArray(value) {
6
7
  return !!whichTypedArray(value);
7
8
  };
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "is-typed-array",
3
- "version": "1.1.12",
3
+ "version": "1.1.13",
4
4
  "author": {
5
5
  "name": "Jordan Harband",
6
6
  "email": "ljharb@gmail.com",
@@ -19,12 +19,15 @@
19
19
  "description": "Is this value a JS Typed Array? This module works cross-realm/iframe, does not depend on `instanceof` or mutable properties, and despite ES6 Symbol.toStringTag.",
20
20
  "license": "MIT",
21
21
  "main": "index.js",
22
+ "types": "./index.d.ts",
23
+ "sideEffects": false,
22
24
  "scripts": {
23
25
  "prepack": "npmignore --auto --commentLines=autogenerated",
24
26
  "prepublishOnly": "safe-publish-latest",
25
27
  "prepublish": "not-in-publish || npm run prepublishOnly",
26
28
  "prelint": "evalmd README.md",
27
29
  "lint": "eslint --ext=js,mjs .",
30
+ "postlint": "tsc -p .",
28
31
  "pretest": "npm run --silent lint",
29
32
  "test": "npm run tests-only && npm run test:harmony",
30
33
  "tests-only": "nyc tape test",
@@ -58,25 +61,33 @@
58
61
  "@@toStringTag"
59
62
  ],
60
63
  "dependencies": {
61
- "which-typed-array": "^1.1.11"
64
+ "which-typed-array": "^1.1.14"
62
65
  },
63
66
  "devDependencies": {
64
67
  "@ljharb/eslint-config": "^21.1.0",
65
- "aud": "^2.0.3",
68
+ "@types/for-each": "^0.3.3",
69
+ "@types/is-callable": "^1.1.2",
70
+ "@types/make-arrow-function": "^1.2.2",
71
+ "@types/make-generator-function": "^2.0.3",
72
+ "@types/node": "^20.11.14",
73
+ "@types/object-inspect": "^1.8.4",
74
+ "@types/tape": "^5.6.4",
75
+ "aud": "^2.0.4",
66
76
  "auto-changelog": "^2.4.0",
67
77
  "eslint": "=8.8.0",
68
78
  "evalmd": "^0.0.19",
69
79
  "for-each": "^0.3.3",
70
- "has-tostringtag": "^1.0.0",
80
+ "has-tostringtag": "^1.0.1",
71
81
  "in-publish": "^2.0.1",
72
82
  "is-callable": "^1.2.7",
73
83
  "make-arrow-function": "^1.2.0",
74
84
  "make-generator-function": "^2.0.0",
75
- "npmignore": "^0.3.0",
85
+ "npmignore": "^0.3.1",
76
86
  "nyc": "^10.3.2",
77
- "object-inspect": "^1.12.3",
87
+ "object-inspect": "^1.13.1",
78
88
  "safe-publish-latest": "^2.0.0",
79
- "tape": "^5.6.5"
89
+ "tape": "^5.7.4",
90
+ "typescript": "next"
80
91
  },
81
92
  "testling": {
82
93
  "files": "test/index.js",
@@ -25,6 +25,7 @@ var typedArrayNames = [
25
25
 
26
26
  test('not arrays', function (t) {
27
27
  t.test('non-number/string primitives', function (st) {
28
+ // @ts-expect-error Expected 1 arguments, but got 0.ts(2554)
28
29
  st.notOk(isTypedArray(), 'undefined is not typed array');
29
30
  st.notOk(isTypedArray(null), 'null is not typed array');
30
31
  st.notOk(isTypedArray(false), 'false is not typed array');
@@ -73,9 +74,13 @@ test('Arrow functions', { skip: !arrowFn }, function (t) {
73
74
 
74
75
  test('@@toStringTag', { skip: !hasToStringTag }, function (t) {
75
76
  forEach(typedArrayNames, function (typedArray) {
77
+ // @ts-expect-error
76
78
  if (typeof global[typedArray] === 'function') {
79
+ // @ts-expect-error
77
80
  var fakeTypedArray = [];
81
+ // @ts-expect-error
78
82
  fakeTypedArray[Symbol.toStringTag] = typedArray;
83
+ // @ts-expect-error
79
84
  t.notOk(isTypedArray(fakeTypedArray), 'faked ' + typedArray + ' is not typed array');
80
85
  } else {
81
86
  t.comment('# SKIP ' + typedArray + ' is not supported');
@@ -89,9 +94,12 @@ test('non-Typed Arrays', function (t) {
89
94
  t.end();
90
95
  });
91
96
 
97
+ /** @typedef {Int8ArrayConstructor | Uint8ArrayConstructor | Uint8ClampedArrayConstructor | Int16ArrayConstructor | Uint16ArrayConstructor | Int32ArrayConstructor | Uint32ArrayConstructor | Float32ArrayConstructor | Float64ArrayConstructor | BigInt64ArrayConstructor | BigUint64ArrayConstructor} TypedArrayConstructor */
98
+
92
99
  test('Typed Arrays', function (t) {
93
100
  forEach(typedArrayNames, function (typedArray) {
94
- var TypedArray = global[typedArray];
101
+ // @ts-expect-error
102
+ /** @type {TypedArrayConstructor} */ var TypedArray = global[typedArray];
95
103
  if (isCallable(TypedArray)) {
96
104
  var arr = new TypedArray(10);
97
105
  t.ok(isTypedArray(arr), 'new ' + typedArray + '(10) is typed array');
@@ -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
+ }