aws-delivlib 13.5.16 → 13.5.17
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/cdk.out/{asset.6d84cdad0db1b0ef3c0db08c3e9ceb1ca56b3f8ffc4e1e1fd23f9a51b052e8fd → asset.98dba9b3d79739d40a37e0621754556a791eef3b1c96e913c6e8d5df3a379bd4}/index.js +47 -47
- package/cdk.out/delivlib-test.assets.json +5 -5
- package/cdk.out/delivlib-test.template.json +1 -1
- package/cdk.out/manifest.json +1 -1
- package/cdk.out/tree.json +1 -1
- package/package.json +1 -1
|
@@ -1679,56 +1679,56 @@ var require_follow_redirects = __commonJS({
|
|
|
1679
1679
|
});
|
|
1680
1680
|
}
|
|
1681
1681
|
var location = response.headers.location;
|
|
1682
|
-
if (location
|
|
1683
|
-
abortRequest(this._currentRequest);
|
|
1684
|
-
response.destroy();
|
|
1685
|
-
if (++this._redirectCount > this._options.maxRedirects) {
|
|
1686
|
-
this.emit("error", new TooManyRedirectsError());
|
|
1687
|
-
return;
|
|
1688
|
-
}
|
|
1689
|
-
if ((statusCode === 301 || statusCode === 302) && this._options.method === "POST" || statusCode === 303 && !/^(?:GET|HEAD)$/.test(this._options.method)) {
|
|
1690
|
-
this._options.method = "GET";
|
|
1691
|
-
this._requestBodyBuffers = [];
|
|
1692
|
-
removeMatchingHeaders(/^content-/i, this._options.headers);
|
|
1693
|
-
}
|
|
1694
|
-
var currentHostHeader = removeMatchingHeaders(/^host$/i, this._options.headers);
|
|
1695
|
-
var currentUrlParts = url.parse(this._currentUrl);
|
|
1696
|
-
var currentHost = currentHostHeader || currentUrlParts.host;
|
|
1697
|
-
var currentUrl = /^\w+:/.test(location) ? this._currentUrl : url.format(Object.assign(currentUrlParts, { host: currentHost }));
|
|
1698
|
-
var redirectUrl;
|
|
1699
|
-
try {
|
|
1700
|
-
redirectUrl = url.resolve(currentUrl, location);
|
|
1701
|
-
} catch (cause) {
|
|
1702
|
-
this.emit("error", new RedirectionError(cause));
|
|
1703
|
-
return;
|
|
1704
|
-
}
|
|
1705
|
-
debug("redirecting to", redirectUrl);
|
|
1706
|
-
this._isRedirect = true;
|
|
1707
|
-
var redirectUrlParts = url.parse(redirectUrl);
|
|
1708
|
-
Object.assign(this._options, redirectUrlParts);
|
|
1709
|
-
if (!(redirectUrlParts.host === currentHost || isSubdomainOf(redirectUrlParts.host, currentHost))) {
|
|
1710
|
-
removeMatchingHeaders(/^(?:authorization|cookie)$/i, this._options.headers);
|
|
1711
|
-
}
|
|
1712
|
-
if (typeof this._options.beforeRedirect === "function") {
|
|
1713
|
-
var responseDetails = { headers: response.headers };
|
|
1714
|
-
try {
|
|
1715
|
-
this._options.beforeRedirect.call(null, this._options, responseDetails);
|
|
1716
|
-
} catch (err) {
|
|
1717
|
-
this.emit("error", err);
|
|
1718
|
-
return;
|
|
1719
|
-
}
|
|
1720
|
-
this._sanitizeOptions(this._options);
|
|
1721
|
-
}
|
|
1722
|
-
try {
|
|
1723
|
-
this._performRequest();
|
|
1724
|
-
} catch (cause) {
|
|
1725
|
-
this.emit("error", new RedirectionError(cause));
|
|
1726
|
-
}
|
|
1727
|
-
} else {
|
|
1682
|
+
if (!location || this._options.followRedirects === false || statusCode < 300 || statusCode >= 400) {
|
|
1728
1683
|
response.responseUrl = this._currentUrl;
|
|
1729
1684
|
response.redirects = this._redirects;
|
|
1730
1685
|
this.emit("response", response);
|
|
1731
1686
|
this._requestBodyBuffers = [];
|
|
1687
|
+
return;
|
|
1688
|
+
}
|
|
1689
|
+
abortRequest(this._currentRequest);
|
|
1690
|
+
response.destroy();
|
|
1691
|
+
if (++this._redirectCount > this._options.maxRedirects) {
|
|
1692
|
+
this.emit("error", new TooManyRedirectsError());
|
|
1693
|
+
return;
|
|
1694
|
+
}
|
|
1695
|
+
if ((statusCode === 301 || statusCode === 302) && this._options.method === "POST" || statusCode === 303 && !/^(?:GET|HEAD)$/.test(this._options.method)) {
|
|
1696
|
+
this._options.method = "GET";
|
|
1697
|
+
this._requestBodyBuffers = [];
|
|
1698
|
+
removeMatchingHeaders(/^content-/i, this._options.headers);
|
|
1699
|
+
}
|
|
1700
|
+
var currentHostHeader = removeMatchingHeaders(/^host$/i, this._options.headers);
|
|
1701
|
+
var currentUrlParts = url.parse(this._currentUrl);
|
|
1702
|
+
var currentHost = currentHostHeader || currentUrlParts.host;
|
|
1703
|
+
var currentUrl = /^\w+:/.test(location) ? this._currentUrl : url.format(Object.assign(currentUrlParts, { host: currentHost }));
|
|
1704
|
+
var redirectUrl;
|
|
1705
|
+
try {
|
|
1706
|
+
redirectUrl = url.resolve(currentUrl, location);
|
|
1707
|
+
} catch (cause) {
|
|
1708
|
+
this.emit("error", new RedirectionError(cause));
|
|
1709
|
+
return;
|
|
1710
|
+
}
|
|
1711
|
+
debug("redirecting to", redirectUrl);
|
|
1712
|
+
this._isRedirect = true;
|
|
1713
|
+
var redirectUrlParts = url.parse(redirectUrl);
|
|
1714
|
+
Object.assign(this._options, redirectUrlParts);
|
|
1715
|
+
if (redirectUrlParts.protocol !== currentUrlParts.protocol && redirectUrlParts.protocol !== "https:" || redirectUrlParts.host !== currentHost && !isSubdomain(redirectUrlParts.host, currentHost)) {
|
|
1716
|
+
removeMatchingHeaders(/^(?:authorization|cookie)$/i, this._options.headers);
|
|
1717
|
+
}
|
|
1718
|
+
if (typeof this._options.beforeRedirect === "function") {
|
|
1719
|
+
var responseDetails = { headers: response.headers };
|
|
1720
|
+
try {
|
|
1721
|
+
this._options.beforeRedirect.call(null, this._options, responseDetails);
|
|
1722
|
+
} catch (err) {
|
|
1723
|
+
this.emit("error", err);
|
|
1724
|
+
return;
|
|
1725
|
+
}
|
|
1726
|
+
this._sanitizeOptions(this._options);
|
|
1727
|
+
}
|
|
1728
|
+
try {
|
|
1729
|
+
this._performRequest();
|
|
1730
|
+
} catch (cause) {
|
|
1731
|
+
this.emit("error", new RedirectionError(cause));
|
|
1732
1732
|
}
|
|
1733
1733
|
};
|
|
1734
1734
|
function wrap(protocols) {
|
|
@@ -1831,7 +1831,7 @@ var require_follow_redirects = __commonJS({
|
|
|
1831
1831
|
request.on("error", noop);
|
|
1832
1832
|
request.abort();
|
|
1833
1833
|
}
|
|
1834
|
-
function
|
|
1834
|
+
function isSubdomain(subdomain, domain) {
|
|
1835
1835
|
const dot = subdomain.length - domain.length - 1;
|
|
1836
1836
|
return dot > 0 && subdomain[dot] === "." && subdomain.endsWith(domain);
|
|
1837
1837
|
}
|
|
@@ -225,21 +225,21 @@
|
|
|
225
225
|
}
|
|
226
226
|
}
|
|
227
227
|
},
|
|
228
|
-
"
|
|
228
|
+
"98dba9b3d79739d40a37e0621754556a791eef3b1c96e913c6e8d5df3a379bd4": {
|
|
229
229
|
"source": {
|
|
230
|
-
"path": "asset.
|
|
230
|
+
"path": "asset.98dba9b3d79739d40a37e0621754556a791eef3b1c96e913c6e8d5df3a379bd4",
|
|
231
231
|
"packaging": "zip"
|
|
232
232
|
},
|
|
233
233
|
"destinations": {
|
|
234
234
|
"712950704752-us-east-1": {
|
|
235
235
|
"bucketName": "cdk-hnb659fds-assets-712950704752-us-east-1",
|
|
236
|
-
"objectKey": "
|
|
236
|
+
"objectKey": "98dba9b3d79739d40a37e0621754556a791eef3b1c96e913c6e8d5df3a379bd4.zip",
|
|
237
237
|
"region": "us-east-1",
|
|
238
238
|
"assumeRoleArn": "arn:${AWS::Partition}:iam::712950704752:role/cdk-hnb659fds-file-publishing-role-712950704752-us-east-1"
|
|
239
239
|
}
|
|
240
240
|
}
|
|
241
241
|
},
|
|
242
|
-
"
|
|
242
|
+
"3f51b0ef2bfe7d6fc58ae98a3c98325ad21b01b8695757f9f0748ecf98d47289": {
|
|
243
243
|
"source": {
|
|
244
244
|
"path": "delivlib-test.template.json",
|
|
245
245
|
"packaging": "file"
|
|
@@ -247,7 +247,7 @@
|
|
|
247
247
|
"destinations": {
|
|
248
248
|
"712950704752-us-east-1": {
|
|
249
249
|
"bucketName": "cdk-hnb659fds-assets-712950704752-us-east-1",
|
|
250
|
-
"objectKey": "
|
|
250
|
+
"objectKey": "3f51b0ef2bfe7d6fc58ae98a3c98325ad21b01b8695757f9f0748ecf98d47289.json",
|
|
251
251
|
"region": "us-east-1",
|
|
252
252
|
"assumeRoleArn": "arn:${AWS::Partition}:iam::712950704752:role/cdk-hnb659fds-file-publishing-role-712950704752-us-east-1"
|
|
253
253
|
}
|
|
@@ -6857,7 +6857,7 @@
|
|
|
6857
6857
|
"Properties": {
|
|
6858
6858
|
"Code": {
|
|
6859
6859
|
"S3Bucket": "cdk-hnb659fds-assets-712950704752-us-east-1",
|
|
6860
|
-
"S3Key": "
|
|
6860
|
+
"S3Key": "98dba9b3d79739d40a37e0621754556a791eef3b1c96e913c6e8d5df3a379bd4.zip"
|
|
6861
6861
|
},
|
|
6862
6862
|
"Role": {
|
|
6863
6863
|
"Fn::GetAtt": [
|
package/cdk.out/manifest.json
CHANGED
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"validateOnSynth": false,
|
|
24
24
|
"assumeRoleArn": "arn:${AWS::Partition}:iam::712950704752:role/cdk-hnb659fds-deploy-role-712950704752-us-east-1",
|
|
25
25
|
"cloudFormationExecutionRoleArn": "arn:${AWS::Partition}:iam::712950704752:role/cdk-hnb659fds-cfn-exec-role-712950704752-us-east-1",
|
|
26
|
-
"stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-712950704752-us-east-1/
|
|
26
|
+
"stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-712950704752-us-east-1/3f51b0ef2bfe7d6fc58ae98a3c98325ad21b01b8695757f9f0748ecf98d47289.json",
|
|
27
27
|
"requiresBootstrapStackVersion": 6,
|
|
28
28
|
"bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version",
|
|
29
29
|
"additionalDependencies": [
|
package/cdk.out/tree.json
CHANGED
|
@@ -9259,7 +9259,7 @@
|
|
|
9259
9259
|
"aws:cdk:cloudformation:props": {
|
|
9260
9260
|
"code": {
|
|
9261
9261
|
"s3Bucket": "cdk-hnb659fds-assets-712950704752-us-east-1",
|
|
9262
|
-
"s3Key": "
|
|
9262
|
+
"s3Key": "98dba9b3d79739d40a37e0621754556a791eef3b1c96e913c6e8d5df3a379bd4.zip"
|
|
9263
9263
|
},
|
|
9264
9264
|
"role": {
|
|
9265
9265
|
"Fn::GetAtt": [
|