@aws-cdk/integ-runner 2.197.15 → 2.197.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/THIRD_PARTY_LICENSES +1 -1
- package/lib/workers/extract/index.js +141 -92
- package/package.json +6 -6
package/THIRD_PARTY_LICENSES
CHANGED
|
@@ -21278,7 +21278,7 @@ THE SOFTWARE.
|
|
|
21278
21278
|
|
|
21279
21279
|
----------------
|
|
21280
21280
|
|
|
21281
|
-
** basic-ftp@5.
|
|
21281
|
+
** basic-ftp@5.3.0 - https://www.npmjs.com/package/basic-ftp/v/5.3.0 | MIT
|
|
21282
21282
|
Copyright (c) 2019 Patrick Juchli
|
|
21283
21283
|
|
|
21284
21284
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
@@ -1287,6 +1287,8 @@ var init_metadata_schema = __esm({
|
|
|
1287
1287
|
ArtifactMetadataEntryType8["LOGICAL_ID"] = "aws:cdk:logicalId";
|
|
1288
1288
|
ArtifactMetadataEntryType8["STACK_TAGS"] = "aws:cdk:stack-tags";
|
|
1289
1289
|
ArtifactMetadataEntryType8["DO_NOT_REFACTOR"] = "aws:cdk:do-not-refactor";
|
|
1290
|
+
ArtifactMetadataEntryType8["CREATION_STACK"] = "aws:cdk:creationStack";
|
|
1291
|
+
ArtifactMetadataEntryType8["PROPERTY_ASSIGNMENT"] = "aws:cdk:propertyAssignment";
|
|
1290
1292
|
return ArtifactMetadataEntryType8;
|
|
1291
1293
|
})(ArtifactMetadataEntryType || {});
|
|
1292
1294
|
}
|
|
@@ -4670,7 +4672,7 @@ var require_semver2 = __commonJS({
|
|
|
4670
4672
|
// ../cloud-assembly-schema/cli-version.json
|
|
4671
4673
|
var require_cli_version = __commonJS({
|
|
4672
4674
|
"../cloud-assembly-schema/cli-version.json"(exports2, module2) {
|
|
4673
|
-
module2.exports = { version: "2.1118.
|
|
4675
|
+
module2.exports = { version: "2.1118.4" };
|
|
4674
4676
|
}
|
|
4675
4677
|
});
|
|
4676
4678
|
|
|
@@ -5095,10 +5097,20 @@ have a unique display name. (Default - no display name)`,
|
|
|
5095
5097
|
{
|
|
5096
5098
|
$ref: "#/definitions/ContainerImageAssetMetadataEntry"
|
|
5097
5099
|
},
|
|
5100
|
+
{
|
|
5101
|
+
$ref: "#/definitions/PropertyMutationMetadataEntry"
|
|
5102
|
+
},
|
|
5098
5103
|
{
|
|
5099
5104
|
type: "array",
|
|
5100
5105
|
items: {
|
|
5101
|
-
|
|
5106
|
+
anyOf: [
|
|
5107
|
+
{
|
|
5108
|
+
$ref: "#/definitions/Tag"
|
|
5109
|
+
},
|
|
5110
|
+
{
|
|
5111
|
+
type: "string"
|
|
5112
|
+
}
|
|
5113
|
+
]
|
|
5102
5114
|
}
|
|
5103
5115
|
},
|
|
5104
5116
|
{
|
|
@@ -5296,6 +5308,27 @@ have a unique display name. (Default - no display name)`,
|
|
|
5296
5308
|
"type"
|
|
5297
5309
|
]
|
|
5298
5310
|
},
|
|
5311
|
+
PropertyMutationMetadataEntry: {
|
|
5312
|
+
description: "Metadata type of a PropertyMutation",
|
|
5313
|
+
type: "object",
|
|
5314
|
+
properties: {
|
|
5315
|
+
propertyName: {
|
|
5316
|
+
description: "Name of the property",
|
|
5317
|
+
type: "string"
|
|
5318
|
+
},
|
|
5319
|
+
stackTrace: {
|
|
5320
|
+
description: "Stack trace of the mutation",
|
|
5321
|
+
type: "array",
|
|
5322
|
+
items: {
|
|
5323
|
+
type: "string"
|
|
5324
|
+
}
|
|
5325
|
+
}
|
|
5326
|
+
},
|
|
5327
|
+
required: [
|
|
5328
|
+
"propertyName",
|
|
5329
|
+
"stackTrace"
|
|
5330
|
+
]
|
|
5331
|
+
},
|
|
5299
5332
|
Tag: {
|
|
5300
5333
|
description: "Metadata Entry spec for stack tag.",
|
|
5301
5334
|
type: "object",
|
|
@@ -6676,7 +6709,7 @@ var require_integ_schema = __commonJS({
|
|
|
6676
6709
|
var require_version = __commonJS({
|
|
6677
6710
|
"../cloud-assembly-schema/schema/version.json"(exports2, module2) {
|
|
6678
6711
|
module2.exports = {
|
|
6679
|
-
schemaHash: "
|
|
6712
|
+
schemaHash: "cf2452236640f556f1b81778515335af1c6bbdb54c7ef12dad43f8cf6a56ddee",
|
|
6680
6713
|
$comment: "Do not hold back the version on additions: jsonschema validation of the manifest by the consumer will trigger errors on unexpected fields.",
|
|
6681
6714
|
revision: 53
|
|
6682
6715
|
};
|
|
@@ -289576,7 +289609,7 @@ var init_filter = __esm({
|
|
|
289576
289609
|
const matched = ands.map((affected) => actualComponents.filter((actual) => this.componentNameMatches(affected, actual) && semver3.satisfies(actual.version, affected.version, { includePrerelease: true })));
|
|
289577
289610
|
if (matched.every((xs) => xs.length > 0)) {
|
|
289578
289611
|
const ret = new FilteredNotice(notice);
|
|
289579
|
-
this.addDynamicValues(matched.flatMap((x6) => x6), ret);
|
|
289612
|
+
this.addDynamicValues(matched.flatMap((x6) => x6), ret, notice.dynamicValues);
|
|
289580
289613
|
return [ret];
|
|
289581
289614
|
}
|
|
289582
289615
|
}
|
|
@@ -289596,9 +289629,9 @@ var init_filter = __esm({
|
|
|
289596
289629
|
* Adds dynamic values from the given ActualComponents
|
|
289597
289630
|
*
|
|
289598
289631
|
* If there are multiple components with the same dynamic name, they are joined
|
|
289599
|
-
* by
|
|
289632
|
+
* by the separator declared in `specs[name].separator`, defaulting to `','`.
|
|
289600
289633
|
*/
|
|
289601
|
-
addDynamicValues(comps, notice) {
|
|
289634
|
+
addDynamicValues(comps, notice, specs) {
|
|
289602
289635
|
const dynamicValues = {};
|
|
289603
289636
|
for (const comp of comps) {
|
|
289604
289637
|
if (comp.dynamicName) {
|
|
@@ -289607,7 +289640,7 @@ var init_filter = __esm({
|
|
|
289607
289640
|
}
|
|
289608
289641
|
}
|
|
289609
289642
|
for (const [key, values] of Object.entries(dynamicValues)) {
|
|
289610
|
-
notice.addDynamicValue(key, values.join(","));
|
|
289643
|
+
notice.addDynamicValue(key, values.join(specs?.[key]?.separator ?? ","));
|
|
289611
289644
|
}
|
|
289612
289645
|
}
|
|
289613
289646
|
/**
|
|
@@ -313785,12 +313818,19 @@ function resourceMoves(before, after, direction = "direct", ignoreModifications
|
|
|
313785
313818
|
const digestsAfter = resourceDigests(after, direction);
|
|
313786
313819
|
if (!(ignoreModifications || isomorphic(digestsBefore, digestsAfter))) {
|
|
313787
313820
|
const message2 = ["A refactor operation cannot add, remove or update resources. Only resource moves and renames are allowed."];
|
|
313788
|
-
const
|
|
313789
|
-
return Array.from(setDiff(new Set(Object.keys(a6)), new Set(Object.keys(b6)))).flatMap((k6) => a6[k6])
|
|
313790
|
-
}, "
|
|
313821
|
+
const locationsForDigests = /* @__PURE__ */ __name((a6, b6) => {
|
|
313822
|
+
return Array.from(setDiff(new Set(Object.keys(a6)), new Set(Object.keys(b6)))).flatMap((k6) => a6[k6]);
|
|
313823
|
+
}, "locationsForDigests");
|
|
313824
|
+
const formatList = /* @__PURE__ */ __name((locs, icon) => locs.map((x6) => ` [${icon}] ${x6.toPath()}`).sort().join("\n"), "formatList");
|
|
313791
313825
|
const stackNames = /* @__PURE__ */ __name((stacks) => stacks.length === 0 ? "NONE" : stacks.map((s6) => s6.stackName).sort().join(", "), "stackNames");
|
|
313792
|
-
const
|
|
313793
|
-
const
|
|
313826
|
+
const onlyDeployedLocs = locationsForDigests(digestsBefore, digestsAfter);
|
|
313827
|
+
const onlyLocalLocs = locationsForDigests(digestsAfter, digestsBefore);
|
|
313828
|
+
const onlyDeployedPaths = new Set(onlyDeployedLocs.map((l6) => l6.toPath()));
|
|
313829
|
+
const onlyLocalPaths = new Set(onlyLocalLocs.map((l6) => l6.toPath()));
|
|
313830
|
+
const differentPaths = new Set(Array.from(onlyDeployedPaths).filter((p6) => onlyLocalPaths.has(p6)));
|
|
313831
|
+
const onlyDeployed = formatList(onlyDeployedLocs.filter((l6) => !differentPaths.has(l6.toPath())), "-");
|
|
313832
|
+
const onlyLocal = formatList(onlyLocalLocs.filter((l6) => !differentPaths.has(l6.toPath())), "+");
|
|
313833
|
+
const different = formatList([...onlyDeployedLocs, ...onlyLocalLocs].filter((l6) => differentPaths.has(l6.toPath())), "~");
|
|
313794
313834
|
if (onlyDeployed.length > 0) {
|
|
313795
313835
|
message2.push(`The following resources are present only in the AWS environment:
|
|
313796
313836
|
${onlyDeployed}`);
|
|
@@ -313799,6 +313839,11 @@ ${onlyDeployed}`);
|
|
|
313799
313839
|
message2.push(`
|
|
313800
313840
|
The following resources are present only in your CDK application:
|
|
313801
313841
|
${onlyLocal}`);
|
|
313842
|
+
}
|
|
313843
|
+
if (different.length > 0) {
|
|
313844
|
+
message2.push(`
|
|
313845
|
+
The following resources are different in your CDK application and the AWS environment:
|
|
313846
|
+
${different}`);
|
|
313802
313847
|
}
|
|
313803
313848
|
message2.push("");
|
|
313804
313849
|
message2.push("The following stacks were used in the comparison:");
|
|
@@ -317146,11 +317191,6 @@ var init_toolkit = __esm({
|
|
|
317146
317191
|
deploymentMethod: options.deploymentMethod,
|
|
317147
317192
|
cleanupOnNoOp: isExecutingChangeSetDeployment(options.deploymentMethod)
|
|
317148
317193
|
}) : void 0;
|
|
317149
|
-
if (prepareResult?.noOp === true) {
|
|
317150
|
-
await ioHelper.notify(IO.CDK_TOOLKIT_I5900.msg(chalk23.green(`
|
|
317151
|
-
\u2705 ${stack.displayName} (no changes)`), prepareResult));
|
|
317152
|
-
return;
|
|
317153
|
-
}
|
|
317154
317194
|
const formatter = new DiffFormatter({
|
|
317155
317195
|
templateInfo: {
|
|
317156
317196
|
oldTemplate: currentTemplate,
|
|
@@ -317188,7 +317228,7 @@ Do you wish to deploy these changes`;
|
|
|
317188
317228
|
deploySpan.incCounter("resources", resourceCount);
|
|
317189
317229
|
let deployDuration;
|
|
317190
317230
|
try {
|
|
317191
|
-
const prepareIsFinal = isNonExecutingChangeSetDeployment(options.deploymentMethod);
|
|
317231
|
+
const prepareIsFinal = prepareResult && (prepareResult.noOp || isNonExecutingChangeSetDeployment(options.deploymentMethod));
|
|
317192
317232
|
let deployResult = prepareIsFinal ? prepareResult : void 0;
|
|
317193
317233
|
let rollback = options.rollback;
|
|
317194
317234
|
let iteration = 0;
|
|
@@ -317269,10 +317309,9 @@ ${deployResult.stackArn}`));
|
|
|
317269
317309
|
hierarchicalId: stack.hierarchicalId
|
|
317270
317310
|
});
|
|
317271
317311
|
} catch (e6) {
|
|
317272
|
-
|
|
317273
|
-
|
|
317274
|
-
|
|
317275
|
-
);
|
|
317312
|
+
const code = ToolkitError.isToolkitError(e6) ? e6.name : "DeployStackFailed";
|
|
317313
|
+
const newMessage = [`\u274C ${chalk23.bold(stack.stackName)} failed:`, ...e6.name ? [`${e6.name}:`] : [], e6.message].join(" ");
|
|
317314
|
+
throw new ToolkitError(code, newMessage);
|
|
317276
317315
|
} finally {
|
|
317277
317316
|
if (options.traceLogs) {
|
|
317278
317317
|
const cloudWatchLogMonitor = options.cloudWatchLogMonitor ?? new CloudWatchLogEventMonitor({ ioHelper });
|
|
@@ -325063,6 +325102,61 @@ Closing reason: ${this._closingError.stack}`;
|
|
|
325063
325102
|
}
|
|
325064
325103
|
});
|
|
325065
325104
|
|
|
325105
|
+
// ../../../node_modules/basic-ftp/dist/netUtils.js
|
|
325106
|
+
var require_netUtils = __commonJS({
|
|
325107
|
+
"../../../node_modules/basic-ftp/dist/netUtils.js"(exports2) {
|
|
325108
|
+
"use strict";
|
|
325109
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
325110
|
+
exports2.describeTLS = describeTLS;
|
|
325111
|
+
exports2.describeAddress = describeAddress;
|
|
325112
|
+
exports2.upgradeSocket = upgradeSocket;
|
|
325113
|
+
exports2.ipIsPrivateV4Address = ipIsPrivateV4Address;
|
|
325114
|
+
var tls_1 = require("tls");
|
|
325115
|
+
function describeTLS(socket) {
|
|
325116
|
+
if (socket instanceof tls_1.TLSSocket) {
|
|
325117
|
+
const protocol = socket.getProtocol();
|
|
325118
|
+
return protocol ? protocol : "Server socket or disconnected client socket";
|
|
325119
|
+
}
|
|
325120
|
+
return "No encryption";
|
|
325121
|
+
}
|
|
325122
|
+
__name(describeTLS, "describeTLS");
|
|
325123
|
+
function describeAddress(socket) {
|
|
325124
|
+
if (socket.remoteFamily === "IPv6") {
|
|
325125
|
+
return `[${socket.remoteAddress}]:${socket.remotePort}`;
|
|
325126
|
+
}
|
|
325127
|
+
return `${socket.remoteAddress}:${socket.remotePort}`;
|
|
325128
|
+
}
|
|
325129
|
+
__name(describeAddress, "describeAddress");
|
|
325130
|
+
function upgradeSocket(socket, options) {
|
|
325131
|
+
return new Promise((resolve13, reject) => {
|
|
325132
|
+
const tlsOptions = Object.assign({}, options, {
|
|
325133
|
+
socket
|
|
325134
|
+
});
|
|
325135
|
+
const tlsSocket = (0, tls_1.connect)(tlsOptions, () => {
|
|
325136
|
+
const expectCertificate = tlsOptions.rejectUnauthorized !== false;
|
|
325137
|
+
if (expectCertificate && !tlsSocket.authorized) {
|
|
325138
|
+
reject(tlsSocket.authorizationError);
|
|
325139
|
+
} else {
|
|
325140
|
+
tlsSocket.removeAllListeners("error");
|
|
325141
|
+
resolve13(tlsSocket);
|
|
325142
|
+
}
|
|
325143
|
+
}).once("error", (error4) => {
|
|
325144
|
+
reject(error4);
|
|
325145
|
+
});
|
|
325146
|
+
});
|
|
325147
|
+
}
|
|
325148
|
+
__name(upgradeSocket, "upgradeSocket");
|
|
325149
|
+
function ipIsPrivateV4Address(ip = "") {
|
|
325150
|
+
if (ip.startsWith("::ffff:")) {
|
|
325151
|
+
ip = ip.substr(7);
|
|
325152
|
+
}
|
|
325153
|
+
const octets = ip.split(".").map((o6) => parseInt(o6, 10));
|
|
325154
|
+
return octets[0] === 10 || octets[0] === 172 && octets[1] >= 16 && octets[1] <= 31 || octets[0] === 192 && octets[1] === 168 || ip === "127.0.0.1";
|
|
325155
|
+
}
|
|
325156
|
+
__name(ipIsPrivateV4Address, "ipIsPrivateV4Address");
|
|
325157
|
+
}
|
|
325158
|
+
});
|
|
325159
|
+
|
|
325066
325160
|
// ../../../node_modules/basic-ftp/dist/FileInfo.js
|
|
325067
325161
|
var require_FileInfo = __commonJS({
|
|
325068
325162
|
"../../../node_modules/basic-ftp/dist/FileInfo.js"(exports2) {
|
|
@@ -325599,81 +325693,33 @@ var require_StringWriter = __commonJS({
|
|
|
325599
325693
|
static {
|
|
325600
325694
|
__name(this, "StringWriter");
|
|
325601
325695
|
}
|
|
325602
|
-
constructor() {
|
|
325603
|
-
super(
|
|
325604
|
-
this.
|
|
325696
|
+
constructor(maxByteLength = 1 * 1024 * 1024) {
|
|
325697
|
+
super();
|
|
325698
|
+
this.maxByteLength = maxByteLength;
|
|
325699
|
+
this.byteLength = 0;
|
|
325700
|
+
this.bufs = [];
|
|
325605
325701
|
}
|
|
325606
325702
|
_write(chunk, _2, callback) {
|
|
325607
|
-
if (chunk instanceof Buffer) {
|
|
325608
|
-
|
|
325609
|
-
|
|
325610
|
-
} else {
|
|
325611
|
-
callback(new Error("StringWriter expects chunks of type 'Buffer'."));
|
|
325703
|
+
if (!(chunk instanceof Buffer)) {
|
|
325704
|
+
callback(new Error("StringWriter: expects chunks of type 'Buffer'."));
|
|
325705
|
+
return;
|
|
325612
325706
|
}
|
|
325707
|
+
if (this.byteLength + chunk.byteLength > this.maxByteLength) {
|
|
325708
|
+
callback(new Error(`StringWriter: Maximum bytes exceeded, maxByteLength=${this.maxByteLength}.`));
|
|
325709
|
+
return;
|
|
325710
|
+
}
|
|
325711
|
+
this.byteLength += chunk.byteLength;
|
|
325712
|
+
this.bufs.push(chunk);
|
|
325713
|
+
callback(null);
|
|
325613
325714
|
}
|
|
325614
325715
|
getText(encoding) {
|
|
325615
|
-
return this.
|
|
325716
|
+
return Buffer.concat(this.bufs).toString(encoding);
|
|
325616
325717
|
}
|
|
325617
325718
|
};
|
|
325618
325719
|
exports2.StringWriter = StringWriter;
|
|
325619
325720
|
}
|
|
325620
325721
|
});
|
|
325621
325722
|
|
|
325622
|
-
// ../../../node_modules/basic-ftp/dist/netUtils.js
|
|
325623
|
-
var require_netUtils = __commonJS({
|
|
325624
|
-
"../../../node_modules/basic-ftp/dist/netUtils.js"(exports2) {
|
|
325625
|
-
"use strict";
|
|
325626
|
-
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
325627
|
-
exports2.describeTLS = describeTLS;
|
|
325628
|
-
exports2.describeAddress = describeAddress;
|
|
325629
|
-
exports2.upgradeSocket = upgradeSocket;
|
|
325630
|
-
exports2.ipIsPrivateV4Address = ipIsPrivateV4Address;
|
|
325631
|
-
var tls_1 = require("tls");
|
|
325632
|
-
function describeTLS(socket) {
|
|
325633
|
-
if (socket instanceof tls_1.TLSSocket) {
|
|
325634
|
-
const protocol = socket.getProtocol();
|
|
325635
|
-
return protocol ? protocol : "Server socket or disconnected client socket";
|
|
325636
|
-
}
|
|
325637
|
-
return "No encryption";
|
|
325638
|
-
}
|
|
325639
|
-
__name(describeTLS, "describeTLS");
|
|
325640
|
-
function describeAddress(socket) {
|
|
325641
|
-
if (socket.remoteFamily === "IPv6") {
|
|
325642
|
-
return `[${socket.remoteAddress}]:${socket.remotePort}`;
|
|
325643
|
-
}
|
|
325644
|
-
return `${socket.remoteAddress}:${socket.remotePort}`;
|
|
325645
|
-
}
|
|
325646
|
-
__name(describeAddress, "describeAddress");
|
|
325647
|
-
function upgradeSocket(socket, options) {
|
|
325648
|
-
return new Promise((resolve13, reject) => {
|
|
325649
|
-
const tlsOptions = Object.assign({}, options, {
|
|
325650
|
-
socket
|
|
325651
|
-
});
|
|
325652
|
-
const tlsSocket = (0, tls_1.connect)(tlsOptions, () => {
|
|
325653
|
-
const expectCertificate = tlsOptions.rejectUnauthorized !== false;
|
|
325654
|
-
if (expectCertificate && !tlsSocket.authorized) {
|
|
325655
|
-
reject(tlsSocket.authorizationError);
|
|
325656
|
-
} else {
|
|
325657
|
-
tlsSocket.removeAllListeners("error");
|
|
325658
|
-
resolve13(tlsSocket);
|
|
325659
|
-
}
|
|
325660
|
-
}).once("error", (error4) => {
|
|
325661
|
-
reject(error4);
|
|
325662
|
-
});
|
|
325663
|
-
});
|
|
325664
|
-
}
|
|
325665
|
-
__name(upgradeSocket, "upgradeSocket");
|
|
325666
|
-
function ipIsPrivateV4Address(ip = "") {
|
|
325667
|
-
if (ip.startsWith("::ffff:")) {
|
|
325668
|
-
ip = ip.substr(7);
|
|
325669
|
-
}
|
|
325670
|
-
const octets = ip.split(".").map((o6) => parseInt(o6, 10));
|
|
325671
|
-
return octets[0] === 10 || octets[0] === 172 && octets[1] >= 16 && octets[1] <= 31 || octets[0] === 192 && octets[1] === 168 || ip === "127.0.0.1";
|
|
325672
|
-
}
|
|
325673
|
-
__name(ipIsPrivateV4Address, "ipIsPrivateV4Address");
|
|
325674
|
-
}
|
|
325675
|
-
});
|
|
325676
|
-
|
|
325677
325723
|
// ../../../node_modules/basic-ftp/dist/transfer.js
|
|
325678
325724
|
var require_transfer2 = __commonJS({
|
|
325679
325725
|
"../../../node_modules/basic-ftp/dist/transfer.js"(exports2) {
|
|
@@ -325949,13 +325995,13 @@ var require_Client = __commonJS({
|
|
|
325949
325995
|
var tls_1 = require("tls");
|
|
325950
325996
|
var util_1 = require("util");
|
|
325951
325997
|
var FtpContext_1 = require_FtpContext();
|
|
325998
|
+
var netUtils_1 = require_netUtils();
|
|
325999
|
+
var parseControlResponse_1 = require_parseControlResponse();
|
|
325952
326000
|
var parseList_1 = require_parseList();
|
|
326001
|
+
var parseListMLSD_1 = require_parseListMLSD();
|
|
325953
326002
|
var ProgressTracker_1 = require_ProgressTracker();
|
|
325954
326003
|
var StringWriter_1 = require_StringWriter();
|
|
325955
|
-
var parseListMLSD_1 = require_parseListMLSD();
|
|
325956
|
-
var netUtils_1 = require_netUtils();
|
|
325957
326004
|
var transfer_1 = require_transfer2();
|
|
325958
|
-
var parseControlResponse_1 = require_parseControlResponse();
|
|
325959
326005
|
var fsReadDir = (0, util_1.promisify)(fs_1.readdir);
|
|
325960
326006
|
var fsMkDir = (0, util_1.promisify)(fs_1.mkdir);
|
|
325961
326007
|
var fsStat = (0, util_1.promisify)(fs_1.stat);
|
|
@@ -325963,7 +326009,8 @@ var require_Client = __commonJS({
|
|
|
325963
326009
|
var fsClose = (0, util_1.promisify)(fs_1.close);
|
|
325964
326010
|
var fsUnlink = (0, util_1.promisify)(fs_1.unlink);
|
|
325965
326011
|
var defaultClientOptions = {
|
|
325966
|
-
allowSeparateTransferHost: true
|
|
326012
|
+
allowSeparateTransferHost: true,
|
|
326013
|
+
maxListingBytes: 40 * 1024 * 1024
|
|
325967
326014
|
};
|
|
325968
326015
|
var LIST_COMMANDS_DEFAULT = /* @__PURE__ */ __name(() => ["LIST -a", "LIST"], "LIST_COMMANDS_DEFAULT");
|
|
325969
326016
|
var LIST_COMMANDS_MLSD = /* @__PURE__ */ __name(() => ["MLSD", "LIST -a", "LIST"], "LIST_COMMANDS_MLSD");
|
|
@@ -325976,13 +326023,15 @@ var require_Client = __commonJS({
|
|
|
325976
326023
|
*
|
|
325977
326024
|
* @param timeout Timeout in milliseconds, use 0 for no timeout. Optional, default is 30 seconds.
|
|
325978
326025
|
*/
|
|
325979
|
-
constructor(timeout = 3e4,
|
|
326026
|
+
constructor(timeout = 3e4, userOptions = defaultClientOptions) {
|
|
325980
326027
|
this.availableListCommands = LIST_COMMANDS_DEFAULT();
|
|
326028
|
+
const options = { ...defaultClientOptions, ...userOptions };
|
|
325981
326029
|
this.ftp = new FtpContext_1.FTPContext(timeout);
|
|
325982
326030
|
this.prepareTransfer = this._enterFirstCompatibleMode([
|
|
325983
326031
|
transfer_1.enterPassiveModeIPv6,
|
|
325984
326032
|
options.allowSeparateTransferHost ? transfer_1.enterPassiveModeIPv4 : transfer_1.enterPassiveModeIPv4_forceControlHostIP
|
|
325985
326033
|
]);
|
|
326034
|
+
this.options = options;
|
|
325986
326035
|
this.parseList = parseList_1.parseList;
|
|
325987
326036
|
this._progressTracker = new ProgressTracker_1.ProgressTracker();
|
|
325988
326037
|
}
|
|
@@ -326419,7 +326468,7 @@ var require_Client = __commonJS({
|
|
|
326419
326468
|
* @protected
|
|
326420
326469
|
*/
|
|
326421
326470
|
async _requestListWithCommand(command) {
|
|
326422
|
-
const buffer = new StringWriter_1.StringWriter();
|
|
326471
|
+
const buffer = new StringWriter_1.StringWriter(this.options.maxListingBytes);
|
|
326423
326472
|
await (0, transfer_1.downloadTo)(buffer, {
|
|
326424
326473
|
ftp: this.ftp,
|
|
326425
326474
|
tracker: this._progressTracker,
|
package/package.json
CHANGED
|
@@ -64,13 +64,13 @@
|
|
|
64
64
|
"ts-jest": "^29.4.9",
|
|
65
65
|
"typescript": "5.9",
|
|
66
66
|
"@aws-cdk/aws-service-spec": "^0.1.171",
|
|
67
|
-
"@aws-cdk/cdk-assets-lib": "1.4.
|
|
67
|
+
"@aws-cdk/cdk-assets-lib": "1.4.5",
|
|
68
68
|
"@aws-cdk/cloud-assembly-api": "2.2.2",
|
|
69
|
-
"@aws-cdk/cloud-assembly-schema": ">=53.
|
|
69
|
+
"@aws-cdk/cloud-assembly-schema": ">=53.17.0",
|
|
70
70
|
"@aws-cdk/cloudformation-diff": "2.187.1",
|
|
71
|
-
"@aws-cdk/toolkit-lib": "1.
|
|
71
|
+
"@aws-cdk/toolkit-lib": "1.23.0",
|
|
72
72
|
"@aws-sdk/client-cloudformation": "^3",
|
|
73
|
-
"aws-cdk": "2.1118.
|
|
73
|
+
"aws-cdk": "2.1118.4",
|
|
74
74
|
"chalk": "^4",
|
|
75
75
|
"chokidar": "^4",
|
|
76
76
|
"fs-extra": "^11",
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
},
|
|
81
81
|
"dependencies": {
|
|
82
82
|
"@aws-cdk/aws-service-spec": "0.1.171",
|
|
83
|
-
"aws-cdk": "2.1118.
|
|
83
|
+
"aws-cdk": "2.1118.4"
|
|
84
84
|
},
|
|
85
85
|
"keywords": [
|
|
86
86
|
"aws",
|
|
@@ -102,7 +102,7 @@
|
|
|
102
102
|
"publishConfig": {
|
|
103
103
|
"access": "public"
|
|
104
104
|
},
|
|
105
|
-
"version": "2.197.
|
|
105
|
+
"version": "2.197.17",
|
|
106
106
|
"packageManager": "yarn@4.13.0",
|
|
107
107
|
"types": "lib/index.d.ts",
|
|
108
108
|
"//": "~~ Generated by projen. To modify, edit .projenrc.js and run \"yarn projen\"."
|