cdk-docker-image-deployment 0.0.988 → 0.0.990

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 CHANGED
@@ -3559,6 +3559,6 @@
3559
3559
  "symbolId": "src/source:SourceContext"
3560
3560
  }
3561
3561
  },
3562
- "version": "0.0.988",
3563
- "fingerprint": "+/GxtHlHDX6IZzxJupeWtmgt4h8vQ8Jbyj3vXyGzDaw="
3562
+ "version": "0.0.990",
3563
+ "fingerprint": "qOMzY16AlZgoyhMFwsd39AzDIW7fbvJEcFR1A8T40MQ="
3564
3564
  }
@@ -16,7 +16,7 @@ const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti");
16
16
  *
17
17
  */
18
18
  class Destination {
19
- static [JSII_RTTI_SYMBOL_1] = { fqn: "cdk-docker-image-deployment.Destination", version: "0.0.988" };
19
+ static [JSII_RTTI_SYMBOL_1] = { fqn: "cdk-docker-image-deployment.Destination", version: "0.0.990" };
20
20
  /**
21
21
  * Uses an ECR repository in the same account as the stack as the destination for the image.
22
22
  */
@@ -47,7 +47,7 @@ const constructs_1 = require("constructs");
47
47
  * `DockerImageDeployment` pushes an image from a local or external source to a specified external destination
48
48
  */
49
49
  class DockerImageDeployment extends constructs_1.Construct {
50
- static [JSII_RTTI_SYMBOL_1] = { fqn: "cdk-docker-image-deployment.DockerImageDeployment", version: "0.0.988" };
50
+ static [JSII_RTTI_SYMBOL_1] = { fqn: "cdk-docker-image-deployment.DockerImageDeployment", version: "0.0.990" };
51
51
  cb;
52
52
  constructor(scope, id, props) {
53
53
  super(scope, id);
package/lib/source.js CHANGED
@@ -60,7 +60,7 @@ const ecr_assets = __importStar(require("aws-cdk-lib/aws-ecr-assets"));
60
60
  * ```
61
61
  */
62
62
  class Source {
63
- static [JSII_RTTI_SYMBOL_1] = { fqn: "cdk-docker-image-deployment.Source", version: "0.0.988" };
63
+ static [JSII_RTTI_SYMBOL_1] = { fqn: "cdk-docker-image-deployment.Source", version: "0.0.990" };
64
64
  /**
65
65
  * Uses a local image built from a Dockerfile in a local directory as the source.
66
66
  *
@@ -381,8 +381,8 @@
381
381
 
382
382
  // this really needs to be replaced with character classes.
383
383
  // XML allows all manner of ridiculous numbers and digits.
384
- var CDATA = '[CDATA['
385
- var DOCTYPE = 'DOCTYPE'
384
+ var CDATAre = /^\[CDATA\[$/i
385
+ var DOCTYPEre = /^DOCTYPE$/i
386
386
  var XML_NAMESPACE = 'http://www.w3.org/XML/1998/namespace'
387
387
  var XMLNS_NAMESPACE = 'http://www.w3.org/2000/xmlns/'
388
388
  var rootNS = { xml: XML_NAMESPACE, xmlns: XMLNS_NAMESPACE }
@@ -464,15 +464,15 @@
464
464
  SCRIPT_ENDING: S++, // <script> ... <
465
465
  }
466
466
 
467
- sax.XML_ENTITIES = {
467
+ sax.XML_ENTITIES = Object.assign(Object.create(null), {
468
468
  amp: '&',
469
469
  gt: '>',
470
470
  lt: '<',
471
471
  quot: '"',
472
472
  apos: "'",
473
- }
473
+ })
474
474
 
475
- sax.ENTITIES = {
475
+ sax.ENTITIES = Object.assign(Object.create(null), {
476
476
  amp: '&',
477
477
  gt: '>',
478
478
  lt: '<',
@@ -726,7 +726,7 @@
726
726
  clubs: 9827,
727
727
  hearts: 9829,
728
728
  diams: 9830,
729
- }
729
+ })
730
730
 
731
731
  Object.keys(sax.ENTITIES).forEach(function (key) {
732
732
  var e = sax.ENTITIES[key]
@@ -1137,7 +1137,8 @@
1137
1137
  isNaN(num) ||
1138
1138
  numStr.toLowerCase() !== entity ||
1139
1139
  num < 0 ||
1140
- num > 0x10ffff
1140
+ num > 0x10ffff ||
1141
+ !isXmlChar(num)
1141
1142
  ) {
1142
1143
  strictFail(parser, 'Invalid character entity')
1143
1144
  return '&' + parser.entity + ';'
@@ -1146,6 +1147,23 @@
1146
1147
  return String.fromCodePoint(num)
1147
1148
  }
1148
1149
 
1150
+ // Returns true if `num` is a code point that matches the XML `Char`
1151
+ // production, false otherwise. Character references that resolve to a
1152
+ // character outside this range (e.g. surrogates or restricted control
1153
+ // characters) are not well-formed.
1154
+ // https://www.w3.org/TR/REC-xml/#NT-Char
1155
+ // https://www.w3.org/TR/REC-xml/#wf-Legalchar
1156
+ function isXmlChar(num) {
1157
+ return (
1158
+ num === 0x9 ||
1159
+ num === 0xa ||
1160
+ num === 0xd ||
1161
+ (num >= 0x20 && num <= 0xd7ff) ||
1162
+ (num >= 0xe000 && num <= 0xfffd) ||
1163
+ (num >= 0x10000 && num <= 0x10ffff)
1164
+ )
1165
+ }
1166
+
1149
1167
  function beginWhiteSpace(parser, c) {
1150
1168
  if (c === '<') {
1151
1169
  parser.state = S.OPEN_WAKA
@@ -1317,12 +1335,12 @@
1317
1335
  parser.state = S.DOCTYPE_DTD
1318
1336
  parser.doctype += '<!' + parser.sgmlDecl + c
1319
1337
  parser.sgmlDecl = ''
1320
- } else if ((parser.sgmlDecl + c).toUpperCase() === CDATA) {
1338
+ } else if (CDATAre.test(parser.sgmlDecl + c)) {
1321
1339
  emitNode(parser, 'onopencdata')
1322
1340
  parser.state = S.CDATA
1323
1341
  parser.sgmlDecl = ''
1324
1342
  parser.cdata = ''
1325
- } else if ((parser.sgmlDecl + c).toUpperCase() === DOCTYPE) {
1343
+ } else if (DOCTYPEre.test(parser.sgmlDecl + c)) {
1326
1344
  parser.state = S.DOCTYPE
1327
1345
  if (parser.doctype || parser.sawRoot) {
1328
1346
  strictFail(
@@ -2,7 +2,7 @@
2
2
  "name": "sax",
3
3
  "description": "An evented streaming XML parser in JavaScript",
4
4
  "author": "Isaac Z. Schlueter <i@izs.me> (http://blog.izs.me/)",
5
- "version": "1.6.0",
5
+ "version": "1.6.1",
6
6
  "main": "lib/sax.js",
7
7
  "license": "BlueOak-1.0.0",
8
8
  "scripts": {
package/package.json CHANGED
@@ -58,7 +58,7 @@
58
58
  "jsii-docgen": "^10.5.0",
59
59
  "jsii-pacmak": "^1.139.0",
60
60
  "jsii-rosetta": "~5.9.0",
61
- "projen": "^0.101.17",
61
+ "projen": "^0.101.20",
62
62
  "ts-jest": "^27",
63
63
  "ts-node": "^10.9.2",
64
64
  "typescript": "^4.9.5"
@@ -85,7 +85,7 @@
85
85
  "publishConfig": {
86
86
  "access": "public"
87
87
  },
88
- "version": "0.0.988",
88
+ "version": "0.0.990",
89
89
  "jest": {
90
90
  "coverageProvider": "v8",
91
91
  "testMatch": [