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