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
package/bin/cdk-assets.js
CHANGED
|
@@ -755,14 +755,14 @@ var require_helpers = __commonJS({
|
|
|
755
755
|
"../@aws-cdk/cloud-assembly-schema/node_modules/jsonschema/lib/helpers.js"(exports2, module2) {
|
|
756
756
|
"use strict";
|
|
757
757
|
var uri = require("url");
|
|
758
|
-
var ValidationError = exports2.ValidationError = /* @__PURE__ */ __name(function ValidationError2(message, instance, schema,
|
|
759
|
-
if (Array.isArray(
|
|
760
|
-
this.path =
|
|
761
|
-
this.property =
|
|
758
|
+
var ValidationError = exports2.ValidationError = /* @__PURE__ */ __name(function ValidationError2(message, instance, schema, path14, name, argument) {
|
|
759
|
+
if (Array.isArray(path14)) {
|
|
760
|
+
this.path = path14;
|
|
761
|
+
this.property = path14.reduce(function(sum, item) {
|
|
762
762
|
return sum + makeSuffix(item);
|
|
763
763
|
}, "instance");
|
|
764
|
-
} else if (
|
|
765
|
-
this.property =
|
|
764
|
+
} else if (path14 !== void 0) {
|
|
765
|
+
this.property = path14;
|
|
766
766
|
}
|
|
767
767
|
if (message) {
|
|
768
768
|
this.message = message;
|
|
@@ -855,16 +855,16 @@ var require_helpers = __commonJS({
|
|
|
855
855
|
name: { value: "SchemaError", enumerable: false }
|
|
856
856
|
}
|
|
857
857
|
);
|
|
858
|
-
var SchemaContext = exports2.SchemaContext = /* @__PURE__ */ __name(function SchemaContext2(schema, options,
|
|
858
|
+
var SchemaContext = exports2.SchemaContext = /* @__PURE__ */ __name(function SchemaContext2(schema, options, path14, base, schemas) {
|
|
859
859
|
this.schema = schema;
|
|
860
860
|
this.options = options;
|
|
861
|
-
if (Array.isArray(
|
|
862
|
-
this.path =
|
|
863
|
-
this.propertyPath =
|
|
861
|
+
if (Array.isArray(path14)) {
|
|
862
|
+
this.path = path14;
|
|
863
|
+
this.propertyPath = path14.reduce(function(sum, item) {
|
|
864
864
|
return sum + makeSuffix(item);
|
|
865
865
|
}, "instance");
|
|
866
866
|
} else {
|
|
867
|
-
this.propertyPath =
|
|
867
|
+
this.propertyPath = path14;
|
|
868
868
|
}
|
|
869
869
|
this.base = base;
|
|
870
870
|
this.schemas = schemas;
|
|
@@ -873,10 +873,10 @@ var require_helpers = __commonJS({
|
|
|
873
873
|
return uri.resolve(this.base, target);
|
|
874
874
|
}, "resolve");
|
|
875
875
|
SchemaContext.prototype.makeChild = /* @__PURE__ */ __name(function makeChild(schema, propertyName) {
|
|
876
|
-
var
|
|
876
|
+
var path14 = propertyName === void 0 ? this.path : this.path.concat([propertyName]);
|
|
877
877
|
var id = schema.$id || schema.id;
|
|
878
878
|
var base = uri.resolve(this.base, id || "");
|
|
879
|
-
var ctx = new SchemaContext(schema, this.options,
|
|
879
|
+
var ctx = new SchemaContext(schema, this.options, path14, base, Object.create(this.schemas));
|
|
880
880
|
if (id && !ctx.schemas[base]) {
|
|
881
881
|
ctx.schemas[base] = schema;
|
|
882
882
|
}
|
|
@@ -4008,7 +4008,7 @@ var require_semver2 = __commonJS({
|
|
|
4008
4008
|
// ../@aws-cdk/cloud-assembly-schema/cli-version.json
|
|
4009
4009
|
var require_cli_version = __commonJS({
|
|
4010
4010
|
"../@aws-cdk/cloud-assembly-schema/cli-version.json"(exports2, module2) {
|
|
4011
|
-
module2.exports = { version: "2.
|
|
4011
|
+
module2.exports = { version: "2.1106.0" };
|
|
4012
4012
|
}
|
|
4013
4013
|
});
|
|
4014
4014
|
|
|
@@ -4343,7 +4343,7 @@ var require_cloud_assembly_schema = __commonJS({
|
|
|
4343
4343
|
type: "string"
|
|
4344
4344
|
},
|
|
4345
4345
|
metadata: {
|
|
4346
|
-
description: "Associated metadata. (Default - no metadata.)",
|
|
4346
|
+
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.)",
|
|
4347
4347
|
type: "object",
|
|
4348
4348
|
additionalProperties: {
|
|
4349
4349
|
type: "array",
|
|
@@ -4352,6 +4352,10 @@ var require_cloud_assembly_schema = __commonJS({
|
|
|
4352
4352
|
}
|
|
4353
4353
|
}
|
|
4354
4354
|
},
|
|
4355
|
+
additionalMetadataFile: {
|
|
4356
|
+
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)",
|
|
4357
|
+
type: "string"
|
|
4358
|
+
},
|
|
4355
4359
|
dependencies: {
|
|
4356
4360
|
description: "IDs of artifacts that must be deployed before this artifact. (Default - no dependencies.)",
|
|
4357
4361
|
type: "array",
|
|
@@ -5996,9 +6000,9 @@ var require_integ_schema = __commonJS({
|
|
|
5996
6000
|
var require_version = __commonJS({
|
|
5997
6001
|
"../@aws-cdk/cloud-assembly-schema/schema/version.json"(exports2, module2) {
|
|
5998
6002
|
module2.exports = {
|
|
5999
|
-
schemaHash: "
|
|
6003
|
+
schemaHash: "22c511a4ddd185761b8d56ac21d48c8384873ffe4b953b3567654746f8dd26f1",
|
|
6000
6004
|
$comment: "Do not hold back the version on additions: jsonschema validation of the manifest by the consumer will trigger errors on unexpected fields.",
|
|
6001
|
-
revision:
|
|
6005
|
+
revision: 52
|
|
6002
6006
|
};
|
|
6003
6007
|
}
|
|
6004
6008
|
});
|
|
@@ -6392,14 +6396,16 @@ var cloud_artifact_exports = {};
|
|
|
6392
6396
|
__export(cloud_artifact_exports, {
|
|
6393
6397
|
CloudArtifact: () => CloudArtifact
|
|
6394
6398
|
});
|
|
6395
|
-
var cxschema, CloudArtifact;
|
|
6399
|
+
var fs4, path3, cxschema, CloudArtifact;
|
|
6396
6400
|
var init_cloud_artifact = __esm({
|
|
6397
6401
|
"../@aws-cdk/cloud-assembly-api/lib/cloud-artifact.ts"() {
|
|
6398
6402
|
"use strict";
|
|
6403
|
+
fs4 = __toESM(require("fs"));
|
|
6404
|
+
path3 = __toESM(require("path"));
|
|
6399
6405
|
cxschema = __toESM(require_lib2());
|
|
6400
6406
|
init_metadata();
|
|
6401
6407
|
init_error();
|
|
6402
|
-
CloudArtifact = class {
|
|
6408
|
+
CloudArtifact = class _CloudArtifact {
|
|
6403
6409
|
constructor(assembly, id, manifest) {
|
|
6404
6410
|
this.assembly = assembly;
|
|
6405
6411
|
this.id = id;
|
|
@@ -6410,6 +6416,31 @@ var init_cloud_artifact = __esm({
|
|
|
6410
6416
|
static {
|
|
6411
6417
|
__name(this, "CloudArtifact");
|
|
6412
6418
|
}
|
|
6419
|
+
/**
|
|
6420
|
+
* Read the metadata for the given artifact
|
|
6421
|
+
*
|
|
6422
|
+
* HISTORICAL OR PRIVATE USE ONLY
|
|
6423
|
+
*
|
|
6424
|
+
* This is publicly exposed as a static function for downstream libraries that
|
|
6425
|
+
* don't use the `CloudAssembly`/`CloudArtifact` API, yet still need to read
|
|
6426
|
+
* an artifact's metadata.
|
|
6427
|
+
*
|
|
6428
|
+
* 99% of consumers should just access `artifact.metadata`.
|
|
6429
|
+
*/
|
|
6430
|
+
static readMetadata(assemblyDirectory, x4) {
|
|
6431
|
+
const ret = {};
|
|
6432
|
+
if (x4.additionalMetadataFile) {
|
|
6433
|
+
Object.assign(ret, JSON.parse(fs4.readFileSync(path3.join(assemblyDirectory, x4.additionalMetadataFile), "utf-8")));
|
|
6434
|
+
}
|
|
6435
|
+
for (const [p4, entries] of Object.entries(x4.metadata ?? {})) {
|
|
6436
|
+
if (ret[p4]) {
|
|
6437
|
+
ret[p4].push(...entries);
|
|
6438
|
+
} else {
|
|
6439
|
+
ret[p4] = entries;
|
|
6440
|
+
}
|
|
6441
|
+
}
|
|
6442
|
+
return ret;
|
|
6443
|
+
}
|
|
6413
6444
|
/**
|
|
6414
6445
|
* Returns a subclass of `CloudArtifact` based on the artifact type defined in the artifact manifest.
|
|
6415
6446
|
*
|
|
@@ -6422,6 +6453,12 @@ var init_cloud_artifact = __esm({
|
|
|
6422
6453
|
void assembly, void id, void artifact;
|
|
6423
6454
|
throw new CloudAssemblyError("Implementation not overridden yet");
|
|
6424
6455
|
}
|
|
6456
|
+
/**
|
|
6457
|
+
* Returns the metadata associated with this Cloud Artifact
|
|
6458
|
+
*/
|
|
6459
|
+
get metadata() {
|
|
6460
|
+
return _CloudArtifact.readMetadata(this.assembly.directory, this.manifest);
|
|
6461
|
+
}
|
|
6425
6462
|
/**
|
|
6426
6463
|
* Returns all the artifacts that this artifact depends on.
|
|
6427
6464
|
*/
|
|
@@ -6442,11 +6479,12 @@ var init_cloud_artifact = __esm({
|
|
|
6442
6479
|
* @returns all the metadata entries of a specific type in this artifact.
|
|
6443
6480
|
*/
|
|
6444
6481
|
findMetadataByType(type) {
|
|
6482
|
+
const metadata = this.metadata;
|
|
6445
6483
|
const result = new Array();
|
|
6446
|
-
for (const
|
|
6447
|
-
for (const entry of (
|
|
6484
|
+
for (const p4 of Object.keys(metadata || {})) {
|
|
6485
|
+
for (const entry of (metadata || {})[p4]) {
|
|
6448
6486
|
if (entry.type === type) {
|
|
6449
|
-
result.push({ path:
|
|
6487
|
+
result.push({ path: p4, ...entry });
|
|
6450
6488
|
}
|
|
6451
6489
|
}
|
|
6452
6490
|
}
|
|
@@ -6454,7 +6492,7 @@ var init_cloud_artifact = __esm({
|
|
|
6454
6492
|
}
|
|
6455
6493
|
renderMessages() {
|
|
6456
6494
|
const messages = new Array();
|
|
6457
|
-
for (const [id, metadata] of Object.entries(this.
|
|
6495
|
+
for (const [id, metadata] of Object.entries(this.metadata || {})) {
|
|
6458
6496
|
for (const entry of metadata) {
|
|
6459
6497
|
let level;
|
|
6460
6498
|
switch (entry.type) {
|
|
@@ -6492,12 +6530,12 @@ var asset_manifest_artifact_exports = {};
|
|
|
6492
6530
|
__export(asset_manifest_artifact_exports, {
|
|
6493
6531
|
AssetManifestArtifact: () => AssetManifestArtifact
|
|
6494
6532
|
});
|
|
6495
|
-
var
|
|
6533
|
+
var fs5, path4, ASSET_MANIFEST_ARTIFACT_SYM, AssetManifestArtifact;
|
|
6496
6534
|
var init_asset_manifest_artifact = __esm({
|
|
6497
6535
|
"../@aws-cdk/cloud-assembly-api/lib/artifacts/asset-manifest-artifact.ts"() {
|
|
6498
6536
|
"use strict";
|
|
6499
|
-
|
|
6500
|
-
|
|
6537
|
+
fs5 = __toESM(require("fs"));
|
|
6538
|
+
path4 = __toESM(require("path"));
|
|
6501
6539
|
init_cloud_artifact();
|
|
6502
6540
|
init_error();
|
|
6503
6541
|
ASSET_MANIFEST_ARTIFACT_SYM = /* @__PURE__ */ Symbol.for("@aws-cdk/cx-api.AssetManifestArtifact");
|
|
@@ -6531,7 +6569,7 @@ var init_asset_manifest_artifact = __esm({
|
|
|
6531
6569
|
if (!properties.file) {
|
|
6532
6570
|
throw new CloudAssemblyError('Invalid AssetManifestArtifact. Missing "file" property');
|
|
6533
6571
|
}
|
|
6534
|
-
this.file =
|
|
6572
|
+
this.file = path4.resolve(this.assembly.directory, properties.file);
|
|
6535
6573
|
this.requiresBootstrapStackVersion = properties.requiresBootstrapStackVersion;
|
|
6536
6574
|
this.bootstrapStackVersionSsmParameter = properties.bootstrapStackVersionSsmParameter;
|
|
6537
6575
|
}
|
|
@@ -6542,7 +6580,7 @@ var init_asset_manifest_artifact = __esm({
|
|
|
6542
6580
|
if (this._contents !== void 0) {
|
|
6543
6581
|
return this._contents;
|
|
6544
6582
|
}
|
|
6545
|
-
const contents = this._contents = JSON.parse(
|
|
6583
|
+
const contents = this._contents = JSON.parse(fs5.readFileSync(this.file, "utf-8"));
|
|
6546
6584
|
return contents;
|
|
6547
6585
|
}
|
|
6548
6586
|
};
|
|
@@ -6607,12 +6645,12 @@ var cloudformation_artifact_exports = {};
|
|
|
6607
6645
|
__export(cloudformation_artifact_exports, {
|
|
6608
6646
|
CloudFormationStackArtifact: () => CloudFormationStackArtifact
|
|
6609
6647
|
});
|
|
6610
|
-
var
|
|
6648
|
+
var fs6, path5, cxschema2, CLOUDFORMATION_STACK_ARTIFACT_SYM, CloudFormationStackArtifact;
|
|
6611
6649
|
var init_cloudformation_artifact = __esm({
|
|
6612
6650
|
"../@aws-cdk/cloud-assembly-api/lib/artifacts/cloudformation-artifact.ts"() {
|
|
6613
6651
|
"use strict";
|
|
6614
|
-
|
|
6615
|
-
|
|
6652
|
+
fs6 = __toESM(require("fs"));
|
|
6653
|
+
path5 = __toESM(require("path"));
|
|
6616
6654
|
cxschema2 = __toESM(require_lib2());
|
|
6617
6655
|
init_cloud_artifact();
|
|
6618
6656
|
init_environment();
|
|
@@ -6676,14 +6714,14 @@ var init_cloudformation_artifact = __esm({
|
|
|
6676
6714
|
* Full path to the template file
|
|
6677
6715
|
*/
|
|
6678
6716
|
get templateFullPath() {
|
|
6679
|
-
return
|
|
6717
|
+
return path5.join(this.assembly.directory, this.templateFile);
|
|
6680
6718
|
}
|
|
6681
6719
|
/**
|
|
6682
6720
|
* The CloudFormation template for this stack.
|
|
6683
6721
|
*/
|
|
6684
6722
|
get template() {
|
|
6685
6723
|
if (this._template === void 0) {
|
|
6686
|
-
this._template = JSON.parse(
|
|
6724
|
+
this._template = JSON.parse(fs6.readFileSync(this.templateFullPath, "utf-8"));
|
|
6687
6725
|
}
|
|
6688
6726
|
return this._template;
|
|
6689
6727
|
}
|
|
@@ -6701,11 +6739,11 @@ var nested_cloud_assembly_artifact_exports = {};
|
|
|
6701
6739
|
__export(nested_cloud_assembly_artifact_exports, {
|
|
6702
6740
|
NestedCloudAssemblyArtifact: () => NestedCloudAssemblyArtifact
|
|
6703
6741
|
});
|
|
6704
|
-
var
|
|
6742
|
+
var path6, NESTED_CLOUD_ASSEMBLY_SYM, NestedCloudAssemblyArtifact;
|
|
6705
6743
|
var init_nested_cloud_assembly_artifact = __esm({
|
|
6706
6744
|
"../@aws-cdk/cloud-assembly-api/lib/artifacts/nested-cloud-assembly-artifact.ts"() {
|
|
6707
6745
|
"use strict";
|
|
6708
|
-
|
|
6746
|
+
path6 = __toESM(require("path"));
|
|
6709
6747
|
init_cloud_artifact();
|
|
6710
6748
|
NESTED_CLOUD_ASSEMBLY_SYM = /* @__PURE__ */ Symbol.for("@aws-cdk/cx-api.NestedCloudAssemblyArtifact");
|
|
6711
6749
|
NestedCloudAssemblyArtifact = class extends CloudArtifact {
|
|
@@ -6742,7 +6780,7 @@ var init_nested_cloud_assembly_artifact = __esm({
|
|
|
6742
6780
|
* Full path to the nested assembly directory
|
|
6743
6781
|
*/
|
|
6744
6782
|
get fullPath() {
|
|
6745
|
-
return
|
|
6783
|
+
return path6.join(this.assembly.directory, this.directoryName);
|
|
6746
6784
|
}
|
|
6747
6785
|
};
|
|
6748
6786
|
Object.defineProperty(NestedCloudAssemblyArtifact.prototype, NESTED_CLOUD_ASSEMBLY_SYM, {
|
|
@@ -6893,26 +6931,26 @@ function determineOutputDirectory(outdir) {
|
|
|
6893
6931
|
if (outdir) {
|
|
6894
6932
|
return outdir;
|
|
6895
6933
|
}
|
|
6896
|
-
const tmpDir =
|
|
6934
|
+
const tmpDir = fs7.mkdtempSync(path7.join(fs7.realpathSync(os3.tmpdir()), "cdk.out"));
|
|
6897
6935
|
TEMPORARY_ASSEMBLY_DIRS.push(tmpDir);
|
|
6898
6936
|
return outdir ?? tmpDir;
|
|
6899
6937
|
}
|
|
6900
6938
|
function ensureDirSync(dir) {
|
|
6901
|
-
if (
|
|
6902
|
-
if (!
|
|
6939
|
+
if (fs7.existsSync(dir)) {
|
|
6940
|
+
if (!fs7.statSync(dir).isDirectory()) {
|
|
6903
6941
|
throw new CloudAssemblyError(`${dir} must be a directory`);
|
|
6904
6942
|
}
|
|
6905
6943
|
} else {
|
|
6906
|
-
|
|
6944
|
+
fs7.mkdirSync(dir, { recursive: true });
|
|
6907
6945
|
}
|
|
6908
6946
|
}
|
|
6909
|
-
var
|
|
6947
|
+
var fs7, os3, path7, cxschema4, CLOUD_ASSEMBLY_SYMBOL, MANIFEST_FILE, CloudAssembly, CloudAssemblyBuilder, TEMPORARY_ASSEMBLY_DIRS;
|
|
6910
6948
|
var init_cloud_assembly2 = __esm({
|
|
6911
6949
|
"../@aws-cdk/cloud-assembly-api/lib/cloud-assembly.ts"() {
|
|
6912
6950
|
"use strict";
|
|
6913
|
-
|
|
6951
|
+
fs7 = __toESM(require("fs"));
|
|
6914
6952
|
os3 = __toESM(require("os"));
|
|
6915
|
-
|
|
6953
|
+
path7 = __toESM(require("path"));
|
|
6916
6954
|
cxschema4 = __toESM(require_lib2());
|
|
6917
6955
|
init_cloudformation_artifact();
|
|
6918
6956
|
init_nested_cloud_assembly_artifact();
|
|
@@ -6976,7 +7014,7 @@ var init_cloud_assembly2 = __esm({
|
|
|
6976
7014
|
*/
|
|
6977
7015
|
static cleanupTemporaryDirectories() {
|
|
6978
7016
|
for (const dir of TEMPORARY_ASSEMBLY_DIRS) {
|
|
6979
|
-
|
|
7017
|
+
fs7.rmSync(dir, { recursive: true, force: true });
|
|
6980
7018
|
}
|
|
6981
7019
|
TEMPORARY_ASSEMBLY_DIRS.splice(0, TEMPORARY_ASSEMBLY_DIRS.length);
|
|
6982
7020
|
}
|
|
@@ -6986,7 +7024,7 @@ var init_cloud_assembly2 = __esm({
|
|
|
6986
7024
|
*/
|
|
6987
7025
|
constructor(directory, loadOptions) {
|
|
6988
7026
|
this.directory = directory;
|
|
6989
|
-
this.manifest = cxschema4.Manifest.loadAssemblyManifest(
|
|
7027
|
+
this.manifest = cxschema4.Manifest.loadAssemblyManifest(path7.join(directory, MANIFEST_FILE), loadOptions);
|
|
6990
7028
|
this.version = this.manifest.version;
|
|
6991
7029
|
this.artifacts = this.renderArtifacts(loadOptions?.topoSort ?? true);
|
|
6992
7030
|
this.runtime = this.manifest.runtime || { libraries: {} };
|
|
@@ -7187,9 +7225,9 @@ var init_cloud_assembly2 = __esm({
|
|
|
7187
7225
|
missing: this.missing.length > 0 ? this.missing : void 0
|
|
7188
7226
|
};
|
|
7189
7227
|
manifest = filterUndefined(manifest);
|
|
7190
|
-
const manifestFilePath =
|
|
7228
|
+
const manifestFilePath = path7.join(this.outdir, MANIFEST_FILE);
|
|
7191
7229
|
cxschema4.Manifest.saveAssemblyManifest(manifest, manifestFilePath);
|
|
7192
|
-
|
|
7230
|
+
fs7.writeFileSync(path7.join(this.outdir, "cdk.out"), JSON.stringify({ version: manifest.version }));
|
|
7193
7231
|
return new CloudAssembly(this.outdir);
|
|
7194
7232
|
}
|
|
7195
7233
|
/**
|
|
@@ -7197,7 +7235,7 @@ var init_cloud_assembly2 = __esm({
|
|
|
7197
7235
|
*/
|
|
7198
7236
|
createNestedAssembly(artifactId, displayName) {
|
|
7199
7237
|
const directoryName = artifactId;
|
|
7200
|
-
const innerAsmDir =
|
|
7238
|
+
const innerAsmDir = path7.join(this.outdir, directoryName);
|
|
7201
7239
|
this.addArtifact(artifactId, {
|
|
7202
7240
|
type: cxschema4.ArtifactType.NESTED_CLOUD_ASSEMBLY,
|
|
7203
7241
|
properties: {
|
|
@@ -7215,7 +7253,7 @@ var init_cloud_assembly2 = __esm({
|
|
|
7215
7253
|
* Delete the cloud assembly directory
|
|
7216
7254
|
*/
|
|
7217
7255
|
delete() {
|
|
7218
|
-
|
|
7256
|
+
fs7.rmSync(this.outdir, { recursive: true, force: true });
|
|
7219
7257
|
}
|
|
7220
7258
|
};
|
|
7221
7259
|
__name(filterUndefined, "filterUndefined");
|
|
@@ -7503,11 +7541,11 @@ async function repositoryUri(ecr, repositoryName) {
|
|
|
7503
7541
|
return void 0;
|
|
7504
7542
|
}
|
|
7505
7543
|
}
|
|
7506
|
-
var
|
|
7544
|
+
var path8, ContainerImageAssetHandler, ContainerImageBuilder;
|
|
7507
7545
|
var init_container_images = __esm({
|
|
7508
7546
|
"../@aws-cdk/cdk-assets-lib/lib/private/handlers/container-images.ts"() {
|
|
7509
7547
|
"use strict";
|
|
7510
|
-
|
|
7548
|
+
path8 = __toESM(require("path"));
|
|
7511
7549
|
init_client_options();
|
|
7512
7550
|
init_progress();
|
|
7513
7551
|
init_placeholders2();
|
|
@@ -7678,7 +7716,7 @@ var init_container_images = __esm({
|
|
|
7678
7716
|
`'directory' is expected in the DockerImage asset source, got: ${JSON.stringify(source)}`
|
|
7679
7717
|
);
|
|
7680
7718
|
}
|
|
7681
|
-
const fullPath =
|
|
7719
|
+
const fullPath = path8.resolve(this.workDir, source.directory);
|
|
7682
7720
|
this.host.emitMessage("build" /* BUILD */, `Building Docker image at ${fullPath}`);
|
|
7683
7721
|
await this.docker.build({
|
|
7684
7722
|
directory: fullPath,
|
|
@@ -7748,11 +7786,11 @@ var require_Mime = __commonJS({
|
|
|
7748
7786
|
}
|
|
7749
7787
|
}
|
|
7750
7788
|
};
|
|
7751
|
-
Mime.prototype.getType = function(
|
|
7752
|
-
|
|
7753
|
-
let last =
|
|
7789
|
+
Mime.prototype.getType = function(path14) {
|
|
7790
|
+
path14 = String(path14);
|
|
7791
|
+
let last = path14.replace(/^.*[/\\]/, "").toLowerCase();
|
|
7754
7792
|
let ext2 = last.replace(/^.*\./, "").toLowerCase();
|
|
7755
|
-
let hasPath = last.length <
|
|
7793
|
+
let hasPath = last.length < path14.length;
|
|
7756
7794
|
let hasDot = ext2.length < last.length - 1;
|
|
7757
7795
|
return (hasDot || !hasPath) && this._types[ext2] || null;
|
|
7758
7796
|
};
|
|
@@ -8019,10 +8057,10 @@ var init_esm2 = __esm({
|
|
|
8019
8057
|
}
|
|
8020
8058
|
});
|
|
8021
8059
|
|
|
8022
|
-
// ../../node_modules/minimatch/dist/esm/assert-valid-pattern.js
|
|
8060
|
+
// ../../node_modules/glob/node_modules/minimatch/dist/esm/assert-valid-pattern.js
|
|
8023
8061
|
var MAX_PATTERN_LENGTH, assertValidPattern;
|
|
8024
8062
|
var init_assert_valid_pattern = __esm({
|
|
8025
|
-
"../../node_modules/minimatch/dist/esm/assert-valid-pattern.js"() {
|
|
8063
|
+
"../../node_modules/glob/node_modules/minimatch/dist/esm/assert-valid-pattern.js"() {
|
|
8026
8064
|
MAX_PATTERN_LENGTH = 1024 * 64;
|
|
8027
8065
|
assertValidPattern = /* @__PURE__ */ __name((pattern) => {
|
|
8028
8066
|
if (typeof pattern !== "string") {
|
|
@@ -8035,10 +8073,10 @@ var init_assert_valid_pattern = __esm({
|
|
|
8035
8073
|
}
|
|
8036
8074
|
});
|
|
8037
8075
|
|
|
8038
|
-
// ../../node_modules/minimatch/dist/esm/brace-expressions.js
|
|
8076
|
+
// ../../node_modules/glob/node_modules/minimatch/dist/esm/brace-expressions.js
|
|
8039
8077
|
var posixClasses, braceEscape, regexpEscape, rangesToString, parseClass;
|
|
8040
8078
|
var init_brace_expressions = __esm({
|
|
8041
|
-
"../../node_modules/minimatch/dist/esm/brace-expressions.js"() {
|
|
8079
|
+
"../../node_modules/glob/node_modules/minimatch/dist/esm/brace-expressions.js"() {
|
|
8042
8080
|
posixClasses = {
|
|
8043
8081
|
"[:alnum:]": ["\\p{L}\\p{Nl}\\p{Nd}", true],
|
|
8044
8082
|
"[:alpha:]": ["\\p{L}\\p{Nl}", true],
|
|
@@ -8149,10 +8187,10 @@ var init_brace_expressions = __esm({
|
|
|
8149
8187
|
}
|
|
8150
8188
|
});
|
|
8151
8189
|
|
|
8152
|
-
// ../../node_modules/minimatch/dist/esm/unescape.js
|
|
8190
|
+
// ../../node_modules/glob/node_modules/minimatch/dist/esm/unescape.js
|
|
8153
8191
|
var unescape;
|
|
8154
8192
|
var init_unescape = __esm({
|
|
8155
|
-
"../../node_modules/minimatch/dist/esm/unescape.js"() {
|
|
8193
|
+
"../../node_modules/glob/node_modules/minimatch/dist/esm/unescape.js"() {
|
|
8156
8194
|
unescape = /* @__PURE__ */ __name((s4, { windowsPathsNoEscape = false, magicalBraces = true } = {}) => {
|
|
8157
8195
|
if (magicalBraces) {
|
|
8158
8196
|
return windowsPathsNoEscape ? s4.replace(/\[([^\/\\])\]/g, "$1") : s4.replace(/((?!\\).|^)\[([^\/\\])\]/g, "$1$2").replace(/\\([^\/])/g, "$1");
|
|
@@ -8162,10 +8200,10 @@ var init_unescape = __esm({
|
|
|
8162
8200
|
}
|
|
8163
8201
|
});
|
|
8164
8202
|
|
|
8165
|
-
// ../../node_modules/minimatch/dist/esm/ast.js
|
|
8203
|
+
// ../../node_modules/glob/node_modules/minimatch/dist/esm/ast.js
|
|
8166
8204
|
var types, isExtglobType, startNoTraversal, startNoDot, addPatternStart, justDots, reSpecials, regExpEscape, qmark, star, starNoEmpty, AST;
|
|
8167
8205
|
var init_ast = __esm({
|
|
8168
|
-
"../../node_modules/minimatch/dist/esm/ast.js"() {
|
|
8206
|
+
"../../node_modules/glob/node_modules/minimatch/dist/esm/ast.js"() {
|
|
8169
8207
|
init_brace_expressions();
|
|
8170
8208
|
init_unescape();
|
|
8171
8209
|
types = /* @__PURE__ */ new Set(["!", "?", "+", "*", "@"]);
|
|
@@ -8648,10 +8686,10 @@ var init_ast = __esm({
|
|
|
8648
8686
|
}
|
|
8649
8687
|
});
|
|
8650
8688
|
|
|
8651
|
-
// ../../node_modules/minimatch/dist/esm/escape.js
|
|
8689
|
+
// ../../node_modules/glob/node_modules/minimatch/dist/esm/escape.js
|
|
8652
8690
|
var escape;
|
|
8653
8691
|
var init_escape = __esm({
|
|
8654
|
-
"../../node_modules/minimatch/dist/esm/escape.js"() {
|
|
8692
|
+
"../../node_modules/glob/node_modules/minimatch/dist/esm/escape.js"() {
|
|
8655
8693
|
escape = /* @__PURE__ */ __name((s4, { windowsPathsNoEscape = false, magicalBraces = false } = {}) => {
|
|
8656
8694
|
if (magicalBraces) {
|
|
8657
8695
|
return windowsPathsNoEscape ? s4.replace(/[?*()[\]{}]/g, "[$&]") : s4.replace(/[?*()[\]\\{}]/g, "\\$&");
|
|
@@ -8661,10 +8699,10 @@ var init_escape = __esm({
|
|
|
8661
8699
|
}
|
|
8662
8700
|
});
|
|
8663
8701
|
|
|
8664
|
-
// ../../node_modules/minimatch/dist/esm/index.js
|
|
8665
|
-
var minimatch, starDotExtRE, starDotExtTest, starDotExtTestDot, starDotExtTestNocase, starDotExtTestNocaseDot, starDotStarRE, starDotStarTest, starDotStarTestDot, dotStarRE, dotStarTest, starRE, starTest, starTestDot, qmarksRE, qmarksTestNocase, qmarksTestNocaseDot, qmarksTestDot, qmarksTest, qmarksTestNoExt, qmarksTestNoExtDot, defaultPlatform,
|
|
8702
|
+
// ../../node_modules/glob/node_modules/minimatch/dist/esm/index.js
|
|
8703
|
+
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;
|
|
8666
8704
|
var init_esm3 = __esm({
|
|
8667
|
-
"../../node_modules/minimatch/dist/esm/index.js"() {
|
|
8705
|
+
"../../node_modules/glob/node_modules/minimatch/dist/esm/index.js"() {
|
|
8668
8706
|
init_esm2();
|
|
8669
8707
|
init_assert_valid_pattern();
|
|
8670
8708
|
init_ast();
|
|
@@ -8731,11 +8769,11 @@ var init_esm3 = __esm({
|
|
|
8731
8769
|
return (f4) => f4.length === len && f4 !== "." && f4 !== "..";
|
|
8732
8770
|
}, "qmarksTestNoExtDot");
|
|
8733
8771
|
defaultPlatform = typeof process === "object" && process ? typeof process.env === "object" && process.env && process.env.__MINIMATCH_TESTING_PLATFORM__ || process.platform : "posix";
|
|
8734
|
-
|
|
8772
|
+
path9 = {
|
|
8735
8773
|
win32: { sep: "\\" },
|
|
8736
8774
|
posix: { sep: "/" }
|
|
8737
8775
|
};
|
|
8738
|
-
sep = defaultPlatform === "win32" ?
|
|
8776
|
+
sep = defaultPlatform === "win32" ? path9.win32.sep : path9.posix.sep;
|
|
8739
8777
|
minimatch.sep = sep;
|
|
8740
8778
|
GLOBSTAR = /* @__PURE__ */ Symbol("globstar **");
|
|
8741
8779
|
minimatch.GLOBSTAR = GLOBSTAR;
|
|
@@ -12032,12 +12070,12 @@ var init_esm6 = __esm({
|
|
|
12032
12070
|
/**
|
|
12033
12071
|
* Get the Path object referenced by the string path, resolved from this Path
|
|
12034
12072
|
*/
|
|
12035
|
-
resolve(
|
|
12036
|
-
if (!
|
|
12073
|
+
resolve(path14) {
|
|
12074
|
+
if (!path14) {
|
|
12037
12075
|
return this;
|
|
12038
12076
|
}
|
|
12039
|
-
const rootPath = this.getRootString(
|
|
12040
|
-
const dir =
|
|
12077
|
+
const rootPath = this.getRootString(path14);
|
|
12078
|
+
const dir = path14.substring(rootPath.length);
|
|
12041
12079
|
const dirParts = dir.split(this.splitSep);
|
|
12042
12080
|
const result = rootPath ? this.getRoot(rootPath).#resolveParts(dirParts) : this.#resolveParts(dirParts);
|
|
12043
12081
|
return result;
|
|
@@ -12792,8 +12830,8 @@ var init_esm6 = __esm({
|
|
|
12792
12830
|
/**
|
|
12793
12831
|
* @internal
|
|
12794
12832
|
*/
|
|
12795
|
-
getRootString(
|
|
12796
|
-
return import_node_path.win32.parse(
|
|
12833
|
+
getRootString(path14) {
|
|
12834
|
+
return import_node_path.win32.parse(path14).root;
|
|
12797
12835
|
}
|
|
12798
12836
|
/**
|
|
12799
12837
|
* @internal
|
|
@@ -12842,8 +12880,8 @@ var init_esm6 = __esm({
|
|
|
12842
12880
|
/**
|
|
12843
12881
|
* @internal
|
|
12844
12882
|
*/
|
|
12845
|
-
getRootString(
|
|
12846
|
-
return
|
|
12883
|
+
getRootString(path14) {
|
|
12884
|
+
return path14.startsWith("/") ? "/" : "";
|
|
12847
12885
|
}
|
|
12848
12886
|
/**
|
|
12849
12887
|
* @internal
|
|
@@ -12895,8 +12933,8 @@ var init_esm6 = __esm({
|
|
|
12895
12933
|
*
|
|
12896
12934
|
* @internal
|
|
12897
12935
|
*/
|
|
12898
|
-
constructor(cwd = process.cwd(), pathImpl, sep2, { nocase, childrenCacheSize = 16 * 1024, fs:
|
|
12899
|
-
this.#fs = fsFromOption(
|
|
12936
|
+
constructor(cwd = process.cwd(), pathImpl, sep2, { nocase, childrenCacheSize = 16 * 1024, fs: fs13 = defaultFS } = {}) {
|
|
12937
|
+
this.#fs = fsFromOption(fs13);
|
|
12900
12938
|
if (cwd instanceof URL || cwd.startsWith("file://")) {
|
|
12901
12939
|
cwd = (0, import_node_url.fileURLToPath)(cwd);
|
|
12902
12940
|
}
|
|
@@ -12935,11 +12973,11 @@ var init_esm6 = __esm({
|
|
|
12935
12973
|
/**
|
|
12936
12974
|
* Get the depth of a provided path, string, or the cwd
|
|
12937
12975
|
*/
|
|
12938
|
-
depth(
|
|
12939
|
-
if (typeof
|
|
12940
|
-
|
|
12976
|
+
depth(path14 = this.cwd) {
|
|
12977
|
+
if (typeof path14 === "string") {
|
|
12978
|
+
path14 = this.cwd.resolve(path14);
|
|
12941
12979
|
}
|
|
12942
|
-
return
|
|
12980
|
+
return path14.depth();
|
|
12943
12981
|
}
|
|
12944
12982
|
/**
|
|
12945
12983
|
* Return the cache of child entries. Exposed so subclasses can create
|
|
@@ -13426,9 +13464,9 @@ var init_esm6 = __esm({
|
|
|
13426
13464
|
process2();
|
|
13427
13465
|
return results;
|
|
13428
13466
|
}
|
|
13429
|
-
chdir(
|
|
13467
|
+
chdir(path14 = this.cwd) {
|
|
13430
13468
|
const oldCwd = this.cwd;
|
|
13431
|
-
this.cwd = typeof
|
|
13469
|
+
this.cwd = typeof path14 === "string" ? this.cwd.resolve(path14) : path14;
|
|
13432
13470
|
this.cwd[setAsCwd](oldCwd);
|
|
13433
13471
|
}
|
|
13434
13472
|
};
|
|
@@ -13457,8 +13495,8 @@ var init_esm6 = __esm({
|
|
|
13457
13495
|
/**
|
|
13458
13496
|
* @internal
|
|
13459
13497
|
*/
|
|
13460
|
-
newRoot(
|
|
13461
|
-
return new PathWin32(this.rootPath, IFDIR, void 0, this.roots, this.nocase, this.childrenCache(), { fs:
|
|
13498
|
+
newRoot(fs13) {
|
|
13499
|
+
return new PathWin32(this.rootPath, IFDIR, void 0, this.roots, this.nocase, this.childrenCache(), { fs: fs13 });
|
|
13462
13500
|
}
|
|
13463
13501
|
/**
|
|
13464
13502
|
* Return true if the provided path string is an absolute path
|
|
@@ -13489,8 +13527,8 @@ var init_esm6 = __esm({
|
|
|
13489
13527
|
/**
|
|
13490
13528
|
* @internal
|
|
13491
13529
|
*/
|
|
13492
|
-
newRoot(
|
|
13493
|
-
return new PathPosix(this.rootPath, IFDIR, void 0, this.roots, this.nocase, this.childrenCache(), { fs:
|
|
13530
|
+
newRoot(fs13) {
|
|
13531
|
+
return new PathPosix(this.rootPath, IFDIR, void 0, this.roots, this.nocase, this.childrenCache(), { fs: fs13 });
|
|
13494
13532
|
}
|
|
13495
13533
|
/**
|
|
13496
13534
|
* Return true if the provided path string is an absolute path
|
|
@@ -13824,8 +13862,8 @@ var init_processor = __esm({
|
|
|
13824
13862
|
}
|
|
13825
13863
|
// match, absolute, ifdir
|
|
13826
13864
|
entries() {
|
|
13827
|
-
return [...this.store.entries()].map(([
|
|
13828
|
-
|
|
13865
|
+
return [...this.store.entries()].map(([path14, n4]) => [
|
|
13866
|
+
path14,
|
|
13829
13867
|
!!(n4 & 2),
|
|
13830
13868
|
!!(n4 & 1)
|
|
13831
13869
|
]);
|
|
@@ -14047,9 +14085,9 @@ var init_walker = __esm({
|
|
|
14047
14085
|
signal;
|
|
14048
14086
|
maxDepth;
|
|
14049
14087
|
includeChildMatches;
|
|
14050
|
-
constructor(patterns,
|
|
14088
|
+
constructor(patterns, path14, opts) {
|
|
14051
14089
|
this.patterns = patterns;
|
|
14052
|
-
this.path =
|
|
14090
|
+
this.path = path14;
|
|
14053
14091
|
this.opts = opts;
|
|
14054
14092
|
this.#sep = !opts.posix && opts.platform === "win32" ? "\\" : "/";
|
|
14055
14093
|
this.includeChildMatches = opts.includeChildMatches !== false;
|
|
@@ -14068,11 +14106,11 @@ var init_walker = __esm({
|
|
|
14068
14106
|
});
|
|
14069
14107
|
}
|
|
14070
14108
|
}
|
|
14071
|
-
#ignored(
|
|
14072
|
-
return this.seen.has(
|
|
14109
|
+
#ignored(path14) {
|
|
14110
|
+
return this.seen.has(path14) || !!this.#ignore?.ignored?.(path14);
|
|
14073
14111
|
}
|
|
14074
|
-
#childrenIgnored(
|
|
14075
|
-
return !!this.#ignore?.childrenIgnored?.(
|
|
14112
|
+
#childrenIgnored(path14) {
|
|
14113
|
+
return !!this.#ignore?.childrenIgnored?.(path14);
|
|
14076
14114
|
}
|
|
14077
14115
|
// backpressure mechanism
|
|
14078
14116
|
pause() {
|
|
@@ -14290,8 +14328,8 @@ var init_walker = __esm({
|
|
|
14290
14328
|
__name(this, "GlobWalker");
|
|
14291
14329
|
}
|
|
14292
14330
|
matches = /* @__PURE__ */ new Set();
|
|
14293
|
-
constructor(patterns,
|
|
14294
|
-
super(patterns,
|
|
14331
|
+
constructor(patterns, path14, opts) {
|
|
14332
|
+
super(patterns, path14, opts);
|
|
14295
14333
|
}
|
|
14296
14334
|
matchEmit(e4) {
|
|
14297
14335
|
this.matches.add(e4);
|
|
@@ -14331,8 +14369,8 @@ var init_walker = __esm({
|
|
|
14331
14369
|
__name(this, "GlobStream");
|
|
14332
14370
|
}
|
|
14333
14371
|
results;
|
|
14334
|
-
constructor(patterns,
|
|
14335
|
-
super(patterns,
|
|
14372
|
+
constructor(patterns, path14, opts) {
|
|
14373
|
+
super(patterns, path14, opts);
|
|
14336
14374
|
this.results = new Minipass({
|
|
14337
14375
|
signal: this.signal,
|
|
14338
14376
|
objectMode: true
|
|
@@ -14904,8 +14942,8 @@ var require_minimatch = __commonJS({
|
|
|
14904
14942
|
return new Minimatch2(pattern, options).match(p4);
|
|
14905
14943
|
};
|
|
14906
14944
|
module2.exports = minimatch2;
|
|
14907
|
-
var
|
|
14908
|
-
minimatch2.sep =
|
|
14945
|
+
var path14 = require_path();
|
|
14946
|
+
minimatch2.sep = path14.sep;
|
|
14909
14947
|
var GLOBSTAR2 = /* @__PURE__ */ Symbol("globstar **");
|
|
14910
14948
|
minimatch2.GLOBSTAR = GLOBSTAR2;
|
|
14911
14949
|
var expand2 = require_brace_expansion();
|
|
@@ -15420,8 +15458,8 @@ var require_minimatch = __commonJS({
|
|
|
15420
15458
|
if (this.empty) return f4 === "";
|
|
15421
15459
|
if (f4 === "/" && partial) return true;
|
|
15422
15460
|
const options = this.options;
|
|
15423
|
-
if (
|
|
15424
|
-
f4 = f4.split(
|
|
15461
|
+
if (path14.sep !== "/") {
|
|
15462
|
+
f4 = f4.split(path14.sep).join("/");
|
|
15425
15463
|
}
|
|
15426
15464
|
f4 = f4.split(slashSplit);
|
|
15427
15465
|
this.debug(this.pattern, "split", f4);
|
|
@@ -15459,13 +15497,13 @@ var require_minimatch = __commonJS({
|
|
|
15459
15497
|
var require_readdir_glob = __commonJS({
|
|
15460
15498
|
"../../node_modules/readdir-glob/index.js"(exports2, module2) {
|
|
15461
15499
|
module2.exports = readdirGlob;
|
|
15462
|
-
var
|
|
15500
|
+
var fs13 = require("fs");
|
|
15463
15501
|
var { EventEmitter: EventEmitter2 } = require("events");
|
|
15464
15502
|
var { Minimatch: Minimatch2 } = require_minimatch();
|
|
15465
15503
|
var { resolve: resolve6 } = require("path");
|
|
15466
15504
|
function readdir2(dir, strict) {
|
|
15467
15505
|
return new Promise((resolve7, reject) => {
|
|
15468
|
-
|
|
15506
|
+
fs13.readdir(dir, { withFileTypes: true }, (err, files) => {
|
|
15469
15507
|
if (err) {
|
|
15470
15508
|
switch (err.code) {
|
|
15471
15509
|
case "ENOTDIR":
|
|
@@ -15499,7 +15537,7 @@ var require_readdir_glob = __commonJS({
|
|
|
15499
15537
|
__name(readdir2, "readdir");
|
|
15500
15538
|
function stat(file, followSymlinks) {
|
|
15501
15539
|
return new Promise((resolve7, reject) => {
|
|
15502
|
-
const statFunc = followSymlinks ?
|
|
15540
|
+
const statFunc = followSymlinks ? fs13.stat : fs13.lstat;
|
|
15503
15541
|
statFunc(file, (err, stats) => {
|
|
15504
15542
|
if (err) {
|
|
15505
15543
|
switch (err.code) {
|
|
@@ -15521,8 +15559,8 @@ var require_readdir_glob = __commonJS({
|
|
|
15521
15559
|
});
|
|
15522
15560
|
}
|
|
15523
15561
|
__name(stat, "stat");
|
|
15524
|
-
async function* exploreWalkAsync(dir,
|
|
15525
|
-
let files = await readdir2(
|
|
15562
|
+
async function* exploreWalkAsync(dir, path14, followSymlinks, useStat, shouldSkip, strict) {
|
|
15563
|
+
let files = await readdir2(path14 + dir, strict);
|
|
15526
15564
|
for (const file of files) {
|
|
15527
15565
|
let name = file.name;
|
|
15528
15566
|
if (name === void 0) {
|
|
@@ -15531,7 +15569,7 @@ var require_readdir_glob = __commonJS({
|
|
|
15531
15569
|
}
|
|
15532
15570
|
const filename = dir + "/" + name;
|
|
15533
15571
|
const relative = filename.slice(1);
|
|
15534
|
-
const absolute =
|
|
15572
|
+
const absolute = path14 + "/" + relative;
|
|
15535
15573
|
let stats = null;
|
|
15536
15574
|
if (useStat || followSymlinks) {
|
|
15537
15575
|
stats = await stat(absolute, followSymlinks);
|
|
@@ -15545,7 +15583,7 @@ var require_readdir_glob = __commonJS({
|
|
|
15545
15583
|
if (stats.isDirectory()) {
|
|
15546
15584
|
if (!shouldSkip(relative)) {
|
|
15547
15585
|
yield { relative, absolute, stats };
|
|
15548
|
-
yield* exploreWalkAsync(filename,
|
|
15586
|
+
yield* exploreWalkAsync(filename, path14, followSymlinks, useStat, shouldSkip, false);
|
|
15549
15587
|
}
|
|
15550
15588
|
} else {
|
|
15551
15589
|
yield { relative, absolute, stats };
|
|
@@ -15553,8 +15591,8 @@ var require_readdir_glob = __commonJS({
|
|
|
15553
15591
|
}
|
|
15554
15592
|
}
|
|
15555
15593
|
__name(exploreWalkAsync, "exploreWalkAsync");
|
|
15556
|
-
async function* explore(
|
|
15557
|
-
yield* exploreWalkAsync("",
|
|
15594
|
+
async function* explore(path14, followSymlinks, useStat, shouldSkip) {
|
|
15595
|
+
yield* exploreWalkAsync("", path14, followSymlinks, useStat, shouldSkip, true);
|
|
15558
15596
|
}
|
|
15559
15597
|
__name(explore, "explore");
|
|
15560
15598
|
function readOptions(options) {
|
|
@@ -17726,54 +17764,54 @@ var require_polyfills = __commonJS({
|
|
|
17726
17764
|
}
|
|
17727
17765
|
var chdir;
|
|
17728
17766
|
module2.exports = patch;
|
|
17729
|
-
function patch(
|
|
17767
|
+
function patch(fs13) {
|
|
17730
17768
|
if (constants.hasOwnProperty("O_SYMLINK") && process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)) {
|
|
17731
|
-
patchLchmod(
|
|
17732
|
-
}
|
|
17733
|
-
if (!
|
|
17734
|
-
patchLutimes(
|
|
17735
|
-
}
|
|
17736
|
-
|
|
17737
|
-
|
|
17738
|
-
|
|
17739
|
-
|
|
17740
|
-
|
|
17741
|
-
|
|
17742
|
-
|
|
17743
|
-
|
|
17744
|
-
|
|
17745
|
-
|
|
17746
|
-
|
|
17747
|
-
|
|
17748
|
-
|
|
17749
|
-
|
|
17750
|
-
|
|
17751
|
-
|
|
17752
|
-
|
|
17753
|
-
|
|
17754
|
-
if (
|
|
17755
|
-
|
|
17769
|
+
patchLchmod(fs13);
|
|
17770
|
+
}
|
|
17771
|
+
if (!fs13.lutimes) {
|
|
17772
|
+
patchLutimes(fs13);
|
|
17773
|
+
}
|
|
17774
|
+
fs13.chown = chownFix(fs13.chown);
|
|
17775
|
+
fs13.fchown = chownFix(fs13.fchown);
|
|
17776
|
+
fs13.lchown = chownFix(fs13.lchown);
|
|
17777
|
+
fs13.chmod = chmodFix(fs13.chmod);
|
|
17778
|
+
fs13.fchmod = chmodFix(fs13.fchmod);
|
|
17779
|
+
fs13.lchmod = chmodFix(fs13.lchmod);
|
|
17780
|
+
fs13.chownSync = chownFixSync(fs13.chownSync);
|
|
17781
|
+
fs13.fchownSync = chownFixSync(fs13.fchownSync);
|
|
17782
|
+
fs13.lchownSync = chownFixSync(fs13.lchownSync);
|
|
17783
|
+
fs13.chmodSync = chmodFixSync(fs13.chmodSync);
|
|
17784
|
+
fs13.fchmodSync = chmodFixSync(fs13.fchmodSync);
|
|
17785
|
+
fs13.lchmodSync = chmodFixSync(fs13.lchmodSync);
|
|
17786
|
+
fs13.stat = statFix(fs13.stat);
|
|
17787
|
+
fs13.fstat = statFix(fs13.fstat);
|
|
17788
|
+
fs13.lstat = statFix(fs13.lstat);
|
|
17789
|
+
fs13.statSync = statFixSync(fs13.statSync);
|
|
17790
|
+
fs13.fstatSync = statFixSync(fs13.fstatSync);
|
|
17791
|
+
fs13.lstatSync = statFixSync(fs13.lstatSync);
|
|
17792
|
+
if (fs13.chmod && !fs13.lchmod) {
|
|
17793
|
+
fs13.lchmod = function(path14, mode, cb) {
|
|
17756
17794
|
if (cb) process.nextTick(cb);
|
|
17757
17795
|
};
|
|
17758
|
-
|
|
17796
|
+
fs13.lchmodSync = function() {
|
|
17759
17797
|
};
|
|
17760
17798
|
}
|
|
17761
|
-
if (
|
|
17762
|
-
|
|
17799
|
+
if (fs13.chown && !fs13.lchown) {
|
|
17800
|
+
fs13.lchown = function(path14, uid, gid, cb) {
|
|
17763
17801
|
if (cb) process.nextTick(cb);
|
|
17764
17802
|
};
|
|
17765
|
-
|
|
17803
|
+
fs13.lchownSync = function() {
|
|
17766
17804
|
};
|
|
17767
17805
|
}
|
|
17768
17806
|
if (platform === "win32") {
|
|
17769
|
-
|
|
17807
|
+
fs13.rename = typeof fs13.rename !== "function" ? fs13.rename : (function(fs$rename) {
|
|
17770
17808
|
function rename(from, to, cb) {
|
|
17771
17809
|
var start = Date.now();
|
|
17772
17810
|
var backoff = 0;
|
|
17773
17811
|
fs$rename(from, to, /* @__PURE__ */ __name(function CB(er) {
|
|
17774
17812
|
if (er && (er.code === "EACCES" || er.code === "EPERM" || er.code === "EBUSY") && Date.now() - start < 6e4) {
|
|
17775
17813
|
setTimeout(function() {
|
|
17776
|
-
|
|
17814
|
+
fs13.stat(to, function(stater, st) {
|
|
17777
17815
|
if (stater && stater.code === "ENOENT")
|
|
17778
17816
|
fs$rename(from, to, CB);
|
|
17779
17817
|
else
|
|
@@ -17790,9 +17828,9 @@ var require_polyfills = __commonJS({
|
|
|
17790
17828
|
__name(rename, "rename");
|
|
17791
17829
|
if (Object.setPrototypeOf) Object.setPrototypeOf(rename, fs$rename);
|
|
17792
17830
|
return rename;
|
|
17793
|
-
})(
|
|
17831
|
+
})(fs13.rename);
|
|
17794
17832
|
}
|
|
17795
|
-
|
|
17833
|
+
fs13.read = typeof fs13.read !== "function" ? fs13.read : (function(fs$read) {
|
|
17796
17834
|
function read(fd, buffer, offset, length, position, callback_) {
|
|
17797
17835
|
var callback;
|
|
17798
17836
|
if (callback_ && typeof callback_ === "function") {
|
|
@@ -17800,23 +17838,23 @@ var require_polyfills = __commonJS({
|
|
|
17800
17838
|
callback = /* @__PURE__ */ __name(function(er, _2, __) {
|
|
17801
17839
|
if (er && er.code === "EAGAIN" && eagCounter < 10) {
|
|
17802
17840
|
eagCounter++;
|
|
17803
|
-
return fs$read.call(
|
|
17841
|
+
return fs$read.call(fs13, fd, buffer, offset, length, position, callback);
|
|
17804
17842
|
}
|
|
17805
17843
|
callback_.apply(this, arguments);
|
|
17806
17844
|
}, "callback");
|
|
17807
17845
|
}
|
|
17808
|
-
return fs$read.call(
|
|
17846
|
+
return fs$read.call(fs13, fd, buffer, offset, length, position, callback);
|
|
17809
17847
|
}
|
|
17810
17848
|
__name(read, "read");
|
|
17811
17849
|
if (Object.setPrototypeOf) Object.setPrototypeOf(read, fs$read);
|
|
17812
17850
|
return read;
|
|
17813
|
-
})(
|
|
17814
|
-
|
|
17851
|
+
})(fs13.read);
|
|
17852
|
+
fs13.readSync = typeof fs13.readSync !== "function" ? fs13.readSync : /* @__PURE__ */ (function(fs$readSync) {
|
|
17815
17853
|
return function(fd, buffer, offset, length, position) {
|
|
17816
17854
|
var eagCounter = 0;
|
|
17817
17855
|
while (true) {
|
|
17818
17856
|
try {
|
|
17819
|
-
return fs$readSync.call(
|
|
17857
|
+
return fs$readSync.call(fs13, fd, buffer, offset, length, position);
|
|
17820
17858
|
} catch (er) {
|
|
17821
17859
|
if (er.code === "EAGAIN" && eagCounter < 10) {
|
|
17822
17860
|
eagCounter++;
|
|
@@ -17826,11 +17864,11 @@ var require_polyfills = __commonJS({
|
|
|
17826
17864
|
}
|
|
17827
17865
|
}
|
|
17828
17866
|
};
|
|
17829
|
-
})(
|
|
17830
|
-
function patchLchmod(
|
|
17831
|
-
|
|
17832
|
-
|
|
17833
|
-
|
|
17867
|
+
})(fs13.readSync);
|
|
17868
|
+
function patchLchmod(fs14) {
|
|
17869
|
+
fs14.lchmod = function(path14, mode, callback) {
|
|
17870
|
+
fs14.open(
|
|
17871
|
+
path14,
|
|
17834
17872
|
constants.O_WRONLY | constants.O_SYMLINK,
|
|
17835
17873
|
mode,
|
|
17836
17874
|
function(err, fd) {
|
|
@@ -17838,74 +17876,74 @@ var require_polyfills = __commonJS({
|
|
|
17838
17876
|
if (callback) callback(err);
|
|
17839
17877
|
return;
|
|
17840
17878
|
}
|
|
17841
|
-
|
|
17842
|
-
|
|
17879
|
+
fs14.fchmod(fd, mode, function(err2) {
|
|
17880
|
+
fs14.close(fd, function(err22) {
|
|
17843
17881
|
if (callback) callback(err2 || err22);
|
|
17844
17882
|
});
|
|
17845
17883
|
});
|
|
17846
17884
|
}
|
|
17847
17885
|
);
|
|
17848
17886
|
};
|
|
17849
|
-
|
|
17850
|
-
var fd =
|
|
17887
|
+
fs14.lchmodSync = function(path14, mode) {
|
|
17888
|
+
var fd = fs14.openSync(path14, constants.O_WRONLY | constants.O_SYMLINK, mode);
|
|
17851
17889
|
var threw = true;
|
|
17852
17890
|
var ret;
|
|
17853
17891
|
try {
|
|
17854
|
-
ret =
|
|
17892
|
+
ret = fs14.fchmodSync(fd, mode);
|
|
17855
17893
|
threw = false;
|
|
17856
17894
|
} finally {
|
|
17857
17895
|
if (threw) {
|
|
17858
17896
|
try {
|
|
17859
|
-
|
|
17897
|
+
fs14.closeSync(fd);
|
|
17860
17898
|
} catch (er) {
|
|
17861
17899
|
}
|
|
17862
17900
|
} else {
|
|
17863
|
-
|
|
17901
|
+
fs14.closeSync(fd);
|
|
17864
17902
|
}
|
|
17865
17903
|
}
|
|
17866
17904
|
return ret;
|
|
17867
17905
|
};
|
|
17868
17906
|
}
|
|
17869
17907
|
__name(patchLchmod, "patchLchmod");
|
|
17870
|
-
function patchLutimes(
|
|
17871
|
-
if (constants.hasOwnProperty("O_SYMLINK") &&
|
|
17872
|
-
|
|
17873
|
-
|
|
17908
|
+
function patchLutimes(fs14) {
|
|
17909
|
+
if (constants.hasOwnProperty("O_SYMLINK") && fs14.futimes) {
|
|
17910
|
+
fs14.lutimes = function(path14, at, mt, cb) {
|
|
17911
|
+
fs14.open(path14, constants.O_SYMLINK, function(er, fd) {
|
|
17874
17912
|
if (er) {
|
|
17875
17913
|
if (cb) cb(er);
|
|
17876
17914
|
return;
|
|
17877
17915
|
}
|
|
17878
|
-
|
|
17879
|
-
|
|
17916
|
+
fs14.futimes(fd, at, mt, function(er2) {
|
|
17917
|
+
fs14.close(fd, function(er22) {
|
|
17880
17918
|
if (cb) cb(er2 || er22);
|
|
17881
17919
|
});
|
|
17882
17920
|
});
|
|
17883
17921
|
});
|
|
17884
17922
|
};
|
|
17885
|
-
|
|
17886
|
-
var fd =
|
|
17923
|
+
fs14.lutimesSync = function(path14, at, mt) {
|
|
17924
|
+
var fd = fs14.openSync(path14, constants.O_SYMLINK);
|
|
17887
17925
|
var ret;
|
|
17888
17926
|
var threw = true;
|
|
17889
17927
|
try {
|
|
17890
|
-
ret =
|
|
17928
|
+
ret = fs14.futimesSync(fd, at, mt);
|
|
17891
17929
|
threw = false;
|
|
17892
17930
|
} finally {
|
|
17893
17931
|
if (threw) {
|
|
17894
17932
|
try {
|
|
17895
|
-
|
|
17933
|
+
fs14.closeSync(fd);
|
|
17896
17934
|
} catch (er) {
|
|
17897
17935
|
}
|
|
17898
17936
|
} else {
|
|
17899
|
-
|
|
17937
|
+
fs14.closeSync(fd);
|
|
17900
17938
|
}
|
|
17901
17939
|
}
|
|
17902
17940
|
return ret;
|
|
17903
17941
|
};
|
|
17904
|
-
} else if (
|
|
17905
|
-
|
|
17942
|
+
} else if (fs14.futimes) {
|
|
17943
|
+
fs14.lutimes = function(_a2, _b, _c4, cb) {
|
|
17906
17944
|
if (cb) process.nextTick(cb);
|
|
17907
17945
|
};
|
|
17908
|
-
|
|
17946
|
+
fs14.lutimesSync = function() {
|
|
17909
17947
|
};
|
|
17910
17948
|
}
|
|
17911
17949
|
}
|
|
@@ -17913,7 +17951,7 @@ var require_polyfills = __commonJS({
|
|
|
17913
17951
|
function chmodFix(orig) {
|
|
17914
17952
|
if (!orig) return orig;
|
|
17915
17953
|
return function(target, mode, cb) {
|
|
17916
|
-
return orig.call(
|
|
17954
|
+
return orig.call(fs13, target, mode, function(er) {
|
|
17917
17955
|
if (chownErOk(er)) er = null;
|
|
17918
17956
|
if (cb) cb.apply(this, arguments);
|
|
17919
17957
|
});
|
|
@@ -17924,7 +17962,7 @@ var require_polyfills = __commonJS({
|
|
|
17924
17962
|
if (!orig) return orig;
|
|
17925
17963
|
return function(target, mode) {
|
|
17926
17964
|
try {
|
|
17927
|
-
return orig.call(
|
|
17965
|
+
return orig.call(fs13, target, mode);
|
|
17928
17966
|
} catch (er) {
|
|
17929
17967
|
if (!chownErOk(er)) throw er;
|
|
17930
17968
|
}
|
|
@@ -17934,7 +17972,7 @@ var require_polyfills = __commonJS({
|
|
|
17934
17972
|
function chownFix(orig) {
|
|
17935
17973
|
if (!orig) return orig;
|
|
17936
17974
|
return function(target, uid, gid, cb) {
|
|
17937
|
-
return orig.call(
|
|
17975
|
+
return orig.call(fs13, target, uid, gid, function(er) {
|
|
17938
17976
|
if (chownErOk(er)) er = null;
|
|
17939
17977
|
if (cb) cb.apply(this, arguments);
|
|
17940
17978
|
});
|
|
@@ -17945,7 +17983,7 @@ var require_polyfills = __commonJS({
|
|
|
17945
17983
|
if (!orig) return orig;
|
|
17946
17984
|
return function(target, uid, gid) {
|
|
17947
17985
|
try {
|
|
17948
|
-
return orig.call(
|
|
17986
|
+
return orig.call(fs13, target, uid, gid);
|
|
17949
17987
|
} catch (er) {
|
|
17950
17988
|
if (!chownErOk(er)) throw er;
|
|
17951
17989
|
}
|
|
@@ -17967,14 +18005,14 @@ var require_polyfills = __commonJS({
|
|
|
17967
18005
|
if (cb) cb.apply(this, arguments);
|
|
17968
18006
|
}
|
|
17969
18007
|
__name(callback, "callback");
|
|
17970
|
-
return options ? orig.call(
|
|
18008
|
+
return options ? orig.call(fs13, target, options, callback) : orig.call(fs13, target, callback);
|
|
17971
18009
|
};
|
|
17972
18010
|
}
|
|
17973
18011
|
__name(statFix, "statFix");
|
|
17974
18012
|
function statFixSync(orig) {
|
|
17975
18013
|
if (!orig) return orig;
|
|
17976
18014
|
return function(target, options) {
|
|
17977
|
-
var stats = options ? orig.call(
|
|
18015
|
+
var stats = options ? orig.call(fs13, target, options) : orig.call(fs13, target);
|
|
17978
18016
|
if (stats) {
|
|
17979
18017
|
if (stats.uid < 0) stats.uid += 4294967296;
|
|
17980
18018
|
if (stats.gid < 0) stats.gid += 4294967296;
|
|
@@ -18006,16 +18044,16 @@ var require_legacy_streams = __commonJS({
|
|
|
18006
18044
|
"../../node_modules/graceful-fs/legacy-streams.js"(exports2, module2) {
|
|
18007
18045
|
var Stream2 = require("stream").Stream;
|
|
18008
18046
|
module2.exports = legacy;
|
|
18009
|
-
function legacy(
|
|
18047
|
+
function legacy(fs13) {
|
|
18010
18048
|
return {
|
|
18011
18049
|
ReadStream,
|
|
18012
18050
|
WriteStream
|
|
18013
18051
|
};
|
|
18014
|
-
function ReadStream(
|
|
18015
|
-
if (!(this instanceof ReadStream)) return new ReadStream(
|
|
18052
|
+
function ReadStream(path14, options) {
|
|
18053
|
+
if (!(this instanceof ReadStream)) return new ReadStream(path14, options);
|
|
18016
18054
|
Stream2.call(this);
|
|
18017
18055
|
var self2 = this;
|
|
18018
|
-
this.path =
|
|
18056
|
+
this.path = path14;
|
|
18019
18057
|
this.fd = null;
|
|
18020
18058
|
this.readable = true;
|
|
18021
18059
|
this.paused = false;
|
|
@@ -18049,7 +18087,7 @@ var require_legacy_streams = __commonJS({
|
|
|
18049
18087
|
});
|
|
18050
18088
|
return;
|
|
18051
18089
|
}
|
|
18052
|
-
|
|
18090
|
+
fs13.open(this.path, this.flags, this.mode, function(err, fd) {
|
|
18053
18091
|
if (err) {
|
|
18054
18092
|
self2.emit("error", err);
|
|
18055
18093
|
self2.readable = false;
|
|
@@ -18061,10 +18099,10 @@ var require_legacy_streams = __commonJS({
|
|
|
18061
18099
|
});
|
|
18062
18100
|
}
|
|
18063
18101
|
__name(ReadStream, "ReadStream");
|
|
18064
|
-
function WriteStream(
|
|
18065
|
-
if (!(this instanceof WriteStream)) return new WriteStream(
|
|
18102
|
+
function WriteStream(path14, options) {
|
|
18103
|
+
if (!(this instanceof WriteStream)) return new WriteStream(path14, options);
|
|
18066
18104
|
Stream2.call(this);
|
|
18067
|
-
this.path =
|
|
18105
|
+
this.path = path14;
|
|
18068
18106
|
this.fd = null;
|
|
18069
18107
|
this.writable = true;
|
|
18070
18108
|
this.flags = "w";
|
|
@@ -18089,7 +18127,7 @@ var require_legacy_streams = __commonJS({
|
|
|
18089
18127
|
this.busy = false;
|
|
18090
18128
|
this._queue = [];
|
|
18091
18129
|
if (this.fd === null) {
|
|
18092
|
-
this._open =
|
|
18130
|
+
this._open = fs13.open;
|
|
18093
18131
|
this._queue.push([this._open, this.path, this.flags, this.mode, void 0]);
|
|
18094
18132
|
this.flush();
|
|
18095
18133
|
}
|
|
@@ -18127,7 +18165,7 @@ var require_clone = __commonJS({
|
|
|
18127
18165
|
// ../../node_modules/graceful-fs/graceful-fs.js
|
|
18128
18166
|
var require_graceful_fs = __commonJS({
|
|
18129
18167
|
"../../node_modules/graceful-fs/graceful-fs.js"(exports2, module2) {
|
|
18130
|
-
var
|
|
18168
|
+
var fs13 = require("fs");
|
|
18131
18169
|
var polyfills = require_polyfills();
|
|
18132
18170
|
var legacy = require_legacy_streams();
|
|
18133
18171
|
var clone = require_clone();
|
|
@@ -18161,12 +18199,12 @@ var require_graceful_fs = __commonJS({
|
|
|
18161
18199
|
m4 = "GFS4: " + m4.split(/\n/).join("\nGFS4: ");
|
|
18162
18200
|
console.error(m4);
|
|
18163
18201
|
}, "debug");
|
|
18164
|
-
if (!
|
|
18202
|
+
if (!fs13[gracefulQueue]) {
|
|
18165
18203
|
queue = global[gracefulQueue] || [];
|
|
18166
|
-
publishQueue(
|
|
18167
|
-
|
|
18204
|
+
publishQueue(fs13, queue);
|
|
18205
|
+
fs13.close = (function(fs$close) {
|
|
18168
18206
|
function close(fd, cb) {
|
|
18169
|
-
return fs$close.call(
|
|
18207
|
+
return fs$close.call(fs13, fd, function(err) {
|
|
18170
18208
|
if (!err) {
|
|
18171
18209
|
resetQueue();
|
|
18172
18210
|
}
|
|
@@ -18179,10 +18217,10 @@ var require_graceful_fs = __commonJS({
|
|
|
18179
18217
|
value: fs$close
|
|
18180
18218
|
});
|
|
18181
18219
|
return close;
|
|
18182
|
-
})(
|
|
18183
|
-
|
|
18220
|
+
})(fs13.close);
|
|
18221
|
+
fs13.closeSync = (function(fs$closeSync) {
|
|
18184
18222
|
function closeSync(fd) {
|
|
18185
|
-
fs$closeSync.apply(
|
|
18223
|
+
fs$closeSync.apply(fs13, arguments);
|
|
18186
18224
|
resetQueue();
|
|
18187
18225
|
}
|
|
18188
18226
|
__name(closeSync, "closeSync");
|
|
@@ -18190,38 +18228,38 @@ var require_graceful_fs = __commonJS({
|
|
|
18190
18228
|
value: fs$closeSync
|
|
18191
18229
|
});
|
|
18192
18230
|
return closeSync;
|
|
18193
|
-
})(
|
|
18231
|
+
})(fs13.closeSync);
|
|
18194
18232
|
if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || "")) {
|
|
18195
18233
|
process.on("exit", function() {
|
|
18196
|
-
debug(
|
|
18197
|
-
require("assert").equal(
|
|
18234
|
+
debug(fs13[gracefulQueue]);
|
|
18235
|
+
require("assert").equal(fs13[gracefulQueue].length, 0);
|
|
18198
18236
|
});
|
|
18199
18237
|
}
|
|
18200
18238
|
}
|
|
18201
18239
|
var queue;
|
|
18202
18240
|
if (!global[gracefulQueue]) {
|
|
18203
|
-
publishQueue(global,
|
|
18204
|
-
}
|
|
18205
|
-
module2.exports = patch(clone(
|
|
18206
|
-
if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !
|
|
18207
|
-
module2.exports = patch(
|
|
18208
|
-
|
|
18209
|
-
}
|
|
18210
|
-
function patch(
|
|
18211
|
-
polyfills(
|
|
18212
|
-
|
|
18213
|
-
|
|
18214
|
-
|
|
18215
|
-
var fs$readFile =
|
|
18216
|
-
|
|
18217
|
-
function readFile(
|
|
18241
|
+
publishQueue(global, fs13[gracefulQueue]);
|
|
18242
|
+
}
|
|
18243
|
+
module2.exports = patch(clone(fs13));
|
|
18244
|
+
if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs13.__patched) {
|
|
18245
|
+
module2.exports = patch(fs13);
|
|
18246
|
+
fs13.__patched = true;
|
|
18247
|
+
}
|
|
18248
|
+
function patch(fs14) {
|
|
18249
|
+
polyfills(fs14);
|
|
18250
|
+
fs14.gracefulify = patch;
|
|
18251
|
+
fs14.createReadStream = createReadStream2;
|
|
18252
|
+
fs14.createWriteStream = createWriteStream2;
|
|
18253
|
+
var fs$readFile = fs14.readFile;
|
|
18254
|
+
fs14.readFile = readFile;
|
|
18255
|
+
function readFile(path14, options, cb) {
|
|
18218
18256
|
if (typeof options === "function")
|
|
18219
18257
|
cb = options, options = null;
|
|
18220
|
-
return go$readFile(
|
|
18221
|
-
function go$readFile(
|
|
18222
|
-
return fs$readFile(
|
|
18258
|
+
return go$readFile(path14, options, cb);
|
|
18259
|
+
function go$readFile(path15, options2, cb2, startTime) {
|
|
18260
|
+
return fs$readFile(path15, options2, function(err) {
|
|
18223
18261
|
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
18224
|
-
enqueue([go$readFile, [
|
|
18262
|
+
enqueue([go$readFile, [path15, options2, cb2], err, startTime || Date.now(), Date.now()]);
|
|
18225
18263
|
else {
|
|
18226
18264
|
if (typeof cb2 === "function")
|
|
18227
18265
|
cb2.apply(this, arguments);
|
|
@@ -18231,16 +18269,16 @@ var require_graceful_fs = __commonJS({
|
|
|
18231
18269
|
__name(go$readFile, "go$readFile");
|
|
18232
18270
|
}
|
|
18233
18271
|
__name(readFile, "readFile");
|
|
18234
|
-
var fs$writeFile =
|
|
18235
|
-
|
|
18236
|
-
function writeFile(
|
|
18272
|
+
var fs$writeFile = fs14.writeFile;
|
|
18273
|
+
fs14.writeFile = writeFile;
|
|
18274
|
+
function writeFile(path14, data2, options, cb) {
|
|
18237
18275
|
if (typeof options === "function")
|
|
18238
18276
|
cb = options, options = null;
|
|
18239
|
-
return go$writeFile(
|
|
18240
|
-
function go$writeFile(
|
|
18241
|
-
return fs$writeFile(
|
|
18277
|
+
return go$writeFile(path14, data2, options, cb);
|
|
18278
|
+
function go$writeFile(path15, data3, options2, cb2, startTime) {
|
|
18279
|
+
return fs$writeFile(path15, data3, options2, function(err) {
|
|
18242
18280
|
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
18243
|
-
enqueue([go$writeFile, [
|
|
18281
|
+
enqueue([go$writeFile, [path15, data3, options2, cb2], err, startTime || Date.now(), Date.now()]);
|
|
18244
18282
|
else {
|
|
18245
18283
|
if (typeof cb2 === "function")
|
|
18246
18284
|
cb2.apply(this, arguments);
|
|
@@ -18250,17 +18288,17 @@ var require_graceful_fs = __commonJS({
|
|
|
18250
18288
|
__name(go$writeFile, "go$writeFile");
|
|
18251
18289
|
}
|
|
18252
18290
|
__name(writeFile, "writeFile");
|
|
18253
|
-
var fs$appendFile =
|
|
18291
|
+
var fs$appendFile = fs14.appendFile;
|
|
18254
18292
|
if (fs$appendFile)
|
|
18255
|
-
|
|
18256
|
-
function appendFile(
|
|
18293
|
+
fs14.appendFile = appendFile;
|
|
18294
|
+
function appendFile(path14, data2, options, cb) {
|
|
18257
18295
|
if (typeof options === "function")
|
|
18258
18296
|
cb = options, options = null;
|
|
18259
|
-
return go$appendFile(
|
|
18260
|
-
function go$appendFile(
|
|
18261
|
-
return fs$appendFile(
|
|
18297
|
+
return go$appendFile(path14, data2, options, cb);
|
|
18298
|
+
function go$appendFile(path15, data3, options2, cb2, startTime) {
|
|
18299
|
+
return fs$appendFile(path15, data3, options2, function(err) {
|
|
18262
18300
|
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
18263
|
-
enqueue([go$appendFile, [
|
|
18301
|
+
enqueue([go$appendFile, [path15, data3, options2, cb2], err, startTime || Date.now(), Date.now()]);
|
|
18264
18302
|
else {
|
|
18265
18303
|
if (typeof cb2 === "function")
|
|
18266
18304
|
cb2.apply(this, arguments);
|
|
@@ -18270,9 +18308,9 @@ var require_graceful_fs = __commonJS({
|
|
|
18270
18308
|
__name(go$appendFile, "go$appendFile");
|
|
18271
18309
|
}
|
|
18272
18310
|
__name(appendFile, "appendFile");
|
|
18273
|
-
var fs$copyFile =
|
|
18311
|
+
var fs$copyFile = fs14.copyFile;
|
|
18274
18312
|
if (fs$copyFile)
|
|
18275
|
-
|
|
18313
|
+
fs14.copyFile = copyFile;
|
|
18276
18314
|
function copyFile(src, dest, flags, cb) {
|
|
18277
18315
|
if (typeof flags === "function") {
|
|
18278
18316
|
cb = flags;
|
|
@@ -18292,34 +18330,34 @@ var require_graceful_fs = __commonJS({
|
|
|
18292
18330
|
__name(go$copyFile, "go$copyFile");
|
|
18293
18331
|
}
|
|
18294
18332
|
__name(copyFile, "copyFile");
|
|
18295
|
-
var fs$readdir =
|
|
18296
|
-
|
|
18333
|
+
var fs$readdir = fs14.readdir;
|
|
18334
|
+
fs14.readdir = readdir2;
|
|
18297
18335
|
var noReaddirOptionVersions = /^v[0-5]\./;
|
|
18298
|
-
function readdir2(
|
|
18336
|
+
function readdir2(path14, options, cb) {
|
|
18299
18337
|
if (typeof options === "function")
|
|
18300
18338
|
cb = options, options = null;
|
|
18301
|
-
var go$readdir = noReaddirOptionVersions.test(process.version) ? /* @__PURE__ */ __name(function go$readdir2(
|
|
18302
|
-
return fs$readdir(
|
|
18303
|
-
|
|
18339
|
+
var go$readdir = noReaddirOptionVersions.test(process.version) ? /* @__PURE__ */ __name(function go$readdir2(path15, options2, cb2, startTime) {
|
|
18340
|
+
return fs$readdir(path15, fs$readdirCallback(
|
|
18341
|
+
path15,
|
|
18304
18342
|
options2,
|
|
18305
18343
|
cb2,
|
|
18306
18344
|
startTime
|
|
18307
18345
|
));
|
|
18308
|
-
}, "go$readdir") : /* @__PURE__ */ __name(function go$readdir2(
|
|
18309
|
-
return fs$readdir(
|
|
18310
|
-
|
|
18346
|
+
}, "go$readdir") : /* @__PURE__ */ __name(function go$readdir2(path15, options2, cb2, startTime) {
|
|
18347
|
+
return fs$readdir(path15, options2, fs$readdirCallback(
|
|
18348
|
+
path15,
|
|
18311
18349
|
options2,
|
|
18312
18350
|
cb2,
|
|
18313
18351
|
startTime
|
|
18314
18352
|
));
|
|
18315
18353
|
}, "go$readdir");
|
|
18316
|
-
return go$readdir(
|
|
18317
|
-
function fs$readdirCallback(
|
|
18354
|
+
return go$readdir(path14, options, cb);
|
|
18355
|
+
function fs$readdirCallback(path15, options2, cb2, startTime) {
|
|
18318
18356
|
return function(err, files) {
|
|
18319
18357
|
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
18320
18358
|
enqueue([
|
|
18321
18359
|
go$readdir,
|
|
18322
|
-
[
|
|
18360
|
+
[path15, options2, cb2],
|
|
18323
18361
|
err,
|
|
18324
18362
|
startTime || Date.now(),
|
|
18325
18363
|
Date.now()
|
|
@@ -18336,21 +18374,21 @@ var require_graceful_fs = __commonJS({
|
|
|
18336
18374
|
}
|
|
18337
18375
|
__name(readdir2, "readdir");
|
|
18338
18376
|
if (process.version.substr(0, 4) === "v0.8") {
|
|
18339
|
-
var legStreams = legacy(
|
|
18377
|
+
var legStreams = legacy(fs14);
|
|
18340
18378
|
ReadStream = legStreams.ReadStream;
|
|
18341
18379
|
WriteStream = legStreams.WriteStream;
|
|
18342
18380
|
}
|
|
18343
|
-
var fs$ReadStream =
|
|
18381
|
+
var fs$ReadStream = fs14.ReadStream;
|
|
18344
18382
|
if (fs$ReadStream) {
|
|
18345
18383
|
ReadStream.prototype = Object.create(fs$ReadStream.prototype);
|
|
18346
18384
|
ReadStream.prototype.open = ReadStream$open;
|
|
18347
18385
|
}
|
|
18348
|
-
var fs$WriteStream =
|
|
18386
|
+
var fs$WriteStream = fs14.WriteStream;
|
|
18349
18387
|
if (fs$WriteStream) {
|
|
18350
18388
|
WriteStream.prototype = Object.create(fs$WriteStream.prototype);
|
|
18351
18389
|
WriteStream.prototype.open = WriteStream$open;
|
|
18352
18390
|
}
|
|
18353
|
-
Object.defineProperty(
|
|
18391
|
+
Object.defineProperty(fs14, "ReadStream", {
|
|
18354
18392
|
get: /* @__PURE__ */ __name(function() {
|
|
18355
18393
|
return ReadStream;
|
|
18356
18394
|
}, "get"),
|
|
@@ -18360,7 +18398,7 @@ var require_graceful_fs = __commonJS({
|
|
|
18360
18398
|
enumerable: true,
|
|
18361
18399
|
configurable: true
|
|
18362
18400
|
});
|
|
18363
|
-
Object.defineProperty(
|
|
18401
|
+
Object.defineProperty(fs14, "WriteStream", {
|
|
18364
18402
|
get: /* @__PURE__ */ __name(function() {
|
|
18365
18403
|
return WriteStream;
|
|
18366
18404
|
}, "get"),
|
|
@@ -18371,7 +18409,7 @@ var require_graceful_fs = __commonJS({
|
|
|
18371
18409
|
configurable: true
|
|
18372
18410
|
});
|
|
18373
18411
|
var FileReadStream = ReadStream;
|
|
18374
|
-
Object.defineProperty(
|
|
18412
|
+
Object.defineProperty(fs14, "FileReadStream", {
|
|
18375
18413
|
get: /* @__PURE__ */ __name(function() {
|
|
18376
18414
|
return FileReadStream;
|
|
18377
18415
|
}, "get"),
|
|
@@ -18382,7 +18420,7 @@ var require_graceful_fs = __commonJS({
|
|
|
18382
18420
|
configurable: true
|
|
18383
18421
|
});
|
|
18384
18422
|
var FileWriteStream = WriteStream;
|
|
18385
|
-
Object.defineProperty(
|
|
18423
|
+
Object.defineProperty(fs14, "FileWriteStream", {
|
|
18386
18424
|
get: /* @__PURE__ */ __name(function() {
|
|
18387
18425
|
return FileWriteStream;
|
|
18388
18426
|
}, "get"),
|
|
@@ -18392,7 +18430,7 @@ var require_graceful_fs = __commonJS({
|
|
|
18392
18430
|
enumerable: true,
|
|
18393
18431
|
configurable: true
|
|
18394
18432
|
});
|
|
18395
|
-
function ReadStream(
|
|
18433
|
+
function ReadStream(path14, options) {
|
|
18396
18434
|
if (this instanceof ReadStream)
|
|
18397
18435
|
return fs$ReadStream.apply(this, arguments), this;
|
|
18398
18436
|
else
|
|
@@ -18414,7 +18452,7 @@ var require_graceful_fs = __commonJS({
|
|
|
18414
18452
|
});
|
|
18415
18453
|
}
|
|
18416
18454
|
__name(ReadStream$open, "ReadStream$open");
|
|
18417
|
-
function WriteStream(
|
|
18455
|
+
function WriteStream(path14, options) {
|
|
18418
18456
|
if (this instanceof WriteStream)
|
|
18419
18457
|
return fs$WriteStream.apply(this, arguments), this;
|
|
18420
18458
|
else
|
|
@@ -18434,24 +18472,24 @@ var require_graceful_fs = __commonJS({
|
|
|
18434
18472
|
});
|
|
18435
18473
|
}
|
|
18436
18474
|
__name(WriteStream$open, "WriteStream$open");
|
|
18437
|
-
function createReadStream2(
|
|
18438
|
-
return new
|
|
18475
|
+
function createReadStream2(path14, options) {
|
|
18476
|
+
return new fs14.ReadStream(path14, options);
|
|
18439
18477
|
}
|
|
18440
18478
|
__name(createReadStream2, "createReadStream");
|
|
18441
|
-
function createWriteStream2(
|
|
18442
|
-
return new
|
|
18479
|
+
function createWriteStream2(path14, options) {
|
|
18480
|
+
return new fs14.WriteStream(path14, options);
|
|
18443
18481
|
}
|
|
18444
18482
|
__name(createWriteStream2, "createWriteStream");
|
|
18445
|
-
var fs$open =
|
|
18446
|
-
|
|
18447
|
-
function open(
|
|
18483
|
+
var fs$open = fs14.open;
|
|
18484
|
+
fs14.open = open;
|
|
18485
|
+
function open(path14, flags, mode, cb) {
|
|
18448
18486
|
if (typeof mode === "function")
|
|
18449
18487
|
cb = mode, mode = null;
|
|
18450
|
-
return go$open(
|
|
18451
|
-
function go$open(
|
|
18452
|
-
return fs$open(
|
|
18488
|
+
return go$open(path14, flags, mode, cb);
|
|
18489
|
+
function go$open(path15, flags2, mode2, cb2, startTime) {
|
|
18490
|
+
return fs$open(path15, flags2, mode2, function(err, fd) {
|
|
18453
18491
|
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
18454
|
-
enqueue([go$open, [
|
|
18492
|
+
enqueue([go$open, [path15, flags2, mode2, cb2], err, startTime || Date.now(), Date.now()]);
|
|
18455
18493
|
else {
|
|
18456
18494
|
if (typeof cb2 === "function")
|
|
18457
18495
|
cb2.apply(this, arguments);
|
|
@@ -18461,22 +18499,22 @@ var require_graceful_fs = __commonJS({
|
|
|
18461
18499
|
__name(go$open, "go$open");
|
|
18462
18500
|
}
|
|
18463
18501
|
__name(open, "open");
|
|
18464
|
-
return
|
|
18502
|
+
return fs14;
|
|
18465
18503
|
}
|
|
18466
18504
|
__name(patch, "patch");
|
|
18467
18505
|
function enqueue(elem) {
|
|
18468
18506
|
debug("ENQUEUE", elem[0].name, elem[1]);
|
|
18469
|
-
|
|
18507
|
+
fs13[gracefulQueue].push(elem);
|
|
18470
18508
|
retry();
|
|
18471
18509
|
}
|
|
18472
18510
|
__name(enqueue, "enqueue");
|
|
18473
18511
|
var retryTimer;
|
|
18474
18512
|
function resetQueue() {
|
|
18475
18513
|
var now = Date.now();
|
|
18476
|
-
for (var i4 = 0; i4 <
|
|
18477
|
-
if (
|
|
18478
|
-
|
|
18479
|
-
|
|
18514
|
+
for (var i4 = 0; i4 < fs13[gracefulQueue].length; ++i4) {
|
|
18515
|
+
if (fs13[gracefulQueue][i4].length > 2) {
|
|
18516
|
+
fs13[gracefulQueue][i4][3] = now;
|
|
18517
|
+
fs13[gracefulQueue][i4][4] = now;
|
|
18480
18518
|
}
|
|
18481
18519
|
}
|
|
18482
18520
|
retry();
|
|
@@ -18485,9 +18523,9 @@ var require_graceful_fs = __commonJS({
|
|
|
18485
18523
|
function retry() {
|
|
18486
18524
|
clearTimeout(retryTimer);
|
|
18487
18525
|
retryTimer = void 0;
|
|
18488
|
-
if (
|
|
18526
|
+
if (fs13[gracefulQueue].length === 0)
|
|
18489
18527
|
return;
|
|
18490
|
-
var elem =
|
|
18528
|
+
var elem = fs13[gracefulQueue].shift();
|
|
18491
18529
|
var fn = elem[0];
|
|
18492
18530
|
var args = elem[1];
|
|
18493
18531
|
var err = elem[2];
|
|
@@ -18509,7 +18547,7 @@ var require_graceful_fs = __commonJS({
|
|
|
18509
18547
|
debug("RETRY", fn.name, args);
|
|
18510
18548
|
fn.apply(null, args.concat([startTime]));
|
|
18511
18549
|
} else {
|
|
18512
|
-
|
|
18550
|
+
fs13[gracefulQueue].push(elem);
|
|
18513
18551
|
}
|
|
18514
18552
|
}
|
|
18515
18553
|
if (retryTimer === void 0) {
|
|
@@ -18835,7 +18873,7 @@ var require_BufferList = __commonJS({
|
|
|
18835
18873
|
this.head = this.tail = null;
|
|
18836
18874
|
this.length = 0;
|
|
18837
18875
|
}, "clear");
|
|
18838
|
-
BufferList.prototype.join = /* @__PURE__ */ __name(function
|
|
18876
|
+
BufferList.prototype.join = /* @__PURE__ */ __name(function join10(s4) {
|
|
18839
18877
|
if (this.length === 0) return "";
|
|
18840
18878
|
var p4 = this.head;
|
|
18841
18879
|
var ret = "" + p4.data;
|
|
@@ -20671,22 +20709,22 @@ var require_lazystream = __commonJS({
|
|
|
20671
20709
|
// ../../node_modules/normalize-path/index.js
|
|
20672
20710
|
var require_normalize_path = __commonJS({
|
|
20673
20711
|
"../../node_modules/normalize-path/index.js"(exports2, module2) {
|
|
20674
|
-
module2.exports = function(
|
|
20675
|
-
if (typeof
|
|
20712
|
+
module2.exports = function(path14, stripTrailing) {
|
|
20713
|
+
if (typeof path14 !== "string") {
|
|
20676
20714
|
throw new TypeError("expected path to be a string");
|
|
20677
20715
|
}
|
|
20678
|
-
if (
|
|
20679
|
-
var len =
|
|
20680
|
-
if (len <= 1) return
|
|
20716
|
+
if (path14 === "\\" || path14 === "/") return "/";
|
|
20717
|
+
var len = path14.length;
|
|
20718
|
+
if (len <= 1) return path14;
|
|
20681
20719
|
var prefix = "";
|
|
20682
|
-
if (len > 4 &&
|
|
20683
|
-
var ch =
|
|
20684
|
-
if ((ch === "?" || ch === ".") &&
|
|
20685
|
-
|
|
20720
|
+
if (len > 4 && path14[3] === "\\") {
|
|
20721
|
+
var ch = path14[2];
|
|
20722
|
+
if ((ch === "?" || ch === ".") && path14.slice(0, 2) === "\\\\") {
|
|
20723
|
+
path14 = path14.slice(2);
|
|
20686
20724
|
prefix = "//";
|
|
20687
20725
|
}
|
|
20688
20726
|
}
|
|
20689
|
-
var segs =
|
|
20727
|
+
var segs = path14.split(/[/\\]+/);
|
|
20690
20728
|
if (stripTrailing !== false && segs[segs.length - 1] === "") {
|
|
20691
20729
|
segs.pop();
|
|
20692
20730
|
}
|
|
@@ -29715,11 +29753,11 @@ var require_commonjs = __commonJS({
|
|
|
29715
29753
|
return (f4) => f4.length === len && f4 !== "." && f4 !== "..";
|
|
29716
29754
|
}, "qmarksTestNoExtDot");
|
|
29717
29755
|
var defaultPlatform4 = typeof process === "object" && process ? typeof process.env === "object" && process.env && process.env.__MINIMATCH_TESTING_PLATFORM__ || process.platform : "posix";
|
|
29718
|
-
var
|
|
29756
|
+
var path14 = {
|
|
29719
29757
|
win32: { sep: "\\" },
|
|
29720
29758
|
posix: { sep: "/" }
|
|
29721
29759
|
};
|
|
29722
|
-
exports2.sep = defaultPlatform4 === "win32" ?
|
|
29760
|
+
exports2.sep = defaultPlatform4 === "win32" ? path14.win32.sep : path14.posix.sep;
|
|
29723
29761
|
exports2.minimatch.sep = exports2.sep;
|
|
29724
29762
|
exports2.GLOBSTAR = /* @__PURE__ */ Symbol("globstar **");
|
|
29725
29763
|
exports2.minimatch.GLOBSTAR = exports2.GLOBSTAR;
|
|
@@ -33008,12 +33046,12 @@ var require_commonjs4 = __commonJS({
|
|
|
33008
33046
|
/**
|
|
33009
33047
|
* Get the Path object referenced by the string path, resolved from this Path
|
|
33010
33048
|
*/
|
|
33011
|
-
resolve(
|
|
33012
|
-
if (!
|
|
33049
|
+
resolve(path14) {
|
|
33050
|
+
if (!path14) {
|
|
33013
33051
|
return this;
|
|
33014
33052
|
}
|
|
33015
|
-
const rootPath = this.getRootString(
|
|
33016
|
-
const dir =
|
|
33053
|
+
const rootPath = this.getRootString(path14);
|
|
33054
|
+
const dir = path14.substring(rootPath.length);
|
|
33017
33055
|
const dirParts = dir.split(this.splitSep);
|
|
33018
33056
|
const result = rootPath ? this.getRoot(rootPath).#resolveParts(dirParts) : this.#resolveParts(dirParts);
|
|
33019
33057
|
return result;
|
|
@@ -33769,8 +33807,8 @@ var require_commonjs4 = __commonJS({
|
|
|
33769
33807
|
/**
|
|
33770
33808
|
* @internal
|
|
33771
33809
|
*/
|
|
33772
|
-
getRootString(
|
|
33773
|
-
return node_path_1.win32.parse(
|
|
33810
|
+
getRootString(path14) {
|
|
33811
|
+
return node_path_1.win32.parse(path14).root;
|
|
33774
33812
|
}
|
|
33775
33813
|
/**
|
|
33776
33814
|
* @internal
|
|
@@ -33820,8 +33858,8 @@ var require_commonjs4 = __commonJS({
|
|
|
33820
33858
|
/**
|
|
33821
33859
|
* @internal
|
|
33822
33860
|
*/
|
|
33823
|
-
getRootString(
|
|
33824
|
-
return
|
|
33861
|
+
getRootString(path14) {
|
|
33862
|
+
return path14.startsWith("/") ? "/" : "";
|
|
33825
33863
|
}
|
|
33826
33864
|
/**
|
|
33827
33865
|
* @internal
|
|
@@ -33874,8 +33912,8 @@ var require_commonjs4 = __commonJS({
|
|
|
33874
33912
|
*
|
|
33875
33913
|
* @internal
|
|
33876
33914
|
*/
|
|
33877
|
-
constructor(cwd = process.cwd(), pathImpl, sep2, { nocase, childrenCacheSize = 16 * 1024, fs:
|
|
33878
|
-
this.#fs = fsFromOption2(
|
|
33915
|
+
constructor(cwd = process.cwd(), pathImpl, sep2, { nocase, childrenCacheSize = 16 * 1024, fs: fs13 = defaultFS2 } = {}) {
|
|
33916
|
+
this.#fs = fsFromOption2(fs13);
|
|
33879
33917
|
if (cwd instanceof URL || cwd.startsWith("file://")) {
|
|
33880
33918
|
cwd = (0, node_url_1.fileURLToPath)(cwd);
|
|
33881
33919
|
}
|
|
@@ -33914,11 +33952,11 @@ var require_commonjs4 = __commonJS({
|
|
|
33914
33952
|
/**
|
|
33915
33953
|
* Get the depth of a provided path, string, or the cwd
|
|
33916
33954
|
*/
|
|
33917
|
-
depth(
|
|
33918
|
-
if (typeof
|
|
33919
|
-
|
|
33955
|
+
depth(path14 = this.cwd) {
|
|
33956
|
+
if (typeof path14 === "string") {
|
|
33957
|
+
path14 = this.cwd.resolve(path14);
|
|
33920
33958
|
}
|
|
33921
|
-
return
|
|
33959
|
+
return path14.depth();
|
|
33922
33960
|
}
|
|
33923
33961
|
/**
|
|
33924
33962
|
* Return the cache of child entries. Exposed so subclasses can create
|
|
@@ -34405,9 +34443,9 @@ var require_commonjs4 = __commonJS({
|
|
|
34405
34443
|
process2();
|
|
34406
34444
|
return results;
|
|
34407
34445
|
}
|
|
34408
|
-
chdir(
|
|
34446
|
+
chdir(path14 = this.cwd) {
|
|
34409
34447
|
const oldCwd = this.cwd;
|
|
34410
|
-
this.cwd = typeof
|
|
34448
|
+
this.cwd = typeof path14 === "string" ? this.cwd.resolve(path14) : path14;
|
|
34411
34449
|
this.cwd[setAsCwd2](oldCwd);
|
|
34412
34450
|
}
|
|
34413
34451
|
};
|
|
@@ -34437,8 +34475,8 @@ var require_commonjs4 = __commonJS({
|
|
|
34437
34475
|
/**
|
|
34438
34476
|
* @internal
|
|
34439
34477
|
*/
|
|
34440
|
-
newRoot(
|
|
34441
|
-
return new PathWin322(this.rootPath, IFDIR2, void 0, this.roots, this.nocase, this.childrenCache(), { fs:
|
|
34478
|
+
newRoot(fs13) {
|
|
34479
|
+
return new PathWin322(this.rootPath, IFDIR2, void 0, this.roots, this.nocase, this.childrenCache(), { fs: fs13 });
|
|
34442
34480
|
}
|
|
34443
34481
|
/**
|
|
34444
34482
|
* Return true if the provided path string is an absolute path
|
|
@@ -34470,8 +34508,8 @@ var require_commonjs4 = __commonJS({
|
|
|
34470
34508
|
/**
|
|
34471
34509
|
* @internal
|
|
34472
34510
|
*/
|
|
34473
|
-
newRoot(
|
|
34474
|
-
return new PathPosix2(this.rootPath, IFDIR2, void 0, this.roots, this.nocase, this.childrenCache(), { fs:
|
|
34511
|
+
newRoot(fs13) {
|
|
34512
|
+
return new PathPosix2(this.rootPath, IFDIR2, void 0, this.roots, this.nocase, this.childrenCache(), { fs: fs13 });
|
|
34475
34513
|
}
|
|
34476
34514
|
/**
|
|
34477
34515
|
* Return true if the provided path string is an absolute path
|
|
@@ -34816,8 +34854,8 @@ var require_processor = __commonJS({
|
|
|
34816
34854
|
}
|
|
34817
34855
|
// match, absolute, ifdir
|
|
34818
34856
|
entries() {
|
|
34819
|
-
return [...this.store.entries()].map(([
|
|
34820
|
-
|
|
34857
|
+
return [...this.store.entries()].map(([path14, n4]) => [
|
|
34858
|
+
path14,
|
|
34821
34859
|
!!(n4 & 2),
|
|
34822
34860
|
!!(n4 & 1)
|
|
34823
34861
|
]);
|
|
@@ -35044,9 +35082,9 @@ var require_walker = __commonJS({
|
|
|
35044
35082
|
signal;
|
|
35045
35083
|
maxDepth;
|
|
35046
35084
|
includeChildMatches;
|
|
35047
|
-
constructor(patterns,
|
|
35085
|
+
constructor(patterns, path14, opts) {
|
|
35048
35086
|
this.patterns = patterns;
|
|
35049
|
-
this.path =
|
|
35087
|
+
this.path = path14;
|
|
35050
35088
|
this.opts = opts;
|
|
35051
35089
|
this.#sep = !opts.posix && opts.platform === "win32" ? "\\" : "/";
|
|
35052
35090
|
this.includeChildMatches = opts.includeChildMatches !== false;
|
|
@@ -35065,11 +35103,11 @@ var require_walker = __commonJS({
|
|
|
35065
35103
|
});
|
|
35066
35104
|
}
|
|
35067
35105
|
}
|
|
35068
|
-
#ignored(
|
|
35069
|
-
return this.seen.has(
|
|
35106
|
+
#ignored(path14) {
|
|
35107
|
+
return this.seen.has(path14) || !!this.#ignore?.ignored?.(path14);
|
|
35070
35108
|
}
|
|
35071
|
-
#childrenIgnored(
|
|
35072
|
-
return !!this.#ignore?.childrenIgnored?.(
|
|
35109
|
+
#childrenIgnored(path14) {
|
|
35110
|
+
return !!this.#ignore?.childrenIgnored?.(path14);
|
|
35073
35111
|
}
|
|
35074
35112
|
// backpressure mechanism
|
|
35075
35113
|
pause() {
|
|
@@ -35288,8 +35326,8 @@ var require_walker = __commonJS({
|
|
|
35288
35326
|
__name(this, "GlobWalker");
|
|
35289
35327
|
}
|
|
35290
35328
|
matches = /* @__PURE__ */ new Set();
|
|
35291
|
-
constructor(patterns,
|
|
35292
|
-
super(patterns,
|
|
35329
|
+
constructor(patterns, path14, opts) {
|
|
35330
|
+
super(patterns, path14, opts);
|
|
35293
35331
|
}
|
|
35294
35332
|
matchEmit(e4) {
|
|
35295
35333
|
this.matches.add(e4);
|
|
@@ -35330,8 +35368,8 @@ var require_walker = __commonJS({
|
|
|
35330
35368
|
__name(this, "GlobStream");
|
|
35331
35369
|
}
|
|
35332
35370
|
results;
|
|
35333
|
-
constructor(patterns,
|
|
35334
|
-
super(patterns,
|
|
35371
|
+
constructor(patterns, path14, opts) {
|
|
35372
|
+
super(patterns, path14, opts);
|
|
35335
35373
|
this.results = new minipass_1.Minipass({
|
|
35336
35374
|
signal: this.signal,
|
|
35337
35375
|
objectMode: true
|
|
@@ -35695,8 +35733,8 @@ var require_commonjs5 = __commonJS({
|
|
|
35695
35733
|
// ../../node_modules/archiver-utils/file.js
|
|
35696
35734
|
var require_file = __commonJS({
|
|
35697
35735
|
"../../node_modules/archiver-utils/file.js"(exports2, module2) {
|
|
35698
|
-
var
|
|
35699
|
-
var
|
|
35736
|
+
var fs13 = require_graceful_fs();
|
|
35737
|
+
var path14 = require("path");
|
|
35700
35738
|
var flatten2 = require_flatten();
|
|
35701
35739
|
var difference = require_difference();
|
|
35702
35740
|
var union = require_union();
|
|
@@ -35721,8 +35759,8 @@ var require_file = __commonJS({
|
|
|
35721
35759
|
return result;
|
|
35722
35760
|
}, "processPatterns");
|
|
35723
35761
|
file.exists = function() {
|
|
35724
|
-
var filepath =
|
|
35725
|
-
return
|
|
35762
|
+
var filepath = path14.join.apply(path14, arguments);
|
|
35763
|
+
return fs13.existsSync(filepath);
|
|
35726
35764
|
};
|
|
35727
35765
|
file.expand = function(...args) {
|
|
35728
35766
|
var options = isPlainObject(args[0]) ? args.shift() : {};
|
|
@@ -35735,12 +35773,12 @@ var require_file = __commonJS({
|
|
|
35735
35773
|
});
|
|
35736
35774
|
if (options.filter) {
|
|
35737
35775
|
matches = matches.filter(function(filepath) {
|
|
35738
|
-
filepath =
|
|
35776
|
+
filepath = path14.join(options.cwd || "", filepath);
|
|
35739
35777
|
try {
|
|
35740
35778
|
if (typeof options.filter === "function") {
|
|
35741
35779
|
return options.filter(filepath);
|
|
35742
35780
|
} else {
|
|
35743
|
-
return
|
|
35781
|
+
return fs13.statSync(filepath)[options.filter]();
|
|
35744
35782
|
}
|
|
35745
35783
|
} catch (e4) {
|
|
35746
35784
|
return false;
|
|
@@ -35752,7 +35790,7 @@ var require_file = __commonJS({
|
|
|
35752
35790
|
file.expandMapping = function(patterns, destBase, options) {
|
|
35753
35791
|
options = Object.assign({
|
|
35754
35792
|
rename: /* @__PURE__ */ __name(function(destBase2, destPath) {
|
|
35755
|
-
return
|
|
35793
|
+
return path14.join(destBase2 || "", destPath);
|
|
35756
35794
|
}, "rename")
|
|
35757
35795
|
}, options);
|
|
35758
35796
|
var files = [];
|
|
@@ -35760,14 +35798,14 @@ var require_file = __commonJS({
|
|
|
35760
35798
|
file.expand(options, patterns).forEach(function(src) {
|
|
35761
35799
|
var destPath = src;
|
|
35762
35800
|
if (options.flatten) {
|
|
35763
|
-
destPath =
|
|
35801
|
+
destPath = path14.basename(destPath);
|
|
35764
35802
|
}
|
|
35765
35803
|
if (options.ext) {
|
|
35766
35804
|
destPath = destPath.replace(/(\.[^\/]*)?$/, options.ext);
|
|
35767
35805
|
}
|
|
35768
35806
|
var dest = options.rename(destBase, destPath, options);
|
|
35769
35807
|
if (options.cwd) {
|
|
35770
|
-
src =
|
|
35808
|
+
src = path14.join(options.cwd, src);
|
|
35771
35809
|
}
|
|
35772
35810
|
dest = dest.replace(pathSeparatorRe, "/");
|
|
35773
35811
|
src = src.replace(pathSeparatorRe, "/");
|
|
@@ -35848,8 +35886,8 @@ var require_file = __commonJS({
|
|
|
35848
35886
|
// ../../node_modules/archiver-utils/index.js
|
|
35849
35887
|
var require_archiver_utils = __commonJS({
|
|
35850
35888
|
"../../node_modules/archiver-utils/index.js"(exports2, module2) {
|
|
35851
|
-
var
|
|
35852
|
-
var
|
|
35889
|
+
var fs13 = require_graceful_fs();
|
|
35890
|
+
var path14 = require("path");
|
|
35853
35891
|
var isStream2 = require_is_stream();
|
|
35854
35892
|
var lazystream = require_lazystream();
|
|
35855
35893
|
var normalizePath = require_normalize_path();
|
|
@@ -35897,7 +35935,7 @@ var require_archiver_utils = __commonJS({
|
|
|
35897
35935
|
};
|
|
35898
35936
|
utils.lazyReadStream = function(filepath) {
|
|
35899
35937
|
return new lazystream.Readable(function() {
|
|
35900
|
-
return
|
|
35938
|
+
return fs13.createReadStream(filepath);
|
|
35901
35939
|
});
|
|
35902
35940
|
};
|
|
35903
35941
|
utils.normalizeInputSource = function(source) {
|
|
@@ -35925,7 +35963,7 @@ var require_archiver_utils = __commonJS({
|
|
|
35925
35963
|
callback = base;
|
|
35926
35964
|
base = dirpath;
|
|
35927
35965
|
}
|
|
35928
|
-
|
|
35966
|
+
fs13.readdir(dirpath, function(err, list3) {
|
|
35929
35967
|
var i4 = 0;
|
|
35930
35968
|
var file;
|
|
35931
35969
|
var filepath;
|
|
@@ -35937,11 +35975,11 @@ var require_archiver_utils = __commonJS({
|
|
|
35937
35975
|
if (!file) {
|
|
35938
35976
|
return callback(null, results);
|
|
35939
35977
|
}
|
|
35940
|
-
filepath =
|
|
35941
|
-
|
|
35978
|
+
filepath = path14.join(dirpath, file);
|
|
35979
|
+
fs13.stat(filepath, function(err2, stats) {
|
|
35942
35980
|
results.push({
|
|
35943
35981
|
path: filepath,
|
|
35944
|
-
relative:
|
|
35982
|
+
relative: path14.relative(base, filepath).replace(/\\/g, "/"),
|
|
35945
35983
|
stats
|
|
35946
35984
|
});
|
|
35947
35985
|
if (stats && stats.isDirectory()) {
|
|
@@ -41668,10 +41706,10 @@ var require_ours2 = __commonJS({
|
|
|
41668
41706
|
// ../../node_modules/archiver/lib/core.js
|
|
41669
41707
|
var require_core = __commonJS({
|
|
41670
41708
|
"../../node_modules/archiver/lib/core.js"(exports2, module2) {
|
|
41671
|
-
var
|
|
41709
|
+
var fs13 = require("fs");
|
|
41672
41710
|
var glob2 = require_readdir_glob();
|
|
41673
41711
|
var async = require_async();
|
|
41674
|
-
var
|
|
41712
|
+
var path14 = require("path");
|
|
41675
41713
|
var util = require_archiver_utils();
|
|
41676
41714
|
var inherits = require("util").inherits;
|
|
41677
41715
|
var ArchiverError = require_error();
|
|
@@ -41732,7 +41770,7 @@ var require_core = __commonJS({
|
|
|
41732
41770
|
data2.sourcePath = filepath;
|
|
41733
41771
|
task.data = data2;
|
|
41734
41772
|
this._entriesCount++;
|
|
41735
|
-
if (data2.stats && data2.stats instanceof
|
|
41773
|
+
if (data2.stats && data2.stats instanceof fs13.Stats) {
|
|
41736
41774
|
task = this._updateQueueTaskWithStats(task, data2.stats);
|
|
41737
41775
|
if (task) {
|
|
41738
41776
|
if (data2.stats.size) {
|
|
@@ -41903,7 +41941,7 @@ var require_core = __commonJS({
|
|
|
41903
41941
|
callback();
|
|
41904
41942
|
return;
|
|
41905
41943
|
}
|
|
41906
|
-
|
|
41944
|
+
fs13.lstat(task.filepath, function(err, stats) {
|
|
41907
41945
|
if (this._state.aborted) {
|
|
41908
41946
|
setImmediate(callback);
|
|
41909
41947
|
return;
|
|
@@ -41946,10 +41984,10 @@ var require_core = __commonJS({
|
|
|
41946
41984
|
task.data.sourceType = "buffer";
|
|
41947
41985
|
task.source = Buffer.concat([]);
|
|
41948
41986
|
} else if (stats.isSymbolicLink() && this._moduleSupports("symlink")) {
|
|
41949
|
-
var linkPath =
|
|
41950
|
-
var dirName =
|
|
41987
|
+
var linkPath = fs13.readlinkSync(task.filepath);
|
|
41988
|
+
var dirName = path14.dirname(task.filepath);
|
|
41951
41989
|
task.data.type = "symlink";
|
|
41952
|
-
task.data.linkname =
|
|
41990
|
+
task.data.linkname = path14.relative(dirName, path14.resolve(dirName, linkPath));
|
|
41953
41991
|
task.data.sourceType = "buffer";
|
|
41954
41992
|
task.source = Buffer.concat([]);
|
|
41955
41993
|
} else {
|
|
@@ -57652,7 +57690,7 @@ function writeZipFile(directory, outputFile) {
|
|
|
57652
57690
|
output.once("close", ok);
|
|
57653
57691
|
archive.pipe(output);
|
|
57654
57692
|
for (const file of files) {
|
|
57655
|
-
const fullPath =
|
|
57693
|
+
const fullPath = path10.resolve(directory, file);
|
|
57656
57694
|
const [data2, stat] = await Promise.all([import_fs2.promises.readFile(fullPath), import_fs2.promises.stat(fullPath)]);
|
|
57657
57695
|
archive.append(data2, {
|
|
57658
57696
|
name: file,
|
|
@@ -57687,12 +57725,12 @@ function sleep(ms) {
|
|
|
57687
57725
|
function randomString() {
|
|
57688
57726
|
return Math.random().toString(36).replace(/[^a-z0-9]+/g, "");
|
|
57689
57727
|
}
|
|
57690
|
-
var import_fs2,
|
|
57728
|
+
var import_fs2, path10, archiver;
|
|
57691
57729
|
var init_archive = __esm({
|
|
57692
57730
|
"../@aws-cdk/cdk-assets-lib/lib/private/archive.ts"() {
|
|
57693
57731
|
"use strict";
|
|
57694
57732
|
import_fs2 = require("fs");
|
|
57695
|
-
|
|
57733
|
+
path10 = __toESM(require("path"));
|
|
57696
57734
|
init_esm7();
|
|
57697
57735
|
archiver = require_archiver();
|
|
57698
57736
|
__name(zipDirectory, "zipDirectory");
|
|
@@ -57715,12 +57753,12 @@ async function pathExists(pathName) {
|
|
|
57715
57753
|
return false;
|
|
57716
57754
|
}
|
|
57717
57755
|
}
|
|
57718
|
-
var
|
|
57756
|
+
var fs9, pfs;
|
|
57719
57757
|
var init_fs_extra = __esm({
|
|
57720
57758
|
"../@aws-cdk/cdk-assets-lib/lib/private/fs-extra.ts"() {
|
|
57721
57759
|
"use strict";
|
|
57722
|
-
|
|
57723
|
-
pfs =
|
|
57760
|
+
fs9 = __toESM(require("fs"));
|
|
57761
|
+
pfs = fs9.promises;
|
|
57724
57762
|
__name(pathExists, "pathExists");
|
|
57725
57763
|
}
|
|
57726
57764
|
});
|
|
@@ -57744,12 +57782,12 @@ async function cached(cache4, key, factory) {
|
|
|
57744
57782
|
cache4.set(key, fresh);
|
|
57745
57783
|
return fresh;
|
|
57746
57784
|
}
|
|
57747
|
-
var import_fs3,
|
|
57785
|
+
var import_fs3, path11, import_cloud_assembly_schema, mime, EMPTY_ZIP_FILE_SIZE, FileAssetHandler, BucketInformation;
|
|
57748
57786
|
var init_files = __esm({
|
|
57749
57787
|
"../@aws-cdk/cdk-assets-lib/lib/private/handlers/files.ts"() {
|
|
57750
57788
|
"use strict";
|
|
57751
57789
|
import_fs3 = require("fs");
|
|
57752
|
-
|
|
57790
|
+
path11 = __toESM(require("path"));
|
|
57753
57791
|
import_cloud_assembly_schema = __toESM(require_lib2());
|
|
57754
57792
|
mime = __toESM(require_mime());
|
|
57755
57793
|
init_client_options();
|
|
@@ -57764,7 +57802,7 @@ var init_files = __esm({
|
|
|
57764
57802
|
this.workDir = workDir;
|
|
57765
57803
|
this.asset = asset;
|
|
57766
57804
|
this.host = host;
|
|
57767
|
-
this.fileCacheRoot =
|
|
57805
|
+
this.fileCacheRoot = path11.join(workDir, ".cache");
|
|
57768
57806
|
}
|
|
57769
57807
|
static {
|
|
57770
57808
|
__name(this, "FileAssetHandler");
|
|
@@ -57892,11 +57930,11 @@ var init_files = __esm({
|
|
|
57892
57930
|
`'path' is expected in the File asset source, got: ${JSON.stringify(source)}`
|
|
57893
57931
|
);
|
|
57894
57932
|
}
|
|
57895
|
-
const fullPath =
|
|
57933
|
+
const fullPath = path11.resolve(this.workDir, source.path);
|
|
57896
57934
|
if (source.packaging === import_cloud_assembly_schema.FileAssetPackaging.ZIP_DIRECTORY) {
|
|
57897
57935
|
const contentType = "application/zip";
|
|
57898
57936
|
await import_fs3.promises.mkdir(this.fileCacheRoot, { recursive: true });
|
|
57899
|
-
const packagedPath =
|
|
57937
|
+
const packagedPath = path11.join(this.fileCacheRoot, `${this.asset.id.assetId}.zip`);
|
|
57900
57938
|
if (await pathExists(packagedPath)) {
|
|
57901
57939
|
this.host.emitMessage("cached" /* CACHED */, `From cache ${packagedPath}`);
|
|
57902
57940
|
return { packagedPath, contentType };
|
|
@@ -58037,12 +58075,12 @@ function prefixTreeChars(xs, prefix = "") {
|
|
|
58037
58075
|
}
|
|
58038
58076
|
return ret;
|
|
58039
58077
|
}
|
|
58040
|
-
var
|
|
58078
|
+
var fs11, path12, import_cloud_assembly_schema2, AssetManifest, ASSET_TYPES, FileManifestEntry, DockerImageManifestEntry, DestinationIdentifier, DestinationPattern;
|
|
58041
58079
|
var init_asset_manifest = __esm({
|
|
58042
58080
|
"../@aws-cdk/cdk-assets-lib/lib/asset-manifest.ts"() {
|
|
58043
58081
|
"use strict";
|
|
58044
|
-
|
|
58045
|
-
|
|
58082
|
+
fs11 = __toESM(require("fs"));
|
|
58083
|
+
path12 = __toESM(require("path"));
|
|
58046
58084
|
import_cloud_assembly_schema2 = __toESM(require_lib2());
|
|
58047
58085
|
AssetManifest = class _AssetManifest {
|
|
58048
58086
|
constructor(directory, manifest) {
|
|
@@ -58064,7 +58102,7 @@ var init_asset_manifest = __esm({
|
|
|
58064
58102
|
static fromFile(fileName) {
|
|
58065
58103
|
try {
|
|
58066
58104
|
const obj = import_cloud_assembly_schema2.Manifest.loadAssetManifest(fileName);
|
|
58067
|
-
return new _AssetManifest(
|
|
58105
|
+
return new _AssetManifest(path12.dirname(fileName), obj);
|
|
58068
58106
|
} catch (e4) {
|
|
58069
58107
|
throw new Error(`Cannot read asset manifest '${fileName}': ${e4.message}`);
|
|
58070
58108
|
}
|
|
@@ -58077,12 +58115,12 @@ var init_asset_manifest = __esm({
|
|
|
58077
58115
|
static fromPath(filePath) {
|
|
58078
58116
|
let st;
|
|
58079
58117
|
try {
|
|
58080
|
-
st =
|
|
58118
|
+
st = fs11.statSync(filePath);
|
|
58081
58119
|
} catch (e4) {
|
|
58082
58120
|
throw new Error(`Cannot read asset manifest at '${filePath}': ${e4.message}`);
|
|
58083
58121
|
}
|
|
58084
58122
|
if (st.isDirectory()) {
|
|
58085
|
-
return _AssetManifest.fromFile(
|
|
58123
|
+
return _AssetManifest.fromFile(path12.join(filePath, _AssetManifest.DEFAULT_FILENAME));
|
|
58086
58124
|
}
|
|
58087
58125
|
return _AssetManifest.fromFile(filePath);
|
|
58088
58126
|
}
|
|
@@ -59455,9 +59493,9 @@ var init_createPaginator = __esm({
|
|
|
59455
59493
|
return await client.send(command, ...args);
|
|
59456
59494
|
}, "makePagedClientRequest");
|
|
59457
59495
|
__name(createPaginator, "createPaginator");
|
|
59458
|
-
get = /* @__PURE__ */ __name((fromObject,
|
|
59496
|
+
get = /* @__PURE__ */ __name((fromObject, path14) => {
|
|
59459
59497
|
let cursor2 = fromObject;
|
|
59460
|
-
const pathComponents =
|
|
59498
|
+
const pathComponents = path14.split(".");
|
|
59461
59499
|
for (const step of pathComponents) {
|
|
59462
59500
|
if (!cursor2 || typeof cursor2 !== "object") {
|
|
59463
59501
|
return void 0;
|
|
@@ -60495,12 +60533,12 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
|
|
|
60495
60533
|
const password = request.password ?? "";
|
|
60496
60534
|
auth = `${username}:${password}`;
|
|
60497
60535
|
}
|
|
60498
|
-
let
|
|
60536
|
+
let path14 = request.path;
|
|
60499
60537
|
if (queryString) {
|
|
60500
|
-
|
|
60538
|
+
path14 += `?${queryString}`;
|
|
60501
60539
|
}
|
|
60502
60540
|
if (request.fragment) {
|
|
60503
|
-
|
|
60541
|
+
path14 += `#${request.fragment}`;
|
|
60504
60542
|
}
|
|
60505
60543
|
let hostname = request.hostname ?? "";
|
|
60506
60544
|
if (hostname[0] === "[" && hostname.endsWith("]")) {
|
|
@@ -60512,7 +60550,7 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
|
|
|
60512
60550
|
headers: request.headers,
|
|
60513
60551
|
host: hostname,
|
|
60514
60552
|
method: request.method,
|
|
60515
|
-
path:
|
|
60553
|
+
path: path14,
|
|
60516
60554
|
port: request.port,
|
|
60517
60555
|
agent,
|
|
60518
60556
|
auth
|
|
@@ -60776,16 +60814,16 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
|
|
|
60776
60814
|
reject(err);
|
|
60777
60815
|
}, "rejectWithDestroy");
|
|
60778
60816
|
const queryString = querystringBuilder.buildQueryString(query || {});
|
|
60779
|
-
let
|
|
60817
|
+
let path14 = request.path;
|
|
60780
60818
|
if (queryString) {
|
|
60781
|
-
|
|
60819
|
+
path14 += `?${queryString}`;
|
|
60782
60820
|
}
|
|
60783
60821
|
if (request.fragment) {
|
|
60784
|
-
|
|
60822
|
+
path14 += `#${request.fragment}`;
|
|
60785
60823
|
}
|
|
60786
60824
|
const req = session.request({
|
|
60787
60825
|
...request.headers,
|
|
60788
|
-
[http2.constants.HTTP2_HEADER_PATH]:
|
|
60826
|
+
[http2.constants.HTTP2_HEADER_PATH]: path14,
|
|
60789
60827
|
[http2.constants.HTTP2_HEADER_METHOD]: method
|
|
60790
60828
|
});
|
|
60791
60829
|
session.ref();
|
|
@@ -60983,13 +61021,13 @@ var require_dist_cjs15 = __commonJS({
|
|
|
60983
61021
|
abortError.name = "AbortError";
|
|
60984
61022
|
return Promise.reject(abortError);
|
|
60985
61023
|
}
|
|
60986
|
-
let
|
|
61024
|
+
let path14 = request.path;
|
|
60987
61025
|
const queryString = querystringBuilder.buildQueryString(request.query || {});
|
|
60988
61026
|
if (queryString) {
|
|
60989
|
-
|
|
61027
|
+
path14 += `?${queryString}`;
|
|
60990
61028
|
}
|
|
60991
61029
|
if (request.fragment) {
|
|
60992
|
-
|
|
61030
|
+
path14 += `#${request.fragment}`;
|
|
60993
61031
|
}
|
|
60994
61032
|
let auth = "";
|
|
60995
61033
|
if (request.username != null || request.password != null) {
|
|
@@ -60998,7 +61036,7 @@ var require_dist_cjs15 = __commonJS({
|
|
|
60998
61036
|
auth = `${username}:${password}@`;
|
|
60999
61037
|
}
|
|
61000
61038
|
const { port, method } = request;
|
|
61001
|
-
const url = `${request.protocol}//${auth}${request.hostname}${port ? `:${port}` : ""}${
|
|
61039
|
+
const url = `${request.protocol}//${auth}${request.hostname}${port ? `:${port}` : ""}${path14}`;
|
|
61002
61040
|
const body = method === "GET" || method === "HEAD" ? void 0 : request.body;
|
|
61003
61041
|
const requestOptions = {
|
|
61004
61042
|
body,
|
|
@@ -61926,7 +61964,7 @@ var init_NormalizedSchema = __esm({
|
|
|
61926
61964
|
}
|
|
61927
61965
|
getSchema() {
|
|
61928
61966
|
const sc = this.schema;
|
|
61929
|
-
if (sc[0] === 0) {
|
|
61967
|
+
if (Array.isArray(sc) && sc[0] === 0) {
|
|
61930
61968
|
return sc[4];
|
|
61931
61969
|
}
|
|
61932
61970
|
return sc;
|
|
@@ -61952,11 +61990,17 @@ var init_NormalizedSchema = __esm({
|
|
|
61952
61990
|
}
|
|
61953
61991
|
isStructSchema() {
|
|
61954
61992
|
const sc = this.getSchema();
|
|
61993
|
+
if (typeof sc !== "object") {
|
|
61994
|
+
return false;
|
|
61995
|
+
}
|
|
61955
61996
|
const id = sc[0];
|
|
61956
61997
|
return id === 3 || id === -3 || id === 4;
|
|
61957
61998
|
}
|
|
61958
61999
|
isUnionSchema() {
|
|
61959
62000
|
const sc = this.getSchema();
|
|
62001
|
+
if (typeof sc !== "object") {
|
|
62002
|
+
return false;
|
|
62003
|
+
}
|
|
61960
62004
|
return sc[0] === 4;
|
|
61961
62005
|
}
|
|
61962
62006
|
isBlobSchema() {
|
|
@@ -63142,13 +63186,13 @@ function __disposeResources(env) {
|
|
|
63142
63186
|
__name(next, "next");
|
|
63143
63187
|
return next();
|
|
63144
63188
|
}
|
|
63145
|
-
function __rewriteRelativeImportExtension(
|
|
63146
|
-
if (typeof
|
|
63147
|
-
return
|
|
63189
|
+
function __rewriteRelativeImportExtension(path14, preserveJsx) {
|
|
63190
|
+
if (typeof path14 === "string" && /^\.\.?\//.test(path14)) {
|
|
63191
|
+
return path14.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i, function(m4, tsx, d4, ext2, cm) {
|
|
63148
63192
|
return tsx ? preserveJsx ? ".jsx" : ".js" : d4 && (!ext2 || !cm) ? m4 : d4 + ext2 + "." + cm.toLowerCase() + "js";
|
|
63149
63193
|
});
|
|
63150
63194
|
}
|
|
63151
|
-
return
|
|
63195
|
+
return path14;
|
|
63152
63196
|
}
|
|
63153
63197
|
var extendStatics, __assign, __createBinding, __setModuleDefault, ownKeys, _SuppressedError, tslib_es6_default;
|
|
63154
63198
|
var init_tslib_es6 = __esm({
|
|
@@ -64077,11 +64121,11 @@ var init_HttpBindingProtocol = __esm({
|
|
|
64077
64121
|
const opTraits = translateTraits(operationSchema.traits);
|
|
64078
64122
|
if (opTraits.http) {
|
|
64079
64123
|
request.method = opTraits.http[0];
|
|
64080
|
-
const [
|
|
64124
|
+
const [path14, search] = opTraits.http[1].split("?");
|
|
64081
64125
|
if (request.path == "/") {
|
|
64082
|
-
request.path =
|
|
64126
|
+
request.path = path14;
|
|
64083
64127
|
} else {
|
|
64084
|
-
request.path +=
|
|
64128
|
+
request.path += path14;
|
|
64085
64129
|
}
|
|
64086
64130
|
const traitSearchParams = new URLSearchParams(search ?? "");
|
|
64087
64131
|
Object.assign(query, Object.fromEntries(traitSearchParams));
|
|
@@ -64471,8 +64515,8 @@ var init_requestBuilder = __esm({
|
|
|
64471
64515
|
return this;
|
|
64472
64516
|
}
|
|
64473
64517
|
p(memberName, labelValueProvider, uriLabel, isGreedyLabel) {
|
|
64474
|
-
this.resolvePathStack.push((
|
|
64475
|
-
this.path = resolvedPath(
|
|
64518
|
+
this.resolvePathStack.push((path14) => {
|
|
64519
|
+
this.path = resolvedPath(path14, this.input, memberName, labelValueProvider, uriLabel, isGreedyLabel);
|
|
64476
64520
|
});
|
|
64477
64521
|
return this;
|
|
64478
64522
|
}
|
|
@@ -65155,18 +65199,18 @@ var require_dist_cjs19 = __commonJS({
|
|
|
65155
65199
|
}
|
|
65156
65200
|
};
|
|
65157
65201
|
var booleanEquals = /* @__PURE__ */ __name((value1, value2) => value1 === value2, "booleanEquals");
|
|
65158
|
-
var getAttrPathList = /* @__PURE__ */ __name((
|
|
65159
|
-
const parts =
|
|
65202
|
+
var getAttrPathList = /* @__PURE__ */ __name((path14) => {
|
|
65203
|
+
const parts = path14.split(".");
|
|
65160
65204
|
const pathList = [];
|
|
65161
65205
|
for (const part of parts) {
|
|
65162
65206
|
const squareBracketIndex = part.indexOf("[");
|
|
65163
65207
|
if (squareBracketIndex !== -1) {
|
|
65164
65208
|
if (part.indexOf("]") !== part.length - 1) {
|
|
65165
|
-
throw new EndpointError(`Path: '${
|
|
65209
|
+
throw new EndpointError(`Path: '${path14}' does not end with ']'`);
|
|
65166
65210
|
}
|
|
65167
65211
|
const arrayIndex = part.slice(squareBracketIndex + 1, -1);
|
|
65168
65212
|
if (Number.isNaN(parseInt(arrayIndex))) {
|
|
65169
|
-
throw new EndpointError(`Invalid array index: '${arrayIndex}' in path: '${
|
|
65213
|
+
throw new EndpointError(`Invalid array index: '${arrayIndex}' in path: '${path14}'`);
|
|
65170
65214
|
}
|
|
65171
65215
|
if (squareBracketIndex !== 0) {
|
|
65172
65216
|
pathList.push(part.slice(0, squareBracketIndex));
|
|
@@ -65178,9 +65222,9 @@ var require_dist_cjs19 = __commonJS({
|
|
|
65178
65222
|
}
|
|
65179
65223
|
return pathList;
|
|
65180
65224
|
}, "getAttrPathList");
|
|
65181
|
-
var getAttr = /* @__PURE__ */ __name((value,
|
|
65225
|
+
var getAttr = /* @__PURE__ */ __name((value, path14) => getAttrPathList(path14).reduce((acc, index) => {
|
|
65182
65226
|
if (typeof acc !== "object") {
|
|
65183
|
-
throw new EndpointError(`Index '${index}' in '${
|
|
65227
|
+
throw new EndpointError(`Index '${index}' in '${path14}' not found in '${JSON.stringify(value)}'`);
|
|
65184
65228
|
} else if (Array.isArray(acc)) {
|
|
65185
65229
|
return acc[parseInt(index)];
|
|
65186
65230
|
}
|
|
@@ -65199,8 +65243,8 @@ var require_dist_cjs19 = __commonJS({
|
|
|
65199
65243
|
return value;
|
|
65200
65244
|
}
|
|
65201
65245
|
if (typeof value === "object" && "hostname" in value) {
|
|
65202
|
-
const { hostname: hostname2, port, protocol: protocol2 = "", path:
|
|
65203
|
-
const url = new URL(`${protocol2}//${hostname2}${port ? `:${port}` : ""}${
|
|
65246
|
+
const { hostname: hostname2, port, protocol: protocol2 = "", path: path14 = "", query = {} } = value;
|
|
65247
|
+
const url = new URL(`${protocol2}//${hostname2}${port ? `:${port}` : ""}${path14}`);
|
|
65204
65248
|
url.search = Object.entries(query).map(([k4, v4]) => `${k4}=${v4}`).join("&");
|
|
65205
65249
|
return url;
|
|
65206
65250
|
}
|
|
@@ -66744,10 +66788,10 @@ ${longDate}
|
|
|
66744
66788
|
${credentialScope}
|
|
66745
66789
|
${utilHexEncoding.toHex(hashedRequest)}`;
|
|
66746
66790
|
}
|
|
66747
|
-
getCanonicalPath({ path:
|
|
66791
|
+
getCanonicalPath({ path: path14 }) {
|
|
66748
66792
|
if (this.uriEscapePath) {
|
|
66749
66793
|
const normalizedPathSegments = [];
|
|
66750
|
-
for (const pathSegment of
|
|
66794
|
+
for (const pathSegment of path14.split("/")) {
|
|
66751
66795
|
if (pathSegment?.length === 0)
|
|
66752
66796
|
continue;
|
|
66753
66797
|
if (pathSegment === ".")
|
|
@@ -66758,11 +66802,11 @@ ${utilHexEncoding.toHex(hashedRequest)}`;
|
|
|
66758
66802
|
normalizedPathSegments.push(pathSegment);
|
|
66759
66803
|
}
|
|
66760
66804
|
}
|
|
66761
|
-
const normalizedPath = `${
|
|
66805
|
+
const normalizedPath = `${path14?.startsWith("/") ? "/" : ""}${normalizedPathSegments.join("/")}${normalizedPathSegments.length > 0 && path14?.endsWith("/") ? "/" : ""}`;
|
|
66762
66806
|
const doubleEncoded = utilUriEscape.escapeUri(normalizedPath);
|
|
66763
66807
|
return doubleEncoded.replace(/%2F/g, "/");
|
|
66764
66808
|
}
|
|
66765
|
-
return
|
|
66809
|
+
return path14;
|
|
66766
66810
|
}
|
|
66767
66811
|
validateResolvedCredentials(credentials) {
|
|
66768
66812
|
if (typeof credentials !== "object" || typeof credentials.accessKeyId !== "string" || typeof credentials.secretAccessKey !== "string") {
|
|
@@ -68103,11 +68147,11 @@ var init_SmithyRpcV2CborProtocol = __esm({
|
|
|
68103
68147
|
}
|
|
68104
68148
|
}
|
|
68105
68149
|
const { service, operation: operation2 } = (0, import_util_middleware5.getSmithyContext)(context);
|
|
68106
|
-
const
|
|
68150
|
+
const path14 = `/service/${service}/operation/${operation2}`;
|
|
68107
68151
|
if (request.path.endsWith("/")) {
|
|
68108
|
-
request.path +=
|
|
68152
|
+
request.path += path14.slice(1);
|
|
68109
68153
|
} else {
|
|
68110
|
-
request.path +=
|
|
68154
|
+
request.path += path14;
|
|
68111
68155
|
}
|
|
68112
68156
|
return request;
|
|
68113
68157
|
}
|
|
@@ -68662,9 +68706,8 @@ var require_dist_cjs26 = __commonJS({
|
|
|
68662
68706
|
}
|
|
68663
68707
|
};
|
|
68664
68708
|
var SENSITIVE_STRING = "***SensitiveInformation***";
|
|
68665
|
-
var createAggregatedClient4 = /* @__PURE__ */ __name((commands4, Client2) => {
|
|
68666
|
-
for (const command of Object.
|
|
68667
|
-
const CommandCtor = commands4[command];
|
|
68709
|
+
var createAggregatedClient4 = /* @__PURE__ */ __name((commands4, Client2, options) => {
|
|
68710
|
+
for (const [command, CommandCtor] of Object.entries(commands4)) {
|
|
68668
68711
|
const methodImpl = /* @__PURE__ */ __name(async function(args, optionsOrCb, cb) {
|
|
68669
68712
|
const command2 = new CommandCtor(args);
|
|
68670
68713
|
if (typeof optionsOrCb === "function") {
|
|
@@ -68680,6 +68723,33 @@ var require_dist_cjs26 = __commonJS({
|
|
|
68680
68723
|
const methodName = (command[0].toLowerCase() + command.slice(1)).replace(/Command$/, "");
|
|
68681
68724
|
Client2.prototype[methodName] = methodImpl;
|
|
68682
68725
|
}
|
|
68726
|
+
const { paginators = {}, waiters = {} } = options ?? {};
|
|
68727
|
+
for (const [paginatorName, paginatorFn] of Object.entries(paginators)) {
|
|
68728
|
+
if (Client2.prototype[paginatorName] === void 0) {
|
|
68729
|
+
Client2.prototype[paginatorName] = function(commandInput = {}, paginationConfiguration, ...rest) {
|
|
68730
|
+
return paginatorFn({
|
|
68731
|
+
...paginationConfiguration,
|
|
68732
|
+
client: this
|
|
68733
|
+
}, commandInput, ...rest);
|
|
68734
|
+
};
|
|
68735
|
+
}
|
|
68736
|
+
}
|
|
68737
|
+
for (const [waiterName, waiterFn] of Object.entries(waiters)) {
|
|
68738
|
+
if (Client2.prototype[waiterName] === void 0) {
|
|
68739
|
+
Client2.prototype[waiterName] = async function(commandInput = {}, waiterConfiguration, ...rest) {
|
|
68740
|
+
let config = waiterConfiguration;
|
|
68741
|
+
if (typeof waiterConfiguration === "number") {
|
|
68742
|
+
config = {
|
|
68743
|
+
maxWaitTime: waiterConfiguration
|
|
68744
|
+
};
|
|
68745
|
+
}
|
|
68746
|
+
return waiterFn({
|
|
68747
|
+
...config,
|
|
68748
|
+
client: this
|
|
68749
|
+
}, commandInput, ...rest);
|
|
68750
|
+
};
|
|
68751
|
+
}
|
|
68752
|
+
}
|
|
68683
68753
|
}, "createAggregatedClient");
|
|
68684
68754
|
var ServiceException = class _ServiceException extends Error {
|
|
68685
68755
|
static {
|
|
@@ -72585,14 +72655,14 @@ var require_readFile = __commonJS({
|
|
|
72585
72655
|
var promises_1 = require("node:fs/promises");
|
|
72586
72656
|
exports2.filePromises = {};
|
|
72587
72657
|
exports2.fileIntercept = {};
|
|
72588
|
-
var readFile = /* @__PURE__ */ __name((
|
|
72589
|
-
if (exports2.fileIntercept[
|
|
72590
|
-
return exports2.fileIntercept[
|
|
72658
|
+
var readFile = /* @__PURE__ */ __name((path14, options) => {
|
|
72659
|
+
if (exports2.fileIntercept[path14] !== void 0) {
|
|
72660
|
+
return exports2.fileIntercept[path14];
|
|
72591
72661
|
}
|
|
72592
|
-
if (!exports2.filePromises[
|
|
72593
|
-
exports2.filePromises[
|
|
72662
|
+
if (!exports2.filePromises[path14] || options?.ignoreCache) {
|
|
72663
|
+
exports2.filePromises[path14] = (0, promises_1.readFile)(path14, "utf8");
|
|
72594
72664
|
}
|
|
72595
|
-
return exports2.filePromises[
|
|
72665
|
+
return exports2.filePromises[path14];
|
|
72596
72666
|
}, "readFile");
|
|
72597
72667
|
exports2.readFile = readFile;
|
|
72598
72668
|
}
|
|
@@ -72605,7 +72675,7 @@ var require_dist_cjs32 = __commonJS({
|
|
|
72605
72675
|
var getHomeDir = require_getHomeDir();
|
|
72606
72676
|
var getSSOTokenFilepath = require_getSSOTokenFilepath();
|
|
72607
72677
|
var getSSOTokenFromFile = require_getSSOTokenFromFile();
|
|
72608
|
-
var
|
|
72678
|
+
var path14 = require("path");
|
|
72609
72679
|
var types2 = require_dist_cjs();
|
|
72610
72680
|
var readFile = require_readFile();
|
|
72611
72681
|
var ENV_PROFILE = "AWS_PROFILE";
|
|
@@ -72627,9 +72697,9 @@ var require_dist_cjs32 = __commonJS({
|
|
|
72627
72697
|
...data2.default && { default: data2.default }
|
|
72628
72698
|
}), "getConfigData");
|
|
72629
72699
|
var ENV_CONFIG_PATH = "AWS_CONFIG_FILE";
|
|
72630
|
-
var getConfigFilepath = /* @__PURE__ */ __name(() => process.env[ENV_CONFIG_PATH] ||
|
|
72700
|
+
var getConfigFilepath = /* @__PURE__ */ __name(() => process.env[ENV_CONFIG_PATH] || path14.join(getHomeDir.getHomeDir(), ".aws", "config"), "getConfigFilepath");
|
|
72631
72701
|
var ENV_CREDENTIALS_PATH = "AWS_SHARED_CREDENTIALS_FILE";
|
|
72632
|
-
var getCredentialsFilepath = /* @__PURE__ */ __name(() => process.env[ENV_CREDENTIALS_PATH] ||
|
|
72702
|
+
var getCredentialsFilepath = /* @__PURE__ */ __name(() => process.env[ENV_CREDENTIALS_PATH] || path14.join(getHomeDir.getHomeDir(), ".aws", "credentials"), "getCredentialsFilepath");
|
|
72633
72703
|
var prefixKeyRegex = /^([\w-]+)\s(["'])?([\w-@\+\.%:/]+)\2$/;
|
|
72634
72704
|
var profileNameBlockList = ["__proto__", "profile __proto__"];
|
|
72635
72705
|
var parseIni = /* @__PURE__ */ __name((iniData) => {
|
|
@@ -72684,11 +72754,11 @@ var require_dist_cjs32 = __commonJS({
|
|
|
72684
72754
|
const relativeHomeDirPrefix = "~/";
|
|
72685
72755
|
let resolvedFilepath = filepath;
|
|
72686
72756
|
if (filepath.startsWith(relativeHomeDirPrefix)) {
|
|
72687
|
-
resolvedFilepath =
|
|
72757
|
+
resolvedFilepath = path14.join(homeDir, filepath.slice(2));
|
|
72688
72758
|
}
|
|
72689
72759
|
let resolvedConfigFilepath = configFilepath;
|
|
72690
72760
|
if (configFilepath.startsWith(relativeHomeDirPrefix)) {
|
|
72691
|
-
resolvedConfigFilepath =
|
|
72761
|
+
resolvedConfigFilepath = path14.join(homeDir, configFilepath.slice(2));
|
|
72692
72762
|
}
|
|
72693
72763
|
const parsedFiles = await Promise.all([
|
|
72694
72764
|
readFile.readFile(resolvedConfigFilepath, {
|
|
@@ -72727,8 +72797,8 @@ var require_dist_cjs32 = __commonJS({
|
|
|
72727
72797
|
getFileRecord() {
|
|
72728
72798
|
return readFile.fileIntercept;
|
|
72729
72799
|
},
|
|
72730
|
-
interceptFile(
|
|
72731
|
-
readFile.fileIntercept[
|
|
72800
|
+
interceptFile(path15, contents) {
|
|
72801
|
+
readFile.fileIntercept[path15] = Promise.resolve(contents);
|
|
72732
72802
|
},
|
|
72733
72803
|
getTokenRecord() {
|
|
72734
72804
|
return getSSOTokenFromFile.tokenIntercept;
|
|
@@ -72967,8 +73037,8 @@ var require_dist_cjs34 = __commonJS({
|
|
|
72967
73037
|
return endpoint.url.href;
|
|
72968
73038
|
}
|
|
72969
73039
|
if ("hostname" in endpoint) {
|
|
72970
|
-
const { protocol, hostname, port, path:
|
|
72971
|
-
return `${protocol}//${hostname}${port ? ":" + port : ""}${
|
|
73040
|
+
const { protocol, hostname, port, path: path14 } = endpoint;
|
|
73041
|
+
return `${protocol}//${hostname}${port ? ":" + port : ""}${path14}`;
|
|
72972
73042
|
}
|
|
72973
73043
|
}
|
|
72974
73044
|
return endpoint;
|
|
@@ -76228,7 +76298,7 @@ var require_dist_cjs47 = __commonJS({
|
|
|
76228
76298
|
var httpAuthSchemes = (init_httpAuthSchemes2(), __toCommonJS(httpAuthSchemes_exports));
|
|
76229
76299
|
var propertyProvider = require_dist_cjs23();
|
|
76230
76300
|
var sharedIniFileLoader = require_dist_cjs32();
|
|
76231
|
-
var
|
|
76301
|
+
var fs13 = require("fs");
|
|
76232
76302
|
var fromEnvSigningName = /* @__PURE__ */ __name(({ logger: logger2, signingName } = {}) => async () => {
|
|
76233
76303
|
logger2?.debug?.("@aws-sdk/token-providers - fromEnvSigningName");
|
|
76234
76304
|
if (!signingName) {
|
|
@@ -76274,7 +76344,7 @@ var require_dist_cjs47 = __commonJS({
|
|
|
76274
76344
|
throw new propertyProvider.TokenProviderError(`Value not present for '${key}' in SSO Token${forRefresh ? ". Cannot refresh" : ""}. ${REFRESH_MESSAGE}`, false);
|
|
76275
76345
|
}
|
|
76276
76346
|
}, "validateTokenKey");
|
|
76277
|
-
var { writeFile } =
|
|
76347
|
+
var { writeFile } = fs13.promises;
|
|
76278
76348
|
var writeSSOTokenToFile = /* @__PURE__ */ __name((id, ssoToken) => {
|
|
76279
76349
|
const tokenFilepath = sharedIniFileLoader.getSSOTokenFilepath(id);
|
|
76280
76350
|
const tokenString = JSON.stringify(ssoToken, null, 2);
|
|
@@ -87628,7 +87698,7 @@ var require_dist_cjs69 = __commonJS({
|
|
|
87628
87698
|
var require_dist_cjs70 = __commonJS({
|
|
87629
87699
|
"../../node_modules/@smithy/hash-stream-node/dist-cjs/index.js"(exports2) {
|
|
87630
87700
|
"use strict";
|
|
87631
|
-
var
|
|
87701
|
+
var fs13 = require("fs");
|
|
87632
87702
|
var utilUtf8 = require_dist_cjs10();
|
|
87633
87703
|
var stream2 = require("stream");
|
|
87634
87704
|
var HashCalculator = class extends stream2.Writable {
|
|
@@ -87654,7 +87724,7 @@ var require_dist_cjs70 = __commonJS({
|
|
|
87654
87724
|
reject(new Error("Unable to calculate hash for non-file streams."));
|
|
87655
87725
|
return;
|
|
87656
87726
|
}
|
|
87657
|
-
const fileStreamTee =
|
|
87727
|
+
const fileStreamTee = fs13.createReadStream(fileStream.path, {
|
|
87658
87728
|
start: fileStream.start,
|
|
87659
87729
|
end: fileStream.end
|
|
87660
87730
|
});
|
|
@@ -103039,9 +103109,9 @@ var require_lib5 = __commonJS({
|
|
|
103039
103109
|
var require_build = __commonJS({
|
|
103040
103110
|
"../../node_modules/y18n/build/index.cjs"(exports2, module2) {
|
|
103041
103111
|
"use strict";
|
|
103042
|
-
var
|
|
103112
|
+
var fs13 = require("fs");
|
|
103043
103113
|
var util = require("util");
|
|
103044
|
-
var
|
|
103114
|
+
var path14 = require("path");
|
|
103045
103115
|
var shim;
|
|
103046
103116
|
var Y18N = class {
|
|
103047
103117
|
static {
|
|
@@ -103207,14 +103277,14 @@ var require_build = __commonJS({
|
|
|
103207
103277
|
__name(y18n$1, "y18n$1");
|
|
103208
103278
|
var nodePlatformShim = {
|
|
103209
103279
|
fs: {
|
|
103210
|
-
readFileSync:
|
|
103211
|
-
writeFile:
|
|
103280
|
+
readFileSync: fs13.readFileSync,
|
|
103281
|
+
writeFile: fs13.writeFile
|
|
103212
103282
|
},
|
|
103213
103283
|
format: util.format,
|
|
103214
|
-
resolve:
|
|
103284
|
+
resolve: path14.resolve,
|
|
103215
103285
|
exists: /* @__PURE__ */ __name((file) => {
|
|
103216
103286
|
try {
|
|
103217
|
-
return
|
|
103287
|
+
return fs13.statSync(file).isFile();
|
|
103218
103288
|
} catch (err) {
|
|
103219
103289
|
return false;
|
|
103220
103290
|
}
|
|
@@ -103232,8 +103302,8 @@ var require_build2 = __commonJS({
|
|
|
103232
103302
|
"../../node_modules/yargs-parser/build/index.cjs"(exports2, module2) {
|
|
103233
103303
|
"use strict";
|
|
103234
103304
|
var util = require("util");
|
|
103235
|
-
var
|
|
103236
|
-
var
|
|
103305
|
+
var path14 = require("path");
|
|
103306
|
+
var fs13 = require("fs");
|
|
103237
103307
|
function camelCase(str) {
|
|
103238
103308
|
const isCamelCase = str !== str.toLowerCase() && str !== str.toUpperCase();
|
|
103239
103309
|
if (!isCamelCase) {
|
|
@@ -104215,13 +104285,13 @@ var require_build2 = __commonJS({
|
|
|
104215
104285
|
return env;
|
|
104216
104286
|
}, "env"),
|
|
104217
104287
|
format: util.format,
|
|
104218
|
-
normalize:
|
|
104219
|
-
resolve:
|
|
104220
|
-
require: /* @__PURE__ */ __name((
|
|
104288
|
+
normalize: path14.normalize,
|
|
104289
|
+
resolve: path14.resolve,
|
|
104290
|
+
require: /* @__PURE__ */ __name((path15) => {
|
|
104221
104291
|
if (typeof require !== "undefined") {
|
|
104222
|
-
return require(
|
|
104223
|
-
} else if (
|
|
104224
|
-
return JSON.parse(
|
|
104292
|
+
return require(path15);
|
|
104293
|
+
} else if (path15.match(/\.json$/)) {
|
|
104294
|
+
return JSON.parse(fs13.readFileSync(path15, "utf8"));
|
|
104225
104295
|
} else {
|
|
104226
104296
|
throw Error("only .json config files are supported in ESM");
|
|
104227
104297
|
}
|
|
@@ -105218,15 +105288,15 @@ var require_route = __commonJS({
|
|
|
105218
105288
|
}
|
|
105219
105289
|
__name(link, "link");
|
|
105220
105290
|
function wrapConversion(toModel, graph) {
|
|
105221
|
-
const
|
|
105291
|
+
const path14 = [graph[toModel].parent, toModel];
|
|
105222
105292
|
let fn = conversions[graph[toModel].parent][toModel];
|
|
105223
105293
|
let cur = graph[toModel].parent;
|
|
105224
105294
|
while (graph[cur].parent) {
|
|
105225
|
-
|
|
105295
|
+
path14.unshift(graph[cur].parent);
|
|
105226
105296
|
fn = link(conversions[graph[cur].parent][cur], fn);
|
|
105227
105297
|
cur = graph[cur].parent;
|
|
105228
105298
|
}
|
|
105229
|
-
fn.conversion =
|
|
105299
|
+
fn.conversion = path14;
|
|
105230
105300
|
return fn;
|
|
105231
105301
|
}
|
|
105232
105302
|
__name(wrapConversion, "wrapConversion");
|
|
@@ -105943,8 +106013,8 @@ var require_get_caller_file = __commonJS({
|
|
|
105943
106013
|
var require_require_directory = __commonJS({
|
|
105944
106014
|
"../../node_modules/require-directory/index.js"(exports2, module2) {
|
|
105945
106015
|
"use strict";
|
|
105946
|
-
var
|
|
105947
|
-
var
|
|
106016
|
+
var fs13 = require("fs");
|
|
106017
|
+
var join10 = require("path").join;
|
|
105948
106018
|
var resolve6 = require("path").resolve;
|
|
105949
106019
|
var dirname2 = require("path").dirname;
|
|
105950
106020
|
var defaultOptions = {
|
|
@@ -105957,22 +106027,22 @@ var require_require_directory = __commonJS({
|
|
|
105957
106027
|
return obj;
|
|
105958
106028
|
}, "visit")
|
|
105959
106029
|
};
|
|
105960
|
-
function checkFileInclusion(
|
|
106030
|
+
function checkFileInclusion(path14, filename, options) {
|
|
105961
106031
|
return (
|
|
105962
106032
|
// verify file has valid extension
|
|
105963
106033
|
new RegExp("\\.(" + options.extensions.join("|") + ")$", "i").test(filename) && // if options.include is a RegExp, evaluate it and make sure the path passes
|
|
105964
|
-
!(options.include && options.include instanceof RegExp && !options.include.test(
|
|
105965
|
-
!(options.include && typeof options.include === "function" && !options.include(
|
|
105966
|
-
!(options.exclude && options.exclude instanceof RegExp && options.exclude.test(
|
|
105967
|
-
!(options.exclude && typeof options.exclude === "function" && options.exclude(
|
|
106034
|
+
!(options.include && options.include instanceof RegExp && !options.include.test(path14)) && // if options.include is a function, evaluate it and make sure the path passes
|
|
106035
|
+
!(options.include && typeof options.include === "function" && !options.include(path14, filename)) && // if options.exclude is a RegExp, evaluate it and make sure the path doesn't pass
|
|
106036
|
+
!(options.exclude && options.exclude instanceof RegExp && options.exclude.test(path14)) && // if options.exclude is a function, evaluate it and make sure the path doesn't pass
|
|
106037
|
+
!(options.exclude && typeof options.exclude === "function" && options.exclude(path14, filename))
|
|
105968
106038
|
);
|
|
105969
106039
|
}
|
|
105970
106040
|
__name(checkFileInclusion, "checkFileInclusion");
|
|
105971
|
-
function requireDirectory(m4,
|
|
106041
|
+
function requireDirectory(m4, path14, options) {
|
|
105972
106042
|
var retval = {};
|
|
105973
|
-
if (
|
|
105974
|
-
options =
|
|
105975
|
-
|
|
106043
|
+
if (path14 && !options && typeof path14 !== "string") {
|
|
106044
|
+
options = path14;
|
|
106045
|
+
path14 = null;
|
|
105976
106046
|
}
|
|
105977
106047
|
options = options || {};
|
|
105978
106048
|
for (var prop in defaultOptions) {
|
|
@@ -105980,10 +106050,10 @@ var require_require_directory = __commonJS({
|
|
|
105980
106050
|
options[prop] = defaultOptions[prop];
|
|
105981
106051
|
}
|
|
105982
106052
|
}
|
|
105983
|
-
|
|
105984
|
-
|
|
105985
|
-
var joined =
|
|
105986
|
-
if (
|
|
106053
|
+
path14 = !path14 ? dirname2(m4.filename) : resolve6(dirname2(m4.filename), path14);
|
|
106054
|
+
fs13.readdirSync(path14).forEach(function(filename) {
|
|
106055
|
+
var joined = join10(path14, filename), files, key, obj;
|
|
106056
|
+
if (fs13.statSync(joined).isDirectory() && options.recurse) {
|
|
105987
106057
|
files = requireDirectory(m4, joined, options);
|
|
105988
106058
|
if (Object.keys(files).length) {
|
|
105989
106059
|
retval[options.rename(filename, joined, filename)] = files;
|
|
@@ -107752,15 +107822,15 @@ function log(level, message, stream2) {
|
|
|
107752
107822
|
}
|
|
107753
107823
|
}
|
|
107754
107824
|
}
|
|
107755
|
-
var
|
|
107825
|
+
var fs12, path13, logThreshold, VERSION, LOG_LEVELS;
|
|
107756
107826
|
var init_logging = __esm({
|
|
107757
107827
|
"bin/logging.ts"() {
|
|
107758
107828
|
"use strict";
|
|
107759
|
-
|
|
107760
|
-
|
|
107829
|
+
fs12 = __toESM(require("fs"));
|
|
107830
|
+
path13 = __toESM(require("path"));
|
|
107761
107831
|
logThreshold = "info";
|
|
107762
107832
|
VERSION = JSON.parse(
|
|
107763
|
-
|
|
107833
|
+
fs12.readFileSync(path13.join(__dirname, "..", "package.json"), { encoding: "utf-8" })
|
|
107764
107834
|
).version;
|
|
107765
107835
|
LOG_LEVELS = {
|
|
107766
107836
|
verbose: 1,
|