@cdk8s/awscdk-resolver 0.0.135 → 0.0.137
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 +9 -15
- package/node_modules/@aws-sdk/client-cloudformation/dist-es/CloudFormationClient.js +9 -15
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/CloudFormationClient.d.ts +2 -4
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/auth/httpAuthSchemeProvider.d.ts +4 -4
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/runtimeConfig.browser.d.ts +2 -2
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/runtimeConfig.d.ts +2 -2
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/runtimeConfig.native.d.ts +2 -2
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/CloudFormationClient.d.ts +6 -8
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/runtimeConfig.browser.d.ts +5 -5
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/runtimeConfig.d.ts +5 -5
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/runtimeConfig.native.d.ts +5 -5
- package/node_modules/@aws-sdk/client-cloudformation/package.json +18 -18
- package/node_modules/@aws-sdk/client-sso/dist-cjs/index.js +9 -15
- package/node_modules/@aws-sdk/client-sso/dist-es/SSOClient.js +9 -15
- package/node_modules/@aws-sdk/client-sso/dist-types/SSOClient.d.ts +2 -4
- package/node_modules/@aws-sdk/client-sso/dist-types/auth/httpAuthSchemeProvider.d.ts +4 -4
- package/node_modules/@aws-sdk/client-sso/dist-types/runtimeConfig.browser.d.ts +2 -2
- package/node_modules/@aws-sdk/client-sso/dist-types/runtimeConfig.d.ts +2 -2
- package/node_modules/@aws-sdk/client-sso/dist-types/runtimeConfig.native.d.ts +2 -2
- package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/SSOClient.d.ts +6 -8
- package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/runtimeConfig.browser.d.ts +5 -5
- package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/runtimeConfig.d.ts +5 -5
- package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/runtimeConfig.native.d.ts +5 -5
- package/node_modules/@aws-sdk/client-sso/package.json +15 -15
- package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/index.js +9 -15
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/SSOOIDCClient.js +9 -15
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/SSOOIDCClient.d.ts +2 -4
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/auth/httpAuthSchemeProvider.d.ts +4 -4
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/runtimeConfig.browser.d.ts +2 -2
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/runtimeConfig.d.ts +2 -2
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/runtimeConfig.native.d.ts +2 -2
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/SSOOIDCClient.d.ts +6 -8
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/runtimeConfig.browser.d.ts +5 -5
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/runtimeConfig.d.ts +5 -5
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/runtimeConfig.native.d.ts +5 -5
- package/node_modules/@aws-sdk/client-sso-oidc/package.json +17 -17
- package/node_modules/@aws-sdk/client-sts/dist-cjs/STSClient.js +9 -15
- package/node_modules/@aws-sdk/client-sts/dist-cjs/index.js +17 -4
- package/node_modules/@aws-sdk/client-sts/dist-es/STSClient.js +9 -15
- package/node_modules/@aws-sdk/client-sts/dist-es/defaultStsRoleAssumers.js +17 -4
- package/node_modules/@aws-sdk/client-sts/dist-types/STSClient.d.ts +2 -4
- package/node_modules/@aws-sdk/client-sts/dist-types/auth/httpAuthSchemeProvider.d.ts +4 -4
- package/node_modules/@aws-sdk/client-sts/dist-types/runtimeConfig.browser.d.ts +2 -2
- package/node_modules/@aws-sdk/client-sts/dist-types/runtimeConfig.d.ts +2 -2
- package/node_modules/@aws-sdk/client-sts/dist-types/runtimeConfig.native.d.ts +2 -2
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/STSClient.d.ts +6 -8
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/runtimeConfig.browser.d.ts +5 -5
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/runtimeConfig.d.ts +5 -5
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/runtimeConfig.native.d.ts +5 -5
- package/node_modules/@aws-sdk/client-sts/package.json +17 -17
- package/node_modules/@aws-sdk/core/account-id-endpoint.js +6 -0
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/account-id-endpoint/index.js +97 -0
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/httpAuthSchemes/index.js +27 -0
- package/node_modules/@aws-sdk/core/dist-es/submodules/account-id-endpoint/AccountIdEndpointModeConfigResolver.js +15 -0
- package/node_modules/@aws-sdk/core/dist-es/submodules/account-id-endpoint/AccountIdEndpointModeConstants.js +5 -0
- package/node_modules/@aws-sdk/core/dist-es/submodules/account-id-endpoint/NodeAccountIdEndpointModeConfigOptions.js +24 -0
- package/node_modules/@aws-sdk/core/dist-es/submodules/account-id-endpoint/index.js +3 -0
- package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4ASigner.js +18 -0
- package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4Signer.js +3 -1
- package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/index.js +2 -1
- package/node_modules/@aws-sdk/core/dist-types/submodules/account-id-endpoint/AccountIdEndpointModeConfigResolver.d.ts +30 -0
- package/node_modules/@aws-sdk/core/dist-types/submodules/account-id-endpoint/AccountIdEndpointModeConstants.d.ts +7 -0
- package/node_modules/@aws-sdk/core/dist-types/submodules/account-id-endpoint/NodeAccountIdEndpointModeConfigOptions.d.ts +14 -0
- package/node_modules/@aws-sdk/core/dist-types/submodules/account-id-endpoint/index.d.ts +3 -0
- package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4ASigner.d.ts +10 -0
- package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4Signer.d.ts +25 -1
- package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/aws_sdk/index.d.ts +2 -1
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/account-id-endpoint/AccountIdEndpointModeConfigResolver.d.ts +15 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/account-id-endpoint/AccountIdEndpointModeConstants.d.ts +6 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/account-id-endpoint/NodeAccountIdEndpointModeConfigOptions.d.ts +7 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/account-id-endpoint/index.d.ts +3 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4ASigner.d.ts +12 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4Signer.d.ts +17 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/index.d.ts +2 -1
- package/node_modules/@aws-sdk/core/package.json +18 -8
- package/node_modules/@aws-sdk/credential-provider-env/dist-cjs/index.js +6 -1
- package/node_modules/@aws-sdk/credential-provider-env/dist-es/fromEnv.js +3 -0
- package/node_modules/@aws-sdk/credential-provider-env/dist-types/fromEnv.d.ts +4 -0
- package/node_modules/@aws-sdk/credential-provider-env/dist-types/ts3.4/fromEnv.d.ts +1 -0
- package/node_modules/@aws-sdk/credential-provider-env/package.json +1 -1
- package/node_modules/@aws-sdk/credential-provider-http/package.json +6 -6
- package/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/index.js +3 -2
- package/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveStaticCredentials.js +4 -2
- package/node_modules/@aws-sdk/credential-provider-ini/dist-types/resolveStaticCredentials.d.ts +1 -0
- package/node_modules/@aws-sdk/credential-provider-ini/dist-types/ts3.4/resolveStaticCredentials.d.ts +1 -0
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +8 -8
- package/node_modules/@aws-sdk/credential-provider-node/dist-cjs/index.js +30 -6
- package/node_modules/@aws-sdk/credential-provider-node/dist-es/defaultProvider.js +29 -9
- package/node_modules/@aws-sdk/credential-provider-node/package.json +8 -8
- package/node_modules/@aws-sdk/credential-provider-process/dist-cjs/index.js +9 -3
- package/node_modules/@aws-sdk/credential-provider-process/dist-es/getValidatedProcessCredentials.js +6 -1
- package/node_modules/@aws-sdk/credential-provider-process/dist-es/resolveProcessCredentials.js +1 -1
- package/node_modules/@aws-sdk/credential-provider-process/dist-types/ProcessCredentials.d.ts +1 -0
- package/node_modules/@aws-sdk/credential-provider-process/dist-types/getValidatedProcessCredentials.d.ts +2 -2
- package/node_modules/@aws-sdk/credential-provider-process/dist-types/ts3.4/ProcessCredentials.d.ts +1 -0
- package/node_modules/@aws-sdk/credential-provider-process/dist-types/ts3.4/getValidatedProcessCredentials.d.ts +3 -2
- package/node_modules/@aws-sdk/credential-provider-process/package.json +1 -1
- package/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/index.js +11 -2
- package/node_modules/@aws-sdk/credential-provider-sso/dist-es/resolveSSOCredentials.js +9 -2
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +3 -3
- package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +3 -3
- package/node_modules/@aws-sdk/middleware-host-header/package.json +2 -2
- package/node_modules/@aws-sdk/middleware-recursion-detection/package.json +2 -2
- package/node_modules/@aws-sdk/middleware-user-agent/package.json +2 -2
- package/node_modules/@smithy/core/dist-cjs/index.js +4 -2
- package/node_modules/@smithy/core/dist-es/util-identity-and-auth/httpAuthSchemes/httpApiKeyAuth.js +2 -1
- package/node_modules/@smithy/core/dist-es/util-identity-and-auth/httpAuthSchemes/httpBearerAuth.js +2 -1
- package/node_modules/@smithy/core/package.json +5 -5
- package/node_modules/@smithy/credential-provider-imds/dist-cjs/index.js +2 -1
- package/node_modules/@smithy/credential-provider-imds/dist-es/remoteProvider/ImdsCredentials.js +1 -0
- package/node_modules/@smithy/credential-provider-imds/dist-types/remoteProvider/ImdsCredentials.d.ts +1 -0
- package/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/remoteProvider/ImdsCredentials.d.ts +1 -0
- package/node_modules/@smithy/credential-provider-imds/package.json +1 -1
- package/node_modules/@smithy/fetch-http-handler/dist-cjs/index.js +2 -1
- package/node_modules/@smithy/fetch-http-handler/dist-es/fetch-http-handler.js +1 -1
- package/node_modules/@smithy/fetch-http-handler/package.json +2 -2
- package/node_modules/@smithy/middleware-content-length/package.json +3 -3
- package/node_modules/@smithy/middleware-endpoint/dist-cjs/index.js +7 -0
- package/node_modules/@smithy/middleware-endpoint/dist-es/adaptors/createConfigValueProvider.js +7 -0
- package/node_modules/@smithy/middleware-endpoint/package.json +1 -1
- package/node_modules/@smithy/middleware-retry/package.json +4 -4
- package/node_modules/@smithy/node-http-handler/package.json +2 -2
- package/node_modules/@smithy/protocol-http/package.json +1 -1
- package/node_modules/@smithy/signature-v4/dist-cjs/index.js +4 -16
- package/node_modules/@smithy/signature-v4/dist-es/moveHeadersToQuery.js +2 -2
- package/node_modules/@smithy/signature-v4/dist-es/prepareRequest.js +2 -2
- package/node_modules/@smithy/signature-v4/dist-types/SignatureV4.d.ts +1 -1
- package/node_modules/@smithy/signature-v4/dist-types/moveHeadersToQuery.d.ts +3 -3
- package/node_modules/@smithy/signature-v4/dist-types/prepareRequest.d.ts +2 -2
- package/node_modules/@smithy/signature-v4/dist-types/ts3.4/SignatureV4.d.ts +1 -1
- package/node_modules/@smithy/signature-v4/dist-types/ts3.4/moveHeadersToQuery.d.ts +3 -3
- package/node_modules/@smithy/signature-v4/dist-types/ts3.4/prepareRequest.d.ts +2 -2
- package/node_modules/@smithy/signature-v4/package.json +2 -2
- package/node_modules/@smithy/smithy-client/dist-cjs/index.js +1 -0
- package/node_modules/@smithy/smithy-client/dist-es/command.js +1 -0
- 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 +3 -3
- package/node_modules/@smithy/util-stream/dist-types/stream-type-check.d.ts +9 -1
- package/node_modules/@smithy/util-stream/dist-types/ts3.4/stream-type-check.d.ts +9 -1
- package/node_modules/@smithy/util-stream/package.json +4 -4
- package/node_modules/fast-xml-parser/CHANGELOG.md +349 -309
- package/node_modules/fast-xml-parser/README.md +83 -51
- package/node_modules/fast-xml-parser/package.json +8 -5
- package/node_modules/fast-xml-parser/src/fxp.d.ts +365 -71
- package/node_modules/fast-xml-parser/src/v5/CharsSymbol.js +16 -0
- package/node_modules/fast-xml-parser/src/v5/EntitiesParser.js +107 -0
- package/node_modules/fast-xml-parser/src/v5/OptionsBuilder.js +64 -0
- package/node_modules/fast-xml-parser/src/v5/OutputBuilders/BaseOutputBuilder.js +71 -0
- package/node_modules/fast-xml-parser/src/v5/OutputBuilders/JsArrBuilder.js +103 -0
- package/node_modules/fast-xml-parser/src/v5/OutputBuilders/JsMinArrBuilder.js +102 -0
- package/node_modules/fast-xml-parser/src/v5/OutputBuilders/JsObjBuilder.js +156 -0
- package/node_modules/fast-xml-parser/src/v5/OutputBuilders/ParserOptionsBuilder.js +99 -0
- package/node_modules/fast-xml-parser/src/v5/Report.js +0 -0
- package/node_modules/fast-xml-parser/src/v5/TagPath.js +81 -0
- package/node_modules/fast-xml-parser/src/v5/TagPathMatcher.js +15 -0
- package/node_modules/fast-xml-parser/src/v5/XMLParser.js +85 -0
- package/node_modules/fast-xml-parser/src/v5/Xml2JsParser.js +237 -0
- package/node_modules/fast-xml-parser/src/v5/XmlPartReader.js +212 -0
- package/node_modules/fast-xml-parser/src/v5/XmlSpecialTagsReader.js +118 -0
- package/node_modules/fast-xml-parser/src/v5/inputSource/BufferSource.js +118 -0
- package/node_modules/fast-xml-parser/src/v5/inputSource/StringSource.js +123 -0
- package/node_modules/fast-xml-parser/src/v5/valueParsers/EntitiesParser.js +107 -0
- package/node_modules/fast-xml-parser/src/v5/valueParsers/booleanParser.js +23 -0
- package/node_modules/fast-xml-parser/src/v5/valueParsers/booleanParserExt.js +20 -0
- package/node_modules/fast-xml-parser/src/v5/valueParsers/currency.js +40 -0
- package/node_modules/fast-xml-parser/src/v5/valueParsers/join.js +14 -0
- package/node_modules/fast-xml-parser/src/v5/valueParsers/number.js +16 -0
- package/node_modules/fast-xml-parser/src/v5/valueParsers/trim.js +8 -0
- package/node_modules/fast-xml-parser/src/validator.js +2 -0
- package/node_modules/fast-xml-parser/src/xmlbuilder/json2xml.js +31 -9
- package/node_modules/fast-xml-parser/src/xmlbuilder/orderedJs2Xml.js +4 -0
- package/node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js +25 -12
- package/package.json +8 -8
- package/node_modules/@smithy/signature-v4/dist-cjs/cloneRequest.js +0 -1
- package/node_modules/@smithy/signature-v4/dist-es/cloneRequest.js +0 -12
- package/node_modules/@smithy/signature-v4/dist-types/cloneRequest.d.ts +0 -6
- package/node_modules/@smithy/signature-v4/dist-types/ts3.4/cloneRequest.d.ts +0 -6
@@ -6,9 +6,9 @@ const xmlNode = require('./xmlNode');
|
|
6
6
|
const readDocType = require("./DocTypeReader");
|
7
7
|
const toNumber = require("strnum");
|
8
8
|
|
9
|
-
const regx =
|
10
|
-
|
11
|
-
|
9
|
+
// const regx =
|
10
|
+
// '<((!\\[CDATA\\[([\\s\\S]*?)(]]>))|((NAME:)?(NAME))([^>]*)>|((\\/)(NAME)\\s*>))([^<]*)'
|
11
|
+
// .replace(/NAME/g, util.nameRegexp);
|
12
12
|
|
13
13
|
//const tagsRegx = new RegExp("<(\\/?[\\w:\\-\._]+)([^>]*)>(\\s*"+cdataRegx+")*([^<]+)?","g");
|
14
14
|
//const tagsRegx = new RegExp("<(\\/?)((\\w*:)?([\\w:\\-\._]+))([^>]*)>([^<]*)("+cdataRegx+"([^<]*))*([^<]+)?","g");
|
@@ -40,6 +40,8 @@ class OrderedObjParser{
|
|
40
40
|
"copyright" : { regex: /&(copy|#169);/g, val: "©" },
|
41
41
|
"reg" : { regex: /&(reg|#174);/g, val: "®" },
|
42
42
|
"inr" : { regex: /&(inr|#8377);/g, val: "₹" },
|
43
|
+
"num_dec": { regex: /&#([0-9]{1,7});/g, val : (_, str) => String.fromCharCode(Number.parseInt(str, 10)) },
|
44
|
+
"num_hex": { regex: /&#x([0-9a-fA-F]{1,6});/g, val : (_, str) => String.fromCharCode(Number.parseInt(str, 16)) },
|
43
45
|
};
|
44
46
|
this.addExternalEntities = addExternalEntities;
|
45
47
|
this.parseXml = parseXml;
|
@@ -265,14 +267,13 @@ const parseXml = function(xmlData) {
|
|
265
267
|
|
266
268
|
textData = this.saveTextToParentTag(textData, currentNode, jPath);
|
267
269
|
|
270
|
+
let val = this.parseTextData(tagExp, currentNode.tagname, jPath, true, false, true, true);
|
271
|
+
if(val == undefined) val = "";
|
272
|
+
|
268
273
|
//cdata should be set even if it is 0 length string
|
269
274
|
if(this.options.cdataPropName){
|
270
|
-
// let val = this.parseTextData(tagExp, this.options.cdataPropName, jPath + "." + this.options.cdataPropName, true, false, true);
|
271
|
-
// if(!val) val = "";
|
272
275
|
currentNode.add(this.options.cdataPropName, [ { [this.options.textNodeName] : tagExp } ]);
|
273
276
|
}else{
|
274
|
-
let val = this.parseTextData(tagExp, currentNode.tagname, jPath, true, false, true);
|
275
|
-
if(val == undefined) val = "";
|
276
277
|
currentNode.add(this.options.textNodeName, val);
|
277
278
|
}
|
278
279
|
|
@@ -280,6 +281,7 @@ const parseXml = function(xmlData) {
|
|
280
281
|
}else {//Opening tag
|
281
282
|
let result = readTagExp(xmlData,i, this.options.removeNSPrefix);
|
282
283
|
let tagName= result.tagName;
|
284
|
+
const rawTagName = result.rawTagName;
|
283
285
|
let tagExp = result.tagExp;
|
284
286
|
let attrExpPresent = result.attrExpPresent;
|
285
287
|
let closeIndex = result.closeIndex;
|
@@ -305,21 +307,29 @@ const parseXml = function(xmlData) {
|
|
305
307
|
if(tagName !== xmlObj.tagname){
|
306
308
|
jPath += jPath ? "." + tagName : tagName;
|
307
309
|
}
|
308
|
-
if (this.isItStopNode(this.options.stopNodes, jPath, tagName)) {
|
310
|
+
if (this.isItStopNode(this.options.stopNodes, jPath, tagName)) {
|
309
311
|
let tagContent = "";
|
310
312
|
//self-closing tag
|
311
313
|
if(tagExp.length > 0 && tagExp.lastIndexOf("/") === tagExp.length - 1){
|
314
|
+
if(tagName[tagName.length - 1] === "/"){ //remove trailing '/'
|
315
|
+
tagName = tagName.substr(0, tagName.length - 1);
|
316
|
+
jPath = jPath.substr(0, jPath.length - 1);
|
317
|
+
tagExp = tagName;
|
318
|
+
}else{
|
319
|
+
tagExp = tagExp.substr(0, tagExp.length - 1);
|
320
|
+
}
|
312
321
|
i = result.closeIndex;
|
313
322
|
}
|
314
323
|
//unpaired tag
|
315
324
|
else if(this.options.unpairedTags.indexOf(tagName) !== -1){
|
325
|
+
|
316
326
|
i = result.closeIndex;
|
317
327
|
}
|
318
328
|
//normal tag
|
319
329
|
else{
|
320
330
|
//read until closing tag is found
|
321
|
-
const result = this.readStopNodeData(xmlData,
|
322
|
-
if(!result) throw new Error(`Unexpected end of ${
|
331
|
+
const result = this.readStopNodeData(xmlData, rawTagName, closeIndex + 1);
|
332
|
+
if(!result) throw new Error(`Unexpected end of ${rawTagName}`);
|
323
333
|
i = result.i;
|
324
334
|
tagContent = result.tagContent;
|
325
335
|
}
|
@@ -341,6 +351,7 @@ const parseXml = function(xmlData) {
|
|
341
351
|
if(tagExp.length > 0 && tagExp.lastIndexOf("/") === tagExp.length - 1){
|
342
352
|
if(tagName[tagName.length - 1] === "/"){ //remove trailing '/'
|
343
353
|
tagName = tagName.substr(0, tagName.length - 1);
|
354
|
+
jPath = jPath.substr(0, jPath.length - 1);
|
344
355
|
tagExp = tagName;
|
345
356
|
}else{
|
346
357
|
tagExp = tagExp.substr(0, tagExp.length - 1);
|
@@ -499,10 +510,11 @@ function readTagExp(xmlData,i, removeNSPrefix, closingChar = ">"){
|
|
499
510
|
let tagName = tagExp;
|
500
511
|
let attrExpPresent = true;
|
501
512
|
if(separatorIndex !== -1){//separate tag name and attributes expression
|
502
|
-
tagName = tagExp.
|
503
|
-
tagExp = tagExp.
|
513
|
+
tagName = tagExp.substring(0, separatorIndex);
|
514
|
+
tagExp = tagExp.substring(separatorIndex + 1).trimStart();
|
504
515
|
}
|
505
516
|
|
517
|
+
const rawTagName = tagName;
|
506
518
|
if(removeNSPrefix){
|
507
519
|
const colonIndex = tagName.indexOf(":");
|
508
520
|
if(colonIndex !== -1){
|
@@ -516,6 +528,7 @@ function readTagExp(xmlData,i, removeNSPrefix, closingChar = ">"){
|
|
516
528
|
tagExp: tagExp,
|
517
529
|
closeIndex: closeIndex,
|
518
530
|
attrExpPresent: attrExpPresent,
|
531
|
+
rawTagName: rawTagName,
|
519
532
|
}
|
520
533
|
}
|
521
534
|
/**
|
package/package.json
CHANGED
@@ -42,16 +42,16 @@
|
|
42
42
|
"organization": false
|
43
43
|
},
|
44
44
|
"devDependencies": {
|
45
|
-
"@cdk8s/projen-common": "0.0.
|
45
|
+
"@cdk8s/projen-common": "0.0.536",
|
46
46
|
"@types/fs-extra": "^11.0.4",
|
47
47
|
"@types/jest": "^27",
|
48
48
|
"@types/node": "16.18.78",
|
49
49
|
"@typescript-eslint/eslint-plugin": "^7",
|
50
50
|
"@typescript-eslint/parser": "^7",
|
51
|
-
"aws-cdk": "^2.
|
51
|
+
"aws-cdk": "^2.150.0",
|
52
52
|
"aws-cdk-lib": "2.109.0",
|
53
53
|
"cdk8s": "2.68.4",
|
54
|
-
"cdk8s-cli": "^2.198.
|
54
|
+
"cdk8s-cli": "^2.198.177",
|
55
55
|
"constructs": "10.3.0",
|
56
56
|
"eslint": "^8",
|
57
57
|
"eslint-import-resolver-typescript": "^3.6.1",
|
@@ -64,7 +64,7 @@
|
|
64
64
|
"jsii-docgen": "^9.2.2",
|
65
65
|
"jsii-pacmak": "^1.101.0",
|
66
66
|
"jsii-rosetta": "^5",
|
67
|
-
"projen": "^0.84.
|
67
|
+
"projen": "^0.84.13",
|
68
68
|
"standard-version": "^9",
|
69
69
|
"ts-jest": "^27",
|
70
70
|
"ts-node": "^10.9.2",
|
@@ -76,7 +76,7 @@
|
|
76
76
|
"constructs": "^10.3.0"
|
77
77
|
},
|
78
78
|
"dependencies": {
|
79
|
-
"@aws-sdk/client-cloudformation": "^3.
|
79
|
+
"@aws-sdk/client-cloudformation": "^3.623.0"
|
80
80
|
},
|
81
81
|
"bundledDependencies": [
|
82
82
|
"@aws-sdk/client-cloudformation"
|
@@ -92,13 +92,13 @@
|
|
92
92
|
"publishConfig": {
|
93
93
|
"access": "public"
|
94
94
|
},
|
95
|
-
"version": "0.0.
|
95
|
+
"version": "0.0.137",
|
96
96
|
"jest": {
|
97
97
|
"coverageProvider": "v8",
|
98
98
|
"testMatch": [
|
99
|
-
"<rootDir>/@(src|test)
|
99
|
+
"<rootDir>/@(src|test)/**/*(*.)@(spec|test).ts?(x)",
|
100
100
|
"<rootDir>/@(src|test)/**/__tests__/**/*.ts?(x)",
|
101
|
-
"<rootDir>/@(projenrc)
|
101
|
+
"<rootDir>/@(projenrc)/**/*(*.)@(spec|test).ts?(x)",
|
102
102
|
"<rootDir>/@(projenrc)/**/__tests__/**/*.ts?(x)"
|
103
103
|
],
|
104
104
|
"clearMocks": true,
|
@@ -1 +0,0 @@
|
|
1
|
-
module.exports = require("./index.js");
|
@@ -1,12 +0,0 @@
|
|
1
|
-
export const cloneRequest = ({ headers, query, ...rest }) => ({
|
2
|
-
...rest,
|
3
|
-
headers: { ...headers },
|
4
|
-
query: query ? cloneQuery(query) : undefined,
|
5
|
-
});
|
6
|
-
export const cloneQuery = (query) => Object.keys(query).reduce((carry, paramName) => {
|
7
|
-
const param = query[paramName];
|
8
|
-
return {
|
9
|
-
...carry,
|
10
|
-
[paramName]: Array.isArray(param) ? [...param] : param,
|
11
|
-
};
|
12
|
-
}, {});
|