@cdk8s/awscdk-resolver 0.0.366 → 0.0.368
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/resolve.js +1 -1
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/index.js +83 -83
- package/node_modules/@aws-sdk/client-cloudformation/dist-es/protocols/Aws_query.js +83 -83
- package/node_modules/@aws-sdk/client-cloudformation/package.json +6 -6
- package/node_modules/@aws-sdk/client-sso/package.json +5 -5
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +15 -37
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/XmlShapeDeserializer.js +2 -13
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/parseXmlBody.js +2 -13
- package/node_modules/@aws-sdk/core/package.json +2 -3
- package/node_modules/@aws-sdk/credential-provider-env/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-http/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +8 -8
- 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 +5 -5
- package/node_modules/@aws-sdk/token-providers/package.json +3 -3
- package/node_modules/@aws-sdk/util-endpoints/dist-cjs/index.js +4 -4
- package/node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/aws/partitions.json +4 -4
- package/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/partitions.json +4 -4
- package/node_modules/@aws-sdk/util-endpoints/package.json +1 -1
- package/node_modules/@aws-sdk/util-user-agent-node/package.json +2 -2
- package/node_modules/@aws-sdk/xml-builder/dist-cjs/index.js +6 -1
- package/node_modules/@aws-sdk/xml-builder/dist-cjs/xml-parser.js +18 -0
- package/node_modules/@aws-sdk/xml-builder/dist-es/index.js +1 -0
- package/node_modules/@aws-sdk/xml-builder/dist-es/xml-parser.browser.js +54 -0
- package/node_modules/@aws-sdk/xml-builder/dist-es/xml-parser.js +15 -0
- package/node_modules/@aws-sdk/xml-builder/dist-types/index.d.ts +4 -0
- package/node_modules/@aws-sdk/xml-builder/dist-types/ts3.4/index.d.ts +1 -0
- package/node_modules/@aws-sdk/xml-builder/dist-types/ts3.4/xml-parser.browser.d.ts +1 -0
- package/node_modules/@aws-sdk/xml-builder/dist-types/ts3.4/xml-parser.d.ts +1 -0
- package/node_modules/@aws-sdk/xml-builder/dist-types/xml-parser.browser.d.ts +9 -0
- package/node_modules/@aws-sdk/xml-builder/dist-types/xml-parser.d.ts +4 -0
- package/node_modules/@aws-sdk/xml-builder/package.json +9 -1
- package/node_modules/@smithy/core/dist-cjs/submodules/schema/index.js +15 -5
- package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/NormalizedSchema.js +15 -5
- package/node_modules/@smithy/core/dist-es/submodules/serde/generateIdempotencyToken.js +1 -1
- package/node_modules/@smithy/core/dist-types/submodules/serde/generateIdempotencyToken.d.ts +1 -1
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/generateIdempotencyToken.d.ts +1 -1
- package/node_modules/@smithy/core/package.json +3 -4
- package/node_modules/@smithy/middleware-endpoint/package.json +2 -2
- package/node_modules/@smithy/middleware-retry/dist-cjs/index.js +1 -1
- package/node_modules/@smithy/middleware-retry/dist-es/StandardRetryStrategy.js +1 -1
- package/node_modules/@smithy/middleware-retry/dist-es/retryMiddleware.js +1 -1
- package/node_modules/@smithy/middleware-retry/package.json +4 -5
- package/node_modules/@smithy/smithy-client/package.json +3 -3
- 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/uuid/LICENSE +201 -0
- package/node_modules/@smithy/uuid/README.md +10 -0
- package/node_modules/@smithy/uuid/dist-cjs/index.js +45 -0
- package/node_modules/@smithy/uuid/dist-cjs/randomUUID.browser.js +1 -0
- package/node_modules/@smithy/uuid/dist-cjs/randomUUID.js +6 -0
- package/node_modules/@smithy/uuid/dist-cjs/randomUUID.native.js +4 -0
- package/node_modules/@smithy/uuid/dist-cjs/v4.js +1 -0
- package/node_modules/@smithy/uuid/dist-es/index.js +1 -0
- package/node_modules/@smithy/uuid/dist-es/randomUUID.browser.js +1 -0
- package/node_modules/@smithy/uuid/dist-es/randomUUID.js +2 -0
- package/node_modules/@smithy/uuid/dist-es/randomUUID.native.js +1 -0
- package/node_modules/@smithy/uuid/dist-es/v4.js +31 -0
- package/node_modules/@smithy/uuid/dist-types/index.d.ts +1 -0
- package/node_modules/@smithy/uuid/dist-types/randomUUID.browser.d.ts +1 -0
- package/node_modules/@smithy/uuid/dist-types/randomUUID.d.ts +2 -0
- package/node_modules/@smithy/uuid/dist-types/randomUUID.native.d.ts +1 -0
- package/node_modules/@smithy/uuid/dist-types/ts3.4/index.d.ts +1 -0
- package/node_modules/@smithy/uuid/dist-types/ts3.4/randomUUID.browser.d.ts +1 -0
- package/node_modules/@smithy/uuid/dist-types/ts3.4/randomUUID.d.ts +2 -0
- package/node_modules/@smithy/uuid/dist-types/ts3.4/randomUUID.native.d.ts +1 -0
- package/node_modules/@smithy/uuid/dist-types/ts3.4/v4.d.ts +19 -0
- package/node_modules/@smithy/uuid/dist-types/v4.d.ts +19 -0
- package/node_modules/@smithy/uuid/package.json +66 -0
- package/package.json +4 -4
- /package/node_modules/{uuid → @aws-sdk/client-cloudformation/node_modules/uuid}/CHANGELOG.md +0 -0
- /package/node_modules/{uuid → @aws-sdk/client-cloudformation/node_modules/uuid}/CONTRIBUTING.md +0 -0
- /package/node_modules/{uuid → @aws-sdk/client-cloudformation/node_modules/uuid}/LICENSE.md +0 -0
- /package/node_modules/{uuid → @aws-sdk/client-cloudformation/node_modules/uuid}/README.md +0 -0
- /package/node_modules/{uuid → @aws-sdk/client-cloudformation/node_modules/uuid}/dist/bin/uuid +0 -0
- /package/node_modules/{uuid → @aws-sdk/client-cloudformation/node_modules/uuid}/dist/commonjs-browser/index.js +0 -0
- /package/node_modules/{uuid → @aws-sdk/client-cloudformation/node_modules/uuid}/dist/commonjs-browser/md5.js +0 -0
- /package/node_modules/{uuid → @aws-sdk/client-cloudformation/node_modules/uuid}/dist/commonjs-browser/native.js +0 -0
- /package/node_modules/{uuid → @aws-sdk/client-cloudformation/node_modules/uuid}/dist/commonjs-browser/nil.js +0 -0
- /package/node_modules/{uuid → @aws-sdk/client-cloudformation/node_modules/uuid}/dist/commonjs-browser/parse.js +0 -0
- /package/node_modules/{uuid → @aws-sdk/client-cloudformation/node_modules/uuid}/dist/commonjs-browser/regex.js +0 -0
- /package/node_modules/{uuid → @aws-sdk/client-cloudformation/node_modules/uuid}/dist/commonjs-browser/rng.js +0 -0
- /package/node_modules/{uuid → @aws-sdk/client-cloudformation/node_modules/uuid}/dist/commonjs-browser/sha1.js +0 -0
- /package/node_modules/{uuid → @aws-sdk/client-cloudformation/node_modules/uuid}/dist/commonjs-browser/stringify.js +0 -0
- /package/node_modules/{uuid → @aws-sdk/client-cloudformation/node_modules/uuid}/dist/commonjs-browser/v1.js +0 -0
- /package/node_modules/{uuid → @aws-sdk/client-cloudformation/node_modules/uuid}/dist/commonjs-browser/v3.js +0 -0
- /package/node_modules/{uuid → @aws-sdk/client-cloudformation/node_modules/uuid}/dist/commonjs-browser/v35.js +0 -0
- /package/node_modules/{uuid → @aws-sdk/client-cloudformation/node_modules/uuid}/dist/commonjs-browser/v4.js +0 -0
- /package/node_modules/{uuid → @aws-sdk/client-cloudformation/node_modules/uuid}/dist/commonjs-browser/v5.js +0 -0
- /package/node_modules/{uuid → @aws-sdk/client-cloudformation/node_modules/uuid}/dist/commonjs-browser/validate.js +0 -0
- /package/node_modules/{uuid → @aws-sdk/client-cloudformation/node_modules/uuid}/dist/commonjs-browser/version.js +0 -0
- /package/node_modules/{uuid → @aws-sdk/client-cloudformation/node_modules/uuid}/dist/esm-browser/index.js +0 -0
- /package/node_modules/{uuid → @aws-sdk/client-cloudformation/node_modules/uuid}/dist/esm-browser/md5.js +0 -0
- /package/node_modules/{uuid → @aws-sdk/client-cloudformation/node_modules/uuid}/dist/esm-browser/native.js +0 -0
- /package/node_modules/{uuid → @aws-sdk/client-cloudformation/node_modules/uuid}/dist/esm-browser/nil.js +0 -0
- /package/node_modules/{uuid → @aws-sdk/client-cloudformation/node_modules/uuid}/dist/esm-browser/parse.js +0 -0
- /package/node_modules/{uuid → @aws-sdk/client-cloudformation/node_modules/uuid}/dist/esm-browser/regex.js +0 -0
- /package/node_modules/{uuid → @aws-sdk/client-cloudformation/node_modules/uuid}/dist/esm-browser/rng.js +0 -0
- /package/node_modules/{uuid → @aws-sdk/client-cloudformation/node_modules/uuid}/dist/esm-browser/sha1.js +0 -0
- /package/node_modules/{uuid → @aws-sdk/client-cloudformation/node_modules/uuid}/dist/esm-browser/stringify.js +0 -0
- /package/node_modules/{uuid → @aws-sdk/client-cloudformation/node_modules/uuid}/dist/esm-browser/v1.js +0 -0
- /package/node_modules/{uuid → @aws-sdk/client-cloudformation/node_modules/uuid}/dist/esm-browser/v3.js +0 -0
- /package/node_modules/{uuid → @aws-sdk/client-cloudformation/node_modules/uuid}/dist/esm-browser/v35.js +0 -0
- /package/node_modules/{uuid → @aws-sdk/client-cloudformation/node_modules/uuid}/dist/esm-browser/v4.js +0 -0
- /package/node_modules/{uuid → @aws-sdk/client-cloudformation/node_modules/uuid}/dist/esm-browser/v5.js +0 -0
- /package/node_modules/{uuid → @aws-sdk/client-cloudformation/node_modules/uuid}/dist/esm-browser/validate.js +0 -0
- /package/node_modules/{uuid → @aws-sdk/client-cloudformation/node_modules/uuid}/dist/esm-browser/version.js +0 -0
- /package/node_modules/{uuid → @aws-sdk/client-cloudformation/node_modules/uuid}/dist/esm-node/index.js +0 -0
- /package/node_modules/{uuid → @aws-sdk/client-cloudformation/node_modules/uuid}/dist/esm-node/md5.js +0 -0
- /package/node_modules/{uuid → @aws-sdk/client-cloudformation/node_modules/uuid}/dist/esm-node/native.js +0 -0
- /package/node_modules/{uuid → @aws-sdk/client-cloudformation/node_modules/uuid}/dist/esm-node/nil.js +0 -0
- /package/node_modules/{uuid → @aws-sdk/client-cloudformation/node_modules/uuid}/dist/esm-node/parse.js +0 -0
- /package/node_modules/{uuid → @aws-sdk/client-cloudformation/node_modules/uuid}/dist/esm-node/regex.js +0 -0
- /package/node_modules/{uuid → @aws-sdk/client-cloudformation/node_modules/uuid}/dist/esm-node/rng.js +0 -0
- /package/node_modules/{uuid → @aws-sdk/client-cloudformation/node_modules/uuid}/dist/esm-node/sha1.js +0 -0
- /package/node_modules/{uuid → @aws-sdk/client-cloudformation/node_modules/uuid}/dist/esm-node/stringify.js +0 -0
- /package/node_modules/{uuid → @aws-sdk/client-cloudformation/node_modules/uuid}/dist/esm-node/v1.js +0 -0
- /package/node_modules/{uuid → @aws-sdk/client-cloudformation/node_modules/uuid}/dist/esm-node/v3.js +0 -0
- /package/node_modules/{uuid → @aws-sdk/client-cloudformation/node_modules/uuid}/dist/esm-node/v35.js +0 -0
- /package/node_modules/{uuid → @aws-sdk/client-cloudformation/node_modules/uuid}/dist/esm-node/v4.js +0 -0
- /package/node_modules/{uuid → @aws-sdk/client-cloudformation/node_modules/uuid}/dist/esm-node/v5.js +0 -0
- /package/node_modules/{uuid → @aws-sdk/client-cloudformation/node_modules/uuid}/dist/esm-node/validate.js +0 -0
- /package/node_modules/{uuid → @aws-sdk/client-cloudformation/node_modules/uuid}/dist/esm-node/version.js +0 -0
- /package/node_modules/{uuid → @aws-sdk/client-cloudformation/node_modules/uuid}/dist/index.js +0 -0
- /package/node_modules/{uuid → @aws-sdk/client-cloudformation/node_modules/uuid}/dist/md5-browser.js +0 -0
- /package/node_modules/{uuid → @aws-sdk/client-cloudformation/node_modules/uuid}/dist/md5.js +0 -0
- /package/node_modules/{uuid → @aws-sdk/client-cloudformation/node_modules/uuid}/dist/native-browser.js +0 -0
- /package/node_modules/{uuid → @aws-sdk/client-cloudformation/node_modules/uuid}/dist/native.js +0 -0
- /package/node_modules/{uuid → @aws-sdk/client-cloudformation/node_modules/uuid}/dist/nil.js +0 -0
- /package/node_modules/{uuid → @aws-sdk/client-cloudformation/node_modules/uuid}/dist/parse.js +0 -0
- /package/node_modules/{uuid → @aws-sdk/client-cloudformation/node_modules/uuid}/dist/regex.js +0 -0
- /package/node_modules/{uuid → @aws-sdk/client-cloudformation/node_modules/uuid}/dist/rng-browser.js +0 -0
- /package/node_modules/{uuid → @aws-sdk/client-cloudformation/node_modules/uuid}/dist/rng.js +0 -0
- /package/node_modules/{uuid → @aws-sdk/client-cloudformation/node_modules/uuid}/dist/sha1-browser.js +0 -0
- /package/node_modules/{uuid → @aws-sdk/client-cloudformation/node_modules/uuid}/dist/sha1.js +0 -0
- /package/node_modules/{uuid → @aws-sdk/client-cloudformation/node_modules/uuid}/dist/stringify.js +0 -0
- /package/node_modules/{uuid → @aws-sdk/client-cloudformation/node_modules/uuid}/dist/uuid-bin.js +0 -0
- /package/node_modules/{uuid → @aws-sdk/client-cloudformation/node_modules/uuid}/dist/v1.js +0 -0
- /package/node_modules/{uuid → @aws-sdk/client-cloudformation/node_modules/uuid}/dist/v3.js +0 -0
- /package/node_modules/{uuid → @aws-sdk/client-cloudformation/node_modules/uuid}/dist/v35.js +0 -0
- /package/node_modules/{uuid → @aws-sdk/client-cloudformation/node_modules/uuid}/dist/v4.js +0 -0
- /package/node_modules/{uuid → @aws-sdk/client-cloudformation/node_modules/uuid}/dist/v5.js +0 -0
- /package/node_modules/{uuid → @aws-sdk/client-cloudformation/node_modules/uuid}/dist/validate.js +0 -0
- /package/node_modules/{uuid → @aws-sdk/client-cloudformation/node_modules/uuid}/dist/version.js +0 -0
- /package/node_modules/{uuid → @aws-sdk/client-cloudformation/node_modules/uuid}/package.json +0 -0
- /package/node_modules/{uuid → @aws-sdk/client-cloudformation/node_modules/uuid}/wrapper.mjs +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/util-user-agent-node",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.895.0",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
6
6
|
"build:cjs": "node ../../scripts/compilation/inline util-user-agent-node",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
},
|
|
23
23
|
"license": "Apache-2.0",
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
25
|
+
"@aws-sdk/middleware-user-agent": "3.895.0",
|
|
26
26
|
"@aws-sdk/types": "3.893.0",
|
|
27
27
|
"@smithy/node-config-provider": "^4.2.2",
|
|
28
28
|
"@smithy/types": "^4.5.0",
|
|
@@ -22,7 +22,8 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
22
22
|
var index_exports = {};
|
|
23
23
|
__export(index_exports, {
|
|
24
24
|
XmlNode: () => XmlNode,
|
|
25
|
-
XmlText: () => XmlText
|
|
25
|
+
XmlText: () => XmlText,
|
|
26
|
+
parseXML: () => import_xml_parser.parseXML
|
|
26
27
|
});
|
|
27
28
|
module.exports = __toCommonJS(index_exports);
|
|
28
29
|
|
|
@@ -164,9 +165,13 @@ var XmlNode = class _XmlNode {
|
|
|
164
165
|
return xmlText += !hasChildren ? "/>" : `>${this.children.map((c) => c.toString()).join("")}</${this.name}>`;
|
|
165
166
|
}
|
|
166
167
|
};
|
|
168
|
+
|
|
169
|
+
// src/index.ts
|
|
170
|
+
var import_xml_parser = require("././xml-parser");
|
|
167
171
|
// Annotate the CommonJS export names for ESM import in node:
|
|
168
172
|
|
|
169
173
|
0 && (module.exports = {
|
|
174
|
+
parseXML,
|
|
170
175
|
XmlNode,
|
|
171
176
|
XmlText
|
|
172
177
|
});
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.parseXML = parseXML;
|
|
4
|
+
const fast_xml_parser_1 = require("fast-xml-parser");
|
|
5
|
+
const parser = new fast_xml_parser_1.XMLParser({
|
|
6
|
+
attributeNamePrefix: "",
|
|
7
|
+
htmlEntities: true,
|
|
8
|
+
ignoreAttributes: false,
|
|
9
|
+
ignoreDeclaration: true,
|
|
10
|
+
parseTagValue: false,
|
|
11
|
+
trimValues: false,
|
|
12
|
+
tagValueProcessor: (_, val) => (val.trim() === "" && val.includes("\n") ? "" : undefined),
|
|
13
|
+
});
|
|
14
|
+
parser.addEntity("#xD", "\r");
|
|
15
|
+
parser.addEntity("#10", "\n");
|
|
16
|
+
function parseXML(xmlString) {
|
|
17
|
+
return parser.parse(xmlString, true);
|
|
18
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
const parser = new DOMParser();
|
|
2
|
+
export function parseXML(xmlString) {
|
|
3
|
+
const xmlDocument = parser.parseFromString(xmlString, "application/xml");
|
|
4
|
+
if (xmlDocument.getElementsByTagName("parsererror").length > 0) {
|
|
5
|
+
throw new Error("DOMParser XML parsing error.");
|
|
6
|
+
}
|
|
7
|
+
const xmlToObj = (node) => {
|
|
8
|
+
if (node.nodeType === Node.TEXT_NODE) {
|
|
9
|
+
if (node.textContent?.trim()) {
|
|
10
|
+
return node.textContent;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
if (node.nodeType === Node.ELEMENT_NODE) {
|
|
14
|
+
const element = node;
|
|
15
|
+
if (element.attributes.length === 0 && element.childNodes.length === 0) {
|
|
16
|
+
return "";
|
|
17
|
+
}
|
|
18
|
+
const obj = {};
|
|
19
|
+
const attributes = Array.from(element.attributes);
|
|
20
|
+
for (const attr of attributes) {
|
|
21
|
+
obj[`${attr.name}`] = attr.value;
|
|
22
|
+
}
|
|
23
|
+
const childNodes = Array.from(element.childNodes);
|
|
24
|
+
for (const child of childNodes) {
|
|
25
|
+
const childResult = xmlToObj(child);
|
|
26
|
+
if (childResult != null) {
|
|
27
|
+
const childName = child.nodeName;
|
|
28
|
+
if (childNodes.length === 1 && attributes.length === 0 && childName === "#text") {
|
|
29
|
+
return childResult;
|
|
30
|
+
}
|
|
31
|
+
if (obj[childName]) {
|
|
32
|
+
if (Array.isArray(obj[childName])) {
|
|
33
|
+
obj[childName].push(childResult);
|
|
34
|
+
}
|
|
35
|
+
else {
|
|
36
|
+
obj[childName] = [obj[childName], childResult];
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
else {
|
|
40
|
+
obj[childName] = childResult;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
else if (childNodes.length === 1 && attributes.length === 0) {
|
|
44
|
+
return element.textContent;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
return obj;
|
|
48
|
+
}
|
|
49
|
+
return null;
|
|
50
|
+
};
|
|
51
|
+
return {
|
|
52
|
+
[xmlDocument.documentElement.nodeName]: xmlToObj(xmlDocument.documentElement),
|
|
53
|
+
};
|
|
54
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { XMLParser } from "fast-xml-parser";
|
|
2
|
+
const parser = new XMLParser({
|
|
3
|
+
attributeNamePrefix: "",
|
|
4
|
+
htmlEntities: true,
|
|
5
|
+
ignoreAttributes: false,
|
|
6
|
+
ignoreDeclaration: true,
|
|
7
|
+
parseTagValue: false,
|
|
8
|
+
trimValues: false,
|
|
9
|
+
tagValueProcessor: (_, val) => (val.trim() === "" && val.includes("\n") ? "" : undefined),
|
|
10
|
+
});
|
|
11
|
+
parser.addEntity("#xD", "\r");
|
|
12
|
+
parser.addEntity("#10", "\n");
|
|
13
|
+
export function parseXML(xmlString) {
|
|
14
|
+
return parser.parse(xmlString, true);
|
|
15
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function parseXML(xmlString: string): any;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function parseXML(xmlString: string): any;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Cases where this differs from fast-xml-parser:
|
|
3
|
+
*
|
|
4
|
+
* 1. Mixing text with nested tags (does not occur in AWS REST XML).
|
|
5
|
+
* <mixed-text> hello, <bold>world</bold>, how are you?</mixed-text>
|
|
6
|
+
*
|
|
7
|
+
* @internal
|
|
8
|
+
*/
|
|
9
|
+
export declare function parseXML(xmlString: string): any;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/xml-builder",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.894.0",
|
|
4
4
|
"description": "XML builder for the AWS SDK",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"@smithy/types": "^4.5.0",
|
|
7
|
+
"fast-xml-parser": "5.2.5",
|
|
7
8
|
"tslib": "^2.6.2"
|
|
8
9
|
},
|
|
9
10
|
"scripts": {
|
|
@@ -39,6 +40,13 @@
|
|
|
39
40
|
"files": [
|
|
40
41
|
"dist-*/**"
|
|
41
42
|
],
|
|
43
|
+
"browser": {
|
|
44
|
+
"./dist-es/xml-parser": "./dist-es/xml-parser.browser"
|
|
45
|
+
},
|
|
46
|
+
"react-native": {
|
|
47
|
+
"./dist-es/xml-parser": "./dist-es/xml-parser",
|
|
48
|
+
"./dist-cjs/xml-parser": "./dist-cjs/xml-parser"
|
|
49
|
+
},
|
|
42
50
|
"homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/packages/xml-builder",
|
|
43
51
|
"repository": {
|
|
44
52
|
"type": "git",
|
|
@@ -427,8 +427,9 @@ var NormalizedSchema = class _NormalizedSchema {
|
|
|
427
427
|
this.memberTraits = 0;
|
|
428
428
|
}
|
|
429
429
|
if (schema instanceof _NormalizedSchema) {
|
|
430
|
+
const computedMemberTraits = this.memberTraits;
|
|
430
431
|
Object.assign(this, schema);
|
|
431
|
-
this.memberTraits = Object.assign({}, schema.getMemberTraits(), this.getMemberTraits());
|
|
432
|
+
this.memberTraits = Object.assign({}, computedMemberTraits, schema.getMemberTraits(), this.getMemberTraits());
|
|
432
433
|
this.normalizedTraits = void 0;
|
|
433
434
|
this.memberName = memberName ?? schema.memberName;
|
|
434
435
|
return;
|
|
@@ -592,10 +593,19 @@ var NormalizedSchema = class _NormalizedSchema {
|
|
|
592
593
|
* @returns whether the schema has the idempotencyToken trait.
|
|
593
594
|
*/
|
|
594
595
|
isIdempotencyToken() {
|
|
595
|
-
if (
|
|
596
|
-
return
|
|
597
|
-
}
|
|
598
|
-
|
|
596
|
+
if (this.normalizedTraits) {
|
|
597
|
+
return !!this.normalizedTraits.idempotencyToken;
|
|
598
|
+
}
|
|
599
|
+
for (const traits of [this.traits, this.memberTraits]) {
|
|
600
|
+
if (typeof traits === "number") {
|
|
601
|
+
if ((traits & 4) === 4) {
|
|
602
|
+
return true;
|
|
603
|
+
}
|
|
604
|
+
} else if (typeof traits === "object") {
|
|
605
|
+
if (!!traits.idempotencyToken) {
|
|
606
|
+
return true;
|
|
607
|
+
}
|
|
608
|
+
}
|
|
599
609
|
}
|
|
600
610
|
return false;
|
|
601
611
|
}
|
|
@@ -518,7 +518,7 @@ var stripLeadingZeroes = (value) => {
|
|
|
518
518
|
};
|
|
519
519
|
|
|
520
520
|
// src/submodules/serde/generateIdempotencyToken.ts
|
|
521
|
-
var import_uuid = require("uuid");
|
|
521
|
+
var import_uuid = require("@smithy/uuid");
|
|
522
522
|
|
|
523
523
|
// src/submodules/serde/lazy-json.ts
|
|
524
524
|
var LazyJsonString = function LazyJsonString2(val) {
|
|
@@ -31,8 +31,9 @@ export class NormalizedSchema {
|
|
|
31
31
|
this.memberTraits = 0;
|
|
32
32
|
}
|
|
33
33
|
if (schema instanceof NormalizedSchema) {
|
|
34
|
+
const computedMemberTraits = this.memberTraits;
|
|
34
35
|
Object.assign(this, schema);
|
|
35
|
-
this.memberTraits = Object.assign({}, schema.getMemberTraits(), this.getMemberTraits());
|
|
36
|
+
this.memberTraits = Object.assign({}, computedMemberTraits, schema.getMemberTraits(), this.getMemberTraits());
|
|
36
37
|
this.normalizedTraits = void 0;
|
|
37
38
|
this.memberName = memberName ?? schema.memberName;
|
|
38
39
|
return;
|
|
@@ -170,11 +171,20 @@ export class NormalizedSchema {
|
|
|
170
171
|
return this.getSchema() === SCHEMA.STREAMING_BLOB;
|
|
171
172
|
}
|
|
172
173
|
isIdempotencyToken() {
|
|
173
|
-
if (
|
|
174
|
-
return
|
|
174
|
+
if (this.normalizedTraits) {
|
|
175
|
+
return !!this.normalizedTraits.idempotencyToken;
|
|
175
176
|
}
|
|
176
|
-
|
|
177
|
-
|
|
177
|
+
for (const traits of [this.traits, this.memberTraits]) {
|
|
178
|
+
if (typeof traits === "number") {
|
|
179
|
+
if ((traits & 0b0100) === 0b0100) {
|
|
180
|
+
return true;
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
else if (typeof traits === "object") {
|
|
184
|
+
if (!!traits.idempotencyToken) {
|
|
185
|
+
return true;
|
|
186
|
+
}
|
|
187
|
+
}
|
|
178
188
|
}
|
|
179
189
|
return false;
|
|
180
190
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { v4 as generateIdempotencyToken } from "uuid";
|
|
1
|
+
import { v4 as generateIdempotencyToken } from "@smithy/uuid";
|
|
2
2
|
export { generateIdempotencyToken };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { v4 as generateIdempotencyToken } from "uuid";
|
|
1
|
+
import { v4 as generateIdempotencyToken } from "@smithy/uuid";
|
|
2
2
|
export { generateIdempotencyToken };
|
package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/generateIdempotencyToken.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { v4 as generateIdempotencyToken } from "uuid";
|
|
1
|
+
import { v4 as generateIdempotencyToken } from "@smithy/uuid";
|
|
2
2
|
export { generateIdempotencyToken };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/core",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.12.0",
|
|
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,9 +85,8 @@
|
|
|
85
85
|
"@smithy/util-middleware": "^4.1.1",
|
|
86
86
|
"@smithy/util-stream": "^4.3.2",
|
|
87
87
|
"@smithy/util-utf8": "^4.1.0",
|
|
88
|
-
"@
|
|
89
|
-
"tslib": "^2.6.2"
|
|
90
|
-
"uuid": "^9.0.1"
|
|
88
|
+
"@smithy/uuid": "^1.0.0",
|
|
89
|
+
"tslib": "^2.6.2"
|
|
91
90
|
},
|
|
92
91
|
"engines": {
|
|
93
92
|
"node": ">=18.0.0"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/middleware-endpoint",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.4",
|
|
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.
|
|
28
|
+
"@smithy/core": "^3.12.0",
|
|
29
29
|
"@smithy/middleware-serde": "^4.1.1",
|
|
30
30
|
"@smithy/node-config-provider": "^4.2.2",
|
|
31
31
|
"@smithy/shared-ini-file-loader": "^4.2.0",
|
|
@@ -48,7 +48,7 @@ module.exports = __toCommonJS(index_exports);
|
|
|
48
48
|
var import_protocol_http = require("@smithy/protocol-http");
|
|
49
49
|
|
|
50
50
|
|
|
51
|
-
var import_uuid = require("uuid");
|
|
51
|
+
var import_uuid = require("@smithy/uuid");
|
|
52
52
|
|
|
53
53
|
// src/defaultRetryQuota.ts
|
|
54
54
|
var import_util_retry = require("@smithy/util-retry");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { HttpRequest, HttpResponse } from "@smithy/protocol-http";
|
|
2
2
|
import { isThrottlingError } from "@smithy/service-error-classification";
|
|
3
3
|
import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_DELAY_BASE, INITIAL_RETRY_TOKENS, INVOCATION_ID_HEADER, REQUEST_HEADER, RETRY_MODES, THROTTLING_RETRY_DELAY_BASE, } from "@smithy/util-retry";
|
|
4
|
-
import { v4 } from "uuid";
|
|
4
|
+
import { v4 } from "@smithy/uuid";
|
|
5
5
|
import { getDefaultRetryQuota } from "./defaultRetryQuota";
|
|
6
6
|
import { defaultDelayDecider } from "./delayDecider";
|
|
7
7
|
import { defaultRetryDecider } from "./retryDecider";
|
|
@@ -2,7 +2,7 @@ import { HttpRequest, HttpResponse } from "@smithy/protocol-http";
|
|
|
2
2
|
import { isServerError, isThrottlingError, isTransientError } from "@smithy/service-error-classification";
|
|
3
3
|
import { NoOpLogger } from "@smithy/smithy-client";
|
|
4
4
|
import { INVOCATION_ID_HEADER, REQUEST_HEADER } from "@smithy/util-retry";
|
|
5
|
-
import { v4 } from "uuid";
|
|
5
|
+
import { v4 } from "@smithy/uuid";
|
|
6
6
|
import { isStreamingPayload } from "./isStreamingPayload/isStreamingPayload";
|
|
7
7
|
import { asSdkError } from "./util";
|
|
8
8
|
export const retryMiddleware = (options) => (next, context) => async (args) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/middleware-retry",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.3.0",
|
|
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,13 +37,12 @@
|
|
|
37
37
|
"@smithy/node-config-provider": "^4.2.2",
|
|
38
38
|
"@smithy/protocol-http": "^5.2.1",
|
|
39
39
|
"@smithy/service-error-classification": "^4.1.2",
|
|
40
|
-
"@smithy/smithy-client": "^4.6.
|
|
40
|
+
"@smithy/smithy-client": "^4.6.4",
|
|
41
41
|
"@smithy/types": "^4.5.0",
|
|
42
42
|
"@smithy/util-middleware": "^4.1.1",
|
|
43
43
|
"@smithy/util-retry": "^4.1.2",
|
|
44
|
-
"@
|
|
45
|
-
"tslib": "^2.6.2"
|
|
46
|
-
"uuid": "^9.0.1"
|
|
44
|
+
"@smithy/uuid": "^1.0.0",
|
|
45
|
+
"tslib": "^2.6.2"
|
|
47
46
|
},
|
|
48
47
|
"devDependencies": {
|
|
49
48
|
"@smithy/util-test": "^0.2.8",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/smithy-client",
|
|
3
|
-
"version": "4.6.
|
|
3
|
+
"version": "4.6.4",
|
|
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 smithy-client",
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
"license": "Apache-2.0",
|
|
26
26
|
"sideEffects": false,
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@smithy/core": "^3.
|
|
29
|
-
"@smithy/middleware-endpoint": "^4.2.
|
|
28
|
+
"@smithy/core": "^3.12.0",
|
|
29
|
+
"@smithy/middleware-endpoint": "^4.2.4",
|
|
30
30
|
"@smithy/middleware-stack": "^4.1.1",
|
|
31
31
|
"@smithy/protocol-http": "^5.2.1",
|
|
32
32
|
"@smithy/types": "^4.5.0",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/util-defaults-mode-browser",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.4",
|
|
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 util-defaults-mode-browser",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"sideEffects": false,
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@smithy/property-provider": "^4.1.1",
|
|
28
|
-
"@smithy/smithy-client": "^4.6.
|
|
28
|
+
"@smithy/smithy-client": "^4.6.4",
|
|
29
29
|
"@smithy/types": "^4.5.0",
|
|
30
30
|
"bowser": "^2.11.0",
|
|
31
31
|
"tslib": "^2.6.2"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/util-defaults-mode-node",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.4",
|
|
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 util-defaults-mode-node",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"@smithy/credential-provider-imds": "^4.1.2",
|
|
29
29
|
"@smithy/node-config-provider": "^4.2.2",
|
|
30
30
|
"@smithy/property-provider": "^4.1.1",
|
|
31
|
-
"@smithy/smithy-client": "^4.6.
|
|
31
|
+
"@smithy/smithy-client": "^4.6.4",
|
|
32
32
|
"@smithy/types": "^4.5.0",
|
|
33
33
|
"tslib": "^2.6.2"
|
|
34
34
|
},
|