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
@@ -20,7 +20,7 @@ AWS.util.update(AWS, {
20
20
  /**
21
21
  * @constant
22
22
  */
23
- VERSION: '2.1548.0',
23
+ VERSION: '2.1554.0',
24
24
 
25
25
  /**
26
26
  * @api private
@@ -1,10 +1,13 @@
1
+ var fs = require('fs');
2
+
1
3
  var AWS = require('../core'),
2
4
  ENV_RELATIVE_URI = 'AWS_CONTAINER_CREDENTIALS_RELATIVE_URI',
3
5
  ENV_FULL_URI = 'AWS_CONTAINER_CREDENTIALS_FULL_URI',
4
6
  ENV_AUTH_TOKEN = 'AWS_CONTAINER_AUTHORIZATION_TOKEN',
7
+ ENV_AUTH_TOKEN_FILE = 'AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE',
5
8
  FULL_URI_UNRESTRICTED_PROTOCOLS = ['https:'],
6
9
  FULL_URI_ALLOWED_PROTOCOLS = ['http:', 'https:'],
7
- FULL_URI_ALLOWED_HOSTNAMES = ['localhost', '127.0.0.1'],
10
+ FULL_URI_ALLOWED_HOSTNAMES = ['localhost', '127.0.0.1', '169.254.170.23'],
8
11
  RELATIVE_URI_HOST = '169.254.170.2';
9
12
 
10
13
  /**
@@ -113,7 +116,16 @@ AWS.RemoteCredentials = AWS.util.inherit(AWS.Credentials, {
113
116
  * @api private
114
117
  */
115
118
  getECSAuthToken: function getECSAuthToken() {
116
- if (process && process.env && process.env[ENV_FULL_URI]) {
119
+ if (process && process.env && (process.env[ENV_FULL_URI] || process.env[ENV_AUTH_TOKEN_FILE])) {
120
+ if (!process.env[ENV_AUTH_TOKEN] && process.env[ENV_AUTH_TOKEN_FILE]) {
121
+ try {
122
+ var data = fs.readFileSync(process.env[ENV_AUTH_TOKEN_FILE]).toString();
123
+ return data;
124
+ } catch (error) {
125
+ console.error('Error reading token file:', error);
126
+ throw error; // Re-throw the error to propagate it
127
+ }
128
+ }
117
129
  return process.env[ENV_AUTH_TOKEN];
118
130
  }
119
131
  },
@@ -3535,7 +3535,7 @@ export namespace DocumentClient {
3535
3535
  */
3536
3536
  GlobalSecondaryIndexUpdates?: GlobalSecondaryIndexUpdateList;
3537
3537
  /**
3538
- * Represents the DynamoDB Streams configuration for the table. You receive a ResourceInUseException if you try to enable a stream on a table that already has a stream, or if you try to disable a stream on a table that doesn't have a stream.
3538
+ * Represents the DynamoDB Streams configuration for the table. You receive a ValidationException if you try to enable a stream on a table that already has a stream, or if you try to disable a stream on a table that doesn't have a stream.
3539
3539
  */
3540
3540
  StreamSpecification?: StreamSpecification;
3541
3541
  /**
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "aws-sdk",
3
3
  "description": "AWS SDK for JavaScript",
4
- "version": "2.1548.0",
4
+ "version": "2.1554.0",
5
5
  "author": {
6
6
  "name": "Amazon Web Services",
7
7
  "email": "",
@@ -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.0.6](https://github.com/ljharb/call-bind/compare/v1.0.5...v1.0.6) - 2024-02-05
9
+
10
+ ### Commits
11
+
12
+ - [Dev Deps] update `aud`, `npmignore`, `tape` [`d564d5c`](https://github.com/ljharb/call-bind/commit/d564d5ce3e06a19df4d499c77f8d1a9da44e77aa)
13
+ - [Deps] update `get-intrinsic`, `set-function-length` [`cfc2bdc`](https://github.com/ljharb/call-bind/commit/cfc2bdca7b633df0e0e689e6b637f668f1c6792e)
14
+ - [Refactor] use `es-errors`, so things that only need those do not need `get-intrinsic` [`64cd289`](https://github.com/ljharb/call-bind/commit/64cd289ae5862c250a4ca80aa8d461047c166af5)
15
+ - [meta] add missing `engines.node` [`32a4038`](https://github.com/ljharb/call-bind/commit/32a4038857b62179f7f9b7b3df2c5260036be582)
16
+
8
17
  ## [v1.0.5](https://github.com/ljharb/call-bind/compare/v1.0.4...v1.0.5) - 2023-10-19
9
18
 
10
19
  ### Commits
@@ -4,7 +4,7 @@ var bind = require('function-bind');
4
4
  var GetIntrinsic = require('get-intrinsic');
5
5
  var setFunctionLength = require('set-function-length');
6
6
 
7
- var $TypeError = GetIntrinsic('%TypeError%');
7
+ var $TypeError = require('es-errors/type');
8
8
  var $apply = GetIntrinsic('%Function.prototype.apply%');
9
9
  var $call = GetIntrinsic('%Function.prototype.call%');
10
10
  var $reflectApply = GetIntrinsic('%Reflect.apply%', true) || bind.call($call, $apply);
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "call-bind",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "description": "Robustly `.call.bind()` a function",
5
5
  "main": "index.js",
6
6
  "exports": {
@@ -51,7 +51,7 @@
51
51
  "homepage": "https://github.com/ljharb/call-bind#readme",
52
52
  "devDependencies": {
53
53
  "@ljharb/eslint-config": "^21.1.0",
54
- "aud": "^2.0.3",
54
+ "aud": "^2.0.4",
55
55
  "auto-changelog": "^2.4.0",
56
56
  "es-value-fixtures": "^1.4.2",
57
57
  "eslint": "=8.8.0",
@@ -60,16 +60,17 @@
60
60
  "gopd": "^1.0.1",
61
61
  "has-strict-mode": "^1.0.1",
62
62
  "in-publish": "^2.0.1",
63
- "npmignore": "^0.3.0",
63
+ "npmignore": "^0.3.1",
64
64
  "nyc": "^10.3.2",
65
65
  "object-inspect": "^1.13.1",
66
66
  "safe-publish-latest": "^2.0.0",
67
- "tape": "^5.7.1"
67
+ "tape": "^5.7.4"
68
68
  },
69
69
  "dependencies": {
70
+ "es-errors": "^1.3.0",
70
71
  "function-bind": "^1.1.2",
71
- "get-intrinsic": "^1.2.1",
72
- "set-function-length": "^1.1.1"
72
+ "get-intrinsic": "^1.2.3",
73
+ "set-function-length": "^1.2.0"
73
74
  },
74
75
  "testling": {
75
76
  "files": "test/index.js"
@@ -86,5 +87,8 @@
86
87
  "ignore": [
87
88
  ".github/workflows"
88
89
  ]
90
+ },
91
+ "engines": {
92
+ "node": ">= 0.4"
89
93
  }
90
94
  }
@@ -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.2](https://github.com/ljharb/define-data-property/compare/v1.1.1...v1.1.2) - 2024-02-05
9
+
10
+ ### Commits
11
+
12
+ - [Dev Deps] update @types packages, `object-inspect`, `tape`, `typescript` [`df41bf8`](https://github.com/ljharb/define-data-property/commit/df41bf84ca3456be6226055caab44e38e3a7fd2f)
13
+ - [Dev Deps] update DT packages, `aud`, `npmignore`, `tape`, typescript` [`fab0e4e`](https://github.com/ljharb/define-data-property/commit/fab0e4ec709ee02b79f42d6db3ee5f26e0a34b8a)
14
+ - [Dev Deps] use `hasown` instead of `has` [`aa51ef9`](https://github.com/ljharb/define-data-property/commit/aa51ef93f6403d49d9bb72a807bcdb6e418978c0)
15
+ - [Refactor] use `es-errors`, so things that only need those do not need `get-intrinsic` [`d89be50`](https://github.com/ljharb/define-data-property/commit/d89be50571175888d391238605122679f7e65ffc)
16
+ - [Deps] update `has-property-descriptors` [`7af887c`](https://github.com/ljharb/define-data-property/commit/7af887c9083b59b195b0079e04815cfed9fcee2b)
17
+ - [Deps] update `get-intrinsic` [`bb8728e`](https://github.com/ljharb/define-data-property/commit/bb8728ec42cd998505a7157ae24853a560c20646)
18
+
8
19
  ## [v1.1.1](https://github.com/ljharb/define-data-property/compare/v1.1.0...v1.1.1) - 2023-10-12
9
20
 
10
21
  ### Commits
@@ -14,8 +14,8 @@ if ($defineProperty) {
14
14
  }
15
15
  }
16
16
 
17
- var $SyntaxError = GetIntrinsic('%SyntaxError%');
18
- var $TypeError = GetIntrinsic('%TypeError%');
17
+ var $SyntaxError = require('es-errors/syntax');
18
+ var $TypeError = require('es-errors/type');
19
19
 
20
20
  var gopd = require('gopd');
21
21
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "define-data-property",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "description": "Define a data property on an object. Will fall back to assignment in an engine without descriptors.",
5
5
  "main": "index.js",
6
6
  "exports": {
@@ -56,37 +56,38 @@
56
56
  },
57
57
  "homepage": "https://github.com/ljharb/define-data-property#readme",
58
58
  "dependencies": {
59
- "get-intrinsic": "^1.2.1",
59
+ "es-errors": "^1.3.0",
60
+ "get-intrinsic": "^1.2.2",
60
61
  "gopd": "^1.0.1",
61
- "has-property-descriptors": "^1.0.0"
62
+ "has-property-descriptors": "^1.0.1"
62
63
  },
63
64
  "devDependencies": {
64
65
  "@ljharb/eslint-config": "^21.1.0",
65
- "@types/es-value-fixtures": "^1.4.1",
66
- "@types/for-each": "^0.3.1",
67
- "@types/get-intrinsic": "^1.2.0",
68
- "@types/gopd": "^1.0.1",
69
- "@types/has": "^1.0.0",
70
- "@types/has-property-descriptors": "^1.0.1",
71
- "@types/object-inspect": "^1.8.2",
72
- "@types/object.getownpropertydescriptors": "^2.1.2",
73
- "@types/tape": "^5.6.1",
74
- "aud": "^2.0.3",
66
+ "@types/es-value-fixtures": "^1.4.4",
67
+ "@types/for-each": "^0.3.3",
68
+ "@types/get-intrinsic": "^1.2.2",
69
+ "@types/gopd": "^1.0.3",
70
+ "@types/has": "^1.0.1",
71
+ "@types/has-property-descriptors": "^1.0.3",
72
+ "@types/object-inspect": "^1.8.4",
73
+ "@types/object.getownpropertydescriptors": "^2.1.3",
74
+ "@types/tape": "^5.6.4",
75
+ "aud": "^2.0.4",
75
76
  "auto-changelog": "^2.4.0",
76
77
  "es-value-fixtures": "^1.4.2",
77
78
  "eslint": "=8.8.0",
78
79
  "evalmd": "^0.0.19",
79
80
  "for-each": "^0.3.3",
80
- "has": "^1.0.3",
81
+ "hasown": "^2.0.0",
81
82
  "in-publish": "^2.0.1",
82
- "npmignore": "^0.3.0",
83
+ "npmignore": "^0.3.1",
83
84
  "nyc": "^10.3.2",
84
- "object-inspect": "^1.12.3",
85
+ "object-inspect": "^1.13.1",
85
86
  "object.getownpropertydescriptors": "^2.1.7",
86
87
  "reflect.ownkeys": "^1.1.4",
87
88
  "safe-publish-latest": "^2.0.0",
88
- "tape": "^5.7.1",
89
- "typescript": "^5.3.0-dev.20231012"
89
+ "tape": "^5.7.4",
90
+ "typescript": "next"
90
91
  },
91
92
  "engines": {
92
93
  "node": ">= 0.4"
@@ -4,7 +4,7 @@ var test = require('tape');
4
4
  var v = require('es-value-fixtures');
5
5
  var forEach = require('for-each');
6
6
  var inspect = require('object-inspect');
7
- var has = require('has');
7
+ var hasOwn = require('hasown');
8
8
  var hasPropertyDescriptors = require('has-property-descriptors')();
9
9
  var getOwnPropertyDescriptors = require('object.getownpropertydescriptors');
10
10
  var ownKeys = require('reflect.ownkeys');
@@ -62,28 +62,28 @@ test('defineDataProperty', function (t) {
62
62
  t.test('normal data property', function (st) {
63
63
  /** @type {Record<PropertyKey, string>} */
64
64
  var obj = { existing: 'existing property' };
65
- st.ok(has(obj, 'existing'), 'has initial own property');
65
+ st.ok(hasOwn(obj, 'existing'), 'has initial own property');
66
66
  st.equal(obj.existing, 'existing property', 'has expected initial value');
67
67
 
68
68
  var res = defineDataProperty(obj, 'added', 'added property');
69
69
  st.equal(res, void undefined, 'returns `undefined`');
70
- st.ok(has(obj, 'added'), 'has expected own property');
70
+ st.ok(hasOwn(obj, 'added'), 'has expected own property');
71
71
  st.equal(obj.added, 'added property', 'has expected value');
72
72
 
73
73
  defineDataProperty(obj, 'existing', 'new value');
74
- st.ok(has(obj, 'existing'), 'still has expected own property');
74
+ st.ok(hasOwn(obj, 'existing'), 'still has expected own property');
75
75
  st.equal(obj.existing, 'new value', 'has new expected value');
76
76
 
77
77
  defineDataProperty(obj, 'explicit1', 'new value', false);
78
- st.ok(has(obj, 'explicit1'), 'has expected own property (explicit enumerable)');
78
+ st.ok(hasOwn(obj, 'explicit1'), 'has expected own property (explicit enumerable)');
79
79
  st.equal(obj.explicit1, 'new value', 'has new expected value (explicit enumerable)');
80
80
 
81
81
  defineDataProperty(obj, 'explicit2', 'new value', false, false);
82
- st.ok(has(obj, 'explicit2'), 'has expected own property (explicit writable)');
82
+ st.ok(hasOwn(obj, 'explicit2'), 'has expected own property (explicit writable)');
83
83
  st.equal(obj.explicit2, 'new value', 'has new expected value (explicit writable)');
84
84
 
85
85
  defineDataProperty(obj, 'explicit3', 'new value', false, false, false);
86
- st.ok(has(obj, 'explicit3'), 'has expected own property (explicit configurable)');
86
+ st.ok(hasOwn(obj, 'explicit3'), 'has expected own property (explicit configurable)');
87
87
  st.equal(obj.explicit3, 'new value', 'has new expected value (explicit configurable)');
88
88
 
89
89
  st.end();
@@ -0,0 +1,5 @@
1
+ {
2
+ "root": true,
3
+
4
+ "extends": "@ljharb",
5
+ }
@@ -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/es-errors
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 a single custom sponsorship URL
@@ -0,0 +1,40 @@
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.3.0](https://github.com/ljharb/es-errors/compare/v1.2.1...v1.3.0) - 2024-02-05
9
+
10
+ ### Commits
11
+
12
+ - [New] add `EvalError` and `URIError` [`1927627`](https://github.com/ljharb/es-errors/commit/1927627ba68cb6c829d307231376c967db53acdf)
13
+
14
+ ## [v1.2.1](https://github.com/ljharb/es-errors/compare/v1.2.0...v1.2.1) - 2024-02-04
15
+
16
+ ### Commits
17
+
18
+ - [Fix] add missing `exports` entry [`5bb5f28`](https://github.com/ljharb/es-errors/commit/5bb5f280f98922701109d6ebb82eea2257cecc7e)
19
+
20
+ ## [v1.2.0](https://github.com/ljharb/es-errors/compare/v1.1.0...v1.2.0) - 2024-02-04
21
+
22
+ ### Commits
23
+
24
+ - [New] add `ReferenceError` [`6d8cf5b`](https://github.com/ljharb/es-errors/commit/6d8cf5bbb6f3f598d02cf6f30e468ba2caa8e143)
25
+
26
+ ## [v1.1.0](https://github.com/ljharb/es-errors/compare/v1.0.0...v1.1.0) - 2024-02-04
27
+
28
+ ### Commits
29
+
30
+ - [New] add base Error [`2983ab6`](https://github.com/ljharb/es-errors/commit/2983ab65f7bc5441276cb021dc3aa03c78881698)
31
+
32
+ ## v1.0.0 - 2024-02-03
33
+
34
+ ### Commits
35
+
36
+ - Initial implementation, tests, readme, type [`8f47631`](https://github.com/ljharb/es-errors/commit/8f476317e9ad76f40ad648081829b1a1a3a1288b)
37
+ - Initial commit [`ea5d099`](https://github.com/ljharb/es-errors/commit/ea5d099ef18e550509ab9e2be000526afd81c385)
38
+ - npm init [`6f5ebf9`](https://github.com/ljharb/es-errors/commit/6f5ebf9cead474dadd72b9e63dad315820a089ae)
39
+ - Only apps should have lockfiles [`e1a0aeb`](https://github.com/ljharb/es-errors/commit/e1a0aeb7b80f5cfc56be54d6b2100e915d47def8)
40
+ - [meta] add `sideEffects` flag [`a9c7d46`](https://github.com/ljharb/es-errors/commit/a9c7d460a492f1d8a241c836bc25a322a19cc043)
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024 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,55 @@
1
+ # es-errors <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
+ A simple cache for a few of the JS Error constructors.
11
+
12
+ ## Example
13
+
14
+ ```js
15
+ const assert = require('assert');
16
+
17
+ const Base = require('es-errors');
18
+ const Eval = require('es-errors/eval');
19
+ const Range = require('es-errors/range');
20
+ const Ref = require('es-errors/ref');
21
+ const Syntax = require('es-errors/syntax');
22
+ const Type = require('es-errors/type');
23
+ const URI = require('es-errors/uri');
24
+
25
+ assert.equal(Base, Error);
26
+ assert.equal(Eval, EvalError);
27
+ assert.equal(Range, RangeError);
28
+ assert.equal(Ref, ReferenceError);
29
+ assert.equal(Syntax, SyntaxError);
30
+ assert.equal(Type, TypeError);
31
+ assert.equal(URI, URIError);
32
+ ```
33
+
34
+ ## Tests
35
+ Simply clone the repo, `npm install`, and run `npm test`
36
+
37
+ ## Security
38
+
39
+ Please email [@ljharb](https://github.com/ljharb) or see https://tidelift.com/security if you have a potential security vulnerability to report.
40
+
41
+ [package-url]: https://npmjs.org/package/es-errors
42
+ [npm-version-svg]: https://versionbadg.es/ljharb/es-errors.svg
43
+ [deps-svg]: https://david-dm.org/ljharb/es-errors.svg
44
+ [deps-url]: https://david-dm.org/ljharb/es-errors
45
+ [dev-deps-svg]: https://david-dm.org/ljharb/es-errors/dev-status.svg
46
+ [dev-deps-url]: https://david-dm.org/ljharb/es-errors#info=devDependencies
47
+ [npm-badge-png]: https://nodei.co/npm/es-errors.png?downloads=true&stars=true
48
+ [license-image]: https://img.shields.io/npm/l/es-errors.svg
49
+ [license-url]: LICENSE
50
+ [downloads-image]: https://img.shields.io/npm/dm/es-errors.svg
51
+ [downloads-url]: https://npm-stat.com/charts.html?package=es-errors
52
+ [codecov-image]: https://codecov.io/gh/ljharb/es-errors/branch/main/graphs/badge.svg
53
+ [codecov-url]: https://app.codecov.io/gh/ljharb/es-errors/
54
+ [actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/ljharb/es-errors
55
+ [actions-url]: https://github.com/ljharb/es-errors/actions
@@ -0,0 +1,3 @@
1
+ declare const EvalError: EvalErrorConstructor;
2
+
3
+ export = EvalError;
@@ -0,0 +1,4 @@
1
+ 'use strict';
2
+
3
+ /** @type {import('./eval')} */
4
+ module.exports = EvalError;
@@ -0,0 +1,3 @@
1
+ declare const Error: ErrorConstructor;
2
+
3
+ export = Error;
@@ -0,0 +1,4 @@
1
+ 'use strict';
2
+
3
+ /** @type {import('.')} */
4
+ module.exports = Error;
@@ -0,0 +1,80 @@
1
+ {
2
+ "name": "es-errors",
3
+ "version": "1.3.0",
4
+ "description": "A simple cache for a few of the JS Error constructors.",
5
+ "main": "index.js",
6
+ "exports": {
7
+ ".": "./index.js",
8
+ "./eval": "./eval.js",
9
+ "./range": "./range.js",
10
+ "./ref": "./ref.js",
11
+ "./syntax": "./syntax.js",
12
+ "./type": "./type.js",
13
+ "./uri": "./uri.js",
14
+ "./package.json": "./package.json"
15
+ },
16
+ "sideEffects": false,
17
+ "scripts": {
18
+ "prepack": "npmignore --auto --commentLines=autogenerated",
19
+ "prepublishOnly": "safe-publish-latest",
20
+ "prepublish": "not-in-publish || npm run prepublishOnly",
21
+ "pretest": "npm run lint",
22
+ "test": "npm run tests-only",
23
+ "tests-only": "nyc tape 'test/**/*.js'",
24
+ "posttest": "aud --production",
25
+ "prelint": "evalmd README.md",
26
+ "lint": "eslint --ext=js,mjs .",
27
+ "postlint": "tsc -p . && eclint check $(git ls-files | xargs find 2> /dev/null | grep -vE 'node_modules|\\.git' | grep -v dist/)",
28
+ "version": "auto-changelog && git add CHANGELOG.md",
29
+ "postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\""
30
+ },
31
+ "repository": {
32
+ "type": "git",
33
+ "url": "git+https://github.com/ljharb/es-errors.git"
34
+ },
35
+ "keywords": [
36
+ "javascript",
37
+ "ecmascript",
38
+ "error",
39
+ "typeerror",
40
+ "syntaxerror",
41
+ "rangeerror"
42
+ ],
43
+ "author": "Jordan Harband <ljharb@gmail.com>",
44
+ "license": "MIT",
45
+ "bugs": {
46
+ "url": "https://github.com/ljharb/es-errors/issues"
47
+ },
48
+ "homepage": "https://github.com/ljharb/es-errors#readme",
49
+ "devDependencies": {
50
+ "@ljharb/eslint-config": "^21.1.0",
51
+ "@types/tape": "^5.6.4",
52
+ "aud": "^2.0.4",
53
+ "auto-changelog": "^2.4.0",
54
+ "eclint": "^2.8.1",
55
+ "eslint": "^8.8.0",
56
+ "evalmd": "^0.0.19",
57
+ "in-publish": "^2.0.1",
58
+ "npmignore": "^0.3.1",
59
+ "nyc": "^10.3.2",
60
+ "safe-publish-latest": "^2.0.0",
61
+ "tape": "^5.7.4",
62
+ "typescript": "next"
63
+ },
64
+ "auto-changelog": {
65
+ "output": "CHANGELOG.md",
66
+ "template": "keepachangelog",
67
+ "unreleased": false,
68
+ "commitLimit": false,
69
+ "backfillLimit": false,
70
+ "hideCredit": true
71
+ },
72
+ "publishConfig": {
73
+ "ignore": [
74
+ ".github/workflows"
75
+ ]
76
+ },
77
+ "engines": {
78
+ "node": ">= 0.4"
79
+ }
80
+ }
@@ -0,0 +1,3 @@
1
+ declare const RangeError: RangeErrorConstructor;
2
+
3
+ export = RangeError;
@@ -0,0 +1,4 @@
1
+ 'use strict';
2
+
3
+ /** @type {import('./range')} */
4
+ module.exports = RangeError;
@@ -0,0 +1,3 @@
1
+ declare const ReferenceError: ReferenceErrorConstructor;
2
+
3
+ export = ReferenceError;
@@ -0,0 +1,4 @@
1
+ 'use strict';
2
+
3
+ /** @type {import('./ref')} */
4
+ module.exports = ReferenceError;
@@ -0,0 +1,3 @@
1
+ declare const SyntaxError: SyntaxErrorConstructor;
2
+
3
+ export = SyntaxError;
@@ -0,0 +1,4 @@
1
+ 'use strict';
2
+
3
+ /** @type {import('./syntax')} */
4
+ module.exports = SyntaxError;
@@ -0,0 +1,19 @@
1
+ 'use strict';
2
+
3
+ var test = require('tape');
4
+
5
+ var E = require('../');
6
+ var R = require('../range');
7
+ var Ref = require('../ref');
8
+ var S = require('../syntax');
9
+ var T = require('../type');
10
+
11
+ test('errors', function (t) {
12
+ t.equal(E, Error);
13
+ t.equal(R, RangeError);
14
+ t.equal(Ref, ReferenceError);
15
+ t.equal(S, SyntaxError);
16
+ t.equal(T, TypeError);
17
+
18
+ t.end();
19
+ });
@@ -0,0 +1,49 @@
1
+ {
2
+ "compilerOptions": {
3
+ /* Visit https://aka.ms/tsconfig.json to read more about this file */
4
+
5
+ /* Projects */
6
+
7
+ /* Language and Environment */
8
+ "target": "es5", /* 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": "node", /* 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": 1, /* 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
+ }
@@ -0,0 +1,3 @@
1
+ declare const TypeError: TypeErrorConstructor
2
+
3
+ export = TypeError;
@@ -0,0 +1,4 @@
1
+ 'use strict';
2
+
3
+ /** @type {import('./type')} */
4
+ module.exports = TypeError;
@@ -0,0 +1,3 @@
1
+ declare const URIError: URIErrorConstructor;
2
+
3
+ export = URIError;