prisma 6.5.0-dev.8 → 6.5.0-dev.81
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/build/index.js +959 -969
- package/build/prisma_schema_build_bg.wasm +0 -0
- package/build/public/assets/index.js +1 -1
- package/config.d.ts +1 -0
- package/config.js +28 -0
- package/dist/cli/src/types.d.ts +1 -0
- package/package.json +57 -21
- package/preinstall/index.js +7 -7
- package/prisma-client/generator-build/index.js +662 -1495
- package/prisma-client/package.json +23 -24
- package/prisma-client/runtime/binary.js +89 -89
- package/prisma-client/runtime/client.d.ts +123 -105
- package/prisma-client/runtime/client.js +38 -38
- package/prisma-client/runtime/edge-esm.js +18 -18
- package/prisma-client/runtime/edge.js +18 -18
- package/prisma-client/runtime/index-browser.d.ts +2 -2
- package/prisma-client/runtime/index-browser.js +1 -1
- package/prisma-client/runtime/library.d.ts +123 -105
- package/prisma-client/runtime/library.js +56 -56
- package/prisma-client/runtime/query_compiler_bg.mysql.js +2 -1
- package/prisma-client/runtime/query_compiler_bg.postgresql.js +2 -1
- package/prisma-client/runtime/query_compiler_bg.sqlite.js +2 -1
- package/prisma-client/runtime/query_engine_bg.mysql.js +2 -2
- package/prisma-client/runtime/query_engine_bg.postgresql.js +2 -2
- package/prisma-client/runtime/query_engine_bg.sqlite.js +2 -2
- package/prisma-client/runtime/react-native.d.ts +123 -105
- package/prisma-client/runtime/react-native.js +25 -25
- package/prisma-client/scripts/default-index.js +3 -3
|
@@ -5,6 +5,7 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
5
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
6
|
var __getProtoOf = Object.getPrototypeOf;
|
|
7
7
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
9
|
var __esm = (fn, res) => function __init() {
|
|
9
10
|
return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
|
|
10
11
|
};
|
|
@@ -32,19 +33,20 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
32
33
|
mod
|
|
33
34
|
));
|
|
34
35
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
36
|
+
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
35
37
|
|
|
36
|
-
// ../../node_modules/.pnpm/@prisma+engines-version@6.
|
|
38
|
+
// ../../node_modules/.pnpm/@prisma+engines-version@6.5.0-70.d3fd11690486b166608fd9d9091a0e94f299a99d/node_modules/@prisma/engines-version/package.json
|
|
37
39
|
var require_package = __commonJS({
|
|
38
|
-
"../../node_modules/.pnpm/@prisma+engines-version@6.
|
|
40
|
+
"../../node_modules/.pnpm/@prisma+engines-version@6.5.0-70.d3fd11690486b166608fd9d9091a0e94f299a99d/node_modules/@prisma/engines-version/package.json"(exports2, module2) {
|
|
39
41
|
module2.exports = {
|
|
40
42
|
name: "@prisma/engines-version",
|
|
41
|
-
version: "6.
|
|
43
|
+
version: "6.5.0-70.d3fd11690486b166608fd9d9091a0e94f299a99d",
|
|
42
44
|
main: "index.js",
|
|
43
45
|
types: "index.d.ts",
|
|
44
46
|
license: "Apache-2.0",
|
|
45
47
|
author: "Tim Suchanek <suchanek@prisma.io>",
|
|
46
48
|
prisma: {
|
|
47
|
-
enginesVersion: "
|
|
49
|
+
enginesVersion: "d3fd11690486b166608fd9d9091a0e94f299a99d"
|
|
48
50
|
},
|
|
49
51
|
repository: {
|
|
50
52
|
type: "git",
|
|
@@ -66,9 +68,9 @@ var require_package = __commonJS({
|
|
|
66
68
|
}
|
|
67
69
|
});
|
|
68
70
|
|
|
69
|
-
// ../../node_modules/.pnpm/@prisma+engines-version@6.
|
|
71
|
+
// ../../node_modules/.pnpm/@prisma+engines-version@6.5.0-70.d3fd11690486b166608fd9d9091a0e94f299a99d/node_modules/@prisma/engines-version/index.js
|
|
70
72
|
var require_engines_version = __commonJS({
|
|
71
|
-
"../../node_modules/.pnpm/@prisma+engines-version@6.
|
|
73
|
+
"../../node_modules/.pnpm/@prisma+engines-version@6.5.0-70.d3fd11690486b166608fd9d9091a0e94f299a99d/node_modules/@prisma/engines-version/index.js"(exports2) {
|
|
72
74
|
"use strict";
|
|
73
75
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
74
76
|
exports2.enginesVersion = void 0;
|
|
@@ -76,20 +78,17 @@ var require_engines_version = __commonJS({
|
|
|
76
78
|
}
|
|
77
79
|
});
|
|
78
80
|
|
|
79
|
-
// ../../node_modules/.pnpm/universalify@2.0.
|
|
81
|
+
// ../../node_modules/.pnpm/universalify@2.0.1/node_modules/universalify/index.js
|
|
80
82
|
var require_universalify = __commonJS({
|
|
81
|
-
"../../node_modules/.pnpm/universalify@2.0.
|
|
83
|
+
"../../node_modules/.pnpm/universalify@2.0.1/node_modules/universalify/index.js"(exports2) {
|
|
82
84
|
"use strict";
|
|
83
85
|
exports2.fromCallback = function(fn) {
|
|
84
86
|
return Object.defineProperty(function(...args) {
|
|
85
87
|
if (typeof args[args.length - 1] === "function") fn.apply(this, args);
|
|
86
88
|
else {
|
|
87
89
|
return new Promise((resolve, reject) => {
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
...args,
|
|
91
|
-
(err, res) => err != null ? reject(err) : resolve(res)
|
|
92
|
-
);
|
|
90
|
+
args.push((err, res) => err != null ? reject(err) : resolve(res));
|
|
91
|
+
fn.apply(this, args);
|
|
93
92
|
});
|
|
94
93
|
}
|
|
95
94
|
}, "name", { value: fn.name });
|
|
@@ -98,15 +97,18 @@ var require_universalify = __commonJS({
|
|
|
98
97
|
return Object.defineProperty(function(...args) {
|
|
99
98
|
const cb = args[args.length - 1];
|
|
100
99
|
if (typeof cb !== "function") return fn.apply(this, args);
|
|
101
|
-
else
|
|
100
|
+
else {
|
|
101
|
+
args.pop();
|
|
102
|
+
fn.apply(this, args).then((r) => cb(null, r), cb);
|
|
103
|
+
}
|
|
102
104
|
}, "name", { value: fn.name });
|
|
103
105
|
};
|
|
104
106
|
}
|
|
105
107
|
});
|
|
106
108
|
|
|
107
|
-
// ../../node_modules/.pnpm/graceful-fs@4.2.
|
|
109
|
+
// ../../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/polyfills.js
|
|
108
110
|
var require_polyfills = __commonJS({
|
|
109
|
-
"../../node_modules/.pnpm/graceful-fs@4.2.
|
|
111
|
+
"../../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/polyfills.js"(exports2, module2) {
|
|
110
112
|
"use strict";
|
|
111
113
|
var constants = require("constants");
|
|
112
114
|
var origCwd = process.cwd;
|
|
@@ -176,7 +178,7 @@ var require_polyfills = __commonJS({
|
|
|
176
178
|
var start = Date.now();
|
|
177
179
|
var backoff = 0;
|
|
178
180
|
fs$rename(from, to, function CB(er) {
|
|
179
|
-
if (er && (er.code === "EACCES" || er.code === "EPERM") && Date.now() - start < 6e4) {
|
|
181
|
+
if (er && (er.code === "EACCES" || er.code === "EPERM" || er.code === "EBUSY") && Date.now() - start < 6e4) {
|
|
180
182
|
setTimeout(function() {
|
|
181
183
|
fs3.stat(to, function(stater, st) {
|
|
182
184
|
if (stater && stater.code === "ENOENT")
|
|
@@ -393,9 +395,9 @@ var require_polyfills = __commonJS({
|
|
|
393
395
|
}
|
|
394
396
|
});
|
|
395
397
|
|
|
396
|
-
// ../../node_modules/.pnpm/graceful-fs@4.2.
|
|
398
|
+
// ../../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/legacy-streams.js
|
|
397
399
|
var require_legacy_streams = __commonJS({
|
|
398
|
-
"../../node_modules/.pnpm/graceful-fs@4.2.
|
|
400
|
+
"../../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/legacy-streams.js"(exports2, module2) {
|
|
399
401
|
"use strict";
|
|
400
402
|
var Stream = require("stream").Stream;
|
|
401
403
|
module2.exports = legacy;
|
|
@@ -490,9 +492,9 @@ var require_legacy_streams = __commonJS({
|
|
|
490
492
|
}
|
|
491
493
|
});
|
|
492
494
|
|
|
493
|
-
// ../../node_modules/.pnpm/graceful-fs@4.2.
|
|
495
|
+
// ../../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/clone.js
|
|
494
496
|
var require_clone = __commonJS({
|
|
495
|
-
"../../node_modules/.pnpm/graceful-fs@4.2.
|
|
497
|
+
"../../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/clone.js"(exports2, module2) {
|
|
496
498
|
"use strict";
|
|
497
499
|
module2.exports = clone;
|
|
498
500
|
var getPrototypeOf = Object.getPrototypeOf || function(obj) {
|
|
@@ -513,9 +515,9 @@ var require_clone = __commonJS({
|
|
|
513
515
|
}
|
|
514
516
|
});
|
|
515
517
|
|
|
516
|
-
// ../../node_modules/.pnpm/graceful-fs@4.2.
|
|
518
|
+
// ../../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/graceful-fs.js
|
|
517
519
|
var require_graceful_fs = __commonJS({
|
|
518
|
-
"../../node_modules/.pnpm/graceful-fs@4.2.
|
|
520
|
+
"../../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/graceful-fs.js"(exports2, module2) {
|
|
519
521
|
"use strict";
|
|
520
522
|
var fs3 = require("fs");
|
|
521
523
|
var polyfills = require_polyfills();
|
|
@@ -884,9 +886,9 @@ var require_graceful_fs = __commonJS({
|
|
|
884
886
|
}
|
|
885
887
|
});
|
|
886
888
|
|
|
887
|
-
// ../../node_modules/.pnpm/fs-extra@11.
|
|
889
|
+
// ../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/fs/index.js
|
|
888
890
|
var require_fs = __commonJS({
|
|
889
|
-
"../../node_modules/.pnpm/fs-extra@11.
|
|
891
|
+
"../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/fs/index.js"(exports2) {
|
|
890
892
|
"use strict";
|
|
891
893
|
var u = require_universalify().fromCallback;
|
|
892
894
|
var fs3 = require_graceful_fs();
|
|
@@ -897,6 +899,7 @@ var require_fs = __commonJS({
|
|
|
897
899
|
"chown",
|
|
898
900
|
"close",
|
|
899
901
|
"copyFile",
|
|
902
|
+
"cp",
|
|
900
903
|
"fchmod",
|
|
901
904
|
"fchown",
|
|
902
905
|
"fdatasync",
|
|
@@ -904,8 +907,10 @@ var require_fs = __commonJS({
|
|
|
904
907
|
"fsync",
|
|
905
908
|
"ftruncate",
|
|
906
909
|
"futimes",
|
|
910
|
+
"glob",
|
|
907
911
|
"lchmod",
|
|
908
912
|
"lchown",
|
|
913
|
+
"lutimes",
|
|
909
914
|
"link",
|
|
910
915
|
"lstat",
|
|
911
916
|
"mkdir",
|
|
@@ -920,6 +925,7 @@ var require_fs = __commonJS({
|
|
|
920
925
|
"rm",
|
|
921
926
|
"rmdir",
|
|
922
927
|
"stat",
|
|
928
|
+
"statfs",
|
|
923
929
|
"symlink",
|
|
924
930
|
"truncate",
|
|
925
931
|
"unlink",
|
|
@@ -996,9 +1002,9 @@ var require_fs = __commonJS({
|
|
|
996
1002
|
}
|
|
997
1003
|
});
|
|
998
1004
|
|
|
999
|
-
// ../../node_modules/.pnpm/fs-extra@11.
|
|
1005
|
+
// ../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/mkdirs/utils.js
|
|
1000
1006
|
var require_utils = __commonJS({
|
|
1001
|
-
"../../node_modules/.pnpm/fs-extra@11.
|
|
1007
|
+
"../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/mkdirs/utils.js"(exports2, module2) {
|
|
1002
1008
|
"use strict";
|
|
1003
1009
|
var path5 = require("path");
|
|
1004
1010
|
module2.exports.checkPath = function checkPath(pth) {
|
|
@@ -1014,9 +1020,9 @@ var require_utils = __commonJS({
|
|
|
1014
1020
|
}
|
|
1015
1021
|
});
|
|
1016
1022
|
|
|
1017
|
-
// ../../node_modules/.pnpm/fs-extra@11.
|
|
1023
|
+
// ../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/mkdirs/make-dir.js
|
|
1018
1024
|
var require_make_dir = __commonJS({
|
|
1019
|
-
"../../node_modules/.pnpm/fs-extra@11.
|
|
1025
|
+
"../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/mkdirs/make-dir.js"(exports2, module2) {
|
|
1020
1026
|
"use strict";
|
|
1021
1027
|
var fs3 = require_fs();
|
|
1022
1028
|
var { checkPath } = require_utils();
|
|
@@ -1042,9 +1048,9 @@ var require_make_dir = __commonJS({
|
|
|
1042
1048
|
}
|
|
1043
1049
|
});
|
|
1044
1050
|
|
|
1045
|
-
// ../../node_modules/.pnpm/fs-extra@11.
|
|
1051
|
+
// ../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/mkdirs/index.js
|
|
1046
1052
|
var require_mkdirs = __commonJS({
|
|
1047
|
-
"../../node_modules/.pnpm/fs-extra@11.
|
|
1053
|
+
"../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/mkdirs/index.js"(exports2, module2) {
|
|
1048
1054
|
"use strict";
|
|
1049
1055
|
var u = require_universalify().fromPromise;
|
|
1050
1056
|
var { makeDir: _makeDir, makeDirSync } = require_make_dir();
|
|
@@ -1061,9 +1067,9 @@ var require_mkdirs = __commonJS({
|
|
|
1061
1067
|
}
|
|
1062
1068
|
});
|
|
1063
1069
|
|
|
1064
|
-
// ../../node_modules/.pnpm/fs-extra@11.
|
|
1070
|
+
// ../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/path-exists/index.js
|
|
1065
1071
|
var require_path_exists = __commonJS({
|
|
1066
|
-
"../../node_modules/.pnpm/fs-extra@11.
|
|
1072
|
+
"../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/path-exists/index.js"(exports2, module2) {
|
|
1067
1073
|
"use strict";
|
|
1068
1074
|
var u = require_universalify().fromPromise;
|
|
1069
1075
|
var fs3 = require_fs();
|
|
@@ -1077,20 +1083,27 @@ var require_path_exists = __commonJS({
|
|
|
1077
1083
|
}
|
|
1078
1084
|
});
|
|
1079
1085
|
|
|
1080
|
-
// ../../node_modules/.pnpm/fs-extra@11.
|
|
1086
|
+
// ../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/util/utimes.js
|
|
1081
1087
|
var require_utimes = __commonJS({
|
|
1082
|
-
"../../node_modules/.pnpm/fs-extra@11.
|
|
1088
|
+
"../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/util/utimes.js"(exports2, module2) {
|
|
1083
1089
|
"use strict";
|
|
1084
|
-
var fs3 =
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1090
|
+
var fs3 = require_fs();
|
|
1091
|
+
var u = require_universalify().fromPromise;
|
|
1092
|
+
async function utimesMillis(path5, atime, mtime) {
|
|
1093
|
+
const fd = await fs3.open(path5, "r+");
|
|
1094
|
+
let closeErr = null;
|
|
1095
|
+
try {
|
|
1096
|
+
await fs3.futimes(fd, atime, mtime);
|
|
1097
|
+
} finally {
|
|
1098
|
+
try {
|
|
1099
|
+
await fs3.close(fd);
|
|
1100
|
+
} catch (e) {
|
|
1101
|
+
closeErr = e;
|
|
1102
|
+
}
|
|
1103
|
+
}
|
|
1104
|
+
if (closeErr) {
|
|
1105
|
+
throw closeErr;
|
|
1106
|
+
}
|
|
1094
1107
|
}
|
|
1095
1108
|
function utimesMillisSync(path5, atime, mtime) {
|
|
1096
1109
|
const fd = fs3.openSync(path5, "r+");
|
|
@@ -1098,19 +1111,19 @@ var require_utimes = __commonJS({
|
|
|
1098
1111
|
return fs3.closeSync(fd);
|
|
1099
1112
|
}
|
|
1100
1113
|
module2.exports = {
|
|
1101
|
-
utimesMillis,
|
|
1114
|
+
utimesMillis: u(utimesMillis),
|
|
1102
1115
|
utimesMillisSync
|
|
1103
1116
|
};
|
|
1104
1117
|
}
|
|
1105
1118
|
});
|
|
1106
1119
|
|
|
1107
|
-
// ../../node_modules/.pnpm/fs-extra@11.
|
|
1120
|
+
// ../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/util/stat.js
|
|
1108
1121
|
var require_stat = __commonJS({
|
|
1109
|
-
"../../node_modules/.pnpm/fs-extra@11.
|
|
1122
|
+
"../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/util/stat.js"(exports2, module2) {
|
|
1110
1123
|
"use strict";
|
|
1111
1124
|
var fs3 = require_fs();
|
|
1112
1125
|
var path5 = require("path");
|
|
1113
|
-
var
|
|
1126
|
+
var u = require_universalify().fromPromise;
|
|
1114
1127
|
function getStats(src, dest, opts) {
|
|
1115
1128
|
const statFunc = opts.dereference ? (file2) => fs3.stat(file2, { bigint: true }) : (file2) => fs3.lstat(file2, { bigint: true });
|
|
1116
1129
|
return Promise.all([
|
|
@@ -1133,31 +1146,28 @@ var require_stat = __commonJS({
|
|
|
1133
1146
|
}
|
|
1134
1147
|
return { srcStat, destStat };
|
|
1135
1148
|
}
|
|
1136
|
-
function checkPaths(src, dest, funcName, opts
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
if (funcName === "move" && srcBaseName !== destBaseName && srcBaseName.toLowerCase() === destBaseName.toLowerCase()) {
|
|
1145
|
-
return cb(null, { srcStat, destStat, isChangingCase: true });
|
|
1146
|
-
}
|
|
1147
|
-
return cb(new Error("Source and destination must not be the same."));
|
|
1148
|
-
}
|
|
1149
|
-
if (srcStat.isDirectory() && !destStat.isDirectory()) {
|
|
1150
|
-
return cb(new Error(`Cannot overwrite non-directory '${dest}' with directory '${src}'.`));
|
|
1151
|
-
}
|
|
1152
|
-
if (!srcStat.isDirectory() && destStat.isDirectory()) {
|
|
1153
|
-
return cb(new Error(`Cannot overwrite directory '${dest}' with non-directory '${src}'.`));
|
|
1149
|
+
async function checkPaths(src, dest, funcName, opts) {
|
|
1150
|
+
const { srcStat, destStat } = await getStats(src, dest, opts);
|
|
1151
|
+
if (destStat) {
|
|
1152
|
+
if (areIdentical(srcStat, destStat)) {
|
|
1153
|
+
const srcBaseName = path5.basename(src);
|
|
1154
|
+
const destBaseName = path5.basename(dest);
|
|
1155
|
+
if (funcName === "move" && srcBaseName !== destBaseName && srcBaseName.toLowerCase() === destBaseName.toLowerCase()) {
|
|
1156
|
+
return { srcStat, destStat, isChangingCase: true };
|
|
1154
1157
|
}
|
|
1158
|
+
throw new Error("Source and destination must not be the same.");
|
|
1159
|
+
}
|
|
1160
|
+
if (srcStat.isDirectory() && !destStat.isDirectory()) {
|
|
1161
|
+
throw new Error(`Cannot overwrite non-directory '${dest}' with directory '${src}'.`);
|
|
1155
1162
|
}
|
|
1156
|
-
if (srcStat.isDirectory() &&
|
|
1157
|
-
|
|
1163
|
+
if (!srcStat.isDirectory() && destStat.isDirectory()) {
|
|
1164
|
+
throw new Error(`Cannot overwrite directory '${dest}' with non-directory '${src}'.`);
|
|
1158
1165
|
}
|
|
1159
|
-
|
|
1160
|
-
|
|
1166
|
+
}
|
|
1167
|
+
if (srcStat.isDirectory() && isSrcSubdir(src, dest)) {
|
|
1168
|
+
throw new Error(errMsg(src, dest, funcName));
|
|
1169
|
+
}
|
|
1170
|
+
return { srcStat, destStat };
|
|
1161
1171
|
}
|
|
1162
1172
|
function checkPathsSync(src, dest, funcName, opts) {
|
|
1163
1173
|
const { srcStat, destStat } = getStatsSync(src, dest, opts);
|
|
@@ -1182,20 +1192,21 @@ var require_stat = __commonJS({
|
|
|
1182
1192
|
}
|
|
1183
1193
|
return { srcStat, destStat };
|
|
1184
1194
|
}
|
|
1185
|
-
function checkParentPaths(src, srcStat, dest, funcName
|
|
1195
|
+
async function checkParentPaths(src, srcStat, dest, funcName) {
|
|
1186
1196
|
const srcParent = path5.resolve(path5.dirname(src));
|
|
1187
1197
|
const destParent = path5.resolve(path5.dirname(dest));
|
|
1188
|
-
if (destParent === srcParent || destParent === path5.parse(destParent).root) return
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
}
|
|
1198
|
+
if (destParent === srcParent || destParent === path5.parse(destParent).root) return;
|
|
1199
|
+
let destStat;
|
|
1200
|
+
try {
|
|
1201
|
+
destStat = await fs3.stat(destParent, { bigint: true });
|
|
1202
|
+
} catch (err) {
|
|
1203
|
+
if (err.code === "ENOENT") return;
|
|
1204
|
+
throw err;
|
|
1205
|
+
}
|
|
1206
|
+
if (areIdentical(srcStat, destStat)) {
|
|
1207
|
+
throw new Error(errMsg(src, dest, funcName));
|
|
1208
|
+
}
|
|
1209
|
+
return checkParentPaths(src, srcStat, destParent, funcName);
|
|
1199
1210
|
}
|
|
1200
1211
|
function checkParentPathsSync(src, srcStat, dest, funcName) {
|
|
1201
1212
|
const srcParent = path5.resolve(path5.dirname(src));
|
|
@@ -1219,42 +1230,39 @@ var require_stat = __commonJS({
|
|
|
1219
1230
|
function isSrcSubdir(src, dest) {
|
|
1220
1231
|
const srcArr = path5.resolve(src).split(path5.sep).filter((i) => i);
|
|
1221
1232
|
const destArr = path5.resolve(dest).split(path5.sep).filter((i) => i);
|
|
1222
|
-
return srcArr.
|
|
1233
|
+
return srcArr.every((cur, i) => destArr[i] === cur);
|
|
1223
1234
|
}
|
|
1224
1235
|
function errMsg(src, dest, funcName) {
|
|
1225
1236
|
return `Cannot ${funcName} '${src}' to a subdirectory of itself, '${dest}'.`;
|
|
1226
1237
|
}
|
|
1227
1238
|
module2.exports = {
|
|
1228
|
-
checkPaths
|
|
1239
|
+
// checkPaths
|
|
1240
|
+
checkPaths: u(checkPaths),
|
|
1229
1241
|
checkPathsSync,
|
|
1230
|
-
|
|
1242
|
+
// checkParent
|
|
1243
|
+
checkParentPaths: u(checkParentPaths),
|
|
1231
1244
|
checkParentPathsSync,
|
|
1245
|
+
// Misc
|
|
1232
1246
|
isSrcSubdir,
|
|
1233
1247
|
areIdentical
|
|
1234
1248
|
};
|
|
1235
1249
|
}
|
|
1236
1250
|
});
|
|
1237
1251
|
|
|
1238
|
-
// ../../node_modules/.pnpm/fs-extra@11.
|
|
1252
|
+
// ../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/copy/copy.js
|
|
1239
1253
|
var require_copy = __commonJS({
|
|
1240
|
-
"../../node_modules/.pnpm/fs-extra@11.
|
|
1254
|
+
"../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/copy/copy.js"(exports2, module2) {
|
|
1241
1255
|
"use strict";
|
|
1242
|
-
var fs3 =
|
|
1256
|
+
var fs3 = require_fs();
|
|
1243
1257
|
var path5 = require("path");
|
|
1244
|
-
var mkdirs = require_mkdirs()
|
|
1245
|
-
var pathExists2 = require_path_exists()
|
|
1246
|
-
var utimesMillis = require_utimes()
|
|
1258
|
+
var { mkdirs } = require_mkdirs();
|
|
1259
|
+
var { pathExists: pathExists2 } = require_path_exists();
|
|
1260
|
+
var { utimesMillis } = require_utimes();
|
|
1247
1261
|
var stat = require_stat();
|
|
1248
|
-
function copy(src, dest, opts
|
|
1249
|
-
if (typeof opts === "function"
|
|
1250
|
-
cb = opts;
|
|
1251
|
-
opts = {};
|
|
1252
|
-
} else if (typeof opts === "function") {
|
|
1262
|
+
async function copy(src, dest, opts = {}) {
|
|
1263
|
+
if (typeof opts === "function") {
|
|
1253
1264
|
opts = { filter: opts };
|
|
1254
1265
|
}
|
|
1255
|
-
cb = cb || function() {
|
|
1256
|
-
};
|
|
1257
|
-
opts = opts || {};
|
|
1258
1266
|
opts.clobber = "clobber" in opts ? !!opts.clobber : true;
|
|
1259
1267
|
opts.overwrite = "overwrite" in opts ? !!opts.overwrite : opts.clobber;
|
|
1260
1268
|
if (opts.preserveTimestamps && process.arch === "ia32") {
|
|
@@ -1264,178 +1272,115 @@ var require_copy = __commonJS({
|
|
|
1264
1272
|
"fs-extra-WARN0001"
|
|
1265
1273
|
);
|
|
1266
1274
|
}
|
|
1267
|
-
stat.checkPaths(src, dest, "copy", opts
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
if (err2) return cb(err2);
|
|
1272
|
-
runFilter(src, dest, opts, (err3, include) => {
|
|
1273
|
-
if (err3) return cb(err3);
|
|
1274
|
-
if (!include) return cb();
|
|
1275
|
-
checkParentDir(destStat, src, dest, opts, cb);
|
|
1276
|
-
});
|
|
1277
|
-
});
|
|
1278
|
-
});
|
|
1279
|
-
}
|
|
1280
|
-
function checkParentDir(destStat, src, dest, opts, cb) {
|
|
1275
|
+
const { srcStat, destStat } = await stat.checkPaths(src, dest, "copy", opts);
|
|
1276
|
+
await stat.checkParentPaths(src, srcStat, dest, "copy");
|
|
1277
|
+
const include = await runFilter(src, dest, opts);
|
|
1278
|
+
if (!include) return;
|
|
1281
1279
|
const destParent = path5.dirname(dest);
|
|
1282
|
-
pathExists2(destParent
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
return getStats(destStat, src, dest, opts, cb);
|
|
1288
|
-
});
|
|
1289
|
-
});
|
|
1280
|
+
const dirExists = await pathExists2(destParent);
|
|
1281
|
+
if (!dirExists) {
|
|
1282
|
+
await mkdirs(destParent);
|
|
1283
|
+
}
|
|
1284
|
+
await getStatsAndPerformCopy(destStat, src, dest, opts);
|
|
1290
1285
|
}
|
|
1291
|
-
function runFilter(src, dest, opts
|
|
1292
|
-
if (!opts.filter) return
|
|
1293
|
-
|
|
1294
|
-
}
|
|
1295
|
-
function getStats(destStat, src, dest, opts, cb) {
|
|
1296
|
-
const stat2 = opts.dereference ? fs3.stat : fs3.lstat;
|
|
1297
|
-
stat2(src, (err, srcStat) => {
|
|
1298
|
-
if (err) return cb(err);
|
|
1299
|
-
if (srcStat.isDirectory()) return onDir(srcStat, destStat, src, dest, opts, cb);
|
|
1300
|
-
else if (srcStat.isFile() || srcStat.isCharacterDevice() || srcStat.isBlockDevice()) return onFile(srcStat, destStat, src, dest, opts, cb);
|
|
1301
|
-
else if (srcStat.isSymbolicLink()) return onLink(destStat, src, dest, opts, cb);
|
|
1302
|
-
else if (srcStat.isSocket()) return cb(new Error(`Cannot copy a socket file: ${src}`));
|
|
1303
|
-
else if (srcStat.isFIFO()) return cb(new Error(`Cannot copy a FIFO pipe: ${src}`));
|
|
1304
|
-
return cb(new Error(`Unknown file: ${src}`));
|
|
1305
|
-
});
|
|
1286
|
+
async function runFilter(src, dest, opts) {
|
|
1287
|
+
if (!opts.filter) return true;
|
|
1288
|
+
return opts.filter(src, dest);
|
|
1306
1289
|
}
|
|
1307
|
-
function
|
|
1308
|
-
|
|
1309
|
-
|
|
1290
|
+
async function getStatsAndPerformCopy(destStat, src, dest, opts) {
|
|
1291
|
+
const statFn = opts.dereference ? fs3.stat : fs3.lstat;
|
|
1292
|
+
const srcStat = await statFn(src);
|
|
1293
|
+
if (srcStat.isDirectory()) return onDir(srcStat, destStat, src, dest, opts);
|
|
1294
|
+
if (srcStat.isFile() || srcStat.isCharacterDevice() || srcStat.isBlockDevice()) return onFile(srcStat, destStat, src, dest, opts);
|
|
1295
|
+
if (srcStat.isSymbolicLink()) return onLink(destStat, src, dest, opts);
|
|
1296
|
+
if (srcStat.isSocket()) throw new Error(`Cannot copy a socket file: ${src}`);
|
|
1297
|
+
if (srcStat.isFIFO()) throw new Error(`Cannot copy a FIFO pipe: ${src}`);
|
|
1298
|
+
throw new Error(`Unknown file: ${src}`);
|
|
1310
1299
|
}
|
|
1311
|
-
function
|
|
1300
|
+
async function onFile(srcStat, destStat, src, dest, opts) {
|
|
1301
|
+
if (!destStat) return copyFile(srcStat, src, dest, opts);
|
|
1312
1302
|
if (opts.overwrite) {
|
|
1313
|
-
fs3.unlink(dest
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
} else return cb();
|
|
1320
|
-
}
|
|
1321
|
-
function copyFile(srcStat, src, dest, opts, cb) {
|
|
1322
|
-
fs3.copyFile(src, dest, (err) => {
|
|
1323
|
-
if (err) return cb(err);
|
|
1324
|
-
if (opts.preserveTimestamps) return handleTimestampsAndMode(srcStat.mode, src, dest, cb);
|
|
1325
|
-
return setDestMode(dest, srcStat.mode, cb);
|
|
1326
|
-
});
|
|
1303
|
+
await fs3.unlink(dest);
|
|
1304
|
+
return copyFile(srcStat, src, dest, opts);
|
|
1305
|
+
}
|
|
1306
|
+
if (opts.errorOnExist) {
|
|
1307
|
+
throw new Error(`'${dest}' already exists`);
|
|
1308
|
+
}
|
|
1327
1309
|
}
|
|
1328
|
-
function
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
}
|
|
1310
|
+
async function copyFile(srcStat, src, dest, opts) {
|
|
1311
|
+
await fs3.copyFile(src, dest);
|
|
1312
|
+
if (opts.preserveTimestamps) {
|
|
1313
|
+
if (fileIsNotWritable(srcStat.mode)) {
|
|
1314
|
+
await makeFileWritable(dest, srcStat.mode);
|
|
1315
|
+
}
|
|
1316
|
+
const updatedSrcStat = await fs3.stat(src);
|
|
1317
|
+
await utimesMillis(dest, updatedSrcStat.atime, updatedSrcStat.mtime);
|
|
1334
1318
|
}
|
|
1335
|
-
return
|
|
1319
|
+
return fs3.chmod(dest, srcStat.mode);
|
|
1336
1320
|
}
|
|
1337
1321
|
function fileIsNotWritable(srcMode) {
|
|
1338
1322
|
return (srcMode & 128) === 0;
|
|
1339
1323
|
}
|
|
1340
|
-
function makeFileWritable(dest, srcMode
|
|
1341
|
-
return
|
|
1342
|
-
}
|
|
1343
|
-
function setDestTimestampsAndMode(srcMode, src, dest, cb) {
|
|
1344
|
-
setDestTimestamps(src, dest, (err) => {
|
|
1345
|
-
if (err) return cb(err);
|
|
1346
|
-
return setDestMode(dest, srcMode, cb);
|
|
1347
|
-
});
|
|
1348
|
-
}
|
|
1349
|
-
function setDestMode(dest, srcMode, cb) {
|
|
1350
|
-
return fs3.chmod(dest, srcMode, cb);
|
|
1351
|
-
}
|
|
1352
|
-
function setDestTimestamps(src, dest, cb) {
|
|
1353
|
-
fs3.stat(src, (err, updatedSrcStat) => {
|
|
1354
|
-
if (err) return cb(err);
|
|
1355
|
-
return utimesMillis(dest, updatedSrcStat.atime, updatedSrcStat.mtime, cb);
|
|
1356
|
-
});
|
|
1357
|
-
}
|
|
1358
|
-
function onDir(srcStat, destStat, src, dest, opts, cb) {
|
|
1359
|
-
if (!destStat) return mkDirAndCopy(srcStat.mode, src, dest, opts, cb);
|
|
1360
|
-
return copyDir(src, dest, opts, cb);
|
|
1361
|
-
}
|
|
1362
|
-
function mkDirAndCopy(srcMode, src, dest, opts, cb) {
|
|
1363
|
-
fs3.mkdir(dest, (err) => {
|
|
1364
|
-
if (err) return cb(err);
|
|
1365
|
-
copyDir(src, dest, opts, (err2) => {
|
|
1366
|
-
if (err2) return cb(err2);
|
|
1367
|
-
return setDestMode(dest, srcMode, cb);
|
|
1368
|
-
});
|
|
1369
|
-
});
|
|
1370
|
-
}
|
|
1371
|
-
function copyDir(src, dest, opts, cb) {
|
|
1372
|
-
fs3.readdir(src, (err, items) => {
|
|
1373
|
-
if (err) return cb(err);
|
|
1374
|
-
return copyDirItems(items, src, dest, opts, cb);
|
|
1375
|
-
});
|
|
1376
|
-
}
|
|
1377
|
-
function copyDirItems(items, src, dest, opts, cb) {
|
|
1378
|
-
const item = items.pop();
|
|
1379
|
-
if (!item) return cb();
|
|
1380
|
-
return copyDirItem(items, item, src, dest, opts, cb);
|
|
1381
|
-
}
|
|
1382
|
-
function copyDirItem(items, item, src, dest, opts, cb) {
|
|
1383
|
-
const srcItem = path5.join(src, item);
|
|
1384
|
-
const destItem = path5.join(dest, item);
|
|
1385
|
-
runFilter(srcItem, destItem, opts, (err, include) => {
|
|
1386
|
-
if (err) return cb(err);
|
|
1387
|
-
if (!include) return copyDirItems(items, src, dest, opts, cb);
|
|
1388
|
-
stat.checkPaths(srcItem, destItem, "copy", opts, (err2, stats) => {
|
|
1389
|
-
if (err2) return cb(err2);
|
|
1390
|
-
const { destStat } = stats;
|
|
1391
|
-
getStats(destStat, srcItem, destItem, opts, (err3) => {
|
|
1392
|
-
if (err3) return cb(err3);
|
|
1393
|
-
return copyDirItems(items, src, dest, opts, cb);
|
|
1394
|
-
});
|
|
1395
|
-
});
|
|
1396
|
-
});
|
|
1324
|
+
function makeFileWritable(dest, srcMode) {
|
|
1325
|
+
return fs3.chmod(dest, srcMode | 128);
|
|
1397
1326
|
}
|
|
1398
|
-
function
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
if (
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
if (opts.dereference) {
|
|
1413
|
-
resolvedDest = path5.resolve(process.cwd(), resolvedDest);
|
|
1414
|
-
}
|
|
1415
|
-
if (stat.isSrcSubdir(resolvedSrc, resolvedDest)) {
|
|
1416
|
-
return cb(new Error(`Cannot copy '${resolvedSrc}' to a subdirectory of itself, '${resolvedDest}'.`));
|
|
1417
|
-
}
|
|
1418
|
-
if (stat.isSrcSubdir(resolvedDest, resolvedSrc)) {
|
|
1419
|
-
return cb(new Error(`Cannot overwrite '${resolvedDest}' with '${resolvedSrc}'.`));
|
|
1327
|
+
async function onDir(srcStat, destStat, src, dest, opts) {
|
|
1328
|
+
if (!destStat) {
|
|
1329
|
+
await fs3.mkdir(dest);
|
|
1330
|
+
}
|
|
1331
|
+
const promises = [];
|
|
1332
|
+
for await (const item of await fs3.opendir(src)) {
|
|
1333
|
+
const srcItem = path5.join(src, item.name);
|
|
1334
|
+
const destItem = path5.join(dest, item.name);
|
|
1335
|
+
promises.push(
|
|
1336
|
+
runFilter(srcItem, destItem, opts).then((include) => {
|
|
1337
|
+
if (include) {
|
|
1338
|
+
return stat.checkPaths(srcItem, destItem, "copy", opts).then(({ destStat: destStat2 }) => {
|
|
1339
|
+
return getStatsAndPerformCopy(destStat2, srcItem, destItem, opts);
|
|
1340
|
+
});
|
|
1420
1341
|
}
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1342
|
+
})
|
|
1343
|
+
);
|
|
1344
|
+
}
|
|
1345
|
+
await Promise.all(promises);
|
|
1346
|
+
if (!destStat) {
|
|
1347
|
+
await fs3.chmod(dest, srcStat.mode);
|
|
1348
|
+
}
|
|
1425
1349
|
}
|
|
1426
|
-
function
|
|
1427
|
-
fs3.
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
}
|
|
1350
|
+
async function onLink(destStat, src, dest, opts) {
|
|
1351
|
+
let resolvedSrc = await fs3.readlink(src);
|
|
1352
|
+
if (opts.dereference) {
|
|
1353
|
+
resolvedSrc = path5.resolve(process.cwd(), resolvedSrc);
|
|
1354
|
+
}
|
|
1355
|
+
if (!destStat) {
|
|
1356
|
+
return fs3.symlink(resolvedSrc, dest);
|
|
1357
|
+
}
|
|
1358
|
+
let resolvedDest = null;
|
|
1359
|
+
try {
|
|
1360
|
+
resolvedDest = await fs3.readlink(dest);
|
|
1361
|
+
} catch (e) {
|
|
1362
|
+
if (e.code === "EINVAL" || e.code === "UNKNOWN") return fs3.symlink(resolvedSrc, dest);
|
|
1363
|
+
throw e;
|
|
1364
|
+
}
|
|
1365
|
+
if (opts.dereference) {
|
|
1366
|
+
resolvedDest = path5.resolve(process.cwd(), resolvedDest);
|
|
1367
|
+
}
|
|
1368
|
+
if (stat.isSrcSubdir(resolvedSrc, resolvedDest)) {
|
|
1369
|
+
throw new Error(`Cannot copy '${resolvedSrc}' to a subdirectory of itself, '${resolvedDest}'.`);
|
|
1370
|
+
}
|
|
1371
|
+
if (stat.isSrcSubdir(resolvedDest, resolvedSrc)) {
|
|
1372
|
+
throw new Error(`Cannot overwrite '${resolvedDest}' with '${resolvedSrc}'.`);
|
|
1373
|
+
}
|
|
1374
|
+
await fs3.unlink(dest);
|
|
1375
|
+
return fs3.symlink(resolvedSrc, dest);
|
|
1431
1376
|
}
|
|
1432
1377
|
module2.exports = copy;
|
|
1433
1378
|
}
|
|
1434
1379
|
});
|
|
1435
1380
|
|
|
1436
|
-
// ../../node_modules/.pnpm/fs-extra@11.
|
|
1381
|
+
// ../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/copy/copy-sync.js
|
|
1437
1382
|
var require_copy_sync = __commonJS({
|
|
1438
|
-
"../../node_modules/.pnpm/fs-extra@11.
|
|
1383
|
+
"../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/copy/copy-sync.js"(exports2, module2) {
|
|
1439
1384
|
"use strict";
|
|
1440
1385
|
var fs3 = require_graceful_fs();
|
|
1441
1386
|
var path5 = require("path");
|
|
@@ -1517,7 +1462,15 @@ var require_copy_sync = __commonJS({
|
|
|
1517
1462
|
return setDestMode(dest, srcMode);
|
|
1518
1463
|
}
|
|
1519
1464
|
function copyDir(src, dest, opts) {
|
|
1520
|
-
fs3.
|
|
1465
|
+
const dir = fs3.opendirSync(src);
|
|
1466
|
+
try {
|
|
1467
|
+
let dirent;
|
|
1468
|
+
while ((dirent = dir.readSync()) !== null) {
|
|
1469
|
+
copyDirItem(dirent.name, src, dest, opts);
|
|
1470
|
+
}
|
|
1471
|
+
} finally {
|
|
1472
|
+
dir.closeSync();
|
|
1473
|
+
}
|
|
1521
1474
|
}
|
|
1522
1475
|
function copyDirItem(item, src, dest, opts) {
|
|
1523
1476
|
const srcItem = path5.join(src, item);
|
|
@@ -1561,11 +1514,11 @@ var require_copy_sync = __commonJS({
|
|
|
1561
1514
|
}
|
|
1562
1515
|
});
|
|
1563
1516
|
|
|
1564
|
-
// ../../node_modules/.pnpm/fs-extra@11.
|
|
1517
|
+
// ../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/copy/index.js
|
|
1565
1518
|
var require_copy2 = __commonJS({
|
|
1566
|
-
"../../node_modules/.pnpm/fs-extra@11.
|
|
1519
|
+
"../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/copy/index.js"(exports2, module2) {
|
|
1567
1520
|
"use strict";
|
|
1568
|
-
var u = require_universalify().
|
|
1521
|
+
var u = require_universalify().fromPromise;
|
|
1569
1522
|
module2.exports = {
|
|
1570
1523
|
copy: u(require_copy()),
|
|
1571
1524
|
copySync: require_copy_sync()
|
|
@@ -1573,9 +1526,9 @@ var require_copy2 = __commonJS({
|
|
|
1573
1526
|
}
|
|
1574
1527
|
});
|
|
1575
1528
|
|
|
1576
|
-
// ../../node_modules/.pnpm/fs-extra@11.
|
|
1529
|
+
// ../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/remove/index.js
|
|
1577
1530
|
var require_remove = __commonJS({
|
|
1578
|
-
"../../node_modules/.pnpm/fs-extra@11.
|
|
1531
|
+
"../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/remove/index.js"(exports2, module2) {
|
|
1579
1532
|
"use strict";
|
|
1580
1533
|
var fs3 = require_graceful_fs();
|
|
1581
1534
|
var u = require_universalify().fromCallback;
|
|
@@ -1592,9 +1545,9 @@ var require_remove = __commonJS({
|
|
|
1592
1545
|
}
|
|
1593
1546
|
});
|
|
1594
1547
|
|
|
1595
|
-
// ../../node_modules/.pnpm/fs-extra@11.
|
|
1548
|
+
// ../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/empty/index.js
|
|
1596
1549
|
var require_empty = __commonJS({
|
|
1597
|
-
"../../node_modules/.pnpm/fs-extra@11.
|
|
1550
|
+
"../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/empty/index.js"(exports2, module2) {
|
|
1598
1551
|
"use strict";
|
|
1599
1552
|
var u = require_universalify().fromPromise;
|
|
1600
1553
|
var fs3 = require_fs();
|
|
@@ -1631,42 +1584,39 @@ var require_empty = __commonJS({
|
|
|
1631
1584
|
}
|
|
1632
1585
|
});
|
|
1633
1586
|
|
|
1634
|
-
// ../../node_modules/.pnpm/fs-extra@11.
|
|
1587
|
+
// ../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/ensure/file.js
|
|
1635
1588
|
var require_file = __commonJS({
|
|
1636
|
-
"../../node_modules/.pnpm/fs-extra@11.
|
|
1589
|
+
"../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/ensure/file.js"(exports2, module2) {
|
|
1637
1590
|
"use strict";
|
|
1638
|
-
var u = require_universalify().
|
|
1591
|
+
var u = require_universalify().fromPromise;
|
|
1639
1592
|
var path5 = require("path");
|
|
1640
|
-
var fs3 =
|
|
1593
|
+
var fs3 = require_fs();
|
|
1641
1594
|
var mkdir = require_mkdirs();
|
|
1642
|
-
function createFile(file2
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1595
|
+
async function createFile(file2) {
|
|
1596
|
+
let stats;
|
|
1597
|
+
try {
|
|
1598
|
+
stats = await fs3.stat(file2);
|
|
1599
|
+
} catch {
|
|
1600
|
+
}
|
|
1601
|
+
if (stats && stats.isFile()) return;
|
|
1602
|
+
const dir = path5.dirname(file2);
|
|
1603
|
+
let dirStats = null;
|
|
1604
|
+
try {
|
|
1605
|
+
dirStats = await fs3.stat(dir);
|
|
1606
|
+
} catch (err) {
|
|
1607
|
+
if (err.code === "ENOENT") {
|
|
1608
|
+
await mkdir.mkdirs(dir);
|
|
1609
|
+
await fs3.writeFile(file2, "");
|
|
1610
|
+
return;
|
|
1611
|
+
} else {
|
|
1612
|
+
throw err;
|
|
1613
|
+
}
|
|
1614
|
+
}
|
|
1615
|
+
if (dirStats.isDirectory()) {
|
|
1616
|
+
await fs3.writeFile(file2, "");
|
|
1617
|
+
} else {
|
|
1618
|
+
await fs3.readdir(dir);
|
|
1648
1619
|
}
|
|
1649
|
-
fs3.stat(file2, (err, stats) => {
|
|
1650
|
-
if (!err && stats.isFile()) return callback();
|
|
1651
|
-
const dir = path5.dirname(file2);
|
|
1652
|
-
fs3.stat(dir, (err2, stats2) => {
|
|
1653
|
-
if (err2) {
|
|
1654
|
-
if (err2.code === "ENOENT") {
|
|
1655
|
-
return mkdir.mkdirs(dir, (err3) => {
|
|
1656
|
-
if (err3) return callback(err3);
|
|
1657
|
-
makeFile();
|
|
1658
|
-
});
|
|
1659
|
-
}
|
|
1660
|
-
return callback(err2);
|
|
1661
|
-
}
|
|
1662
|
-
if (stats2.isDirectory()) makeFile();
|
|
1663
|
-
else {
|
|
1664
|
-
fs3.readdir(dir, (err3) => {
|
|
1665
|
-
if (err3) return callback(err3);
|
|
1666
|
-
});
|
|
1667
|
-
}
|
|
1668
|
-
});
|
|
1669
|
-
});
|
|
1670
1620
|
}
|
|
1671
1621
|
function createFileSync(file2) {
|
|
1672
1622
|
let stats;
|
|
@@ -1693,41 +1643,36 @@ var require_file = __commonJS({
|
|
|
1693
1643
|
}
|
|
1694
1644
|
});
|
|
1695
1645
|
|
|
1696
|
-
// ../../node_modules/.pnpm/fs-extra@11.
|
|
1646
|
+
// ../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/ensure/link.js
|
|
1697
1647
|
var require_link = __commonJS({
|
|
1698
|
-
"../../node_modules/.pnpm/fs-extra@11.
|
|
1648
|
+
"../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/ensure/link.js"(exports2, module2) {
|
|
1699
1649
|
"use strict";
|
|
1700
|
-
var u = require_universalify().
|
|
1650
|
+
var u = require_universalify().fromPromise;
|
|
1701
1651
|
var path5 = require("path");
|
|
1702
|
-
var fs3 =
|
|
1652
|
+
var fs3 = require_fs();
|
|
1703
1653
|
var mkdir = require_mkdirs();
|
|
1704
|
-
var pathExists2 = require_path_exists()
|
|
1654
|
+
var { pathExists: pathExists2 } = require_path_exists();
|
|
1705
1655
|
var { areIdentical } = require_stat();
|
|
1706
|
-
function createLink(srcpath, dstpath
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
});
|
|
1656
|
+
async function createLink(srcpath, dstpath) {
|
|
1657
|
+
let dstStat;
|
|
1658
|
+
try {
|
|
1659
|
+
dstStat = await fs3.lstat(dstpath);
|
|
1660
|
+
} catch {
|
|
1712
1661
|
}
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
});
|
|
1728
|
-
});
|
|
1729
|
-
});
|
|
1730
|
-
});
|
|
1662
|
+
let srcStat;
|
|
1663
|
+
try {
|
|
1664
|
+
srcStat = await fs3.lstat(srcpath);
|
|
1665
|
+
} catch (err) {
|
|
1666
|
+
err.message = err.message.replace("lstat", "ensureLink");
|
|
1667
|
+
throw err;
|
|
1668
|
+
}
|
|
1669
|
+
if (dstStat && areIdentical(srcStat, dstStat)) return;
|
|
1670
|
+
const dir = path5.dirname(dstpath);
|
|
1671
|
+
const dirExists = await pathExists2(dir);
|
|
1672
|
+
if (!dirExists) {
|
|
1673
|
+
await mkdir.mkdirs(dir);
|
|
1674
|
+
}
|
|
1675
|
+
await fs3.link(srcpath, dstpath);
|
|
1731
1676
|
}
|
|
1732
1677
|
function createLinkSync(srcpath, dstpath) {
|
|
1733
1678
|
let dstStat;
|
|
@@ -1755,999 +1700,197 @@ var require_link = __commonJS({
|
|
|
1755
1700
|
}
|
|
1756
1701
|
});
|
|
1757
1702
|
|
|
1758
|
-
// ../../node_modules/.pnpm/fs-extra@11.
|
|
1703
|
+
// ../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/ensure/symlink-paths.js
|
|
1759
1704
|
var require_symlink_paths = __commonJS({
|
|
1760
|
-
"../../node_modules/.pnpm/fs-extra@11.
|
|
1705
|
+
"../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/ensure/symlink-paths.js"(exports2, module2) {
|
|
1761
1706
|
"use strict";
|
|
1762
1707
|
var path5 = require("path");
|
|
1763
|
-
var fs3 =
|
|
1764
|
-
var pathExists2 = require_path_exists()
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
return fs3.lstat(srcpath, (err) => {
|
|
1768
|
-
if (err) {
|
|
1769
|
-
err.message = err.message.replace("lstat", "ensureSymlink");
|
|
1770
|
-
return callback(err);
|
|
1771
|
-
}
|
|
1772
|
-
return callback(null, {
|
|
1773
|
-
toCwd: srcpath,
|
|
1774
|
-
toDst: srcpath
|
|
1775
|
-
});
|
|
1776
|
-
});
|
|
1777
|
-
} else {
|
|
1778
|
-
const dstdir = path5.dirname(dstpath);
|
|
1779
|
-
const relativeToDst = path5.join(dstdir, srcpath);
|
|
1780
|
-
return pathExists2(relativeToDst, (err, exists) => {
|
|
1781
|
-
if (err) return callback(err);
|
|
1782
|
-
if (exists) {
|
|
1783
|
-
return callback(null, {
|
|
1784
|
-
toCwd: relativeToDst,
|
|
1785
|
-
toDst: srcpath
|
|
1786
|
-
});
|
|
1787
|
-
} else {
|
|
1788
|
-
return fs3.lstat(srcpath, (err2) => {
|
|
1789
|
-
if (err2) {
|
|
1790
|
-
err2.message = err2.message.replace("lstat", "ensureSymlink");
|
|
1791
|
-
return callback(err2);
|
|
1792
|
-
}
|
|
1793
|
-
return callback(null, {
|
|
1794
|
-
toCwd: srcpath,
|
|
1795
|
-
toDst: path5.relative(dstdir, srcpath)
|
|
1796
|
-
});
|
|
1797
|
-
});
|
|
1798
|
-
}
|
|
1799
|
-
});
|
|
1800
|
-
}
|
|
1801
|
-
}
|
|
1802
|
-
function symlinkPathsSync(srcpath, dstpath) {
|
|
1803
|
-
let exists;
|
|
1708
|
+
var fs3 = require_fs();
|
|
1709
|
+
var { pathExists: pathExists2 } = require_path_exists();
|
|
1710
|
+
var u = require_universalify().fromPromise;
|
|
1711
|
+
async function symlinkPaths(srcpath, dstpath) {
|
|
1804
1712
|
if (path5.isAbsolute(srcpath)) {
|
|
1805
|
-
|
|
1806
|
-
|
|
1713
|
+
try {
|
|
1714
|
+
await fs3.lstat(srcpath);
|
|
1715
|
+
} catch (err) {
|
|
1716
|
+
err.message = err.message.replace("lstat", "ensureSymlink");
|
|
1717
|
+
throw err;
|
|
1718
|
+
}
|
|
1807
1719
|
return {
|
|
1808
1720
|
toCwd: srcpath,
|
|
1809
1721
|
toDst: srcpath
|
|
1810
1722
|
};
|
|
1811
|
-
} else {
|
|
1812
|
-
const dstdir = path5.dirname(dstpath);
|
|
1813
|
-
const relativeToDst = path5.join(dstdir, srcpath);
|
|
1814
|
-
exists = fs3.existsSync(relativeToDst);
|
|
1815
|
-
if (exists) {
|
|
1816
|
-
return {
|
|
1817
|
-
toCwd: relativeToDst,
|
|
1818
|
-
toDst: srcpath
|
|
1819
|
-
};
|
|
1820
|
-
} else {
|
|
1821
|
-
exists = fs3.existsSync(srcpath);
|
|
1822
|
-
if (!exists) throw new Error("relative srcpath does not exist");
|
|
1823
|
-
return {
|
|
1824
|
-
toCwd: srcpath,
|
|
1825
|
-
toDst: path5.relative(dstdir, srcpath)
|
|
1826
|
-
};
|
|
1827
|
-
}
|
|
1828
|
-
}
|
|
1829
|
-
}
|
|
1830
|
-
module2.exports = {
|
|
1831
|
-
symlinkPaths,
|
|
1832
|
-
symlinkPathsSync
|
|
1833
|
-
};
|
|
1834
|
-
}
|
|
1835
|
-
});
|
|
1836
|
-
|
|
1837
|
-
// ../../node_modules/.pnpm/fs-extra@11.1.1/node_modules/fs-extra/lib/ensure/symlink-type.js
|
|
1838
|
-
var require_symlink_type = __commonJS({
|
|
1839
|
-
"../../node_modules/.pnpm/fs-extra@11.1.1/node_modules/fs-extra/lib/ensure/symlink-type.js"(exports2, module2) {
|
|
1840
|
-
"use strict";
|
|
1841
|
-
var fs3 = require_graceful_fs();
|
|
1842
|
-
function symlinkType(srcpath, type, callback) {
|
|
1843
|
-
callback = typeof type === "function" ? type : callback;
|
|
1844
|
-
type = typeof type === "function" ? false : type;
|
|
1845
|
-
if (type) return callback(null, type);
|
|
1846
|
-
fs3.lstat(srcpath, (err, stats) => {
|
|
1847
|
-
if (err) return callback(null, "file");
|
|
1848
|
-
type = stats && stats.isDirectory() ? "dir" : "file";
|
|
1849
|
-
callback(null, type);
|
|
1850
|
-
});
|
|
1851
|
-
}
|
|
1852
|
-
function symlinkTypeSync(srcpath, type) {
|
|
1853
|
-
let stats;
|
|
1854
|
-
if (type) return type;
|
|
1855
|
-
try {
|
|
1856
|
-
stats = fs3.lstatSync(srcpath);
|
|
1857
|
-
} catch {
|
|
1858
|
-
return "file";
|
|
1859
1723
|
}
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
}
|
|
1868
|
-
|
|
1869
|
-
// ../../node_modules/.pnpm/fs-extra@11.1.1/node_modules/fs-extra/lib/ensure/symlink.js
|
|
1870
|
-
var require_symlink = __commonJS({
|
|
1871
|
-
"../../node_modules/.pnpm/fs-extra@11.1.1/node_modules/fs-extra/lib/ensure/symlink.js"(exports2, module2) {
|
|
1872
|
-
"use strict";
|
|
1873
|
-
var u = require_universalify().fromCallback;
|
|
1874
|
-
var path5 = require("path");
|
|
1875
|
-
var fs3 = require_fs();
|
|
1876
|
-
var _mkdirs = require_mkdirs();
|
|
1877
|
-
var mkdirs = _mkdirs.mkdirs;
|
|
1878
|
-
var mkdirsSync = _mkdirs.mkdirsSync;
|
|
1879
|
-
var _symlinkPaths = require_symlink_paths();
|
|
1880
|
-
var symlinkPaths = _symlinkPaths.symlinkPaths;
|
|
1881
|
-
var symlinkPathsSync = _symlinkPaths.symlinkPathsSync;
|
|
1882
|
-
var _symlinkType = require_symlink_type();
|
|
1883
|
-
var symlinkType = _symlinkType.symlinkType;
|
|
1884
|
-
var symlinkTypeSync = _symlinkType.symlinkTypeSync;
|
|
1885
|
-
var pathExists2 = require_path_exists().pathExists;
|
|
1886
|
-
var { areIdentical } = require_stat();
|
|
1887
|
-
function createSymlink(srcpath, dstpath, type, callback) {
|
|
1888
|
-
callback = typeof type === "function" ? type : callback;
|
|
1889
|
-
type = typeof type === "function" ? false : type;
|
|
1890
|
-
fs3.lstat(dstpath, (err, stats) => {
|
|
1891
|
-
if (!err && stats.isSymbolicLink()) {
|
|
1892
|
-
Promise.all([
|
|
1893
|
-
fs3.stat(srcpath),
|
|
1894
|
-
fs3.stat(dstpath)
|
|
1895
|
-
]).then(([srcStat, dstStat]) => {
|
|
1896
|
-
if (areIdentical(srcStat, dstStat)) return callback(null);
|
|
1897
|
-
_createSymlink(srcpath, dstpath, type, callback);
|
|
1898
|
-
});
|
|
1899
|
-
} else _createSymlink(srcpath, dstpath, type, callback);
|
|
1900
|
-
});
|
|
1901
|
-
}
|
|
1902
|
-
function _createSymlink(srcpath, dstpath, type, callback) {
|
|
1903
|
-
symlinkPaths(srcpath, dstpath, (err, relative) => {
|
|
1904
|
-
if (err) return callback(err);
|
|
1905
|
-
srcpath = relative.toDst;
|
|
1906
|
-
symlinkType(relative.toCwd, type, (err2, type2) => {
|
|
1907
|
-
if (err2) return callback(err2);
|
|
1908
|
-
const dir = path5.dirname(dstpath);
|
|
1909
|
-
pathExists2(dir, (err3, dirExists) => {
|
|
1910
|
-
if (err3) return callback(err3);
|
|
1911
|
-
if (dirExists) return fs3.symlink(srcpath, dstpath, type2, callback);
|
|
1912
|
-
mkdirs(dir, (err4) => {
|
|
1913
|
-
if (err4) return callback(err4);
|
|
1914
|
-
fs3.symlink(srcpath, dstpath, type2, callback);
|
|
1915
|
-
});
|
|
1916
|
-
});
|
|
1917
|
-
});
|
|
1918
|
-
});
|
|
1919
|
-
}
|
|
1920
|
-
function createSymlinkSync(srcpath, dstpath, type) {
|
|
1921
|
-
let stats;
|
|
1922
|
-
try {
|
|
1923
|
-
stats = fs3.lstatSync(dstpath);
|
|
1924
|
-
} catch {
|
|
1925
|
-
}
|
|
1926
|
-
if (stats && stats.isSymbolicLink()) {
|
|
1927
|
-
const srcStat = fs3.statSync(srcpath);
|
|
1928
|
-
const dstStat = fs3.statSync(dstpath);
|
|
1929
|
-
if (areIdentical(srcStat, dstStat)) return;
|
|
1930
|
-
}
|
|
1931
|
-
const relative = symlinkPathsSync(srcpath, dstpath);
|
|
1932
|
-
srcpath = relative.toDst;
|
|
1933
|
-
type = symlinkTypeSync(relative.toCwd, type);
|
|
1934
|
-
const dir = path5.dirname(dstpath);
|
|
1935
|
-
const exists = fs3.existsSync(dir);
|
|
1936
|
-
if (exists) return fs3.symlinkSync(srcpath, dstpath, type);
|
|
1937
|
-
mkdirsSync(dir);
|
|
1938
|
-
return fs3.symlinkSync(srcpath, dstpath, type);
|
|
1939
|
-
}
|
|
1940
|
-
module2.exports = {
|
|
1941
|
-
createSymlink: u(createSymlink),
|
|
1942
|
-
createSymlinkSync
|
|
1943
|
-
};
|
|
1944
|
-
}
|
|
1945
|
-
});
|
|
1946
|
-
|
|
1947
|
-
// ../../node_modules/.pnpm/fs-extra@11.1.1/node_modules/fs-extra/lib/ensure/index.js
|
|
1948
|
-
var require_ensure = __commonJS({
|
|
1949
|
-
"../../node_modules/.pnpm/fs-extra@11.1.1/node_modules/fs-extra/lib/ensure/index.js"(exports2, module2) {
|
|
1950
|
-
"use strict";
|
|
1951
|
-
var { createFile, createFileSync } = require_file();
|
|
1952
|
-
var { createLink, createLinkSync } = require_link();
|
|
1953
|
-
var { createSymlink, createSymlinkSync } = require_symlink();
|
|
1954
|
-
module2.exports = {
|
|
1955
|
-
// file
|
|
1956
|
-
createFile,
|
|
1957
|
-
createFileSync,
|
|
1958
|
-
ensureFile: createFile,
|
|
1959
|
-
ensureFileSync: createFileSync,
|
|
1960
|
-
// link
|
|
1961
|
-
createLink,
|
|
1962
|
-
createLinkSync,
|
|
1963
|
-
ensureLink: createLink,
|
|
1964
|
-
ensureLinkSync: createLinkSync,
|
|
1965
|
-
// symlink
|
|
1966
|
-
createSymlink,
|
|
1967
|
-
createSymlinkSync,
|
|
1968
|
-
ensureSymlink: createSymlink,
|
|
1969
|
-
ensureSymlinkSync: createSymlinkSync
|
|
1970
|
-
};
|
|
1971
|
-
}
|
|
1972
|
-
});
|
|
1973
|
-
|
|
1974
|
-
// ../../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/polyfills.js
|
|
1975
|
-
var require_polyfills2 = __commonJS({
|
|
1976
|
-
"../../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/polyfills.js"(exports2, module2) {
|
|
1977
|
-
"use strict";
|
|
1978
|
-
var constants = require("constants");
|
|
1979
|
-
var origCwd = process.cwd;
|
|
1980
|
-
var cwd2 = null;
|
|
1981
|
-
var platform = process.env.GRACEFUL_FS_PLATFORM || process.platform;
|
|
1982
|
-
process.cwd = function() {
|
|
1983
|
-
if (!cwd2)
|
|
1984
|
-
cwd2 = origCwd.call(process);
|
|
1985
|
-
return cwd2;
|
|
1986
|
-
};
|
|
1987
|
-
try {
|
|
1988
|
-
process.cwd();
|
|
1989
|
-
} catch (er) {
|
|
1990
|
-
}
|
|
1991
|
-
if (typeof process.chdir === "function") {
|
|
1992
|
-
chdir = process.chdir;
|
|
1993
|
-
process.chdir = function(d) {
|
|
1994
|
-
cwd2 = null;
|
|
1995
|
-
chdir.call(process, d);
|
|
1996
|
-
};
|
|
1997
|
-
if (Object.setPrototypeOf) Object.setPrototypeOf(process.chdir, chdir);
|
|
1998
|
-
}
|
|
1999
|
-
var chdir;
|
|
2000
|
-
module2.exports = patch;
|
|
2001
|
-
function patch(fs3) {
|
|
2002
|
-
if (constants.hasOwnProperty("O_SYMLINK") && process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)) {
|
|
2003
|
-
patchLchmod(fs3);
|
|
2004
|
-
}
|
|
2005
|
-
if (!fs3.lutimes) {
|
|
2006
|
-
patchLutimes(fs3);
|
|
2007
|
-
}
|
|
2008
|
-
fs3.chown = chownFix(fs3.chown);
|
|
2009
|
-
fs3.fchown = chownFix(fs3.fchown);
|
|
2010
|
-
fs3.lchown = chownFix(fs3.lchown);
|
|
2011
|
-
fs3.chmod = chmodFix(fs3.chmod);
|
|
2012
|
-
fs3.fchmod = chmodFix(fs3.fchmod);
|
|
2013
|
-
fs3.lchmod = chmodFix(fs3.lchmod);
|
|
2014
|
-
fs3.chownSync = chownFixSync(fs3.chownSync);
|
|
2015
|
-
fs3.fchownSync = chownFixSync(fs3.fchownSync);
|
|
2016
|
-
fs3.lchownSync = chownFixSync(fs3.lchownSync);
|
|
2017
|
-
fs3.chmodSync = chmodFixSync(fs3.chmodSync);
|
|
2018
|
-
fs3.fchmodSync = chmodFixSync(fs3.fchmodSync);
|
|
2019
|
-
fs3.lchmodSync = chmodFixSync(fs3.lchmodSync);
|
|
2020
|
-
fs3.stat = statFix(fs3.stat);
|
|
2021
|
-
fs3.fstat = statFix(fs3.fstat);
|
|
2022
|
-
fs3.lstat = statFix(fs3.lstat);
|
|
2023
|
-
fs3.statSync = statFixSync(fs3.statSync);
|
|
2024
|
-
fs3.fstatSync = statFixSync(fs3.fstatSync);
|
|
2025
|
-
fs3.lstatSync = statFixSync(fs3.lstatSync);
|
|
2026
|
-
if (fs3.chmod && !fs3.lchmod) {
|
|
2027
|
-
fs3.lchmod = function(path5, mode, cb) {
|
|
2028
|
-
if (cb) process.nextTick(cb);
|
|
2029
|
-
};
|
|
2030
|
-
fs3.lchmodSync = function() {
|
|
2031
|
-
};
|
|
2032
|
-
}
|
|
2033
|
-
if (fs3.chown && !fs3.lchown) {
|
|
2034
|
-
fs3.lchown = function(path5, uid, gid, cb) {
|
|
2035
|
-
if (cb) process.nextTick(cb);
|
|
2036
|
-
};
|
|
2037
|
-
fs3.lchownSync = function() {
|
|
2038
|
-
};
|
|
2039
|
-
}
|
|
2040
|
-
if (platform === "win32") {
|
|
2041
|
-
fs3.rename = typeof fs3.rename !== "function" ? fs3.rename : function(fs$rename) {
|
|
2042
|
-
function rename(from, to, cb) {
|
|
2043
|
-
var start = Date.now();
|
|
2044
|
-
var backoff = 0;
|
|
2045
|
-
fs$rename(from, to, function CB(er) {
|
|
2046
|
-
if (er && (er.code === "EACCES" || er.code === "EPERM" || er.code === "EBUSY") && Date.now() - start < 6e4) {
|
|
2047
|
-
setTimeout(function() {
|
|
2048
|
-
fs3.stat(to, function(stater, st) {
|
|
2049
|
-
if (stater && stater.code === "ENOENT")
|
|
2050
|
-
fs$rename(from, to, CB);
|
|
2051
|
-
else
|
|
2052
|
-
cb(er);
|
|
2053
|
-
});
|
|
2054
|
-
}, backoff);
|
|
2055
|
-
if (backoff < 100)
|
|
2056
|
-
backoff += 10;
|
|
2057
|
-
return;
|
|
2058
|
-
}
|
|
2059
|
-
if (cb) cb(er);
|
|
2060
|
-
});
|
|
2061
|
-
}
|
|
2062
|
-
if (Object.setPrototypeOf) Object.setPrototypeOf(rename, fs$rename);
|
|
2063
|
-
return rename;
|
|
2064
|
-
}(fs3.rename);
|
|
2065
|
-
}
|
|
2066
|
-
fs3.read = typeof fs3.read !== "function" ? fs3.read : function(fs$read) {
|
|
2067
|
-
function read(fd, buffer, offset, length, position, callback_) {
|
|
2068
|
-
var callback;
|
|
2069
|
-
if (callback_ && typeof callback_ === "function") {
|
|
2070
|
-
var eagCounter = 0;
|
|
2071
|
-
callback = function(er, _, __) {
|
|
2072
|
-
if (er && er.code === "EAGAIN" && eagCounter < 10) {
|
|
2073
|
-
eagCounter++;
|
|
2074
|
-
return fs$read.call(fs3, fd, buffer, offset, length, position, callback);
|
|
2075
|
-
}
|
|
2076
|
-
callback_.apply(this, arguments);
|
|
2077
|
-
};
|
|
2078
|
-
}
|
|
2079
|
-
return fs$read.call(fs3, fd, buffer, offset, length, position, callback);
|
|
2080
|
-
}
|
|
2081
|
-
if (Object.setPrototypeOf) Object.setPrototypeOf(read, fs$read);
|
|
2082
|
-
return read;
|
|
2083
|
-
}(fs3.read);
|
|
2084
|
-
fs3.readSync = typeof fs3.readSync !== "function" ? fs3.readSync : /* @__PURE__ */ function(fs$readSync) {
|
|
2085
|
-
return function(fd, buffer, offset, length, position) {
|
|
2086
|
-
var eagCounter = 0;
|
|
2087
|
-
while (true) {
|
|
2088
|
-
try {
|
|
2089
|
-
return fs$readSync.call(fs3, fd, buffer, offset, length, position);
|
|
2090
|
-
} catch (er) {
|
|
2091
|
-
if (er.code === "EAGAIN" && eagCounter < 10) {
|
|
2092
|
-
eagCounter++;
|
|
2093
|
-
continue;
|
|
2094
|
-
}
|
|
2095
|
-
throw er;
|
|
2096
|
-
}
|
|
2097
|
-
}
|
|
2098
|
-
};
|
|
2099
|
-
}(fs3.readSync);
|
|
2100
|
-
function patchLchmod(fs4) {
|
|
2101
|
-
fs4.lchmod = function(path5, mode, callback) {
|
|
2102
|
-
fs4.open(
|
|
2103
|
-
path5,
|
|
2104
|
-
constants.O_WRONLY | constants.O_SYMLINK,
|
|
2105
|
-
mode,
|
|
2106
|
-
function(err, fd) {
|
|
2107
|
-
if (err) {
|
|
2108
|
-
if (callback) callback(err);
|
|
2109
|
-
return;
|
|
2110
|
-
}
|
|
2111
|
-
fs4.fchmod(fd, mode, function(err2) {
|
|
2112
|
-
fs4.close(fd, function(err22) {
|
|
2113
|
-
if (callback) callback(err2 || err22);
|
|
2114
|
-
});
|
|
2115
|
-
});
|
|
2116
|
-
}
|
|
2117
|
-
);
|
|
2118
|
-
};
|
|
2119
|
-
fs4.lchmodSync = function(path5, mode) {
|
|
2120
|
-
var fd = fs4.openSync(path5, constants.O_WRONLY | constants.O_SYMLINK, mode);
|
|
2121
|
-
var threw = true;
|
|
2122
|
-
var ret;
|
|
2123
|
-
try {
|
|
2124
|
-
ret = fs4.fchmodSync(fd, mode);
|
|
2125
|
-
threw = false;
|
|
2126
|
-
} finally {
|
|
2127
|
-
if (threw) {
|
|
2128
|
-
try {
|
|
2129
|
-
fs4.closeSync(fd);
|
|
2130
|
-
} catch (er) {
|
|
2131
|
-
}
|
|
2132
|
-
} else {
|
|
2133
|
-
fs4.closeSync(fd);
|
|
2134
|
-
}
|
|
2135
|
-
}
|
|
2136
|
-
return ret;
|
|
2137
|
-
};
|
|
2138
|
-
}
|
|
2139
|
-
function patchLutimes(fs4) {
|
|
2140
|
-
if (constants.hasOwnProperty("O_SYMLINK") && fs4.futimes) {
|
|
2141
|
-
fs4.lutimes = function(path5, at, mt, cb) {
|
|
2142
|
-
fs4.open(path5, constants.O_SYMLINK, function(er, fd) {
|
|
2143
|
-
if (er) {
|
|
2144
|
-
if (cb) cb(er);
|
|
2145
|
-
return;
|
|
2146
|
-
}
|
|
2147
|
-
fs4.futimes(fd, at, mt, function(er2) {
|
|
2148
|
-
fs4.close(fd, function(er22) {
|
|
2149
|
-
if (cb) cb(er2 || er22);
|
|
2150
|
-
});
|
|
2151
|
-
});
|
|
2152
|
-
});
|
|
2153
|
-
};
|
|
2154
|
-
fs4.lutimesSync = function(path5, at, mt) {
|
|
2155
|
-
var fd = fs4.openSync(path5, constants.O_SYMLINK);
|
|
2156
|
-
var ret;
|
|
2157
|
-
var threw = true;
|
|
2158
|
-
try {
|
|
2159
|
-
ret = fs4.futimesSync(fd, at, mt);
|
|
2160
|
-
threw = false;
|
|
2161
|
-
} finally {
|
|
2162
|
-
if (threw) {
|
|
2163
|
-
try {
|
|
2164
|
-
fs4.closeSync(fd);
|
|
2165
|
-
} catch (er) {
|
|
2166
|
-
}
|
|
2167
|
-
} else {
|
|
2168
|
-
fs4.closeSync(fd);
|
|
2169
|
-
}
|
|
2170
|
-
}
|
|
2171
|
-
return ret;
|
|
2172
|
-
};
|
|
2173
|
-
} else if (fs4.futimes) {
|
|
2174
|
-
fs4.lutimes = function(_a, _b, _c, cb) {
|
|
2175
|
-
if (cb) process.nextTick(cb);
|
|
2176
|
-
};
|
|
2177
|
-
fs4.lutimesSync = function() {
|
|
2178
|
-
};
|
|
2179
|
-
}
|
|
2180
|
-
}
|
|
2181
|
-
function chmodFix(orig) {
|
|
2182
|
-
if (!orig) return orig;
|
|
2183
|
-
return function(target, mode, cb) {
|
|
2184
|
-
return orig.call(fs3, target, mode, function(er) {
|
|
2185
|
-
if (chownErOk(er)) er = null;
|
|
2186
|
-
if (cb) cb.apply(this, arguments);
|
|
2187
|
-
});
|
|
2188
|
-
};
|
|
2189
|
-
}
|
|
2190
|
-
function chmodFixSync(orig) {
|
|
2191
|
-
if (!orig) return orig;
|
|
2192
|
-
return function(target, mode) {
|
|
2193
|
-
try {
|
|
2194
|
-
return orig.call(fs3, target, mode);
|
|
2195
|
-
} catch (er) {
|
|
2196
|
-
if (!chownErOk(er)) throw er;
|
|
2197
|
-
}
|
|
2198
|
-
};
|
|
2199
|
-
}
|
|
2200
|
-
function chownFix(orig) {
|
|
2201
|
-
if (!orig) return orig;
|
|
2202
|
-
return function(target, uid, gid, cb) {
|
|
2203
|
-
return orig.call(fs3, target, uid, gid, function(er) {
|
|
2204
|
-
if (chownErOk(er)) er = null;
|
|
2205
|
-
if (cb) cb.apply(this, arguments);
|
|
2206
|
-
});
|
|
2207
|
-
};
|
|
2208
|
-
}
|
|
2209
|
-
function chownFixSync(orig) {
|
|
2210
|
-
if (!orig) return orig;
|
|
2211
|
-
return function(target, uid, gid) {
|
|
2212
|
-
try {
|
|
2213
|
-
return orig.call(fs3, target, uid, gid);
|
|
2214
|
-
} catch (er) {
|
|
2215
|
-
if (!chownErOk(er)) throw er;
|
|
2216
|
-
}
|
|
2217
|
-
};
|
|
2218
|
-
}
|
|
2219
|
-
function statFix(orig) {
|
|
2220
|
-
if (!orig) return orig;
|
|
2221
|
-
return function(target, options, cb) {
|
|
2222
|
-
if (typeof options === "function") {
|
|
2223
|
-
cb = options;
|
|
2224
|
-
options = null;
|
|
2225
|
-
}
|
|
2226
|
-
function callback(er, stats) {
|
|
2227
|
-
if (stats) {
|
|
2228
|
-
if (stats.uid < 0) stats.uid += 4294967296;
|
|
2229
|
-
if (stats.gid < 0) stats.gid += 4294967296;
|
|
2230
|
-
}
|
|
2231
|
-
if (cb) cb.apply(this, arguments);
|
|
2232
|
-
}
|
|
2233
|
-
return options ? orig.call(fs3, target, options, callback) : orig.call(fs3, target, callback);
|
|
2234
|
-
};
|
|
2235
|
-
}
|
|
2236
|
-
function statFixSync(orig) {
|
|
2237
|
-
if (!orig) return orig;
|
|
2238
|
-
return function(target, options) {
|
|
2239
|
-
var stats = options ? orig.call(fs3, target, options) : orig.call(fs3, target);
|
|
2240
|
-
if (stats) {
|
|
2241
|
-
if (stats.uid < 0) stats.uid += 4294967296;
|
|
2242
|
-
if (stats.gid < 0) stats.gid += 4294967296;
|
|
2243
|
-
}
|
|
2244
|
-
return stats;
|
|
2245
|
-
};
|
|
2246
|
-
}
|
|
2247
|
-
function chownErOk(er) {
|
|
2248
|
-
if (!er)
|
|
2249
|
-
return true;
|
|
2250
|
-
if (er.code === "ENOSYS")
|
|
2251
|
-
return true;
|
|
2252
|
-
var nonroot = !process.getuid || process.getuid() !== 0;
|
|
2253
|
-
if (nonroot) {
|
|
2254
|
-
if (er.code === "EINVAL" || er.code === "EPERM")
|
|
2255
|
-
return true;
|
|
2256
|
-
}
|
|
2257
|
-
return false;
|
|
2258
|
-
}
|
|
2259
|
-
}
|
|
2260
|
-
}
|
|
2261
|
-
});
|
|
2262
|
-
|
|
2263
|
-
// ../../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/legacy-streams.js
|
|
2264
|
-
var require_legacy_streams2 = __commonJS({
|
|
2265
|
-
"../../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/legacy-streams.js"(exports2, module2) {
|
|
2266
|
-
"use strict";
|
|
2267
|
-
var Stream = require("stream").Stream;
|
|
2268
|
-
module2.exports = legacy;
|
|
2269
|
-
function legacy(fs3) {
|
|
2270
|
-
return {
|
|
2271
|
-
ReadStream,
|
|
2272
|
-
WriteStream
|
|
2273
|
-
};
|
|
2274
|
-
function ReadStream(path5, options) {
|
|
2275
|
-
if (!(this instanceof ReadStream)) return new ReadStream(path5, options);
|
|
2276
|
-
Stream.call(this);
|
|
2277
|
-
var self = this;
|
|
2278
|
-
this.path = path5;
|
|
2279
|
-
this.fd = null;
|
|
2280
|
-
this.readable = true;
|
|
2281
|
-
this.paused = false;
|
|
2282
|
-
this.flags = "r";
|
|
2283
|
-
this.mode = 438;
|
|
2284
|
-
this.bufferSize = 64 * 1024;
|
|
2285
|
-
options = options || {};
|
|
2286
|
-
var keys = Object.keys(options);
|
|
2287
|
-
for (var index = 0, length = keys.length; index < length; index++) {
|
|
2288
|
-
var key = keys[index];
|
|
2289
|
-
this[key] = options[key];
|
|
2290
|
-
}
|
|
2291
|
-
if (this.encoding) this.setEncoding(this.encoding);
|
|
2292
|
-
if (this.start !== void 0) {
|
|
2293
|
-
if ("number" !== typeof this.start) {
|
|
2294
|
-
throw TypeError("start must be a Number");
|
|
2295
|
-
}
|
|
2296
|
-
if (this.end === void 0) {
|
|
2297
|
-
this.end = Infinity;
|
|
2298
|
-
} else if ("number" !== typeof this.end) {
|
|
2299
|
-
throw TypeError("end must be a Number");
|
|
2300
|
-
}
|
|
2301
|
-
if (this.start > this.end) {
|
|
2302
|
-
throw new Error("start must be <= end");
|
|
2303
|
-
}
|
|
2304
|
-
this.pos = this.start;
|
|
2305
|
-
}
|
|
2306
|
-
if (this.fd !== null) {
|
|
2307
|
-
process.nextTick(function() {
|
|
2308
|
-
self._read();
|
|
2309
|
-
});
|
|
2310
|
-
return;
|
|
2311
|
-
}
|
|
2312
|
-
fs3.open(this.path, this.flags, this.mode, function(err, fd) {
|
|
2313
|
-
if (err) {
|
|
2314
|
-
self.emit("error", err);
|
|
2315
|
-
self.readable = false;
|
|
2316
|
-
return;
|
|
2317
|
-
}
|
|
2318
|
-
self.fd = fd;
|
|
2319
|
-
self.emit("open", fd);
|
|
2320
|
-
self._read();
|
|
2321
|
-
});
|
|
2322
|
-
}
|
|
2323
|
-
function WriteStream(path5, options) {
|
|
2324
|
-
if (!(this instanceof WriteStream)) return new WriteStream(path5, options);
|
|
2325
|
-
Stream.call(this);
|
|
2326
|
-
this.path = path5;
|
|
2327
|
-
this.fd = null;
|
|
2328
|
-
this.writable = true;
|
|
2329
|
-
this.flags = "w";
|
|
2330
|
-
this.encoding = "binary";
|
|
2331
|
-
this.mode = 438;
|
|
2332
|
-
this.bytesWritten = 0;
|
|
2333
|
-
options = options || {};
|
|
2334
|
-
var keys = Object.keys(options);
|
|
2335
|
-
for (var index = 0, length = keys.length; index < length; index++) {
|
|
2336
|
-
var key = keys[index];
|
|
2337
|
-
this[key] = options[key];
|
|
2338
|
-
}
|
|
2339
|
-
if (this.start !== void 0) {
|
|
2340
|
-
if ("number" !== typeof this.start) {
|
|
2341
|
-
throw TypeError("start must be a Number");
|
|
2342
|
-
}
|
|
2343
|
-
if (this.start < 0) {
|
|
2344
|
-
throw new Error("start must be >= zero");
|
|
2345
|
-
}
|
|
2346
|
-
this.pos = this.start;
|
|
2347
|
-
}
|
|
2348
|
-
this.busy = false;
|
|
2349
|
-
this._queue = [];
|
|
2350
|
-
if (this.fd === null) {
|
|
2351
|
-
this._open = fs3.open;
|
|
2352
|
-
this._queue.push([this._open, this.path, this.flags, this.mode, void 0]);
|
|
2353
|
-
this.flush();
|
|
2354
|
-
}
|
|
2355
|
-
}
|
|
2356
|
-
}
|
|
2357
|
-
}
|
|
2358
|
-
});
|
|
2359
|
-
|
|
2360
|
-
// ../../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/clone.js
|
|
2361
|
-
var require_clone2 = __commonJS({
|
|
2362
|
-
"../../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/clone.js"(exports2, module2) {
|
|
2363
|
-
"use strict";
|
|
2364
|
-
module2.exports = clone;
|
|
2365
|
-
var getPrototypeOf = Object.getPrototypeOf || function(obj) {
|
|
2366
|
-
return obj.__proto__;
|
|
2367
|
-
};
|
|
2368
|
-
function clone(obj) {
|
|
2369
|
-
if (obj === null || typeof obj !== "object")
|
|
2370
|
-
return obj;
|
|
2371
|
-
if (obj instanceof Object)
|
|
2372
|
-
var copy = { __proto__: getPrototypeOf(obj) };
|
|
2373
|
-
else
|
|
2374
|
-
var copy = /* @__PURE__ */ Object.create(null);
|
|
2375
|
-
Object.getOwnPropertyNames(obj).forEach(function(key) {
|
|
2376
|
-
Object.defineProperty(copy, key, Object.getOwnPropertyDescriptor(obj, key));
|
|
2377
|
-
});
|
|
2378
|
-
return copy;
|
|
2379
|
-
}
|
|
2380
|
-
}
|
|
2381
|
-
});
|
|
2382
|
-
|
|
2383
|
-
// ../../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/graceful-fs.js
|
|
2384
|
-
var require_graceful_fs2 = __commonJS({
|
|
2385
|
-
"../../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/graceful-fs.js"(exports2, module2) {
|
|
2386
|
-
"use strict";
|
|
2387
|
-
var fs3 = require("fs");
|
|
2388
|
-
var polyfills = require_polyfills2();
|
|
2389
|
-
var legacy = require_legacy_streams2();
|
|
2390
|
-
var clone = require_clone2();
|
|
2391
|
-
var util2 = require("util");
|
|
2392
|
-
var gracefulQueue;
|
|
2393
|
-
var previousSymbol;
|
|
2394
|
-
if (typeof Symbol === "function" && typeof Symbol.for === "function") {
|
|
2395
|
-
gracefulQueue = Symbol.for("graceful-fs.queue");
|
|
2396
|
-
previousSymbol = Symbol.for("graceful-fs.previous");
|
|
2397
|
-
} else {
|
|
2398
|
-
gracefulQueue = "___graceful-fs.queue";
|
|
2399
|
-
previousSymbol = "___graceful-fs.previous";
|
|
2400
|
-
}
|
|
2401
|
-
function noop() {
|
|
2402
|
-
}
|
|
2403
|
-
function publishQueue(context, queue2) {
|
|
2404
|
-
Object.defineProperty(context, gracefulQueue, {
|
|
2405
|
-
get: function() {
|
|
2406
|
-
return queue2;
|
|
2407
|
-
}
|
|
2408
|
-
});
|
|
2409
|
-
}
|
|
2410
|
-
var debug4 = noop;
|
|
2411
|
-
if (util2.debuglog)
|
|
2412
|
-
debug4 = util2.debuglog("gfs4");
|
|
2413
|
-
else if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || ""))
|
|
2414
|
-
debug4 = function() {
|
|
2415
|
-
var m = util2.format.apply(util2, arguments);
|
|
2416
|
-
m = "GFS4: " + m.split(/\n/).join("\nGFS4: ");
|
|
2417
|
-
console.error(m);
|
|
2418
|
-
};
|
|
2419
|
-
if (!fs3[gracefulQueue]) {
|
|
2420
|
-
queue = global[gracefulQueue] || [];
|
|
2421
|
-
publishQueue(fs3, queue);
|
|
2422
|
-
fs3.close = function(fs$close) {
|
|
2423
|
-
function close(fd, cb) {
|
|
2424
|
-
return fs$close.call(fs3, fd, function(err) {
|
|
2425
|
-
if (!err) {
|
|
2426
|
-
resetQueue();
|
|
2427
|
-
}
|
|
2428
|
-
if (typeof cb === "function")
|
|
2429
|
-
cb.apply(this, arguments);
|
|
2430
|
-
});
|
|
2431
|
-
}
|
|
2432
|
-
Object.defineProperty(close, previousSymbol, {
|
|
2433
|
-
value: fs$close
|
|
2434
|
-
});
|
|
2435
|
-
return close;
|
|
2436
|
-
}(fs3.close);
|
|
2437
|
-
fs3.closeSync = function(fs$closeSync) {
|
|
2438
|
-
function closeSync(fd) {
|
|
2439
|
-
fs$closeSync.apply(fs3, arguments);
|
|
2440
|
-
resetQueue();
|
|
2441
|
-
}
|
|
2442
|
-
Object.defineProperty(closeSync, previousSymbol, {
|
|
2443
|
-
value: fs$closeSync
|
|
2444
|
-
});
|
|
2445
|
-
return closeSync;
|
|
2446
|
-
}(fs3.closeSync);
|
|
2447
|
-
if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || "")) {
|
|
2448
|
-
process.on("exit", function() {
|
|
2449
|
-
debug4(fs3[gracefulQueue]);
|
|
2450
|
-
require("assert").equal(fs3[gracefulQueue].length, 0);
|
|
2451
|
-
});
|
|
2452
|
-
}
|
|
2453
|
-
}
|
|
2454
|
-
var queue;
|
|
2455
|
-
if (!global[gracefulQueue]) {
|
|
2456
|
-
publishQueue(global, fs3[gracefulQueue]);
|
|
2457
|
-
}
|
|
2458
|
-
module2.exports = patch(clone(fs3));
|
|
2459
|
-
if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs3.__patched) {
|
|
2460
|
-
module2.exports = patch(fs3);
|
|
2461
|
-
fs3.__patched = true;
|
|
2462
|
-
}
|
|
2463
|
-
function patch(fs4) {
|
|
2464
|
-
polyfills(fs4);
|
|
2465
|
-
fs4.gracefulify = patch;
|
|
2466
|
-
fs4.createReadStream = createReadStream;
|
|
2467
|
-
fs4.createWriteStream = createWriteStream;
|
|
2468
|
-
var fs$readFile = fs4.readFile;
|
|
2469
|
-
fs4.readFile = readFile;
|
|
2470
|
-
function readFile(path5, options, cb) {
|
|
2471
|
-
if (typeof options === "function")
|
|
2472
|
-
cb = options, options = null;
|
|
2473
|
-
return go$readFile(path5, options, cb);
|
|
2474
|
-
function go$readFile(path6, options2, cb2, startTime) {
|
|
2475
|
-
return fs$readFile(path6, options2, function(err) {
|
|
2476
|
-
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
2477
|
-
enqueue([go$readFile, [path6, options2, cb2], err, startTime || Date.now(), Date.now()]);
|
|
2478
|
-
else {
|
|
2479
|
-
if (typeof cb2 === "function")
|
|
2480
|
-
cb2.apply(this, arguments);
|
|
2481
|
-
}
|
|
2482
|
-
});
|
|
2483
|
-
}
|
|
2484
|
-
}
|
|
2485
|
-
var fs$writeFile = fs4.writeFile;
|
|
2486
|
-
fs4.writeFile = writeFile;
|
|
2487
|
-
function writeFile(path5, data, options, cb) {
|
|
2488
|
-
if (typeof options === "function")
|
|
2489
|
-
cb = options, options = null;
|
|
2490
|
-
return go$writeFile(path5, data, options, cb);
|
|
2491
|
-
function go$writeFile(path6, data2, options2, cb2, startTime) {
|
|
2492
|
-
return fs$writeFile(path6, data2, options2, function(err) {
|
|
2493
|
-
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
2494
|
-
enqueue([go$writeFile, [path6, data2, options2, cb2], err, startTime || Date.now(), Date.now()]);
|
|
2495
|
-
else {
|
|
2496
|
-
if (typeof cb2 === "function")
|
|
2497
|
-
cb2.apply(this, arguments);
|
|
2498
|
-
}
|
|
2499
|
-
});
|
|
2500
|
-
}
|
|
2501
|
-
}
|
|
2502
|
-
var fs$appendFile = fs4.appendFile;
|
|
2503
|
-
if (fs$appendFile)
|
|
2504
|
-
fs4.appendFile = appendFile;
|
|
2505
|
-
function appendFile(path5, data, options, cb) {
|
|
2506
|
-
if (typeof options === "function")
|
|
2507
|
-
cb = options, options = null;
|
|
2508
|
-
return go$appendFile(path5, data, options, cb);
|
|
2509
|
-
function go$appendFile(path6, data2, options2, cb2, startTime) {
|
|
2510
|
-
return fs$appendFile(path6, data2, options2, function(err) {
|
|
2511
|
-
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
2512
|
-
enqueue([go$appendFile, [path6, data2, options2, cb2], err, startTime || Date.now(), Date.now()]);
|
|
2513
|
-
else {
|
|
2514
|
-
if (typeof cb2 === "function")
|
|
2515
|
-
cb2.apply(this, arguments);
|
|
2516
|
-
}
|
|
2517
|
-
});
|
|
2518
|
-
}
|
|
2519
|
-
}
|
|
2520
|
-
var fs$copyFile = fs4.copyFile;
|
|
2521
|
-
if (fs$copyFile)
|
|
2522
|
-
fs4.copyFile = copyFile;
|
|
2523
|
-
function copyFile(src, dest, flags, cb) {
|
|
2524
|
-
if (typeof flags === "function") {
|
|
2525
|
-
cb = flags;
|
|
2526
|
-
flags = 0;
|
|
2527
|
-
}
|
|
2528
|
-
return go$copyFile(src, dest, flags, cb);
|
|
2529
|
-
function go$copyFile(src2, dest2, flags2, cb2, startTime) {
|
|
2530
|
-
return fs$copyFile(src2, dest2, flags2, function(err) {
|
|
2531
|
-
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
2532
|
-
enqueue([go$copyFile, [src2, dest2, flags2, cb2], err, startTime || Date.now(), Date.now()]);
|
|
2533
|
-
else {
|
|
2534
|
-
if (typeof cb2 === "function")
|
|
2535
|
-
cb2.apply(this, arguments);
|
|
2536
|
-
}
|
|
2537
|
-
});
|
|
2538
|
-
}
|
|
2539
|
-
}
|
|
2540
|
-
var fs$readdir = fs4.readdir;
|
|
2541
|
-
fs4.readdir = readdir;
|
|
2542
|
-
var noReaddirOptionVersions = /^v[0-5]\./;
|
|
2543
|
-
function readdir(path5, options, cb) {
|
|
2544
|
-
if (typeof options === "function")
|
|
2545
|
-
cb = options, options = null;
|
|
2546
|
-
var go$readdir = noReaddirOptionVersions.test(process.version) ? function go$readdir2(path6, options2, cb2, startTime) {
|
|
2547
|
-
return fs$readdir(path6, fs$readdirCallback(
|
|
2548
|
-
path6,
|
|
2549
|
-
options2,
|
|
2550
|
-
cb2,
|
|
2551
|
-
startTime
|
|
2552
|
-
));
|
|
2553
|
-
} : function go$readdir2(path6, options2, cb2, startTime) {
|
|
2554
|
-
return fs$readdir(path6, options2, fs$readdirCallback(
|
|
2555
|
-
path6,
|
|
2556
|
-
options2,
|
|
2557
|
-
cb2,
|
|
2558
|
-
startTime
|
|
2559
|
-
));
|
|
2560
|
-
};
|
|
2561
|
-
return go$readdir(path5, options, cb);
|
|
2562
|
-
function fs$readdirCallback(path6, options2, cb2, startTime) {
|
|
2563
|
-
return function(err, files) {
|
|
2564
|
-
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
2565
|
-
enqueue([
|
|
2566
|
-
go$readdir,
|
|
2567
|
-
[path6, options2, cb2],
|
|
2568
|
-
err,
|
|
2569
|
-
startTime || Date.now(),
|
|
2570
|
-
Date.now()
|
|
2571
|
-
]);
|
|
2572
|
-
else {
|
|
2573
|
-
if (files && files.sort)
|
|
2574
|
-
files.sort();
|
|
2575
|
-
if (typeof cb2 === "function")
|
|
2576
|
-
cb2.call(this, err, files);
|
|
2577
|
-
}
|
|
2578
|
-
};
|
|
2579
|
-
}
|
|
2580
|
-
}
|
|
2581
|
-
if (process.version.substr(0, 4) === "v0.8") {
|
|
2582
|
-
var legStreams = legacy(fs4);
|
|
2583
|
-
ReadStream = legStreams.ReadStream;
|
|
2584
|
-
WriteStream = legStreams.WriteStream;
|
|
2585
|
-
}
|
|
2586
|
-
var fs$ReadStream = fs4.ReadStream;
|
|
2587
|
-
if (fs$ReadStream) {
|
|
2588
|
-
ReadStream.prototype = Object.create(fs$ReadStream.prototype);
|
|
2589
|
-
ReadStream.prototype.open = ReadStream$open;
|
|
2590
|
-
}
|
|
2591
|
-
var fs$WriteStream = fs4.WriteStream;
|
|
2592
|
-
if (fs$WriteStream) {
|
|
2593
|
-
WriteStream.prototype = Object.create(fs$WriteStream.prototype);
|
|
2594
|
-
WriteStream.prototype.open = WriteStream$open;
|
|
2595
|
-
}
|
|
2596
|
-
Object.defineProperty(fs4, "ReadStream", {
|
|
2597
|
-
get: function() {
|
|
2598
|
-
return ReadStream;
|
|
2599
|
-
},
|
|
2600
|
-
set: function(val) {
|
|
2601
|
-
ReadStream = val;
|
|
2602
|
-
},
|
|
2603
|
-
enumerable: true,
|
|
2604
|
-
configurable: true
|
|
2605
|
-
});
|
|
2606
|
-
Object.defineProperty(fs4, "WriteStream", {
|
|
2607
|
-
get: function() {
|
|
2608
|
-
return WriteStream;
|
|
2609
|
-
},
|
|
2610
|
-
set: function(val) {
|
|
2611
|
-
WriteStream = val;
|
|
2612
|
-
},
|
|
2613
|
-
enumerable: true,
|
|
2614
|
-
configurable: true
|
|
2615
|
-
});
|
|
2616
|
-
var FileReadStream = ReadStream;
|
|
2617
|
-
Object.defineProperty(fs4, "FileReadStream", {
|
|
2618
|
-
get: function() {
|
|
2619
|
-
return FileReadStream;
|
|
2620
|
-
},
|
|
2621
|
-
set: function(val) {
|
|
2622
|
-
FileReadStream = val;
|
|
2623
|
-
},
|
|
2624
|
-
enumerable: true,
|
|
2625
|
-
configurable: true
|
|
2626
|
-
});
|
|
2627
|
-
var FileWriteStream = WriteStream;
|
|
2628
|
-
Object.defineProperty(fs4, "FileWriteStream", {
|
|
2629
|
-
get: function() {
|
|
2630
|
-
return FileWriteStream;
|
|
2631
|
-
},
|
|
2632
|
-
set: function(val) {
|
|
2633
|
-
FileWriteStream = val;
|
|
2634
|
-
},
|
|
2635
|
-
enumerable: true,
|
|
2636
|
-
configurable: true
|
|
2637
|
-
});
|
|
2638
|
-
function ReadStream(path5, options) {
|
|
2639
|
-
if (this instanceof ReadStream)
|
|
2640
|
-
return fs$ReadStream.apply(this, arguments), this;
|
|
2641
|
-
else
|
|
2642
|
-
return ReadStream.apply(Object.create(ReadStream.prototype), arguments);
|
|
2643
|
-
}
|
|
2644
|
-
function ReadStream$open() {
|
|
2645
|
-
var that = this;
|
|
2646
|
-
open(that.path, that.flags, that.mode, function(err, fd) {
|
|
2647
|
-
if (err) {
|
|
2648
|
-
if (that.autoClose)
|
|
2649
|
-
that.destroy();
|
|
2650
|
-
that.emit("error", err);
|
|
2651
|
-
} else {
|
|
2652
|
-
that.fd = fd;
|
|
2653
|
-
that.emit("open", fd);
|
|
2654
|
-
that.read();
|
|
2655
|
-
}
|
|
2656
|
-
});
|
|
2657
|
-
}
|
|
2658
|
-
function WriteStream(path5, options) {
|
|
2659
|
-
if (this instanceof WriteStream)
|
|
2660
|
-
return fs$WriteStream.apply(this, arguments), this;
|
|
2661
|
-
else
|
|
2662
|
-
return WriteStream.apply(Object.create(WriteStream.prototype), arguments);
|
|
2663
|
-
}
|
|
2664
|
-
function WriteStream$open() {
|
|
2665
|
-
var that = this;
|
|
2666
|
-
open(that.path, that.flags, that.mode, function(err, fd) {
|
|
2667
|
-
if (err) {
|
|
2668
|
-
that.destroy();
|
|
2669
|
-
that.emit("error", err);
|
|
2670
|
-
} else {
|
|
2671
|
-
that.fd = fd;
|
|
2672
|
-
that.emit("open", fd);
|
|
2673
|
-
}
|
|
2674
|
-
});
|
|
1724
|
+
const dstdir = path5.dirname(dstpath);
|
|
1725
|
+
const relativeToDst = path5.join(dstdir, srcpath);
|
|
1726
|
+
const exists = await pathExists2(relativeToDst);
|
|
1727
|
+
if (exists) {
|
|
1728
|
+
return {
|
|
1729
|
+
toCwd: relativeToDst,
|
|
1730
|
+
toDst: srcpath
|
|
1731
|
+
};
|
|
2675
1732
|
}
|
|
2676
|
-
|
|
2677
|
-
|
|
1733
|
+
try {
|
|
1734
|
+
await fs3.lstat(srcpath);
|
|
1735
|
+
} catch (err) {
|
|
1736
|
+
err.message = err.message.replace("lstat", "ensureSymlink");
|
|
1737
|
+
throw err;
|
|
2678
1738
|
}
|
|
2679
|
-
|
|
2680
|
-
|
|
1739
|
+
return {
|
|
1740
|
+
toCwd: srcpath,
|
|
1741
|
+
toDst: path5.relative(dstdir, srcpath)
|
|
1742
|
+
};
|
|
1743
|
+
}
|
|
1744
|
+
function symlinkPathsSync(srcpath, dstpath) {
|
|
1745
|
+
if (path5.isAbsolute(srcpath)) {
|
|
1746
|
+
const exists2 = fs3.existsSync(srcpath);
|
|
1747
|
+
if (!exists2) throw new Error("absolute srcpath does not exist");
|
|
1748
|
+
return {
|
|
1749
|
+
toCwd: srcpath,
|
|
1750
|
+
toDst: srcpath
|
|
1751
|
+
};
|
|
2681
1752
|
}
|
|
2682
|
-
|
|
2683
|
-
|
|
2684
|
-
|
|
2685
|
-
|
|
2686
|
-
|
|
2687
|
-
|
|
2688
|
-
|
|
2689
|
-
|
|
2690
|
-
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
2691
|
-
enqueue([go$open, [path6, flags2, mode2, cb2], err, startTime || Date.now(), Date.now()]);
|
|
2692
|
-
else {
|
|
2693
|
-
if (typeof cb2 === "function")
|
|
2694
|
-
cb2.apply(this, arguments);
|
|
2695
|
-
}
|
|
2696
|
-
});
|
|
2697
|
-
}
|
|
1753
|
+
const dstdir = path5.dirname(dstpath);
|
|
1754
|
+
const relativeToDst = path5.join(dstdir, srcpath);
|
|
1755
|
+
const exists = fs3.existsSync(relativeToDst);
|
|
1756
|
+
if (exists) {
|
|
1757
|
+
return {
|
|
1758
|
+
toCwd: relativeToDst,
|
|
1759
|
+
toDst: srcpath
|
|
1760
|
+
};
|
|
2698
1761
|
}
|
|
2699
|
-
|
|
1762
|
+
const srcExists = fs3.existsSync(srcpath);
|
|
1763
|
+
if (!srcExists) throw new Error("relative srcpath does not exist");
|
|
1764
|
+
return {
|
|
1765
|
+
toCwd: srcpath,
|
|
1766
|
+
toDst: path5.relative(dstdir, srcpath)
|
|
1767
|
+
};
|
|
2700
1768
|
}
|
|
2701
|
-
|
|
2702
|
-
|
|
2703
|
-
|
|
2704
|
-
|
|
1769
|
+
module2.exports = {
|
|
1770
|
+
symlinkPaths: u(symlinkPaths),
|
|
1771
|
+
symlinkPathsSync
|
|
1772
|
+
};
|
|
1773
|
+
}
|
|
1774
|
+
});
|
|
1775
|
+
|
|
1776
|
+
// ../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/ensure/symlink-type.js
|
|
1777
|
+
var require_symlink_type = __commonJS({
|
|
1778
|
+
"../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/ensure/symlink-type.js"(exports2, module2) {
|
|
1779
|
+
"use strict";
|
|
1780
|
+
var fs3 = require_fs();
|
|
1781
|
+
var u = require_universalify().fromPromise;
|
|
1782
|
+
async function symlinkType(srcpath, type) {
|
|
1783
|
+
if (type) return type;
|
|
1784
|
+
let stats;
|
|
1785
|
+
try {
|
|
1786
|
+
stats = await fs3.lstat(srcpath);
|
|
1787
|
+
} catch {
|
|
1788
|
+
return "file";
|
|
1789
|
+
}
|
|
1790
|
+
return stats && stats.isDirectory() ? "dir" : "file";
|
|
2705
1791
|
}
|
|
2706
|
-
|
|
2707
|
-
|
|
2708
|
-
|
|
2709
|
-
|
|
2710
|
-
|
|
2711
|
-
|
|
2712
|
-
|
|
2713
|
-
}
|
|
1792
|
+
function symlinkTypeSync(srcpath, type) {
|
|
1793
|
+
if (type) return type;
|
|
1794
|
+
let stats;
|
|
1795
|
+
try {
|
|
1796
|
+
stats = fs3.lstatSync(srcpath);
|
|
1797
|
+
} catch {
|
|
1798
|
+
return "file";
|
|
2714
1799
|
}
|
|
2715
|
-
|
|
1800
|
+
return stats && stats.isDirectory() ? "dir" : "file";
|
|
2716
1801
|
}
|
|
2717
|
-
|
|
2718
|
-
|
|
2719
|
-
|
|
2720
|
-
|
|
2721
|
-
|
|
2722
|
-
|
|
2723
|
-
|
|
2724
|
-
|
|
2725
|
-
|
|
2726
|
-
|
|
2727
|
-
|
|
2728
|
-
|
|
2729
|
-
|
|
2730
|
-
|
|
2731
|
-
|
|
2732
|
-
|
|
2733
|
-
|
|
2734
|
-
|
|
2735
|
-
|
|
2736
|
-
|
|
2737
|
-
|
|
2738
|
-
|
|
2739
|
-
|
|
2740
|
-
|
|
2741
|
-
debug4("RETRY", fn.name, args);
|
|
2742
|
-
fn.apply(null, args.concat([startTime]));
|
|
2743
|
-
} else {
|
|
2744
|
-
fs3[gracefulQueue].push(elem);
|
|
2745
|
-
}
|
|
1802
|
+
module2.exports = {
|
|
1803
|
+
symlinkType: u(symlinkType),
|
|
1804
|
+
symlinkTypeSync
|
|
1805
|
+
};
|
|
1806
|
+
}
|
|
1807
|
+
});
|
|
1808
|
+
|
|
1809
|
+
// ../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/ensure/symlink.js
|
|
1810
|
+
var require_symlink = __commonJS({
|
|
1811
|
+
"../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/ensure/symlink.js"(exports2, module2) {
|
|
1812
|
+
"use strict";
|
|
1813
|
+
var u = require_universalify().fromPromise;
|
|
1814
|
+
var path5 = require("path");
|
|
1815
|
+
var fs3 = require_fs();
|
|
1816
|
+
var { mkdirs, mkdirsSync } = require_mkdirs();
|
|
1817
|
+
var { symlinkPaths, symlinkPathsSync } = require_symlink_paths();
|
|
1818
|
+
var { symlinkType, symlinkTypeSync } = require_symlink_type();
|
|
1819
|
+
var { pathExists: pathExists2 } = require_path_exists();
|
|
1820
|
+
var { areIdentical } = require_stat();
|
|
1821
|
+
async function createSymlink(srcpath, dstpath, type) {
|
|
1822
|
+
let stats;
|
|
1823
|
+
try {
|
|
1824
|
+
stats = await fs3.lstat(dstpath);
|
|
1825
|
+
} catch {
|
|
2746
1826
|
}
|
|
2747
|
-
if (
|
|
2748
|
-
|
|
1827
|
+
if (stats && stats.isSymbolicLink()) {
|
|
1828
|
+
const [srcStat, dstStat] = await Promise.all([
|
|
1829
|
+
fs3.stat(srcpath),
|
|
1830
|
+
fs3.stat(dstpath)
|
|
1831
|
+
]);
|
|
1832
|
+
if (areIdentical(srcStat, dstStat)) return;
|
|
1833
|
+
}
|
|
1834
|
+
const relative = await symlinkPaths(srcpath, dstpath);
|
|
1835
|
+
srcpath = relative.toDst;
|
|
1836
|
+
const toType = await symlinkType(relative.toCwd, type);
|
|
1837
|
+
const dir = path5.dirname(dstpath);
|
|
1838
|
+
if (!await pathExists2(dir)) {
|
|
1839
|
+
await mkdirs(dir);
|
|
1840
|
+
}
|
|
1841
|
+
return fs3.symlink(srcpath, dstpath, toType);
|
|
1842
|
+
}
|
|
1843
|
+
function createSymlinkSync(srcpath, dstpath, type) {
|
|
1844
|
+
let stats;
|
|
1845
|
+
try {
|
|
1846
|
+
stats = fs3.lstatSync(dstpath);
|
|
1847
|
+
} catch {
|
|
1848
|
+
}
|
|
1849
|
+
if (stats && stats.isSymbolicLink()) {
|
|
1850
|
+
const srcStat = fs3.statSync(srcpath);
|
|
1851
|
+
const dstStat = fs3.statSync(dstpath);
|
|
1852
|
+
if (areIdentical(srcStat, dstStat)) return;
|
|
2749
1853
|
}
|
|
1854
|
+
const relative = symlinkPathsSync(srcpath, dstpath);
|
|
1855
|
+
srcpath = relative.toDst;
|
|
1856
|
+
type = symlinkTypeSync(relative.toCwd, type);
|
|
1857
|
+
const dir = path5.dirname(dstpath);
|
|
1858
|
+
const exists = fs3.existsSync(dir);
|
|
1859
|
+
if (exists) return fs3.symlinkSync(srcpath, dstpath, type);
|
|
1860
|
+
mkdirsSync(dir);
|
|
1861
|
+
return fs3.symlinkSync(srcpath, dstpath, type);
|
|
2750
1862
|
}
|
|
1863
|
+
module2.exports = {
|
|
1864
|
+
createSymlink: u(createSymlink),
|
|
1865
|
+
createSymlinkSync
|
|
1866
|
+
};
|
|
1867
|
+
}
|
|
1868
|
+
});
|
|
1869
|
+
|
|
1870
|
+
// ../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/ensure/index.js
|
|
1871
|
+
var require_ensure = __commonJS({
|
|
1872
|
+
"../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/ensure/index.js"(exports2, module2) {
|
|
1873
|
+
"use strict";
|
|
1874
|
+
var { createFile, createFileSync } = require_file();
|
|
1875
|
+
var { createLink, createLinkSync } = require_link();
|
|
1876
|
+
var { createSymlink, createSymlinkSync } = require_symlink();
|
|
1877
|
+
module2.exports = {
|
|
1878
|
+
// file
|
|
1879
|
+
createFile,
|
|
1880
|
+
createFileSync,
|
|
1881
|
+
ensureFile: createFile,
|
|
1882
|
+
ensureFileSync: createFileSync,
|
|
1883
|
+
// link
|
|
1884
|
+
createLink,
|
|
1885
|
+
createLinkSync,
|
|
1886
|
+
ensureLink: createLink,
|
|
1887
|
+
ensureLinkSync: createLinkSync,
|
|
1888
|
+
// symlink
|
|
1889
|
+
createSymlink,
|
|
1890
|
+
createSymlinkSync,
|
|
1891
|
+
ensureSymlink: createSymlink,
|
|
1892
|
+
ensureSymlinkSync: createSymlinkSync
|
|
1893
|
+
};
|
|
2751
1894
|
}
|
|
2752
1895
|
});
|
|
2753
1896
|
|
|
@@ -2774,7 +1917,7 @@ var require_jsonfile = __commonJS({
|
|
|
2774
1917
|
"use strict";
|
|
2775
1918
|
var _fs;
|
|
2776
1919
|
try {
|
|
2777
|
-
_fs =
|
|
1920
|
+
_fs = require_graceful_fs();
|
|
2778
1921
|
} catch (_) {
|
|
2779
1922
|
_fs = require("fs");
|
|
2780
1923
|
}
|
|
@@ -2842,9 +1985,9 @@ var require_jsonfile = __commonJS({
|
|
|
2842
1985
|
}
|
|
2843
1986
|
});
|
|
2844
1987
|
|
|
2845
|
-
// ../../node_modules/.pnpm/fs-extra@11.
|
|
1988
|
+
// ../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/json/jsonfile.js
|
|
2846
1989
|
var require_jsonfile2 = __commonJS({
|
|
2847
|
-
"../../node_modules/.pnpm/fs-extra@11.
|
|
1990
|
+
"../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/json/jsonfile.js"(exports2, module2) {
|
|
2848
1991
|
"use strict";
|
|
2849
1992
|
var jsonFile = require_jsonfile();
|
|
2850
1993
|
module2.exports = {
|
|
@@ -2857,36 +2000,27 @@ var require_jsonfile2 = __commonJS({
|
|
|
2857
2000
|
}
|
|
2858
2001
|
});
|
|
2859
2002
|
|
|
2860
|
-
// ../../node_modules/.pnpm/fs-extra@11.
|
|
2003
|
+
// ../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/output-file/index.js
|
|
2861
2004
|
var require_output_file = __commonJS({
|
|
2862
|
-
"../../node_modules/.pnpm/fs-extra@11.
|
|
2005
|
+
"../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/output-file/index.js"(exports2, module2) {
|
|
2863
2006
|
"use strict";
|
|
2864
|
-
var u = require_universalify().
|
|
2865
|
-
var fs3 =
|
|
2007
|
+
var u = require_universalify().fromPromise;
|
|
2008
|
+
var fs3 = require_fs();
|
|
2866
2009
|
var path5 = require("path");
|
|
2867
2010
|
var mkdir = require_mkdirs();
|
|
2868
2011
|
var pathExists2 = require_path_exists().pathExists;
|
|
2869
|
-
function outputFile(file2, data, encoding
|
|
2870
|
-
if (typeof encoding === "function") {
|
|
2871
|
-
callback = encoding;
|
|
2872
|
-
encoding = "utf8";
|
|
2873
|
-
}
|
|
2012
|
+
async function outputFile(file2, data, encoding = "utf-8") {
|
|
2874
2013
|
const dir = path5.dirname(file2);
|
|
2875
|
-
pathExists2(dir
|
|
2876
|
-
|
|
2877
|
-
|
|
2878
|
-
|
|
2879
|
-
if (err2) return callback(err2);
|
|
2880
|
-
fs3.writeFile(file2, data, encoding, callback);
|
|
2881
|
-
});
|
|
2882
|
-
});
|
|
2014
|
+
if (!await pathExists2(dir)) {
|
|
2015
|
+
await mkdir.mkdirs(dir);
|
|
2016
|
+
}
|
|
2017
|
+
return fs3.writeFile(file2, data, encoding);
|
|
2883
2018
|
}
|
|
2884
2019
|
function outputFileSync(file2, ...args) {
|
|
2885
2020
|
const dir = path5.dirname(file2);
|
|
2886
|
-
if (fs3.existsSync(dir)) {
|
|
2887
|
-
|
|
2021
|
+
if (!fs3.existsSync(dir)) {
|
|
2022
|
+
mkdir.mkdirsSync(dir);
|
|
2888
2023
|
}
|
|
2889
|
-
mkdir.mkdirsSync(dir);
|
|
2890
2024
|
fs3.writeFileSync(file2, ...args);
|
|
2891
2025
|
}
|
|
2892
2026
|
module2.exports = {
|
|
@@ -2896,9 +2030,9 @@ var require_output_file = __commonJS({
|
|
|
2896
2030
|
}
|
|
2897
2031
|
});
|
|
2898
2032
|
|
|
2899
|
-
// ../../node_modules/.pnpm/fs-extra@11.
|
|
2033
|
+
// ../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/json/output-json.js
|
|
2900
2034
|
var require_output_json = __commonJS({
|
|
2901
|
-
"../../node_modules/.pnpm/fs-extra@11.
|
|
2035
|
+
"../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/json/output-json.js"(exports2, module2) {
|
|
2902
2036
|
"use strict";
|
|
2903
2037
|
var { stringify: stringify2 } = require_utils2();
|
|
2904
2038
|
var { outputFile } = require_output_file();
|
|
@@ -2910,9 +2044,9 @@ var require_output_json = __commonJS({
|
|
|
2910
2044
|
}
|
|
2911
2045
|
});
|
|
2912
2046
|
|
|
2913
|
-
// ../../node_modules/.pnpm/fs-extra@11.
|
|
2047
|
+
// ../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/json/output-json-sync.js
|
|
2914
2048
|
var require_output_json_sync = __commonJS({
|
|
2915
|
-
"../../node_modules/.pnpm/fs-extra@11.
|
|
2049
|
+
"../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/json/output-json-sync.js"(exports2, module2) {
|
|
2916
2050
|
"use strict";
|
|
2917
2051
|
var { stringify: stringify2 } = require_utils2();
|
|
2918
2052
|
var { outputFileSync } = require_output_file();
|
|
@@ -2924,9 +2058,9 @@ var require_output_json_sync = __commonJS({
|
|
|
2924
2058
|
}
|
|
2925
2059
|
});
|
|
2926
2060
|
|
|
2927
|
-
// ../../node_modules/.pnpm/fs-extra@11.
|
|
2061
|
+
// ../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/json/index.js
|
|
2928
2062
|
var require_json = __commonJS({
|
|
2929
|
-
"../../node_modules/.pnpm/fs-extra@11.
|
|
2063
|
+
"../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/json/index.js"(exports2, module2) {
|
|
2930
2064
|
"use strict";
|
|
2931
2065
|
var u = require_universalify().fromPromise;
|
|
2932
2066
|
var jsonFile = require_jsonfile2();
|
|
@@ -2942,81 +2076,61 @@ var require_json = __commonJS({
|
|
|
2942
2076
|
}
|
|
2943
2077
|
});
|
|
2944
2078
|
|
|
2945
|
-
// ../../node_modules/.pnpm/fs-extra@11.
|
|
2079
|
+
// ../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/move/move.js
|
|
2946
2080
|
var require_move = __commonJS({
|
|
2947
|
-
"../../node_modules/.pnpm/fs-extra@11.
|
|
2081
|
+
"../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/move/move.js"(exports2, module2) {
|
|
2948
2082
|
"use strict";
|
|
2949
|
-
var fs3 =
|
|
2083
|
+
var fs3 = require_fs();
|
|
2950
2084
|
var path5 = require("path");
|
|
2951
|
-
var copy = require_copy2()
|
|
2952
|
-
var remove = require_remove()
|
|
2953
|
-
var mkdirp = require_mkdirs()
|
|
2954
|
-
var pathExists2 = require_path_exists()
|
|
2085
|
+
var { copy } = require_copy2();
|
|
2086
|
+
var { remove } = require_remove();
|
|
2087
|
+
var { mkdirp } = require_mkdirs();
|
|
2088
|
+
var { pathExists: pathExists2 } = require_path_exists();
|
|
2955
2089
|
var stat = require_stat();
|
|
2956
|
-
function move(src, dest, opts
|
|
2957
|
-
if (typeof opts === "function") {
|
|
2958
|
-
cb = opts;
|
|
2959
|
-
opts = {};
|
|
2960
|
-
}
|
|
2961
|
-
opts = opts || {};
|
|
2090
|
+
async function move(src, dest, opts = {}) {
|
|
2962
2091
|
const overwrite = opts.overwrite || opts.clobber || false;
|
|
2963
|
-
stat.checkPaths(src, dest, "move", opts
|
|
2964
|
-
|
|
2965
|
-
|
|
2966
|
-
|
|
2967
|
-
|
|
2968
|
-
|
|
2969
|
-
mkdirp(path5.dirname(dest), (err3) => {
|
|
2970
|
-
if (err3) return cb(err3);
|
|
2971
|
-
return doRename(src, dest, overwrite, isChangingCase, cb);
|
|
2972
|
-
});
|
|
2973
|
-
});
|
|
2974
|
-
});
|
|
2975
|
-
}
|
|
2976
|
-
function isParentRoot(dest) {
|
|
2977
|
-
const parent = path5.dirname(dest);
|
|
2978
|
-
const parsedPath = path5.parse(parent);
|
|
2979
|
-
return parsedPath.root === parent;
|
|
2980
|
-
}
|
|
2981
|
-
function doRename(src, dest, overwrite, isChangingCase, cb) {
|
|
2982
|
-
if (isChangingCase) return rename(src, dest, overwrite, cb);
|
|
2983
|
-
if (overwrite) {
|
|
2984
|
-
return remove(dest, (err) => {
|
|
2985
|
-
if (err) return cb(err);
|
|
2986
|
-
return rename(src, dest, overwrite, cb);
|
|
2987
|
-
});
|
|
2092
|
+
const { srcStat, isChangingCase = false } = await stat.checkPaths(src, dest, "move", opts);
|
|
2093
|
+
await stat.checkParentPaths(src, srcStat, dest, "move");
|
|
2094
|
+
const destParent = path5.dirname(dest);
|
|
2095
|
+
const parsedParentPath = path5.parse(destParent);
|
|
2096
|
+
if (parsedParentPath.root !== destParent) {
|
|
2097
|
+
await mkdirp(destParent);
|
|
2988
2098
|
}
|
|
2989
|
-
|
|
2990
|
-
if (err) return cb(err);
|
|
2991
|
-
if (destExists) return cb(new Error("dest already exists."));
|
|
2992
|
-
return rename(src, dest, overwrite, cb);
|
|
2993
|
-
});
|
|
2099
|
+
return doRename(src, dest, overwrite, isChangingCase);
|
|
2994
2100
|
}
|
|
2995
|
-
function
|
|
2996
|
-
|
|
2997
|
-
if (
|
|
2998
|
-
|
|
2999
|
-
|
|
3000
|
-
|
|
2101
|
+
async function doRename(src, dest, overwrite, isChangingCase) {
|
|
2102
|
+
if (!isChangingCase) {
|
|
2103
|
+
if (overwrite) {
|
|
2104
|
+
await remove(dest);
|
|
2105
|
+
} else if (await pathExists2(dest)) {
|
|
2106
|
+
throw new Error("dest already exists.");
|
|
2107
|
+
}
|
|
2108
|
+
}
|
|
2109
|
+
try {
|
|
2110
|
+
await fs3.rename(src, dest);
|
|
2111
|
+
} catch (err) {
|
|
2112
|
+
if (err.code !== "EXDEV") {
|
|
2113
|
+
throw err;
|
|
2114
|
+
}
|
|
2115
|
+
await moveAcrossDevice(src, dest, overwrite);
|
|
2116
|
+
}
|
|
3001
2117
|
}
|
|
3002
|
-
function moveAcrossDevice(src, dest, overwrite
|
|
2118
|
+
async function moveAcrossDevice(src, dest, overwrite) {
|
|
3003
2119
|
const opts = {
|
|
3004
2120
|
overwrite,
|
|
3005
2121
|
errorOnExist: true,
|
|
3006
2122
|
preserveTimestamps: true
|
|
3007
2123
|
};
|
|
3008
|
-
copy(src, dest, opts
|
|
3009
|
-
|
|
3010
|
-
return remove(src, cb);
|
|
3011
|
-
});
|
|
2124
|
+
await copy(src, dest, opts);
|
|
2125
|
+
return remove(src);
|
|
3012
2126
|
}
|
|
3013
2127
|
module2.exports = move;
|
|
3014
2128
|
}
|
|
3015
2129
|
});
|
|
3016
2130
|
|
|
3017
|
-
// ../../node_modules/.pnpm/fs-extra@11.
|
|
2131
|
+
// ../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/move/move-sync.js
|
|
3018
2132
|
var require_move_sync = __commonJS({
|
|
3019
|
-
"../../node_modules/.pnpm/fs-extra@11.
|
|
2133
|
+
"../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/move/move-sync.js"(exports2, module2) {
|
|
3020
2134
|
"use strict";
|
|
3021
2135
|
var fs3 = require_graceful_fs();
|
|
3022
2136
|
var path5 = require("path");
|
|
@@ -3067,11 +2181,11 @@ var require_move_sync = __commonJS({
|
|
|
3067
2181
|
}
|
|
3068
2182
|
});
|
|
3069
2183
|
|
|
3070
|
-
// ../../node_modules/.pnpm/fs-extra@11.
|
|
2184
|
+
// ../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/move/index.js
|
|
3071
2185
|
var require_move2 = __commonJS({
|
|
3072
|
-
"../../node_modules/.pnpm/fs-extra@11.
|
|
2186
|
+
"../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/move/index.js"(exports2, module2) {
|
|
3073
2187
|
"use strict";
|
|
3074
|
-
var u = require_universalify().
|
|
2188
|
+
var u = require_universalify().fromPromise;
|
|
3075
2189
|
module2.exports = {
|
|
3076
2190
|
move: u(require_move()),
|
|
3077
2191
|
moveSync: require_move_sync()
|
|
@@ -3079,9 +2193,9 @@ var require_move2 = __commonJS({
|
|
|
3079
2193
|
}
|
|
3080
2194
|
});
|
|
3081
2195
|
|
|
3082
|
-
// ../../node_modules/.pnpm/fs-extra@11.
|
|
2196
|
+
// ../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/index.js
|
|
3083
2197
|
var require_lib = __commonJS({
|
|
3084
|
-
"../../node_modules/.pnpm/fs-extra@11.
|
|
2198
|
+
"../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/index.js"(exports2, module2) {
|
|
3085
2199
|
"use strict";
|
|
3086
2200
|
module2.exports = {
|
|
3087
2201
|
// Export promiseified graceful-fs:
|
|
@@ -3166,9 +2280,9 @@ var require_indent_string = __commonJS({
|
|
|
3166
2280
|
}
|
|
3167
2281
|
});
|
|
3168
2282
|
|
|
3169
|
-
// ../../node_modules/.pnpm/@babel+helper-validator-identifier@7.
|
|
2283
|
+
// ../../node_modules/.pnpm/@babel+helper-validator-identifier@7.25.9/node_modules/@babel/helper-validator-identifier/lib/identifier.js
|
|
3170
2284
|
var require_identifier = __commonJS({
|
|
3171
|
-
"../../node_modules/.pnpm/@babel+helper-validator-identifier@7.
|
|
2285
|
+
"../../node_modules/.pnpm/@babel+helper-validator-identifier@7.25.9/node_modules/@babel/helper-validator-identifier/lib/identifier.js"(exports2) {
|
|
3172
2286
|
"use strict";
|
|
3173
2287
|
Object.defineProperty(exports2, "__esModule", {
|
|
3174
2288
|
value: true
|
|
@@ -3176,13 +2290,13 @@ var require_identifier = __commonJS({
|
|
|
3176
2290
|
exports2.isIdentifierChar = isIdentifierChar;
|
|
3177
2291
|
exports2.isIdentifierName = isIdentifierName2;
|
|
3178
2292
|
exports2.isIdentifierStart = isIdentifierStart;
|
|
3179
|
-
var nonASCIIidentifierStartChars = "\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\
|
|
3180
|
-
var nonASCIIidentifierChars = "\
|
|
2293
|
+
var nonASCIIidentifierStartChars = "\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CD\uA7D0\uA7D1\uA7D3\uA7D5-\uA7DC\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC";
|
|
2294
|
+
var nonASCIIidentifierChars = "\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ACE\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65";
|
|
3181
2295
|
var nonASCIIidentifierStart = new RegExp("[" + nonASCIIidentifierStartChars + "]");
|
|
3182
2296
|
var nonASCIIidentifier = new RegExp("[" + nonASCIIidentifierStartChars + nonASCIIidentifierChars + "]");
|
|
3183
2297
|
nonASCIIidentifierStartChars = nonASCIIidentifierChars = null;
|
|
3184
|
-
var astralIdentifierStartCodes = [0, 11, 2, 25, 2, 18, 2, 1, 2, 14, 3, 13, 35, 122, 70, 52, 268, 28, 4, 48, 48, 31, 14, 29, 6, 37, 11, 29, 3, 35, 5, 7, 2, 4, 43, 157, 19, 35, 5, 35, 5, 39, 9, 51, 13, 10, 2, 14, 2, 6, 2, 1, 2, 10, 2, 14, 2, 6, 2, 1,
|
|
3185
|
-
var astralIdentifierCodes = [509, 0, 227, 0, 150, 4, 294, 9, 1368, 2, 2, 1, 6, 3, 41, 2, 5, 0, 166, 1, 574, 3, 9, 9,
|
|
2298
|
+
var astralIdentifierStartCodes = [0, 11, 2, 25, 2, 18, 2, 1, 2, 14, 3, 13, 35, 122, 70, 52, 268, 28, 4, 48, 48, 31, 14, 29, 6, 37, 11, 29, 3, 35, 5, 7, 2, 4, 43, 157, 19, 35, 5, 35, 5, 39, 9, 51, 13, 10, 2, 14, 2, 6, 2, 1, 2, 10, 2, 14, 2, 6, 2, 1, 4, 51, 13, 310, 10, 21, 11, 7, 25, 5, 2, 41, 2, 8, 70, 5, 3, 0, 2, 43, 2, 1, 4, 0, 3, 22, 11, 22, 10, 30, 66, 18, 2, 1, 11, 21, 11, 25, 71, 55, 7, 1, 65, 0, 16, 3, 2, 2, 2, 28, 43, 28, 4, 28, 36, 7, 2, 27, 28, 53, 11, 21, 11, 18, 14, 17, 111, 72, 56, 50, 14, 50, 14, 35, 39, 27, 10, 22, 251, 41, 7, 1, 17, 2, 60, 28, 11, 0, 9, 21, 43, 17, 47, 20, 28, 22, 13, 52, 58, 1, 3, 0, 14, 44, 33, 24, 27, 35, 30, 0, 3, 0, 9, 34, 4, 0, 13, 47, 15, 3, 22, 0, 2, 0, 36, 17, 2, 24, 20, 1, 64, 6, 2, 0, 2, 3, 2, 14, 2, 9, 8, 46, 39, 7, 3, 1, 3, 21, 2, 6, 2, 1, 2, 4, 4, 0, 19, 0, 13, 4, 31, 9, 2, 0, 3, 0, 2, 37, 2, 0, 26, 0, 2, 0, 45, 52, 19, 3, 21, 2, 31, 47, 21, 1, 2, 0, 185, 46, 42, 3, 37, 47, 21, 0, 60, 42, 14, 0, 72, 26, 38, 6, 186, 43, 117, 63, 32, 7, 3, 0, 3, 7, 2, 1, 2, 23, 16, 0, 2, 0, 95, 7, 3, 38, 17, 0, 2, 0, 29, 0, 11, 39, 8, 0, 22, 0, 12, 45, 20, 0, 19, 72, 200, 32, 32, 8, 2, 36, 18, 0, 50, 29, 113, 6, 2, 1, 2, 37, 22, 0, 26, 5, 2, 1, 2, 31, 15, 0, 328, 18, 16, 0, 2, 12, 2, 33, 125, 0, 80, 921, 103, 110, 18, 195, 2637, 96, 16, 1071, 18, 5, 26, 3994, 6, 582, 6842, 29, 1763, 568, 8, 30, 18, 78, 18, 29, 19, 47, 17, 3, 32, 20, 6, 18, 433, 44, 212, 63, 129, 74, 6, 0, 67, 12, 65, 1, 2, 0, 29, 6135, 9, 1237, 42, 9, 8936, 3, 2, 6, 2, 1, 2, 290, 16, 0, 30, 2, 3, 0, 15, 3, 9, 395, 2309, 106, 6, 12, 4, 8, 8, 9, 5991, 84, 2, 70, 2, 1, 3, 0, 3, 1, 3, 3, 2, 11, 2, 0, 2, 6, 2, 64, 2, 3, 3, 7, 2, 6, 2, 27, 2, 3, 2, 4, 2, 0, 4, 6, 2, 339, 3, 24, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 7, 1845, 30, 7, 5, 262, 61, 147, 44, 11, 6, 17, 0, 322, 29, 19, 43, 485, 27, 229, 29, 3, 0, 496, 6, 2, 3, 2, 1, 2, 14, 2, 196, 60, 67, 8, 0, 1205, 3, 2, 26, 2, 1, 2, 0, 3, 0, 2, 9, 2, 3, 2, 0, 2, 0, 7, 0, 5, 0, 2, 0, 2, 0, 2, 2, 2, 1, 2, 0, 3, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 1, 2, 0, 3, 3, 2, 6, 2, 3, 2, 3, 2, 0, 2, 9, 2, 16, 6, 2, 2, 4, 2, 16, 4421, 42719, 33, 4153, 7, 221, 3, 5761, 15, 7472, 16, 621, 2467, 541, 1507, 4938, 6, 4191];
|
|
2299
|
+
var astralIdentifierCodes = [509, 0, 227, 0, 150, 4, 294, 9, 1368, 2, 2, 1, 6, 3, 41, 2, 5, 0, 166, 1, 574, 3, 9, 9, 7, 9, 32, 4, 318, 1, 80, 3, 71, 10, 50, 3, 123, 2, 54, 14, 32, 10, 3, 1, 11, 3, 46, 10, 8, 0, 46, 9, 7, 2, 37, 13, 2, 9, 6, 1, 45, 0, 13, 2, 49, 13, 9, 3, 2, 11, 83, 11, 7, 0, 3, 0, 158, 11, 6, 9, 7, 3, 56, 1, 2, 6, 3, 1, 3, 2, 10, 0, 11, 1, 3, 6, 4, 4, 68, 8, 2, 0, 3, 0, 2, 3, 2, 4, 2, 0, 15, 1, 83, 17, 10, 9, 5, 0, 82, 19, 13, 9, 214, 6, 3, 8, 28, 1, 83, 16, 16, 9, 82, 12, 9, 9, 7, 19, 58, 14, 5, 9, 243, 14, 166, 9, 71, 5, 2, 1, 3, 3, 2, 0, 2, 1, 13, 9, 120, 6, 3, 6, 4, 0, 29, 9, 41, 6, 2, 3, 9, 0, 10, 10, 47, 15, 343, 9, 54, 7, 2, 7, 17, 9, 57, 21, 2, 13, 123, 5, 4, 0, 2, 1, 2, 6, 2, 0, 9, 9, 49, 4, 2, 1, 2, 4, 9, 9, 330, 3, 10, 1, 2, 0, 49, 6, 4, 4, 14, 10, 5350, 0, 7, 14, 11465, 27, 2343, 9, 87, 9, 39, 4, 60, 6, 26, 9, 535, 9, 470, 0, 2, 54, 8, 3, 82, 0, 12, 1, 19628, 1, 4178, 9, 519, 45, 3, 22, 543, 4, 4, 5, 9, 7, 3, 6, 31, 3, 149, 2, 1418, 49, 513, 54, 5, 49, 9, 0, 15, 0, 23, 4, 2, 14, 1361, 6, 2, 16, 3, 6, 2, 1, 2, 4, 101, 0, 161, 6, 10, 9, 357, 0, 62, 13, 499, 13, 245, 1, 2, 9, 726, 6, 110, 6, 6, 9, 4759, 9, 787719, 239];
|
|
3186
2300
|
function isInAstralSet(code, set) {
|
|
3187
2301
|
let pos = 65536;
|
|
3188
2302
|
for (let i = 0, length = set.length; i < length; i += 2) {
|
|
@@ -3239,9 +2353,9 @@ var require_identifier = __commonJS({
|
|
|
3239
2353
|
}
|
|
3240
2354
|
});
|
|
3241
2355
|
|
|
3242
|
-
// ../../node_modules/.pnpm/@babel+helper-validator-identifier@7.
|
|
2356
|
+
// ../../node_modules/.pnpm/@babel+helper-validator-identifier@7.25.9/node_modules/@babel/helper-validator-identifier/lib/keyword.js
|
|
3243
2357
|
var require_keyword = __commonJS({
|
|
3244
|
-
"../../node_modules/.pnpm/@babel+helper-validator-identifier@7.
|
|
2358
|
+
"../../node_modules/.pnpm/@babel+helper-validator-identifier@7.25.9/node_modules/@babel/helper-validator-identifier/lib/keyword.js"(exports2) {
|
|
3245
2359
|
"use strict";
|
|
3246
2360
|
Object.defineProperty(exports2, "__esModule", {
|
|
3247
2361
|
value: true
|
|
@@ -3277,9 +2391,9 @@ var require_keyword = __commonJS({
|
|
|
3277
2391
|
}
|
|
3278
2392
|
});
|
|
3279
2393
|
|
|
3280
|
-
// ../../node_modules/.pnpm/@babel+helper-validator-identifier@7.
|
|
2394
|
+
// ../../node_modules/.pnpm/@babel+helper-validator-identifier@7.25.9/node_modules/@babel/helper-validator-identifier/lib/index.js
|
|
3281
2395
|
var require_lib2 = __commonJS({
|
|
3282
|
-
"../../node_modules/.pnpm/@babel+helper-validator-identifier@7.
|
|
2396
|
+
"../../node_modules/.pnpm/@babel+helper-validator-identifier@7.25.9/node_modules/@babel/helper-validator-identifier/lib/index.js"(exports2) {
|
|
3283
2397
|
"use strict";
|
|
3284
2398
|
Object.defineProperty(exports2, "__esModule", {
|
|
3285
2399
|
value: true
|
|
@@ -3946,7 +3060,7 @@ var require_package2 = __commonJS({
|
|
|
3946
3060
|
"package.json"(exports2, module2) {
|
|
3947
3061
|
module2.exports = {
|
|
3948
3062
|
name: "@prisma/client",
|
|
3949
|
-
version: "6.5.0-dev.
|
|
3063
|
+
version: "6.5.0-dev.81",
|
|
3950
3064
|
description: "Prisma Client is an auto-generated, type-safe and modern JavaScript/TypeScript ORM for Node.js that's tailored to your data. Supports PostgreSQL, CockroachDB, MySQL, MariaDB, SQL Server, SQLite & MongoDB databases.",
|
|
3951
3065
|
keywords: [
|
|
3952
3066
|
"ORM",
|
|
@@ -4128,11 +3242,11 @@ var require_package2 = __commonJS({
|
|
|
4128
3242
|
"sql.mjs"
|
|
4129
3243
|
],
|
|
4130
3244
|
devDependencies: {
|
|
4131
|
-
"@cloudflare/workers-types": "4.
|
|
4132
|
-
"@codspeed/benchmark.js-plugin": "
|
|
4133
|
-
"@faker-js/faker": "
|
|
3245
|
+
"@cloudflare/workers-types": "4.20250214.0",
|
|
3246
|
+
"@codspeed/benchmark.js-plugin": "4.0.0",
|
|
3247
|
+
"@faker-js/faker": "9.5.1",
|
|
4134
3248
|
"@fast-check/jest": "2.0.3",
|
|
4135
|
-
"@inquirer/prompts": "
|
|
3249
|
+
"@inquirer/prompts": "7.3.3",
|
|
4136
3250
|
"@jest/create-cache-key-function": "29.7.0",
|
|
4137
3251
|
"@jest/globals": "29.7.0",
|
|
4138
3252
|
"@jest/test-sequencer": "29.7.0",
|
|
@@ -4140,11 +3254,11 @@ var require_package2 = __commonJS({
|
|
|
4140
3254
|
"@neondatabase/serverless": "0.10.2",
|
|
4141
3255
|
"@opentelemetry/api": "1.9.0",
|
|
4142
3256
|
"@opentelemetry/context-async-hooks": "1.30.1",
|
|
4143
|
-
"@opentelemetry/instrumentation": "0.57.
|
|
3257
|
+
"@opentelemetry/instrumentation": "0.57.2",
|
|
4144
3258
|
"@opentelemetry/resources": "1.30.1",
|
|
4145
3259
|
"@opentelemetry/sdk-trace-base": "1.30.1",
|
|
4146
|
-
"@opentelemetry/semantic-conventions": "1.
|
|
4147
|
-
"@planetscale/database": "1.
|
|
3260
|
+
"@opentelemetry/semantic-conventions": "1.30.0",
|
|
3261
|
+
"@planetscale/database": "1.19.0",
|
|
4148
3262
|
"@prisma/adapter-d1": "workspace:*",
|
|
4149
3263
|
"@prisma/adapter-libsql": "workspace:*",
|
|
4150
3264
|
"@prisma/adapter-neon": "workspace:*",
|
|
@@ -4156,7 +3270,7 @@ var require_package2 = __commonJS({
|
|
|
4156
3270
|
"@prisma/debug": "workspace:*",
|
|
4157
3271
|
"@prisma/driver-adapter-utils": "workspace:*",
|
|
4158
3272
|
"@prisma/engines": "workspace:*",
|
|
4159
|
-
"@prisma/engines-version": "6.
|
|
3273
|
+
"@prisma/engines-version": "6.5.0-70.d3fd11690486b166608fd9d9091a0e94f299a99d",
|
|
4160
3274
|
"@prisma/fetch-engine": "workspace:*",
|
|
4161
3275
|
"@prisma/generator-helper": "workspace:*",
|
|
4162
3276
|
"@prisma/get-platform": "workspace:*",
|
|
@@ -4165,31 +3279,30 @@ var require_package2 = __commonJS({
|
|
|
4165
3279
|
"@prisma/migrate": "workspace:*",
|
|
4166
3280
|
"@prisma/mini-proxy": "0.9.5",
|
|
4167
3281
|
"@prisma/pg-worker": "workspace:*",
|
|
4168
|
-
"@prisma/query-compiler-wasm": "6.
|
|
4169
|
-
"@prisma/query-engine-wasm": "6.
|
|
4170
|
-
"@snaplet/copycat": "0.
|
|
3282
|
+
"@prisma/query-compiler-wasm": "6.5.0-70.d3fd11690486b166608fd9d9091a0e94f299a99d",
|
|
3283
|
+
"@prisma/query-engine-wasm": "6.5.0-70.d3fd11690486b166608fd9d9091a0e94f299a99d",
|
|
3284
|
+
"@snaplet/copycat": "6.0.0",
|
|
4171
3285
|
"@swc-node/register": "1.10.9",
|
|
4172
|
-
"@swc/core": "1.
|
|
3286
|
+
"@swc/core": "1.11.5",
|
|
4173
3287
|
"@swc/jest": "0.2.37",
|
|
4174
3288
|
"@timsuchanek/copy": "1.4.5",
|
|
4175
3289
|
"@types/debug": "4.1.12",
|
|
4176
|
-
"@types/fs-extra": "
|
|
3290
|
+
"@types/fs-extra": "11.0.4",
|
|
4177
3291
|
"@types/jest": "29.5.14",
|
|
4178
3292
|
"@types/js-levenshtein": "1.1.3",
|
|
4179
3293
|
"@types/mssql": "9.1.5",
|
|
4180
|
-
"@types/node": "18.19.
|
|
4181
|
-
"@types/pg": "8.11.
|
|
3294
|
+
"@types/node": "18.19.76",
|
|
3295
|
+
"@types/pg": "8.11.11",
|
|
4182
3296
|
arg: "5.0.2",
|
|
4183
3297
|
benchmark: "2.1.4",
|
|
4184
|
-
"ci-info": "4.
|
|
3298
|
+
"ci-info": "4.1.0",
|
|
4185
3299
|
"decimal.js": "10.5.0",
|
|
4186
|
-
"detect-runtime": "1.0.4",
|
|
4187
3300
|
"env-paths": "2.2.1",
|
|
4188
3301
|
esbuild: "0.24.2",
|
|
4189
3302
|
execa: "5.1.1",
|
|
4190
|
-
"expect-type": "
|
|
3303
|
+
"expect-type": "1.1.0",
|
|
4191
3304
|
"flat-map-polyfill": "0.3.8",
|
|
4192
|
-
"fs-extra": "11.
|
|
3305
|
+
"fs-extra": "11.3.0",
|
|
4193
3306
|
"get-stream": "6.0.1",
|
|
4194
3307
|
globby: "11.1.0",
|
|
4195
3308
|
"indent-string": "4.0.0",
|
|
@@ -4201,13 +3314,13 @@ var require_package2 = __commonJS({
|
|
|
4201
3314
|
"js-levenshtein": "1.1.6",
|
|
4202
3315
|
kleur: "4.1.5",
|
|
4203
3316
|
klona: "2.0.6",
|
|
4204
|
-
mariadb: "3.
|
|
3317
|
+
mariadb: "3.4.0",
|
|
4205
3318
|
memfs: "4.17.0",
|
|
4206
3319
|
mssql: "11.0.1",
|
|
4207
3320
|
"new-github-issue-url": "0.2.1",
|
|
4208
3321
|
"node-fetch": "3.3.2",
|
|
4209
3322
|
"p-retry": "4.6.2",
|
|
4210
|
-
pg: "8.
|
|
3323
|
+
pg: "8.13.3",
|
|
4211
3324
|
"pkg-up": "3.1.0",
|
|
4212
3325
|
pluralize: "8.0.0",
|
|
4213
3326
|
resolve: "1.22.10",
|
|
@@ -4223,8 +3336,8 @@ var require_package2 = __commonJS({
|
|
|
4223
3336
|
"ts-pattern": "5.6.2",
|
|
4224
3337
|
tsd: "0.31.2",
|
|
4225
3338
|
typescript: "5.4.5",
|
|
4226
|
-
undici: "7.
|
|
4227
|
-
wrangler: "3.
|
|
3339
|
+
undici: "7.4.0",
|
|
3340
|
+
wrangler: "3.111.0",
|
|
4228
3341
|
zx: "7.2.3"
|
|
4229
3342
|
},
|
|
4230
3343
|
peerDependencies: {
|
|
@@ -4422,9 +3535,9 @@ var init_TypeBuilder = __esm({
|
|
|
4422
3535
|
constructor() {
|
|
4423
3536
|
// TODO(@SevInf): this should be replaced with precedence system that would
|
|
4424
3537
|
// automatically add parenthesis where they are needed
|
|
4425
|
-
this
|
|
4426
|
-
this
|
|
4427
|
-
this
|
|
3538
|
+
__publicField(this, "needsParenthesisWhenIndexed", false);
|
|
3539
|
+
__publicField(this, "needsParenthesisInKeyof", false);
|
|
3540
|
+
__publicField(this, "needsParenthesisInUnion", false);
|
|
4428
3541
|
}
|
|
4429
3542
|
subKey(key) {
|
|
4430
3543
|
const { KeyType: KeyType2 } = (init_KeyType(), __toCommonJS(KeyType_exports));
|
|
@@ -4443,9 +3556,9 @@ var init_TypeBuilder = __esm({
|
|
|
4443
3556
|
}
|
|
4444
3557
|
});
|
|
4445
3558
|
|
|
4446
|
-
// ../../node_modules/.pnpm/ci-info@4.
|
|
3559
|
+
// ../../node_modules/.pnpm/ci-info@4.1.0/node_modules/ci-info/vendors.json
|
|
4447
3560
|
var require_vendors = __commonJS({
|
|
4448
|
-
"../../node_modules/.pnpm/ci-info@4.
|
|
3561
|
+
"../../node_modules/.pnpm/ci-info@4.1.0/node_modules/ci-info/vendors.json"(exports2, module2) {
|
|
4449
3562
|
module2.exports = [
|
|
4450
3563
|
{
|
|
4451
3564
|
name: "Agola CI",
|
|
@@ -4456,7 +3569,11 @@ var require_vendors = __commonJS({
|
|
|
4456
3569
|
{
|
|
4457
3570
|
name: "Appcircle",
|
|
4458
3571
|
constant: "APPCIRCLE",
|
|
4459
|
-
env: "AC_APPCIRCLE"
|
|
3572
|
+
env: "AC_APPCIRCLE",
|
|
3573
|
+
pr: {
|
|
3574
|
+
env: "AC_GIT_PR",
|
|
3575
|
+
ne: "false"
|
|
3576
|
+
}
|
|
4460
3577
|
},
|
|
4461
3578
|
{
|
|
4462
3579
|
name: "AppVeyor",
|
|
@@ -4467,7 +3584,15 @@ var require_vendors = __commonJS({
|
|
|
4467
3584
|
{
|
|
4468
3585
|
name: "AWS CodeBuild",
|
|
4469
3586
|
constant: "CODEBUILD",
|
|
4470
|
-
env: "CODEBUILD_BUILD_ARN"
|
|
3587
|
+
env: "CODEBUILD_BUILD_ARN",
|
|
3588
|
+
pr: {
|
|
3589
|
+
env: "CODEBUILD_WEBHOOK_EVENT",
|
|
3590
|
+
any: [
|
|
3591
|
+
"PULL_REQUEST_CREATED",
|
|
3592
|
+
"PULL_REQUEST_UPDATED",
|
|
3593
|
+
"PULL_REQUEST_REOPENED"
|
|
3594
|
+
]
|
|
3595
|
+
}
|
|
4471
3596
|
},
|
|
4472
3597
|
{
|
|
4473
3598
|
name: "Azure Pipelines",
|
|
@@ -4785,9 +3910,9 @@ var require_vendors = __commonJS({
|
|
|
4785
3910
|
}
|
|
4786
3911
|
});
|
|
4787
3912
|
|
|
4788
|
-
// ../../node_modules/.pnpm/ci-info@4.
|
|
3913
|
+
// ../../node_modules/.pnpm/ci-info@4.1.0/node_modules/ci-info/index.js
|
|
4789
3914
|
var require_ci_info = __commonJS({
|
|
4790
|
-
"../../node_modules/.pnpm/ci-info@4.
|
|
3915
|
+
"../../node_modules/.pnpm/ci-info@4.1.0/node_modules/ci-info/index.js"(exports2) {
|
|
4791
3916
|
"use strict";
|
|
4792
3917
|
var vendors = require_vendors();
|
|
4793
3918
|
var env2 = process.env;
|
|
@@ -4798,6 +3923,7 @@ var require_ci_info = __commonJS({
|
|
|
4798
3923
|
});
|
|
4799
3924
|
exports2.name = null;
|
|
4800
3925
|
exports2.isPR = null;
|
|
3926
|
+
exports2.id = null;
|
|
4801
3927
|
vendors.forEach(function(vendor) {
|
|
4802
3928
|
const envs = Array.isArray(vendor.env) ? vendor.env : [vendor.env];
|
|
4803
3929
|
const isCI = envs.every(function(obj) {
|
|
@@ -4808,24 +3934,8 @@ var require_ci_info = __commonJS({
|
|
|
4808
3934
|
return;
|
|
4809
3935
|
}
|
|
4810
3936
|
exports2.name = vendor.name;
|
|
4811
|
-
|
|
4812
|
-
|
|
4813
|
-
exports2.isPR = !!env2[vendor.pr];
|
|
4814
|
-
break;
|
|
4815
|
-
case "object":
|
|
4816
|
-
if ("env" in vendor.pr) {
|
|
4817
|
-
exports2.isPR = vendor.pr.env in env2 && env2[vendor.pr.env] !== vendor.pr.ne;
|
|
4818
|
-
} else if ("any" in vendor.pr) {
|
|
4819
|
-
exports2.isPR = vendor.pr.any.some(function(key) {
|
|
4820
|
-
return !!env2[key];
|
|
4821
|
-
});
|
|
4822
|
-
} else {
|
|
4823
|
-
exports2.isPR = checkEnv(vendor.pr);
|
|
4824
|
-
}
|
|
4825
|
-
break;
|
|
4826
|
-
default:
|
|
4827
|
-
exports2.isPR = null;
|
|
4828
|
-
}
|
|
3937
|
+
exports2.isPR = checkPR(vendor);
|
|
3938
|
+
exports2.id = vendor.constant;
|
|
4829
3939
|
});
|
|
4830
3940
|
exports2.isCI = !!(env2.CI !== "false" && // Bypass all checks if CI env is explicitly set to 'false'
|
|
4831
3941
|
(env2.BUILD_ID || // Jenkins, Cloudbees
|
|
@@ -4852,6 +3962,30 @@ var require_ci_info = __commonJS({
|
|
|
4852
3962
|
return env2[k] === obj[k];
|
|
4853
3963
|
});
|
|
4854
3964
|
}
|
|
3965
|
+
function checkPR(vendor) {
|
|
3966
|
+
switch (typeof vendor.pr) {
|
|
3967
|
+
case "string":
|
|
3968
|
+
return !!env2[vendor.pr];
|
|
3969
|
+
case "object":
|
|
3970
|
+
if ("env" in vendor.pr) {
|
|
3971
|
+
if ("any" in vendor.pr) {
|
|
3972
|
+
return vendor.pr.any.some(function(key) {
|
|
3973
|
+
return env2[vendor.pr.env] === key;
|
|
3974
|
+
});
|
|
3975
|
+
} else {
|
|
3976
|
+
return vendor.pr.env in env2 && env2[vendor.pr.env] !== vendor.pr.ne;
|
|
3977
|
+
}
|
|
3978
|
+
} else if ("any" in vendor.pr) {
|
|
3979
|
+
return vendor.pr.any.some(function(key) {
|
|
3980
|
+
return !!env2[key];
|
|
3981
|
+
});
|
|
3982
|
+
} else {
|
|
3983
|
+
return checkEnv(vendor.pr);
|
|
3984
|
+
}
|
|
3985
|
+
default:
|
|
3986
|
+
return null;
|
|
3987
|
+
}
|
|
3988
|
+
}
|
|
4855
3989
|
}
|
|
4856
3990
|
});
|
|
4857
3991
|
|
|
@@ -5275,7 +4409,7 @@ async function overwriteFile(sourcePath, targetPath) {
|
|
|
5275
4409
|
await removeFileIfExists(targetPath);
|
|
5276
4410
|
await import_fs.default.promises.copyFile(sourcePath, targetPath);
|
|
5277
4411
|
} else {
|
|
5278
|
-
|
|
4412
|
+
const tempPath = `${targetPath}.tmp${process.pid}`;
|
|
5279
4413
|
await import_fs.default.promises.copyFile(sourcePath, tempPath);
|
|
5280
4414
|
await import_fs.default.promises.rename(tempPath, targetPath);
|
|
5281
4415
|
}
|
|
@@ -5652,6 +4786,7 @@ var ConstDeclaration = class {
|
|
|
5652
4786
|
constructor(name, type) {
|
|
5653
4787
|
this.name = name;
|
|
5654
4788
|
this.type = type;
|
|
4789
|
+
__publicField(this, "docComment");
|
|
5655
4790
|
}
|
|
5656
4791
|
setDocComment(docComment2) {
|
|
5657
4792
|
this.docComment = docComment2;
|
|
@@ -5671,7 +4806,7 @@ function constDeclaration(name, type) {
|
|
|
5671
4806
|
// src/generation/ts-builders/DocComment.ts
|
|
5672
4807
|
var DocComment = class {
|
|
5673
4808
|
constructor(startingText) {
|
|
5674
|
-
this
|
|
4809
|
+
__publicField(this, "lines", []);
|
|
5675
4810
|
if (startingText) {
|
|
5676
4811
|
this.addText(startingText);
|
|
5677
4812
|
}
|
|
@@ -5746,6 +4881,7 @@ function getIndent(line) {
|
|
|
5746
4881
|
var Export = class {
|
|
5747
4882
|
constructor(declaration) {
|
|
5748
4883
|
this.declaration = declaration;
|
|
4884
|
+
__publicField(this, "docComment");
|
|
5749
4885
|
}
|
|
5750
4886
|
setDocComment(docComment2) {
|
|
5751
4887
|
this.docComment = docComment2;
|
|
@@ -5775,7 +4911,7 @@ var NamespaceExport = class {
|
|
|
5775
4911
|
var BindingsExport = class {
|
|
5776
4912
|
constructor(from) {
|
|
5777
4913
|
this.from = from;
|
|
5778
|
-
this
|
|
4914
|
+
__publicField(this, "namedExports", []);
|
|
5779
4915
|
}
|
|
5780
4916
|
named(namedExport) {
|
|
5781
4917
|
if (typeof namedExport === "string") {
|
|
@@ -5791,6 +4927,7 @@ var BindingsExport = class {
|
|
|
5791
4927
|
var NamedExport = class {
|
|
5792
4928
|
constructor(name) {
|
|
5793
4929
|
this.name = name;
|
|
4930
|
+
__publicField(this, "alias");
|
|
5794
4931
|
}
|
|
5795
4932
|
as(alias) {
|
|
5796
4933
|
this.alias = alias;
|
|
@@ -5824,8 +4961,8 @@ function moduleExportFrom(from) {
|
|
|
5824
4961
|
// src/generation/ts-builders/File.ts
|
|
5825
4962
|
var File = class {
|
|
5826
4963
|
constructor() {
|
|
5827
|
-
this
|
|
5828
|
-
this
|
|
4964
|
+
__publicField(this, "imports", []);
|
|
4965
|
+
__publicField(this, "declarations", []);
|
|
5829
4966
|
}
|
|
5830
4967
|
addImport(moduleImport2) {
|
|
5831
4968
|
this.imports.push(moduleImport2);
|
|
@@ -5881,12 +5018,12 @@ init_TypeBuilder();
|
|
|
5881
5018
|
var FunctionType = class extends TypeBuilder {
|
|
5882
5019
|
constructor() {
|
|
5883
5020
|
super(...arguments);
|
|
5884
|
-
this
|
|
5885
|
-
this
|
|
5886
|
-
this
|
|
5887
|
-
this
|
|
5888
|
-
this
|
|
5889
|
-
this
|
|
5021
|
+
__publicField(this, "needsParenthesisWhenIndexed", true);
|
|
5022
|
+
__publicField(this, "needsParenthesisInKeyof", true);
|
|
5023
|
+
__publicField(this, "needsParenthesisInUnion", true);
|
|
5024
|
+
__publicField(this, "returnType", voidType);
|
|
5025
|
+
__publicField(this, "parameters", []);
|
|
5026
|
+
__publicField(this, "genericParameters", []);
|
|
5890
5027
|
}
|
|
5891
5028
|
setReturnType(returnType) {
|
|
5892
5029
|
this.returnType = returnType;
|
|
@@ -5917,7 +5054,7 @@ var NamedType = class extends TypeBuilder {
|
|
|
5917
5054
|
constructor(name) {
|
|
5918
5055
|
super();
|
|
5919
5056
|
this.name = name;
|
|
5920
|
-
this
|
|
5057
|
+
__publicField(this, "genericArguments", []);
|
|
5921
5058
|
}
|
|
5922
5059
|
addGenericArgument(type) {
|
|
5923
5060
|
this.genericArguments.push(type);
|
|
@@ -5938,6 +5075,8 @@ function namedType(name) {
|
|
|
5938
5075
|
var GenericParameter = class {
|
|
5939
5076
|
constructor(name) {
|
|
5940
5077
|
this.name = name;
|
|
5078
|
+
__publicField(this, "extendedType");
|
|
5079
|
+
__publicField(this, "defaultType");
|
|
5941
5080
|
}
|
|
5942
5081
|
extends(type) {
|
|
5943
5082
|
this.extendedType = type;
|
|
@@ -5991,7 +5130,8 @@ var NamespaceImport = class {
|
|
|
5991
5130
|
var BindingsImport = class {
|
|
5992
5131
|
constructor(from) {
|
|
5993
5132
|
this.from = from;
|
|
5994
|
-
this
|
|
5133
|
+
__publicField(this, "defaultImport");
|
|
5134
|
+
__publicField(this, "namedImports", []);
|
|
5995
5135
|
}
|
|
5996
5136
|
default(name) {
|
|
5997
5137
|
this.defaultImport = name;
|
|
@@ -6024,6 +5164,7 @@ var BindingsImport = class {
|
|
|
6024
5164
|
var NamedImport = class {
|
|
6025
5165
|
constructor(name) {
|
|
6026
5166
|
this.name = name;
|
|
5167
|
+
__publicField(this, "alias");
|
|
6027
5168
|
}
|
|
6028
5169
|
as(alias) {
|
|
6029
5170
|
this.alias = alias;
|
|
@@ -6063,10 +5204,10 @@ var InterfaceDeclaration = class extends TypeBuilder {
|
|
|
6063
5204
|
constructor(name) {
|
|
6064
5205
|
super();
|
|
6065
5206
|
this.name = name;
|
|
6066
|
-
this
|
|
6067
|
-
this
|
|
6068
|
-
this
|
|
6069
|
-
this
|
|
5207
|
+
__publicField(this, "needsParenthesisWhenIndexed", true);
|
|
5208
|
+
__publicField(this, "items", []);
|
|
5209
|
+
__publicField(this, "genericParameters", []);
|
|
5210
|
+
__publicField(this, "extendedTypes", []);
|
|
6070
5211
|
}
|
|
6071
5212
|
add(item) {
|
|
6072
5213
|
this.items.push(item);
|
|
@@ -6113,9 +5254,10 @@ function interfaceDeclaration(name) {
|
|
|
6113
5254
|
var Method = class {
|
|
6114
5255
|
constructor(name) {
|
|
6115
5256
|
this.name = name;
|
|
6116
|
-
this
|
|
6117
|
-
this
|
|
6118
|
-
this
|
|
5257
|
+
__publicField(this, "docComment");
|
|
5258
|
+
__publicField(this, "returnType", voidType);
|
|
5259
|
+
__publicField(this, "parameters", []);
|
|
5260
|
+
__publicField(this, "genericParameters", []);
|
|
6119
5261
|
}
|
|
6120
5262
|
setDocComment(docComment2) {
|
|
6121
5263
|
this.docComment = docComment2;
|
|
@@ -6159,7 +5301,7 @@ function method(name) {
|
|
|
6159
5301
|
var NamespaceDeclaration = class {
|
|
6160
5302
|
constructor(name) {
|
|
6161
5303
|
this.name = name;
|
|
6162
|
-
this
|
|
5304
|
+
__publicField(this, "items", []);
|
|
6163
5305
|
}
|
|
6164
5306
|
add(declaration) {
|
|
6165
5307
|
this.items.push(declaration);
|
|
@@ -6181,9 +5323,9 @@ init_TypeBuilder();
|
|
|
6181
5323
|
var ObjectType = class extends TypeBuilder {
|
|
6182
5324
|
constructor() {
|
|
6183
5325
|
super(...arguments);
|
|
6184
|
-
this
|
|
6185
|
-
this
|
|
6186
|
-
this
|
|
5326
|
+
__publicField(this, "needsParenthesisWhenIndexed", true);
|
|
5327
|
+
__publicField(this, "items", []);
|
|
5328
|
+
__publicField(this, "inline", false);
|
|
6187
5329
|
}
|
|
6188
5330
|
add(item) {
|
|
6189
5331
|
this.items.push(item);
|
|
@@ -6228,7 +5370,7 @@ var Parameter = class {
|
|
|
6228
5370
|
constructor(name, type) {
|
|
6229
5371
|
this.name = name;
|
|
6230
5372
|
this.type = type;
|
|
6231
|
-
this
|
|
5373
|
+
__publicField(this, "isOptional", false);
|
|
6232
5374
|
}
|
|
6233
5375
|
optional() {
|
|
6234
5376
|
this.isOptional = true;
|
|
@@ -6251,8 +5393,9 @@ var Property = class {
|
|
|
6251
5393
|
constructor(name, type) {
|
|
6252
5394
|
this.name = name;
|
|
6253
5395
|
this.type = type;
|
|
6254
|
-
this
|
|
6255
|
-
this
|
|
5396
|
+
__publicField(this, "isOptional", false);
|
|
5397
|
+
__publicField(this, "isReadonly", false);
|
|
5398
|
+
__publicField(this, "docComment");
|
|
6256
5399
|
}
|
|
6257
5400
|
optional() {
|
|
6258
5401
|
this.isOptional = true;
|
|
@@ -6297,9 +5440,11 @@ var INDENT_SIZE = 2;
|
|
|
6297
5440
|
var Writer = class {
|
|
6298
5441
|
constructor(startingIndent = 0, context) {
|
|
6299
5442
|
this.context = context;
|
|
6300
|
-
this
|
|
6301
|
-
this
|
|
6302
|
-
this
|
|
5443
|
+
__publicField(this, "lines", []);
|
|
5444
|
+
__publicField(this, "currentLine", "");
|
|
5445
|
+
__publicField(this, "currentIndent", 0);
|
|
5446
|
+
__publicField(this, "marginSymbol");
|
|
5447
|
+
__publicField(this, "afterNextNewLineCallback");
|
|
6303
5448
|
this.currentIndent = startingIndent;
|
|
6304
5449
|
}
|
|
6305
5450
|
/**
|
|
@@ -6475,6 +5620,7 @@ init_TypeBuilder();
|
|
|
6475
5620
|
var TupleItem = class {
|
|
6476
5621
|
constructor(type) {
|
|
6477
5622
|
this.type = type;
|
|
5623
|
+
__publicField(this, "name");
|
|
6478
5624
|
}
|
|
6479
5625
|
setName(name) {
|
|
6480
5626
|
this.name = name;
|
|
@@ -6490,7 +5636,7 @@ var TupleItem = class {
|
|
|
6490
5636
|
var TupleType = class extends TypeBuilder {
|
|
6491
5637
|
constructor() {
|
|
6492
5638
|
super(...arguments);
|
|
6493
|
-
this
|
|
5639
|
+
__publicField(this, "items", []);
|
|
6494
5640
|
}
|
|
6495
5641
|
add(item) {
|
|
6496
5642
|
if (item instanceof TypeBuilder) {
|
|
@@ -6515,7 +5661,8 @@ var TypeDeclaration = class {
|
|
|
6515
5661
|
constructor(name, type) {
|
|
6516
5662
|
this.name = name;
|
|
6517
5663
|
this.type = type;
|
|
6518
|
-
this
|
|
5664
|
+
__publicField(this, "genericParameters", []);
|
|
5665
|
+
__publicField(this, "docComment");
|
|
6519
5666
|
}
|
|
6520
5667
|
addGenericParameter(param) {
|
|
6521
5668
|
this.genericParameters.push(param);
|
|
@@ -6549,8 +5696,9 @@ init_TypeBuilder();
|
|
|
6549
5696
|
var UnionType = class extends TypeBuilder {
|
|
6550
5697
|
constructor(firstType) {
|
|
6551
5698
|
super();
|
|
6552
|
-
this
|
|
6553
|
-
this
|
|
5699
|
+
__publicField(this, "needsParenthesisWhenIndexed", true);
|
|
5700
|
+
__publicField(this, "needsParenthesisInKeyof", true);
|
|
5701
|
+
__publicField(this, "variants");
|
|
6554
5702
|
this.variants = [firstType];
|
|
6555
5703
|
}
|
|
6556
5704
|
addVariant(variant) {
|
|
@@ -6835,6 +5983,7 @@ var InputType = class {
|
|
|
6835
5983
|
constructor(type, context) {
|
|
6836
5984
|
this.type = type;
|
|
6837
5985
|
this.context = context;
|
|
5986
|
+
__publicField(this, "generatedName");
|
|
6838
5987
|
this.generatedName = type.name;
|
|
6839
5988
|
}
|
|
6840
5989
|
toTS() {
|
|
@@ -7408,7 +6557,8 @@ var ArgsTypeBuilder = class {
|
|
|
7408
6557
|
this.type = type;
|
|
7409
6558
|
this.context = context;
|
|
7410
6559
|
this.action = action;
|
|
7411
|
-
this
|
|
6560
|
+
__publicField(this, "moduleExport");
|
|
6561
|
+
__publicField(this, "hasDefaultName", true);
|
|
7412
6562
|
this.moduleExport = moduleExport(
|
|
7413
6563
|
typeDeclaration(getModelArgName(type.name, action), objectType()).addGenericParameter(extArgsParam)
|
|
7414
6564
|
).setDocComment(docComment(`${type.name} ${action ?? "without action"}`));
|
|
@@ -7678,6 +6828,11 @@ var Model = class {
|
|
|
7678
6828
|
constructor(model, context) {
|
|
7679
6829
|
this.model = model;
|
|
7680
6830
|
this.context = context;
|
|
6831
|
+
__publicField(this, "type");
|
|
6832
|
+
__publicField(this, "createManyAndReturnType");
|
|
6833
|
+
__publicField(this, "updateManyAndReturnType");
|
|
6834
|
+
__publicField(this, "mapping");
|
|
6835
|
+
__publicField(this, "dmmf");
|
|
7681
6836
|
this.dmmf = context.dmmf;
|
|
7682
6837
|
this.type = this.context.dmmf.outputTypeMap.model[model.name];
|
|
7683
6838
|
this.createManyAndReturnType = this.context.dmmf.outputTypeMap.model[getCreateManyAndReturnOutputType(model.name)];
|
|
@@ -8007,7 +7162,7 @@ var ModelDelegate = class {
|
|
|
8007
7162
|
const nonAggregateActions = this.getNonAggregateActions(availableActions);
|
|
8008
7163
|
const groupByArgsName = getGroupByArgsName(name);
|
|
8009
7164
|
const countArgsName = getModelArgName(name, DMMF.ModelAction.count);
|
|
8010
|
-
const genericDelegateParams = [extArgsParam, genericParameter("
|
|
7165
|
+
const genericDelegateParams = [extArgsParam, genericParameter("GlobalOmitOptions").default(objectType())];
|
|
8011
7166
|
const excludedArgsForCount = ["select", "include", "distinct", "omit"];
|
|
8012
7167
|
if (this.context.isPreviewFeatureOn("relationJoins")) {
|
|
8013
7168
|
excludedArgsForCount.push("relationLoadStrategy");
|
|
@@ -8191,14 +7346,14 @@ function getReturnType({
|
|
|
8191
7346
|
return getFluentWrapper(modelName, getResultType(modelName, actionName));
|
|
8192
7347
|
}
|
|
8193
7348
|
function getFluentWrapper(modelName, resultType, nullType2 = neverType) {
|
|
8194
|
-
return namedType(fluentWrapperName(modelName)).addGenericArgument(resultType).addGenericArgument(nullType2).addGenericArgument(extArgsParam.toArgument()).addGenericArgument(namedType("
|
|
7349
|
+
return namedType(fluentWrapperName(modelName)).addGenericArgument(resultType).addGenericArgument(nullType2).addGenericArgument(extArgsParam.toArgument()).addGenericArgument(namedType("GlobalOmitOptions"));
|
|
8195
7350
|
}
|
|
8196
7351
|
function getResultType(modelName, actionName) {
|
|
8197
|
-
return namedType("$Result.GetResult").addGenericArgument(namedType(getPayloadName(modelName)).addGenericArgument(extArgsParam.toArgument())).addGenericArgument(namedType("T")).addGenericArgument(stringLiteral(actionName)).addGenericArgument(namedType("
|
|
7352
|
+
return namedType("$Result.GetResult").addGenericArgument(namedType(getPayloadName(modelName)).addGenericArgument(extArgsParam.toArgument())).addGenericArgument(namedType("T")).addGenericArgument(stringLiteral(actionName)).addGenericArgument(namedType("GlobalOmitOptions"));
|
|
8198
7353
|
}
|
|
8199
7354
|
function buildFluentWrapperDefinition(modelName, outputType, context) {
|
|
8200
7355
|
const definition = interfaceDeclaration(fluentWrapperName(modelName));
|
|
8201
|
-
definition.addGenericParameter(genericParameter("T")).addGenericParameter(genericParameter("Null").default(neverType)).addGenericParameter(extArgsParam).addGenericParameter(genericParameter("
|
|
7356
|
+
definition.addGenericParameter(genericParameter("T")).addGenericParameter(genericParameter("Null").default(neverType)).addGenericParameter(extArgsParam).addGenericParameter(genericParameter("GlobalOmitOptions").default(objectType())).extends(prismaPromise(namedType("T")));
|
|
8202
7357
|
definition.add(property(toStringTag, stringLiteral("PrismaPromise")).readonly());
|
|
8203
7358
|
definition.addMultiple(
|
|
8204
7359
|
outputType.fields.filter(
|
|
@@ -8284,6 +7439,12 @@ var import_path4 = __toESM(require("path"));
|
|
|
8284
7439
|
var DMMFHelper = class {
|
|
8285
7440
|
constructor(document) {
|
|
8286
7441
|
this.document = document;
|
|
7442
|
+
__publicField(this, "_compositeNames");
|
|
7443
|
+
__publicField(this, "_inputTypesByName");
|
|
7444
|
+
__publicField(this, "_typeAndModelMap");
|
|
7445
|
+
__publicField(this, "_mappingsMap");
|
|
7446
|
+
__publicField(this, "_outputTypeMap");
|
|
7447
|
+
__publicField(this, "_rootFieldMap");
|
|
8287
7448
|
}
|
|
8288
7449
|
get compositeNames() {
|
|
8289
7450
|
return this._compositeNames ??= new Set(this.datamodel.types.map((t) => t.name));
|
|
@@ -8393,7 +7554,7 @@ function fullyQualifiedName(typeName, namespace2) {
|
|
|
8393
7554
|
// src/generation/Cache.ts
|
|
8394
7555
|
var Cache = class {
|
|
8395
7556
|
constructor() {
|
|
8396
|
-
this
|
|
7557
|
+
__publicField(this, "_map", /* @__PURE__ */ new Map());
|
|
8397
7558
|
}
|
|
8398
7559
|
get(key) {
|
|
8399
7560
|
return this._map.get(key)?.value;
|
|
@@ -8416,7 +7577,7 @@ var Cache = class {
|
|
|
8416
7577
|
var GenericArgsInfo = class {
|
|
8417
7578
|
constructor(_dmmf) {
|
|
8418
7579
|
this._dmmf = _dmmf;
|
|
8419
|
-
this
|
|
7580
|
+
__publicField(this, "_cache", new Cache());
|
|
8420
7581
|
}
|
|
8421
7582
|
/**
|
|
8422
7583
|
* Determines if arg types need generic <$PrismaModel> argument added.
|
|
@@ -9175,7 +8336,7 @@ type NoExpand<T> = T extends unknown ? T : never;
|
|
|
9175
8336
|
type AtLeast<O extends object, K extends string> = NoExpand<
|
|
9176
8337
|
O extends unknown
|
|
9177
8338
|
? | (K extends keyof O ? { [P in K]: O[P] } & O : O)
|
|
9178
|
-
| {[P in keyof O as P extends K ?
|
|
8339
|
+
| {[P in keyof O as P extends K ? P : never]-?: O[P]} & O
|
|
9179
8340
|
: never>;
|
|
9180
8341
|
|
|
9181
8342
|
type _Strict<U, _U = U> = U extends unknown ? U & OptionalFlat<_Record<Exclude<Keys<_U>, keyof U>, never>> : never;
|
|
@@ -9402,6 +8563,9 @@ export type ${this.type.name}<$PrismaModel> = FieldRefInputType<$PrismaModel, ${
|
|
|
9402
8563
|
// src/generation/TSClient/GenerateContext.ts
|
|
9403
8564
|
var GenerateContext = class {
|
|
9404
8565
|
constructor({ dmmf, genericArgsInfo, generator }) {
|
|
8566
|
+
__publicField(this, "dmmf");
|
|
8567
|
+
__publicField(this, "genericArgsInfo");
|
|
8568
|
+
__publicField(this, "generator");
|
|
9405
8569
|
this.dmmf = dmmf;
|
|
9406
8570
|
this.genericArgsInfo = genericArgsInfo;
|
|
9407
8571
|
this.generator = generator;
|
|
@@ -9481,7 +8645,7 @@ function clientTypeMapModelsDefinition(context) {
|
|
|
9481
8645
|
return property(modelName, entry);
|
|
9482
8646
|
})
|
|
9483
8647
|
);
|
|
9484
|
-
return objectType().add(property("meta", meta)).add(property("model", model));
|
|
8648
|
+
return objectType().add(property("globalOmitOptions", objectType().add(property("omit", namedType("GlobalOmitOptions"))))).add(property("meta", meta)).add(property("model", model));
|
|
9485
8649
|
}
|
|
9486
8650
|
function clientTypeMapModelsResultDefinition(modelName, action) {
|
|
9487
8651
|
if (action === "count")
|
|
@@ -9545,11 +8709,11 @@ function clientTypeMapOthersDefinition(context) {
|
|
|
9545
8709
|
function clientTypeMapDefinition(context) {
|
|
9546
8710
|
const typeMap = `${stringify(clientTypeMapModelsDefinition(context))} & ${clientTypeMapOthersDefinition(context)}`;
|
|
9547
8711
|
return `
|
|
9548
|
-
interface TypeMapCb extends $Utils.Fn<{extArgs: $Extensions.InternalArgs
|
|
9549
|
-
returns: Prisma.TypeMap<this['params']['extArgs'],
|
|
8712
|
+
interface TypeMapCb<ClientOptions = {}> extends $Utils.Fn<{extArgs: $Extensions.InternalArgs }, $Utils.Record<string, any>> {
|
|
8713
|
+
returns: Prisma.TypeMap<this['params']['extArgs'], ClientOptions extends { omit: infer OmitOptions } ? OmitOptions : {}>
|
|
9550
8714
|
}
|
|
9551
8715
|
|
|
9552
|
-
export type TypeMap<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs,
|
|
8716
|
+
export type TypeMap<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> = ${typeMap}`;
|
|
9553
8717
|
}
|
|
9554
8718
|
function clientExtensionsDefinitions(context) {
|
|
9555
8719
|
const typeMap = clientTypeMapDefinition(context);
|
|
@@ -9562,9 +8726,9 @@ function clientExtensionsDefinitions(context) {
|
|
|
9562
8726
|
return [typeMap, stringify(define2)].join("\n");
|
|
9563
8727
|
}
|
|
9564
8728
|
function extendsPropertyDefinition() {
|
|
9565
|
-
const extendsDefinition = namedType("$Extensions.ExtendsHook").addGenericArgument(stringLiteral("extends")).addGenericArgument(namedType("Prisma.TypeMapCb")).addGenericArgument(namedType("ExtArgs")).addGenericArgument(
|
|
9566
|
-
namedType("$Utils.Call").addGenericArgument(namedType("Prisma.TypeMapCb")).addGenericArgument(objectType().add(property("extArgs", namedType("ExtArgs"))))
|
|
9567
|
-
)
|
|
8729
|
+
const extendsDefinition = namedType("$Extensions.ExtendsHook").addGenericArgument(stringLiteral("extends")).addGenericArgument(namedType("Prisma.TypeMapCb").addGenericArgument(namedType("ClientOptions"))).addGenericArgument(namedType("ExtArgs")).addGenericArgument(
|
|
8730
|
+
namedType("$Utils.Call").addGenericArgument(namedType("Prisma.TypeMapCb").addGenericArgument(namedType("ClientOptions"))).addGenericArgument(objectType().add(property("extArgs", namedType("ExtArgs"))))
|
|
8731
|
+
);
|
|
9568
8732
|
return stringify(property("$extends", extendsDefinition), { indentLevel: 1 });
|
|
9569
8733
|
}
|
|
9570
8734
|
function batchingTransactionDefinition(context) {
|
|
@@ -9732,9 +8896,9 @@ function applyPendingMigrationsDefinition() {
|
|
|
9732
8896
|
}
|
|
9733
8897
|
function eventRegistrationMethodDeclaration(runtimeNameTs) {
|
|
9734
8898
|
if (runtimeNameTs === "binary.js") {
|
|
9735
|
-
return `$on<V extends (U | 'beforeExit')>(eventType: V, callback: (event: V extends 'query' ? Prisma.QueryEvent : V extends 'beforeExit' ? () => $Utils.JsPromise<void> : Prisma.LogEvent) => void):
|
|
8899
|
+
return `$on<V extends (U | 'beforeExit')>(eventType: V, callback: (event: V extends 'query' ? Prisma.QueryEvent : V extends 'beforeExit' ? () => $Utils.JsPromise<void> : Prisma.LogEvent) => void): PrismaClient;`;
|
|
9736
8900
|
} else {
|
|
9737
|
-
return `$on<V extends U>(eventType: V, callback: (event: V extends 'query' ? Prisma.QueryEvent : Prisma.LogEvent) => void):
|
|
8901
|
+
return `$on<V extends U>(eventType: V, callback: (event: V extends 'query' ? Prisma.QueryEvent : Prisma.LogEvent) => void): PrismaClient;`;
|
|
9738
8902
|
}
|
|
9739
8903
|
}
|
|
9740
8904
|
var PrismaClientClass = class {
|
|
@@ -9991,6 +9155,8 @@ export type TransactionClient = Omit<Prisma.DefaultPrismaClient, runtime.ITXClie
|
|
|
9991
9155
|
var TSClient = class {
|
|
9992
9156
|
constructor(options) {
|
|
9993
9157
|
this.options = options;
|
|
9158
|
+
__publicField(this, "dmmf");
|
|
9159
|
+
__publicField(this, "genericsInfo");
|
|
9994
9160
|
this.dmmf = new DMMFHelper(options.dmmf);
|
|
9995
9161
|
this.genericsInfo = new GenericArgsInfo(this.dmmf);
|
|
9996
9162
|
}
|
|
@@ -10274,6 +9440,7 @@ Object.assign(exports, Prisma)
|
|
|
10274
9440
|
// src/generation/typedSql/buildDbEnums.ts
|
|
10275
9441
|
var DbEnumsList = class {
|
|
10276
9442
|
constructor(enums) {
|
|
9443
|
+
__publicField(this, "enums");
|
|
10277
9444
|
this.enums = enums.map((dmmfEnum) => ({
|
|
10278
9445
|
name: dmmfEnum.dbName ?? dmmfEnum.name,
|
|
10279
9446
|
values: dmmfEnum.values.map((dmmfValue) => dmmfValue.dbName ?? dmmfValue.name)
|