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
@@ -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
|
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
|
/**
|
@@ -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 =
|
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.
|
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.
|
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.
|
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.
|
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.
|
72
|
-
"set-function-length": "^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 =
|
18
|
-
var $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.
|
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
|
-
"
|
59
|
+
"es-errors": "^1.3.0",
|
60
|
+
"get-intrinsic": "^1.2.2",
|
60
61
|
"gopd": "^1.0.1",
|
61
|
-
"has-property-descriptors": "^1.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.
|
66
|
-
"@types/for-each": "^0.3.
|
67
|
-
"@types/get-intrinsic": "^1.2.
|
68
|
-
"@types/gopd": "^1.0.
|
69
|
-
"@types/has": "^1.0.
|
70
|
-
"@types/has-property-descriptors": "^1.0.
|
71
|
-
"@types/object-inspect": "^1.8.
|
72
|
-
"@types/object.getownpropertydescriptors": "^2.1.
|
73
|
-
"@types/tape": "^5.6.
|
74
|
-
"aud": "^2.0.
|
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
|
-
"
|
81
|
+
"hasown": "^2.0.0",
|
81
82
|
"in-publish": "^2.0.1",
|
82
|
-
"npmignore": "^0.3.
|
83
|
+
"npmignore": "^0.3.1",
|
83
84
|
"nyc": "^10.3.2",
|
84
|
-
"object-inspect": "^1.
|
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.
|
89
|
-
"typescript": "
|
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
|
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(
|
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(
|
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(
|
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(
|
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(
|
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(
|
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,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,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,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
|
+
}
|