@cdklabs/cdk-ecs-codedeploy 0.0.305 → 0.0.307
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/api-canary/index.js +1 -1
- package/lib/ecs-appspec/index.js +1 -1
- package/lib/ecs-deployment/index.js +1 -1
- package/lib/ecs-patterns/application-load-balanced-codedeployed-fargate-service.js +1 -1
- package/node_modules/@aws-sdk/client-codedeploy/package.json +11 -11
- package/node_modules/@aws-sdk/client-sso/package.json +8 -8
- package/node_modules/@aws-sdk/client-sso-oidc/package.json +10 -10
- package/node_modules/@aws-sdk/client-sts/package.json +10 -10
- package/node_modules/@aws-sdk/core/package.json +5 -5
- package/node_modules/@aws-sdk/credential-provider-http/package.json +4 -4
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +5 -5
- package/node_modules/@aws-sdk/credential-provider-node/package.json +5 -5
- 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/@smithy/core/package.json +3 -3
- package/node_modules/@smithy/middleware-retry/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 +1 -1
- 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/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 +4 -4
|
@@ -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
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
"aws-cdk-lib": "2.139.0",
|
|
84
84
|
"aws-sdk-client-mock": "^4.0.1",
|
|
85
85
|
"aws-sdk-client-mock-jest": "^4.0.1",
|
|
86
|
-
"cdk-nag": "^2.28.
|
|
86
|
+
"cdk-nag": "^2.28.170",
|
|
87
87
|
"cdklabs-projen-project-types": "^0.1.200",
|
|
88
88
|
"constructs": "10.0.5",
|
|
89
89
|
"esbuild": "^0.23.0",
|
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
"jsii-pacmak": "^1.101.0",
|
|
99
99
|
"jsii-rosetta": "^5.4.28",
|
|
100
100
|
"lambda-tester": "^4.0.1",
|
|
101
|
-
"projen": "0.84.
|
|
101
|
+
"projen": "0.84.13",
|
|
102
102
|
"standard-version": "^9",
|
|
103
103
|
"ts-jest": "^27",
|
|
104
104
|
"ts-node": "^10.9.2",
|
|
@@ -109,7 +109,7 @@
|
|
|
109
109
|
"constructs": "^10.0.5"
|
|
110
110
|
},
|
|
111
111
|
"dependencies": {
|
|
112
|
-
"@aws-sdk/client-codedeploy": "^3.
|
|
112
|
+
"@aws-sdk/client-codedeploy": "^3.621.0",
|
|
113
113
|
"jmespath": "^0.16.0"
|
|
114
114
|
},
|
|
115
115
|
"bundledDependencies": [
|
|
@@ -127,7 +127,7 @@
|
|
|
127
127
|
"publishConfig": {
|
|
128
128
|
"access": "public"
|
|
129
129
|
},
|
|
130
|
-
"version": "0.0.
|
|
130
|
+
"version": "0.0.307",
|
|
131
131
|
"jest": {
|
|
132
132
|
"coverageProvider": "v8",
|
|
133
133
|
"testMatch": [
|