@rio-cloud/cdk-v2-constructs 7.13.12-alpha.0 → 7.13.12-alpha.1
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 +7 -7
- package/lib/contributions/team-transport-two/datadog-synthetics/datadog-synthetics-test-custom-resource/handler.cjs +282 -225
- package/lib/datadogv2/secret-locator-custom-resource/on-create.cjs +295 -238
- package/lib/datadogv2/service-catalog-custom-resource/on-create.cjs +282 -225
- package/lib/fargate/codedeploy-custom-resources/create-deployment-is-complete.cjs +281 -224
- package/lib/fargate/codedeploy-custom-resources/create-deployment-on-create.cjs +281 -224
- package/lib/fargate/codedeploy-custom-resources/run-monitoring-test-suite-runner.cjs +281 -224
- package/node_modules/@aws-sdk/client-cloudformation/package.json +13 -13
- package/node_modules/@aws-sdk/client-codedeploy/package.json +13 -13
- package/node_modules/@aws-sdk/client-ecs/package.json +13 -13
- package/node_modules/@aws-sdk/client-organizations/package.json +13 -13
- package/node_modules/@aws-sdk/client-secrets-manager/package.json +14 -14
- package/node_modules/@aws-sdk/client-ssm/package.json +13 -13
- package/node_modules/@aws-sdk/core/package.json +4 -4
- package/node_modules/@aws-sdk/credential-provider-env/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-http/package.json +6 -6
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +9 -9
- package/node_modules/@aws-sdk/credential-provider-login/package.json +3 -3
- package/node_modules/@aws-sdk/credential-provider-node/package.json +7 -7
- package/node_modules/@aws-sdk/credential-provider-process/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +4 -4
- package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +3 -3
- package/node_modules/@aws-sdk/middleware-user-agent/package.json +3 -3
- package/node_modules/@aws-sdk/nested-clients/package.json +12 -12
- package/node_modules/@aws-sdk/token-providers/package.json +3 -3
- package/node_modules/@aws-sdk/util-user-agent-node/dist-cjs/index.js +36 -19
- package/node_modules/@aws-sdk/util-user-agent-node/dist-es/getSanitizedTypeScriptVersion.js +9 -0
- package/node_modules/@aws-sdk/util-user-agent-node/dist-es/getTypeScriptPackageJsonPaths.js +17 -0
- package/node_modules/@aws-sdk/util-user-agent-node/dist-es/getTypeScriptUserAgentPair.js +17 -12
- package/node_modules/@aws-sdk/util-user-agent-node/dist-types/getSanitizedTypeScriptVersion.d.ts +8 -0
- package/node_modules/@aws-sdk/util-user-agent-node/dist-types/getTypeScriptPackageJsonPaths.d.ts +10 -0
- package/node_modules/@aws-sdk/util-user-agent-node/dist-types/ts3.4/getSanitizedTypeScriptVersion.d.ts +3 -0
- package/node_modules/@aws-sdk/util-user-agent-node/dist-types/ts3.4/getTypeScriptPackageJsonPaths.d.ts +3 -0
- package/node_modules/@aws-sdk/util-user-agent-node/package.json +2 -2
- package/node_modules/@aws-sdk/xml-builder/dist-cjs/xml-parser.js +1 -0
- package/node_modules/@aws-sdk/xml-builder/dist-es/xml-parser.js +1 -0
- package/node_modules/@aws-sdk/xml-builder/package.json +2 -2
- package/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +2 -8
- package/node_modules/@smithy/core/dist-es/submodules/cbor/CborCodec.js +2 -8
- package/node_modules/@smithy/core/package.json +2 -2
- package/node_modules/@smithy/fetch-http-handler/dist-cjs/index.js +18 -4
- package/node_modules/@smithy/fetch-http-handler/dist-es/fetch-http-handler.js +18 -4
- package/node_modules/@smithy/fetch-http-handler/package.json +1 -1
- package/node_modules/@smithy/middleware-endpoint/package.json +2 -2
- package/node_modules/@smithy/middleware-retry/package.json +2 -2
- package/node_modules/@smithy/node-http-handler/dist-cjs/index.js +21 -8
- package/node_modules/@smithy/node-http-handler/dist-es/build-abort-error.js +16 -0
- package/node_modules/@smithy/node-http-handler/dist-es/node-http-handler.js +3 -4
- package/node_modules/@smithy/node-http-handler/dist-es/node-http2-handler.js +3 -4
- package/node_modules/@smithy/node-http-handler/dist-types/build-abort-error.d.ts +9 -0
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/build-abort-error.d.ts +9 -0
- package/node_modules/@smithy/node-http-handler/package.json +1 -1
- package/node_modules/@smithy/smithy-client/package.json +4 -4
- package/node_modules/@smithy/util-defaults-mode-browser/package.json +2 -2
- package/node_modules/@smithy/util-defaults-mode-node/package.json +2 -2
- package/node_modules/@smithy/util-stream/package.json +3 -3
- package/node_modules/fast-xml-builder/LICENSE +21 -0
- package/node_modules/fast-xml-builder/README.md +23 -0
- package/node_modules/fast-xml-builder/lib/builder.cjs +1 -0
- package/node_modules/fast-xml-builder/lib/builder.min.js +2 -0
- package/node_modules/fast-xml-builder/lib/builder.min.js.map +1 -0
- package/node_modules/fast-xml-builder/lib/fxb.d.cts +167 -0
- package/node_modules/fast-xml-builder/package.json +78 -0
- package/node_modules/fast-xml-builder/src/fxb.d.ts +156 -0
- package/node_modules/fast-xml-builder/src/fxb.js +285 -0
- package/node_modules/fast-xml-builder/src/ignoreAttributes.js +18 -0
- package/node_modules/{fast-xml-parser/src/xmlbuilder → fast-xml-builder/src}/orderedJs2Xml.js +14 -3
- package/node_modules/fast-xml-builder/src/prettifyJs2Xml.js +0 -0
- package/node_modules/fast-xml-parser/CHANGELOG.md +23 -0
- package/node_modules/fast-xml-parser/lib/fxbuilder.min.js +1 -1
- package/node_modules/fast-xml-parser/lib/fxbuilder.min.js.map +1 -1
- package/node_modules/fast-xml-parser/lib/fxp.cjs +1 -1
- package/node_modules/fast-xml-parser/lib/fxp.d.cts +15 -1
- package/node_modules/fast-xml-parser/lib/fxp.min.js +1 -1
- package/node_modules/fast-xml-parser/lib/fxp.min.js.map +1 -1
- package/node_modules/fast-xml-parser/lib/fxparser.min.js +1 -1
- package/node_modules/fast-xml-parser/lib/fxparser.min.js.map +1 -1
- package/node_modules/fast-xml-parser/lib/fxvalidator.min.js +1 -1
- package/node_modules/fast-xml-parser/lib/fxvalidator.min.js.map +1 -1
- package/node_modules/fast-xml-parser/package.json +3 -2
- package/node_modules/fast-xml-parser/src/fxp.d.ts +16 -0
- package/node_modules/fast-xml-parser/src/fxp.js +1 -1
- package/node_modules/fast-xml-parser/src/util.js +1 -26
- package/node_modules/fast-xml-parser/src/v6/EntitiesParser.js +87 -87
- package/node_modules/fast-xml-parser/src/v6/OptionsBuilder.js +10 -10
- package/node_modules/fast-xml-parser/src/v6/OutputBuilders/BaseOutputBuilder.js +23 -23
- package/node_modules/fast-xml-parser/src/v6/OutputBuilders/JsArrBuilder.js +29 -29
- package/node_modules/fast-xml-parser/src/v6/OutputBuilders/JsObjBuilder.js +39 -39
- package/node_modules/fast-xml-parser/src/v6/OutputBuilders/ParserOptionsBuilder.js +17 -17
- package/node_modules/fast-xml-parser/src/v6/XMLParser.js +22 -22
- package/node_modules/fast-xml-parser/src/v6/valueParsers/EntitiesParser.js +85 -85
- package/node_modules/fast-xml-parser/src/validator.js +34 -34
- package/node_modules/fast-xml-parser/src/xmlbuilder/json2xml.js +5 -284
- package/node_modules/fast-xml-parser/src/xmlparser/DocTypeReader.js +1 -1
- package/node_modules/fast-xml-parser/src/xmlparser/OptionsBuilder.js +2 -0
- package/node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js +27 -5
- package/node_modules/fast-xml-parser/src/xmlparser/XMLParser.js +21 -21
- package/node_modules/fast-xml-parser/src/xmlparser/node2json.js +38 -34
- package/node_modules/fast-xml-parser/src/xmlparser/xmlNode.js +10 -10
- package/package.json +8 -11
- package/version.json +1 -1
- package/node_modules/@aws-sdk/util-user-agent-node/dist-es/getTypeScriptPackageJsonPath.js +0 -14
- package/node_modules/@aws-sdk/util-user-agent-node/dist-types/getTypeScriptPackageJsonPath.d.ts +0 -9
- package/node_modules/@aws-sdk/util-user-agent-node/dist-types/ts3.4/getTypeScriptPackageJsonPath.d.ts +0 -1
- /package/node_modules/{fast-xml-parser/src/xmlbuilder/prettifyJs2Xml.js → fast-xml-builder/CHANGELOG.md} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/nested-clients",
|
|
3
|
-
"version": "3.996.
|
|
3
|
+
"version": "3.996.4",
|
|
4
4
|
"description": "Nested clients for AWS SDK packages.",
|
|
5
5
|
"main": "./dist-cjs/index.js",
|
|
6
6
|
"module": "./dist-es/index.js",
|
|
@@ -29,37 +29,37 @@
|
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
31
31
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
32
|
-
"@aws-sdk/core": "^3.973.
|
|
32
|
+
"@aws-sdk/core": "^3.973.16",
|
|
33
33
|
"@aws-sdk/middleware-host-header": "^3.972.6",
|
|
34
34
|
"@aws-sdk/middleware-logger": "^3.972.6",
|
|
35
35
|
"@aws-sdk/middleware-recursion-detection": "^3.972.6",
|
|
36
|
-
"@aws-sdk/middleware-user-agent": "^3.972.
|
|
36
|
+
"@aws-sdk/middleware-user-agent": "^3.972.16",
|
|
37
37
|
"@aws-sdk/region-config-resolver": "^3.972.6",
|
|
38
38
|
"@aws-sdk/types": "^3.973.4",
|
|
39
39
|
"@aws-sdk/util-endpoints": "^3.996.3",
|
|
40
40
|
"@aws-sdk/util-user-agent-browser": "^3.972.6",
|
|
41
|
-
"@aws-sdk/util-user-agent-node": "^3.973.
|
|
41
|
+
"@aws-sdk/util-user-agent-node": "^3.973.1",
|
|
42
42
|
"@smithy/config-resolver": "^4.4.9",
|
|
43
|
-
"@smithy/core": "^3.23.
|
|
44
|
-
"@smithy/fetch-http-handler": "^5.3.
|
|
43
|
+
"@smithy/core": "^3.23.7",
|
|
44
|
+
"@smithy/fetch-http-handler": "^5.3.12",
|
|
45
45
|
"@smithy/hash-node": "^4.2.10",
|
|
46
46
|
"@smithy/invalid-dependency": "^4.2.10",
|
|
47
47
|
"@smithy/middleware-content-length": "^4.2.10",
|
|
48
|
-
"@smithy/middleware-endpoint": "^4.4.
|
|
49
|
-
"@smithy/middleware-retry": "^4.4.
|
|
48
|
+
"@smithy/middleware-endpoint": "^4.4.21",
|
|
49
|
+
"@smithy/middleware-retry": "^4.4.38",
|
|
50
50
|
"@smithy/middleware-serde": "^4.2.11",
|
|
51
51
|
"@smithy/middleware-stack": "^4.2.10",
|
|
52
52
|
"@smithy/node-config-provider": "^4.3.10",
|
|
53
|
-
"@smithy/node-http-handler": "^4.4.
|
|
53
|
+
"@smithy/node-http-handler": "^4.4.13",
|
|
54
54
|
"@smithy/protocol-http": "^5.3.10",
|
|
55
|
-
"@smithy/smithy-client": "^4.12.
|
|
55
|
+
"@smithy/smithy-client": "^4.12.1",
|
|
56
56
|
"@smithy/types": "^4.13.0",
|
|
57
57
|
"@smithy/url-parser": "^4.2.10",
|
|
58
58
|
"@smithy/util-base64": "^4.3.1",
|
|
59
59
|
"@smithy/util-body-length-browser": "^4.2.1",
|
|
60
60
|
"@smithy/util-body-length-node": "^4.2.2",
|
|
61
|
-
"@smithy/util-defaults-mode-browser": "^4.3.
|
|
62
|
-
"@smithy/util-defaults-mode-node": "^4.2.
|
|
61
|
+
"@smithy/util-defaults-mode-browser": "^4.3.37",
|
|
62
|
+
"@smithy/util-defaults-mode-node": "^4.2.40",
|
|
63
63
|
"@smithy/util-endpoints": "^3.3.1",
|
|
64
64
|
"@smithy/util-middleware": "^4.2.10",
|
|
65
65
|
"@smithy/util-retry": "^4.2.10",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/token-providers",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.1001.0",
|
|
4
4
|
"description": "A collection of token providers",
|
|
5
5
|
"main": "./dist-cjs/index.js",
|
|
6
6
|
"module": "./dist-es/index.js",
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
},
|
|
30
30
|
"license": "Apache-2.0",
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@aws-sdk/core": "^3.973.
|
|
33
|
-
"@aws-sdk/nested-clients": "^3.996.
|
|
32
|
+
"@aws-sdk/core": "^3.973.16",
|
|
33
|
+
"@aws-sdk/nested-clients": "^3.996.4",
|
|
34
34
|
"@aws-sdk/types": "^3.973.4",
|
|
35
35
|
"@smithy/property-provider": "^4.2.10",
|
|
36
36
|
"@smithy/shared-ini-file-loader": "^4.4.5",
|
|
@@ -16,18 +16,31 @@ const getRuntimeUserAgentPair = () => {
|
|
|
16
16
|
return ["md/nodejs", node_process.versions.node];
|
|
17
17
|
};
|
|
18
18
|
|
|
19
|
-
const
|
|
20
|
-
|
|
19
|
+
const SEMVER_REGEX = /^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+[0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*)?$/;
|
|
20
|
+
const getSanitizedTypeScriptVersion = (version = "") => {
|
|
21
|
+
const match = version.match(SEMVER_REGEX);
|
|
22
|
+
if (!match) {
|
|
23
|
+
return undefined;
|
|
24
|
+
}
|
|
25
|
+
const [major, minor, patch, prerelease] = [match[1], match[2], match[3], match[4]];
|
|
26
|
+
return prerelease ? `${major}.${minor}.${patch}-${prerelease}` : `${major}.${minor}.${patch}`;
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
const typescriptPackageJsonPath = node_path.join("node_modules", "typescript", "package.json");
|
|
30
|
+
const getTypeScriptPackageJsonPaths = (dirname) => {
|
|
31
|
+
const cwdPath = node_path.join(process.cwd(), typescriptPackageJsonPath);
|
|
32
|
+
if (!dirname) {
|
|
33
|
+
return [cwdPath];
|
|
34
|
+
}
|
|
21
35
|
const normalizedPath = node_path.normalize(dirname);
|
|
22
36
|
const parts = normalizedPath.split(node_path.sep);
|
|
23
37
|
const nodeModulesIndex = parts.indexOf("node_modules");
|
|
24
|
-
|
|
25
|
-
|
|
38
|
+
const parentDir = nodeModulesIndex !== -1 ? parts.slice(0, nodeModulesIndex).join(node_path.sep) : dirname;
|
|
39
|
+
const parentDirPath = node_path.join(parentDir, typescriptPackageJsonPath);
|
|
40
|
+
if (cwdPath === parentDirPath) {
|
|
41
|
+
return [cwdPath];
|
|
26
42
|
}
|
|
27
|
-
|
|
28
|
-
nodeModulesPath = dirname;
|
|
29
|
-
}
|
|
30
|
-
return node_path.join(nodeModulesPath, "node_modules", "typescript", "package.json");
|
|
43
|
+
return [parentDirPath, cwdPath];
|
|
31
44
|
};
|
|
32
45
|
|
|
33
46
|
let tscVersion;
|
|
@@ -38,19 +51,23 @@ const getTypeScriptUserAgentPair = async () => {
|
|
|
38
51
|
else if (typeof tscVersion === "string") {
|
|
39
52
|
return ["md/tsc", tscVersion];
|
|
40
53
|
}
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
54
|
+
const dirname = typeof __dirname !== "undefined" ? __dirname : undefined;
|
|
55
|
+
for (const typescriptPackageJsonPath of getTypeScriptPackageJsonPaths(dirname)) {
|
|
56
|
+
try {
|
|
57
|
+
const packageJson = await promises.readFile(typescriptPackageJsonPath, "utf-8");
|
|
58
|
+
const { version } = JSON.parse(packageJson);
|
|
59
|
+
const sanitizedVersion = getSanitizedTypeScriptVersion(version);
|
|
60
|
+
if (typeof sanitizedVersion !== "string") {
|
|
61
|
+
continue;
|
|
62
|
+
}
|
|
63
|
+
tscVersion = sanitizedVersion;
|
|
64
|
+
return ["md/tsc", tscVersion];
|
|
65
|
+
}
|
|
66
|
+
catch {
|
|
47
67
|
}
|
|
48
|
-
tscVersion = version;
|
|
49
|
-
return ["md/tsc", tscVersion];
|
|
50
|
-
}
|
|
51
|
-
catch {
|
|
52
|
-
tscVersion = null;
|
|
53
68
|
}
|
|
69
|
+
tscVersion = null;
|
|
70
|
+
return undefined;
|
|
54
71
|
};
|
|
55
72
|
|
|
56
73
|
const crtAvailability = {
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
const SEMVER_REGEX = /^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+[0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*)?$/;
|
|
2
|
+
export const getSanitizedTypeScriptVersion = (version = "") => {
|
|
3
|
+
const match = version.match(SEMVER_REGEX);
|
|
4
|
+
if (!match) {
|
|
5
|
+
return undefined;
|
|
6
|
+
}
|
|
7
|
+
const [major, minor, patch, prerelease] = [match[1], match[2], match[3], match[4]];
|
|
8
|
+
return prerelease ? `${major}.${minor}.${patch}-${prerelease}` : `${major}.${minor}.${patch}`;
|
|
9
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { join, normalize, sep } from "node:path";
|
|
2
|
+
const typescriptPackageJsonPath = join("node_modules", "typescript", "package.json");
|
|
3
|
+
export const getTypeScriptPackageJsonPaths = (dirname) => {
|
|
4
|
+
const cwdPath = join(process.cwd(), typescriptPackageJsonPath);
|
|
5
|
+
if (!dirname) {
|
|
6
|
+
return [cwdPath];
|
|
7
|
+
}
|
|
8
|
+
const normalizedPath = normalize(dirname);
|
|
9
|
+
const parts = normalizedPath.split(sep);
|
|
10
|
+
const nodeModulesIndex = parts.indexOf("node_modules");
|
|
11
|
+
const parentDir = nodeModulesIndex !== -1 ? parts.slice(0, nodeModulesIndex).join(sep) : dirname;
|
|
12
|
+
const parentDirPath = join(parentDir, typescriptPackageJsonPath);
|
|
13
|
+
if (cwdPath === parentDirPath) {
|
|
14
|
+
return [cwdPath];
|
|
15
|
+
}
|
|
16
|
+
return [parentDirPath, cwdPath];
|
|
17
|
+
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { readFile } from "node:fs/promises";
|
|
2
|
-
import {
|
|
2
|
+
import { getSanitizedTypeScriptVersion } from "./getSanitizedTypeScriptVersion";
|
|
3
|
+
import { getTypeScriptPackageJsonPaths } from "./getTypeScriptPackageJsonPaths";
|
|
3
4
|
let tscVersion;
|
|
4
5
|
export const getTypeScriptUserAgentPair = async () => {
|
|
5
6
|
if (tscVersion === null) {
|
|
@@ -8,17 +9,21 @@ export const getTypeScriptUserAgentPair = async () => {
|
|
|
8
9
|
else if (typeof tscVersion === "string") {
|
|
9
10
|
return ["md/tsc", tscVersion];
|
|
10
11
|
}
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
12
|
+
const dirname = typeof __dirname !== "undefined" ? __dirname : undefined;
|
|
13
|
+
for (const typescriptPackageJsonPath of getTypeScriptPackageJsonPaths(dirname)) {
|
|
14
|
+
try {
|
|
15
|
+
const packageJson = await readFile(typescriptPackageJsonPath, "utf-8");
|
|
16
|
+
const { version } = JSON.parse(packageJson);
|
|
17
|
+
const sanitizedVersion = getSanitizedTypeScriptVersion(version);
|
|
18
|
+
if (typeof sanitizedVersion !== "string") {
|
|
19
|
+
continue;
|
|
20
|
+
}
|
|
21
|
+
tscVersion = sanitizedVersion;
|
|
22
|
+
return ["md/tsc", tscVersion];
|
|
23
|
+
}
|
|
24
|
+
catch {
|
|
17
25
|
}
|
|
18
|
-
tscVersion = version;
|
|
19
|
-
return ["md/tsc", tscVersion];
|
|
20
|
-
}
|
|
21
|
-
catch {
|
|
22
|
-
tscVersion = null;
|
|
23
26
|
}
|
|
27
|
+
tscVersion = null;
|
|
28
|
+
return undefined;
|
|
24
29
|
};
|
package/node_modules/@aws-sdk/util-user-agent-node/dist-types/getSanitizedTypeScriptVersion.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Validates a semver string (with optional pre-release and/or build metadata).
|
|
3
|
+
* If valid, returns the version string with build metadata stripped.
|
|
4
|
+
* Returns undefined if the string is not a valid semver.
|
|
5
|
+
*
|
|
6
|
+
* @internal
|
|
7
|
+
*/
|
|
8
|
+
export declare const getSanitizedTypeScriptVersion: (version?: string) => string | undefined;
|
package/node_modules/@aws-sdk/util-user-agent-node/dist-types/getTypeScriptPackageJsonPaths.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Returns candidate paths to the TypeScript package.json file derived from the current
|
|
3
|
+
* working directory and, if provided, from the given directory.
|
|
4
|
+
*
|
|
5
|
+
* @param dirname - Optional directory path to derive an additional candidate path from.
|
|
6
|
+
* @returns An array of unique candidate paths to the TypeScript package.json file.
|
|
7
|
+
*
|
|
8
|
+
* @internal
|
|
9
|
+
*/
|
|
10
|
+
export declare const getTypeScriptPackageJsonPaths: (dirname?: string) => string[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/util-user-agent-node",
|
|
3
|
-
"version": "3.973.
|
|
3
|
+
"version": "3.973.1",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
|
|
6
6
|
"build:cjs": "node ../../scripts/compilation/inline util-user-agent-node",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
},
|
|
25
25
|
"license": "Apache-2.0",
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@aws-sdk/middleware-user-agent": "^3.972.
|
|
27
|
+
"@aws-sdk/middleware-user-agent": "^3.972.16",
|
|
28
28
|
"@aws-sdk/types": "^3.973.4",
|
|
29
29
|
"@smithy/node-config-provider": "^4.3.10",
|
|
30
30
|
"@smithy/types": "^4.13.0",
|
|
@@ -10,6 +10,7 @@ const parser = new fast_xml_parser_1.XMLParser({
|
|
|
10
10
|
parseTagValue: false,
|
|
11
11
|
trimValues: false,
|
|
12
12
|
tagValueProcessor: (_, val) => (val.trim() === "" && val.includes("\n") ? "" : undefined),
|
|
13
|
+
maxNestedTags: 1024,
|
|
13
14
|
});
|
|
14
15
|
parser.addEntity("#xD", "\r");
|
|
15
16
|
parser.addEntity("#10", "\n");
|
|
@@ -7,6 +7,7 @@ const parser = new XMLParser({
|
|
|
7
7
|
parseTagValue: false,
|
|
8
8
|
trimValues: false,
|
|
9
9
|
tagValueProcessor: (_, val) => (val.trim() === "" && val.includes("\n") ? "" : undefined),
|
|
10
|
+
maxNestedTags: 1024,
|
|
10
11
|
});
|
|
11
12
|
parser.addEntity("#xD", "\r");
|
|
12
13
|
parser.addEntity("#10", "\n");
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/xml-builder",
|
|
3
|
-
"version": "3.972.
|
|
3
|
+
"version": "3.972.9",
|
|
4
4
|
"description": "XML utilities for the AWS SDK",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"@smithy/types": "^4.13.0",
|
|
7
|
-
"fast-xml-parser": "5.
|
|
7
|
+
"fast-xml-parser": "5.4.1",
|
|
8
8
|
"tslib": "^2.6.2"
|
|
9
9
|
},
|
|
10
10
|
"scripts": {
|
|
@@ -929,24 +929,18 @@ class CborShapeDeserializer extends protocols.SerdeContext {
|
|
|
929
929
|
if (ns.isListSchema()) {
|
|
930
930
|
const newArray = [];
|
|
931
931
|
const memberSchema = ns.getValueSchema();
|
|
932
|
-
const sparse = !!ns.getMergedTraits().sparse;
|
|
933
932
|
for (const item of value) {
|
|
934
933
|
const itemValue = this.readValue(memberSchema, item);
|
|
935
|
-
|
|
936
|
-
newArray.push(itemValue);
|
|
937
|
-
}
|
|
934
|
+
newArray.push(itemValue);
|
|
938
935
|
}
|
|
939
936
|
return newArray;
|
|
940
937
|
}
|
|
941
938
|
const newObject = {};
|
|
942
939
|
if (ns.isMapSchema()) {
|
|
943
|
-
const sparse = !!ns.getMergedTraits().sparse;
|
|
944
940
|
const targetSchema = ns.getValueSchema();
|
|
945
941
|
for (const key of Object.keys(value)) {
|
|
946
942
|
const itemValue = this.readValue(targetSchema, value[key]);
|
|
947
|
-
|
|
948
|
-
newObject[key] = itemValue;
|
|
949
|
-
}
|
|
943
|
+
newObject[key] = itemValue;
|
|
950
944
|
}
|
|
951
945
|
}
|
|
952
946
|
else if (ns.isStructSchema()) {
|
|
@@ -154,24 +154,18 @@ export class CborShapeDeserializer extends SerdeContext {
|
|
|
154
154
|
if (ns.isListSchema()) {
|
|
155
155
|
const newArray = [];
|
|
156
156
|
const memberSchema = ns.getValueSchema();
|
|
157
|
-
const sparse = !!ns.getMergedTraits().sparse;
|
|
158
157
|
for (const item of value) {
|
|
159
158
|
const itemValue = this.readValue(memberSchema, item);
|
|
160
|
-
|
|
161
|
-
newArray.push(itemValue);
|
|
162
|
-
}
|
|
159
|
+
newArray.push(itemValue);
|
|
163
160
|
}
|
|
164
161
|
return newArray;
|
|
165
162
|
}
|
|
166
163
|
const newObject = {};
|
|
167
164
|
if (ns.isMapSchema()) {
|
|
168
|
-
const sparse = !!ns.getMergedTraits().sparse;
|
|
169
165
|
const targetSchema = ns.getValueSchema();
|
|
170
166
|
for (const key of Object.keys(value)) {
|
|
171
167
|
const itemValue = this.readValue(targetSchema, value[key]);
|
|
172
|
-
|
|
173
|
-
newObject[key] = itemValue;
|
|
174
|
-
}
|
|
168
|
+
newObject[key] = itemValue;
|
|
175
169
|
}
|
|
176
170
|
}
|
|
177
171
|
else if (ns.isStructSchema()) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/core",
|
|
3
|
-
"version": "3.23.
|
|
3
|
+
"version": "3.23.7",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "yarn lint && concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
|
|
6
6
|
"build:cjs": "node ../../scripts/inline core",
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
"@smithy/util-base64": "^4.3.1",
|
|
86
86
|
"@smithy/util-body-length-browser": "^4.2.1",
|
|
87
87
|
"@smithy/util-middleware": "^4.2.10",
|
|
88
|
-
"@smithy/util-stream": "^4.5.
|
|
88
|
+
"@smithy/util-stream": "^4.5.16",
|
|
89
89
|
"@smithy/util-utf8": "^4.2.1",
|
|
90
90
|
"@smithy/uuid": "^1.1.1",
|
|
91
91
|
"tslib": "^2.6.2"
|
|
@@ -54,8 +54,7 @@ class FetchHttpHandler {
|
|
|
54
54
|
const keepAlive = this.config.keepAlive === true;
|
|
55
55
|
const credentials = this.config.credentials;
|
|
56
56
|
if (abortSignal?.aborted) {
|
|
57
|
-
const abortError =
|
|
58
|
-
abortError.name = "AbortError";
|
|
57
|
+
const abortError = buildAbortError(abortSignal);
|
|
59
58
|
return Promise.reject(abortError);
|
|
60
59
|
}
|
|
61
60
|
let path = request.path;
|
|
@@ -130,8 +129,7 @@ class FetchHttpHandler {
|
|
|
130
129
|
if (abortSignal) {
|
|
131
130
|
raceOfPromises.push(new Promise((resolve, reject) => {
|
|
132
131
|
const onAbort = () => {
|
|
133
|
-
const abortError =
|
|
134
|
-
abortError.name = "AbortError";
|
|
132
|
+
const abortError = buildAbortError(abortSignal);
|
|
135
133
|
reject(abortError);
|
|
136
134
|
};
|
|
137
135
|
if (typeof abortSignal.addEventListener === "function") {
|
|
@@ -157,6 +155,22 @@ class FetchHttpHandler {
|
|
|
157
155
|
return this.config ?? {};
|
|
158
156
|
}
|
|
159
157
|
}
|
|
158
|
+
function buildAbortError(abortSignal) {
|
|
159
|
+
const reason = abortSignal && typeof abortSignal === "object" && "reason" in abortSignal
|
|
160
|
+
? abortSignal.reason
|
|
161
|
+
: undefined;
|
|
162
|
+
if (reason) {
|
|
163
|
+
if (reason instanceof Error) {
|
|
164
|
+
return reason;
|
|
165
|
+
}
|
|
166
|
+
const abortError = new Error(String(reason));
|
|
167
|
+
abortError.name = "AbortError";
|
|
168
|
+
return abortError;
|
|
169
|
+
}
|
|
170
|
+
const abortError = new Error("Request aborted");
|
|
171
|
+
abortError.name = "AbortError";
|
|
172
|
+
return abortError;
|
|
173
|
+
}
|
|
160
174
|
|
|
161
175
|
const streamCollector = async (stream) => {
|
|
162
176
|
if ((typeof Blob === "function" && stream instanceof Blob) || stream.constructor?.name === "Blob") {
|
|
@@ -36,8 +36,7 @@ export class FetchHttpHandler {
|
|
|
36
36
|
const keepAlive = this.config.keepAlive === true;
|
|
37
37
|
const credentials = this.config.credentials;
|
|
38
38
|
if (abortSignal?.aborted) {
|
|
39
|
-
const abortError =
|
|
40
|
-
abortError.name = "AbortError";
|
|
39
|
+
const abortError = buildAbortError(abortSignal);
|
|
41
40
|
return Promise.reject(abortError);
|
|
42
41
|
}
|
|
43
42
|
let path = request.path;
|
|
@@ -112,8 +111,7 @@ export class FetchHttpHandler {
|
|
|
112
111
|
if (abortSignal) {
|
|
113
112
|
raceOfPromises.push(new Promise((resolve, reject) => {
|
|
114
113
|
const onAbort = () => {
|
|
115
|
-
const abortError =
|
|
116
|
-
abortError.name = "AbortError";
|
|
114
|
+
const abortError = buildAbortError(abortSignal);
|
|
117
115
|
reject(abortError);
|
|
118
116
|
};
|
|
119
117
|
if (typeof abortSignal.addEventListener === "function") {
|
|
@@ -139,3 +137,19 @@ export class FetchHttpHandler {
|
|
|
139
137
|
return this.config ?? {};
|
|
140
138
|
}
|
|
141
139
|
}
|
|
140
|
+
function buildAbortError(abortSignal) {
|
|
141
|
+
const reason = abortSignal && typeof abortSignal === "object" && "reason" in abortSignal
|
|
142
|
+
? abortSignal.reason
|
|
143
|
+
: undefined;
|
|
144
|
+
if (reason) {
|
|
145
|
+
if (reason instanceof Error) {
|
|
146
|
+
return reason;
|
|
147
|
+
}
|
|
148
|
+
const abortError = new Error(String(reason));
|
|
149
|
+
abortError.name = "AbortError";
|
|
150
|
+
return abortError;
|
|
151
|
+
}
|
|
152
|
+
const abortError = new Error("Request aborted");
|
|
153
|
+
abortError.name = "AbortError";
|
|
154
|
+
return abortError;
|
|
155
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/middleware-endpoint",
|
|
3
|
-
"version": "4.4.
|
|
3
|
+
"version": "4.4.21",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
|
|
6
6
|
"build:cjs": "node ../../scripts/inline middleware-endpoint",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"license": "Apache-2.0",
|
|
26
26
|
"sideEffects": false,
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@smithy/core": "^3.23.
|
|
28
|
+
"@smithy/core": "^3.23.7",
|
|
29
29
|
"@smithy/middleware-serde": "^4.2.11",
|
|
30
30
|
"@smithy/node-config-provider": "^4.3.10",
|
|
31
31
|
"@smithy/shared-ini-file-loader": "^4.4.5",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/middleware-retry",
|
|
3
|
-
"version": "4.4.
|
|
3
|
+
"version": "4.4.38",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
|
|
6
6
|
"build:cjs": "node ../../scripts/inline middleware-retry",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"@smithy/node-config-provider": "^4.3.10",
|
|
38
38
|
"@smithy/protocol-http": "^5.3.10",
|
|
39
39
|
"@smithy/service-error-classification": "^4.2.10",
|
|
40
|
-
"@smithy/smithy-client": "^4.12.
|
|
40
|
+
"@smithy/smithy-client": "^4.12.1",
|
|
41
41
|
"@smithy/types": "^4.13.0",
|
|
42
42
|
"@smithy/util-middleware": "^4.2.10",
|
|
43
43
|
"@smithy/util-retry": "^4.2.10",
|
|
@@ -7,6 +7,23 @@ var https = require('https');
|
|
|
7
7
|
var stream = require('stream');
|
|
8
8
|
var http2 = require('http2');
|
|
9
9
|
|
|
10
|
+
function buildAbortError(abortSignal) {
|
|
11
|
+
const reason = abortSignal && typeof abortSignal === "object" && "reason" in abortSignal
|
|
12
|
+
? abortSignal.reason
|
|
13
|
+
: undefined;
|
|
14
|
+
if (reason) {
|
|
15
|
+
if (reason instanceof Error) {
|
|
16
|
+
return reason;
|
|
17
|
+
}
|
|
18
|
+
const abortError = new Error(String(reason));
|
|
19
|
+
abortError.name = "AbortError";
|
|
20
|
+
return abortError;
|
|
21
|
+
}
|
|
22
|
+
const abortError = new Error("Request aborted");
|
|
23
|
+
abortError.name = "AbortError";
|
|
24
|
+
return abortError;
|
|
25
|
+
}
|
|
26
|
+
|
|
10
27
|
const NODEJS_TIMEOUT_ERROR_CODES = ["ECONNRESET", "EPIPE", "ETIMEDOUT"];
|
|
11
28
|
|
|
12
29
|
const getTransformedHeaders = (headers) => {
|
|
@@ -287,8 +304,7 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
|
|
|
287
304
|
_reject(arg);
|
|
288
305
|
};
|
|
289
306
|
if (abortSignal?.aborted) {
|
|
290
|
-
const abortError =
|
|
291
|
-
abortError.name = "AbortError";
|
|
307
|
+
const abortError = buildAbortError(abortSignal);
|
|
292
308
|
reject(abortError);
|
|
293
309
|
return;
|
|
294
310
|
}
|
|
@@ -356,8 +372,7 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
|
|
|
356
372
|
if (abortSignal) {
|
|
357
373
|
const onAbort = () => {
|
|
358
374
|
req.destroy();
|
|
359
|
-
const abortError =
|
|
360
|
-
abortError.name = "AbortError";
|
|
375
|
+
const abortError = buildAbortError(abortSignal);
|
|
361
376
|
reject(abortError);
|
|
362
377
|
};
|
|
363
378
|
if (typeof abortSignal.addEventListener === "function") {
|
|
@@ -570,8 +585,7 @@ class NodeHttp2Handler {
|
|
|
570
585
|
};
|
|
571
586
|
if (abortSignal?.aborted) {
|
|
572
587
|
fulfilled = true;
|
|
573
|
-
const abortError =
|
|
574
|
-
abortError.name = "AbortError";
|
|
588
|
+
const abortError = buildAbortError(abortSignal);
|
|
575
589
|
reject(abortError);
|
|
576
590
|
return;
|
|
577
591
|
}
|
|
@@ -633,8 +647,7 @@ class NodeHttp2Handler {
|
|
|
633
647
|
if (abortSignal) {
|
|
634
648
|
const onAbort = () => {
|
|
635
649
|
req.close();
|
|
636
|
-
const abortError =
|
|
637
|
-
abortError.name = "AbortError";
|
|
650
|
+
const abortError = buildAbortError(abortSignal);
|
|
638
651
|
rejectWithDestroy(abortError);
|
|
639
652
|
};
|
|
640
653
|
if (typeof abortSignal.addEventListener === "function") {
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export function buildAbortError(abortSignal) {
|
|
2
|
+
const reason = abortSignal && typeof abortSignal === "object" && "reason" in abortSignal
|
|
3
|
+
? abortSignal.reason
|
|
4
|
+
: undefined;
|
|
5
|
+
if (reason) {
|
|
6
|
+
if (reason instanceof Error) {
|
|
7
|
+
return reason;
|
|
8
|
+
}
|
|
9
|
+
const abortError = new Error(String(reason));
|
|
10
|
+
abortError.name = "AbortError";
|
|
11
|
+
return abortError;
|
|
12
|
+
}
|
|
13
|
+
const abortError = new Error("Request aborted");
|
|
14
|
+
abortError.name = "AbortError";
|
|
15
|
+
return abortError;
|
|
16
|
+
}
|
|
@@ -2,6 +2,7 @@ import { HttpResponse } from "@smithy/protocol-http";
|
|
|
2
2
|
import { buildQueryString } from "@smithy/querystring-builder";
|
|
3
3
|
import { Agent as hAgent, request as hRequest } from "http";
|
|
4
4
|
import { Agent as hsAgent, request as hsRequest } from "https";
|
|
5
|
+
import { buildAbortError } from "./build-abort-error";
|
|
5
6
|
import { NODEJS_TIMEOUT_ERROR_CODES } from "./constants";
|
|
6
7
|
import { getTransformedHeaders } from "./get-transformed-headers";
|
|
7
8
|
import { setConnectionTimeout } from "./set-connection-timeout";
|
|
@@ -110,8 +111,7 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
|
|
|
110
111
|
_reject(arg);
|
|
111
112
|
};
|
|
112
113
|
if (abortSignal?.aborted) {
|
|
113
|
-
const abortError =
|
|
114
|
-
abortError.name = "AbortError";
|
|
114
|
+
const abortError = buildAbortError(abortSignal);
|
|
115
115
|
reject(abortError);
|
|
116
116
|
return;
|
|
117
117
|
}
|
|
@@ -179,8 +179,7 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
|
|
|
179
179
|
if (abortSignal) {
|
|
180
180
|
const onAbort = () => {
|
|
181
181
|
req.destroy();
|
|
182
|
-
const abortError =
|
|
183
|
-
abortError.name = "AbortError";
|
|
182
|
+
const abortError = buildAbortError(abortSignal);
|
|
184
183
|
reject(abortError);
|
|
185
184
|
};
|
|
186
185
|
if (typeof abortSignal.addEventListener === "function") {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { HttpResponse } from "@smithy/protocol-http";
|
|
2
2
|
import { buildQueryString } from "@smithy/querystring-builder";
|
|
3
3
|
import { constants } from "http2";
|
|
4
|
+
import { buildAbortError } from "./build-abort-error";
|
|
4
5
|
import { getTransformedHeaders } from "./get-transformed-headers";
|
|
5
6
|
import { NodeHttp2ConnectionManager } from "./node-http2-connection-manager";
|
|
6
7
|
import { writeRequestBody } from "./write-request-body";
|
|
@@ -55,8 +56,7 @@ export class NodeHttp2Handler {
|
|
|
55
56
|
};
|
|
56
57
|
if (abortSignal?.aborted) {
|
|
57
58
|
fulfilled = true;
|
|
58
|
-
const abortError =
|
|
59
|
-
abortError.name = "AbortError";
|
|
59
|
+
const abortError = buildAbortError(abortSignal);
|
|
60
60
|
reject(abortError);
|
|
61
61
|
return;
|
|
62
62
|
}
|
|
@@ -118,8 +118,7 @@ export class NodeHttp2Handler {
|
|
|
118
118
|
if (abortSignal) {
|
|
119
119
|
const onAbort = () => {
|
|
120
120
|
req.close();
|
|
121
|
-
const abortError =
|
|
122
|
-
abortError.name = "AbortError";
|
|
121
|
+
const abortError = buildAbortError(abortSignal);
|
|
123
122
|
rejectWithDestroy(abortError);
|
|
124
123
|
};
|
|
125
124
|
if (typeof abortSignal.addEventListener === "function") {
|