@pipelab/plugin-minify 1.0.0-beta.14 → 1.0.0-beta.16

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/dist/index.cjs CHANGED
@@ -3927,6 +3927,56 @@ function literal(literal_, message) {
3927
3927
  }
3928
3928
  };
3929
3929
  }
3930
+ function looseObject(entries, message) {
3931
+ return {
3932
+ kind: "schema",
3933
+ type: "loose_object",
3934
+ reference: looseObject,
3935
+ expects: "Object",
3936
+ async: false,
3937
+ entries,
3938
+ message,
3939
+ _run(dataset, config2) {
3940
+ const input = dataset.value;
3941
+ if (input && typeof input === "object") {
3942
+ dataset.typed = true;
3943
+ dataset.value = {};
3944
+ for (const key in this.entries) {
3945
+ const value2 = input[key];
3946
+ const valueDataset = this.entries[key]._run({
3947
+ typed: false,
3948
+ value: value2
3949
+ }, config2);
3950
+ if (valueDataset.issues) {
3951
+ const pathItem = {
3952
+ type: "object",
3953
+ origin: "value",
3954
+ input,
3955
+ key,
3956
+ value: value2
3957
+ };
3958
+ for (const issue of valueDataset.issues) {
3959
+ if (issue.path) issue.path.unshift(pathItem);
3960
+ else issue.path = [pathItem];
3961
+ dataset.issues?.push(issue);
3962
+ }
3963
+ if (!dataset.issues) dataset.issues = valueDataset.issues;
3964
+ if (config2.abortEarly) {
3965
+ dataset.typed = false;
3966
+ break;
3967
+ }
3968
+ }
3969
+ if (!valueDataset.typed) dataset.typed = false;
3970
+ if (valueDataset.value !== void 0 || key in input) dataset.value[key] = valueDataset.value;
3971
+ }
3972
+ if (!dataset.issues || !config2.abortEarly) {
3973
+ for (const key in input) if (_isValidObjectKey(input, key) && !(key in this.entries)) dataset.value[key] = input[key];
3974
+ }
3975
+ } else _addIssue(this, "type", dataset, config2);
3976
+ return dataset;
3977
+ }
3978
+ };
3979
+ }
3930
3980
  function number(message) {
3931
3981
  return {
3932
3982
  kind: "schema",
@@ -4464,6 +4514,18 @@ settingsMigratorInternal.createMigrations({
4464
4514
  })
4465
4515
  ]
4466
4516
  });
4517
+ const connectionsMigratorInternal = createMigrator();
4518
+ const defaultConnections = connectionsMigratorInternal.createDefault({
4519
+ version: "1.0.0",
4520
+ connections: []
4521
+ });
4522
+ connectionsMigratorInternal.createMigrations({
4523
+ defaultValue: defaultConnections,
4524
+ migrations: [createMigration({
4525
+ version: "1.0.0",
4526
+ up: finalVersion
4527
+ })]
4528
+ });
4467
4529
  const fileRepoMigratorInternal = createMigrator();
4468
4530
  const defaultFileRepo = fileRepoMigratorInternal.createDefault({
4469
4531
  version: "2.0.0",
@@ -4625,11 +4687,51 @@ const LEGACY_ID_MAP = {
4625
4687
  };
4626
4688
  const getStrictPluginId = (pluginId) => {
4627
4689
  if (!pluginId) return pluginId;
4628
- if (LEGACY_ID_MAP[pluginId]) return LEGACY_ID_MAP[pluginId];
4629
- if (pluginId.startsWith("@") || pluginId.includes("/") || pluginId.startsWith("pipelab-plugin-")) return pluginId;
4630
- const prefixed = `@pipelab/plugin-${pluginId}`;
4631
- return LEGACY_ID_MAP[prefixed] || prefixed;
4690
+ return LEGACY_ID_MAP[pluginId] || pluginId;
4632
4691
  };
4692
+ //#endregion
4693
+ //#region ../../packages/shared/src/save-location.ts
4694
+ const SaveLocationInternalValidator = object({
4695
+ id: string(),
4696
+ project: string(),
4697
+ lastModified: string(),
4698
+ type: literal("internal"),
4699
+ configName: string()
4700
+ });
4701
+ const SaveLocationValidator = union([
4702
+ object({
4703
+ id: string(),
4704
+ project: string(),
4705
+ path: string(),
4706
+ lastModified: string(),
4707
+ type: literal("external"),
4708
+ summary: object({
4709
+ plugins: array(string()),
4710
+ name: string(),
4711
+ description: string()
4712
+ })
4713
+ }),
4714
+ SaveLocationInternalValidator,
4715
+ object({
4716
+ id: string(),
4717
+ project: string(),
4718
+ type: literal("pipelab-cloud")
4719
+ })
4720
+ ]);
4721
+ object({
4722
+ version: literal("1.0.0"),
4723
+ data: optional(record(string(), SaveLocationValidator), {})
4724
+ });
4725
+ const FileRepoProjectValidatorV2$1 = object({
4726
+ id: string(),
4727
+ name: string(),
4728
+ description: string()
4729
+ });
4730
+ object({
4731
+ version: literal("2.0.0"),
4732
+ projects: array(FileRepoProjectValidatorV2$1),
4733
+ pipelines: optional(array(SaveLocationValidator), [])
4734
+ });
4633
4735
  object({
4634
4736
  cacheFolder: string(),
4635
4737
  theme: union([literal("light"), literal("dark")]),
@@ -4781,6 +4883,17 @@ object({
4781
4883
  })),
4782
4884
  isInternalMigrationBannerClosed: optional(boolean(), false)
4783
4885
  });
4886
+ const ConnectionValidator = looseObject({
4887
+ id: string(),
4888
+ pluginName: string(),
4889
+ name: string(),
4890
+ createdAt: string(),
4891
+ isDefault: boolean()
4892
+ });
4893
+ object({
4894
+ version: literal("1.0.0"),
4895
+ connections: array(ConnectionValidator)
4896
+ });
4784
4897
  //#endregion
4785
4898
  //#region ../../node_modules/tslog/dist/esm/prettyLogStyles.js
4786
4899
  const prettyLogStyles = {
@@ -5301,7 +5414,7 @@ const useLogger = () => {
5301
5414
  const OriginValidator = object({
5302
5415
  pluginId: string(),
5303
5416
  nodeId: string(),
5304
- version: pipe(optional(string()), description("Pinned version of the plugin for this block. Falls back to \"latest\" when absent."))
5417
+ version: optional(pipe(string(), description("Pinned version of the plugin for this block. Falls back to \"latest\" when absent.")))
5305
5418
  });
5306
5419
  const BlockActionValidatorV1 = object({
5307
5420
  type: literal("action"),
@@ -5314,7 +5427,7 @@ const EditorParamValidatorV3 = union([literal("simple"), literal("editor")]);
5314
5427
  const BlockActionValidatorV3 = object({
5315
5428
  type: literal("action"),
5316
5429
  uid: string(),
5317
- name: pipe(optional(string()), description("A custom name provided by the user")),
5430
+ name: optional(pipe(string(), description("A custom name provided by the user"))),
5318
5431
  disabled: optional(boolean()),
5319
5432
  params: record(string(), object({
5320
5433
  editor: EditorParamValidatorV3,
@@ -47604,35 +47717,6 @@ const createPathParam = (value, definition) => {
47604
47717
  };
47605
47718
  };
47606
47719
  //#endregion
47607
- //#region ../../packages/shared/src/save-location.ts
47608
- const SaveLocationInternalValidator = object({
47609
- id: string(),
47610
- project: string(),
47611
- lastModified: string(),
47612
- type: literal("internal"),
47613
- configName: string()
47614
- });
47615
- const SaveLocationValidator = union([
47616
- object({
47617
- id: string(),
47618
- project: string(),
47619
- path: string(),
47620
- lastModified: string(),
47621
- type: literal("external"),
47622
- summary: object({
47623
- plugins: array(string()),
47624
- name: string(),
47625
- description: string()
47626
- })
47627
- }),
47628
- SaveLocationInternalValidator,
47629
- object({
47630
- id: string(),
47631
- project: string(),
47632
- type: literal("pipelab-cloud")
47633
- })
47634
- ]);
47635
- //#endregion
47636
47720
  //#region ../../packages/shared/src/websocket.types.ts
47637
47721
  var WebSocketError = class extends Error {
47638
47722
  constructor(message, code, requestId) {
@@ -47649,20 +47733,6 @@ object({
47649
47733
  version: literal("1.0.0"),
47650
47734
  data: optional(record(string(), SaveLocationValidator), {})
47651
47735
  });
47652
- const FileRepoProjectValidatorV2$1 = object({
47653
- id: string(),
47654
- name: string(),
47655
- description: string()
47656
- });
47657
- object({
47658
- version: literal("2.0.0"),
47659
- projects: array(FileRepoProjectValidatorV2$1),
47660
- pipelines: optional(array(SaveLocationValidator), [])
47661
- });
47662
- object({
47663
- version: literal("1.0.0"),
47664
- data: optional(record(string(), SaveLocationValidator), {})
47665
- });
47666
47736
  const FileRepoProjectValidatorV2 = object({
47667
47737
  id: string(),
47668
47738
  name: string(),
@@ -47674,8 +47744,12 @@ object({
47674
47744
  pipelines: optional(array(SaveLocationValidator), [])
47675
47745
  });
47676
47746
  //#endregion
47747
+ //#region ../../packages/constants/src/index.ts
47748
+ const websocketPort = 33753;
47749
+ //#endregion
47677
47750
  //#region ../../packages/core-node/src/context.ts
47678
- const _dirname = typeof __dirname !== "undefined" ? __dirname : require("url").pathToFileURL(__filename).href ? (0, node_path.dirname)((0, node_url.fileURLToPath)(require("url").pathToFileURL(__filename).href)) : process.cwd();
47751
+ const metaUrl = require("url").pathToFileURL(__filename).href;
47752
+ const _dirname = typeof __dirname !== "undefined" ? __dirname : metaUrl ? (0, node_path.dirname)((0, node_url.fileURLToPath)(metaUrl)) : process.cwd();
47679
47753
  const isDev = process.env.NODE_ENV === "development";
47680
47754
  /**
47681
47755
  * Finds the monorepo root by looking for pnpm-workspace.yaml.
@@ -51247,9 +51321,6 @@ const useAPI = () => {
51247
51321
  };
51248
51322
  };
51249
51323
  //#endregion
51250
- //#region ../../packages/constants/src/index.ts
51251
- const websocketPort = 33753;
51252
- //#endregion
51253
51324
  //#region ../../packages/core-node/src/websocket-server.ts
51254
51325
  var WebSocketServer = class {
51255
51326
  wss = null;
@@ -56096,14 +56167,14 @@ var require_path_reservations = /* @__PURE__ */ require_chunk.__commonJSMin(((ex
56096
56167
  const assert$1 = require("assert");
56097
56168
  const normalize = require_normalize_unicode();
56098
56169
  const stripSlashes = require_strip_trailing_slashes();
56099
- const { join: join$17 } = require("path");
56170
+ const { join: join$18 } = require("path");
56100
56171
  const isWindows = (process.env.TESTING_TAR_FAKE_PLATFORM || process.platform) === "win32";
56101
56172
  module.exports = () => {
56102
56173
  const queues = /* @__PURE__ */ new Map();
56103
56174
  const reservations = /* @__PURE__ */ new Map();
56104
56175
  const getDirs = (path$55) => {
56105
56176
  return path$55.split("/").slice(0, -1).reduce((set, path$56) => {
56106
- if (set.length) path$56 = join$17(set[set.length - 1], path$56);
56177
+ if (set.length) path$56 = join$18(set[set.length - 1], path$56);
56107
56178
  set.push(path$56 || "/");
56108
56179
  return set;
56109
56180
  }, []);
@@ -56157,7 +56228,7 @@ var require_path_reservations = /* @__PURE__ */ require_chunk.__commonJSMin(((ex
56157
56228
  };
56158
56229
  const reserve = (paths, fn) => {
56159
56230
  paths = isWindows ? ["win32 parallelization disabled"] : paths.map((p) => {
56160
- return stripSlashes(join$17(normalize(p))).toLowerCase();
56231
+ return stripSlashes(join$18(normalize(p))).toLowerCase();
56161
56232
  });
56162
56233
  const dirs = new Set(paths.map((path$60) => getDirs(path$60)).reduce((a, b) => a.concat(b)));
56163
56234
  reservations.set(fn, {
@@ -91808,7 +91879,7 @@ var require_index_min$3 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
91808
91879
  //#region ../../node_modules/@npmcli/promise-spawn/node_modules/which/lib/index.js
91809
91880
  var require_lib$27 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
91810
91881
  const { isexe, sync: isexeSync } = require_index_min$3();
91811
- const { join: join$14, delimiter: delimiter$3, sep: sep$4, posix: posix$1 } = require("path");
91882
+ const { join: join$15, delimiter: delimiter$3, sep: sep$4, posix: posix$1 } = require("path");
91812
91883
  const isWindows = process.platform === "win32";
91813
91884
  /* istanbul ignore next */
91814
91885
  const rSlash = new RegExp(`[${posix$1.sep}${sep$4 === posix$1.sep ? "" : sep$4}]`.replace(/(\\)/g, "\\$1"));
@@ -91838,7 +91909,7 @@ var require_lib$27 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
91838
91909
  };
91839
91910
  const getPathPart = (raw, cmd) => {
91840
91911
  const pathPart = /^".*"$/.test(raw) ? raw.slice(1, -1) : raw;
91841
- return (!pathPart && rRel.test(cmd) ? cmd.slice(0, 2) : "") + join$14(pathPart, cmd);
91912
+ return (!pathPart && rRel.test(cmd) ? cmd.slice(0, 2) : "") + join$15(pathPart, cmd);
91842
91913
  };
91843
91914
  const which = async (cmd, opt = {}) => {
91844
91915
  const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt);
@@ -92587,7 +92658,7 @@ var require_index_min$2 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
92587
92658
  //#region ../../node_modules/@npmcli/git/node_modules/which/lib/index.js
92588
92659
  var require_lib$24 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
92589
92660
  const { isexe, sync: isexeSync } = require_index_min$2();
92590
- const { join: join$13, delimiter: delimiter$2, sep: sep$3, posix } = require("path");
92661
+ const { join: join$14, delimiter: delimiter$2, sep: sep$3, posix } = require("path");
92591
92662
  const isWindows = process.platform === "win32";
92592
92663
  /* istanbul ignore next */
92593
92664
  const rSlash = new RegExp(`[${posix.sep}${sep$3 === posix.sep ? "" : sep$3}]`.replace(/(\\)/g, "\\$1"));
@@ -92617,7 +92688,7 @@ var require_lib$24 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
92617
92688
  };
92618
92689
  const getPathPart = (raw, cmd) => {
92619
92690
  const pathPart = /^".*"$/.test(raw) ? raw.slice(1, -1) : raw;
92620
- return (!pathPart && rRel.test(cmd) ? cmd.slice(0, 2) : "") + join$13(pathPart, cmd);
92691
+ return (!pathPart && rRel.test(cmd) ? cmd.slice(0, 2) : "") + join$14(pathPart, cmd);
92621
92692
  };
92622
92693
  const which = async (cmd, opt = {}) => {
92623
92694
  const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt);
@@ -94515,7 +94586,7 @@ var require_lib$22 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
94515
94586
  //#endregion
94516
94587
  //#region ../../node_modules/npm-normalize-package-bin/lib/index.js
94517
94588
  var require_lib$21 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
94518
- const { join: join$12, basename: basename$4 } = require("path");
94589
+ const { join: join$13, basename: basename$4 } = require("path");
94519
94590
  const normalize = (pkg) => !pkg.bin ? removeBin(pkg) : typeof pkg.bin === "string" ? normalizeString(pkg) : Array.isArray(pkg.bin) ? normalizeArray(pkg) : typeof pkg.bin === "object" ? normalizeObject(pkg) : removeBin(pkg);
94520
94591
  const normalizeString = (pkg) => {
94521
94592
  if (!pkg.name) return removeBin(pkg);
@@ -94538,9 +94609,9 @@ var require_lib$21 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
94538
94609
  const clean = {};
94539
94610
  let hasBins = false;
94540
94611
  Object.keys(orig).forEach((binKey) => {
94541
- const base = join$12("/", basename$4(binKey.replace(/\\|:/g, "/"))).slice(1);
94612
+ const base = join$13("/", basename$4(binKey.replace(/\\|:/g, "/"))).slice(1);
94542
94613
  if (typeof orig[binKey] !== "string" || !base) return;
94543
- const binTarget = join$12("/", orig[binKey].replace(/\\/g, "/")).replace(/\\/g, "/").slice(1);
94614
+ const binTarget = join$13("/", orig[binKey].replace(/\\/g, "/")).replace(/\\/g, "/").slice(1);
94544
94615
  if (!binTarget) return;
94545
94616
  clean[base] = binTarget;
94546
94617
  hasBins = true;
@@ -96613,7 +96684,7 @@ var require_polyfill = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
96613
96684
  const { ERR_FS_CP_DIR_TO_NON_DIR, ERR_FS_CP_EEXIST, ERR_FS_CP_EINVAL, ERR_FS_CP_FIFO_PIPE, ERR_FS_CP_NON_DIR_TO_DIR, ERR_FS_CP_SOCKET, ERR_FS_CP_SYMLINK_TO_SUBDIRECTORY, ERR_FS_CP_UNKNOWN, ERR_FS_EISDIR, ERR_INVALID_ARG_TYPE } = require_errors$3();
96614
96685
  const { constants: { errno: { EEXIST, EISDIR, EINVAL, ENOTDIR } } } = require("os");
96615
96686
  const { chmod: chmod$2, copyFile, lstat: lstat$2, mkdir: mkdir$7, readdir: readdir$7, readlink, stat: stat$5, symlink, unlink, utimes } = require("fs/promises");
96616
- const { dirname: dirname$8, isAbsolute: isAbsolute$2, join: join$11, parse, resolve: resolve$10, sep: sep$2, toNamespacedPath } = require("path");
96687
+ const { dirname: dirname$8, isAbsolute: isAbsolute$2, join: join$12, parse, resolve: resolve$10, sep: sep$2, toNamespacedPath } = require("path");
96617
96688
  const { fileURLToPath } = require("url");
96618
96689
  const defaultOptions = {
96619
96690
  dereference: false,
@@ -96822,8 +96893,8 @@ var require_polyfill = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
96822
96893
  const dir = await readdir$7(src);
96823
96894
  for (let i = 0; i < dir.length; i++) {
96824
96895
  const item = dir[i];
96825
- const srcItem = join$11(src, item);
96826
- const destItem = join$11(dest, item);
96896
+ const srcItem = join$12(src, item);
96897
+ const destItem = join$12(dest, item);
96827
96898
  const { destStat } = await checkPaths(srcItem, destItem, opts);
96828
96899
  await startCopy(destStat, srcItem, destItem, opts);
96829
96900
  }
@@ -96887,13 +96958,13 @@ var require_cp = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module)
96887
96958
  //#endregion
96888
96959
  //#region ../../node_modules/cacache/node_modules/@npmcli/fs/lib/with-temp-dir.js
96889
96960
  var require_with_temp_dir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
96890
- const { join: join$10, sep: sep$1 } = require("path");
96961
+ const { join: join$11, sep: sep$1 } = require("path");
96891
96962
  const getOptions = require_get_options();
96892
96963
  const { mkdir: mkdir$6, mkdtemp, rm: rm$7 } = require("fs/promises");
96893
96964
  const withTempDir = async (root, fn, opts) => {
96894
96965
  const options = getOptions(opts, { copy: ["tmpPrefix"] });
96895
96966
  await mkdir$6(root, { recursive: true });
96896
- const target = await mkdtemp(join$10(`${root}${sep$1}`, options.tmpPrefix || ""));
96967
+ const target = await mkdtemp(join$11(`${root}${sep$1}`, options.tmpPrefix || ""));
96897
96968
  let err;
96898
96969
  let result;
96899
96970
  try {
@@ -96916,10 +96987,10 @@ var require_with_temp_dir = /* @__PURE__ */ require_chunk.__commonJSMin(((export
96916
96987
  //#region ../../node_modules/cacache/node_modules/@npmcli/fs/lib/readdir-scoped.js
96917
96988
  var require_readdir_scoped = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
96918
96989
  const { readdir: readdir$6 } = require("fs/promises");
96919
- const { join: join$9 } = require("path");
96990
+ const { join: join$10 } = require("path");
96920
96991
  const readdirScoped = async (dir) => {
96921
96992
  const results = [];
96922
- for (const item of await readdir$6(dir)) if (item.startsWith("@")) for (const scopedItem of await readdir$6(join$9(dir, item))) results.push(join$9(item, scopedItem));
96993
+ for (const item of await readdir$6(dir)) if (item.startsWith("@")) for (const scopedItem of await readdir$6(join$10(dir, item))) results.push(join$10(item, scopedItem));
96923
96994
  else results.push(item);
96924
96995
  return results;
96925
96996
  };
@@ -96928,7 +96999,7 @@ var require_readdir_scoped = /* @__PURE__ */ require_chunk.__commonJSMin(((expor
96928
96999
  //#endregion
96929
97000
  //#region ../../node_modules/cacache/node_modules/@npmcli/fs/lib/move-file.js
96930
97001
  var require_move_file = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
96931
- const { dirname: dirname$7, join: join$8, resolve: resolve$9, relative: relative$1, isAbsolute: isAbsolute$1 } = require("path");
97002
+ const { dirname: dirname$7, join: join$9, resolve: resolve$9, relative: relative$1, isAbsolute: isAbsolute$1 } = require("path");
96932
97003
  const fs$12 = require("fs/promises");
96933
97004
  const pathExists = async (path$47) => {
96934
97005
  try {
@@ -96953,7 +97024,7 @@ var require_move_file = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
96953
97024
  const sourceStat = await fs$12.lstat(source);
96954
97025
  if (sourceStat.isDirectory()) {
96955
97026
  const files = await fs$12.readdir(source);
96956
- await Promise.all(files.map((file) => moveFile(join$8(source, file), join$8(destination, file), options, false, symlinks)));
97027
+ await Promise.all(files.map((file) => moveFile(join$9(source, file), join$9(destination, file), options, false, symlinks)));
96957
97028
  } else if (sourceStat.isSymbolicLink()) symlinks.push({
96958
97029
  source,
96959
97030
  destination
@@ -106492,9 +106563,9 @@ var require_protected = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
106492
106563
  //#region ../../node_modules/pacote/lib/util/cache-dir.js
106493
106564
  var require_cache_dir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
106494
106565
  const { resolve: resolve$7 } = require("node:path");
106495
- const { tmpdir: tmpdir$2, homedir } = require("node:os");
106566
+ const { tmpdir, homedir } = require("node:os");
106496
106567
  module.exports = (fakePlatform = false) => {
106497
- const temp = tmpdir$2();
106568
+ const temp = tmpdir();
106498
106569
  const uidOrPid = process.getuid ? process.getuid() : process.pid;
106499
106570
  const home = homedir() || resolve$7(temp, "npm-" + uidOrPid);
106500
106571
  const platform = fakePlatform || process.platform;
@@ -108316,7 +108387,7 @@ var require_lib$10 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
108316
108387
  var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
108317
108388
  const { Walker: IgnoreWalker } = require_lib$10();
108318
108389
  const { lstatSync: lstat$1, readFileSync: readFile$4 } = require("fs");
108319
- const { basename: basename$2, dirname: dirname$5, extname: extname$1, join: join$7, relative, resolve: resolve$6, sep } = require("path");
108390
+ const { basename: basename$2, dirname: dirname$5, extname: extname$1, join: join$8, relative, resolve: resolve$6, sep } = require("path");
108320
108391
  const { log } = require_lib$29();
108321
108392
  const defaultRules = Symbol("npm-packlist.rules.default");
108322
108393
  const strictRules = Symbol("npm-packlist.rules.strict");
@@ -108349,7 +108420,7 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
108349
108420
  const normalizePath = (path$39) => path$39.split("\\").join("/");
108350
108421
  const readOutOfTreeIgnoreFiles = (root, rel, result = []) => {
108351
108422
  for (const file of [".npmignore", ".gitignore"]) try {
108352
- const ignoreContent = readFile$4(join$7(root, file), { encoding: "utf8" });
108423
+ const ignoreContent = readFile$4(join$8(root, file), { encoding: "utf8" });
108353
108424
  result.push(ignoreContent);
108354
108425
  break;
108355
108426
  } catch (err) {
@@ -108358,8 +108429,8 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
108358
108429
  }
108359
108430
  if (!rel) return result;
108360
108431
  const firstRel = rel.split(sep, 1)[0];
108361
- const newRoot = join$7(root, firstRel);
108362
- return readOutOfTreeIgnoreFiles(newRoot, relative(newRoot, join$7(root, rel)), result);
108432
+ const newRoot = join$8(root, firstRel);
108433
+ return readOutOfTreeIgnoreFiles(newRoot, relative(newRoot, join$8(root, rel)), result);
108363
108434
  };
108364
108435
  var PackWalker = class PackWalker extends IgnoreWalker {
108365
108436
  constructor(tree, opts) {
@@ -108426,7 +108497,7 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
108426
108497
  let ignoreFiles = null;
108427
108498
  if (this.tree.workspaces) {
108428
108499
  const workspaceDirs = [...this.tree.workspaces.values()].map((dir) => dir.replace(/\\/g, "/"));
108429
- const entryPath = join$7(this.path, entry).replace(/\\/g, "/");
108500
+ const entryPath = join$8(this.path, entry).replace(/\\/g, "/");
108430
108501
  if (workspaceDirs.includes(entryPath)) ignoreFiles = [
108431
108502
  defaultRules,
108432
108503
  "package.json",
@@ -108486,7 +108557,7 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
108486
108557
  if (file.endsWith("/*")) file += "*";
108487
108558
  const inverse = `!${file}`;
108488
108559
  try {
108489
- const stat = lstat$1(join$7(this.path, file.replace(/^!+/, "")).replace(/\\/g, "/"));
108560
+ const stat = lstat$1(join$8(this.path, file.replace(/^!+/, "")).replace(/\\/g, "/"));
108490
108561
  if (stat.isFile()) {
108491
108562
  strict.unshift(inverse);
108492
108563
  this.requiredFiles.push(file.startsWith("/") ? file.slice(1) : file);
@@ -108543,7 +108614,7 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
108543
108614
  walker.start();
108544
108615
  });
108545
108616
  const relativeFrom = relative(this.root, walker.path);
108546
- for (const file of bundled) this.result.add(join$7(relativeFrom, file).replace(/\\/g, "/"));
108617
+ for (const file of bundled) this.result.add(join$8(relativeFrom, file).replace(/\\/g, "/"));
108547
108618
  }
108548
108619
  }
108549
108620
  };
@@ -119744,7 +119815,7 @@ var require_auth = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
119744
119815
  //#endregion
119745
119816
  //#region ../../node_modules/make-fetch-happen/lib/options.js
119746
119817
  var require_options$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
119747
- const dns$2 = require("dns");
119818
+ const dns$3 = require("dns");
119748
119819
  const conditionalHeaders = [
119749
119820
  "if-modified-since",
119750
119821
  "if-none-match",
@@ -119769,7 +119840,7 @@ var require_options$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
119769
119840
  };
119770
119841
  options.dns = {
119771
119842
  ttl: 300 * 1e3,
119772
- lookup: dns$2.lookup,
119843
+ lookup: dns$3.lookup,
119773
119844
  ...options.dns
119774
119845
  };
119775
119846
  options.cache = options.cache || "default";
@@ -121186,9 +121257,9 @@ var require_key$3 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
121186
121257
  //#region ../../node_modules/@npmcli/agent/lib/dns.js
121187
121258
  var require_dns = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
121188
121259
  const { LRUCache } = require_index_min$5();
121189
- const dns$1 = require("dns");
121260
+ const dns$2 = require("dns");
121190
121261
  const cache = new LRUCache({ max: 50 });
121191
- const getOptions = ({ family = 0, hints = dns$1.ADDRCONFIG, all = false, verbatim = void 0, ttl = 300 * 1e3, lookup = dns$1.lookup }) => ({
121262
+ const getOptions = ({ family = 0, hints = dns$2.ADDRCONFIG, all = false, verbatim = void 0, ttl = 300 * 1e3, lookup = dns$2.lookup }) => ({
121192
121263
  hints,
121193
121264
  lookup: (hostname, ...args) => {
121194
121265
  const callback = args.pop();
@@ -126227,7 +126298,7 @@ var require_dist$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
126227
126298
  const socks_1 = require_build$1();
126228
126299
  const agent_base_1 = require_dist$12();
126229
126300
  const debug_1 = __importDefault(require_src$1());
126230
- const dns = __importStar(require("dns"));
126301
+ const dns$1 = __importStar(require("dns"));
126231
126302
  const net$1 = __importStar(require("net"));
126232
126303
  const tls$1 = __importStar(require("tls"));
126233
126304
  const url_1$1 = require("url");
@@ -126299,7 +126370,7 @@ var require_dist$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
126299
126370
  const { shouldLookup, proxy, timeout } = this;
126300
126371
  if (!opts.host) throw new Error("No `host` defined!");
126301
126372
  let { host } = opts;
126302
- const { port, lookup: lookupFn = dns.lookup } = opts;
126373
+ const { port, lookup: lookupFn = dns$1.lookup } = opts;
126303
126374
  if (shouldLookup) host = await new Promise((resolve, reject) => {
126304
126375
  lookupFn(host, {}, (err, res) => {
126305
126376
  if (err) reject(err);
@@ -147019,7 +147090,7 @@ require_semver();
147019
147090
  require_lib();
147020
147091
  //#endregion
147021
147092
  //#region ../../packages/core-node/src/handler-func.ts
147022
- const { join: join$5 } = node_path.default;
147093
+ const { join: join$6 } = node_path.default;
147023
147094
  //#endregion
147024
147095
  //#region ../../packages/core-node/src/handlers/plugins.ts
147025
147096
  const localPluginsMap = /* @__PURE__ */ new Map();