@pipelab/plugin-filesystem 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 +159 -84
- package/dist/index.mjs +130 -55
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -4
package/dist/index.cjs
CHANGED
|
@@ -8,11 +8,11 @@ let node_os = require("node:os");
|
|
|
8
8
|
let node_url = require("node:url");
|
|
9
9
|
let node_fs = require("node:fs");
|
|
10
10
|
node_fs = require_chunk.__toESM(node_fs);
|
|
11
|
+
let node_fs_promises = require("node:fs/promises");
|
|
12
|
+
node_fs_promises = require_chunk.__toESM(node_fs_promises);
|
|
11
13
|
let node_http = require("node:http");
|
|
12
14
|
node_http = require_chunk.__toESM(node_http);
|
|
13
15
|
let node_crypto = require("node:crypto");
|
|
14
|
-
let node_fs_promises = require("node:fs/promises");
|
|
15
|
-
node_fs_promises = require_chunk.__toESM(node_fs_promises);
|
|
16
16
|
let node_child_process = require("node:child_process");
|
|
17
17
|
let node_string_decoder = require("node:string_decoder");
|
|
18
18
|
let node_util = require("node:util");
|
|
@@ -1605,6 +1605,56 @@ function literal(literal_, message) {
|
|
|
1605
1605
|
}
|
|
1606
1606
|
};
|
|
1607
1607
|
}
|
|
1608
|
+
function looseObject(entries, message) {
|
|
1609
|
+
return {
|
|
1610
|
+
kind: "schema",
|
|
1611
|
+
type: "loose_object",
|
|
1612
|
+
reference: looseObject,
|
|
1613
|
+
expects: "Object",
|
|
1614
|
+
async: false,
|
|
1615
|
+
entries,
|
|
1616
|
+
message,
|
|
1617
|
+
_run(dataset, config2) {
|
|
1618
|
+
const input = dataset.value;
|
|
1619
|
+
if (input && typeof input === "object") {
|
|
1620
|
+
dataset.typed = true;
|
|
1621
|
+
dataset.value = {};
|
|
1622
|
+
for (const key in this.entries) {
|
|
1623
|
+
const value2 = input[key];
|
|
1624
|
+
const valueDataset = this.entries[key]._run({
|
|
1625
|
+
typed: false,
|
|
1626
|
+
value: value2
|
|
1627
|
+
}, config2);
|
|
1628
|
+
if (valueDataset.issues) {
|
|
1629
|
+
const pathItem = {
|
|
1630
|
+
type: "object",
|
|
1631
|
+
origin: "value",
|
|
1632
|
+
input,
|
|
1633
|
+
key,
|
|
1634
|
+
value: value2
|
|
1635
|
+
};
|
|
1636
|
+
for (const issue of valueDataset.issues) {
|
|
1637
|
+
if (issue.path) issue.path.unshift(pathItem);
|
|
1638
|
+
else issue.path = [pathItem];
|
|
1639
|
+
dataset.issues?.push(issue);
|
|
1640
|
+
}
|
|
1641
|
+
if (!dataset.issues) dataset.issues = valueDataset.issues;
|
|
1642
|
+
if (config2.abortEarly) {
|
|
1643
|
+
dataset.typed = false;
|
|
1644
|
+
break;
|
|
1645
|
+
}
|
|
1646
|
+
}
|
|
1647
|
+
if (!valueDataset.typed) dataset.typed = false;
|
|
1648
|
+
if (valueDataset.value !== void 0 || key in input) dataset.value[key] = valueDataset.value;
|
|
1649
|
+
}
|
|
1650
|
+
if (!dataset.issues || !config2.abortEarly) {
|
|
1651
|
+
for (const key in input) if (_isValidObjectKey(input, key) && !(key in this.entries)) dataset.value[key] = input[key];
|
|
1652
|
+
}
|
|
1653
|
+
} else _addIssue(this, "type", dataset, config2);
|
|
1654
|
+
return dataset;
|
|
1655
|
+
}
|
|
1656
|
+
};
|
|
1657
|
+
}
|
|
1608
1658
|
function number(message) {
|
|
1609
1659
|
return {
|
|
1610
1660
|
kind: "schema",
|
|
@@ -2142,6 +2192,18 @@ settingsMigratorInternal.createMigrations({
|
|
|
2142
2192
|
})
|
|
2143
2193
|
]
|
|
2144
2194
|
});
|
|
2195
|
+
const connectionsMigratorInternal = createMigrator();
|
|
2196
|
+
const defaultConnections = connectionsMigratorInternal.createDefault({
|
|
2197
|
+
version: "1.0.0",
|
|
2198
|
+
connections: []
|
|
2199
|
+
});
|
|
2200
|
+
connectionsMigratorInternal.createMigrations({
|
|
2201
|
+
defaultValue: defaultConnections,
|
|
2202
|
+
migrations: [createMigration({
|
|
2203
|
+
version: "1.0.0",
|
|
2204
|
+
up: finalVersion
|
|
2205
|
+
})]
|
|
2206
|
+
});
|
|
2145
2207
|
const fileRepoMigratorInternal = createMigrator();
|
|
2146
2208
|
const defaultFileRepo = fileRepoMigratorInternal.createDefault({
|
|
2147
2209
|
version: "2.0.0",
|
|
@@ -2303,11 +2365,51 @@ const LEGACY_ID_MAP = {
|
|
|
2303
2365
|
};
|
|
2304
2366
|
const getStrictPluginId = (pluginId) => {
|
|
2305
2367
|
if (!pluginId) return pluginId;
|
|
2306
|
-
|
|
2307
|
-
if (pluginId.startsWith("@") || pluginId.includes("/") || pluginId.startsWith("pipelab-plugin-")) return pluginId;
|
|
2308
|
-
const prefixed = `@pipelab/plugin-${pluginId}`;
|
|
2309
|
-
return LEGACY_ID_MAP[prefixed] || prefixed;
|
|
2368
|
+
return LEGACY_ID_MAP[pluginId] || pluginId;
|
|
2310
2369
|
};
|
|
2370
|
+
//#endregion
|
|
2371
|
+
//#region ../../packages/shared/src/save-location.ts
|
|
2372
|
+
const SaveLocationInternalValidator = object({
|
|
2373
|
+
id: string(),
|
|
2374
|
+
project: string(),
|
|
2375
|
+
lastModified: string(),
|
|
2376
|
+
type: literal("internal"),
|
|
2377
|
+
configName: string()
|
|
2378
|
+
});
|
|
2379
|
+
const SaveLocationValidator = union([
|
|
2380
|
+
object({
|
|
2381
|
+
id: string(),
|
|
2382
|
+
project: string(),
|
|
2383
|
+
path: string(),
|
|
2384
|
+
lastModified: string(),
|
|
2385
|
+
type: literal("external"),
|
|
2386
|
+
summary: object({
|
|
2387
|
+
plugins: array(string()),
|
|
2388
|
+
name: string(),
|
|
2389
|
+
description: string()
|
|
2390
|
+
})
|
|
2391
|
+
}),
|
|
2392
|
+
SaveLocationInternalValidator,
|
|
2393
|
+
object({
|
|
2394
|
+
id: string(),
|
|
2395
|
+
project: string(),
|
|
2396
|
+
type: literal("pipelab-cloud")
|
|
2397
|
+
})
|
|
2398
|
+
]);
|
|
2399
|
+
object({
|
|
2400
|
+
version: literal("1.0.0"),
|
|
2401
|
+
data: optional(record(string(), SaveLocationValidator), {})
|
|
2402
|
+
});
|
|
2403
|
+
const FileRepoProjectValidatorV2$1 = object({
|
|
2404
|
+
id: string(),
|
|
2405
|
+
name: string(),
|
|
2406
|
+
description: string()
|
|
2407
|
+
});
|
|
2408
|
+
object({
|
|
2409
|
+
version: literal("2.0.0"),
|
|
2410
|
+
projects: array(FileRepoProjectValidatorV2$1),
|
|
2411
|
+
pipelines: optional(array(SaveLocationValidator), [])
|
|
2412
|
+
});
|
|
2311
2413
|
object({
|
|
2312
2414
|
cacheFolder: string(),
|
|
2313
2415
|
theme: union([literal("light"), literal("dark")]),
|
|
@@ -2459,6 +2561,17 @@ object({
|
|
|
2459
2561
|
})),
|
|
2460
2562
|
isInternalMigrationBannerClosed: optional(boolean(), false)
|
|
2461
2563
|
});
|
|
2564
|
+
const ConnectionValidator = looseObject({
|
|
2565
|
+
id: string(),
|
|
2566
|
+
pluginName: string(),
|
|
2567
|
+
name: string(),
|
|
2568
|
+
createdAt: string(),
|
|
2569
|
+
isDefault: boolean()
|
|
2570
|
+
});
|
|
2571
|
+
object({
|
|
2572
|
+
version: literal("1.0.0"),
|
|
2573
|
+
connections: array(ConnectionValidator)
|
|
2574
|
+
});
|
|
2462
2575
|
//#endregion
|
|
2463
2576
|
//#region ../../node_modules/tslog/dist/esm/prettyLogStyles.js
|
|
2464
2577
|
const prettyLogStyles = {
|
|
@@ -2979,7 +3092,7 @@ const useLogger = () => {
|
|
|
2979
3092
|
const OriginValidator = object({
|
|
2980
3093
|
pluginId: string(),
|
|
2981
3094
|
nodeId: string(),
|
|
2982
|
-
version: pipe(
|
|
3095
|
+
version: optional(pipe(string(), description("Pinned version of the plugin for this block. Falls back to \"latest\" when absent.")))
|
|
2983
3096
|
});
|
|
2984
3097
|
const BlockActionValidatorV1 = object({
|
|
2985
3098
|
type: literal("action"),
|
|
@@ -2992,7 +3105,7 @@ const EditorParamValidatorV3 = union([literal("simple"), literal("editor")]);
|
|
|
2992
3105
|
const BlockActionValidatorV3 = object({
|
|
2993
3106
|
type: literal("action"),
|
|
2994
3107
|
uid: string(),
|
|
2995
|
-
name: pipe(
|
|
3108
|
+
name: optional(pipe(string(), description("A custom name provided by the user"))),
|
|
2996
3109
|
disabled: optional(boolean()),
|
|
2997
3110
|
params: record(string(), object({
|
|
2998
3111
|
editor: EditorParamValidatorV3,
|
|
@@ -45292,35 +45405,6 @@ const createPathParam = (value, definition) => {
|
|
|
45292
45405
|
};
|
|
45293
45406
|
};
|
|
45294
45407
|
//#endregion
|
|
45295
|
-
//#region ../../packages/shared/src/save-location.ts
|
|
45296
|
-
const SaveLocationInternalValidator = object({
|
|
45297
|
-
id: string(),
|
|
45298
|
-
project: string(),
|
|
45299
|
-
lastModified: string(),
|
|
45300
|
-
type: literal("internal"),
|
|
45301
|
-
configName: string()
|
|
45302
|
-
});
|
|
45303
|
-
const SaveLocationValidator = union([
|
|
45304
|
-
object({
|
|
45305
|
-
id: string(),
|
|
45306
|
-
project: string(),
|
|
45307
|
-
path: string(),
|
|
45308
|
-
lastModified: string(),
|
|
45309
|
-
type: literal("external"),
|
|
45310
|
-
summary: object({
|
|
45311
|
-
plugins: array(string()),
|
|
45312
|
-
name: string(),
|
|
45313
|
-
description: string()
|
|
45314
|
-
})
|
|
45315
|
-
}),
|
|
45316
|
-
SaveLocationInternalValidator,
|
|
45317
|
-
object({
|
|
45318
|
-
id: string(),
|
|
45319
|
-
project: string(),
|
|
45320
|
-
type: literal("pipelab-cloud")
|
|
45321
|
-
})
|
|
45322
|
-
]);
|
|
45323
|
-
//#endregion
|
|
45324
45408
|
//#region ../../packages/shared/src/websocket.types.ts
|
|
45325
45409
|
var WebSocketError = class extends Error {
|
|
45326
45410
|
constructor(message, code, requestId) {
|
|
@@ -45337,20 +45421,6 @@ object({
|
|
|
45337
45421
|
version: literal("1.0.0"),
|
|
45338
45422
|
data: optional(record(string(), SaveLocationValidator), {})
|
|
45339
45423
|
});
|
|
45340
|
-
const FileRepoProjectValidatorV2$1 = object({
|
|
45341
|
-
id: string(),
|
|
45342
|
-
name: string(),
|
|
45343
|
-
description: string()
|
|
45344
|
-
});
|
|
45345
|
-
object({
|
|
45346
|
-
version: literal("2.0.0"),
|
|
45347
|
-
projects: array(FileRepoProjectValidatorV2$1),
|
|
45348
|
-
pipelines: optional(array(SaveLocationValidator), [])
|
|
45349
|
-
});
|
|
45350
|
-
object({
|
|
45351
|
-
version: literal("1.0.0"),
|
|
45352
|
-
data: optional(record(string(), SaveLocationValidator), {})
|
|
45353
|
-
});
|
|
45354
45424
|
const FileRepoProjectValidatorV2 = object({
|
|
45355
45425
|
id: string(),
|
|
45356
45426
|
name: string(),
|
|
@@ -45362,8 +45432,12 @@ object({
|
|
|
45362
45432
|
pipelines: optional(array(SaveLocationValidator), [])
|
|
45363
45433
|
});
|
|
45364
45434
|
//#endregion
|
|
45435
|
+
//#region ../../packages/constants/src/index.ts
|
|
45436
|
+
const websocketPort = 33753;
|
|
45437
|
+
//#endregion
|
|
45365
45438
|
//#region ../../packages/core-node/src/context.ts
|
|
45366
|
-
const
|
|
45439
|
+
const metaUrl = require("url").pathToFileURL(__filename).href;
|
|
45440
|
+
const _dirname = typeof __dirname !== "undefined" ? __dirname : metaUrl ? (0, node_path.dirname)((0, node_url.fileURLToPath)(metaUrl)) : process.cwd();
|
|
45367
45441
|
const isDev = process.env.NODE_ENV === "development";
|
|
45368
45442
|
/**
|
|
45369
45443
|
* Finds the monorepo root by looking for pnpm-workspace.yaml.
|
|
@@ -48935,9 +49009,6 @@ const useAPI = () => {
|
|
|
48935
49009
|
};
|
|
48936
49010
|
};
|
|
48937
49011
|
//#endregion
|
|
48938
|
-
//#region ../../packages/constants/src/index.ts
|
|
48939
|
-
const websocketPort = 33753;
|
|
48940
|
-
//#endregion
|
|
48941
49012
|
//#region ../../packages/core-node/src/websocket-server.ts
|
|
48942
49013
|
var WebSocketServer = class {
|
|
48943
49014
|
wss = null;
|
|
@@ -59946,14 +60017,14 @@ var require_path_reservations = /* @__PURE__ */ require_chunk.__commonJSMin(((ex
|
|
|
59946
60017
|
const assert$1 = require("assert");
|
|
59947
60018
|
const normalize = require_normalize_unicode();
|
|
59948
60019
|
const stripSlashes = require_strip_trailing_slashes();
|
|
59949
|
-
const { join: join$
|
|
60020
|
+
const { join: join$20 } = require("path");
|
|
59950
60021
|
const isWindows = (process.env.TESTING_TAR_FAKE_PLATFORM || process.platform) === "win32";
|
|
59951
60022
|
module.exports = () => {
|
|
59952
60023
|
const queues = /* @__PURE__ */ new Map();
|
|
59953
60024
|
const reservations = /* @__PURE__ */ new Map();
|
|
59954
60025
|
const getDirs = (path$63) => {
|
|
59955
60026
|
return path$63.split("/").slice(0, -1).reduce((set, path$64) => {
|
|
59956
|
-
if (set.length) path$64 = join$
|
|
60027
|
+
if (set.length) path$64 = join$20(set[set.length - 1], path$64);
|
|
59957
60028
|
set.push(path$64 || "/");
|
|
59958
60029
|
return set;
|
|
59959
60030
|
}, []);
|
|
@@ -60007,7 +60078,7 @@ var require_path_reservations = /* @__PURE__ */ require_chunk.__commonJSMin(((ex
|
|
|
60007
60078
|
};
|
|
60008
60079
|
const reserve = (paths, fn) => {
|
|
60009
60080
|
paths = isWindows ? ["win32 parallelization disabled"] : paths.map((p) => {
|
|
60010
|
-
return stripSlashes(join$
|
|
60081
|
+
return stripSlashes(join$20(normalize(p))).toLowerCase();
|
|
60011
60082
|
});
|
|
60012
60083
|
const dirs = new Set(paths.map((path$68) => getDirs(path$68)).reduce((a, b) => a.concat(b)));
|
|
60013
60084
|
reservations.set(fn, {
|
|
@@ -95688,7 +95759,7 @@ var require_index_min$3 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
95688
95759
|
//#region ../../node_modules/@npmcli/promise-spawn/node_modules/which/lib/index.js
|
|
95689
95760
|
var require_lib$27 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
95690
95761
|
const { isexe, sync: isexeSync } = require_index_min$3();
|
|
95691
|
-
const { join: join$
|
|
95762
|
+
const { join: join$17, delimiter: delimiter$3, sep: sep$4, posix: posix$1 } = require("path");
|
|
95692
95763
|
const isWindows = process.platform === "win32";
|
|
95693
95764
|
/* istanbul ignore next */
|
|
95694
95765
|
const rSlash = new RegExp(`[${posix$1.sep}${sep$4 === posix$1.sep ? "" : sep$4}]`.replace(/(\\)/g, "\\$1"));
|
|
@@ -95718,7 +95789,7 @@ var require_lib$27 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
95718
95789
|
};
|
|
95719
95790
|
const getPathPart = (raw, cmd) => {
|
|
95720
95791
|
const pathPart = /^".*"$/.test(raw) ? raw.slice(1, -1) : raw;
|
|
95721
|
-
return (!pathPart && rRel.test(cmd) ? cmd.slice(0, 2) : "") + join$
|
|
95792
|
+
return (!pathPart && rRel.test(cmd) ? cmd.slice(0, 2) : "") + join$17(pathPart, cmd);
|
|
95722
95793
|
};
|
|
95723
95794
|
const which = async (cmd, opt = {}) => {
|
|
95724
95795
|
const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt);
|
|
@@ -96467,7 +96538,7 @@ var require_index_min$2 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
96467
96538
|
//#region ../../node_modules/@npmcli/git/node_modules/which/lib/index.js
|
|
96468
96539
|
var require_lib$24 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
96469
96540
|
const { isexe, sync: isexeSync } = require_index_min$2();
|
|
96470
|
-
const { join: join$
|
|
96541
|
+
const { join: join$16, delimiter: delimiter$2, sep: sep$3, posix } = require("path");
|
|
96471
96542
|
const isWindows = process.platform === "win32";
|
|
96472
96543
|
/* istanbul ignore next */
|
|
96473
96544
|
const rSlash = new RegExp(`[${posix.sep}${sep$3 === posix.sep ? "" : sep$3}]`.replace(/(\\)/g, "\\$1"));
|
|
@@ -96497,7 +96568,7 @@ var require_lib$24 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
96497
96568
|
};
|
|
96498
96569
|
const getPathPart = (raw, cmd) => {
|
|
96499
96570
|
const pathPart = /^".*"$/.test(raw) ? raw.slice(1, -1) : raw;
|
|
96500
|
-
return (!pathPart && rRel.test(cmd) ? cmd.slice(0, 2) : "") + join$
|
|
96571
|
+
return (!pathPart && rRel.test(cmd) ? cmd.slice(0, 2) : "") + join$16(pathPart, cmd);
|
|
96501
96572
|
};
|
|
96502
96573
|
const which = async (cmd, opt = {}) => {
|
|
96503
96574
|
const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt);
|
|
@@ -98395,7 +98466,7 @@ var require_lib$22 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
98395
98466
|
//#endregion
|
|
98396
98467
|
//#region ../../node_modules/npm-normalize-package-bin/lib/index.js
|
|
98397
98468
|
var require_lib$21 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
98398
|
-
const { join: join$
|
|
98469
|
+
const { join: join$15, basename: basename$5 } = require("path");
|
|
98399
98470
|
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);
|
|
98400
98471
|
const normalizeString = (pkg) => {
|
|
98401
98472
|
if (!pkg.name) return removeBin(pkg);
|
|
@@ -98418,9 +98489,9 @@ var require_lib$21 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
98418
98489
|
const clean = {};
|
|
98419
98490
|
let hasBins = false;
|
|
98420
98491
|
Object.keys(orig).forEach((binKey) => {
|
|
98421
|
-
const base = join$
|
|
98492
|
+
const base = join$15("/", basename$5(binKey.replace(/\\|:/g, "/"))).slice(1);
|
|
98422
98493
|
if (typeof orig[binKey] !== "string" || !base) return;
|
|
98423
|
-
const binTarget = join$
|
|
98494
|
+
const binTarget = join$15("/", orig[binKey].replace(/\\/g, "/")).replace(/\\/g, "/").slice(1);
|
|
98424
98495
|
if (!binTarget) return;
|
|
98425
98496
|
clean[base] = binTarget;
|
|
98426
98497
|
hasBins = true;
|
|
@@ -100493,7 +100564,7 @@ var require_polyfill = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
100493
100564
|
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();
|
|
100494
100565
|
const { constants: { errno: { EEXIST, EISDIR, EINVAL, ENOTDIR } } } = require("os");
|
|
100495
100566
|
const { chmod: chmod$2, copyFile, lstat: lstat$2, mkdir: mkdir$8, readdir: readdir$6, readlink, stat: stat$6, symlink, unlink, utimes } = require("fs/promises");
|
|
100496
|
-
const { dirname: dirname$9, isAbsolute: isAbsolute$2, join: join$
|
|
100567
|
+
const { dirname: dirname$9, isAbsolute: isAbsolute$2, join: join$14, parse, resolve: resolve$10, sep: sep$2, toNamespacedPath } = require("path");
|
|
100497
100568
|
const { fileURLToPath } = require("url");
|
|
100498
100569
|
const defaultOptions = {
|
|
100499
100570
|
dereference: false,
|
|
@@ -100702,8 +100773,8 @@ var require_polyfill = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
100702
100773
|
const dir = await readdir$6(src);
|
|
100703
100774
|
for (let i = 0; i < dir.length; i++) {
|
|
100704
100775
|
const item = dir[i];
|
|
100705
|
-
const srcItem = join$
|
|
100706
|
-
const destItem = join$
|
|
100776
|
+
const srcItem = join$14(src, item);
|
|
100777
|
+
const destItem = join$14(dest, item);
|
|
100707
100778
|
const { destStat } = await checkPaths(srcItem, destItem, opts);
|
|
100708
100779
|
await startCopy(destStat, srcItem, destItem, opts);
|
|
100709
100780
|
}
|
|
@@ -100767,13 +100838,13 @@ var require_cp = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module)
|
|
|
100767
100838
|
//#endregion
|
|
100768
100839
|
//#region ../../node_modules/cacache/node_modules/@npmcli/fs/lib/with-temp-dir.js
|
|
100769
100840
|
var require_with_temp_dir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
100770
|
-
const { join: join$
|
|
100841
|
+
const { join: join$13, sep: sep$1 } = require("path");
|
|
100771
100842
|
const getOptions = require_get_options();
|
|
100772
100843
|
const { mkdir: mkdir$7, mkdtemp, rm: rm$9 } = require("fs/promises");
|
|
100773
100844
|
const withTempDir = async (root, fn, opts) => {
|
|
100774
100845
|
const options = getOptions(opts, { copy: ["tmpPrefix"] });
|
|
100775
100846
|
await mkdir$7(root, { recursive: true });
|
|
100776
|
-
const target = await mkdtemp(join$
|
|
100847
|
+
const target = await mkdtemp(join$13(`${root}${sep$1}`, options.tmpPrefix || ""));
|
|
100777
100848
|
let err;
|
|
100778
100849
|
let result;
|
|
100779
100850
|
try {
|
|
@@ -100796,10 +100867,10 @@ var require_with_temp_dir = /* @__PURE__ */ require_chunk.__commonJSMin(((export
|
|
|
100796
100867
|
//#region ../../node_modules/cacache/node_modules/@npmcli/fs/lib/readdir-scoped.js
|
|
100797
100868
|
var require_readdir_scoped = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
100798
100869
|
const { readdir: readdir$5 } = require("fs/promises");
|
|
100799
|
-
const { join: join$
|
|
100870
|
+
const { join: join$12 } = require("path");
|
|
100800
100871
|
const readdirScoped = async (dir) => {
|
|
100801
100872
|
const results = [];
|
|
100802
|
-
for (const item of await readdir$5(dir)) if (item.startsWith("@")) for (const scopedItem of await readdir$5(join$
|
|
100873
|
+
for (const item of await readdir$5(dir)) if (item.startsWith("@")) for (const scopedItem of await readdir$5(join$12(dir, item))) results.push(join$12(item, scopedItem));
|
|
100803
100874
|
else results.push(item);
|
|
100804
100875
|
return results;
|
|
100805
100876
|
};
|
|
@@ -100808,7 +100879,7 @@ var require_readdir_scoped = /* @__PURE__ */ require_chunk.__commonJSMin(((expor
|
|
|
100808
100879
|
//#endregion
|
|
100809
100880
|
//#region ../../node_modules/cacache/node_modules/@npmcli/fs/lib/move-file.js
|
|
100810
100881
|
var require_move_file = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
100811
|
-
const { dirname: dirname$8, join: join$
|
|
100882
|
+
const { dirname: dirname$8, join: join$11, resolve: resolve$9, relative: relative$1, isAbsolute: isAbsolute$1 } = require("path");
|
|
100812
100883
|
const fs$13 = require("fs/promises");
|
|
100813
100884
|
const pathExists = async (path$55) => {
|
|
100814
100885
|
try {
|
|
@@ -100833,7 +100904,7 @@ var require_move_file = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
|
|
|
100833
100904
|
const sourceStat = await fs$13.lstat(source);
|
|
100834
100905
|
if (sourceStat.isDirectory()) {
|
|
100835
100906
|
const files = await fs$13.readdir(source);
|
|
100836
|
-
await Promise.all(files.map((file) => moveFile(join$
|
|
100907
|
+
await Promise.all(files.map((file) => moveFile(join$11(source, file), join$11(destination, file), options, false, symlinks)));
|
|
100837
100908
|
} else if (sourceStat.isSymbolicLink()) symlinks.push({
|
|
100838
100909
|
source,
|
|
100839
100910
|
destination
|
|
@@ -110372,9 +110443,9 @@ var require_protected = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
|
|
|
110372
110443
|
//#region ../../node_modules/pacote/lib/util/cache-dir.js
|
|
110373
110444
|
var require_cache_dir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
110374
110445
|
const { resolve: resolve$7 } = require("node:path");
|
|
110375
|
-
const { tmpdir
|
|
110446
|
+
const { tmpdir, homedir } = require("node:os");
|
|
110376
110447
|
module.exports = (fakePlatform = false) => {
|
|
110377
|
-
const temp = tmpdir
|
|
110448
|
+
const temp = tmpdir();
|
|
110378
110449
|
const uidOrPid = process.getuid ? process.getuid() : process.pid;
|
|
110379
110450
|
const home = homedir() || resolve$7(temp, "npm-" + uidOrPid);
|
|
110380
110451
|
const platform = fakePlatform || process.platform;
|
|
@@ -112196,7 +112267,7 @@ var require_lib$10 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
112196
112267
|
var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
112197
112268
|
const { Walker: IgnoreWalker } = require_lib$10();
|
|
112198
112269
|
const { lstatSync: lstat$1, readFileSync: readFile$4 } = require("fs");
|
|
112199
|
-
const { basename: basename$3, dirname: dirname$6, extname: extname$1, join: join$
|
|
112270
|
+
const { basename: basename$3, dirname: dirname$6, extname: extname$1, join: join$10, relative, resolve: resolve$6, sep } = require("path");
|
|
112200
112271
|
const { log } = require_lib$29();
|
|
112201
112272
|
const defaultRules = Symbol("npm-packlist.rules.default");
|
|
112202
112273
|
const strictRules = Symbol("npm-packlist.rules.strict");
|
|
@@ -112229,7 +112300,7 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
112229
112300
|
const normalizePath = (path$47) => path$47.split("\\").join("/");
|
|
112230
112301
|
const readOutOfTreeIgnoreFiles = (root, rel, result = []) => {
|
|
112231
112302
|
for (const file of [".npmignore", ".gitignore"]) try {
|
|
112232
|
-
const ignoreContent = readFile$4(join$
|
|
112303
|
+
const ignoreContent = readFile$4(join$10(root, file), { encoding: "utf8" });
|
|
112233
112304
|
result.push(ignoreContent);
|
|
112234
112305
|
break;
|
|
112235
112306
|
} catch (err) {
|
|
@@ -112238,8 +112309,8 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
112238
112309
|
}
|
|
112239
112310
|
if (!rel) return result;
|
|
112240
112311
|
const firstRel = rel.split(sep, 1)[0];
|
|
112241
|
-
const newRoot = join$
|
|
112242
|
-
return readOutOfTreeIgnoreFiles(newRoot, relative(newRoot, join$
|
|
112312
|
+
const newRoot = join$10(root, firstRel);
|
|
112313
|
+
return readOutOfTreeIgnoreFiles(newRoot, relative(newRoot, join$10(root, rel)), result);
|
|
112243
112314
|
};
|
|
112244
112315
|
var PackWalker = class PackWalker extends IgnoreWalker {
|
|
112245
112316
|
constructor(tree, opts) {
|
|
@@ -112306,7 +112377,7 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
112306
112377
|
let ignoreFiles = null;
|
|
112307
112378
|
if (this.tree.workspaces) {
|
|
112308
112379
|
const workspaceDirs = [...this.tree.workspaces.values()].map((dir) => dir.replace(/\\/g, "/"));
|
|
112309
|
-
const entryPath = join$
|
|
112380
|
+
const entryPath = join$10(this.path, entry).replace(/\\/g, "/");
|
|
112310
112381
|
if (workspaceDirs.includes(entryPath)) ignoreFiles = [
|
|
112311
112382
|
defaultRules,
|
|
112312
112383
|
"package.json",
|
|
@@ -112366,7 +112437,7 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
112366
112437
|
if (file.endsWith("/*")) file += "*";
|
|
112367
112438
|
const inverse = `!${file}`;
|
|
112368
112439
|
try {
|
|
112369
|
-
const stat = lstat$1(join$
|
|
112440
|
+
const stat = lstat$1(join$10(this.path, file.replace(/^!+/, "")).replace(/\\/g, "/"));
|
|
112370
112441
|
if (stat.isFile()) {
|
|
112371
112442
|
strict.unshift(inverse);
|
|
112372
112443
|
this.requiredFiles.push(file.startsWith("/") ? file.slice(1) : file);
|
|
@@ -112423,7 +112494,7 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
112423
112494
|
walker.start();
|
|
112424
112495
|
});
|
|
112425
112496
|
const relativeFrom = relative(this.root, walker.path);
|
|
112426
|
-
for (const file of bundled) this.result.add(join$
|
|
112497
|
+
for (const file of bundled) this.result.add(join$10(relativeFrom, file).replace(/\\/g, "/"));
|
|
112427
112498
|
}
|
|
112428
112499
|
}
|
|
112429
112500
|
};
|
|
@@ -150899,7 +150970,7 @@ require_semver();
|
|
|
150899
150970
|
require_lib();
|
|
150900
150971
|
//#endregion
|
|
150901
150972
|
//#region ../../packages/core-node/src/handler-func.ts
|
|
150902
|
-
const { join: join$
|
|
150973
|
+
const { join: join$8 } = node_path.default;
|
|
150903
150974
|
//#endregion
|
|
150904
150975
|
//#region ../../packages/core-node/src/handlers/plugins.ts
|
|
150905
150976
|
const localPluginsMap = /* @__PURE__ */ new Map();
|
|
@@ -150926,6 +150997,9 @@ const createActionRunner = (runner) => runner;
|
|
|
150926
150997
|
const zip = createAction({
|
|
150927
150998
|
id: "zip-node",
|
|
150928
150999
|
name: "Zip",
|
|
151000
|
+
version: 1,
|
|
151001
|
+
deprecated: true,
|
|
151002
|
+
deprecatedMessage: "Use the new Zip V2 block instead.",
|
|
150929
151003
|
updateAvailable: true,
|
|
150930
151004
|
displayString: "`Zip ${fmt.param(params.folder, \"primary\", \"No folder specified\")} to ${fmt.param(params.output, \"secondary\", \"No output specified\")}`",
|
|
150931
151005
|
params: {
|
|
@@ -150997,6 +151071,7 @@ const zipRunner = createActionRunner(async ({ log, inputs, setOutput, abortSigna
|
|
|
150997
151071
|
const zipV2 = createAction({
|
|
150998
151072
|
id: "zip-v2-node",
|
|
150999
151073
|
name: "Zip",
|
|
151074
|
+
version: 2,
|
|
151000
151075
|
displayString: "`Zip ${fmt.param(params.folder, \"primary\", \"No folder specified\")}`",
|
|
151001
151076
|
params: { folder: createPathParam("", {
|
|
151002
151077
|
required: true,
|