@pipelab/plugin-nvpatch 1.0.0-beta.14 → 1.0.0-beta.15
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 +155 -84
- package/dist/index.mjs +126 -55
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -21,11 +21,11 @@ let node_stream = require("node:stream");
|
|
|
21
21
|
let node_buffer = require("node:buffer");
|
|
22
22
|
let os = require("os");
|
|
23
23
|
let util = require("util");
|
|
24
|
+
let node_fs_promises = require("node:fs/promises");
|
|
25
|
+
node_fs_promises = require_chunk.__toESM(node_fs_promises);
|
|
24
26
|
let node_http = require("node:http");
|
|
25
27
|
node_http = require_chunk.__toESM(node_http);
|
|
26
28
|
let node_crypto = require("node:crypto");
|
|
27
|
-
let node_fs_promises = require("node:fs/promises");
|
|
28
|
-
node_fs_promises = require_chunk.__toESM(node_fs_promises);
|
|
29
29
|
//#region ../../node_modules/is-plain-obj/index.js
|
|
30
30
|
function isPlainObject(value) {
|
|
31
31
|
if (typeof value !== "object" || value === null) return false;
|
|
@@ -9131,6 +9131,56 @@ function literal(literal_, message) {
|
|
|
9131
9131
|
}
|
|
9132
9132
|
};
|
|
9133
9133
|
}
|
|
9134
|
+
function looseObject(entries, message) {
|
|
9135
|
+
return {
|
|
9136
|
+
kind: "schema",
|
|
9137
|
+
type: "loose_object",
|
|
9138
|
+
reference: looseObject,
|
|
9139
|
+
expects: "Object",
|
|
9140
|
+
async: false,
|
|
9141
|
+
entries,
|
|
9142
|
+
message,
|
|
9143
|
+
_run(dataset, config2) {
|
|
9144
|
+
const input = dataset.value;
|
|
9145
|
+
if (input && typeof input === "object") {
|
|
9146
|
+
dataset.typed = true;
|
|
9147
|
+
dataset.value = {};
|
|
9148
|
+
for (const key in this.entries) {
|
|
9149
|
+
const value2 = input[key];
|
|
9150
|
+
const valueDataset = this.entries[key]._run({
|
|
9151
|
+
typed: false,
|
|
9152
|
+
value: value2
|
|
9153
|
+
}, config2);
|
|
9154
|
+
if (valueDataset.issues) {
|
|
9155
|
+
const pathItem = {
|
|
9156
|
+
type: "object",
|
|
9157
|
+
origin: "value",
|
|
9158
|
+
input,
|
|
9159
|
+
key,
|
|
9160
|
+
value: value2
|
|
9161
|
+
};
|
|
9162
|
+
for (const issue of valueDataset.issues) {
|
|
9163
|
+
if (issue.path) issue.path.unshift(pathItem);
|
|
9164
|
+
else issue.path = [pathItem];
|
|
9165
|
+
dataset.issues?.push(issue);
|
|
9166
|
+
}
|
|
9167
|
+
if (!dataset.issues) dataset.issues = valueDataset.issues;
|
|
9168
|
+
if (config2.abortEarly) {
|
|
9169
|
+
dataset.typed = false;
|
|
9170
|
+
break;
|
|
9171
|
+
}
|
|
9172
|
+
}
|
|
9173
|
+
if (!valueDataset.typed) dataset.typed = false;
|
|
9174
|
+
if (valueDataset.value !== void 0 || key in input) dataset.value[key] = valueDataset.value;
|
|
9175
|
+
}
|
|
9176
|
+
if (!dataset.issues || !config2.abortEarly) {
|
|
9177
|
+
for (const key in input) if (_isValidObjectKey(input, key) && !(key in this.entries)) dataset.value[key] = input[key];
|
|
9178
|
+
}
|
|
9179
|
+
} else _addIssue(this, "type", dataset, config2);
|
|
9180
|
+
return dataset;
|
|
9181
|
+
}
|
|
9182
|
+
};
|
|
9183
|
+
}
|
|
9134
9184
|
function number(message) {
|
|
9135
9185
|
return {
|
|
9136
9186
|
kind: "schema",
|
|
@@ -9668,6 +9718,18 @@ settingsMigratorInternal.createMigrations({
|
|
|
9668
9718
|
})
|
|
9669
9719
|
]
|
|
9670
9720
|
});
|
|
9721
|
+
const connectionsMigratorInternal = createMigrator();
|
|
9722
|
+
const defaultConnections = connectionsMigratorInternal.createDefault({
|
|
9723
|
+
version: "1.0.0",
|
|
9724
|
+
connections: []
|
|
9725
|
+
});
|
|
9726
|
+
connectionsMigratorInternal.createMigrations({
|
|
9727
|
+
defaultValue: defaultConnections,
|
|
9728
|
+
migrations: [createMigration({
|
|
9729
|
+
version: "1.0.0",
|
|
9730
|
+
up: finalVersion
|
|
9731
|
+
})]
|
|
9732
|
+
});
|
|
9671
9733
|
const fileRepoMigratorInternal = createMigrator();
|
|
9672
9734
|
const defaultFileRepo = fileRepoMigratorInternal.createDefault({
|
|
9673
9735
|
version: "2.0.0",
|
|
@@ -9829,11 +9891,51 @@ const LEGACY_ID_MAP = {
|
|
|
9829
9891
|
};
|
|
9830
9892
|
const getStrictPluginId = (pluginId) => {
|
|
9831
9893
|
if (!pluginId) return pluginId;
|
|
9832
|
-
|
|
9833
|
-
if (pluginId.startsWith("@") || pluginId.includes("/") || pluginId.startsWith("pipelab-plugin-")) return pluginId;
|
|
9834
|
-
const prefixed = `@pipelab/plugin-${pluginId}`;
|
|
9835
|
-
return LEGACY_ID_MAP[prefixed] || prefixed;
|
|
9894
|
+
return LEGACY_ID_MAP[pluginId] || pluginId;
|
|
9836
9895
|
};
|
|
9896
|
+
//#endregion
|
|
9897
|
+
//#region ../../packages/shared/src/save-location.ts
|
|
9898
|
+
const SaveLocationInternalValidator = object({
|
|
9899
|
+
id: string(),
|
|
9900
|
+
project: string(),
|
|
9901
|
+
lastModified: string(),
|
|
9902
|
+
type: literal("internal"),
|
|
9903
|
+
configName: string()
|
|
9904
|
+
});
|
|
9905
|
+
const SaveLocationValidator = union([
|
|
9906
|
+
object({
|
|
9907
|
+
id: string(),
|
|
9908
|
+
project: string(),
|
|
9909
|
+
path: string(),
|
|
9910
|
+
lastModified: string(),
|
|
9911
|
+
type: literal("external"),
|
|
9912
|
+
summary: object({
|
|
9913
|
+
plugins: array(string()),
|
|
9914
|
+
name: string(),
|
|
9915
|
+
description: string()
|
|
9916
|
+
})
|
|
9917
|
+
}),
|
|
9918
|
+
SaveLocationInternalValidator,
|
|
9919
|
+
object({
|
|
9920
|
+
id: string(),
|
|
9921
|
+
project: string(),
|
|
9922
|
+
type: literal("pipelab-cloud")
|
|
9923
|
+
})
|
|
9924
|
+
]);
|
|
9925
|
+
object({
|
|
9926
|
+
version: literal("1.0.0"),
|
|
9927
|
+
data: optional(record(string(), SaveLocationValidator), {})
|
|
9928
|
+
});
|
|
9929
|
+
const FileRepoProjectValidatorV2$1 = object({
|
|
9930
|
+
id: string(),
|
|
9931
|
+
name: string(),
|
|
9932
|
+
description: string()
|
|
9933
|
+
});
|
|
9934
|
+
object({
|
|
9935
|
+
version: literal("2.0.0"),
|
|
9936
|
+
projects: array(FileRepoProjectValidatorV2$1),
|
|
9937
|
+
pipelines: optional(array(SaveLocationValidator), [])
|
|
9938
|
+
});
|
|
9837
9939
|
object({
|
|
9838
9940
|
cacheFolder: string(),
|
|
9839
9941
|
theme: union([literal("light"), literal("dark")]),
|
|
@@ -9985,6 +10087,17 @@ object({
|
|
|
9985
10087
|
})),
|
|
9986
10088
|
isInternalMigrationBannerClosed: optional(boolean(), false)
|
|
9987
10089
|
});
|
|
10090
|
+
const ConnectionValidator = looseObject({
|
|
10091
|
+
id: string(),
|
|
10092
|
+
pluginName: string(),
|
|
10093
|
+
name: string(),
|
|
10094
|
+
createdAt: string(),
|
|
10095
|
+
isDefault: boolean()
|
|
10096
|
+
});
|
|
10097
|
+
object({
|
|
10098
|
+
version: literal("1.0.0"),
|
|
10099
|
+
connections: array(ConnectionValidator)
|
|
10100
|
+
});
|
|
9988
10101
|
//#endregion
|
|
9989
10102
|
//#region ../../node_modules/tslog/dist/esm/prettyLogStyles.js
|
|
9990
10103
|
const prettyLogStyles = {
|
|
@@ -10505,7 +10618,7 @@ const useLogger = () => {
|
|
|
10505
10618
|
const OriginValidator = object({
|
|
10506
10619
|
pluginId: string(),
|
|
10507
10620
|
nodeId: string(),
|
|
10508
|
-
version: pipe(
|
|
10621
|
+
version: optional(pipe(string(), description("Pinned version of the plugin for this block. Falls back to \"latest\" when absent.")))
|
|
10509
10622
|
});
|
|
10510
10623
|
const BlockActionValidatorV1 = object({
|
|
10511
10624
|
type: literal("action"),
|
|
@@ -10518,7 +10631,7 @@ const EditorParamValidatorV3 = union([literal("simple"), literal("editor")]);
|
|
|
10518
10631
|
const BlockActionValidatorV3 = object({
|
|
10519
10632
|
type: literal("action"),
|
|
10520
10633
|
uid: string(),
|
|
10521
|
-
name: pipe(
|
|
10634
|
+
name: optional(pipe(string(), description("A custom name provided by the user"))),
|
|
10522
10635
|
disabled: optional(boolean()),
|
|
10523
10636
|
params: record(string(), object({
|
|
10524
10637
|
editor: EditorParamValidatorV3,
|
|
@@ -52808,35 +52921,6 @@ const createPathParam = (value, definition) => {
|
|
|
52808
52921
|
};
|
|
52809
52922
|
};
|
|
52810
52923
|
//#endregion
|
|
52811
|
-
//#region ../../packages/shared/src/save-location.ts
|
|
52812
|
-
const SaveLocationInternalValidator = object({
|
|
52813
|
-
id: string(),
|
|
52814
|
-
project: string(),
|
|
52815
|
-
lastModified: string(),
|
|
52816
|
-
type: literal("internal"),
|
|
52817
|
-
configName: string()
|
|
52818
|
-
});
|
|
52819
|
-
const SaveLocationValidator = union([
|
|
52820
|
-
object({
|
|
52821
|
-
id: string(),
|
|
52822
|
-
project: string(),
|
|
52823
|
-
path: string(),
|
|
52824
|
-
lastModified: string(),
|
|
52825
|
-
type: literal("external"),
|
|
52826
|
-
summary: object({
|
|
52827
|
-
plugins: array(string()),
|
|
52828
|
-
name: string(),
|
|
52829
|
-
description: string()
|
|
52830
|
-
})
|
|
52831
|
-
}),
|
|
52832
|
-
SaveLocationInternalValidator,
|
|
52833
|
-
object({
|
|
52834
|
-
id: string(),
|
|
52835
|
-
project: string(),
|
|
52836
|
-
type: literal("pipelab-cloud")
|
|
52837
|
-
})
|
|
52838
|
-
]);
|
|
52839
|
-
//#endregion
|
|
52840
52924
|
//#region ../../packages/shared/src/websocket.types.ts
|
|
52841
52925
|
var WebSocketError = class extends Error {
|
|
52842
52926
|
constructor(message, code, requestId) {
|
|
@@ -52853,20 +52937,6 @@ object({
|
|
|
52853
52937
|
version: literal("1.0.0"),
|
|
52854
52938
|
data: optional(record(string(), SaveLocationValidator), {})
|
|
52855
52939
|
});
|
|
52856
|
-
const FileRepoProjectValidatorV2$1 = object({
|
|
52857
|
-
id: string(),
|
|
52858
|
-
name: string(),
|
|
52859
|
-
description: string()
|
|
52860
|
-
});
|
|
52861
|
-
object({
|
|
52862
|
-
version: literal("2.0.0"),
|
|
52863
|
-
projects: array(FileRepoProjectValidatorV2$1),
|
|
52864
|
-
pipelines: optional(array(SaveLocationValidator), [])
|
|
52865
|
-
});
|
|
52866
|
-
object({
|
|
52867
|
-
version: literal("1.0.0"),
|
|
52868
|
-
data: optional(record(string(), SaveLocationValidator), {})
|
|
52869
|
-
});
|
|
52870
52940
|
const FileRepoProjectValidatorV2 = object({
|
|
52871
52941
|
id: string(),
|
|
52872
52942
|
name: string(),
|
|
@@ -52878,8 +52948,12 @@ object({
|
|
|
52878
52948
|
pipelines: optional(array(SaveLocationValidator), [])
|
|
52879
52949
|
});
|
|
52880
52950
|
//#endregion
|
|
52951
|
+
//#region ../../packages/constants/src/index.ts
|
|
52952
|
+
const websocketPort = 33753;
|
|
52953
|
+
//#endregion
|
|
52881
52954
|
//#region ../../packages/core-node/src/context.ts
|
|
52882
|
-
const
|
|
52955
|
+
const metaUrl = require("url").pathToFileURL(__filename).href;
|
|
52956
|
+
const _dirname = typeof __dirname !== "undefined" ? __dirname : metaUrl ? (0, node_path.dirname)((0, node_url.fileURLToPath)(metaUrl)) : process.cwd();
|
|
52883
52957
|
const isDev = process.env.NODE_ENV === "development";
|
|
52884
52958
|
/**
|
|
52885
52959
|
* Finds the monorepo root by looking for pnpm-workspace.yaml.
|
|
@@ -56451,9 +56525,6 @@ const useAPI = () => {
|
|
|
56451
56525
|
};
|
|
56452
56526
|
};
|
|
56453
56527
|
//#endregion
|
|
56454
|
-
//#region ../../packages/constants/src/index.ts
|
|
56455
|
-
const websocketPort = 33753;
|
|
56456
|
-
//#endregion
|
|
56457
56528
|
//#region ../../packages/core-node/src/websocket-server.ts
|
|
56458
56529
|
var WebSocketServer = class {
|
|
56459
56530
|
wss = null;
|
|
@@ -65497,14 +65568,14 @@ var require_path_reservations = /* @__PURE__ */ require_chunk.__commonJSMin(((ex
|
|
|
65497
65568
|
const assert$1 = require("assert");
|
|
65498
65569
|
const normalize = require_normalize_unicode();
|
|
65499
65570
|
const stripSlashes = require_strip_trailing_slashes();
|
|
65500
|
-
const { join: join$
|
|
65571
|
+
const { join: join$18 } = require("path");
|
|
65501
65572
|
const isWindows = (process.env.TESTING_TAR_FAKE_PLATFORM || process.platform) === "win32";
|
|
65502
65573
|
module.exports = () => {
|
|
65503
65574
|
const queues = /* @__PURE__ */ new Map();
|
|
65504
65575
|
const reservations = /* @__PURE__ */ new Map();
|
|
65505
65576
|
const getDirs = (path$65) => {
|
|
65506
65577
|
return path$65.split("/").slice(0, -1).reduce((set, path$66) => {
|
|
65507
|
-
if (set.length) path$66 = join$
|
|
65578
|
+
if (set.length) path$66 = join$18(set[set.length - 1], path$66);
|
|
65508
65579
|
set.push(path$66 || "/");
|
|
65509
65580
|
return set;
|
|
65510
65581
|
}, []);
|
|
@@ -65558,7 +65629,7 @@ var require_path_reservations = /* @__PURE__ */ require_chunk.__commonJSMin(((ex
|
|
|
65558
65629
|
};
|
|
65559
65630
|
const reserve = (paths, fn) => {
|
|
65560
65631
|
paths = isWindows ? ["win32 parallelization disabled"] : paths.map((p) => {
|
|
65561
|
-
return stripSlashes(join$
|
|
65632
|
+
return stripSlashes(join$18(normalize(p))).toLowerCase();
|
|
65562
65633
|
});
|
|
65563
65634
|
const dirs = new Set(paths.map((path$70) => getDirs(path$70)).reduce((a, b) => a.concat(b)));
|
|
65564
65635
|
reservations.set(fn, {
|
|
@@ -100885,7 +100956,7 @@ var require_index_min$3 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
100885
100956
|
//#region ../../node_modules/@npmcli/promise-spawn/node_modules/which/lib/index.js
|
|
100886
100957
|
var require_lib$27 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
100887
100958
|
const { isexe, sync: isexeSync } = require_index_min$3();
|
|
100888
|
-
const { join: join$
|
|
100959
|
+
const { join: join$15, delimiter: delimiter$3, sep: sep$4, posix: posix$1 } = require("path");
|
|
100889
100960
|
const isWindows = process.platform === "win32";
|
|
100890
100961
|
/* istanbul ignore next */
|
|
100891
100962
|
const rSlash = new RegExp(`[${posix$1.sep}${sep$4 === posix$1.sep ? "" : sep$4}]`.replace(/(\\)/g, "\\$1"));
|
|
@@ -100915,7 +100986,7 @@ var require_lib$27 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
100915
100986
|
};
|
|
100916
100987
|
const getPathPart = (raw, cmd) => {
|
|
100917
100988
|
const pathPart = /^".*"$/.test(raw) ? raw.slice(1, -1) : raw;
|
|
100918
|
-
return (!pathPart && rRel.test(cmd) ? cmd.slice(0, 2) : "") + join$
|
|
100989
|
+
return (!pathPart && rRel.test(cmd) ? cmd.slice(0, 2) : "") + join$15(pathPart, cmd);
|
|
100919
100990
|
};
|
|
100920
100991
|
const which = async (cmd, opt = {}) => {
|
|
100921
100992
|
const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt);
|
|
@@ -101664,7 +101735,7 @@ var require_index_min$2 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
101664
101735
|
//#region ../../node_modules/@npmcli/git/node_modules/which/lib/index.js
|
|
101665
101736
|
var require_lib$24 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
101666
101737
|
const { isexe, sync: isexeSync } = require_index_min$2();
|
|
101667
|
-
const { join: join$
|
|
101738
|
+
const { join: join$14, delimiter: delimiter$2, sep: sep$3, posix } = require("path");
|
|
101668
101739
|
const isWindows = process.platform === "win32";
|
|
101669
101740
|
/* istanbul ignore next */
|
|
101670
101741
|
const rSlash = new RegExp(`[${posix.sep}${sep$3 === posix.sep ? "" : sep$3}]`.replace(/(\\)/g, "\\$1"));
|
|
@@ -101694,7 +101765,7 @@ var require_lib$24 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
101694
101765
|
};
|
|
101695
101766
|
const getPathPart = (raw, cmd) => {
|
|
101696
101767
|
const pathPart = /^".*"$/.test(raw) ? raw.slice(1, -1) : raw;
|
|
101697
|
-
return (!pathPart && rRel.test(cmd) ? cmd.slice(0, 2) : "") + join$
|
|
101768
|
+
return (!pathPart && rRel.test(cmd) ? cmd.slice(0, 2) : "") + join$14(pathPart, cmd);
|
|
101698
101769
|
};
|
|
101699
101770
|
const which = async (cmd, opt = {}) => {
|
|
101700
101771
|
const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt);
|
|
@@ -102575,7 +102646,7 @@ var require_lib$22 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
102575
102646
|
//#endregion
|
|
102576
102647
|
//#region ../../node_modules/npm-normalize-package-bin/lib/index.js
|
|
102577
102648
|
var require_lib$21 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
102578
|
-
const { join: join$
|
|
102649
|
+
const { join: join$13, basename: basename$4 } = require("path");
|
|
102579
102650
|
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);
|
|
102580
102651
|
const normalizeString = (pkg) => {
|
|
102581
102652
|
if (!pkg.name) return removeBin(pkg);
|
|
@@ -102598,9 +102669,9 @@ var require_lib$21 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
102598
102669
|
const clean = {};
|
|
102599
102670
|
let hasBins = false;
|
|
102600
102671
|
Object.keys(orig).forEach((binKey) => {
|
|
102601
|
-
const base = join$
|
|
102672
|
+
const base = join$13("/", basename$4(binKey.replace(/\\|:/g, "/"))).slice(1);
|
|
102602
102673
|
if (typeof orig[binKey] !== "string" || !base) return;
|
|
102603
|
-
const binTarget = join$
|
|
102674
|
+
const binTarget = join$13("/", orig[binKey].replace(/\\/g, "/")).replace(/\\/g, "/").slice(1);
|
|
102604
102675
|
if (!binTarget) return;
|
|
102605
102676
|
clean[base] = binTarget;
|
|
102606
102677
|
hasBins = true;
|
|
@@ -104673,7 +104744,7 @@ var require_polyfill = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
104673
104744
|
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();
|
|
104674
104745
|
const { constants: { errno: { EEXIST, EISDIR, EINVAL, ENOTDIR } } } = require("os");
|
|
104675
104746
|
const { chmod: chmod$2, copyFile, lstat: lstat$2, mkdir: mkdir$8, readdir: readdir$6, readlink, stat: stat$5, symlink, unlink, utimes } = require("fs/promises");
|
|
104676
|
-
const { dirname: dirname$8, isAbsolute: isAbsolute$2, join: join$
|
|
104747
|
+
const { dirname: dirname$8, isAbsolute: isAbsolute$2, join: join$12, parse, resolve: resolve$10, sep: sep$2, toNamespacedPath } = require("path");
|
|
104677
104748
|
const { fileURLToPath } = require("url");
|
|
104678
104749
|
const defaultOptions = {
|
|
104679
104750
|
dereference: false,
|
|
@@ -104882,8 +104953,8 @@ var require_polyfill = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
104882
104953
|
const dir = await readdir$6(src);
|
|
104883
104954
|
for (let i = 0; i < dir.length; i++) {
|
|
104884
104955
|
const item = dir[i];
|
|
104885
|
-
const srcItem = join$
|
|
104886
|
-
const destItem = join$
|
|
104956
|
+
const srcItem = join$12(src, item);
|
|
104957
|
+
const destItem = join$12(dest, item);
|
|
104887
104958
|
const { destStat } = await checkPaths(srcItem, destItem, opts);
|
|
104888
104959
|
await startCopy(destStat, srcItem, destItem, opts);
|
|
104889
104960
|
}
|
|
@@ -104947,13 +105018,13 @@ var require_cp = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module)
|
|
|
104947
105018
|
//#endregion
|
|
104948
105019
|
//#region ../../node_modules/cacache/node_modules/@npmcli/fs/lib/with-temp-dir.js
|
|
104949
105020
|
var require_with_temp_dir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
104950
|
-
const { join: join$
|
|
105021
|
+
const { join: join$11, sep: sep$1 } = require("path");
|
|
104951
105022
|
const getOptions = require_get_options();
|
|
104952
105023
|
const { mkdir: mkdir$7, mkdtemp, rm: rm$7 } = require("fs/promises");
|
|
104953
105024
|
const withTempDir = async (root, fn, opts) => {
|
|
104954
105025
|
const options = getOptions(opts, { copy: ["tmpPrefix"] });
|
|
104955
105026
|
await mkdir$7(root, { recursive: true });
|
|
104956
|
-
const target = await mkdtemp(join$
|
|
105027
|
+
const target = await mkdtemp(join$11(`${root}${sep$1}`, options.tmpPrefix || ""));
|
|
104957
105028
|
let err;
|
|
104958
105029
|
let result;
|
|
104959
105030
|
try {
|
|
@@ -104976,10 +105047,10 @@ var require_with_temp_dir = /* @__PURE__ */ require_chunk.__commonJSMin(((export
|
|
|
104976
105047
|
//#region ../../node_modules/cacache/node_modules/@npmcli/fs/lib/readdir-scoped.js
|
|
104977
105048
|
var require_readdir_scoped = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
104978
105049
|
const { readdir: readdir$5 } = require("fs/promises");
|
|
104979
|
-
const { join: join$
|
|
105050
|
+
const { join: join$10 } = require("path");
|
|
104980
105051
|
const readdirScoped = async (dir) => {
|
|
104981
105052
|
const results = [];
|
|
104982
|
-
for (const item of await readdir$5(dir)) if (item.startsWith("@")) for (const scopedItem of await readdir$5(join$
|
|
105053
|
+
for (const item of await readdir$5(dir)) if (item.startsWith("@")) for (const scopedItem of await readdir$5(join$10(dir, item))) results.push(join$10(item, scopedItem));
|
|
104983
105054
|
else results.push(item);
|
|
104984
105055
|
return results;
|
|
104985
105056
|
};
|
|
@@ -104988,7 +105059,7 @@ var require_readdir_scoped = /* @__PURE__ */ require_chunk.__commonJSMin(((expor
|
|
|
104988
105059
|
//#endregion
|
|
104989
105060
|
//#region ../../node_modules/cacache/node_modules/@npmcli/fs/lib/move-file.js
|
|
104990
105061
|
var require_move_file = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
104991
|
-
const { dirname: dirname$7, join: join$
|
|
105062
|
+
const { dirname: dirname$7, join: join$9, resolve: resolve$9, relative: relative$1, isAbsolute: isAbsolute$1 } = require("path");
|
|
104992
105063
|
const fs$12 = require("fs/promises");
|
|
104993
105064
|
const pathExists = async (path$57) => {
|
|
104994
105065
|
try {
|
|
@@ -105013,7 +105084,7 @@ var require_move_file = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
|
|
|
105013
105084
|
const sourceStat = await fs$12.lstat(source);
|
|
105014
105085
|
if (sourceStat.isDirectory()) {
|
|
105015
105086
|
const files = await fs$12.readdir(source);
|
|
105016
|
-
await Promise.all(files.map((file) => moveFile(join$
|
|
105087
|
+
await Promise.all(files.map((file) => moveFile(join$9(source, file), join$9(destination, file), options, false, symlinks)));
|
|
105017
105088
|
} else if (sourceStat.isSymbolicLink()) symlinks.push({
|
|
105018
105089
|
source,
|
|
105019
105090
|
destination
|
|
@@ -114552,9 +114623,9 @@ var require_protected = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
|
|
|
114552
114623
|
//#region ../../node_modules/pacote/lib/util/cache-dir.js
|
|
114553
114624
|
var require_cache_dir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
114554
114625
|
const { resolve: resolve$7 } = require("node:path");
|
|
114555
|
-
const { tmpdir
|
|
114626
|
+
const { tmpdir, homedir } = require("node:os");
|
|
114556
114627
|
module.exports = (fakePlatform = false) => {
|
|
114557
|
-
const temp = tmpdir
|
|
114628
|
+
const temp = tmpdir();
|
|
114558
114629
|
const uidOrPid = process.getuid ? process.getuid() : process.pid;
|
|
114559
114630
|
const home = homedir() || resolve$7(temp, "npm-" + uidOrPid);
|
|
114560
114631
|
const platform = fakePlatform || process.platform;
|
|
@@ -116376,7 +116447,7 @@ var require_lib$10 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
116376
116447
|
var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
116377
116448
|
const { Walker: IgnoreWalker } = require_lib$10();
|
|
116378
116449
|
const { lstatSync: lstat$1, readFileSync: readFile$4 } = require("fs");
|
|
116379
|
-
const { basename: basename$2, dirname: dirname$5, extname: extname$1, join: join$
|
|
116450
|
+
const { basename: basename$2, dirname: dirname$5, extname: extname$1, join: join$8, relative, resolve: resolve$6, sep } = require("path");
|
|
116380
116451
|
const { log } = require_lib$29();
|
|
116381
116452
|
const defaultRules = Symbol("npm-packlist.rules.default");
|
|
116382
116453
|
const strictRules = Symbol("npm-packlist.rules.strict");
|
|
@@ -116409,7 +116480,7 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
116409
116480
|
const normalizePath = (path$49) => path$49.split("\\").join("/");
|
|
116410
116481
|
const readOutOfTreeIgnoreFiles = (root, rel, result = []) => {
|
|
116411
116482
|
for (const file of [".npmignore", ".gitignore"]) try {
|
|
116412
|
-
const ignoreContent = readFile$4(join$
|
|
116483
|
+
const ignoreContent = readFile$4(join$8(root, file), { encoding: "utf8" });
|
|
116413
116484
|
result.push(ignoreContent);
|
|
116414
116485
|
break;
|
|
116415
116486
|
} catch (err) {
|
|
@@ -116418,8 +116489,8 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
116418
116489
|
}
|
|
116419
116490
|
if (!rel) return result;
|
|
116420
116491
|
const firstRel = rel.split(sep, 1)[0];
|
|
116421
|
-
const newRoot = join$
|
|
116422
|
-
return readOutOfTreeIgnoreFiles(newRoot, relative(newRoot, join$
|
|
116492
|
+
const newRoot = join$8(root, firstRel);
|
|
116493
|
+
return readOutOfTreeIgnoreFiles(newRoot, relative(newRoot, join$8(root, rel)), result);
|
|
116423
116494
|
};
|
|
116424
116495
|
var PackWalker = class PackWalker extends IgnoreWalker {
|
|
116425
116496
|
constructor(tree, opts) {
|
|
@@ -116486,7 +116557,7 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
116486
116557
|
let ignoreFiles = null;
|
|
116487
116558
|
if (this.tree.workspaces) {
|
|
116488
116559
|
const workspaceDirs = [...this.tree.workspaces.values()].map((dir) => dir.replace(/\\/g, "/"));
|
|
116489
|
-
const entryPath = join$
|
|
116560
|
+
const entryPath = join$8(this.path, entry).replace(/\\/g, "/");
|
|
116490
116561
|
if (workspaceDirs.includes(entryPath)) ignoreFiles = [
|
|
116491
116562
|
defaultRules,
|
|
116492
116563
|
"package.json",
|
|
@@ -116546,7 +116617,7 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
116546
116617
|
if (file.endsWith("/*")) file += "*";
|
|
116547
116618
|
const inverse = `!${file}`;
|
|
116548
116619
|
try {
|
|
116549
|
-
const stat = lstat$1(join$
|
|
116620
|
+
const stat = lstat$1(join$8(this.path, file.replace(/^!+/, "")).replace(/\\/g, "/"));
|
|
116550
116621
|
if (stat.isFile()) {
|
|
116551
116622
|
strict.unshift(inverse);
|
|
116552
116623
|
this.requiredFiles.push(file.startsWith("/") ? file.slice(1) : file);
|
|
@@ -116603,7 +116674,7 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
116603
116674
|
walker.start();
|
|
116604
116675
|
});
|
|
116605
116676
|
const relativeFrom = relative(this.root, walker.path);
|
|
116606
|
-
for (const file of bundled) this.result.add(join$
|
|
116677
|
+
for (const file of bundled) this.result.add(join$8(relativeFrom, file).replace(/\\/g, "/"));
|
|
116607
116678
|
}
|
|
116608
116679
|
}
|
|
116609
116680
|
};
|
|
@@ -155079,7 +155150,7 @@ require_semver();
|
|
|
155079
155150
|
require_lib();
|
|
155080
155151
|
//#endregion
|
|
155081
155152
|
//#region ../../packages/core-node/src/handler-func.ts
|
|
155082
|
-
const { join: join$
|
|
155153
|
+
const { join: join$6 } = node_path.default;
|
|
155083
155154
|
//#endregion
|
|
155084
155155
|
//#region ../../packages/core-node/src/handlers/plugins.ts
|
|
155085
155156
|
const localPluginsMap = /* @__PURE__ */ new Map();
|