cdk-assets 4.3.4 → 4.3.6
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 +5 -5
- package/bin/cdk-assets.js +549 -478
- package/bin/docker-credential-cdk-assets.js +516 -445
- package/package.json +3 -3
|
@@ -802,14 +802,14 @@ var require_helpers = __commonJS({
|
|
|
802
802
|
"../@aws-cdk/cloud-assembly-schema/node_modules/jsonschema/lib/helpers.js"(exports2, module2) {
|
|
803
803
|
"use strict";
|
|
804
804
|
var uri = require("url");
|
|
805
|
-
var ValidationError = exports2.ValidationError = /* @__PURE__ */ __name(function ValidationError2(message, instance, schema,
|
|
806
|
-
if (Array.isArray(
|
|
807
|
-
this.path =
|
|
808
|
-
this.property =
|
|
805
|
+
var ValidationError = exports2.ValidationError = /* @__PURE__ */ __name(function ValidationError2(message, instance, schema, path13, name, argument) {
|
|
806
|
+
if (Array.isArray(path13)) {
|
|
807
|
+
this.path = path13;
|
|
808
|
+
this.property = path13.reduce(function(sum, item) {
|
|
809
809
|
return sum + makeSuffix(item);
|
|
810
810
|
}, "instance");
|
|
811
|
-
} else if (
|
|
812
|
-
this.property =
|
|
811
|
+
} else if (path13 !== void 0) {
|
|
812
|
+
this.property = path13;
|
|
813
813
|
}
|
|
814
814
|
if (message) {
|
|
815
815
|
this.message = message;
|
|
@@ -902,16 +902,16 @@ var require_helpers = __commonJS({
|
|
|
902
902
|
name: { value: "SchemaError", enumerable: false }
|
|
903
903
|
}
|
|
904
904
|
);
|
|
905
|
-
var SchemaContext = exports2.SchemaContext = /* @__PURE__ */ __name(function SchemaContext2(schema, options,
|
|
905
|
+
var SchemaContext = exports2.SchemaContext = /* @__PURE__ */ __name(function SchemaContext2(schema, options, path13, base, schemas) {
|
|
906
906
|
this.schema = schema;
|
|
907
907
|
this.options = options;
|
|
908
|
-
if (Array.isArray(
|
|
909
|
-
this.path =
|
|
910
|
-
this.propertyPath =
|
|
908
|
+
if (Array.isArray(path13)) {
|
|
909
|
+
this.path = path13;
|
|
910
|
+
this.propertyPath = path13.reduce(function(sum, item) {
|
|
911
911
|
return sum + makeSuffix(item);
|
|
912
912
|
}, "instance");
|
|
913
913
|
} else {
|
|
914
|
-
this.propertyPath =
|
|
914
|
+
this.propertyPath = path13;
|
|
915
915
|
}
|
|
916
916
|
this.base = base;
|
|
917
917
|
this.schemas = schemas;
|
|
@@ -920,10 +920,10 @@ var require_helpers = __commonJS({
|
|
|
920
920
|
return uri.resolve(this.base, target);
|
|
921
921
|
}, "resolve");
|
|
922
922
|
SchemaContext.prototype.makeChild = /* @__PURE__ */ __name(function makeChild(schema, propertyName) {
|
|
923
|
-
var
|
|
923
|
+
var path13 = propertyName === void 0 ? this.path : this.path.concat([propertyName]);
|
|
924
924
|
var id = schema.$id || schema.id;
|
|
925
925
|
var base = uri.resolve(this.base, id || "");
|
|
926
|
-
var ctx = new SchemaContext(schema, this.options,
|
|
926
|
+
var ctx = new SchemaContext(schema, this.options, path13, base, Object.create(this.schemas));
|
|
927
927
|
if (id && !ctx.schemas[base]) {
|
|
928
928
|
ctx.schemas[base] = schema;
|
|
929
929
|
}
|
|
@@ -4055,7 +4055,7 @@ var require_semver2 = __commonJS({
|
|
|
4055
4055
|
// ../@aws-cdk/cloud-assembly-schema/cli-version.json
|
|
4056
4056
|
var require_cli_version = __commonJS({
|
|
4057
4057
|
"../@aws-cdk/cloud-assembly-schema/cli-version.json"(exports2, module2) {
|
|
4058
|
-
module2.exports = { version: "2.
|
|
4058
|
+
module2.exports = { version: "2.1106.1" };
|
|
4059
4059
|
}
|
|
4060
4060
|
});
|
|
4061
4061
|
|
|
@@ -4390,7 +4390,7 @@ var require_cloud_assembly_schema = __commonJS({
|
|
|
4390
4390
|
type: "string"
|
|
4391
4391
|
},
|
|
4392
4392
|
metadata: {
|
|
4393
|
-
description: "Associated metadata. (Default - no metadata.)",
|
|
4393
|
+
description: "Associated metadata.\n\nMetadata can be stored directly in the assembly manifest, as well as in a\nseparate file (see `additionalMetadataFile`). It should prefer to be stored\nin the additional file, as that will reduce the size of the assembly\nmanifest in cases of a lot of metdata (which CDK does emit by default). (Default - no metadata.)",
|
|
4394
4394
|
type: "object",
|
|
4395
4395
|
additionalProperties: {
|
|
4396
4396
|
type: "array",
|
|
@@ -4399,6 +4399,10 @@ var require_cloud_assembly_schema = __commonJS({
|
|
|
4399
4399
|
}
|
|
4400
4400
|
}
|
|
4401
4401
|
},
|
|
4402
|
+
additionalMetadataFile: {
|
|
4403
|
+
description: "A file with additional metadata entries.\n\nThe schema of this file is exactly the same as the type of the `metadata` field.\nIn other words, that file contains an object mapping construct paths to arrays\nof metadata entries. (Default - no additional metadata)",
|
|
4404
|
+
type: "string"
|
|
4405
|
+
},
|
|
4402
4406
|
dependencies: {
|
|
4403
4407
|
description: "IDs of artifacts that must be deployed before this artifact. (Default - no dependencies.)",
|
|
4404
4408
|
type: "array",
|
|
@@ -6043,9 +6047,9 @@ var require_integ_schema = __commonJS({
|
|
|
6043
6047
|
var require_version = __commonJS({
|
|
6044
6048
|
"../@aws-cdk/cloud-assembly-schema/schema/version.json"(exports2, module2) {
|
|
6045
6049
|
module2.exports = {
|
|
6046
|
-
schemaHash: "
|
|
6050
|
+
schemaHash: "22c511a4ddd185761b8d56ac21d48c8384873ffe4b953b3567654746f8dd26f1",
|
|
6047
6051
|
$comment: "Do not hold back the version on additions: jsonschema validation of the manifest by the consumer will trigger errors on unexpected fields.",
|
|
6048
|
-
revision:
|
|
6052
|
+
revision: 52
|
|
6049
6053
|
};
|
|
6050
6054
|
}
|
|
6051
6055
|
});
|
|
@@ -6180,20 +6184,21 @@ var init_manifest = __esm({
|
|
|
6180
6184
|
`${VERSION_MISMATCH}: Maximum schema version supported is ${maxSupported}.x.x, but found ${actual}${cliWarning}`
|
|
6181
6185
|
);
|
|
6182
6186
|
}
|
|
6183
|
-
|
|
6184
|
-
|
|
6185
|
-
|
|
6186
|
-
|
|
6187
|
-
|
|
6188
|
-
|
|
6189
|
-
|
|
6190
|
-
|
|
6191
|
-
|
|
6192
|
-
|
|
6193
|
-
|
|
6194
|
-
|
|
6195
|
-
|
|
6187
|
+
if (options?.validateSchema ?? process.env.TESTING_CDK === "1") {
|
|
6188
|
+
const validator = new jsonschema.Validator();
|
|
6189
|
+
const result = validator.validate(manifest, schema, {
|
|
6190
|
+
nestedErrors: true,
|
|
6191
|
+
allowUnknownAttributes: false,
|
|
6192
|
+
preValidateProperty: _Manifest.validateAssumeRoleAdditionalOptions
|
|
6193
|
+
});
|
|
6194
|
+
let errors = result.errors;
|
|
6195
|
+
if (options?.skipEnumCheck) {
|
|
6196
|
+
errors = stripEnumErrors(errors);
|
|
6197
|
+
}
|
|
6198
|
+
if (errors.length > 0) {
|
|
6199
|
+
throw new Error(`Invalid assembly manifest:
|
|
6196
6200
|
${errors.map((e4) => e4.stack).join("\n")}`);
|
|
6201
|
+
}
|
|
6197
6202
|
}
|
|
6198
6203
|
}
|
|
6199
6204
|
static saveManifest(manifest, filePath, schema, preprocess) {
|
|
@@ -6439,14 +6444,16 @@ var cloud_artifact_exports = {};
|
|
|
6439
6444
|
__export(cloud_artifact_exports, {
|
|
6440
6445
|
CloudArtifact: () => CloudArtifact
|
|
6441
6446
|
});
|
|
6442
|
-
var cxschema, CloudArtifact;
|
|
6447
|
+
var fs4, path3, cxschema, CloudArtifact;
|
|
6443
6448
|
var init_cloud_artifact = __esm({
|
|
6444
6449
|
"../@aws-cdk/cloud-assembly-api/lib/cloud-artifact.ts"() {
|
|
6445
6450
|
"use strict";
|
|
6451
|
+
fs4 = __toESM(require("fs"));
|
|
6452
|
+
path3 = __toESM(require("path"));
|
|
6446
6453
|
cxschema = __toESM(require_lib2());
|
|
6447
6454
|
init_metadata();
|
|
6448
6455
|
init_error();
|
|
6449
|
-
CloudArtifact = class {
|
|
6456
|
+
CloudArtifact = class _CloudArtifact {
|
|
6450
6457
|
constructor(assembly, id, manifest) {
|
|
6451
6458
|
this.assembly = assembly;
|
|
6452
6459
|
this.id = id;
|
|
@@ -6457,6 +6464,31 @@ var init_cloud_artifact = __esm({
|
|
|
6457
6464
|
static {
|
|
6458
6465
|
__name(this, "CloudArtifact");
|
|
6459
6466
|
}
|
|
6467
|
+
/**
|
|
6468
|
+
* Read the metadata for the given artifact
|
|
6469
|
+
*
|
|
6470
|
+
* HISTORICAL OR PRIVATE USE ONLY
|
|
6471
|
+
*
|
|
6472
|
+
* This is publicly exposed as a static function for downstream libraries that
|
|
6473
|
+
* don't use the `CloudAssembly`/`CloudArtifact` API, yet still need to read
|
|
6474
|
+
* an artifact's metadata.
|
|
6475
|
+
*
|
|
6476
|
+
* 99% of consumers should just access `artifact.metadata`.
|
|
6477
|
+
*/
|
|
6478
|
+
static readMetadata(assemblyDirectory, x4) {
|
|
6479
|
+
const ret = {};
|
|
6480
|
+
if (x4.additionalMetadataFile) {
|
|
6481
|
+
Object.assign(ret, JSON.parse(fs4.readFileSync(path3.join(assemblyDirectory, x4.additionalMetadataFile), "utf-8")));
|
|
6482
|
+
}
|
|
6483
|
+
for (const [p4, entries] of Object.entries(x4.metadata ?? {})) {
|
|
6484
|
+
if (ret[p4]) {
|
|
6485
|
+
ret[p4].push(...entries);
|
|
6486
|
+
} else {
|
|
6487
|
+
ret[p4] = entries;
|
|
6488
|
+
}
|
|
6489
|
+
}
|
|
6490
|
+
return ret;
|
|
6491
|
+
}
|
|
6460
6492
|
/**
|
|
6461
6493
|
* Returns a subclass of `CloudArtifact` based on the artifact type defined in the artifact manifest.
|
|
6462
6494
|
*
|
|
@@ -6469,6 +6501,12 @@ var init_cloud_artifact = __esm({
|
|
|
6469
6501
|
void assembly, void id, void artifact;
|
|
6470
6502
|
throw new CloudAssemblyError("Implementation not overridden yet");
|
|
6471
6503
|
}
|
|
6504
|
+
/**
|
|
6505
|
+
* Returns the metadata associated with this Cloud Artifact
|
|
6506
|
+
*/
|
|
6507
|
+
get metadata() {
|
|
6508
|
+
return _CloudArtifact.readMetadata(this.assembly.directory, this.manifest);
|
|
6509
|
+
}
|
|
6472
6510
|
/**
|
|
6473
6511
|
* Returns all the artifacts that this artifact depends on.
|
|
6474
6512
|
*/
|
|
@@ -6489,11 +6527,12 @@ var init_cloud_artifact = __esm({
|
|
|
6489
6527
|
* @returns all the metadata entries of a specific type in this artifact.
|
|
6490
6528
|
*/
|
|
6491
6529
|
findMetadataByType(type) {
|
|
6530
|
+
const metadata = this.metadata;
|
|
6492
6531
|
const result = new Array();
|
|
6493
|
-
for (const
|
|
6494
|
-
for (const entry of (
|
|
6532
|
+
for (const p4 of Object.keys(metadata || {})) {
|
|
6533
|
+
for (const entry of (metadata || {})[p4]) {
|
|
6495
6534
|
if (entry.type === type) {
|
|
6496
|
-
result.push({ path:
|
|
6535
|
+
result.push({ path: p4, ...entry });
|
|
6497
6536
|
}
|
|
6498
6537
|
}
|
|
6499
6538
|
}
|
|
@@ -6501,7 +6540,7 @@ var init_cloud_artifact = __esm({
|
|
|
6501
6540
|
}
|
|
6502
6541
|
renderMessages() {
|
|
6503
6542
|
const messages = new Array();
|
|
6504
|
-
for (const [id, metadata] of Object.entries(this.
|
|
6543
|
+
for (const [id, metadata] of Object.entries(this.metadata || {})) {
|
|
6505
6544
|
for (const entry of metadata) {
|
|
6506
6545
|
let level;
|
|
6507
6546
|
switch (entry.type) {
|
|
@@ -6539,12 +6578,12 @@ var asset_manifest_artifact_exports = {};
|
|
|
6539
6578
|
__export(asset_manifest_artifact_exports, {
|
|
6540
6579
|
AssetManifestArtifact: () => AssetManifestArtifact
|
|
6541
6580
|
});
|
|
6542
|
-
var
|
|
6581
|
+
var fs5, path4, ASSET_MANIFEST_ARTIFACT_SYM, AssetManifestArtifact;
|
|
6543
6582
|
var init_asset_manifest_artifact = __esm({
|
|
6544
6583
|
"../@aws-cdk/cloud-assembly-api/lib/artifacts/asset-manifest-artifact.ts"() {
|
|
6545
6584
|
"use strict";
|
|
6546
|
-
|
|
6547
|
-
|
|
6585
|
+
fs5 = __toESM(require("fs"));
|
|
6586
|
+
path4 = __toESM(require("path"));
|
|
6548
6587
|
init_cloud_artifact();
|
|
6549
6588
|
init_error();
|
|
6550
6589
|
ASSET_MANIFEST_ARTIFACT_SYM = /* @__PURE__ */ Symbol.for("@aws-cdk/cx-api.AssetManifestArtifact");
|
|
@@ -6578,7 +6617,7 @@ var init_asset_manifest_artifact = __esm({
|
|
|
6578
6617
|
if (!properties.file) {
|
|
6579
6618
|
throw new CloudAssemblyError('Invalid AssetManifestArtifact. Missing "file" property');
|
|
6580
6619
|
}
|
|
6581
|
-
this.file =
|
|
6620
|
+
this.file = path4.resolve(this.assembly.directory, properties.file);
|
|
6582
6621
|
this.requiresBootstrapStackVersion = properties.requiresBootstrapStackVersion;
|
|
6583
6622
|
this.bootstrapStackVersionSsmParameter = properties.bootstrapStackVersionSsmParameter;
|
|
6584
6623
|
}
|
|
@@ -6589,7 +6628,7 @@ var init_asset_manifest_artifact = __esm({
|
|
|
6589
6628
|
if (this._contents !== void 0) {
|
|
6590
6629
|
return this._contents;
|
|
6591
6630
|
}
|
|
6592
|
-
const contents = this._contents = JSON.parse(
|
|
6631
|
+
const contents = this._contents = JSON.parse(fs5.readFileSync(this.file, "utf-8"));
|
|
6593
6632
|
return contents;
|
|
6594
6633
|
}
|
|
6595
6634
|
};
|
|
@@ -6654,12 +6693,12 @@ var cloudformation_artifact_exports = {};
|
|
|
6654
6693
|
__export(cloudformation_artifact_exports, {
|
|
6655
6694
|
CloudFormationStackArtifact: () => CloudFormationStackArtifact
|
|
6656
6695
|
});
|
|
6657
|
-
var
|
|
6696
|
+
var fs6, path5, cxschema2, CLOUDFORMATION_STACK_ARTIFACT_SYM, CloudFormationStackArtifact;
|
|
6658
6697
|
var init_cloudformation_artifact = __esm({
|
|
6659
6698
|
"../@aws-cdk/cloud-assembly-api/lib/artifacts/cloudformation-artifact.ts"() {
|
|
6660
6699
|
"use strict";
|
|
6661
|
-
|
|
6662
|
-
|
|
6700
|
+
fs6 = __toESM(require("fs"));
|
|
6701
|
+
path5 = __toESM(require("path"));
|
|
6663
6702
|
cxschema2 = __toESM(require_lib2());
|
|
6664
6703
|
init_cloud_artifact();
|
|
6665
6704
|
init_environment();
|
|
@@ -6723,14 +6762,14 @@ var init_cloudformation_artifact = __esm({
|
|
|
6723
6762
|
* Full path to the template file
|
|
6724
6763
|
*/
|
|
6725
6764
|
get templateFullPath() {
|
|
6726
|
-
return
|
|
6765
|
+
return path5.join(this.assembly.directory, this.templateFile);
|
|
6727
6766
|
}
|
|
6728
6767
|
/**
|
|
6729
6768
|
* The CloudFormation template for this stack.
|
|
6730
6769
|
*/
|
|
6731
6770
|
get template() {
|
|
6732
6771
|
if (this._template === void 0) {
|
|
6733
|
-
this._template = JSON.parse(
|
|
6772
|
+
this._template = JSON.parse(fs6.readFileSync(this.templateFullPath, "utf-8"));
|
|
6734
6773
|
}
|
|
6735
6774
|
return this._template;
|
|
6736
6775
|
}
|
|
@@ -6748,11 +6787,11 @@ var nested_cloud_assembly_artifact_exports = {};
|
|
|
6748
6787
|
__export(nested_cloud_assembly_artifact_exports, {
|
|
6749
6788
|
NestedCloudAssemblyArtifact: () => NestedCloudAssemblyArtifact
|
|
6750
6789
|
});
|
|
6751
|
-
var
|
|
6790
|
+
var path6, NESTED_CLOUD_ASSEMBLY_SYM, NestedCloudAssemblyArtifact;
|
|
6752
6791
|
var init_nested_cloud_assembly_artifact = __esm({
|
|
6753
6792
|
"../@aws-cdk/cloud-assembly-api/lib/artifacts/nested-cloud-assembly-artifact.ts"() {
|
|
6754
6793
|
"use strict";
|
|
6755
|
-
|
|
6794
|
+
path6 = __toESM(require("path"));
|
|
6756
6795
|
init_cloud_artifact();
|
|
6757
6796
|
NESTED_CLOUD_ASSEMBLY_SYM = /* @__PURE__ */ Symbol.for("@aws-cdk/cx-api.NestedCloudAssemblyArtifact");
|
|
6758
6797
|
NestedCloudAssemblyArtifact = class extends CloudArtifact {
|
|
@@ -6789,7 +6828,7 @@ var init_nested_cloud_assembly_artifact = __esm({
|
|
|
6789
6828
|
* Full path to the nested assembly directory
|
|
6790
6829
|
*/
|
|
6791
6830
|
get fullPath() {
|
|
6792
|
-
return
|
|
6831
|
+
return path6.join(this.assembly.directory, this.directoryName);
|
|
6793
6832
|
}
|
|
6794
6833
|
};
|
|
6795
6834
|
Object.defineProperty(NestedCloudAssemblyArtifact.prototype, NESTED_CLOUD_ASSEMBLY_SYM, {
|
|
@@ -6940,26 +6979,26 @@ function determineOutputDirectory(outdir) {
|
|
|
6940
6979
|
if (outdir) {
|
|
6941
6980
|
return outdir;
|
|
6942
6981
|
}
|
|
6943
|
-
const tmpDir =
|
|
6982
|
+
const tmpDir = fs7.mkdtempSync(path7.join(fs7.realpathSync(os3.tmpdir()), "cdk.out"));
|
|
6944
6983
|
TEMPORARY_ASSEMBLY_DIRS.push(tmpDir);
|
|
6945
6984
|
return outdir ?? tmpDir;
|
|
6946
6985
|
}
|
|
6947
6986
|
function ensureDirSync(dir) {
|
|
6948
|
-
if (
|
|
6949
|
-
if (!
|
|
6987
|
+
if (fs7.existsSync(dir)) {
|
|
6988
|
+
if (!fs7.statSync(dir).isDirectory()) {
|
|
6950
6989
|
throw new CloudAssemblyError(`${dir} must be a directory`);
|
|
6951
6990
|
}
|
|
6952
6991
|
} else {
|
|
6953
|
-
|
|
6992
|
+
fs7.mkdirSync(dir, { recursive: true });
|
|
6954
6993
|
}
|
|
6955
6994
|
}
|
|
6956
|
-
var
|
|
6995
|
+
var fs7, os3, path7, cxschema4, CLOUD_ASSEMBLY_SYMBOL, MANIFEST_FILE, CloudAssembly, CloudAssemblyBuilder, TEMPORARY_ASSEMBLY_DIRS;
|
|
6957
6996
|
var init_cloud_assembly2 = __esm({
|
|
6958
6997
|
"../@aws-cdk/cloud-assembly-api/lib/cloud-assembly.ts"() {
|
|
6959
6998
|
"use strict";
|
|
6960
|
-
|
|
6999
|
+
fs7 = __toESM(require("fs"));
|
|
6961
7000
|
os3 = __toESM(require("os"));
|
|
6962
|
-
|
|
7001
|
+
path7 = __toESM(require("path"));
|
|
6963
7002
|
cxschema4 = __toESM(require_lib2());
|
|
6964
7003
|
init_cloudformation_artifact();
|
|
6965
7004
|
init_nested_cloud_assembly_artifact();
|
|
@@ -7023,7 +7062,7 @@ var init_cloud_assembly2 = __esm({
|
|
|
7023
7062
|
*/
|
|
7024
7063
|
static cleanupTemporaryDirectories() {
|
|
7025
7064
|
for (const dir of TEMPORARY_ASSEMBLY_DIRS) {
|
|
7026
|
-
|
|
7065
|
+
fs7.rmSync(dir, { recursive: true, force: true });
|
|
7027
7066
|
}
|
|
7028
7067
|
TEMPORARY_ASSEMBLY_DIRS.splice(0, TEMPORARY_ASSEMBLY_DIRS.length);
|
|
7029
7068
|
}
|
|
@@ -7033,7 +7072,7 @@ var init_cloud_assembly2 = __esm({
|
|
|
7033
7072
|
*/
|
|
7034
7073
|
constructor(directory, loadOptions) {
|
|
7035
7074
|
this.directory = directory;
|
|
7036
|
-
this.manifest = cxschema4.Manifest.loadAssemblyManifest(
|
|
7075
|
+
this.manifest = cxschema4.Manifest.loadAssemblyManifest(path7.join(directory, MANIFEST_FILE), loadOptions);
|
|
7037
7076
|
this.version = this.manifest.version;
|
|
7038
7077
|
this.artifacts = this.renderArtifacts(loadOptions?.topoSort ?? true);
|
|
7039
7078
|
this.runtime = this.manifest.runtime || { libraries: {} };
|
|
@@ -7234,9 +7273,9 @@ var init_cloud_assembly2 = __esm({
|
|
|
7234
7273
|
missing: this.missing.length > 0 ? this.missing : void 0
|
|
7235
7274
|
};
|
|
7236
7275
|
manifest = filterUndefined(manifest);
|
|
7237
|
-
const manifestFilePath =
|
|
7276
|
+
const manifestFilePath = path7.join(this.outdir, MANIFEST_FILE);
|
|
7238
7277
|
cxschema4.Manifest.saveAssemblyManifest(manifest, manifestFilePath);
|
|
7239
|
-
|
|
7278
|
+
fs7.writeFileSync(path7.join(this.outdir, "cdk.out"), JSON.stringify({ version: manifest.version }));
|
|
7240
7279
|
return new CloudAssembly(this.outdir);
|
|
7241
7280
|
}
|
|
7242
7281
|
/**
|
|
@@ -7244,7 +7283,7 @@ var init_cloud_assembly2 = __esm({
|
|
|
7244
7283
|
*/
|
|
7245
7284
|
createNestedAssembly(artifactId, displayName) {
|
|
7246
7285
|
const directoryName = artifactId;
|
|
7247
|
-
const innerAsmDir =
|
|
7286
|
+
const innerAsmDir = path7.join(this.outdir, directoryName);
|
|
7248
7287
|
this.addArtifact(artifactId, {
|
|
7249
7288
|
type: cxschema4.ArtifactType.NESTED_CLOUD_ASSEMBLY,
|
|
7250
7289
|
properties: {
|
|
@@ -7262,7 +7301,7 @@ var init_cloud_assembly2 = __esm({
|
|
|
7262
7301
|
* Delete the cloud assembly directory
|
|
7263
7302
|
*/
|
|
7264
7303
|
delete() {
|
|
7265
|
-
|
|
7304
|
+
fs7.rmSync(this.outdir, { recursive: true, force: true });
|
|
7266
7305
|
}
|
|
7267
7306
|
};
|
|
7268
7307
|
__name(filterUndefined, "filterUndefined");
|
|
@@ -7550,11 +7589,11 @@ async function repositoryUri(ecr, repositoryName) {
|
|
|
7550
7589
|
return void 0;
|
|
7551
7590
|
}
|
|
7552
7591
|
}
|
|
7553
|
-
var
|
|
7592
|
+
var path8, ContainerImageAssetHandler, ContainerImageBuilder;
|
|
7554
7593
|
var init_container_images = __esm({
|
|
7555
7594
|
"../@aws-cdk/cdk-assets-lib/lib/private/handlers/container-images.ts"() {
|
|
7556
7595
|
"use strict";
|
|
7557
|
-
|
|
7596
|
+
path8 = __toESM(require("path"));
|
|
7558
7597
|
init_client_options();
|
|
7559
7598
|
init_progress();
|
|
7560
7599
|
init_placeholders2();
|
|
@@ -7725,7 +7764,7 @@ var init_container_images = __esm({
|
|
|
7725
7764
|
`'directory' is expected in the DockerImage asset source, got: ${JSON.stringify(source)}`
|
|
7726
7765
|
);
|
|
7727
7766
|
}
|
|
7728
|
-
const fullPath =
|
|
7767
|
+
const fullPath = path8.resolve(this.workDir, source.directory);
|
|
7729
7768
|
this.host.emitMessage("build" /* BUILD */, `Building Docker image at ${fullPath}`);
|
|
7730
7769
|
await this.docker.build({
|
|
7731
7770
|
directory: fullPath,
|
|
@@ -7795,11 +7834,11 @@ var require_Mime = __commonJS({
|
|
|
7795
7834
|
}
|
|
7796
7835
|
}
|
|
7797
7836
|
};
|
|
7798
|
-
Mime.prototype.getType = function(
|
|
7799
|
-
|
|
7800
|
-
let last =
|
|
7837
|
+
Mime.prototype.getType = function(path13) {
|
|
7838
|
+
path13 = String(path13);
|
|
7839
|
+
let last = path13.replace(/^.*[/\\]/, "").toLowerCase();
|
|
7801
7840
|
let ext2 = last.replace(/^.*\./, "").toLowerCase();
|
|
7802
|
-
let hasPath = last.length <
|
|
7841
|
+
let hasPath = last.length < path13.length;
|
|
7803
7842
|
let hasDot = ext2.length < last.length - 1;
|
|
7804
7843
|
return (hasDot || !hasPath) && this._types[ext2] || null;
|
|
7805
7844
|
};
|
|
@@ -8066,10 +8105,10 @@ var init_esm2 = __esm({
|
|
|
8066
8105
|
}
|
|
8067
8106
|
});
|
|
8068
8107
|
|
|
8069
|
-
// ../../node_modules/minimatch/dist/esm/assert-valid-pattern.js
|
|
8108
|
+
// ../../node_modules/glob/node_modules/minimatch/dist/esm/assert-valid-pattern.js
|
|
8070
8109
|
var MAX_PATTERN_LENGTH, assertValidPattern;
|
|
8071
8110
|
var init_assert_valid_pattern = __esm({
|
|
8072
|
-
"../../node_modules/minimatch/dist/esm/assert-valid-pattern.js"() {
|
|
8111
|
+
"../../node_modules/glob/node_modules/minimatch/dist/esm/assert-valid-pattern.js"() {
|
|
8073
8112
|
MAX_PATTERN_LENGTH = 1024 * 64;
|
|
8074
8113
|
assertValidPattern = /* @__PURE__ */ __name((pattern) => {
|
|
8075
8114
|
if (typeof pattern !== "string") {
|
|
@@ -8082,10 +8121,10 @@ var init_assert_valid_pattern = __esm({
|
|
|
8082
8121
|
}
|
|
8083
8122
|
});
|
|
8084
8123
|
|
|
8085
|
-
// ../../node_modules/minimatch/dist/esm/brace-expressions.js
|
|
8124
|
+
// ../../node_modules/glob/node_modules/minimatch/dist/esm/brace-expressions.js
|
|
8086
8125
|
var posixClasses, braceEscape, regexpEscape, rangesToString, parseClass;
|
|
8087
8126
|
var init_brace_expressions = __esm({
|
|
8088
|
-
"../../node_modules/minimatch/dist/esm/brace-expressions.js"() {
|
|
8127
|
+
"../../node_modules/glob/node_modules/minimatch/dist/esm/brace-expressions.js"() {
|
|
8089
8128
|
posixClasses = {
|
|
8090
8129
|
"[:alnum:]": ["\\p{L}\\p{Nl}\\p{Nd}", true],
|
|
8091
8130
|
"[:alpha:]": ["\\p{L}\\p{Nl}", true],
|
|
@@ -8196,10 +8235,10 @@ var init_brace_expressions = __esm({
|
|
|
8196
8235
|
}
|
|
8197
8236
|
});
|
|
8198
8237
|
|
|
8199
|
-
// ../../node_modules/minimatch/dist/esm/unescape.js
|
|
8238
|
+
// ../../node_modules/glob/node_modules/minimatch/dist/esm/unescape.js
|
|
8200
8239
|
var unescape;
|
|
8201
8240
|
var init_unescape = __esm({
|
|
8202
|
-
"../../node_modules/minimatch/dist/esm/unescape.js"() {
|
|
8241
|
+
"../../node_modules/glob/node_modules/minimatch/dist/esm/unescape.js"() {
|
|
8203
8242
|
unescape = /* @__PURE__ */ __name((s4, { windowsPathsNoEscape = false, magicalBraces = true } = {}) => {
|
|
8204
8243
|
if (magicalBraces) {
|
|
8205
8244
|
return windowsPathsNoEscape ? s4.replace(/\[([^\/\\])\]/g, "$1") : s4.replace(/((?!\\).|^)\[([^\/\\])\]/g, "$1$2").replace(/\\([^\/])/g, "$1");
|
|
@@ -8209,10 +8248,10 @@ var init_unescape = __esm({
|
|
|
8209
8248
|
}
|
|
8210
8249
|
});
|
|
8211
8250
|
|
|
8212
|
-
// ../../node_modules/minimatch/dist/esm/ast.js
|
|
8251
|
+
// ../../node_modules/glob/node_modules/minimatch/dist/esm/ast.js
|
|
8213
8252
|
var types, isExtglobType, startNoTraversal, startNoDot, addPatternStart, justDots, reSpecials, regExpEscape, qmark, star, starNoEmpty, AST;
|
|
8214
8253
|
var init_ast = __esm({
|
|
8215
|
-
"../../node_modules/minimatch/dist/esm/ast.js"() {
|
|
8254
|
+
"../../node_modules/glob/node_modules/minimatch/dist/esm/ast.js"() {
|
|
8216
8255
|
init_brace_expressions();
|
|
8217
8256
|
init_unescape();
|
|
8218
8257
|
types = /* @__PURE__ */ new Set(["!", "?", "+", "*", "@"]);
|
|
@@ -8695,10 +8734,10 @@ var init_ast = __esm({
|
|
|
8695
8734
|
}
|
|
8696
8735
|
});
|
|
8697
8736
|
|
|
8698
|
-
// ../../node_modules/minimatch/dist/esm/escape.js
|
|
8737
|
+
// ../../node_modules/glob/node_modules/minimatch/dist/esm/escape.js
|
|
8699
8738
|
var escape;
|
|
8700
8739
|
var init_escape = __esm({
|
|
8701
|
-
"../../node_modules/minimatch/dist/esm/escape.js"() {
|
|
8740
|
+
"../../node_modules/glob/node_modules/minimatch/dist/esm/escape.js"() {
|
|
8702
8741
|
escape = /* @__PURE__ */ __name((s4, { windowsPathsNoEscape = false, magicalBraces = false } = {}) => {
|
|
8703
8742
|
if (magicalBraces) {
|
|
8704
8743
|
return windowsPathsNoEscape ? s4.replace(/[?*()[\]{}]/g, "[$&]") : s4.replace(/[?*()[\]\\{}]/g, "\\$&");
|
|
@@ -8708,10 +8747,10 @@ var init_escape = __esm({
|
|
|
8708
8747
|
}
|
|
8709
8748
|
});
|
|
8710
8749
|
|
|
8711
|
-
// ../../node_modules/minimatch/dist/esm/index.js
|
|
8712
|
-
var minimatch, starDotExtRE, starDotExtTest, starDotExtTestDot, starDotExtTestNocase, starDotExtTestNocaseDot, starDotStarRE, starDotStarTest, starDotStarTestDot, dotStarRE, dotStarTest, starRE, starTest, starTestDot, qmarksRE, qmarksTestNocase, qmarksTestNocaseDot, qmarksTestDot, qmarksTest, qmarksTestNoExt, qmarksTestNoExtDot, defaultPlatform,
|
|
8750
|
+
// ../../node_modules/glob/node_modules/minimatch/dist/esm/index.js
|
|
8751
|
+
var minimatch, starDotExtRE, starDotExtTest, starDotExtTestDot, starDotExtTestNocase, starDotExtTestNocaseDot, starDotStarRE, starDotStarTest, starDotStarTestDot, dotStarRE, dotStarTest, starRE, starTest, starTestDot, qmarksRE, qmarksTestNocase, qmarksTestNocaseDot, qmarksTestDot, qmarksTest, qmarksTestNoExt, qmarksTestNoExtDot, defaultPlatform, path9, sep, GLOBSTAR, qmark2, star2, twoStarDot, twoStarNoDot, filter, ext, defaults, braceExpand, makeRe, match, globMagic, regExpEscape2, Minimatch;
|
|
8713
8752
|
var init_esm3 = __esm({
|
|
8714
|
-
"../../node_modules/minimatch/dist/esm/index.js"() {
|
|
8753
|
+
"../../node_modules/glob/node_modules/minimatch/dist/esm/index.js"() {
|
|
8715
8754
|
init_esm2();
|
|
8716
8755
|
init_assert_valid_pattern();
|
|
8717
8756
|
init_ast();
|
|
@@ -8778,11 +8817,11 @@ var init_esm3 = __esm({
|
|
|
8778
8817
|
return (f4) => f4.length === len && f4 !== "." && f4 !== "..";
|
|
8779
8818
|
}, "qmarksTestNoExtDot");
|
|
8780
8819
|
defaultPlatform = typeof process === "object" && process ? typeof process.env === "object" && process.env && process.env.__MINIMATCH_TESTING_PLATFORM__ || process.platform : "posix";
|
|
8781
|
-
|
|
8820
|
+
path9 = {
|
|
8782
8821
|
win32: { sep: "\\" },
|
|
8783
8822
|
posix: { sep: "/" }
|
|
8784
8823
|
};
|
|
8785
|
-
sep = defaultPlatform === "win32" ?
|
|
8824
|
+
sep = defaultPlatform === "win32" ? path9.win32.sep : path9.posix.sep;
|
|
8786
8825
|
minimatch.sep = sep;
|
|
8787
8826
|
GLOBSTAR = /* @__PURE__ */ Symbol("globstar **");
|
|
8788
8827
|
minimatch.GLOBSTAR = GLOBSTAR;
|
|
@@ -12079,12 +12118,12 @@ var init_esm6 = __esm({
|
|
|
12079
12118
|
/**
|
|
12080
12119
|
* Get the Path object referenced by the string path, resolved from this Path
|
|
12081
12120
|
*/
|
|
12082
|
-
resolve(
|
|
12083
|
-
if (!
|
|
12121
|
+
resolve(path13) {
|
|
12122
|
+
if (!path13) {
|
|
12084
12123
|
return this;
|
|
12085
12124
|
}
|
|
12086
|
-
const rootPath = this.getRootString(
|
|
12087
|
-
const dir =
|
|
12125
|
+
const rootPath = this.getRootString(path13);
|
|
12126
|
+
const dir = path13.substring(rootPath.length);
|
|
12088
12127
|
const dirParts = dir.split(this.splitSep);
|
|
12089
12128
|
const result = rootPath ? this.getRoot(rootPath).#resolveParts(dirParts) : this.#resolveParts(dirParts);
|
|
12090
12129
|
return result;
|
|
@@ -12839,8 +12878,8 @@ var init_esm6 = __esm({
|
|
|
12839
12878
|
/**
|
|
12840
12879
|
* @internal
|
|
12841
12880
|
*/
|
|
12842
|
-
getRootString(
|
|
12843
|
-
return import_node_path.win32.parse(
|
|
12881
|
+
getRootString(path13) {
|
|
12882
|
+
return import_node_path.win32.parse(path13).root;
|
|
12844
12883
|
}
|
|
12845
12884
|
/**
|
|
12846
12885
|
* @internal
|
|
@@ -12889,8 +12928,8 @@ var init_esm6 = __esm({
|
|
|
12889
12928
|
/**
|
|
12890
12929
|
* @internal
|
|
12891
12930
|
*/
|
|
12892
|
-
getRootString(
|
|
12893
|
-
return
|
|
12931
|
+
getRootString(path13) {
|
|
12932
|
+
return path13.startsWith("/") ? "/" : "";
|
|
12894
12933
|
}
|
|
12895
12934
|
/**
|
|
12896
12935
|
* @internal
|
|
@@ -12942,8 +12981,8 @@ var init_esm6 = __esm({
|
|
|
12942
12981
|
*
|
|
12943
12982
|
* @internal
|
|
12944
12983
|
*/
|
|
12945
|
-
constructor(cwd = process.cwd(), pathImpl, sep2, { nocase, childrenCacheSize = 16 * 1024, fs:
|
|
12946
|
-
this.#fs = fsFromOption(
|
|
12984
|
+
constructor(cwd = process.cwd(), pathImpl, sep2, { nocase, childrenCacheSize = 16 * 1024, fs: fs13 = defaultFS } = {}) {
|
|
12985
|
+
this.#fs = fsFromOption(fs13);
|
|
12947
12986
|
if (cwd instanceof URL || cwd.startsWith("file://")) {
|
|
12948
12987
|
cwd = (0, import_node_url.fileURLToPath)(cwd);
|
|
12949
12988
|
}
|
|
@@ -12982,11 +13021,11 @@ var init_esm6 = __esm({
|
|
|
12982
13021
|
/**
|
|
12983
13022
|
* Get the depth of a provided path, string, or the cwd
|
|
12984
13023
|
*/
|
|
12985
|
-
depth(
|
|
12986
|
-
if (typeof
|
|
12987
|
-
|
|
13024
|
+
depth(path13 = this.cwd) {
|
|
13025
|
+
if (typeof path13 === "string") {
|
|
13026
|
+
path13 = this.cwd.resolve(path13);
|
|
12988
13027
|
}
|
|
12989
|
-
return
|
|
13028
|
+
return path13.depth();
|
|
12990
13029
|
}
|
|
12991
13030
|
/**
|
|
12992
13031
|
* Return the cache of child entries. Exposed so subclasses can create
|
|
@@ -13473,9 +13512,9 @@ var init_esm6 = __esm({
|
|
|
13473
13512
|
process2();
|
|
13474
13513
|
return results;
|
|
13475
13514
|
}
|
|
13476
|
-
chdir(
|
|
13515
|
+
chdir(path13 = this.cwd) {
|
|
13477
13516
|
const oldCwd = this.cwd;
|
|
13478
|
-
this.cwd = typeof
|
|
13517
|
+
this.cwd = typeof path13 === "string" ? this.cwd.resolve(path13) : path13;
|
|
13479
13518
|
this.cwd[setAsCwd](oldCwd);
|
|
13480
13519
|
}
|
|
13481
13520
|
};
|
|
@@ -13504,8 +13543,8 @@ var init_esm6 = __esm({
|
|
|
13504
13543
|
/**
|
|
13505
13544
|
* @internal
|
|
13506
13545
|
*/
|
|
13507
|
-
newRoot(
|
|
13508
|
-
return new PathWin32(this.rootPath, IFDIR, void 0, this.roots, this.nocase, this.childrenCache(), { fs:
|
|
13546
|
+
newRoot(fs13) {
|
|
13547
|
+
return new PathWin32(this.rootPath, IFDIR, void 0, this.roots, this.nocase, this.childrenCache(), { fs: fs13 });
|
|
13509
13548
|
}
|
|
13510
13549
|
/**
|
|
13511
13550
|
* Return true if the provided path string is an absolute path
|
|
@@ -13536,8 +13575,8 @@ var init_esm6 = __esm({
|
|
|
13536
13575
|
/**
|
|
13537
13576
|
* @internal
|
|
13538
13577
|
*/
|
|
13539
|
-
newRoot(
|
|
13540
|
-
return new PathPosix(this.rootPath, IFDIR, void 0, this.roots, this.nocase, this.childrenCache(), { fs:
|
|
13578
|
+
newRoot(fs13) {
|
|
13579
|
+
return new PathPosix(this.rootPath, IFDIR, void 0, this.roots, this.nocase, this.childrenCache(), { fs: fs13 });
|
|
13541
13580
|
}
|
|
13542
13581
|
/**
|
|
13543
13582
|
* Return true if the provided path string is an absolute path
|
|
@@ -13871,8 +13910,8 @@ var init_processor = __esm({
|
|
|
13871
13910
|
}
|
|
13872
13911
|
// match, absolute, ifdir
|
|
13873
13912
|
entries() {
|
|
13874
|
-
return [...this.store.entries()].map(([
|
|
13875
|
-
|
|
13913
|
+
return [...this.store.entries()].map(([path13, n4]) => [
|
|
13914
|
+
path13,
|
|
13876
13915
|
!!(n4 & 2),
|
|
13877
13916
|
!!(n4 & 1)
|
|
13878
13917
|
]);
|
|
@@ -14094,9 +14133,9 @@ var init_walker = __esm({
|
|
|
14094
14133
|
signal;
|
|
14095
14134
|
maxDepth;
|
|
14096
14135
|
includeChildMatches;
|
|
14097
|
-
constructor(patterns,
|
|
14136
|
+
constructor(patterns, path13, opts) {
|
|
14098
14137
|
this.patterns = patterns;
|
|
14099
|
-
this.path =
|
|
14138
|
+
this.path = path13;
|
|
14100
14139
|
this.opts = opts;
|
|
14101
14140
|
this.#sep = !opts.posix && opts.platform === "win32" ? "\\" : "/";
|
|
14102
14141
|
this.includeChildMatches = opts.includeChildMatches !== false;
|
|
@@ -14115,11 +14154,11 @@ var init_walker = __esm({
|
|
|
14115
14154
|
});
|
|
14116
14155
|
}
|
|
14117
14156
|
}
|
|
14118
|
-
#ignored(
|
|
14119
|
-
return this.seen.has(
|
|
14157
|
+
#ignored(path13) {
|
|
14158
|
+
return this.seen.has(path13) || !!this.#ignore?.ignored?.(path13);
|
|
14120
14159
|
}
|
|
14121
|
-
#childrenIgnored(
|
|
14122
|
-
return !!this.#ignore?.childrenIgnored?.(
|
|
14160
|
+
#childrenIgnored(path13) {
|
|
14161
|
+
return !!this.#ignore?.childrenIgnored?.(path13);
|
|
14123
14162
|
}
|
|
14124
14163
|
// backpressure mechanism
|
|
14125
14164
|
pause() {
|
|
@@ -14337,8 +14376,8 @@ var init_walker = __esm({
|
|
|
14337
14376
|
__name(this, "GlobWalker");
|
|
14338
14377
|
}
|
|
14339
14378
|
matches = /* @__PURE__ */ new Set();
|
|
14340
|
-
constructor(patterns,
|
|
14341
|
-
super(patterns,
|
|
14379
|
+
constructor(patterns, path13, opts) {
|
|
14380
|
+
super(patterns, path13, opts);
|
|
14342
14381
|
}
|
|
14343
14382
|
matchEmit(e4) {
|
|
14344
14383
|
this.matches.add(e4);
|
|
@@ -14378,8 +14417,8 @@ var init_walker = __esm({
|
|
|
14378
14417
|
__name(this, "GlobStream");
|
|
14379
14418
|
}
|
|
14380
14419
|
results;
|
|
14381
|
-
constructor(patterns,
|
|
14382
|
-
super(patterns,
|
|
14420
|
+
constructor(patterns, path13, opts) {
|
|
14421
|
+
super(patterns, path13, opts);
|
|
14383
14422
|
this.results = new Minipass({
|
|
14384
14423
|
signal: this.signal,
|
|
14385
14424
|
objectMode: true
|
|
@@ -14951,8 +14990,8 @@ var require_minimatch = __commonJS({
|
|
|
14951
14990
|
return new Minimatch2(pattern, options).match(p4);
|
|
14952
14991
|
};
|
|
14953
14992
|
module2.exports = minimatch2;
|
|
14954
|
-
var
|
|
14955
|
-
minimatch2.sep =
|
|
14993
|
+
var path13 = require_path();
|
|
14994
|
+
minimatch2.sep = path13.sep;
|
|
14956
14995
|
var GLOBSTAR2 = /* @__PURE__ */ Symbol("globstar **");
|
|
14957
14996
|
minimatch2.GLOBSTAR = GLOBSTAR2;
|
|
14958
14997
|
var expand2 = require_brace_expansion();
|
|
@@ -15467,8 +15506,8 @@ var require_minimatch = __commonJS({
|
|
|
15467
15506
|
if (this.empty) return f4 === "";
|
|
15468
15507
|
if (f4 === "/" && partial) return true;
|
|
15469
15508
|
const options = this.options;
|
|
15470
|
-
if (
|
|
15471
|
-
f4 = f4.split(
|
|
15509
|
+
if (path13.sep !== "/") {
|
|
15510
|
+
f4 = f4.split(path13.sep).join("/");
|
|
15472
15511
|
}
|
|
15473
15512
|
f4 = f4.split(slashSplit);
|
|
15474
15513
|
this.debug(this.pattern, "split", f4);
|
|
@@ -15506,13 +15545,13 @@ var require_minimatch = __commonJS({
|
|
|
15506
15545
|
var require_readdir_glob = __commonJS({
|
|
15507
15546
|
"../../node_modules/readdir-glob/index.js"(exports2, module2) {
|
|
15508
15547
|
module2.exports = readdirGlob;
|
|
15509
|
-
var
|
|
15548
|
+
var fs13 = require("fs");
|
|
15510
15549
|
var { EventEmitter: EventEmitter2 } = require("events");
|
|
15511
15550
|
var { Minimatch: Minimatch2 } = require_minimatch();
|
|
15512
15551
|
var { resolve: resolve6 } = require("path");
|
|
15513
15552
|
function readdir2(dir, strict) {
|
|
15514
15553
|
return new Promise((resolve7, reject) => {
|
|
15515
|
-
|
|
15554
|
+
fs13.readdir(dir, { withFileTypes: true }, (err, files) => {
|
|
15516
15555
|
if (err) {
|
|
15517
15556
|
switch (err.code) {
|
|
15518
15557
|
case "ENOTDIR":
|
|
@@ -15546,7 +15585,7 @@ var require_readdir_glob = __commonJS({
|
|
|
15546
15585
|
__name(readdir2, "readdir");
|
|
15547
15586
|
function stat(file, followSymlinks) {
|
|
15548
15587
|
return new Promise((resolve7, reject) => {
|
|
15549
|
-
const statFunc = followSymlinks ?
|
|
15588
|
+
const statFunc = followSymlinks ? fs13.stat : fs13.lstat;
|
|
15550
15589
|
statFunc(file, (err, stats) => {
|
|
15551
15590
|
if (err) {
|
|
15552
15591
|
switch (err.code) {
|
|
@@ -15568,8 +15607,8 @@ var require_readdir_glob = __commonJS({
|
|
|
15568
15607
|
});
|
|
15569
15608
|
}
|
|
15570
15609
|
__name(stat, "stat");
|
|
15571
|
-
async function* exploreWalkAsync(dir,
|
|
15572
|
-
let files = await readdir2(
|
|
15610
|
+
async function* exploreWalkAsync(dir, path13, followSymlinks, useStat, shouldSkip, strict) {
|
|
15611
|
+
let files = await readdir2(path13 + dir, strict);
|
|
15573
15612
|
for (const file of files) {
|
|
15574
15613
|
let name = file.name;
|
|
15575
15614
|
if (name === void 0) {
|
|
@@ -15578,7 +15617,7 @@ var require_readdir_glob = __commonJS({
|
|
|
15578
15617
|
}
|
|
15579
15618
|
const filename = dir + "/" + name;
|
|
15580
15619
|
const relative = filename.slice(1);
|
|
15581
|
-
const absolute =
|
|
15620
|
+
const absolute = path13 + "/" + relative;
|
|
15582
15621
|
let stats = null;
|
|
15583
15622
|
if (useStat || followSymlinks) {
|
|
15584
15623
|
stats = await stat(absolute, followSymlinks);
|
|
@@ -15592,7 +15631,7 @@ var require_readdir_glob = __commonJS({
|
|
|
15592
15631
|
if (stats.isDirectory()) {
|
|
15593
15632
|
if (!shouldSkip(relative)) {
|
|
15594
15633
|
yield { relative, absolute, stats };
|
|
15595
|
-
yield* exploreWalkAsync(filename,
|
|
15634
|
+
yield* exploreWalkAsync(filename, path13, followSymlinks, useStat, shouldSkip, false);
|
|
15596
15635
|
}
|
|
15597
15636
|
} else {
|
|
15598
15637
|
yield { relative, absolute, stats };
|
|
@@ -15600,8 +15639,8 @@ var require_readdir_glob = __commonJS({
|
|
|
15600
15639
|
}
|
|
15601
15640
|
}
|
|
15602
15641
|
__name(exploreWalkAsync, "exploreWalkAsync");
|
|
15603
|
-
async function* explore(
|
|
15604
|
-
yield* exploreWalkAsync("",
|
|
15642
|
+
async function* explore(path13, followSymlinks, useStat, shouldSkip) {
|
|
15643
|
+
yield* exploreWalkAsync("", path13, followSymlinks, useStat, shouldSkip, true);
|
|
15605
15644
|
}
|
|
15606
15645
|
__name(explore, "explore");
|
|
15607
15646
|
function readOptions(options) {
|
|
@@ -17773,54 +17812,54 @@ var require_polyfills = __commonJS({
|
|
|
17773
17812
|
}
|
|
17774
17813
|
var chdir;
|
|
17775
17814
|
module2.exports = patch;
|
|
17776
|
-
function patch(
|
|
17815
|
+
function patch(fs13) {
|
|
17777
17816
|
if (constants.hasOwnProperty("O_SYMLINK") && process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)) {
|
|
17778
|
-
patchLchmod(
|
|
17779
|
-
}
|
|
17780
|
-
if (!
|
|
17781
|
-
patchLutimes(
|
|
17782
|
-
}
|
|
17783
|
-
|
|
17784
|
-
|
|
17785
|
-
|
|
17786
|
-
|
|
17787
|
-
|
|
17788
|
-
|
|
17789
|
-
|
|
17790
|
-
|
|
17791
|
-
|
|
17792
|
-
|
|
17793
|
-
|
|
17794
|
-
|
|
17795
|
-
|
|
17796
|
-
|
|
17797
|
-
|
|
17798
|
-
|
|
17799
|
-
|
|
17800
|
-
|
|
17801
|
-
if (
|
|
17802
|
-
|
|
17817
|
+
patchLchmod(fs13);
|
|
17818
|
+
}
|
|
17819
|
+
if (!fs13.lutimes) {
|
|
17820
|
+
patchLutimes(fs13);
|
|
17821
|
+
}
|
|
17822
|
+
fs13.chown = chownFix(fs13.chown);
|
|
17823
|
+
fs13.fchown = chownFix(fs13.fchown);
|
|
17824
|
+
fs13.lchown = chownFix(fs13.lchown);
|
|
17825
|
+
fs13.chmod = chmodFix(fs13.chmod);
|
|
17826
|
+
fs13.fchmod = chmodFix(fs13.fchmod);
|
|
17827
|
+
fs13.lchmod = chmodFix(fs13.lchmod);
|
|
17828
|
+
fs13.chownSync = chownFixSync(fs13.chownSync);
|
|
17829
|
+
fs13.fchownSync = chownFixSync(fs13.fchownSync);
|
|
17830
|
+
fs13.lchownSync = chownFixSync(fs13.lchownSync);
|
|
17831
|
+
fs13.chmodSync = chmodFixSync(fs13.chmodSync);
|
|
17832
|
+
fs13.fchmodSync = chmodFixSync(fs13.fchmodSync);
|
|
17833
|
+
fs13.lchmodSync = chmodFixSync(fs13.lchmodSync);
|
|
17834
|
+
fs13.stat = statFix(fs13.stat);
|
|
17835
|
+
fs13.fstat = statFix(fs13.fstat);
|
|
17836
|
+
fs13.lstat = statFix(fs13.lstat);
|
|
17837
|
+
fs13.statSync = statFixSync(fs13.statSync);
|
|
17838
|
+
fs13.fstatSync = statFixSync(fs13.fstatSync);
|
|
17839
|
+
fs13.lstatSync = statFixSync(fs13.lstatSync);
|
|
17840
|
+
if (fs13.chmod && !fs13.lchmod) {
|
|
17841
|
+
fs13.lchmod = function(path13, mode, cb) {
|
|
17803
17842
|
if (cb) process.nextTick(cb);
|
|
17804
17843
|
};
|
|
17805
|
-
|
|
17844
|
+
fs13.lchmodSync = function() {
|
|
17806
17845
|
};
|
|
17807
17846
|
}
|
|
17808
|
-
if (
|
|
17809
|
-
|
|
17847
|
+
if (fs13.chown && !fs13.lchown) {
|
|
17848
|
+
fs13.lchown = function(path13, uid, gid, cb) {
|
|
17810
17849
|
if (cb) process.nextTick(cb);
|
|
17811
17850
|
};
|
|
17812
|
-
|
|
17851
|
+
fs13.lchownSync = function() {
|
|
17813
17852
|
};
|
|
17814
17853
|
}
|
|
17815
17854
|
if (platform === "win32") {
|
|
17816
|
-
|
|
17855
|
+
fs13.rename = typeof fs13.rename !== "function" ? fs13.rename : (function(fs$rename) {
|
|
17817
17856
|
function rename(from, to, cb) {
|
|
17818
17857
|
var start = Date.now();
|
|
17819
17858
|
var backoff = 0;
|
|
17820
17859
|
fs$rename(from, to, /* @__PURE__ */ __name(function CB(er) {
|
|
17821
17860
|
if (er && (er.code === "EACCES" || er.code === "EPERM" || er.code === "EBUSY") && Date.now() - start < 6e4) {
|
|
17822
17861
|
setTimeout(function() {
|
|
17823
|
-
|
|
17862
|
+
fs13.stat(to, function(stater, st) {
|
|
17824
17863
|
if (stater && stater.code === "ENOENT")
|
|
17825
17864
|
fs$rename(from, to, CB);
|
|
17826
17865
|
else
|
|
@@ -17837,9 +17876,9 @@ var require_polyfills = __commonJS({
|
|
|
17837
17876
|
__name(rename, "rename");
|
|
17838
17877
|
if (Object.setPrototypeOf) Object.setPrototypeOf(rename, fs$rename);
|
|
17839
17878
|
return rename;
|
|
17840
|
-
})(
|
|
17879
|
+
})(fs13.rename);
|
|
17841
17880
|
}
|
|
17842
|
-
|
|
17881
|
+
fs13.read = typeof fs13.read !== "function" ? fs13.read : (function(fs$read) {
|
|
17843
17882
|
function read(fd, buffer, offset, length, position, callback_) {
|
|
17844
17883
|
var callback;
|
|
17845
17884
|
if (callback_ && typeof callback_ === "function") {
|
|
@@ -17847,23 +17886,23 @@ var require_polyfills = __commonJS({
|
|
|
17847
17886
|
callback = /* @__PURE__ */ __name(function(er, _2, __) {
|
|
17848
17887
|
if (er && er.code === "EAGAIN" && eagCounter < 10) {
|
|
17849
17888
|
eagCounter++;
|
|
17850
|
-
return fs$read.call(
|
|
17889
|
+
return fs$read.call(fs13, fd, buffer, offset, length, position, callback);
|
|
17851
17890
|
}
|
|
17852
17891
|
callback_.apply(this, arguments);
|
|
17853
17892
|
}, "callback");
|
|
17854
17893
|
}
|
|
17855
|
-
return fs$read.call(
|
|
17894
|
+
return fs$read.call(fs13, fd, buffer, offset, length, position, callback);
|
|
17856
17895
|
}
|
|
17857
17896
|
__name(read, "read");
|
|
17858
17897
|
if (Object.setPrototypeOf) Object.setPrototypeOf(read, fs$read);
|
|
17859
17898
|
return read;
|
|
17860
|
-
})(
|
|
17861
|
-
|
|
17899
|
+
})(fs13.read);
|
|
17900
|
+
fs13.readSync = typeof fs13.readSync !== "function" ? fs13.readSync : /* @__PURE__ */ (function(fs$readSync) {
|
|
17862
17901
|
return function(fd, buffer, offset, length, position) {
|
|
17863
17902
|
var eagCounter = 0;
|
|
17864
17903
|
while (true) {
|
|
17865
17904
|
try {
|
|
17866
|
-
return fs$readSync.call(
|
|
17905
|
+
return fs$readSync.call(fs13, fd, buffer, offset, length, position);
|
|
17867
17906
|
} catch (er) {
|
|
17868
17907
|
if (er.code === "EAGAIN" && eagCounter < 10) {
|
|
17869
17908
|
eagCounter++;
|
|
@@ -17873,11 +17912,11 @@ var require_polyfills = __commonJS({
|
|
|
17873
17912
|
}
|
|
17874
17913
|
}
|
|
17875
17914
|
};
|
|
17876
|
-
})(
|
|
17877
|
-
function patchLchmod(
|
|
17878
|
-
|
|
17879
|
-
|
|
17880
|
-
|
|
17915
|
+
})(fs13.readSync);
|
|
17916
|
+
function patchLchmod(fs14) {
|
|
17917
|
+
fs14.lchmod = function(path13, mode, callback) {
|
|
17918
|
+
fs14.open(
|
|
17919
|
+
path13,
|
|
17881
17920
|
constants.O_WRONLY | constants.O_SYMLINK,
|
|
17882
17921
|
mode,
|
|
17883
17922
|
function(err, fd) {
|
|
@@ -17885,74 +17924,74 @@ var require_polyfills = __commonJS({
|
|
|
17885
17924
|
if (callback) callback(err);
|
|
17886
17925
|
return;
|
|
17887
17926
|
}
|
|
17888
|
-
|
|
17889
|
-
|
|
17927
|
+
fs14.fchmod(fd, mode, function(err2) {
|
|
17928
|
+
fs14.close(fd, function(err22) {
|
|
17890
17929
|
if (callback) callback(err2 || err22);
|
|
17891
17930
|
});
|
|
17892
17931
|
});
|
|
17893
17932
|
}
|
|
17894
17933
|
);
|
|
17895
17934
|
};
|
|
17896
|
-
|
|
17897
|
-
var fd =
|
|
17935
|
+
fs14.lchmodSync = function(path13, mode) {
|
|
17936
|
+
var fd = fs14.openSync(path13, constants.O_WRONLY | constants.O_SYMLINK, mode);
|
|
17898
17937
|
var threw = true;
|
|
17899
17938
|
var ret;
|
|
17900
17939
|
try {
|
|
17901
|
-
ret =
|
|
17940
|
+
ret = fs14.fchmodSync(fd, mode);
|
|
17902
17941
|
threw = false;
|
|
17903
17942
|
} finally {
|
|
17904
17943
|
if (threw) {
|
|
17905
17944
|
try {
|
|
17906
|
-
|
|
17945
|
+
fs14.closeSync(fd);
|
|
17907
17946
|
} catch (er) {
|
|
17908
17947
|
}
|
|
17909
17948
|
} else {
|
|
17910
|
-
|
|
17949
|
+
fs14.closeSync(fd);
|
|
17911
17950
|
}
|
|
17912
17951
|
}
|
|
17913
17952
|
return ret;
|
|
17914
17953
|
};
|
|
17915
17954
|
}
|
|
17916
17955
|
__name(patchLchmod, "patchLchmod");
|
|
17917
|
-
function patchLutimes(
|
|
17918
|
-
if (constants.hasOwnProperty("O_SYMLINK") &&
|
|
17919
|
-
|
|
17920
|
-
|
|
17956
|
+
function patchLutimes(fs14) {
|
|
17957
|
+
if (constants.hasOwnProperty("O_SYMLINK") && fs14.futimes) {
|
|
17958
|
+
fs14.lutimes = function(path13, at, mt, cb) {
|
|
17959
|
+
fs14.open(path13, constants.O_SYMLINK, function(er, fd) {
|
|
17921
17960
|
if (er) {
|
|
17922
17961
|
if (cb) cb(er);
|
|
17923
17962
|
return;
|
|
17924
17963
|
}
|
|
17925
|
-
|
|
17926
|
-
|
|
17964
|
+
fs14.futimes(fd, at, mt, function(er2) {
|
|
17965
|
+
fs14.close(fd, function(er22) {
|
|
17927
17966
|
if (cb) cb(er2 || er22);
|
|
17928
17967
|
});
|
|
17929
17968
|
});
|
|
17930
17969
|
});
|
|
17931
17970
|
};
|
|
17932
|
-
|
|
17933
|
-
var fd =
|
|
17971
|
+
fs14.lutimesSync = function(path13, at, mt) {
|
|
17972
|
+
var fd = fs14.openSync(path13, constants.O_SYMLINK);
|
|
17934
17973
|
var ret;
|
|
17935
17974
|
var threw = true;
|
|
17936
17975
|
try {
|
|
17937
|
-
ret =
|
|
17976
|
+
ret = fs14.futimesSync(fd, at, mt);
|
|
17938
17977
|
threw = false;
|
|
17939
17978
|
} finally {
|
|
17940
17979
|
if (threw) {
|
|
17941
17980
|
try {
|
|
17942
|
-
|
|
17981
|
+
fs14.closeSync(fd);
|
|
17943
17982
|
} catch (er) {
|
|
17944
17983
|
}
|
|
17945
17984
|
} else {
|
|
17946
|
-
|
|
17985
|
+
fs14.closeSync(fd);
|
|
17947
17986
|
}
|
|
17948
17987
|
}
|
|
17949
17988
|
return ret;
|
|
17950
17989
|
};
|
|
17951
|
-
} else if (
|
|
17952
|
-
|
|
17990
|
+
} else if (fs14.futimes) {
|
|
17991
|
+
fs14.lutimes = function(_a2, _b, _c4, cb) {
|
|
17953
17992
|
if (cb) process.nextTick(cb);
|
|
17954
17993
|
};
|
|
17955
|
-
|
|
17994
|
+
fs14.lutimesSync = function() {
|
|
17956
17995
|
};
|
|
17957
17996
|
}
|
|
17958
17997
|
}
|
|
@@ -17960,7 +17999,7 @@ var require_polyfills = __commonJS({
|
|
|
17960
17999
|
function chmodFix(orig) {
|
|
17961
18000
|
if (!orig) return orig;
|
|
17962
18001
|
return function(target, mode, cb) {
|
|
17963
|
-
return orig.call(
|
|
18002
|
+
return orig.call(fs13, target, mode, function(er) {
|
|
17964
18003
|
if (chownErOk(er)) er = null;
|
|
17965
18004
|
if (cb) cb.apply(this, arguments);
|
|
17966
18005
|
});
|
|
@@ -17971,7 +18010,7 @@ var require_polyfills = __commonJS({
|
|
|
17971
18010
|
if (!orig) return orig;
|
|
17972
18011
|
return function(target, mode) {
|
|
17973
18012
|
try {
|
|
17974
|
-
return orig.call(
|
|
18013
|
+
return orig.call(fs13, target, mode);
|
|
17975
18014
|
} catch (er) {
|
|
17976
18015
|
if (!chownErOk(er)) throw er;
|
|
17977
18016
|
}
|
|
@@ -17981,7 +18020,7 @@ var require_polyfills = __commonJS({
|
|
|
17981
18020
|
function chownFix(orig) {
|
|
17982
18021
|
if (!orig) return orig;
|
|
17983
18022
|
return function(target, uid, gid, cb) {
|
|
17984
|
-
return orig.call(
|
|
18023
|
+
return orig.call(fs13, target, uid, gid, function(er) {
|
|
17985
18024
|
if (chownErOk(er)) er = null;
|
|
17986
18025
|
if (cb) cb.apply(this, arguments);
|
|
17987
18026
|
});
|
|
@@ -17992,7 +18031,7 @@ var require_polyfills = __commonJS({
|
|
|
17992
18031
|
if (!orig) return orig;
|
|
17993
18032
|
return function(target, uid, gid) {
|
|
17994
18033
|
try {
|
|
17995
|
-
return orig.call(
|
|
18034
|
+
return orig.call(fs13, target, uid, gid);
|
|
17996
18035
|
} catch (er) {
|
|
17997
18036
|
if (!chownErOk(er)) throw er;
|
|
17998
18037
|
}
|
|
@@ -18014,14 +18053,14 @@ var require_polyfills = __commonJS({
|
|
|
18014
18053
|
if (cb) cb.apply(this, arguments);
|
|
18015
18054
|
}
|
|
18016
18055
|
__name(callback, "callback");
|
|
18017
|
-
return options ? orig.call(
|
|
18056
|
+
return options ? orig.call(fs13, target, options, callback) : orig.call(fs13, target, callback);
|
|
18018
18057
|
};
|
|
18019
18058
|
}
|
|
18020
18059
|
__name(statFix, "statFix");
|
|
18021
18060
|
function statFixSync(orig) {
|
|
18022
18061
|
if (!orig) return orig;
|
|
18023
18062
|
return function(target, options) {
|
|
18024
|
-
var stats = options ? orig.call(
|
|
18063
|
+
var stats = options ? orig.call(fs13, target, options) : orig.call(fs13, target);
|
|
18025
18064
|
if (stats) {
|
|
18026
18065
|
if (stats.uid < 0) stats.uid += 4294967296;
|
|
18027
18066
|
if (stats.gid < 0) stats.gid += 4294967296;
|
|
@@ -18053,16 +18092,16 @@ var require_legacy_streams = __commonJS({
|
|
|
18053
18092
|
"../../node_modules/graceful-fs/legacy-streams.js"(exports2, module2) {
|
|
18054
18093
|
var Stream2 = require("stream").Stream;
|
|
18055
18094
|
module2.exports = legacy;
|
|
18056
|
-
function legacy(
|
|
18095
|
+
function legacy(fs13) {
|
|
18057
18096
|
return {
|
|
18058
18097
|
ReadStream,
|
|
18059
18098
|
WriteStream
|
|
18060
18099
|
};
|
|
18061
|
-
function ReadStream(
|
|
18062
|
-
if (!(this instanceof ReadStream)) return new ReadStream(
|
|
18100
|
+
function ReadStream(path13, options) {
|
|
18101
|
+
if (!(this instanceof ReadStream)) return new ReadStream(path13, options);
|
|
18063
18102
|
Stream2.call(this);
|
|
18064
18103
|
var self2 = this;
|
|
18065
|
-
this.path =
|
|
18104
|
+
this.path = path13;
|
|
18066
18105
|
this.fd = null;
|
|
18067
18106
|
this.readable = true;
|
|
18068
18107
|
this.paused = false;
|
|
@@ -18096,7 +18135,7 @@ var require_legacy_streams = __commonJS({
|
|
|
18096
18135
|
});
|
|
18097
18136
|
return;
|
|
18098
18137
|
}
|
|
18099
|
-
|
|
18138
|
+
fs13.open(this.path, this.flags, this.mode, function(err, fd) {
|
|
18100
18139
|
if (err) {
|
|
18101
18140
|
self2.emit("error", err);
|
|
18102
18141
|
self2.readable = false;
|
|
@@ -18108,10 +18147,10 @@ var require_legacy_streams = __commonJS({
|
|
|
18108
18147
|
});
|
|
18109
18148
|
}
|
|
18110
18149
|
__name(ReadStream, "ReadStream");
|
|
18111
|
-
function WriteStream(
|
|
18112
|
-
if (!(this instanceof WriteStream)) return new WriteStream(
|
|
18150
|
+
function WriteStream(path13, options) {
|
|
18151
|
+
if (!(this instanceof WriteStream)) return new WriteStream(path13, options);
|
|
18113
18152
|
Stream2.call(this);
|
|
18114
|
-
this.path =
|
|
18153
|
+
this.path = path13;
|
|
18115
18154
|
this.fd = null;
|
|
18116
18155
|
this.writable = true;
|
|
18117
18156
|
this.flags = "w";
|
|
@@ -18136,7 +18175,7 @@ var require_legacy_streams = __commonJS({
|
|
|
18136
18175
|
this.busy = false;
|
|
18137
18176
|
this._queue = [];
|
|
18138
18177
|
if (this.fd === null) {
|
|
18139
|
-
this._open =
|
|
18178
|
+
this._open = fs13.open;
|
|
18140
18179
|
this._queue.push([this._open, this.path, this.flags, this.mode, void 0]);
|
|
18141
18180
|
this.flush();
|
|
18142
18181
|
}
|
|
@@ -18174,7 +18213,7 @@ var require_clone = __commonJS({
|
|
|
18174
18213
|
// ../../node_modules/graceful-fs/graceful-fs.js
|
|
18175
18214
|
var require_graceful_fs = __commonJS({
|
|
18176
18215
|
"../../node_modules/graceful-fs/graceful-fs.js"(exports2, module2) {
|
|
18177
|
-
var
|
|
18216
|
+
var fs13 = require("fs");
|
|
18178
18217
|
var polyfills = require_polyfills();
|
|
18179
18218
|
var legacy = require_legacy_streams();
|
|
18180
18219
|
var clone = require_clone();
|
|
@@ -18208,12 +18247,12 @@ var require_graceful_fs = __commonJS({
|
|
|
18208
18247
|
m4 = "GFS4: " + m4.split(/\n/).join("\nGFS4: ");
|
|
18209
18248
|
console.error(m4);
|
|
18210
18249
|
}, "debug");
|
|
18211
|
-
if (!
|
|
18250
|
+
if (!fs13[gracefulQueue]) {
|
|
18212
18251
|
queue = global[gracefulQueue] || [];
|
|
18213
|
-
publishQueue(
|
|
18214
|
-
|
|
18252
|
+
publishQueue(fs13, queue);
|
|
18253
|
+
fs13.close = (function(fs$close) {
|
|
18215
18254
|
function close(fd, cb) {
|
|
18216
|
-
return fs$close.call(
|
|
18255
|
+
return fs$close.call(fs13, fd, function(err) {
|
|
18217
18256
|
if (!err) {
|
|
18218
18257
|
resetQueue();
|
|
18219
18258
|
}
|
|
@@ -18226,10 +18265,10 @@ var require_graceful_fs = __commonJS({
|
|
|
18226
18265
|
value: fs$close
|
|
18227
18266
|
});
|
|
18228
18267
|
return close;
|
|
18229
|
-
})(
|
|
18230
|
-
|
|
18268
|
+
})(fs13.close);
|
|
18269
|
+
fs13.closeSync = (function(fs$closeSync) {
|
|
18231
18270
|
function closeSync(fd) {
|
|
18232
|
-
fs$closeSync.apply(
|
|
18271
|
+
fs$closeSync.apply(fs13, arguments);
|
|
18233
18272
|
resetQueue();
|
|
18234
18273
|
}
|
|
18235
18274
|
__name(closeSync, "closeSync");
|
|
@@ -18237,38 +18276,38 @@ var require_graceful_fs = __commonJS({
|
|
|
18237
18276
|
value: fs$closeSync
|
|
18238
18277
|
});
|
|
18239
18278
|
return closeSync;
|
|
18240
|
-
})(
|
|
18279
|
+
})(fs13.closeSync);
|
|
18241
18280
|
if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || "")) {
|
|
18242
18281
|
process.on("exit", function() {
|
|
18243
|
-
debug(
|
|
18244
|
-
require("assert").equal(
|
|
18282
|
+
debug(fs13[gracefulQueue]);
|
|
18283
|
+
require("assert").equal(fs13[gracefulQueue].length, 0);
|
|
18245
18284
|
});
|
|
18246
18285
|
}
|
|
18247
18286
|
}
|
|
18248
18287
|
var queue;
|
|
18249
18288
|
if (!global[gracefulQueue]) {
|
|
18250
|
-
publishQueue(global,
|
|
18251
|
-
}
|
|
18252
|
-
module2.exports = patch(clone(
|
|
18253
|
-
if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !
|
|
18254
|
-
module2.exports = patch(
|
|
18255
|
-
|
|
18256
|
-
}
|
|
18257
|
-
function patch(
|
|
18258
|
-
polyfills(
|
|
18259
|
-
|
|
18260
|
-
|
|
18261
|
-
|
|
18262
|
-
var fs$readFile =
|
|
18263
|
-
|
|
18264
|
-
function readFile(
|
|
18289
|
+
publishQueue(global, fs13[gracefulQueue]);
|
|
18290
|
+
}
|
|
18291
|
+
module2.exports = patch(clone(fs13));
|
|
18292
|
+
if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs13.__patched) {
|
|
18293
|
+
module2.exports = patch(fs13);
|
|
18294
|
+
fs13.__patched = true;
|
|
18295
|
+
}
|
|
18296
|
+
function patch(fs14) {
|
|
18297
|
+
polyfills(fs14);
|
|
18298
|
+
fs14.gracefulify = patch;
|
|
18299
|
+
fs14.createReadStream = createReadStream2;
|
|
18300
|
+
fs14.createWriteStream = createWriteStream2;
|
|
18301
|
+
var fs$readFile = fs14.readFile;
|
|
18302
|
+
fs14.readFile = readFile;
|
|
18303
|
+
function readFile(path13, options, cb) {
|
|
18265
18304
|
if (typeof options === "function")
|
|
18266
18305
|
cb = options, options = null;
|
|
18267
|
-
return go$readFile(
|
|
18268
|
-
function go$readFile(
|
|
18269
|
-
return fs$readFile(
|
|
18306
|
+
return go$readFile(path13, options, cb);
|
|
18307
|
+
function go$readFile(path14, options2, cb2, startTime) {
|
|
18308
|
+
return fs$readFile(path14, options2, function(err) {
|
|
18270
18309
|
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
18271
|
-
enqueue([go$readFile, [
|
|
18310
|
+
enqueue([go$readFile, [path14, options2, cb2], err, startTime || Date.now(), Date.now()]);
|
|
18272
18311
|
else {
|
|
18273
18312
|
if (typeof cb2 === "function")
|
|
18274
18313
|
cb2.apply(this, arguments);
|
|
@@ -18278,16 +18317,16 @@ var require_graceful_fs = __commonJS({
|
|
|
18278
18317
|
__name(go$readFile, "go$readFile");
|
|
18279
18318
|
}
|
|
18280
18319
|
__name(readFile, "readFile");
|
|
18281
|
-
var fs$writeFile =
|
|
18282
|
-
|
|
18283
|
-
function writeFile(
|
|
18320
|
+
var fs$writeFile = fs14.writeFile;
|
|
18321
|
+
fs14.writeFile = writeFile;
|
|
18322
|
+
function writeFile(path13, data2, options, cb) {
|
|
18284
18323
|
if (typeof options === "function")
|
|
18285
18324
|
cb = options, options = null;
|
|
18286
|
-
return go$writeFile(
|
|
18287
|
-
function go$writeFile(
|
|
18288
|
-
return fs$writeFile(
|
|
18325
|
+
return go$writeFile(path13, data2, options, cb);
|
|
18326
|
+
function go$writeFile(path14, data3, options2, cb2, startTime) {
|
|
18327
|
+
return fs$writeFile(path14, data3, options2, function(err) {
|
|
18289
18328
|
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
18290
|
-
enqueue([go$writeFile, [
|
|
18329
|
+
enqueue([go$writeFile, [path14, data3, options2, cb2], err, startTime || Date.now(), Date.now()]);
|
|
18291
18330
|
else {
|
|
18292
18331
|
if (typeof cb2 === "function")
|
|
18293
18332
|
cb2.apply(this, arguments);
|
|
@@ -18297,17 +18336,17 @@ var require_graceful_fs = __commonJS({
|
|
|
18297
18336
|
__name(go$writeFile, "go$writeFile");
|
|
18298
18337
|
}
|
|
18299
18338
|
__name(writeFile, "writeFile");
|
|
18300
|
-
var fs$appendFile =
|
|
18339
|
+
var fs$appendFile = fs14.appendFile;
|
|
18301
18340
|
if (fs$appendFile)
|
|
18302
|
-
|
|
18303
|
-
function appendFile(
|
|
18341
|
+
fs14.appendFile = appendFile;
|
|
18342
|
+
function appendFile(path13, data2, options, cb) {
|
|
18304
18343
|
if (typeof options === "function")
|
|
18305
18344
|
cb = options, options = null;
|
|
18306
|
-
return go$appendFile(
|
|
18307
|
-
function go$appendFile(
|
|
18308
|
-
return fs$appendFile(
|
|
18345
|
+
return go$appendFile(path13, data2, options, cb);
|
|
18346
|
+
function go$appendFile(path14, data3, options2, cb2, startTime) {
|
|
18347
|
+
return fs$appendFile(path14, data3, options2, function(err) {
|
|
18309
18348
|
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
18310
|
-
enqueue([go$appendFile, [
|
|
18349
|
+
enqueue([go$appendFile, [path14, data3, options2, cb2], err, startTime || Date.now(), Date.now()]);
|
|
18311
18350
|
else {
|
|
18312
18351
|
if (typeof cb2 === "function")
|
|
18313
18352
|
cb2.apply(this, arguments);
|
|
@@ -18317,9 +18356,9 @@ var require_graceful_fs = __commonJS({
|
|
|
18317
18356
|
__name(go$appendFile, "go$appendFile");
|
|
18318
18357
|
}
|
|
18319
18358
|
__name(appendFile, "appendFile");
|
|
18320
|
-
var fs$copyFile =
|
|
18359
|
+
var fs$copyFile = fs14.copyFile;
|
|
18321
18360
|
if (fs$copyFile)
|
|
18322
|
-
|
|
18361
|
+
fs14.copyFile = copyFile;
|
|
18323
18362
|
function copyFile(src, dest, flags, cb) {
|
|
18324
18363
|
if (typeof flags === "function") {
|
|
18325
18364
|
cb = flags;
|
|
@@ -18339,34 +18378,34 @@ var require_graceful_fs = __commonJS({
|
|
|
18339
18378
|
__name(go$copyFile, "go$copyFile");
|
|
18340
18379
|
}
|
|
18341
18380
|
__name(copyFile, "copyFile");
|
|
18342
|
-
var fs$readdir =
|
|
18343
|
-
|
|
18381
|
+
var fs$readdir = fs14.readdir;
|
|
18382
|
+
fs14.readdir = readdir2;
|
|
18344
18383
|
var noReaddirOptionVersions = /^v[0-5]\./;
|
|
18345
|
-
function readdir2(
|
|
18384
|
+
function readdir2(path13, options, cb) {
|
|
18346
18385
|
if (typeof options === "function")
|
|
18347
18386
|
cb = options, options = null;
|
|
18348
|
-
var go$readdir = noReaddirOptionVersions.test(process.version) ? /* @__PURE__ */ __name(function go$readdir2(
|
|
18349
|
-
return fs$readdir(
|
|
18350
|
-
|
|
18387
|
+
var go$readdir = noReaddirOptionVersions.test(process.version) ? /* @__PURE__ */ __name(function go$readdir2(path14, options2, cb2, startTime) {
|
|
18388
|
+
return fs$readdir(path14, fs$readdirCallback(
|
|
18389
|
+
path14,
|
|
18351
18390
|
options2,
|
|
18352
18391
|
cb2,
|
|
18353
18392
|
startTime
|
|
18354
18393
|
));
|
|
18355
|
-
}, "go$readdir") : /* @__PURE__ */ __name(function go$readdir2(
|
|
18356
|
-
return fs$readdir(
|
|
18357
|
-
|
|
18394
|
+
}, "go$readdir") : /* @__PURE__ */ __name(function go$readdir2(path14, options2, cb2, startTime) {
|
|
18395
|
+
return fs$readdir(path14, options2, fs$readdirCallback(
|
|
18396
|
+
path14,
|
|
18358
18397
|
options2,
|
|
18359
18398
|
cb2,
|
|
18360
18399
|
startTime
|
|
18361
18400
|
));
|
|
18362
18401
|
}, "go$readdir");
|
|
18363
|
-
return go$readdir(
|
|
18364
|
-
function fs$readdirCallback(
|
|
18402
|
+
return go$readdir(path13, options, cb);
|
|
18403
|
+
function fs$readdirCallback(path14, options2, cb2, startTime) {
|
|
18365
18404
|
return function(err, files) {
|
|
18366
18405
|
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
18367
18406
|
enqueue([
|
|
18368
18407
|
go$readdir,
|
|
18369
|
-
[
|
|
18408
|
+
[path14, options2, cb2],
|
|
18370
18409
|
err,
|
|
18371
18410
|
startTime || Date.now(),
|
|
18372
18411
|
Date.now()
|
|
@@ -18383,21 +18422,21 @@ var require_graceful_fs = __commonJS({
|
|
|
18383
18422
|
}
|
|
18384
18423
|
__name(readdir2, "readdir");
|
|
18385
18424
|
if (process.version.substr(0, 4) === "v0.8") {
|
|
18386
|
-
var legStreams = legacy(
|
|
18425
|
+
var legStreams = legacy(fs14);
|
|
18387
18426
|
ReadStream = legStreams.ReadStream;
|
|
18388
18427
|
WriteStream = legStreams.WriteStream;
|
|
18389
18428
|
}
|
|
18390
|
-
var fs$ReadStream =
|
|
18429
|
+
var fs$ReadStream = fs14.ReadStream;
|
|
18391
18430
|
if (fs$ReadStream) {
|
|
18392
18431
|
ReadStream.prototype = Object.create(fs$ReadStream.prototype);
|
|
18393
18432
|
ReadStream.prototype.open = ReadStream$open;
|
|
18394
18433
|
}
|
|
18395
|
-
var fs$WriteStream =
|
|
18434
|
+
var fs$WriteStream = fs14.WriteStream;
|
|
18396
18435
|
if (fs$WriteStream) {
|
|
18397
18436
|
WriteStream.prototype = Object.create(fs$WriteStream.prototype);
|
|
18398
18437
|
WriteStream.prototype.open = WriteStream$open;
|
|
18399
18438
|
}
|
|
18400
|
-
Object.defineProperty(
|
|
18439
|
+
Object.defineProperty(fs14, "ReadStream", {
|
|
18401
18440
|
get: /* @__PURE__ */ __name(function() {
|
|
18402
18441
|
return ReadStream;
|
|
18403
18442
|
}, "get"),
|
|
@@ -18407,7 +18446,7 @@ var require_graceful_fs = __commonJS({
|
|
|
18407
18446
|
enumerable: true,
|
|
18408
18447
|
configurable: true
|
|
18409
18448
|
});
|
|
18410
|
-
Object.defineProperty(
|
|
18449
|
+
Object.defineProperty(fs14, "WriteStream", {
|
|
18411
18450
|
get: /* @__PURE__ */ __name(function() {
|
|
18412
18451
|
return WriteStream;
|
|
18413
18452
|
}, "get"),
|
|
@@ -18418,7 +18457,7 @@ var require_graceful_fs = __commonJS({
|
|
|
18418
18457
|
configurable: true
|
|
18419
18458
|
});
|
|
18420
18459
|
var FileReadStream = ReadStream;
|
|
18421
|
-
Object.defineProperty(
|
|
18460
|
+
Object.defineProperty(fs14, "FileReadStream", {
|
|
18422
18461
|
get: /* @__PURE__ */ __name(function() {
|
|
18423
18462
|
return FileReadStream;
|
|
18424
18463
|
}, "get"),
|
|
@@ -18429,7 +18468,7 @@ var require_graceful_fs = __commonJS({
|
|
|
18429
18468
|
configurable: true
|
|
18430
18469
|
});
|
|
18431
18470
|
var FileWriteStream = WriteStream;
|
|
18432
|
-
Object.defineProperty(
|
|
18471
|
+
Object.defineProperty(fs14, "FileWriteStream", {
|
|
18433
18472
|
get: /* @__PURE__ */ __name(function() {
|
|
18434
18473
|
return FileWriteStream;
|
|
18435
18474
|
}, "get"),
|
|
@@ -18439,7 +18478,7 @@ var require_graceful_fs = __commonJS({
|
|
|
18439
18478
|
enumerable: true,
|
|
18440
18479
|
configurable: true
|
|
18441
18480
|
});
|
|
18442
|
-
function ReadStream(
|
|
18481
|
+
function ReadStream(path13, options) {
|
|
18443
18482
|
if (this instanceof ReadStream)
|
|
18444
18483
|
return fs$ReadStream.apply(this, arguments), this;
|
|
18445
18484
|
else
|
|
@@ -18461,7 +18500,7 @@ var require_graceful_fs = __commonJS({
|
|
|
18461
18500
|
});
|
|
18462
18501
|
}
|
|
18463
18502
|
__name(ReadStream$open, "ReadStream$open");
|
|
18464
|
-
function WriteStream(
|
|
18503
|
+
function WriteStream(path13, options) {
|
|
18465
18504
|
if (this instanceof WriteStream)
|
|
18466
18505
|
return fs$WriteStream.apply(this, arguments), this;
|
|
18467
18506
|
else
|
|
@@ -18481,24 +18520,24 @@ var require_graceful_fs = __commonJS({
|
|
|
18481
18520
|
});
|
|
18482
18521
|
}
|
|
18483
18522
|
__name(WriteStream$open, "WriteStream$open");
|
|
18484
|
-
function createReadStream2(
|
|
18485
|
-
return new
|
|
18523
|
+
function createReadStream2(path13, options) {
|
|
18524
|
+
return new fs14.ReadStream(path13, options);
|
|
18486
18525
|
}
|
|
18487
18526
|
__name(createReadStream2, "createReadStream");
|
|
18488
|
-
function createWriteStream2(
|
|
18489
|
-
return new
|
|
18527
|
+
function createWriteStream2(path13, options) {
|
|
18528
|
+
return new fs14.WriteStream(path13, options);
|
|
18490
18529
|
}
|
|
18491
18530
|
__name(createWriteStream2, "createWriteStream");
|
|
18492
|
-
var fs$open =
|
|
18493
|
-
|
|
18494
|
-
function open(
|
|
18531
|
+
var fs$open = fs14.open;
|
|
18532
|
+
fs14.open = open;
|
|
18533
|
+
function open(path13, flags, mode, cb) {
|
|
18495
18534
|
if (typeof mode === "function")
|
|
18496
18535
|
cb = mode, mode = null;
|
|
18497
|
-
return go$open(
|
|
18498
|
-
function go$open(
|
|
18499
|
-
return fs$open(
|
|
18536
|
+
return go$open(path13, flags, mode, cb);
|
|
18537
|
+
function go$open(path14, flags2, mode2, cb2, startTime) {
|
|
18538
|
+
return fs$open(path14, flags2, mode2, function(err, fd) {
|
|
18500
18539
|
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
18501
|
-
enqueue([go$open, [
|
|
18540
|
+
enqueue([go$open, [path14, flags2, mode2, cb2], err, startTime || Date.now(), Date.now()]);
|
|
18502
18541
|
else {
|
|
18503
18542
|
if (typeof cb2 === "function")
|
|
18504
18543
|
cb2.apply(this, arguments);
|
|
@@ -18508,22 +18547,22 @@ var require_graceful_fs = __commonJS({
|
|
|
18508
18547
|
__name(go$open, "go$open");
|
|
18509
18548
|
}
|
|
18510
18549
|
__name(open, "open");
|
|
18511
|
-
return
|
|
18550
|
+
return fs14;
|
|
18512
18551
|
}
|
|
18513
18552
|
__name(patch, "patch");
|
|
18514
18553
|
function enqueue(elem) {
|
|
18515
18554
|
debug("ENQUEUE", elem[0].name, elem[1]);
|
|
18516
|
-
|
|
18555
|
+
fs13[gracefulQueue].push(elem);
|
|
18517
18556
|
retry();
|
|
18518
18557
|
}
|
|
18519
18558
|
__name(enqueue, "enqueue");
|
|
18520
18559
|
var retryTimer;
|
|
18521
18560
|
function resetQueue() {
|
|
18522
18561
|
var now = Date.now();
|
|
18523
|
-
for (var i4 = 0; i4 <
|
|
18524
|
-
if (
|
|
18525
|
-
|
|
18526
|
-
|
|
18562
|
+
for (var i4 = 0; i4 < fs13[gracefulQueue].length; ++i4) {
|
|
18563
|
+
if (fs13[gracefulQueue][i4].length > 2) {
|
|
18564
|
+
fs13[gracefulQueue][i4][3] = now;
|
|
18565
|
+
fs13[gracefulQueue][i4][4] = now;
|
|
18527
18566
|
}
|
|
18528
18567
|
}
|
|
18529
18568
|
retry();
|
|
@@ -18532,9 +18571,9 @@ var require_graceful_fs = __commonJS({
|
|
|
18532
18571
|
function retry() {
|
|
18533
18572
|
clearTimeout(retryTimer);
|
|
18534
18573
|
retryTimer = void 0;
|
|
18535
|
-
if (
|
|
18574
|
+
if (fs13[gracefulQueue].length === 0)
|
|
18536
18575
|
return;
|
|
18537
|
-
var elem =
|
|
18576
|
+
var elem = fs13[gracefulQueue].shift();
|
|
18538
18577
|
var fn = elem[0];
|
|
18539
18578
|
var args = elem[1];
|
|
18540
18579
|
var err = elem[2];
|
|
@@ -18556,7 +18595,7 @@ var require_graceful_fs = __commonJS({
|
|
|
18556
18595
|
debug("RETRY", fn.name, args);
|
|
18557
18596
|
fn.apply(null, args.concat([startTime]));
|
|
18558
18597
|
} else {
|
|
18559
|
-
|
|
18598
|
+
fs13[gracefulQueue].push(elem);
|
|
18560
18599
|
}
|
|
18561
18600
|
}
|
|
18562
18601
|
if (retryTimer === void 0) {
|
|
@@ -18882,7 +18921,7 @@ var require_BufferList = __commonJS({
|
|
|
18882
18921
|
this.head = this.tail = null;
|
|
18883
18922
|
this.length = 0;
|
|
18884
18923
|
}, "clear");
|
|
18885
|
-
BufferList.prototype.join = /* @__PURE__ */ __name(function
|
|
18924
|
+
BufferList.prototype.join = /* @__PURE__ */ __name(function join9(s4) {
|
|
18886
18925
|
if (this.length === 0) return "";
|
|
18887
18926
|
var p4 = this.head;
|
|
18888
18927
|
var ret = "" + p4.data;
|
|
@@ -20718,22 +20757,22 @@ var require_lazystream = __commonJS({
|
|
|
20718
20757
|
// ../../node_modules/normalize-path/index.js
|
|
20719
20758
|
var require_normalize_path = __commonJS({
|
|
20720
20759
|
"../../node_modules/normalize-path/index.js"(exports2, module2) {
|
|
20721
|
-
module2.exports = function(
|
|
20722
|
-
if (typeof
|
|
20760
|
+
module2.exports = function(path13, stripTrailing) {
|
|
20761
|
+
if (typeof path13 !== "string") {
|
|
20723
20762
|
throw new TypeError("expected path to be a string");
|
|
20724
20763
|
}
|
|
20725
|
-
if (
|
|
20726
|
-
var len =
|
|
20727
|
-
if (len <= 1) return
|
|
20764
|
+
if (path13 === "\\" || path13 === "/") return "/";
|
|
20765
|
+
var len = path13.length;
|
|
20766
|
+
if (len <= 1) return path13;
|
|
20728
20767
|
var prefix = "";
|
|
20729
|
-
if (len > 4 &&
|
|
20730
|
-
var ch =
|
|
20731
|
-
if ((ch === "?" || ch === ".") &&
|
|
20732
|
-
|
|
20768
|
+
if (len > 4 && path13[3] === "\\") {
|
|
20769
|
+
var ch = path13[2];
|
|
20770
|
+
if ((ch === "?" || ch === ".") && path13.slice(0, 2) === "\\\\") {
|
|
20771
|
+
path13 = path13.slice(2);
|
|
20733
20772
|
prefix = "//";
|
|
20734
20773
|
}
|
|
20735
20774
|
}
|
|
20736
|
-
var segs =
|
|
20775
|
+
var segs = path13.split(/[/\\]+/);
|
|
20737
20776
|
if (stripTrailing !== false && segs[segs.length - 1] === "") {
|
|
20738
20777
|
segs.pop();
|
|
20739
20778
|
}
|
|
@@ -29762,11 +29801,11 @@ var require_commonjs = __commonJS({
|
|
|
29762
29801
|
return (f4) => f4.length === len && f4 !== "." && f4 !== "..";
|
|
29763
29802
|
}, "qmarksTestNoExtDot");
|
|
29764
29803
|
var defaultPlatform4 = typeof process === "object" && process ? typeof process.env === "object" && process.env && process.env.__MINIMATCH_TESTING_PLATFORM__ || process.platform : "posix";
|
|
29765
|
-
var
|
|
29804
|
+
var path13 = {
|
|
29766
29805
|
win32: { sep: "\\" },
|
|
29767
29806
|
posix: { sep: "/" }
|
|
29768
29807
|
};
|
|
29769
|
-
exports2.sep = defaultPlatform4 === "win32" ?
|
|
29808
|
+
exports2.sep = defaultPlatform4 === "win32" ? path13.win32.sep : path13.posix.sep;
|
|
29770
29809
|
exports2.minimatch.sep = exports2.sep;
|
|
29771
29810
|
exports2.GLOBSTAR = /* @__PURE__ */ Symbol("globstar **");
|
|
29772
29811
|
exports2.minimatch.GLOBSTAR = exports2.GLOBSTAR;
|
|
@@ -33055,12 +33094,12 @@ var require_commonjs4 = __commonJS({
|
|
|
33055
33094
|
/**
|
|
33056
33095
|
* Get the Path object referenced by the string path, resolved from this Path
|
|
33057
33096
|
*/
|
|
33058
|
-
resolve(
|
|
33059
|
-
if (!
|
|
33097
|
+
resolve(path13) {
|
|
33098
|
+
if (!path13) {
|
|
33060
33099
|
return this;
|
|
33061
33100
|
}
|
|
33062
|
-
const rootPath = this.getRootString(
|
|
33063
|
-
const dir =
|
|
33101
|
+
const rootPath = this.getRootString(path13);
|
|
33102
|
+
const dir = path13.substring(rootPath.length);
|
|
33064
33103
|
const dirParts = dir.split(this.splitSep);
|
|
33065
33104
|
const result = rootPath ? this.getRoot(rootPath).#resolveParts(dirParts) : this.#resolveParts(dirParts);
|
|
33066
33105
|
return result;
|
|
@@ -33816,8 +33855,8 @@ var require_commonjs4 = __commonJS({
|
|
|
33816
33855
|
/**
|
|
33817
33856
|
* @internal
|
|
33818
33857
|
*/
|
|
33819
|
-
getRootString(
|
|
33820
|
-
return node_path_1.win32.parse(
|
|
33858
|
+
getRootString(path13) {
|
|
33859
|
+
return node_path_1.win32.parse(path13).root;
|
|
33821
33860
|
}
|
|
33822
33861
|
/**
|
|
33823
33862
|
* @internal
|
|
@@ -33867,8 +33906,8 @@ var require_commonjs4 = __commonJS({
|
|
|
33867
33906
|
/**
|
|
33868
33907
|
* @internal
|
|
33869
33908
|
*/
|
|
33870
|
-
getRootString(
|
|
33871
|
-
return
|
|
33909
|
+
getRootString(path13) {
|
|
33910
|
+
return path13.startsWith("/") ? "/" : "";
|
|
33872
33911
|
}
|
|
33873
33912
|
/**
|
|
33874
33913
|
* @internal
|
|
@@ -33921,8 +33960,8 @@ var require_commonjs4 = __commonJS({
|
|
|
33921
33960
|
*
|
|
33922
33961
|
* @internal
|
|
33923
33962
|
*/
|
|
33924
|
-
constructor(cwd = process.cwd(), pathImpl, sep2, { nocase, childrenCacheSize = 16 * 1024, fs:
|
|
33925
|
-
this.#fs = fsFromOption2(
|
|
33963
|
+
constructor(cwd = process.cwd(), pathImpl, sep2, { nocase, childrenCacheSize = 16 * 1024, fs: fs13 = defaultFS2 } = {}) {
|
|
33964
|
+
this.#fs = fsFromOption2(fs13);
|
|
33926
33965
|
if (cwd instanceof URL || cwd.startsWith("file://")) {
|
|
33927
33966
|
cwd = (0, node_url_1.fileURLToPath)(cwd);
|
|
33928
33967
|
}
|
|
@@ -33961,11 +34000,11 @@ var require_commonjs4 = __commonJS({
|
|
|
33961
34000
|
/**
|
|
33962
34001
|
* Get the depth of a provided path, string, or the cwd
|
|
33963
34002
|
*/
|
|
33964
|
-
depth(
|
|
33965
|
-
if (typeof
|
|
33966
|
-
|
|
34003
|
+
depth(path13 = this.cwd) {
|
|
34004
|
+
if (typeof path13 === "string") {
|
|
34005
|
+
path13 = this.cwd.resolve(path13);
|
|
33967
34006
|
}
|
|
33968
|
-
return
|
|
34007
|
+
return path13.depth();
|
|
33969
34008
|
}
|
|
33970
34009
|
/**
|
|
33971
34010
|
* Return the cache of child entries. Exposed so subclasses can create
|
|
@@ -34452,9 +34491,9 @@ var require_commonjs4 = __commonJS({
|
|
|
34452
34491
|
process2();
|
|
34453
34492
|
return results;
|
|
34454
34493
|
}
|
|
34455
|
-
chdir(
|
|
34494
|
+
chdir(path13 = this.cwd) {
|
|
34456
34495
|
const oldCwd = this.cwd;
|
|
34457
|
-
this.cwd = typeof
|
|
34496
|
+
this.cwd = typeof path13 === "string" ? this.cwd.resolve(path13) : path13;
|
|
34458
34497
|
this.cwd[setAsCwd2](oldCwd);
|
|
34459
34498
|
}
|
|
34460
34499
|
};
|
|
@@ -34484,8 +34523,8 @@ var require_commonjs4 = __commonJS({
|
|
|
34484
34523
|
/**
|
|
34485
34524
|
* @internal
|
|
34486
34525
|
*/
|
|
34487
|
-
newRoot(
|
|
34488
|
-
return new PathWin322(this.rootPath, IFDIR2, void 0, this.roots, this.nocase, this.childrenCache(), { fs:
|
|
34526
|
+
newRoot(fs13) {
|
|
34527
|
+
return new PathWin322(this.rootPath, IFDIR2, void 0, this.roots, this.nocase, this.childrenCache(), { fs: fs13 });
|
|
34489
34528
|
}
|
|
34490
34529
|
/**
|
|
34491
34530
|
* Return true if the provided path string is an absolute path
|
|
@@ -34517,8 +34556,8 @@ var require_commonjs4 = __commonJS({
|
|
|
34517
34556
|
/**
|
|
34518
34557
|
* @internal
|
|
34519
34558
|
*/
|
|
34520
|
-
newRoot(
|
|
34521
|
-
return new PathPosix2(this.rootPath, IFDIR2, void 0, this.roots, this.nocase, this.childrenCache(), { fs:
|
|
34559
|
+
newRoot(fs13) {
|
|
34560
|
+
return new PathPosix2(this.rootPath, IFDIR2, void 0, this.roots, this.nocase, this.childrenCache(), { fs: fs13 });
|
|
34522
34561
|
}
|
|
34523
34562
|
/**
|
|
34524
34563
|
* Return true if the provided path string is an absolute path
|
|
@@ -34863,8 +34902,8 @@ var require_processor = __commonJS({
|
|
|
34863
34902
|
}
|
|
34864
34903
|
// match, absolute, ifdir
|
|
34865
34904
|
entries() {
|
|
34866
|
-
return [...this.store.entries()].map(([
|
|
34867
|
-
|
|
34905
|
+
return [...this.store.entries()].map(([path13, n4]) => [
|
|
34906
|
+
path13,
|
|
34868
34907
|
!!(n4 & 2),
|
|
34869
34908
|
!!(n4 & 1)
|
|
34870
34909
|
]);
|
|
@@ -35091,9 +35130,9 @@ var require_walker = __commonJS({
|
|
|
35091
35130
|
signal;
|
|
35092
35131
|
maxDepth;
|
|
35093
35132
|
includeChildMatches;
|
|
35094
|
-
constructor(patterns,
|
|
35133
|
+
constructor(patterns, path13, opts) {
|
|
35095
35134
|
this.patterns = patterns;
|
|
35096
|
-
this.path =
|
|
35135
|
+
this.path = path13;
|
|
35097
35136
|
this.opts = opts;
|
|
35098
35137
|
this.#sep = !opts.posix && opts.platform === "win32" ? "\\" : "/";
|
|
35099
35138
|
this.includeChildMatches = opts.includeChildMatches !== false;
|
|
@@ -35112,11 +35151,11 @@ var require_walker = __commonJS({
|
|
|
35112
35151
|
});
|
|
35113
35152
|
}
|
|
35114
35153
|
}
|
|
35115
|
-
#ignored(
|
|
35116
|
-
return this.seen.has(
|
|
35154
|
+
#ignored(path13) {
|
|
35155
|
+
return this.seen.has(path13) || !!this.#ignore?.ignored?.(path13);
|
|
35117
35156
|
}
|
|
35118
|
-
#childrenIgnored(
|
|
35119
|
-
return !!this.#ignore?.childrenIgnored?.(
|
|
35157
|
+
#childrenIgnored(path13) {
|
|
35158
|
+
return !!this.#ignore?.childrenIgnored?.(path13);
|
|
35120
35159
|
}
|
|
35121
35160
|
// backpressure mechanism
|
|
35122
35161
|
pause() {
|
|
@@ -35335,8 +35374,8 @@ var require_walker = __commonJS({
|
|
|
35335
35374
|
__name(this, "GlobWalker");
|
|
35336
35375
|
}
|
|
35337
35376
|
matches = /* @__PURE__ */ new Set();
|
|
35338
|
-
constructor(patterns,
|
|
35339
|
-
super(patterns,
|
|
35377
|
+
constructor(patterns, path13, opts) {
|
|
35378
|
+
super(patterns, path13, opts);
|
|
35340
35379
|
}
|
|
35341
35380
|
matchEmit(e4) {
|
|
35342
35381
|
this.matches.add(e4);
|
|
@@ -35377,8 +35416,8 @@ var require_walker = __commonJS({
|
|
|
35377
35416
|
__name(this, "GlobStream");
|
|
35378
35417
|
}
|
|
35379
35418
|
results;
|
|
35380
|
-
constructor(patterns,
|
|
35381
|
-
super(patterns,
|
|
35419
|
+
constructor(patterns, path13, opts) {
|
|
35420
|
+
super(patterns, path13, opts);
|
|
35382
35421
|
this.results = new minipass_1.Minipass({
|
|
35383
35422
|
signal: this.signal,
|
|
35384
35423
|
objectMode: true
|
|
@@ -35742,8 +35781,8 @@ var require_commonjs5 = __commonJS({
|
|
|
35742
35781
|
// ../../node_modules/archiver-utils/file.js
|
|
35743
35782
|
var require_file = __commonJS({
|
|
35744
35783
|
"../../node_modules/archiver-utils/file.js"(exports2, module2) {
|
|
35745
|
-
var
|
|
35746
|
-
var
|
|
35784
|
+
var fs13 = require_graceful_fs();
|
|
35785
|
+
var path13 = require("path");
|
|
35747
35786
|
var flatten2 = require_flatten();
|
|
35748
35787
|
var difference = require_difference();
|
|
35749
35788
|
var union = require_union();
|
|
@@ -35768,8 +35807,8 @@ var require_file = __commonJS({
|
|
|
35768
35807
|
return result;
|
|
35769
35808
|
}, "processPatterns");
|
|
35770
35809
|
file.exists = function() {
|
|
35771
|
-
var filepath =
|
|
35772
|
-
return
|
|
35810
|
+
var filepath = path13.join.apply(path13, arguments);
|
|
35811
|
+
return fs13.existsSync(filepath);
|
|
35773
35812
|
};
|
|
35774
35813
|
file.expand = function(...args) {
|
|
35775
35814
|
var options = isPlainObject(args[0]) ? args.shift() : {};
|
|
@@ -35782,12 +35821,12 @@ var require_file = __commonJS({
|
|
|
35782
35821
|
});
|
|
35783
35822
|
if (options.filter) {
|
|
35784
35823
|
matches = matches.filter(function(filepath) {
|
|
35785
|
-
filepath =
|
|
35824
|
+
filepath = path13.join(options.cwd || "", filepath);
|
|
35786
35825
|
try {
|
|
35787
35826
|
if (typeof options.filter === "function") {
|
|
35788
35827
|
return options.filter(filepath);
|
|
35789
35828
|
} else {
|
|
35790
|
-
return
|
|
35829
|
+
return fs13.statSync(filepath)[options.filter]();
|
|
35791
35830
|
}
|
|
35792
35831
|
} catch (e4) {
|
|
35793
35832
|
return false;
|
|
@@ -35799,7 +35838,7 @@ var require_file = __commonJS({
|
|
|
35799
35838
|
file.expandMapping = function(patterns, destBase, options) {
|
|
35800
35839
|
options = Object.assign({
|
|
35801
35840
|
rename: /* @__PURE__ */ __name(function(destBase2, destPath) {
|
|
35802
|
-
return
|
|
35841
|
+
return path13.join(destBase2 || "", destPath);
|
|
35803
35842
|
}, "rename")
|
|
35804
35843
|
}, options);
|
|
35805
35844
|
var files = [];
|
|
@@ -35807,14 +35846,14 @@ var require_file = __commonJS({
|
|
|
35807
35846
|
file.expand(options, patterns).forEach(function(src) {
|
|
35808
35847
|
var destPath = src;
|
|
35809
35848
|
if (options.flatten) {
|
|
35810
|
-
destPath =
|
|
35849
|
+
destPath = path13.basename(destPath);
|
|
35811
35850
|
}
|
|
35812
35851
|
if (options.ext) {
|
|
35813
35852
|
destPath = destPath.replace(/(\.[^\/]*)?$/, options.ext);
|
|
35814
35853
|
}
|
|
35815
35854
|
var dest = options.rename(destBase, destPath, options);
|
|
35816
35855
|
if (options.cwd) {
|
|
35817
|
-
src =
|
|
35856
|
+
src = path13.join(options.cwd, src);
|
|
35818
35857
|
}
|
|
35819
35858
|
dest = dest.replace(pathSeparatorRe, "/");
|
|
35820
35859
|
src = src.replace(pathSeparatorRe, "/");
|
|
@@ -35895,8 +35934,8 @@ var require_file = __commonJS({
|
|
|
35895
35934
|
// ../../node_modules/archiver-utils/index.js
|
|
35896
35935
|
var require_archiver_utils = __commonJS({
|
|
35897
35936
|
"../../node_modules/archiver-utils/index.js"(exports2, module2) {
|
|
35898
|
-
var
|
|
35899
|
-
var
|
|
35937
|
+
var fs13 = require_graceful_fs();
|
|
35938
|
+
var path13 = require("path");
|
|
35900
35939
|
var isStream2 = require_is_stream();
|
|
35901
35940
|
var lazystream = require_lazystream();
|
|
35902
35941
|
var normalizePath = require_normalize_path();
|
|
@@ -35944,7 +35983,7 @@ var require_archiver_utils = __commonJS({
|
|
|
35944
35983
|
};
|
|
35945
35984
|
utils.lazyReadStream = function(filepath) {
|
|
35946
35985
|
return new lazystream.Readable(function() {
|
|
35947
|
-
return
|
|
35986
|
+
return fs13.createReadStream(filepath);
|
|
35948
35987
|
});
|
|
35949
35988
|
};
|
|
35950
35989
|
utils.normalizeInputSource = function(source) {
|
|
@@ -35972,7 +36011,7 @@ var require_archiver_utils = __commonJS({
|
|
|
35972
36011
|
callback = base;
|
|
35973
36012
|
base = dirpath;
|
|
35974
36013
|
}
|
|
35975
|
-
|
|
36014
|
+
fs13.readdir(dirpath, function(err, list2) {
|
|
35976
36015
|
var i4 = 0;
|
|
35977
36016
|
var file;
|
|
35978
36017
|
var filepath;
|
|
@@ -35984,11 +36023,11 @@ var require_archiver_utils = __commonJS({
|
|
|
35984
36023
|
if (!file) {
|
|
35985
36024
|
return callback(null, results);
|
|
35986
36025
|
}
|
|
35987
|
-
filepath =
|
|
35988
|
-
|
|
36026
|
+
filepath = path13.join(dirpath, file);
|
|
36027
|
+
fs13.stat(filepath, function(err2, stats) {
|
|
35989
36028
|
results.push({
|
|
35990
36029
|
path: filepath,
|
|
35991
|
-
relative:
|
|
36030
|
+
relative: path13.relative(base, filepath).replace(/\\/g, "/"),
|
|
35992
36031
|
stats
|
|
35993
36032
|
});
|
|
35994
36033
|
if (stats && stats.isDirectory()) {
|
|
@@ -41715,10 +41754,10 @@ var require_ours2 = __commonJS({
|
|
|
41715
41754
|
// ../../node_modules/archiver/lib/core.js
|
|
41716
41755
|
var require_core = __commonJS({
|
|
41717
41756
|
"../../node_modules/archiver/lib/core.js"(exports2, module2) {
|
|
41718
|
-
var
|
|
41757
|
+
var fs13 = require("fs");
|
|
41719
41758
|
var glob2 = require_readdir_glob();
|
|
41720
41759
|
var async = require_async();
|
|
41721
|
-
var
|
|
41760
|
+
var path13 = require("path");
|
|
41722
41761
|
var util = require_archiver_utils();
|
|
41723
41762
|
var inherits = require("util").inherits;
|
|
41724
41763
|
var ArchiverError = require_error();
|
|
@@ -41779,7 +41818,7 @@ var require_core = __commonJS({
|
|
|
41779
41818
|
data2.sourcePath = filepath;
|
|
41780
41819
|
task.data = data2;
|
|
41781
41820
|
this._entriesCount++;
|
|
41782
|
-
if (data2.stats && data2.stats instanceof
|
|
41821
|
+
if (data2.stats && data2.stats instanceof fs13.Stats) {
|
|
41783
41822
|
task = this._updateQueueTaskWithStats(task, data2.stats);
|
|
41784
41823
|
if (task) {
|
|
41785
41824
|
if (data2.stats.size) {
|
|
@@ -41950,7 +41989,7 @@ var require_core = __commonJS({
|
|
|
41950
41989
|
callback();
|
|
41951
41990
|
return;
|
|
41952
41991
|
}
|
|
41953
|
-
|
|
41992
|
+
fs13.lstat(task.filepath, function(err, stats) {
|
|
41954
41993
|
if (this._state.aborted) {
|
|
41955
41994
|
setImmediate(callback);
|
|
41956
41995
|
return;
|
|
@@ -41993,10 +42032,10 @@ var require_core = __commonJS({
|
|
|
41993
42032
|
task.data.sourceType = "buffer";
|
|
41994
42033
|
task.source = Buffer.concat([]);
|
|
41995
42034
|
} else if (stats.isSymbolicLink() && this._moduleSupports("symlink")) {
|
|
41996
|
-
var linkPath =
|
|
41997
|
-
var dirName =
|
|
42035
|
+
var linkPath = fs13.readlinkSync(task.filepath);
|
|
42036
|
+
var dirName = path13.dirname(task.filepath);
|
|
41998
42037
|
task.data.type = "symlink";
|
|
41999
|
-
task.data.linkname =
|
|
42038
|
+
task.data.linkname = path13.relative(dirName, path13.resolve(dirName, linkPath));
|
|
42000
42039
|
task.data.sourceType = "buffer";
|
|
42001
42040
|
task.source = Buffer.concat([]);
|
|
42002
42041
|
} else {
|
|
@@ -57699,7 +57738,7 @@ function writeZipFile(directory, outputFile) {
|
|
|
57699
57738
|
output.once("close", ok);
|
|
57700
57739
|
archive.pipe(output);
|
|
57701
57740
|
for (const file of files) {
|
|
57702
|
-
const fullPath =
|
|
57741
|
+
const fullPath = path10.resolve(directory, file);
|
|
57703
57742
|
const [data2, stat] = await Promise.all([import_fs2.promises.readFile(fullPath), import_fs2.promises.stat(fullPath)]);
|
|
57704
57743
|
archive.append(data2, {
|
|
57705
57744
|
name: file,
|
|
@@ -57734,12 +57773,12 @@ function sleep(ms) {
|
|
|
57734
57773
|
function randomString() {
|
|
57735
57774
|
return Math.random().toString(36).replace(/[^a-z0-9]+/g, "");
|
|
57736
57775
|
}
|
|
57737
|
-
var import_fs2,
|
|
57776
|
+
var import_fs2, path10, archiver;
|
|
57738
57777
|
var init_archive = __esm({
|
|
57739
57778
|
"../@aws-cdk/cdk-assets-lib/lib/private/archive.ts"() {
|
|
57740
57779
|
"use strict";
|
|
57741
57780
|
import_fs2 = require("fs");
|
|
57742
|
-
|
|
57781
|
+
path10 = __toESM(require("path"));
|
|
57743
57782
|
init_esm7();
|
|
57744
57783
|
archiver = require_archiver();
|
|
57745
57784
|
__name(zipDirectory, "zipDirectory");
|
|
@@ -57762,12 +57801,12 @@ async function pathExists(pathName) {
|
|
|
57762
57801
|
return false;
|
|
57763
57802
|
}
|
|
57764
57803
|
}
|
|
57765
|
-
var
|
|
57804
|
+
var fs9, pfs;
|
|
57766
57805
|
var init_fs_extra = __esm({
|
|
57767
57806
|
"../@aws-cdk/cdk-assets-lib/lib/private/fs-extra.ts"() {
|
|
57768
57807
|
"use strict";
|
|
57769
|
-
|
|
57770
|
-
pfs =
|
|
57808
|
+
fs9 = __toESM(require("fs"));
|
|
57809
|
+
pfs = fs9.promises;
|
|
57771
57810
|
__name(pathExists, "pathExists");
|
|
57772
57811
|
}
|
|
57773
57812
|
});
|
|
@@ -57791,12 +57830,12 @@ async function cached(cache4, key, factory) {
|
|
|
57791
57830
|
cache4.set(key, fresh);
|
|
57792
57831
|
return fresh;
|
|
57793
57832
|
}
|
|
57794
|
-
var import_fs3,
|
|
57833
|
+
var import_fs3, path11, import_cloud_assembly_schema, mime, EMPTY_ZIP_FILE_SIZE, FileAssetHandler, BucketInformation;
|
|
57795
57834
|
var init_files = __esm({
|
|
57796
57835
|
"../@aws-cdk/cdk-assets-lib/lib/private/handlers/files.ts"() {
|
|
57797
57836
|
"use strict";
|
|
57798
57837
|
import_fs3 = require("fs");
|
|
57799
|
-
|
|
57838
|
+
path11 = __toESM(require("path"));
|
|
57800
57839
|
import_cloud_assembly_schema = __toESM(require_lib2());
|
|
57801
57840
|
mime = __toESM(require_mime());
|
|
57802
57841
|
init_client_options();
|
|
@@ -57811,7 +57850,7 @@ var init_files = __esm({
|
|
|
57811
57850
|
this.workDir = workDir;
|
|
57812
57851
|
this.asset = asset;
|
|
57813
57852
|
this.host = host;
|
|
57814
|
-
this.fileCacheRoot =
|
|
57853
|
+
this.fileCacheRoot = path11.join(workDir, ".cache");
|
|
57815
57854
|
}
|
|
57816
57855
|
static {
|
|
57817
57856
|
__name(this, "FileAssetHandler");
|
|
@@ -57939,11 +57978,11 @@ var init_files = __esm({
|
|
|
57939
57978
|
`'path' is expected in the File asset source, got: ${JSON.stringify(source)}`
|
|
57940
57979
|
);
|
|
57941
57980
|
}
|
|
57942
|
-
const fullPath =
|
|
57981
|
+
const fullPath = path11.resolve(this.workDir, source.path);
|
|
57943
57982
|
if (source.packaging === import_cloud_assembly_schema.FileAssetPackaging.ZIP_DIRECTORY) {
|
|
57944
57983
|
const contentType = "application/zip";
|
|
57945
57984
|
await import_fs3.promises.mkdir(this.fileCacheRoot, { recursive: true });
|
|
57946
|
-
const packagedPath =
|
|
57985
|
+
const packagedPath = path11.join(this.fileCacheRoot, `${this.asset.id.assetId}.zip`);
|
|
57947
57986
|
if (await pathExists(packagedPath)) {
|
|
57948
57987
|
this.host.emitMessage("cached" /* CACHED */, `From cache ${packagedPath}`);
|
|
57949
57988
|
return { packagedPath, contentType };
|
|
@@ -58084,12 +58123,12 @@ function prefixTreeChars(xs, prefix = "") {
|
|
|
58084
58123
|
}
|
|
58085
58124
|
return ret;
|
|
58086
58125
|
}
|
|
58087
|
-
var
|
|
58126
|
+
var fs11, path12, import_cloud_assembly_schema2, AssetManifest, ASSET_TYPES, FileManifestEntry, DockerImageManifestEntry, DestinationIdentifier, DestinationPattern;
|
|
58088
58127
|
var init_asset_manifest = __esm({
|
|
58089
58128
|
"../@aws-cdk/cdk-assets-lib/lib/asset-manifest.ts"() {
|
|
58090
58129
|
"use strict";
|
|
58091
|
-
|
|
58092
|
-
|
|
58130
|
+
fs11 = __toESM(require("fs"));
|
|
58131
|
+
path12 = __toESM(require("path"));
|
|
58093
58132
|
import_cloud_assembly_schema2 = __toESM(require_lib2());
|
|
58094
58133
|
AssetManifest = class _AssetManifest {
|
|
58095
58134
|
constructor(directory, manifest) {
|
|
@@ -58111,7 +58150,7 @@ var init_asset_manifest = __esm({
|
|
|
58111
58150
|
static fromFile(fileName) {
|
|
58112
58151
|
try {
|
|
58113
58152
|
const obj = import_cloud_assembly_schema2.Manifest.loadAssetManifest(fileName);
|
|
58114
|
-
return new _AssetManifest(
|
|
58153
|
+
return new _AssetManifest(path12.dirname(fileName), obj);
|
|
58115
58154
|
} catch (e4) {
|
|
58116
58155
|
throw new Error(`Cannot read asset manifest '${fileName}': ${e4.message}`);
|
|
58117
58156
|
}
|
|
@@ -58124,12 +58163,12 @@ var init_asset_manifest = __esm({
|
|
|
58124
58163
|
static fromPath(filePath) {
|
|
58125
58164
|
let st;
|
|
58126
58165
|
try {
|
|
58127
|
-
st =
|
|
58166
|
+
st = fs11.statSync(filePath);
|
|
58128
58167
|
} catch (e4) {
|
|
58129
58168
|
throw new Error(`Cannot read asset manifest at '${filePath}': ${e4.message}`);
|
|
58130
58169
|
}
|
|
58131
58170
|
if (st.isDirectory()) {
|
|
58132
|
-
return _AssetManifest.fromFile(
|
|
58171
|
+
return _AssetManifest.fromFile(path12.join(filePath, _AssetManifest.DEFAULT_FILENAME));
|
|
58133
58172
|
}
|
|
58134
58173
|
return _AssetManifest.fromFile(filePath);
|
|
58135
58174
|
}
|
|
@@ -59502,9 +59541,9 @@ var init_createPaginator = __esm({
|
|
|
59502
59541
|
return await client.send(command, ...args);
|
|
59503
59542
|
}, "makePagedClientRequest");
|
|
59504
59543
|
__name(createPaginator, "createPaginator");
|
|
59505
|
-
get = /* @__PURE__ */ __name((fromObject,
|
|
59544
|
+
get = /* @__PURE__ */ __name((fromObject, path13) => {
|
|
59506
59545
|
let cursor2 = fromObject;
|
|
59507
|
-
const pathComponents =
|
|
59546
|
+
const pathComponents = path13.split(".");
|
|
59508
59547
|
for (const step of pathComponents) {
|
|
59509
59548
|
if (!cursor2 || typeof cursor2 !== "object") {
|
|
59510
59549
|
return void 0;
|
|
@@ -60542,12 +60581,12 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
|
|
|
60542
60581
|
const password = request.password ?? "";
|
|
60543
60582
|
auth = `${username}:${password}`;
|
|
60544
60583
|
}
|
|
60545
|
-
let
|
|
60584
|
+
let path13 = request.path;
|
|
60546
60585
|
if (queryString) {
|
|
60547
|
-
|
|
60586
|
+
path13 += `?${queryString}`;
|
|
60548
60587
|
}
|
|
60549
60588
|
if (request.fragment) {
|
|
60550
|
-
|
|
60589
|
+
path13 += `#${request.fragment}`;
|
|
60551
60590
|
}
|
|
60552
60591
|
let hostname = request.hostname ?? "";
|
|
60553
60592
|
if (hostname[0] === "[" && hostname.endsWith("]")) {
|
|
@@ -60559,7 +60598,7 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
|
|
|
60559
60598
|
headers: request.headers,
|
|
60560
60599
|
host: hostname,
|
|
60561
60600
|
method: request.method,
|
|
60562
|
-
path:
|
|
60601
|
+
path: path13,
|
|
60563
60602
|
port: request.port,
|
|
60564
60603
|
agent,
|
|
60565
60604
|
auth
|
|
@@ -60823,16 +60862,16 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
|
|
|
60823
60862
|
reject(err);
|
|
60824
60863
|
}, "rejectWithDestroy");
|
|
60825
60864
|
const queryString = querystringBuilder.buildQueryString(query || {});
|
|
60826
|
-
let
|
|
60865
|
+
let path13 = request.path;
|
|
60827
60866
|
if (queryString) {
|
|
60828
|
-
|
|
60867
|
+
path13 += `?${queryString}`;
|
|
60829
60868
|
}
|
|
60830
60869
|
if (request.fragment) {
|
|
60831
|
-
|
|
60870
|
+
path13 += `#${request.fragment}`;
|
|
60832
60871
|
}
|
|
60833
60872
|
const req = session.request({
|
|
60834
60873
|
...request.headers,
|
|
60835
|
-
[http2.constants.HTTP2_HEADER_PATH]:
|
|
60874
|
+
[http2.constants.HTTP2_HEADER_PATH]: path13,
|
|
60836
60875
|
[http2.constants.HTTP2_HEADER_METHOD]: method
|
|
60837
60876
|
});
|
|
60838
60877
|
session.ref();
|
|
@@ -61030,13 +61069,13 @@ var require_dist_cjs15 = __commonJS({
|
|
|
61030
61069
|
abortError.name = "AbortError";
|
|
61031
61070
|
return Promise.reject(abortError);
|
|
61032
61071
|
}
|
|
61033
|
-
let
|
|
61072
|
+
let path13 = request.path;
|
|
61034
61073
|
const queryString = querystringBuilder.buildQueryString(request.query || {});
|
|
61035
61074
|
if (queryString) {
|
|
61036
|
-
|
|
61075
|
+
path13 += `?${queryString}`;
|
|
61037
61076
|
}
|
|
61038
61077
|
if (request.fragment) {
|
|
61039
|
-
|
|
61078
|
+
path13 += `#${request.fragment}`;
|
|
61040
61079
|
}
|
|
61041
61080
|
let auth = "";
|
|
61042
61081
|
if (request.username != null || request.password != null) {
|
|
@@ -61045,7 +61084,7 @@ var require_dist_cjs15 = __commonJS({
|
|
|
61045
61084
|
auth = `${username}:${password}@`;
|
|
61046
61085
|
}
|
|
61047
61086
|
const { port, method } = request;
|
|
61048
|
-
const url = `${request.protocol}//${auth}${request.hostname}${port ? `:${port}` : ""}${
|
|
61087
|
+
const url = `${request.protocol}//${auth}${request.hostname}${port ? `:${port}` : ""}${path13}`;
|
|
61049
61088
|
const body = method === "GET" || method === "HEAD" ? void 0 : request.body;
|
|
61050
61089
|
const requestOptions = {
|
|
61051
61090
|
body,
|
|
@@ -61973,7 +62012,7 @@ var init_NormalizedSchema = __esm({
|
|
|
61973
62012
|
}
|
|
61974
62013
|
getSchema() {
|
|
61975
62014
|
const sc = this.schema;
|
|
61976
|
-
if (sc[0] === 0) {
|
|
62015
|
+
if (Array.isArray(sc) && sc[0] === 0) {
|
|
61977
62016
|
return sc[4];
|
|
61978
62017
|
}
|
|
61979
62018
|
return sc;
|
|
@@ -61999,11 +62038,17 @@ var init_NormalizedSchema = __esm({
|
|
|
61999
62038
|
}
|
|
62000
62039
|
isStructSchema() {
|
|
62001
62040
|
const sc = this.getSchema();
|
|
62041
|
+
if (typeof sc !== "object") {
|
|
62042
|
+
return false;
|
|
62043
|
+
}
|
|
62002
62044
|
const id = sc[0];
|
|
62003
62045
|
return id === 3 || id === -3 || id === 4;
|
|
62004
62046
|
}
|
|
62005
62047
|
isUnionSchema() {
|
|
62006
62048
|
const sc = this.getSchema();
|
|
62049
|
+
if (typeof sc !== "object") {
|
|
62050
|
+
return false;
|
|
62051
|
+
}
|
|
62007
62052
|
return sc[0] === 4;
|
|
62008
62053
|
}
|
|
62009
62054
|
isBlobSchema() {
|
|
@@ -63189,13 +63234,13 @@ function __disposeResources(env) {
|
|
|
63189
63234
|
__name(next, "next");
|
|
63190
63235
|
return next();
|
|
63191
63236
|
}
|
|
63192
|
-
function __rewriteRelativeImportExtension(
|
|
63193
|
-
if (typeof
|
|
63194
|
-
return
|
|
63237
|
+
function __rewriteRelativeImportExtension(path13, preserveJsx) {
|
|
63238
|
+
if (typeof path13 === "string" && /^\.\.?\//.test(path13)) {
|
|
63239
|
+
return path13.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i, function(m4, tsx, d4, ext2, cm) {
|
|
63195
63240
|
return tsx ? preserveJsx ? ".jsx" : ".js" : d4 && (!ext2 || !cm) ? m4 : d4 + ext2 + "." + cm.toLowerCase() + "js";
|
|
63196
63241
|
});
|
|
63197
63242
|
}
|
|
63198
|
-
return
|
|
63243
|
+
return path13;
|
|
63199
63244
|
}
|
|
63200
63245
|
var extendStatics, __assign, __createBinding, __setModuleDefault, ownKeys, _SuppressedError, tslib_es6_default;
|
|
63201
63246
|
var init_tslib_es6 = __esm({
|
|
@@ -64124,11 +64169,11 @@ var init_HttpBindingProtocol = __esm({
|
|
|
64124
64169
|
const opTraits = translateTraits(operationSchema.traits);
|
|
64125
64170
|
if (opTraits.http) {
|
|
64126
64171
|
request.method = opTraits.http[0];
|
|
64127
|
-
const [
|
|
64172
|
+
const [path13, search] = opTraits.http[1].split("?");
|
|
64128
64173
|
if (request.path == "/") {
|
|
64129
|
-
request.path =
|
|
64174
|
+
request.path = path13;
|
|
64130
64175
|
} else {
|
|
64131
|
-
request.path +=
|
|
64176
|
+
request.path += path13;
|
|
64132
64177
|
}
|
|
64133
64178
|
const traitSearchParams = new URLSearchParams(search ?? "");
|
|
64134
64179
|
Object.assign(query, Object.fromEntries(traitSearchParams));
|
|
@@ -64518,8 +64563,8 @@ var init_requestBuilder = __esm({
|
|
|
64518
64563
|
return this;
|
|
64519
64564
|
}
|
|
64520
64565
|
p(memberName, labelValueProvider, uriLabel, isGreedyLabel) {
|
|
64521
|
-
this.resolvePathStack.push((
|
|
64522
|
-
this.path = resolvedPath(
|
|
64566
|
+
this.resolvePathStack.push((path13) => {
|
|
64567
|
+
this.path = resolvedPath(path13, this.input, memberName, labelValueProvider, uriLabel, isGreedyLabel);
|
|
64523
64568
|
});
|
|
64524
64569
|
return this;
|
|
64525
64570
|
}
|
|
@@ -65202,18 +65247,18 @@ var require_dist_cjs19 = __commonJS({
|
|
|
65202
65247
|
}
|
|
65203
65248
|
};
|
|
65204
65249
|
var booleanEquals = /* @__PURE__ */ __name((value1, value2) => value1 === value2, "booleanEquals");
|
|
65205
|
-
var getAttrPathList = /* @__PURE__ */ __name((
|
|
65206
|
-
const parts =
|
|
65250
|
+
var getAttrPathList = /* @__PURE__ */ __name((path13) => {
|
|
65251
|
+
const parts = path13.split(".");
|
|
65207
65252
|
const pathList = [];
|
|
65208
65253
|
for (const part of parts) {
|
|
65209
65254
|
const squareBracketIndex = part.indexOf("[");
|
|
65210
65255
|
if (squareBracketIndex !== -1) {
|
|
65211
65256
|
if (part.indexOf("]") !== part.length - 1) {
|
|
65212
|
-
throw new EndpointError(`Path: '${
|
|
65257
|
+
throw new EndpointError(`Path: '${path13}' does not end with ']'`);
|
|
65213
65258
|
}
|
|
65214
65259
|
const arrayIndex = part.slice(squareBracketIndex + 1, -1);
|
|
65215
65260
|
if (Number.isNaN(parseInt(arrayIndex))) {
|
|
65216
|
-
throw new EndpointError(`Invalid array index: '${arrayIndex}' in path: '${
|
|
65261
|
+
throw new EndpointError(`Invalid array index: '${arrayIndex}' in path: '${path13}'`);
|
|
65217
65262
|
}
|
|
65218
65263
|
if (squareBracketIndex !== 0) {
|
|
65219
65264
|
pathList.push(part.slice(0, squareBracketIndex));
|
|
@@ -65225,9 +65270,9 @@ var require_dist_cjs19 = __commonJS({
|
|
|
65225
65270
|
}
|
|
65226
65271
|
return pathList;
|
|
65227
65272
|
}, "getAttrPathList");
|
|
65228
|
-
var getAttr = /* @__PURE__ */ __name((value,
|
|
65273
|
+
var getAttr = /* @__PURE__ */ __name((value, path13) => getAttrPathList(path13).reduce((acc, index) => {
|
|
65229
65274
|
if (typeof acc !== "object") {
|
|
65230
|
-
throw new EndpointError(`Index '${index}' in '${
|
|
65275
|
+
throw new EndpointError(`Index '${index}' in '${path13}' not found in '${JSON.stringify(value)}'`);
|
|
65231
65276
|
} else if (Array.isArray(acc)) {
|
|
65232
65277
|
return acc[parseInt(index)];
|
|
65233
65278
|
}
|
|
@@ -65246,8 +65291,8 @@ var require_dist_cjs19 = __commonJS({
|
|
|
65246
65291
|
return value;
|
|
65247
65292
|
}
|
|
65248
65293
|
if (typeof value === "object" && "hostname" in value) {
|
|
65249
|
-
const { hostname: hostname2, port, protocol: protocol2 = "", path:
|
|
65250
|
-
const url = new URL(`${protocol2}//${hostname2}${port ? `:${port}` : ""}${
|
|
65294
|
+
const { hostname: hostname2, port, protocol: protocol2 = "", path: path13 = "", query = {} } = value;
|
|
65295
|
+
const url = new URL(`${protocol2}//${hostname2}${port ? `:${port}` : ""}${path13}`);
|
|
65251
65296
|
url.search = Object.entries(query).map(([k4, v4]) => `${k4}=${v4}`).join("&");
|
|
65252
65297
|
return url;
|
|
65253
65298
|
}
|
|
@@ -66791,10 +66836,10 @@ ${longDate}
|
|
|
66791
66836
|
${credentialScope}
|
|
66792
66837
|
${utilHexEncoding.toHex(hashedRequest)}`;
|
|
66793
66838
|
}
|
|
66794
|
-
getCanonicalPath({ path:
|
|
66839
|
+
getCanonicalPath({ path: path13 }) {
|
|
66795
66840
|
if (this.uriEscapePath) {
|
|
66796
66841
|
const normalizedPathSegments = [];
|
|
66797
|
-
for (const pathSegment of
|
|
66842
|
+
for (const pathSegment of path13.split("/")) {
|
|
66798
66843
|
if (pathSegment?.length === 0)
|
|
66799
66844
|
continue;
|
|
66800
66845
|
if (pathSegment === ".")
|
|
@@ -66805,11 +66850,11 @@ ${utilHexEncoding.toHex(hashedRequest)}`;
|
|
|
66805
66850
|
normalizedPathSegments.push(pathSegment);
|
|
66806
66851
|
}
|
|
66807
66852
|
}
|
|
66808
|
-
const normalizedPath = `${
|
|
66853
|
+
const normalizedPath = `${path13?.startsWith("/") ? "/" : ""}${normalizedPathSegments.join("/")}${normalizedPathSegments.length > 0 && path13?.endsWith("/") ? "/" : ""}`;
|
|
66809
66854
|
const doubleEncoded = utilUriEscape.escapeUri(normalizedPath);
|
|
66810
66855
|
return doubleEncoded.replace(/%2F/g, "/");
|
|
66811
66856
|
}
|
|
66812
|
-
return
|
|
66857
|
+
return path13;
|
|
66813
66858
|
}
|
|
66814
66859
|
validateResolvedCredentials(credentials) {
|
|
66815
66860
|
if (typeof credentials !== "object" || typeof credentials.accessKeyId !== "string" || typeof credentials.secretAccessKey !== "string") {
|
|
@@ -68150,11 +68195,11 @@ var init_SmithyRpcV2CborProtocol = __esm({
|
|
|
68150
68195
|
}
|
|
68151
68196
|
}
|
|
68152
68197
|
const { service, operation: operation2 } = (0, import_util_middleware5.getSmithyContext)(context);
|
|
68153
|
-
const
|
|
68198
|
+
const path13 = `/service/${service}/operation/${operation2}`;
|
|
68154
68199
|
if (request.path.endsWith("/")) {
|
|
68155
|
-
request.path +=
|
|
68200
|
+
request.path += path13.slice(1);
|
|
68156
68201
|
} else {
|
|
68157
|
-
request.path +=
|
|
68202
|
+
request.path += path13;
|
|
68158
68203
|
}
|
|
68159
68204
|
return request;
|
|
68160
68205
|
}
|
|
@@ -68709,9 +68754,8 @@ var require_dist_cjs26 = __commonJS({
|
|
|
68709
68754
|
}
|
|
68710
68755
|
};
|
|
68711
68756
|
var SENSITIVE_STRING = "***SensitiveInformation***";
|
|
68712
|
-
var createAggregatedClient4 = /* @__PURE__ */ __name((commands4, Client2) => {
|
|
68713
|
-
for (const command of Object.
|
|
68714
|
-
const CommandCtor = commands4[command];
|
|
68757
|
+
var createAggregatedClient4 = /* @__PURE__ */ __name((commands4, Client2, options) => {
|
|
68758
|
+
for (const [command, CommandCtor] of Object.entries(commands4)) {
|
|
68715
68759
|
const methodImpl = /* @__PURE__ */ __name(async function(args, optionsOrCb, cb) {
|
|
68716
68760
|
const command2 = new CommandCtor(args);
|
|
68717
68761
|
if (typeof optionsOrCb === "function") {
|
|
@@ -68727,6 +68771,33 @@ var require_dist_cjs26 = __commonJS({
|
|
|
68727
68771
|
const methodName = (command[0].toLowerCase() + command.slice(1)).replace(/Command$/, "");
|
|
68728
68772
|
Client2.prototype[methodName] = methodImpl;
|
|
68729
68773
|
}
|
|
68774
|
+
const { paginators = {}, waiters = {} } = options ?? {};
|
|
68775
|
+
for (const [paginatorName, paginatorFn] of Object.entries(paginators)) {
|
|
68776
|
+
if (Client2.prototype[paginatorName] === void 0) {
|
|
68777
|
+
Client2.prototype[paginatorName] = function(commandInput = {}, paginationConfiguration, ...rest) {
|
|
68778
|
+
return paginatorFn({
|
|
68779
|
+
...paginationConfiguration,
|
|
68780
|
+
client: this
|
|
68781
|
+
}, commandInput, ...rest);
|
|
68782
|
+
};
|
|
68783
|
+
}
|
|
68784
|
+
}
|
|
68785
|
+
for (const [waiterName, waiterFn] of Object.entries(waiters)) {
|
|
68786
|
+
if (Client2.prototype[waiterName] === void 0) {
|
|
68787
|
+
Client2.prototype[waiterName] = async function(commandInput = {}, waiterConfiguration, ...rest) {
|
|
68788
|
+
let config = waiterConfiguration;
|
|
68789
|
+
if (typeof waiterConfiguration === "number") {
|
|
68790
|
+
config = {
|
|
68791
|
+
maxWaitTime: waiterConfiguration
|
|
68792
|
+
};
|
|
68793
|
+
}
|
|
68794
|
+
return waiterFn({
|
|
68795
|
+
...config,
|
|
68796
|
+
client: this
|
|
68797
|
+
}, commandInput, ...rest);
|
|
68798
|
+
};
|
|
68799
|
+
}
|
|
68800
|
+
}
|
|
68730
68801
|
}, "createAggregatedClient");
|
|
68731
68802
|
var ServiceException = class _ServiceException extends Error {
|
|
68732
68803
|
static {
|
|
@@ -72632,14 +72703,14 @@ var require_readFile = __commonJS({
|
|
|
72632
72703
|
var promises_1 = require("node:fs/promises");
|
|
72633
72704
|
exports2.filePromises = {};
|
|
72634
72705
|
exports2.fileIntercept = {};
|
|
72635
|
-
var readFile = /* @__PURE__ */ __name((
|
|
72636
|
-
if (exports2.fileIntercept[
|
|
72637
|
-
return exports2.fileIntercept[
|
|
72706
|
+
var readFile = /* @__PURE__ */ __name((path13, options) => {
|
|
72707
|
+
if (exports2.fileIntercept[path13] !== void 0) {
|
|
72708
|
+
return exports2.fileIntercept[path13];
|
|
72638
72709
|
}
|
|
72639
|
-
if (!exports2.filePromises[
|
|
72640
|
-
exports2.filePromises[
|
|
72710
|
+
if (!exports2.filePromises[path13] || options?.ignoreCache) {
|
|
72711
|
+
exports2.filePromises[path13] = (0, promises_1.readFile)(path13, "utf8");
|
|
72641
72712
|
}
|
|
72642
|
-
return exports2.filePromises[
|
|
72713
|
+
return exports2.filePromises[path13];
|
|
72643
72714
|
}, "readFile");
|
|
72644
72715
|
exports2.readFile = readFile;
|
|
72645
72716
|
}
|
|
@@ -72652,7 +72723,7 @@ var require_dist_cjs32 = __commonJS({
|
|
|
72652
72723
|
var getHomeDir = require_getHomeDir();
|
|
72653
72724
|
var getSSOTokenFilepath = require_getSSOTokenFilepath();
|
|
72654
72725
|
var getSSOTokenFromFile = require_getSSOTokenFromFile();
|
|
72655
|
-
var
|
|
72726
|
+
var path13 = require("path");
|
|
72656
72727
|
var types2 = require_dist_cjs();
|
|
72657
72728
|
var readFile = require_readFile();
|
|
72658
72729
|
var ENV_PROFILE = "AWS_PROFILE";
|
|
@@ -72674,9 +72745,9 @@ var require_dist_cjs32 = __commonJS({
|
|
|
72674
72745
|
...data2.default && { default: data2.default }
|
|
72675
72746
|
}), "getConfigData");
|
|
72676
72747
|
var ENV_CONFIG_PATH = "AWS_CONFIG_FILE";
|
|
72677
|
-
var getConfigFilepath = /* @__PURE__ */ __name(() => process.env[ENV_CONFIG_PATH] ||
|
|
72748
|
+
var getConfigFilepath = /* @__PURE__ */ __name(() => process.env[ENV_CONFIG_PATH] || path13.join(getHomeDir.getHomeDir(), ".aws", "config"), "getConfigFilepath");
|
|
72678
72749
|
var ENV_CREDENTIALS_PATH = "AWS_SHARED_CREDENTIALS_FILE";
|
|
72679
|
-
var getCredentialsFilepath = /* @__PURE__ */ __name(() => process.env[ENV_CREDENTIALS_PATH] ||
|
|
72750
|
+
var getCredentialsFilepath = /* @__PURE__ */ __name(() => process.env[ENV_CREDENTIALS_PATH] || path13.join(getHomeDir.getHomeDir(), ".aws", "credentials"), "getCredentialsFilepath");
|
|
72680
72751
|
var prefixKeyRegex = /^([\w-]+)\s(["'])?([\w-@\+\.%:/]+)\2$/;
|
|
72681
72752
|
var profileNameBlockList = ["__proto__", "profile __proto__"];
|
|
72682
72753
|
var parseIni = /* @__PURE__ */ __name((iniData) => {
|
|
@@ -72731,11 +72802,11 @@ var require_dist_cjs32 = __commonJS({
|
|
|
72731
72802
|
const relativeHomeDirPrefix = "~/";
|
|
72732
72803
|
let resolvedFilepath = filepath;
|
|
72733
72804
|
if (filepath.startsWith(relativeHomeDirPrefix)) {
|
|
72734
|
-
resolvedFilepath =
|
|
72805
|
+
resolvedFilepath = path13.join(homeDir, filepath.slice(2));
|
|
72735
72806
|
}
|
|
72736
72807
|
let resolvedConfigFilepath = configFilepath;
|
|
72737
72808
|
if (configFilepath.startsWith(relativeHomeDirPrefix)) {
|
|
72738
|
-
resolvedConfigFilepath =
|
|
72809
|
+
resolvedConfigFilepath = path13.join(homeDir, configFilepath.slice(2));
|
|
72739
72810
|
}
|
|
72740
72811
|
const parsedFiles = await Promise.all([
|
|
72741
72812
|
readFile.readFile(resolvedConfigFilepath, {
|
|
@@ -72774,8 +72845,8 @@ var require_dist_cjs32 = __commonJS({
|
|
|
72774
72845
|
getFileRecord() {
|
|
72775
72846
|
return readFile.fileIntercept;
|
|
72776
72847
|
},
|
|
72777
|
-
interceptFile(
|
|
72778
|
-
readFile.fileIntercept[
|
|
72848
|
+
interceptFile(path14, contents) {
|
|
72849
|
+
readFile.fileIntercept[path14] = Promise.resolve(contents);
|
|
72779
72850
|
},
|
|
72780
72851
|
getTokenRecord() {
|
|
72781
72852
|
return getSSOTokenFromFile.tokenIntercept;
|
|
@@ -73014,8 +73085,8 @@ var require_dist_cjs34 = __commonJS({
|
|
|
73014
73085
|
return endpoint.url.href;
|
|
73015
73086
|
}
|
|
73016
73087
|
if ("hostname" in endpoint) {
|
|
73017
|
-
const { protocol, hostname, port, path:
|
|
73018
|
-
return `${protocol}//${hostname}${port ? ":" + port : ""}${
|
|
73088
|
+
const { protocol, hostname, port, path: path13 } = endpoint;
|
|
73089
|
+
return `${protocol}//${hostname}${port ? ":" + port : ""}${path13}`;
|
|
73019
73090
|
}
|
|
73020
73091
|
}
|
|
73021
73092
|
return endpoint;
|
|
@@ -76275,7 +76346,7 @@ var require_dist_cjs47 = __commonJS({
|
|
|
76275
76346
|
var httpAuthSchemes = (init_httpAuthSchemes2(), __toCommonJS(httpAuthSchemes_exports));
|
|
76276
76347
|
var propertyProvider = require_dist_cjs23();
|
|
76277
76348
|
var sharedIniFileLoader = require_dist_cjs32();
|
|
76278
|
-
var
|
|
76349
|
+
var fs13 = require("fs");
|
|
76279
76350
|
var fromEnvSigningName = /* @__PURE__ */ __name(({ logger: logger2, signingName } = {}) => async () => {
|
|
76280
76351
|
logger2?.debug?.("@aws-sdk/token-providers - fromEnvSigningName");
|
|
76281
76352
|
if (!signingName) {
|
|
@@ -76321,7 +76392,7 @@ var require_dist_cjs47 = __commonJS({
|
|
|
76321
76392
|
throw new propertyProvider.TokenProviderError(`Value not present for '${key}' in SSO Token${forRefresh ? ". Cannot refresh" : ""}. ${REFRESH_MESSAGE}`, false);
|
|
76322
76393
|
}
|
|
76323
76394
|
}, "validateTokenKey");
|
|
76324
|
-
var { writeFile } =
|
|
76395
|
+
var { writeFile } = fs13.promises;
|
|
76325
76396
|
var writeSSOTokenToFile = /* @__PURE__ */ __name((id, ssoToken) => {
|
|
76326
76397
|
const tokenFilepath = sharedIniFileLoader.getSSOTokenFilepath(id);
|
|
76327
76398
|
const tokenString = JSON.stringify(ssoToken, null, 2);
|
|
@@ -87675,7 +87746,7 @@ var require_dist_cjs69 = __commonJS({
|
|
|
87675
87746
|
var require_dist_cjs70 = __commonJS({
|
|
87676
87747
|
"../../node_modules/@smithy/hash-stream-node/dist-cjs/index.js"(exports2) {
|
|
87677
87748
|
"use strict";
|
|
87678
|
-
var
|
|
87749
|
+
var fs13 = require("fs");
|
|
87679
87750
|
var utilUtf8 = require_dist_cjs10();
|
|
87680
87751
|
var stream2 = require("stream");
|
|
87681
87752
|
var HashCalculator = class extends stream2.Writable {
|
|
@@ -87701,7 +87772,7 @@ var require_dist_cjs70 = __commonJS({
|
|
|
87701
87772
|
reject(new Error("Unable to calculate hash for non-file streams."));
|
|
87702
87773
|
return;
|
|
87703
87774
|
}
|
|
87704
|
-
const fileStreamTee =
|
|
87775
|
+
const fileStreamTee = fs13.createReadStream(fileStream.path, {
|
|
87705
87776
|
start: fileStream.start,
|
|
87706
87777
|
end: fileStream.end
|
|
87707
87778
|
});
|
|
@@ -103084,7 +103155,7 @@ var require_lib5 = __commonJS({
|
|
|
103084
103155
|
|
|
103085
103156
|
// bin/docker-credential-cdk-assets.js
|
|
103086
103157
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
103087
|
-
var
|
|
103158
|
+
var fs12 = require("fs");
|
|
103088
103159
|
var cdk_assets_lib_1 = require_lib5();
|
|
103089
103160
|
var docker_credentials_1 = (init_docker_credentials(), __toCommonJS(docker_credentials_exports));
|
|
103090
103161
|
async function main() {
|
|
@@ -103095,9 +103166,9 @@ async function main() {
|
|
|
103095
103166
|
if (!config) {
|
|
103096
103167
|
throw new Error(`unable to find CDK Docker credentials at: ${(0, docker_credentials_1.cdkCredentialsConfigFile)()}`);
|
|
103097
103168
|
}
|
|
103098
|
-
let endpoint =
|
|
103169
|
+
let endpoint = fs12.readFileSync(0, { encoding: "utf-8" }).trim();
|
|
103099
103170
|
const credentials = await (0, docker_credentials_1.fetchDockerLoginCredentials)(new cdk_assets_lib_1.DefaultAwsClient(), config, endpoint);
|
|
103100
|
-
|
|
103171
|
+
fs12.writeFileSync(1, JSON.stringify(credentials));
|
|
103101
103172
|
}
|
|
103102
103173
|
__name(main, "main");
|
|
103103
103174
|
main().catch((e4) => {
|