@modern-js/monorepo-generator 3.0.9 → 3.0.11
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/README.md +2 -2
- package/dist/index.js +758 -714
- package/package.json +14 -14
package/dist/index.js
CHANGED
@@ -82,9 +82,9 @@ var __async = (__this, __arguments, generator) => {
|
|
82
82
|
});
|
83
83
|
};
|
84
84
|
|
85
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
85
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/logger/constants.js
|
86
86
|
var require_constants = __commonJS({
|
87
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
87
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/logger/constants.js"(exports) {
|
88
88
|
"use strict";
|
89
89
|
Object.defineProperty(exports, "__esModule", {
|
90
90
|
value: true
|
@@ -19059,11 +19059,11 @@ var require_lodash = __commonJS({
|
|
19059
19059
|
return isFunction(object[key]);
|
19060
19060
|
});
|
19061
19061
|
}
|
19062
|
-
function baseGet(object,
|
19063
|
-
|
19064
|
-
var index = 0, length =
|
19062
|
+
function baseGet(object, path3) {
|
19063
|
+
path3 = castPath(path3, object);
|
19064
|
+
var index = 0, length = path3.length;
|
19065
19065
|
while (object != null && index < length) {
|
19066
|
-
object = object[toKey(
|
19066
|
+
object = object[toKey(path3[index++])];
|
19067
19067
|
}
|
19068
19068
|
return index && index == length ? object : undefined2;
|
19069
19069
|
}
|
@@ -19127,10 +19127,10 @@ var require_lodash = __commonJS({
|
|
19127
19127
|
});
|
19128
19128
|
return accumulator;
|
19129
19129
|
}
|
19130
|
-
function baseInvoke(object,
|
19131
|
-
|
19132
|
-
object = parent(object,
|
19133
|
-
var func = object == null ? object : object[toKey(last(
|
19130
|
+
function baseInvoke(object, path3, args) {
|
19131
|
+
path3 = castPath(path3, object);
|
19132
|
+
object = parent(object, path3);
|
19133
|
+
var func = object == null ? object : object[toKey(last(path3))];
|
19134
19134
|
return func == null ? undefined2 : apply(func, object, args);
|
19135
19135
|
}
|
19136
19136
|
function baseIsArguments(value) {
|
@@ -19286,13 +19286,13 @@ var require_lodash = __commonJS({
|
|
19286
19286
|
return object === source || baseIsMatch(object, source, matchData);
|
19287
19287
|
};
|
19288
19288
|
}
|
19289
|
-
function baseMatchesProperty(
|
19290
|
-
if (isKey(
|
19291
|
-
return matchesStrictComparable(toKey(
|
19289
|
+
function baseMatchesProperty(path3, srcValue) {
|
19290
|
+
if (isKey(path3) && isStrictComparable(srcValue)) {
|
19291
|
+
return matchesStrictComparable(toKey(path3), srcValue);
|
19292
19292
|
}
|
19293
19293
|
return function(object) {
|
19294
|
-
var objValue = get2(object,
|
19295
|
-
return objValue === undefined2 && objValue === srcValue ? hasIn(object,
|
19294
|
+
var objValue = get2(object, path3);
|
19295
|
+
return objValue === undefined2 && objValue === srcValue ? hasIn(object, path3) : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);
|
19296
19296
|
};
|
19297
19297
|
}
|
19298
19298
|
function baseMerge(object, source, srcIndex, customizer, stack) {
|
@@ -19389,23 +19389,23 @@ var require_lodash = __commonJS({
|
|
19389
19389
|
});
|
19390
19390
|
}
|
19391
19391
|
function basePick(object, paths) {
|
19392
|
-
return basePickBy(object, paths, function(value,
|
19393
|
-
return hasIn(object,
|
19392
|
+
return basePickBy(object, paths, function(value, path3) {
|
19393
|
+
return hasIn(object, path3);
|
19394
19394
|
});
|
19395
19395
|
}
|
19396
19396
|
function basePickBy(object, paths, predicate) {
|
19397
19397
|
var index = -1, length = paths.length, result2 = {};
|
19398
19398
|
while (++index < length) {
|
19399
|
-
var
|
19400
|
-
if (predicate(value,
|
19401
|
-
baseSet(result2, castPath(
|
19399
|
+
var path3 = paths[index], value = baseGet(object, path3);
|
19400
|
+
if (predicate(value, path3)) {
|
19401
|
+
baseSet(result2, castPath(path3, object), value);
|
19402
19402
|
}
|
19403
19403
|
}
|
19404
19404
|
return result2;
|
19405
19405
|
}
|
19406
|
-
function basePropertyDeep(
|
19406
|
+
function basePropertyDeep(path3) {
|
19407
19407
|
return function(object) {
|
19408
|
-
return baseGet(object,
|
19408
|
+
return baseGet(object, path3);
|
19409
19409
|
};
|
19410
19410
|
}
|
19411
19411
|
function basePullAll(array, values2, iteratee2, comparator) {
|
@@ -19479,14 +19479,14 @@ var require_lodash = __commonJS({
|
|
19479
19479
|
var array = values(collection);
|
19480
19480
|
return shuffleSelf(array, baseClamp(n, 0, array.length));
|
19481
19481
|
}
|
19482
|
-
function baseSet(object,
|
19482
|
+
function baseSet(object, path3, value, customizer) {
|
19483
19483
|
if (!isObject2(object)) {
|
19484
19484
|
return object;
|
19485
19485
|
}
|
19486
|
-
|
19487
|
-
var index = -1, length =
|
19486
|
+
path3 = castPath(path3, object);
|
19487
|
+
var index = -1, length = path3.length, lastIndex = length - 1, nested = object;
|
19488
19488
|
while (nested != null && ++index < length) {
|
19489
|
-
var key = toKey(
|
19489
|
+
var key = toKey(path3[index]), newValue = value;
|
19490
19490
|
if (key === "__proto__" || key === "constructor" || key === "prototype") {
|
19491
19491
|
return object;
|
19492
19492
|
}
|
@@ -19494,7 +19494,7 @@ var require_lodash = __commonJS({
|
|
19494
19494
|
var objValue = nested[key];
|
19495
19495
|
newValue = customizer ? customizer(objValue, key, nested) : undefined2;
|
19496
19496
|
if (newValue === undefined2) {
|
19497
|
-
newValue = isObject2(objValue) ? objValue : isIndex(
|
19497
|
+
newValue = isObject2(objValue) ? objValue : isIndex(path3[index + 1]) ? [] : {};
|
19498
19498
|
}
|
19499
19499
|
}
|
19500
19500
|
assignValue(nested, key, newValue);
|
@@ -19660,13 +19660,13 @@ var require_lodash = __commonJS({
|
|
19660
19660
|
}
|
19661
19661
|
return result2;
|
19662
19662
|
}
|
19663
|
-
function baseUnset(object,
|
19664
|
-
|
19665
|
-
object = parent(object,
|
19666
|
-
return object == null || delete object[toKey(last(
|
19663
|
+
function baseUnset(object, path3) {
|
19664
|
+
path3 = castPath(path3, object);
|
19665
|
+
object = parent(object, path3);
|
19666
|
+
return object == null || delete object[toKey(last(path3))];
|
19667
19667
|
}
|
19668
|
-
function baseUpdate(object,
|
19669
|
-
return baseSet(object,
|
19668
|
+
function baseUpdate(object, path3, updater, customizer) {
|
19669
|
+
return baseSet(object, path3, updater(baseGet(object, path3)), customizer);
|
19670
19670
|
}
|
19671
19671
|
function baseWhile(array, predicate, isDrop, fromRight) {
|
19672
19672
|
var length = array.length, index = fromRight ? length : -1;
|
@@ -20549,11 +20549,11 @@ var require_lodash = __commonJS({
|
|
20549
20549
|
var match = source.match(reWrapDetails);
|
20550
20550
|
return match ? match[1].split(reSplitDetails) : [];
|
20551
20551
|
}
|
20552
|
-
function hasPath(object,
|
20553
|
-
|
20554
|
-
var index = -1, length =
|
20552
|
+
function hasPath(object, path3, hasFunc) {
|
20553
|
+
path3 = castPath(path3, object);
|
20554
|
+
var index = -1, length = path3.length, result2 = false;
|
20555
20555
|
while (++index < length) {
|
20556
|
-
var key = toKey(
|
20556
|
+
var key = toKey(path3[index]);
|
20557
20557
|
if (!(result2 = object != null && hasFunc(object, key))) {
|
20558
20558
|
break;
|
20559
20559
|
}
|
@@ -20755,8 +20755,8 @@ var require_lodash = __commonJS({
|
|
20755
20755
|
return apply(func, this, otherArgs);
|
20756
20756
|
};
|
20757
20757
|
}
|
20758
|
-
function parent(object,
|
20759
|
-
return
|
20758
|
+
function parent(object, path3) {
|
20759
|
+
return path3.length < 2 ? object : baseGet(object, baseSlice(path3, 0, -1));
|
20760
20760
|
}
|
20761
20761
|
function reorder(array, indexes) {
|
20762
20762
|
var arrLength = array.length, length = nativeMin(indexes.length, arrLength), oldArray = copyArray(array);
|
@@ -21391,10 +21391,10 @@ var require_lodash = __commonJS({
|
|
21391
21391
|
}
|
21392
21392
|
return isString2(collection) ? fromIndex <= length && collection.indexOf(value, fromIndex) > -1 : !!length && baseIndexOf(collection, value, fromIndex) > -1;
|
21393
21393
|
}
|
21394
|
-
var invokeMap = baseRest(function(collection,
|
21395
|
-
var index = -1, isFunc = typeof
|
21394
|
+
var invokeMap = baseRest(function(collection, path3, args) {
|
21395
|
+
var index = -1, isFunc = typeof path3 == "function", result2 = isArrayLike(collection) ? Array2(collection.length) : [];
|
21396
21396
|
baseEach(collection, function(value) {
|
21397
|
-
result2[++index] = isFunc ? apply(
|
21397
|
+
result2[++index] = isFunc ? apply(path3, value, args) : baseInvoke(value, path3, args);
|
21398
21398
|
});
|
21399
21399
|
return result2;
|
21400
21400
|
});
|
@@ -22046,15 +22046,15 @@ var require_lodash = __commonJS({
|
|
22046
22046
|
function functionsIn(object) {
|
22047
22047
|
return object == null ? [] : baseFunctions(object, keysIn(object));
|
22048
22048
|
}
|
22049
|
-
function get2(object,
|
22050
|
-
var result2 = object == null ? undefined2 : baseGet(object,
|
22049
|
+
function get2(object, path3, defaultValue) {
|
22050
|
+
var result2 = object == null ? undefined2 : baseGet(object, path3);
|
22051
22051
|
return result2 === undefined2 ? defaultValue : result2;
|
22052
22052
|
}
|
22053
|
-
function has2(object,
|
22054
|
-
return object != null && hasPath(object,
|
22053
|
+
function has2(object, path3) {
|
22054
|
+
return object != null && hasPath(object, path3, baseHas);
|
22055
22055
|
}
|
22056
|
-
function hasIn(object,
|
22057
|
-
return object != null && hasPath(object,
|
22056
|
+
function hasIn(object, path3) {
|
22057
|
+
return object != null && hasPath(object, path3, baseHasIn);
|
22058
22058
|
}
|
22059
22059
|
var invert = createInverter(function(result2, value, key) {
|
22060
22060
|
if (value != null && typeof value.toString != "function") {
|
@@ -22107,10 +22107,10 @@ var require_lodash = __commonJS({
|
|
22107
22107
|
return result2;
|
22108
22108
|
}
|
22109
22109
|
var isDeep = false;
|
22110
|
-
paths = arrayMap(paths, function(
|
22111
|
-
|
22112
|
-
isDeep || (isDeep =
|
22113
|
-
return
|
22110
|
+
paths = arrayMap(paths, function(path3) {
|
22111
|
+
path3 = castPath(path3, object);
|
22112
|
+
isDeep || (isDeep = path3.length > 1);
|
22113
|
+
return path3;
|
22114
22114
|
});
|
22115
22115
|
copyObject(object, getAllKeysIn(object), result2);
|
22116
22116
|
if (isDeep) {
|
@@ -22136,19 +22136,19 @@ var require_lodash = __commonJS({
|
|
22136
22136
|
return [prop];
|
22137
22137
|
});
|
22138
22138
|
predicate = getIteratee(predicate);
|
22139
|
-
return basePickBy(object, props, function(value,
|
22140
|
-
return predicate(value,
|
22139
|
+
return basePickBy(object, props, function(value, path3) {
|
22140
|
+
return predicate(value, path3[0]);
|
22141
22141
|
});
|
22142
22142
|
}
|
22143
|
-
function result(object,
|
22144
|
-
|
22145
|
-
var index = -1, length =
|
22143
|
+
function result(object, path3, defaultValue) {
|
22144
|
+
path3 = castPath(path3, object);
|
22145
|
+
var index = -1, length = path3.length;
|
22146
22146
|
if (!length) {
|
22147
22147
|
length = 1;
|
22148
22148
|
object = undefined2;
|
22149
22149
|
}
|
22150
22150
|
while (++index < length) {
|
22151
|
-
var value = object == null ? undefined2 : object[toKey(
|
22151
|
+
var value = object == null ? undefined2 : object[toKey(path3[index])];
|
22152
22152
|
if (value === undefined2) {
|
22153
22153
|
index = length;
|
22154
22154
|
value = defaultValue;
|
@@ -22157,12 +22157,12 @@ var require_lodash = __commonJS({
|
|
22157
22157
|
}
|
22158
22158
|
return object;
|
22159
22159
|
}
|
22160
|
-
function set(object,
|
22161
|
-
return object == null ? object : baseSet(object,
|
22160
|
+
function set(object, path3, value) {
|
22161
|
+
return object == null ? object : baseSet(object, path3, value);
|
22162
22162
|
}
|
22163
|
-
function setWith(object,
|
22163
|
+
function setWith(object, path3, value, customizer) {
|
22164
22164
|
customizer = typeof customizer == "function" ? customizer : undefined2;
|
22165
|
-
return object == null ? object : baseSet(object,
|
22165
|
+
return object == null ? object : baseSet(object, path3, value, customizer);
|
22166
22166
|
}
|
22167
22167
|
var toPairs = createToPairs(keys);
|
22168
22168
|
var toPairsIn = createToPairs(keysIn);
|
@@ -22184,15 +22184,15 @@ var require_lodash = __commonJS({
|
|
22184
22184
|
});
|
22185
22185
|
return accumulator;
|
22186
22186
|
}
|
22187
|
-
function unset(object,
|
22188
|
-
return object == null ? true : baseUnset(object,
|
22187
|
+
function unset(object, path3) {
|
22188
|
+
return object == null ? true : baseUnset(object, path3);
|
22189
22189
|
}
|
22190
|
-
function update(object,
|
22191
|
-
return object == null ? object : baseUpdate(object,
|
22190
|
+
function update(object, path3, updater) {
|
22191
|
+
return object == null ? object : baseUpdate(object, path3, castFunction(updater));
|
22192
22192
|
}
|
22193
|
-
function updateWith(object,
|
22193
|
+
function updateWith(object, path3, updater, customizer) {
|
22194
22194
|
customizer = typeof customizer == "function" ? customizer : undefined2;
|
22195
|
-
return object == null ? object : baseUpdate(object,
|
22195
|
+
return object == null ? object : baseUpdate(object, path3, castFunction(updater), customizer);
|
22196
22196
|
}
|
22197
22197
|
function values(object) {
|
22198
22198
|
return object == null ? [] : baseValues(object, keys(object));
|
@@ -22573,17 +22573,17 @@ var require_lodash = __commonJS({
|
|
22573
22573
|
function matches(source) {
|
22574
22574
|
return baseMatches(baseClone(source, CLONE_DEEP_FLAG));
|
22575
22575
|
}
|
22576
|
-
function matchesProperty(
|
22577
|
-
return baseMatchesProperty(
|
22576
|
+
function matchesProperty(path3, srcValue) {
|
22577
|
+
return baseMatchesProperty(path3, baseClone(srcValue, CLONE_DEEP_FLAG));
|
22578
22578
|
}
|
22579
|
-
var method = baseRest(function(
|
22579
|
+
var method = baseRest(function(path3, args) {
|
22580
22580
|
return function(object) {
|
22581
|
-
return baseInvoke(object,
|
22581
|
+
return baseInvoke(object, path3, args);
|
22582
22582
|
};
|
22583
22583
|
});
|
22584
22584
|
var methodOf = baseRest(function(object, args) {
|
22585
|
-
return function(
|
22586
|
-
return baseInvoke(object,
|
22585
|
+
return function(path3) {
|
22586
|
+
return baseInvoke(object, path3, args);
|
22587
22587
|
};
|
22588
22588
|
});
|
22589
22589
|
function mixin(object, source, options) {
|
@@ -22630,12 +22630,12 @@ var require_lodash = __commonJS({
|
|
22630
22630
|
var over = createOver(arrayMap);
|
22631
22631
|
var overEvery = createOver(arrayEvery);
|
22632
22632
|
var overSome = createOver(arraySome);
|
22633
|
-
function property(
|
22634
|
-
return isKey(
|
22633
|
+
function property(path3) {
|
22634
|
+
return isKey(path3) ? baseProperty(toKey(path3)) : basePropertyDeep(path3);
|
22635
22635
|
}
|
22636
22636
|
function propertyOf(object) {
|
22637
|
-
return function(
|
22638
|
-
return object == null ? undefined2 : baseGet(object,
|
22637
|
+
return function(path3) {
|
22638
|
+
return object == null ? undefined2 : baseGet(object, path3);
|
22639
22639
|
};
|
22640
22640
|
}
|
22641
22641
|
var range = createRange();
|
@@ -23088,12 +23088,12 @@ var require_lodash = __commonJS({
|
|
23088
23088
|
LazyWrapper.prototype.findLast = function(predicate) {
|
23089
23089
|
return this.reverse().find(predicate);
|
23090
23090
|
};
|
23091
|
-
LazyWrapper.prototype.invokeMap = baseRest(function(
|
23092
|
-
if (typeof
|
23091
|
+
LazyWrapper.prototype.invokeMap = baseRest(function(path3, args) {
|
23092
|
+
if (typeof path3 == "function") {
|
23093
23093
|
return new LazyWrapper(this);
|
23094
23094
|
}
|
23095
23095
|
return this.map(function(value) {
|
23096
|
-
return baseInvoke(value,
|
23096
|
+
return baseInvoke(value, path3, args);
|
23097
23097
|
});
|
23098
23098
|
});
|
23099
23099
|
LazyWrapper.prototype.reject = function(predicate) {
|
@@ -36234,7 +36234,7 @@ var require_watch = __commonJS({
|
|
36234
36234
|
};
|
36235
36235
|
Object.defineProperty(exports, "__esModule", { value: true });
|
36236
36236
|
exports.watch = exports.WatchChangeType = void 0;
|
36237
|
-
var
|
36237
|
+
var path3 = __importStar(require("path"));
|
36238
36238
|
var compiled_1 = require_compiled();
|
36239
36239
|
exports.WatchChangeType = {
|
36240
36240
|
ADD: "add",
|
@@ -36248,17 +36248,17 @@ var require_watch = __commonJS({
|
|
36248
36248
|
});
|
36249
36249
|
watcher.on("ready", () => ready = true);
|
36250
36250
|
watcher.on("change", (filePath) => __async(exports, null, function* () {
|
36251
|
-
const changedFilePath =
|
36251
|
+
const changedFilePath = path3.resolve(filePath);
|
36252
36252
|
yield runTask({ changedFilePath, changeType: exports.WatchChangeType.CHANGE });
|
36253
36253
|
}));
|
36254
36254
|
watcher.on("add", (filePath) => __async(exports, null, function* () {
|
36255
|
-
const changedFilePath =
|
36255
|
+
const changedFilePath = path3.resolve(filePath);
|
36256
36256
|
if (ready) {
|
36257
36257
|
yield runTask({ changedFilePath, changeType: exports.WatchChangeType.ADD });
|
36258
36258
|
}
|
36259
36259
|
}));
|
36260
36260
|
watcher.on("unlink", (filePath) => __async(exports, null, function* () {
|
36261
|
-
const changedFilePath =
|
36261
|
+
const changedFilePath = path3.resolve(filePath);
|
36262
36262
|
yield runTask({ changedFilePath, changeType: exports.WatchChangeType.UNLINK });
|
36263
36263
|
}));
|
36264
36264
|
watcher.on("error", (err) => {
|
@@ -36337,11 +36337,11 @@ var require_getServerConfig = __commonJS({
|
|
36337
36337
|
};
|
36338
36338
|
Object.defineProperty(exports, "__esModule", { value: true });
|
36339
36339
|
exports.getServerConfig = void 0;
|
36340
|
-
var
|
36340
|
+
var path3 = __importStar(require("path"));
|
36341
36341
|
var constants_1 = require_constants2();
|
36342
36342
|
var findExists_1 = require_findExists();
|
36343
36343
|
var getServerConfig = (appDirectory, configFile) => __async(exports, null, function* () {
|
36344
|
-
const configFilePath = (0, findExists_1.findExists)(constants_1.CONFIG_FILE_EXTENSIONS.map((extension) =>
|
36344
|
+
const configFilePath = (0, findExists_1.findExists)(constants_1.CONFIG_FILE_EXTENSIONS.map((extension) => path3.resolve(appDirectory, `${configFile}${extension}`)));
|
36345
36345
|
return configFilePath;
|
36346
36346
|
});
|
36347
36347
|
exports.getServerConfig = getServerConfig;
|
@@ -36511,10 +36511,10 @@ var require_analyzeProject = __commonJS({
|
|
36511
36511
|
};
|
36512
36512
|
Object.defineProperty(exports, "__esModule", { value: true });
|
36513
36513
|
exports.isApiOnly = void 0;
|
36514
|
-
var
|
36514
|
+
var path3 = __importStar(require("path"));
|
36515
36515
|
var compiled_1 = require_compiled();
|
36516
36516
|
var isApiOnly = (appDirectory, entryDir) => __async(exports, null, function* () {
|
36517
|
-
const srcDir =
|
36517
|
+
const srcDir = path3.join(appDirectory, entryDir !== null && entryDir !== void 0 ? entryDir : "src");
|
36518
36518
|
const existSrc = yield compiled_1.fs.pathExists(srcDir);
|
36519
36519
|
const options = (0, compiled_1.minimist)(process.argv.slice(2));
|
36520
36520
|
return !existSrc || Boolean(options["api-only"]);
|
@@ -36791,9 +36791,9 @@ var require_dist = __commonJS({
|
|
36791
36791
|
}
|
36792
36792
|
});
|
36793
36793
|
|
36794
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
36794
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/logger/index.js
|
36795
36795
|
var require_logger2 = __commonJS({
|
36796
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
36796
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/logger/index.js"(exports) {
|
36797
36797
|
"use strict";
|
36798
36798
|
Object.defineProperty(exports, "__esModule", {
|
36799
36799
|
value: true
|
@@ -36861,9 +36861,9 @@ var require_logger2 = __commonJS({
|
|
36861
36861
|
}
|
36862
36862
|
});
|
36863
36863
|
|
36864
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
36864
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/materials/constants.js
|
36865
36865
|
var require_constants3 = __commonJS({
|
36866
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
36866
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/materials/constants.js"(exports) {
|
36867
36867
|
"use strict";
|
36868
36868
|
Object.defineProperty(exports, "__esModule", {
|
36869
36869
|
value: true
|
@@ -36874,9 +36874,9 @@ var require_constants3 = __commonJS({
|
|
36874
36874
|
}
|
36875
36875
|
});
|
36876
36876
|
|
36877
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
36877
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/materials/FsResource.js
|
36878
36878
|
var require_FsResource = __commonJS({
|
36879
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
36879
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/materials/FsResource.js"(exports) {
|
36880
36880
|
"use strict";
|
36881
36881
|
Object.defineProperty(exports, "__esModule", {
|
36882
36882
|
value: true
|
@@ -36927,9 +36927,9 @@ var require_FsResource = __commonJS({
|
|
36927
36927
|
}
|
36928
36928
|
});
|
36929
36929
|
|
36930
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
36930
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/materials/FsMaterial.js
|
36931
36931
|
var require_FsMaterial = __commonJS({
|
36932
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
36932
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/materials/FsMaterial.js"(exports) {
|
36933
36933
|
"use strict";
|
36934
36934
|
Object.defineProperty(exports, "__esModule", {
|
36935
36935
|
value: true
|
@@ -36981,23 +36981,23 @@ var require_FsMaterial = __commonJS({
|
|
36981
36981
|
}
|
36982
36982
|
});
|
36983
36983
|
|
36984
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
36984
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/utils/nodeRequire.js
|
36985
36985
|
var require_nodeRequire = __commonJS({
|
36986
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
36986
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/utils/nodeRequire.js"(exports) {
|
36987
36987
|
"use strict";
|
36988
36988
|
Object.defineProperty(exports, "__esModule", {
|
36989
36989
|
value: true
|
36990
36990
|
});
|
36991
36991
|
exports.nodeRequire = void 0;
|
36992
|
-
var nodeRequire = (
|
36992
|
+
var nodeRequire = (path3) => {
|
36993
36993
|
try {
|
36994
|
-
const module3 = __non_webpack_require__(
|
36994
|
+
const module3 = __non_webpack_require__(path3);
|
36995
36995
|
if (module3 !== null && module3 !== void 0 && module3.default) {
|
36996
36996
|
return module3.default;
|
36997
36997
|
}
|
36998
36998
|
return module3;
|
36999
36999
|
} catch (error) {
|
37000
|
-
const module3 = require(
|
37000
|
+
const module3 = require(path3);
|
37001
37001
|
if (module3 !== null && module3 !== void 0 && module3.default) {
|
37002
37002
|
return module3.default;
|
37003
37003
|
}
|
@@ -37008,19 +37008,19 @@ var require_nodeRequire = __commonJS({
|
|
37008
37008
|
}
|
37009
37009
|
});
|
37010
37010
|
|
37011
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
37011
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/utils/fsExists.js
|
37012
37012
|
var require_fsExists = __commonJS({
|
37013
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
37013
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/utils/fsExists.js"(exports) {
|
37014
37014
|
"use strict";
|
37015
37015
|
Object.defineProperty(exports, "__esModule", {
|
37016
37016
|
value: true
|
37017
37017
|
});
|
37018
37018
|
exports.fsExists = fsExists;
|
37019
37019
|
var _utils = require_dist();
|
37020
|
-
function fsExists(
|
37020
|
+
function fsExists(path3) {
|
37021
37021
|
return __async(this, null, function* () {
|
37022
37022
|
try {
|
37023
|
-
yield _utils.fs.access(
|
37023
|
+
yield _utils.fs.access(path3);
|
37024
37024
|
return true;
|
37025
37025
|
} catch (e) {
|
37026
37026
|
return false;
|
@@ -37030,9 +37030,9 @@ var require_fsExists = __commonJS({
|
|
37030
37030
|
}
|
37031
37031
|
});
|
37032
37032
|
|
37033
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
37033
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/utils/getGeneratorDir.js
|
37034
37034
|
var require_getGeneratorDir = __commonJS({
|
37035
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
37035
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/utils/getGeneratorDir.js"(exports) {
|
37036
37036
|
"use strict";
|
37037
37037
|
Object.defineProperty(exports, "__esModule", {
|
37038
37038
|
value: true
|
@@ -37066,9 +37066,9 @@ var require_getGeneratorDir = __commonJS({
|
|
37066
37066
|
}
|
37067
37067
|
});
|
37068
37068
|
|
37069
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
37069
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/generator/index.js
|
37070
37070
|
var require_generator = __commonJS({
|
37071
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
37071
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/generator/index.js"(exports) {
|
37072
37072
|
"use strict";
|
37073
37073
|
Object.defineProperty(exports, "__esModule", {
|
37074
37074
|
value: true
|
@@ -37316,9 +37316,9 @@ check path: ${_utils.chalk.blue.underline(generator)} exist a package.json file
|
|
37316
37316
|
}
|
37317
37317
|
});
|
37318
37318
|
|
37319
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
37319
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/utils/packageManager.js
|
37320
37320
|
var require_packageManager = __commonJS({
|
37321
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
37321
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/utils/packageManager.js"(exports) {
|
37322
37322
|
"use strict";
|
37323
37323
|
Object.defineProperty(exports, "__esModule", {
|
37324
37324
|
value: true
|
@@ -37396,9 +37396,9 @@ var require_packageManager = __commonJS({
|
|
37396
37396
|
}
|
37397
37397
|
});
|
37398
37398
|
|
37399
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
37399
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/utils/timeoutPromise.js
|
37400
37400
|
var require_timeoutPromise = __commonJS({
|
37401
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
37401
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/utils/timeoutPromise.js"(exports) {
|
37402
37402
|
"use strict";
|
37403
37403
|
Object.defineProperty(exports, "__esModule", {
|
37404
37404
|
value: true
|
@@ -37773,14 +37773,14 @@ var require_cookies = __commonJS({
|
|
37773
37773
|
// Standard browser envs support document.cookie
|
37774
37774
|
function standardBrowserEnv() {
|
37775
37775
|
return {
|
37776
|
-
write: function write(name, value, expires,
|
37776
|
+
write: function write(name, value, expires, path3, domain, secure) {
|
37777
37777
|
var cookie = [];
|
37778
37778
|
cookie.push(name + "=" + encodeURIComponent(value));
|
37779
37779
|
if (utils.isNumber(expires)) {
|
37780
37780
|
cookie.push("expires=" + new Date(expires).toGMTString());
|
37781
37781
|
}
|
37782
|
-
if (utils.isString(
|
37783
|
-
cookie.push("path=" +
|
37782
|
+
if (utils.isString(path3)) {
|
37783
|
+
cookie.push("path=" + path3);
|
37784
37784
|
}
|
37785
37785
|
if (utils.isString(domain)) {
|
37786
37786
|
cookie.push("domain=" + domain);
|
@@ -41180,10 +41180,10 @@ var require_header = __commonJS({
|
|
41180
41180
|
throw new Error("need 512 bytes for header");
|
41181
41181
|
const prefixSize = this.ctime || this.atime ? 130 : 155;
|
41182
41182
|
const split = splitPrefix(this.path || "", prefixSize);
|
41183
|
-
const
|
41183
|
+
const path3 = split[0];
|
41184
41184
|
const prefix = split[1];
|
41185
41185
|
this.needPax = split[2];
|
41186
|
-
this.needPax = encString(buf, off, 100,
|
41186
|
+
this.needPax = encString(buf, off, 100, path3) || this.needPax;
|
41187
41187
|
this.needPax = encNumber(buf, off + 100, 8, this.mode) || this.needPax;
|
41188
41188
|
this.needPax = encNumber(buf, off + 108, 8, this.uid) || this.needPax;
|
41189
41189
|
this.needPax = encNumber(buf, off + 116, 8, this.gid) || this.needPax;
|
@@ -41288,7 +41288,7 @@ var require_pax = __commonJS({
|
|
41288
41288
|
"../../../../node_modules/.pnpm/tar@6.1.11/node_modules/tar/lib/pax.js"(exports, module2) {
|
41289
41289
|
"use strict";
|
41290
41290
|
var Header = require_header();
|
41291
|
-
var
|
41291
|
+
var path3 = require("path");
|
41292
41292
|
var Pax = class {
|
41293
41293
|
constructor(obj, global2) {
|
41294
41294
|
this.atime = obj.atime || null;
|
@@ -41321,7 +41321,7 @@ var require_pax = __commonJS({
|
|
41321
41321
|
// XXX split the path
|
41322
41322
|
// then the path should be PaxHeader + basename, but less than 99,
|
41323
41323
|
// prepend with the dirname
|
41324
|
-
path: ("PaxHeader/" +
|
41324
|
+
path: ("PaxHeader/" + path3.basename(this.path)).slice(0, 99),
|
41325
41325
|
mode: this.mode || 420,
|
41326
41326
|
uid: this.uid || null,
|
41327
41327
|
gid: this.gid || null,
|
@@ -41444,16 +41444,16 @@ var require_winchars = __commonJS({
|
|
41444
41444
|
var require_strip_absolute_path = __commonJS({
|
41445
41445
|
"../../../../node_modules/.pnpm/tar@6.1.11/node_modules/tar/lib/strip-absolute-path.js"(exports, module2) {
|
41446
41446
|
var { isAbsolute, parse: parse2 } = require("path").win32;
|
41447
|
-
module2.exports = (
|
41447
|
+
module2.exports = (path3) => {
|
41448
41448
|
let r = "";
|
41449
|
-
let parsed = parse2(
|
41450
|
-
while (isAbsolute(
|
41451
|
-
const root =
|
41452
|
-
|
41449
|
+
let parsed = parse2(path3);
|
41450
|
+
while (isAbsolute(path3) || parsed.root) {
|
41451
|
+
const root = path3.charAt(0) === "/" && path3.slice(0, 4) !== "//?/" ? "/" : parsed.root;
|
41452
|
+
path3 = path3.substr(root.length);
|
41453
41453
|
r += root;
|
41454
|
-
parsed = parse2(
|
41454
|
+
parsed = parse2(path3);
|
41455
41455
|
}
|
41456
|
-
return [r,
|
41456
|
+
return [r, path3];
|
41457
41457
|
};
|
41458
41458
|
}
|
41459
41459
|
});
|
@@ -41487,14 +41487,14 @@ var require_write_entry = __commonJS({
|
|
41487
41487
|
var Pax = require_pax();
|
41488
41488
|
var Header = require_header();
|
41489
41489
|
var fs3 = require("fs");
|
41490
|
-
var
|
41490
|
+
var path3 = require("path");
|
41491
41491
|
var normPath = require_normalize_windows_path();
|
41492
41492
|
var stripSlash = require_strip_trailing_slashes();
|
41493
|
-
var prefixPath = (
|
41493
|
+
var prefixPath = (path4, prefix) => {
|
41494
41494
|
if (!prefix)
|
41495
|
-
return normPath(
|
41496
|
-
|
41497
|
-
return stripSlash(prefix) + "/" +
|
41495
|
+
return normPath(path4);
|
41496
|
+
path4 = normPath(path4).replace(/^\.(\/|$)/, "");
|
41497
|
+
return stripSlash(prefix) + "/" + path4;
|
41498
41498
|
};
|
41499
41499
|
var maxReadSize = 16 * 1024 * 1024;
|
41500
41500
|
var PROCESS = Symbol("process");
|
@@ -41563,7 +41563,7 @@ var require_write_entry = __commonJS({
|
|
41563
41563
|
this.path = winchars.decode(this.path.replace(/\\/g, "/"));
|
41564
41564
|
p = p.replace(/\\/g, "/");
|
41565
41565
|
}
|
41566
|
-
this.absolute = normPath(opt.absolute ||
|
41566
|
+
this.absolute = normPath(opt.absolute || path3.resolve(this.cwd, p));
|
41567
41567
|
if (this.path === "")
|
41568
41568
|
this.path = "./";
|
41569
41569
|
if (pathWarn) {
|
@@ -41613,8 +41613,8 @@ var require_write_entry = __commonJS({
|
|
41613
41613
|
[MODE](mode) {
|
41614
41614
|
return modeFix(mode, this.type === "Directory", this.portable);
|
41615
41615
|
}
|
41616
|
-
[PREFIX](
|
41617
|
-
return prefixPath(
|
41616
|
+
[PREFIX](path4) {
|
41617
|
+
return prefixPath(path4, this.prefix);
|
41618
41618
|
}
|
41619
41619
|
[HEADER]() {
|
41620
41620
|
if (this.type === "Directory" && this.portable)
|
@@ -41674,7 +41674,7 @@ var require_write_entry = __commonJS({
|
|
41674
41674
|
}
|
41675
41675
|
[HARDLINK](linkpath) {
|
41676
41676
|
this.type = "Link";
|
41677
|
-
this.linkpath = normPath(
|
41677
|
+
this.linkpath = normPath(path3.relative(this.cwd, linkpath));
|
41678
41678
|
this.stat.size = 0;
|
41679
41679
|
this[HEADER]();
|
41680
41680
|
this.end();
|
@@ -41897,8 +41897,8 @@ var require_write_entry = __commonJS({
|
|
41897
41897
|
super.write(this.header.block);
|
41898
41898
|
readEntry.pipe(this);
|
41899
41899
|
}
|
41900
|
-
[PREFIX](
|
41901
|
-
return prefixPath(
|
41900
|
+
[PREFIX](path4) {
|
41901
|
+
return prefixPath(path4, this.prefix);
|
41902
41902
|
}
|
41903
41903
|
[MODE](mode) {
|
41904
41904
|
return modeFix(mode, this.type === "Directory", this.portable);
|
@@ -42311,8 +42311,8 @@ var require_pack = __commonJS({
|
|
42311
42311
|
"../../../../node_modules/.pnpm/tar@6.1.11/node_modules/tar/lib/pack.js"(exports, module2) {
|
42312
42312
|
"use strict";
|
42313
42313
|
var PackJob = class {
|
42314
|
-
constructor(
|
42315
|
-
this.path =
|
42314
|
+
constructor(path4, absolute) {
|
42315
|
+
this.path = path4 || "./";
|
42316
42316
|
this.absolute = absolute;
|
42317
42317
|
this.entry = null;
|
42318
42318
|
this.stat = null;
|
@@ -42351,7 +42351,7 @@ var require_pack = __commonJS({
|
|
42351
42351
|
var WRITE = Symbol("write");
|
42352
42352
|
var ONDRAIN = Symbol("ondrain");
|
42353
42353
|
var fs3 = require("fs");
|
42354
|
-
var
|
42354
|
+
var path3 = require("path");
|
42355
42355
|
var warner = require_warn_mixin();
|
42356
42356
|
var normPath = require_normalize_windows_path();
|
42357
42357
|
var Pack = warner(class Pack extends MiniPass {
|
@@ -42400,28 +42400,28 @@ var require_pack = __commonJS({
|
|
42400
42400
|
[WRITE](chunk) {
|
42401
42401
|
return super.write(chunk);
|
42402
42402
|
}
|
42403
|
-
add(
|
42404
|
-
this.write(
|
42403
|
+
add(path4) {
|
42404
|
+
this.write(path4);
|
42405
42405
|
return this;
|
42406
42406
|
}
|
42407
|
-
end(
|
42408
|
-
if (
|
42409
|
-
this.write(
|
42407
|
+
end(path4) {
|
42408
|
+
if (path4)
|
42409
|
+
this.write(path4);
|
42410
42410
|
this[ENDED] = true;
|
42411
42411
|
this[PROCESS]();
|
42412
42412
|
return this;
|
42413
42413
|
}
|
42414
|
-
write(
|
42414
|
+
write(path4) {
|
42415
42415
|
if (this[ENDED])
|
42416
42416
|
throw new Error("write after end");
|
42417
|
-
if (
|
42418
|
-
this[ADDTARENTRY](
|
42417
|
+
if (path4 instanceof ReadEntry)
|
42418
|
+
this[ADDTARENTRY](path4);
|
42419
42419
|
else
|
42420
|
-
this[ADDFSENTRY](
|
42420
|
+
this[ADDFSENTRY](path4);
|
42421
42421
|
return this.flowing;
|
42422
42422
|
}
|
42423
42423
|
[ADDTARENTRY](p) {
|
42424
|
-
const absolute = normPath(
|
42424
|
+
const absolute = normPath(path3.resolve(this.cwd, p.path));
|
42425
42425
|
if (!this.filter(p.path, p))
|
42426
42426
|
p.resume();
|
42427
42427
|
else {
|
@@ -42434,7 +42434,7 @@ var require_pack = __commonJS({
|
|
42434
42434
|
this[PROCESS]();
|
42435
42435
|
}
|
42436
42436
|
[ADDFSENTRY](p) {
|
42437
|
-
const absolute = normPath(
|
42437
|
+
const absolute = normPath(path3.resolve(this.cwd, p));
|
42438
42438
|
this[QUEUE].push(new PackJob(p, absolute));
|
42439
42439
|
this[PROCESS]();
|
42440
42440
|
}
|
@@ -42688,16 +42688,16 @@ var require_fs_minipass = __commonJS({
|
|
42688
42688
|
var _defaultFlag = Symbol("_defaultFlag");
|
42689
42689
|
var _errored = Symbol("_errored");
|
42690
42690
|
var ReadStream = class extends MiniPass {
|
42691
|
-
constructor(
|
42691
|
+
constructor(path3, opt) {
|
42692
42692
|
opt = opt || {};
|
42693
42693
|
super(opt);
|
42694
42694
|
this.readable = true;
|
42695
42695
|
this.writable = false;
|
42696
|
-
if (typeof
|
42696
|
+
if (typeof path3 !== "string")
|
42697
42697
|
throw new TypeError("path must be a string");
|
42698
42698
|
this[_errored] = false;
|
42699
42699
|
this[_fd] = typeof opt.fd === "number" ? opt.fd : null;
|
42700
|
-
this[_path] =
|
42700
|
+
this[_path] = path3;
|
42701
42701
|
this[_readSize] = opt.readSize || 16 * 1024 * 1024;
|
42702
42702
|
this[_reading] = false;
|
42703
42703
|
this[_size] = typeof opt.size === "number" ? opt.size : Infinity;
|
@@ -42834,7 +42834,7 @@ var require_fs_minipass = __commonJS({
|
|
42834
42834
|
}
|
42835
42835
|
};
|
42836
42836
|
var WriteStream = class extends EE {
|
42837
|
-
constructor(
|
42837
|
+
constructor(path3, opt) {
|
42838
42838
|
opt = opt || {};
|
42839
42839
|
super(opt);
|
42840
42840
|
this.readable = false;
|
@@ -42844,7 +42844,7 @@ var require_fs_minipass = __commonJS({
|
|
42844
42844
|
this[_ended] = false;
|
42845
42845
|
this[_needDrain] = false;
|
42846
42846
|
this[_queue] = [];
|
42847
|
-
this[_path] =
|
42847
|
+
this[_path] = path3;
|
42848
42848
|
this[_fd] = typeof opt.fd === "number" ? opt.fd : null;
|
42849
42849
|
this[_mode] = opt.mode === void 0 ? 438 : opt.mode;
|
42850
42850
|
this[_pos] = typeof opt.start === "number" ? opt.start : null;
|
@@ -43400,7 +43400,7 @@ var require_list = __commonJS({
|
|
43400
43400
|
var Parser2 = require_parse();
|
43401
43401
|
var fs3 = require("fs");
|
43402
43402
|
var fsm = require_fs_minipass();
|
43403
|
-
var
|
43403
|
+
var path3 = require("path");
|
43404
43404
|
var stripSlash = require_strip_trailing_slashes();
|
43405
43405
|
module2.exports = (opt_, files, cb) => {
|
43406
43406
|
if (typeof opt_ === "function")
|
@@ -43435,8 +43435,8 @@ var require_list = __commonJS({
|
|
43435
43435
|
const map2 = new Map(files.map((f) => [stripSlash(f), true]));
|
43436
43436
|
const filter = opt.filter;
|
43437
43437
|
const mapHas = (file, r) => {
|
43438
|
-
const root = r ||
|
43439
|
-
const ret = file === root ? false : map2.has(file) ? map2.get(file) : mapHas(
|
43438
|
+
const root = r || path3.parse(file).root || ".";
|
43439
|
+
const ret = file === root ? false : map2.has(file) ? map2.get(file) : mapHas(path3.dirname(file), root);
|
43440
43440
|
map2.set(file, ret);
|
43441
43441
|
return ret;
|
43442
43442
|
};
|
@@ -43507,7 +43507,7 @@ var require_create = __commonJS({
|
|
43507
43507
|
var Pack = require_pack();
|
43508
43508
|
var fsm = require_fs_minipass();
|
43509
43509
|
var t = require_list();
|
43510
|
-
var
|
43510
|
+
var path3 = require("path");
|
43511
43511
|
module2.exports = (opt_, files, cb) => {
|
43512
43512
|
if (typeof files === "function")
|
43513
43513
|
cb = files;
|
@@ -43549,7 +43549,7 @@ var require_create = __commonJS({
|
|
43549
43549
|
files.forEach((file) => {
|
43550
43550
|
if (file.charAt(0) === "@") {
|
43551
43551
|
t({
|
43552
|
-
file:
|
43552
|
+
file: path3.resolve(p.cwd, file.substr(1)),
|
43553
43553
|
sync: true,
|
43554
43554
|
noResume: true,
|
43555
43555
|
onentry: (entry) => p.add(entry)
|
@@ -43564,7 +43564,7 @@ var require_create = __commonJS({
|
|
43564
43564
|
const file = files.shift();
|
43565
43565
|
if (file.charAt(0) === "@") {
|
43566
43566
|
return t({
|
43567
|
-
file:
|
43567
|
+
file: path3.resolve(p.cwd, file.substr(1)),
|
43568
43568
|
noResume: true,
|
43569
43569
|
onentry: (entry) => p.add(entry)
|
43570
43570
|
}).then((_) => addFilesAsync(p, files));
|
@@ -43595,7 +43595,7 @@ var require_replace = __commonJS({
|
|
43595
43595
|
var fs3 = require("fs");
|
43596
43596
|
var fsm = require_fs_minipass();
|
43597
43597
|
var t = require_list();
|
43598
|
-
var
|
43598
|
+
var path3 = require("path");
|
43599
43599
|
var Header = require_header();
|
43600
43600
|
module2.exports = (opt_, files, cb) => {
|
43601
43601
|
const opt = hlo(opt_);
|
@@ -43752,7 +43752,7 @@ var require_replace = __commonJS({
|
|
43752
43752
|
files.forEach((file) => {
|
43753
43753
|
if (file.charAt(0) === "@") {
|
43754
43754
|
t({
|
43755
|
-
file:
|
43755
|
+
file: path3.resolve(p.cwd, file.substr(1)),
|
43756
43756
|
sync: true,
|
43757
43757
|
noResume: true,
|
43758
43758
|
onentry: (entry) => p.add(entry)
|
@@ -43767,7 +43767,7 @@ var require_replace = __commonJS({
|
|
43767
43767
|
const file = files.shift();
|
43768
43768
|
if (file.charAt(0) === "@") {
|
43769
43769
|
return t({
|
43770
|
-
file:
|
43770
|
+
file: path3.resolve(p.cwd, file.substr(1)),
|
43771
43771
|
noResume: true,
|
43772
43772
|
onentry: (entry) => p.add(entry)
|
43773
43773
|
}).then((_) => addFilesAsync(p, files));
|
@@ -43801,7 +43801,7 @@ var require_update = __commonJS({
|
|
43801
43801
|
const filter = opt.filter;
|
43802
43802
|
if (!opt.mtimeCache)
|
43803
43803
|
opt.mtimeCache = /* @__PURE__ */ new Map();
|
43804
|
-
opt.filter = filter ? (
|
43804
|
+
opt.filter = filter ? (path3, stat) => filter(path3, stat) && !(opt.mtimeCache.get(path3) > stat.mtime) : (path3, stat) => !(opt.mtimeCache.get(path3) > stat.mtime);
|
43805
43805
|
};
|
43806
43806
|
}
|
43807
43807
|
});
|
@@ -43839,28 +43839,28 @@ var require_path_arg = __commonJS({
|
|
43839
43839
|
"../../../../node_modules/.pnpm/mkdirp@1.0.4/node_modules/mkdirp/lib/path-arg.js"(exports, module2) {
|
43840
43840
|
var platform = process.env.__TESTING_MKDIRP_PLATFORM__ || process.platform;
|
43841
43841
|
var { resolve, parse: parse2 } = require("path");
|
43842
|
-
var pathArg = (
|
43843
|
-
if (/\0/.test(
|
43842
|
+
var pathArg = (path3) => {
|
43843
|
+
if (/\0/.test(path3)) {
|
43844
43844
|
throw Object.assign(
|
43845
43845
|
new TypeError("path must be a string without null bytes"),
|
43846
43846
|
{
|
43847
|
-
path:
|
43847
|
+
path: path3,
|
43848
43848
|
code: "ERR_INVALID_ARG_VALUE"
|
43849
43849
|
}
|
43850
43850
|
);
|
43851
43851
|
}
|
43852
|
-
|
43852
|
+
path3 = resolve(path3);
|
43853
43853
|
if (platform === "win32") {
|
43854
43854
|
const badWinChars = /[*|"<>?:]/;
|
43855
|
-
const { root } = parse2(
|
43856
|
-
if (badWinChars.test(
|
43855
|
+
const { root } = parse2(path3);
|
43856
|
+
if (badWinChars.test(path3.substr(root.length))) {
|
43857
43857
|
throw Object.assign(new Error("Illegal characters in path."), {
|
43858
|
-
path:
|
43858
|
+
path: path3,
|
43859
43859
|
code: "EINVAL"
|
43860
43860
|
});
|
43861
43861
|
}
|
43862
43862
|
}
|
43863
|
-
return
|
43863
|
+
return path3;
|
43864
43864
|
};
|
43865
43865
|
module2.exports = pathArg;
|
43866
43866
|
}
|
@@ -43870,20 +43870,20 @@ var require_path_arg = __commonJS({
|
|
43870
43870
|
var require_find_made = __commonJS({
|
43871
43871
|
"../../../../node_modules/.pnpm/mkdirp@1.0.4/node_modules/mkdirp/lib/find-made.js"(exports, module2) {
|
43872
43872
|
var { dirname } = require("path");
|
43873
|
-
var findMade = (opts, parent,
|
43874
|
-
if (
|
43873
|
+
var findMade = (opts, parent, path3 = void 0) => {
|
43874
|
+
if (path3 === parent)
|
43875
43875
|
return Promise.resolve();
|
43876
43876
|
return opts.statAsync(parent).then(
|
43877
|
-
(st) => st.isDirectory() ?
|
43877
|
+
(st) => st.isDirectory() ? path3 : void 0,
|
43878
43878
|
// will fail later
|
43879
43879
|
(er) => er.code === "ENOENT" ? findMade(opts, dirname(parent), parent) : void 0
|
43880
43880
|
);
|
43881
43881
|
};
|
43882
|
-
var findMadeSync = (opts, parent,
|
43883
|
-
if (
|
43882
|
+
var findMadeSync = (opts, parent, path3 = void 0) => {
|
43883
|
+
if (path3 === parent)
|
43884
43884
|
return void 0;
|
43885
43885
|
try {
|
43886
|
-
return opts.statSync(parent).isDirectory() ?
|
43886
|
+
return opts.statSync(parent).isDirectory() ? path3 : void 0;
|
43887
43887
|
} catch (er) {
|
43888
43888
|
return er.code === "ENOENT" ? findMadeSync(opts, dirname(parent), parent) : void 0;
|
43889
43889
|
}
|
@@ -43896,21 +43896,21 @@ var require_find_made = __commonJS({
|
|
43896
43896
|
var require_mkdirp_manual = __commonJS({
|
43897
43897
|
"../../../../node_modules/.pnpm/mkdirp@1.0.4/node_modules/mkdirp/lib/mkdirp-manual.js"(exports, module2) {
|
43898
43898
|
var { dirname } = require("path");
|
43899
|
-
var mkdirpManual = (
|
43899
|
+
var mkdirpManual = (path3, opts, made) => {
|
43900
43900
|
opts.recursive = false;
|
43901
|
-
const parent = dirname(
|
43902
|
-
if (parent ===
|
43903
|
-
return opts.mkdirAsync(
|
43901
|
+
const parent = dirname(path3);
|
43902
|
+
if (parent === path3) {
|
43903
|
+
return opts.mkdirAsync(path3, opts).catch((er) => {
|
43904
43904
|
if (er.code !== "EISDIR")
|
43905
43905
|
throw er;
|
43906
43906
|
});
|
43907
43907
|
}
|
43908
|
-
return opts.mkdirAsync(
|
43908
|
+
return opts.mkdirAsync(path3, opts).then(() => made || path3, (er) => {
|
43909
43909
|
if (er.code === "ENOENT")
|
43910
|
-
return mkdirpManual(parent, opts).then((made2) => mkdirpManual(
|
43910
|
+
return mkdirpManual(parent, opts).then((made2) => mkdirpManual(path3, opts, made2));
|
43911
43911
|
if (er.code !== "EEXIST" && er.code !== "EROFS")
|
43912
43912
|
throw er;
|
43913
|
-
return opts.statAsync(
|
43913
|
+
return opts.statAsync(path3).then((st) => {
|
43914
43914
|
if (st.isDirectory())
|
43915
43915
|
return made;
|
43916
43916
|
else
|
@@ -43920,12 +43920,12 @@ var require_mkdirp_manual = __commonJS({
|
|
43920
43920
|
});
|
43921
43921
|
});
|
43922
43922
|
};
|
43923
|
-
var mkdirpManualSync = (
|
43924
|
-
const parent = dirname(
|
43923
|
+
var mkdirpManualSync = (path3, opts, made) => {
|
43924
|
+
const parent = dirname(path3);
|
43925
43925
|
opts.recursive = false;
|
43926
|
-
if (parent ===
|
43926
|
+
if (parent === path3) {
|
43927
43927
|
try {
|
43928
|
-
return opts.mkdirSync(
|
43928
|
+
return opts.mkdirSync(path3, opts);
|
43929
43929
|
} catch (er) {
|
43930
43930
|
if (er.code !== "EISDIR")
|
43931
43931
|
throw er;
|
@@ -43934,15 +43934,15 @@ var require_mkdirp_manual = __commonJS({
|
|
43934
43934
|
}
|
43935
43935
|
}
|
43936
43936
|
try {
|
43937
|
-
opts.mkdirSync(
|
43938
|
-
return made ||
|
43937
|
+
opts.mkdirSync(path3, opts);
|
43938
|
+
return made || path3;
|
43939
43939
|
} catch (er) {
|
43940
43940
|
if (er.code === "ENOENT")
|
43941
|
-
return mkdirpManualSync(
|
43941
|
+
return mkdirpManualSync(path3, opts, mkdirpManualSync(parent, opts, made));
|
43942
43942
|
if (er.code !== "EEXIST" && er.code !== "EROFS")
|
43943
43943
|
throw er;
|
43944
43944
|
try {
|
43945
|
-
if (!opts.statSync(
|
43945
|
+
if (!opts.statSync(path3).isDirectory())
|
43946
43946
|
throw er;
|
43947
43947
|
} catch (_) {
|
43948
43948
|
throw er;
|
@@ -43959,30 +43959,30 @@ var require_mkdirp_native = __commonJS({
|
|
43959
43959
|
var { dirname } = require("path");
|
43960
43960
|
var { findMade, findMadeSync } = require_find_made();
|
43961
43961
|
var { mkdirpManual, mkdirpManualSync } = require_mkdirp_manual();
|
43962
|
-
var mkdirpNative = (
|
43962
|
+
var mkdirpNative = (path3, opts) => {
|
43963
43963
|
opts.recursive = true;
|
43964
|
-
const parent = dirname(
|
43965
|
-
if (parent ===
|
43966
|
-
return opts.mkdirAsync(
|
43967
|
-
return findMade(opts,
|
43964
|
+
const parent = dirname(path3);
|
43965
|
+
if (parent === path3)
|
43966
|
+
return opts.mkdirAsync(path3, opts);
|
43967
|
+
return findMade(opts, path3).then((made) => opts.mkdirAsync(path3, opts).then(() => made).catch((er) => {
|
43968
43968
|
if (er.code === "ENOENT")
|
43969
|
-
return mkdirpManual(
|
43969
|
+
return mkdirpManual(path3, opts);
|
43970
43970
|
else
|
43971
43971
|
throw er;
|
43972
43972
|
}));
|
43973
43973
|
};
|
43974
|
-
var mkdirpNativeSync = (
|
43974
|
+
var mkdirpNativeSync = (path3, opts) => {
|
43975
43975
|
opts.recursive = true;
|
43976
|
-
const parent = dirname(
|
43977
|
-
if (parent ===
|
43978
|
-
return opts.mkdirSync(
|
43979
|
-
const made = findMadeSync(opts,
|
43976
|
+
const parent = dirname(path3);
|
43977
|
+
if (parent === path3)
|
43978
|
+
return opts.mkdirSync(path3, opts);
|
43979
|
+
const made = findMadeSync(opts, path3);
|
43980
43980
|
try {
|
43981
|
-
opts.mkdirSync(
|
43981
|
+
opts.mkdirSync(path3, opts);
|
43982
43982
|
return made;
|
43983
43983
|
} catch (er) {
|
43984
43984
|
if (er.code === "ENOENT")
|
43985
|
-
return mkdirpManualSync(
|
43985
|
+
return mkdirpManualSync(path3, opts);
|
43986
43986
|
else
|
43987
43987
|
throw er;
|
43988
43988
|
}
|
@@ -44012,21 +44012,21 @@ var require_mkdirp = __commonJS({
|
|
44012
44012
|
var { mkdirpNative, mkdirpNativeSync } = require_mkdirp_native();
|
44013
44013
|
var { mkdirpManual, mkdirpManualSync } = require_mkdirp_manual();
|
44014
44014
|
var { useNative, useNativeSync } = require_use_native();
|
44015
|
-
var mkdirp = (
|
44016
|
-
|
44015
|
+
var mkdirp = (path3, opts) => {
|
44016
|
+
path3 = pathArg(path3);
|
44017
44017
|
opts = optsArg(opts);
|
44018
|
-
return useNative(opts) ? mkdirpNative(
|
44018
|
+
return useNative(opts) ? mkdirpNative(path3, opts) : mkdirpManual(path3, opts);
|
44019
44019
|
};
|
44020
|
-
var mkdirpSync = (
|
44021
|
-
|
44020
|
+
var mkdirpSync = (path3, opts) => {
|
44021
|
+
path3 = pathArg(path3);
|
44022
44022
|
opts = optsArg(opts);
|
44023
|
-
return useNativeSync(opts) ? mkdirpNativeSync(
|
44023
|
+
return useNativeSync(opts) ? mkdirpNativeSync(path3, opts) : mkdirpManualSync(path3, opts);
|
44024
44024
|
};
|
44025
44025
|
mkdirp.sync = mkdirpSync;
|
44026
|
-
mkdirp.native = (
|
44027
|
-
mkdirp.manual = (
|
44028
|
-
mkdirp.nativeSync = (
|
44029
|
-
mkdirp.manualSync = (
|
44026
|
+
mkdirp.native = (path3, opts) => mkdirpNative(pathArg(path3), optsArg(opts));
|
44027
|
+
mkdirp.manual = (path3, opts) => mkdirpManual(pathArg(path3), optsArg(opts));
|
44028
|
+
mkdirp.nativeSync = (path3, opts) => mkdirpNativeSync(pathArg(path3), optsArg(opts));
|
44029
|
+
mkdirp.manualSync = (path3, opts) => mkdirpManualSync(pathArg(path3), optsArg(opts));
|
44030
44030
|
module2.exports = mkdirp;
|
44031
44031
|
}
|
44032
44032
|
});
|
@@ -44036,46 +44036,46 @@ var require_chownr = __commonJS({
|
|
44036
44036
|
"../../../../node_modules/.pnpm/chownr@2.0.0/node_modules/chownr/chownr.js"(exports, module2) {
|
44037
44037
|
"use strict";
|
44038
44038
|
var fs3 = require("fs");
|
44039
|
-
var
|
44039
|
+
var path3 = require("path");
|
44040
44040
|
var LCHOWN = fs3.lchown ? "lchown" : "chown";
|
44041
44041
|
var LCHOWNSYNC = fs3.lchownSync ? "lchownSync" : "chownSync";
|
44042
44042
|
var needEISDIRHandled = fs3.lchown && !process.version.match(/v1[1-9]+\./) && !process.version.match(/v10\.[6-9]/);
|
44043
|
-
var lchownSync = (
|
44043
|
+
var lchownSync = (path4, uid2, gid) => {
|
44044
44044
|
try {
|
44045
|
-
return fs3[LCHOWNSYNC](
|
44045
|
+
return fs3[LCHOWNSYNC](path4, uid2, gid);
|
44046
44046
|
} catch (er) {
|
44047
44047
|
if (er.code !== "ENOENT")
|
44048
44048
|
throw er;
|
44049
44049
|
}
|
44050
44050
|
};
|
44051
|
-
var chownSync = (
|
44051
|
+
var chownSync = (path4, uid2, gid) => {
|
44052
44052
|
try {
|
44053
|
-
return fs3.chownSync(
|
44053
|
+
return fs3.chownSync(path4, uid2, gid);
|
44054
44054
|
} catch (er) {
|
44055
44055
|
if (er.code !== "ENOENT")
|
44056
44056
|
throw er;
|
44057
44057
|
}
|
44058
44058
|
};
|
44059
|
-
var handleEISDIR = needEISDIRHandled ? (
|
44059
|
+
var handleEISDIR = needEISDIRHandled ? (path4, uid2, gid, cb) => (er) => {
|
44060
44060
|
if (!er || er.code !== "EISDIR")
|
44061
44061
|
cb(er);
|
44062
44062
|
else
|
44063
|
-
fs3.chown(
|
44063
|
+
fs3.chown(path4, uid2, gid, cb);
|
44064
44064
|
} : (_, __, ___, cb) => cb;
|
44065
|
-
var handleEISDirSync = needEISDIRHandled ? (
|
44065
|
+
var handleEISDirSync = needEISDIRHandled ? (path4, uid2, gid) => {
|
44066
44066
|
try {
|
44067
|
-
return lchownSync(
|
44067
|
+
return lchownSync(path4, uid2, gid);
|
44068
44068
|
} catch (er) {
|
44069
44069
|
if (er.code !== "EISDIR")
|
44070
44070
|
throw er;
|
44071
|
-
chownSync(
|
44071
|
+
chownSync(path4, uid2, gid);
|
44072
44072
|
}
|
44073
|
-
} : (
|
44073
|
+
} : (path4, uid2, gid) => lchownSync(path4, uid2, gid);
|
44074
44074
|
var nodeVersion = process.version;
|
44075
|
-
var readdir = (
|
44076
|
-
var readdirSync = (
|
44075
|
+
var readdir = (path4, options, cb) => fs3.readdir(path4, options, cb);
|
44076
|
+
var readdirSync = (path4, options) => fs3.readdirSync(path4, options);
|
44077
44077
|
if (/^v4\./.test(nodeVersion))
|
44078
|
-
readdir = (
|
44078
|
+
readdir = (path4, options, cb) => fs3.readdir(path4, cb);
|
44079
44079
|
var chown = (cpath, uid2, gid, cb) => {
|
44080
44080
|
fs3[LCHOWN](cpath, uid2, gid, handleEISDIR(cpath, uid2, gid, (er) => {
|
44081
44081
|
cb(er && er.code !== "ENOENT" ? er : null);
|
@@ -44083,21 +44083,21 @@ var require_chownr = __commonJS({
|
|
44083
44083
|
};
|
44084
44084
|
var chownrKid = (p, child, uid2, gid, cb) => {
|
44085
44085
|
if (typeof child === "string")
|
44086
|
-
return fs3.lstat(
|
44086
|
+
return fs3.lstat(path3.resolve(p, child), (er, stats) => {
|
44087
44087
|
if (er)
|
44088
44088
|
return cb(er.code !== "ENOENT" ? er : null);
|
44089
44089
|
stats.name = child;
|
44090
44090
|
chownrKid(p, stats, uid2, gid, cb);
|
44091
44091
|
});
|
44092
44092
|
if (child.isDirectory()) {
|
44093
|
-
chownr(
|
44093
|
+
chownr(path3.resolve(p, child.name), uid2, gid, (er) => {
|
44094
44094
|
if (er)
|
44095
44095
|
return cb(er);
|
44096
|
-
const cpath =
|
44096
|
+
const cpath = path3.resolve(p, child.name);
|
44097
44097
|
chown(cpath, uid2, gid, cb);
|
44098
44098
|
});
|
44099
44099
|
} else {
|
44100
|
-
const cpath =
|
44100
|
+
const cpath = path3.resolve(p, child.name);
|
44101
44101
|
chown(cpath, uid2, gid, cb);
|
44102
44102
|
}
|
44103
44103
|
};
|
@@ -44127,7 +44127,7 @@ var require_chownr = __commonJS({
|
|
44127
44127
|
var chownrKidSync = (p, child, uid2, gid) => {
|
44128
44128
|
if (typeof child === "string") {
|
44129
44129
|
try {
|
44130
|
-
const stats = fs3.lstatSync(
|
44130
|
+
const stats = fs3.lstatSync(path3.resolve(p, child));
|
44131
44131
|
stats.name = child;
|
44132
44132
|
child = stats;
|
44133
44133
|
} catch (er) {
|
@@ -44138,8 +44138,8 @@ var require_chownr = __commonJS({
|
|
44138
44138
|
}
|
44139
44139
|
}
|
44140
44140
|
if (child.isDirectory())
|
44141
|
-
chownrSync(
|
44142
|
-
handleEISDirSync(
|
44141
|
+
chownrSync(path3.resolve(p, child.name), uid2, gid);
|
44142
|
+
handleEISDirSync(path3.resolve(p, child.name), uid2, gid);
|
44143
44143
|
};
|
44144
44144
|
var chownrSync = (p, uid2, gid) => {
|
44145
44145
|
let children;
|
@@ -44168,13 +44168,13 @@ var require_mkdir = __commonJS({
|
|
44168
44168
|
"use strict";
|
44169
44169
|
var mkdirp = require_mkdirp();
|
44170
44170
|
var fs3 = require("fs");
|
44171
|
-
var
|
44171
|
+
var path3 = require("path");
|
44172
44172
|
var chownr = require_chownr();
|
44173
44173
|
var normPath = require_normalize_windows_path();
|
44174
44174
|
var SymlinkError = class extends Error {
|
44175
|
-
constructor(symlink,
|
44175
|
+
constructor(symlink, path4) {
|
44176
44176
|
super("Cannot extract through symbolic link");
|
44177
|
-
this.path =
|
44177
|
+
this.path = path4;
|
44178
44178
|
this.symlink = symlink;
|
44179
44179
|
}
|
44180
44180
|
get name() {
|
@@ -44182,9 +44182,9 @@ var require_mkdir = __commonJS({
|
|
44182
44182
|
}
|
44183
44183
|
};
|
44184
44184
|
var CwdError = class extends Error {
|
44185
|
-
constructor(
|
44186
|
-
super(code + ": Cannot cd into '" +
|
44187
|
-
this.path =
|
44185
|
+
constructor(path4, code) {
|
44186
|
+
super(code + ": Cannot cd into '" + path4 + "'");
|
44187
|
+
this.path = path4;
|
44188
44188
|
this.code = code;
|
44189
44189
|
}
|
44190
44190
|
get name() {
|
@@ -44231,7 +44231,7 @@ var require_mkdir = __commonJS({
|
|
44231
44231
|
return checkCwd(dir, done);
|
44232
44232
|
if (preserve)
|
44233
44233
|
return mkdirp(dir, { mode }).then((made) => done(null, made), done);
|
44234
|
-
const sub = normPath(
|
44234
|
+
const sub = normPath(path3.relative(cwd, dir));
|
44235
44235
|
const parts = sub.split("/");
|
44236
44236
|
mkdir_(cwd, parts, mode, cache, unlink, cwd, null, done);
|
44237
44237
|
};
|
@@ -44239,7 +44239,7 @@ var require_mkdir = __commonJS({
|
|
44239
44239
|
if (!parts.length)
|
44240
44240
|
return cb(null, created);
|
44241
44241
|
const p = parts.shift();
|
44242
|
-
const part = normPath(
|
44242
|
+
const part = normPath(path3.resolve(base + "/" + p));
|
44243
44243
|
if (cGet(cache, part))
|
44244
44244
|
return mkdir_(part, parts, mode, cache, unlink, cwd, created, cb);
|
44245
44245
|
fs3.mkdir(part, mode, onmkdir(part, parts, mode, cache, unlink, cwd, created, cb));
|
@@ -44307,11 +44307,11 @@ var require_mkdir = __commonJS({
|
|
44307
44307
|
}
|
44308
44308
|
if (preserve)
|
44309
44309
|
return done(mkdirp.sync(dir, mode));
|
44310
|
-
const sub = normPath(
|
44310
|
+
const sub = normPath(path3.relative(cwd, dir));
|
44311
44311
|
const parts = sub.split("/");
|
44312
44312
|
let created = null;
|
44313
44313
|
for (let p = parts.shift(), part = cwd; p && (part += "/" + p); p = parts.shift()) {
|
44314
|
-
part = normPath(
|
44314
|
+
part = normPath(path3.resolve(part));
|
44315
44315
|
if (cGet(cache, part))
|
44316
44316
|
continue;
|
44317
44317
|
try {
|
@@ -44363,11 +44363,11 @@ var require_path_reservations = __commonJS({
|
|
44363
44363
|
module2.exports = () => {
|
44364
44364
|
const queues = /* @__PURE__ */ new Map();
|
44365
44365
|
const reservations = /* @__PURE__ */ new Map();
|
44366
|
-
const getDirs = (
|
44367
|
-
const dirs =
|
44366
|
+
const getDirs = (path3) => {
|
44367
|
+
const dirs = path3.split("/").slice(0, -1).reduce((set, path4) => {
|
44368
44368
|
if (set.length)
|
44369
|
-
|
44370
|
-
set.push(
|
44369
|
+
path4 = join(set[set.length - 1], path4);
|
44370
|
+
set.push(path4 || "/");
|
44371
44371
|
return set;
|
44372
44372
|
}, []);
|
44373
44373
|
return dirs;
|
@@ -44378,8 +44378,8 @@ var require_path_reservations = __commonJS({
|
|
44378
44378
|
if (!res)
|
44379
44379
|
throw new Error("function does not have any path reservations");
|
44380
44380
|
return {
|
44381
|
-
paths: res.paths.map((
|
44382
|
-
dirs: [...res.dirs].map((
|
44381
|
+
paths: res.paths.map((path3) => queues.get(path3)),
|
44382
|
+
dirs: [...res.dirs].map((path3) => queues.get(path3))
|
44383
44383
|
};
|
44384
44384
|
};
|
44385
44385
|
const check = (fn) => {
|
@@ -44398,11 +44398,11 @@ var require_path_reservations = __commonJS({
|
|
44398
44398
|
return false;
|
44399
44399
|
const { paths, dirs } = reservations.get(fn);
|
44400
44400
|
const next = /* @__PURE__ */ new Set();
|
44401
|
-
paths.forEach((
|
44402
|
-
const q = queues.get(
|
44401
|
+
paths.forEach((path3) => {
|
44402
|
+
const q = queues.get(path3);
|
44403
44403
|
assert.equal(q[0], fn);
|
44404
44404
|
if (q.length === 1)
|
44405
|
-
queues.delete(
|
44405
|
+
queues.delete(path3);
|
44406
44406
|
else {
|
44407
44407
|
q.shift();
|
44408
44408
|
if (typeof q[0] === "function")
|
@@ -44431,13 +44431,13 @@ var require_path_reservations = __commonJS({
|
|
44431
44431
|
return normalize(stripSlashes(join(p))).toLowerCase();
|
44432
44432
|
});
|
44433
44433
|
const dirs = new Set(
|
44434
|
-
paths.map((
|
44434
|
+
paths.map((path3) => getDirs(path3)).reduce((a, b) => a.concat(b))
|
44435
44435
|
);
|
44436
44436
|
reservations.set(fn, { dirs, paths });
|
44437
|
-
paths.forEach((
|
44438
|
-
const q = queues.get(
|
44437
|
+
paths.forEach((path3) => {
|
44438
|
+
const q = queues.get(path3);
|
44439
44439
|
if (!q)
|
44440
|
-
queues.set(
|
44440
|
+
queues.set(path3, [fn]);
|
44441
44441
|
else
|
44442
44442
|
q.push(fn);
|
44443
44443
|
});
|
@@ -44479,7 +44479,7 @@ var require_unpack = __commonJS({
|
|
44479
44479
|
var Parser2 = require_parse();
|
44480
44480
|
var fs3 = require("fs");
|
44481
44481
|
var fsm = require_fs_minipass();
|
44482
|
-
var
|
44482
|
+
var path3 = require("path");
|
44483
44483
|
var mkdir = require_mkdir();
|
44484
44484
|
var wc = require_winchars();
|
44485
44485
|
var pathReservations = require_path_reservations();
|
@@ -44516,31 +44516,31 @@ var require_unpack = __commonJS({
|
|
44516
44516
|
var getFlag = require_get_write_flag();
|
44517
44517
|
var platform = process.env.TESTING_TAR_FAKE_PLATFORM || process.platform;
|
44518
44518
|
var isWindows = platform === "win32";
|
44519
|
-
var unlinkFile = (
|
44519
|
+
var unlinkFile = (path4, cb) => {
|
44520
44520
|
if (!isWindows)
|
44521
|
-
return fs3.unlink(
|
44522
|
-
const name =
|
44523
|
-
fs3.rename(
|
44521
|
+
return fs3.unlink(path4, cb);
|
44522
|
+
const name = path4 + ".DELETE." + crypto.randomBytes(16).toString("hex");
|
44523
|
+
fs3.rename(path4, name, (er) => {
|
44524
44524
|
if (er)
|
44525
44525
|
return cb(er);
|
44526
44526
|
fs3.unlink(name, cb);
|
44527
44527
|
});
|
44528
44528
|
};
|
44529
|
-
var unlinkFileSync = (
|
44529
|
+
var unlinkFileSync = (path4) => {
|
44530
44530
|
if (!isWindows)
|
44531
|
-
return fs3.unlinkSync(
|
44532
|
-
const name =
|
44533
|
-
fs3.renameSync(
|
44531
|
+
return fs3.unlinkSync(path4);
|
44532
|
+
const name = path4 + ".DELETE." + crypto.randomBytes(16).toString("hex");
|
44533
|
+
fs3.renameSync(path4, name);
|
44534
44534
|
fs3.unlinkSync(name);
|
44535
44535
|
};
|
44536
44536
|
var uint32 = (a, b, c) => a === a >>> 0 ? a : b === b >>> 0 ? b : c;
|
44537
|
-
var cacheKeyNormalize = (
|
44537
|
+
var cacheKeyNormalize = (path4) => normalize(stripSlash(normPath(path4))).toLowerCase();
|
44538
44538
|
var pruneCache = (cache, abs) => {
|
44539
44539
|
abs = cacheKeyNormalize(abs);
|
44540
|
-
for (const
|
44541
|
-
const pnorm = cacheKeyNormalize(
|
44540
|
+
for (const path4 of cache.keys()) {
|
44541
|
+
const pnorm = cacheKeyNormalize(path4);
|
44542
44542
|
if (pnorm === abs || pnorm.indexOf(abs + "/") === 0)
|
44543
|
-
cache.delete(
|
44543
|
+
cache.delete(path4);
|
44544
44544
|
}
|
44545
44545
|
};
|
44546
44546
|
var dropCache = (cache) => {
|
@@ -44593,7 +44593,7 @@ var require_unpack = __commonJS({
|
|
44593
44593
|
this.noMtime = !!opt.noMtime;
|
44594
44594
|
this.preservePaths = !!opt.preservePaths;
|
44595
44595
|
this.unlink = !!opt.unlink;
|
44596
|
-
this.cwd = normPath(
|
44596
|
+
this.cwd = normPath(path3.resolve(opt.cwd || process.cwd()));
|
44597
44597
|
this.strip = +opt.strip || 0;
|
44598
44598
|
this.processUmask = opt.noChmod ? 0 : process.umask();
|
44599
44599
|
this.umask = typeof opt.umask === "number" ? opt.umask : this.processUmask;
|
@@ -44650,10 +44650,10 @@ var require_unpack = __commonJS({
|
|
44650
44650
|
});
|
44651
44651
|
}
|
44652
44652
|
}
|
44653
|
-
if (
|
44654
|
-
entry.absolute = normPath(
|
44653
|
+
if (path3.isAbsolute(entry.path))
|
44654
|
+
entry.absolute = normPath(path3.resolve(entry.path));
|
44655
44655
|
else
|
44656
|
-
entry.absolute = normPath(
|
44656
|
+
entry.absolute = normPath(path3.resolve(this.cwd, entry.path));
|
44657
44657
|
if (!this.preservePaths && entry.absolute.indexOf(this.cwd + "/") !== 0 && entry.absolute !== this.cwd) {
|
44658
44658
|
this.warn("TAR_ENTRY_ERROR", "path escaped extraction target", {
|
44659
44659
|
entry,
|
@@ -44666,9 +44666,9 @@ var require_unpack = __commonJS({
|
|
44666
44666
|
if (entry.absolute === this.cwd && entry.type !== "Directory" && entry.type !== "GNUDumpDir")
|
44667
44667
|
return false;
|
44668
44668
|
if (this.win32) {
|
44669
|
-
const { root: aRoot } =
|
44669
|
+
const { root: aRoot } = path3.win32.parse(entry.absolute);
|
44670
44670
|
entry.absolute = aRoot + wc.encode(entry.absolute.substr(aRoot.length));
|
44671
|
-
const { root: pRoot } =
|
44671
|
+
const { root: pRoot } = path3.win32.parse(entry.path);
|
44672
44672
|
entry.path = pRoot + wc.encode(entry.path.substr(pRoot.length));
|
44673
44673
|
}
|
44674
44674
|
return true;
|
@@ -44830,7 +44830,7 @@ var require_unpack = __commonJS({
|
|
44830
44830
|
this[LINK](entry, entry.linkpath, "symlink", done);
|
44831
44831
|
}
|
44832
44832
|
[HARDLINK](entry, done) {
|
44833
|
-
const linkpath = normPath(
|
44833
|
+
const linkpath = normPath(path3.resolve(this.cwd, entry.linkpath));
|
44834
44834
|
this[LINK](entry, linkpath, "link", done);
|
44835
44835
|
}
|
44836
44836
|
[PEND]() {
|
@@ -44883,7 +44883,7 @@ var require_unpack = __commonJS({
|
|
44883
44883
|
};
|
44884
44884
|
const start = () => {
|
44885
44885
|
if (entry.absolute !== this.cwd) {
|
44886
|
-
const parent = normPath(
|
44886
|
+
const parent = normPath(path3.dirname(entry.absolute));
|
44887
44887
|
if (parent !== this.cwd) {
|
44888
44888
|
return this[MKDIR](parent, this.dmode, (er) => {
|
44889
44889
|
if (er) {
|
@@ -44981,7 +44981,7 @@ var require_unpack = __commonJS({
|
|
44981
44981
|
this[CHECKED_CWD] = true;
|
44982
44982
|
}
|
44983
44983
|
if (entry.absolute !== this.cwd) {
|
44984
|
-
const parent = normPath(
|
44984
|
+
const parent = normPath(path3.dirname(entry.absolute));
|
44985
44985
|
if (parent !== this.cwd) {
|
44986
44986
|
const mkParent = this[MKDIR](parent, this.dmode);
|
44987
44987
|
if (mkParent)
|
@@ -45133,7 +45133,7 @@ var require_extract = __commonJS({
|
|
45133
45133
|
var Unpack = require_unpack();
|
45134
45134
|
var fs3 = require("fs");
|
45135
45135
|
var fsm = require_fs_minipass();
|
45136
|
-
var
|
45136
|
+
var path3 = require("path");
|
45137
45137
|
var stripSlash = require_strip_trailing_slashes();
|
45138
45138
|
module2.exports = (opt_, files, cb) => {
|
45139
45139
|
if (typeof opt_ === "function")
|
@@ -45159,8 +45159,8 @@ var require_extract = __commonJS({
|
|
45159
45159
|
const map2 = new Map(files.map((f) => [stripSlash(f), true]));
|
45160
45160
|
const filter = opt.filter;
|
45161
45161
|
const mapHas = (file, r) => {
|
45162
|
-
const root = r ||
|
45163
|
-
const ret = file === root ? false : map2.has(file) ? map2.get(file) : mapHas(
|
45162
|
+
const root = r || path3.parse(file).root || ".";
|
45163
|
+
const ret = file === root ? false : map2.has(file) ? map2.get(file) : mapHas(path3.dirname(file), root);
|
45164
45164
|
map2.set(file, ret);
|
45165
45165
|
return ret;
|
45166
45166
|
};
|
@@ -45224,9 +45224,9 @@ var require_tar = __commonJS({
|
|
45224
45224
|
}
|
45225
45225
|
});
|
45226
45226
|
|
45227
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
45227
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/constants.js
|
45228
45228
|
var require_constants5 = __commonJS({
|
45229
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
45229
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/constants.js"(exports) {
|
45230
45230
|
"use strict";
|
45231
45231
|
Object.defineProperty(exports, "__esModule", {
|
45232
45232
|
value: true
|
@@ -45239,9 +45239,9 @@ var require_constants5 = __commonJS({
|
|
45239
45239
|
}
|
45240
45240
|
});
|
45241
45241
|
|
45242
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
45242
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/utils/getNpmTarballUrl.js
|
45243
45243
|
var require_getNpmTarballUrl = __commonJS({
|
45244
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
45244
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/utils/getNpmTarballUrl.js"(exports) {
|
45245
45245
|
"use strict";
|
45246
45246
|
Object.defineProperty(exports, "__esModule", {
|
45247
45247
|
value: true
|
@@ -45275,9 +45275,9 @@ var require_getNpmTarballUrl = __commonJS({
|
|
45275
45275
|
}
|
45276
45276
|
});
|
45277
45277
|
|
45278
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
45278
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/utils/getNpmVersion.js
|
45279
45279
|
var require_getNpmVersion = __commonJS({
|
45280
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
45280
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/utils/getNpmVersion.js"(exports) {
|
45281
45281
|
"use strict";
|
45282
45282
|
Object.defineProperty(exports, "__esModule", {
|
45283
45283
|
value: true
|
@@ -45313,9 +45313,9 @@ var require_getNpmVersion = __commonJS({
|
|
45313
45313
|
}
|
45314
45314
|
});
|
45315
45315
|
|
45316
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
45316
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/utils/downloadPackage.js
|
45317
45317
|
var require_downloadPackage = __commonJS({
|
45318
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
45318
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/utils/downloadPackage.js"(exports) {
|
45319
45319
|
"use strict";
|
45320
45320
|
Object.defineProperty(exports, "__esModule", {
|
45321
45321
|
value: true
|
@@ -45417,9 +45417,9 @@ var require_downloadPackage = __commonJS({
|
|
45417
45417
|
}
|
45418
45418
|
});
|
45419
45419
|
|
45420
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
45420
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/utils/getPackageInfo.js
|
45421
45421
|
var require_getPackageInfo = __commonJS({
|
45422
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
45422
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/utils/getPackageInfo.js"(exports) {
|
45423
45423
|
"use strict";
|
45424
45424
|
Object.defineProperty(exports, "__esModule", {
|
45425
45425
|
value: true
|
@@ -45451,9 +45451,9 @@ var require_getPackageInfo = __commonJS({
|
|
45451
45451
|
}
|
45452
45452
|
});
|
45453
45453
|
|
45454
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
45454
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/utils/index.js
|
45455
45455
|
var require_utils2 = __commonJS({
|
45456
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
45456
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/utils/index.js"(exports) {
|
45457
45457
|
"use strict";
|
45458
45458
|
Object.defineProperty(exports, "__esModule", {
|
45459
45459
|
value: true
|
@@ -45529,9 +45529,9 @@ var require_utils2 = __commonJS({
|
|
45529
45529
|
}
|
45530
45530
|
});
|
45531
45531
|
|
45532
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
45532
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/materials/index.js
|
45533
45533
|
var require_materials = __commonJS({
|
45534
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
45534
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/materials/index.js"(exports) {
|
45535
45535
|
"use strict";
|
45536
45536
|
Object.defineProperty(exports, "__esModule", {
|
45537
45537
|
value: true
|
@@ -45589,9 +45589,9 @@ var require_materials = __commonJS({
|
|
45589
45589
|
}
|
45590
45590
|
});
|
45591
45591
|
|
45592
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
45592
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/codesmith/index.js
|
45593
45593
|
var require_codesmith = __commonJS({
|
45594
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
45594
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/codesmith/index.js"(exports) {
|
45595
45595
|
"use strict";
|
45596
45596
|
Object.defineProperty(exports, "__esModule", {
|
45597
45597
|
value: true
|
@@ -45667,9 +45667,9 @@ var require_codesmith = __commonJS({
|
|
45667
45667
|
}
|
45668
45668
|
});
|
45669
45669
|
|
45670
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
45670
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/index.js
|
45671
45671
|
var require_node = __commonJS({
|
45672
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
45672
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/index.js"(exports) {
|
45673
45673
|
"use strict";
|
45674
45674
|
Object.defineProperty(exports, "__esModule", {
|
45675
45675
|
value: true
|
@@ -53659,9 +53659,9 @@ var require_src2 = __commonJS({
|
|
53659
53659
|
}
|
53660
53660
|
});
|
53661
53661
|
|
53662
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.0.
|
53662
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.0.5/node_modules/@modern-js/codesmith-api-npm/dist/js/node/utils/env.js
|
53663
53663
|
var require_env = __commonJS({
|
53664
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.0.
|
53664
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.0.5/node_modules/@modern-js/codesmith-api-npm/dist/js/node/utils/env.js"(exports) {
|
53665
53665
|
"use strict";
|
53666
53666
|
Object.defineProperty(exports, "__esModule", {
|
53667
53667
|
value: true
|
@@ -53723,9 +53723,9 @@ var require_env = __commonJS({
|
|
53723
53723
|
}
|
53724
53724
|
});
|
53725
53725
|
|
53726
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.0.
|
53726
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.0.5/node_modules/@modern-js/codesmith-api-npm/dist/js/node/utils/install.js
|
53727
53727
|
var require_install = __commonJS({
|
53728
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.0.
|
53728
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.0.5/node_modules/@modern-js/codesmith-api-npm/dist/js/node/utils/install.js"(exports) {
|
53729
53729
|
"use strict";
|
53730
53730
|
Object.defineProperty(exports, "__esModule", {
|
53731
53731
|
value: true
|
@@ -53877,9 +53877,9 @@ var require_install = __commonJS({
|
|
53877
53877
|
}
|
53878
53878
|
});
|
53879
53879
|
|
53880
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.0.
|
53880
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.0.5/node_modules/@modern-js/codesmith-api-npm/dist/js/node/utils/index.js
|
53881
53881
|
var require_utils3 = __commonJS({
|
53882
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.0.
|
53882
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.0.5/node_modules/@modern-js/codesmith-api-npm/dist/js/node/utils/index.js"(exports) {
|
53883
53883
|
"use strict";
|
53884
53884
|
Object.defineProperty(exports, "__esModule", {
|
53885
53885
|
value: true
|
@@ -53943,9 +53943,9 @@ var require_utils3 = __commonJS({
|
|
53943
53943
|
}
|
53944
53944
|
});
|
53945
53945
|
|
53946
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.0.
|
53946
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.0.5/node_modules/@modern-js/codesmith-api-npm/dist/js/node/index.js
|
53947
53947
|
var require_node2 = __commonJS({
|
53948
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.0.
|
53948
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.0.5/node_modules/@modern-js/codesmith-api-npm/dist/js/node/index.js"(exports) {
|
53949
53949
|
"use strict";
|
53950
53950
|
Object.defineProperty(exports, "__esModule", {
|
53951
53951
|
value: true
|
@@ -54020,9 +54020,9 @@ var require_node2 = __commonJS({
|
|
54020
54020
|
}
|
54021
54021
|
});
|
54022
54022
|
|
54023
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.0.
|
54023
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.0.5_@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith-api-git/dist/js/node/utils/index.js
|
54024
54024
|
var require_utils4 = __commonJS({
|
54025
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.0.
|
54025
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.0.5_@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith-api-git/dist/js/node/utils/index.js"(exports) {
|
54026
54026
|
"use strict";
|
54027
54027
|
Object.defineProperty(exports, "__esModule", {
|
54028
54028
|
value: true
|
@@ -54097,9 +54097,9 @@ var require_utils4 = __commonJS({
|
|
54097
54097
|
}
|
54098
54098
|
});
|
54099
54099
|
|
54100
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.0.
|
54100
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.0.5_@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith-api-git/dist/js/node/index.js
|
54101
54101
|
var require_node3 = __commonJS({
|
54102
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.0.
|
54102
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.0.5_@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith-api-git/dist/js/node/index.js"(exports) {
|
54103
54103
|
"use strict";
|
54104
54104
|
Object.defineProperty(exports, "__esModule", {
|
54105
54105
|
value: true
|
@@ -55348,13 +55348,13 @@ var require_ast = __commonJS({
|
|
55348
55348
|
helperExpression: function helperExpression(node) {
|
55349
55349
|
return node.type === "SubExpression" || (node.type === "MustacheStatement" || node.type === "BlockStatement") && !!(node.params && node.params.length || node.hash);
|
55350
55350
|
},
|
55351
|
-
scopedId: function scopedId(
|
55352
|
-
return /^\.|this\b/.test(
|
55351
|
+
scopedId: function scopedId(path3) {
|
55352
|
+
return /^\.|this\b/.test(path3.original);
|
55353
55353
|
},
|
55354
55354
|
// an ID is simple if it only has one part, and that part is not
|
55355
55355
|
// `..` or `this`.
|
55356
|
-
simpleId: function simpleId(
|
55357
|
-
return
|
55356
|
+
simpleId: function simpleId(path3) {
|
55357
|
+
return path3.parts.length === 1 && !AST.helpers.scopedId(path3) && !path3.depth;
|
55358
55358
|
}
|
55359
55359
|
}
|
55360
55360
|
};
|
@@ -56438,12 +56438,12 @@ var require_helpers2 = __commonJS({
|
|
56438
56438
|
loc
|
56439
56439
|
};
|
56440
56440
|
}
|
56441
|
-
function prepareMustache(
|
56441
|
+
function prepareMustache(path3, params, hash, open, strip, locInfo) {
|
56442
56442
|
var escapeFlag = open.charAt(3) || open.charAt(2), escaped = escapeFlag !== "{" && escapeFlag !== "&";
|
56443
56443
|
var decorator = /\*/.test(open);
|
56444
56444
|
return {
|
56445
56445
|
type: decorator ? "Decorator" : "MustacheStatement",
|
56446
|
-
path:
|
56446
|
+
path: path3,
|
56447
56447
|
params,
|
56448
56448
|
hash,
|
56449
56449
|
escaped,
|
@@ -56714,9 +56714,9 @@ var require_compiler = __commonJS({
|
|
56714
56714
|
},
|
56715
56715
|
DecoratorBlock: function DecoratorBlock(decorator) {
|
56716
56716
|
var program2 = decorator.program && this.compileProgram(decorator.program);
|
56717
|
-
var params = this.setupFullMustacheParams(decorator, program2, void 0),
|
56717
|
+
var params = this.setupFullMustacheParams(decorator, program2, void 0), path3 = decorator.path;
|
56718
56718
|
this.useDecorators = true;
|
56719
|
-
this.opcode("registerDecorator", params.length,
|
56719
|
+
this.opcode("registerDecorator", params.length, path3.original);
|
56720
56720
|
},
|
56721
56721
|
PartialStatement: function PartialStatement(partial) {
|
56722
56722
|
this.usePartial = true;
|
@@ -56780,46 +56780,46 @@ var require_compiler = __commonJS({
|
|
56780
56780
|
}
|
56781
56781
|
},
|
56782
56782
|
ambiguousSexpr: function ambiguousSexpr(sexpr, program2, inverse) {
|
56783
|
-
var
|
56784
|
-
this.opcode("getContext",
|
56783
|
+
var path3 = sexpr.path, name = path3.parts[0], isBlock = program2 != null || inverse != null;
|
56784
|
+
this.opcode("getContext", path3.depth);
|
56785
56785
|
this.opcode("pushProgram", program2);
|
56786
56786
|
this.opcode("pushProgram", inverse);
|
56787
|
-
|
56788
|
-
this.accept(
|
56787
|
+
path3.strict = true;
|
56788
|
+
this.accept(path3);
|
56789
56789
|
this.opcode("invokeAmbiguous", name, isBlock);
|
56790
56790
|
},
|
56791
56791
|
simpleSexpr: function simpleSexpr(sexpr) {
|
56792
|
-
var
|
56793
|
-
|
56794
|
-
this.accept(
|
56792
|
+
var path3 = sexpr.path;
|
56793
|
+
path3.strict = true;
|
56794
|
+
this.accept(path3);
|
56795
56795
|
this.opcode("resolvePossibleLambda");
|
56796
56796
|
},
|
56797
56797
|
helperSexpr: function helperSexpr(sexpr, program2, inverse) {
|
56798
|
-
var params = this.setupFullMustacheParams(sexpr, program2, inverse),
|
56798
|
+
var params = this.setupFullMustacheParams(sexpr, program2, inverse), path3 = sexpr.path, name = path3.parts[0];
|
56799
56799
|
if (this.options.knownHelpers[name]) {
|
56800
56800
|
this.opcode("invokeKnownHelper", params.length, name);
|
56801
56801
|
} else if (this.options.knownHelpersOnly) {
|
56802
56802
|
throw new _exception2["default"]("You specified knownHelpersOnly, but used the unknown helper " + name, sexpr);
|
56803
56803
|
} else {
|
56804
|
-
|
56805
|
-
|
56806
|
-
this.accept(
|
56807
|
-
this.opcode("invokeHelper", params.length,
|
56804
|
+
path3.strict = true;
|
56805
|
+
path3.falsy = true;
|
56806
|
+
this.accept(path3);
|
56807
|
+
this.opcode("invokeHelper", params.length, path3.original, _ast2["default"].helpers.simpleId(path3));
|
56808
56808
|
}
|
56809
56809
|
},
|
56810
|
-
PathExpression: function PathExpression(
|
56811
|
-
this.addDepth(
|
56812
|
-
this.opcode("getContext",
|
56813
|
-
var name =
|
56810
|
+
PathExpression: function PathExpression(path3) {
|
56811
|
+
this.addDepth(path3.depth);
|
56812
|
+
this.opcode("getContext", path3.depth);
|
56813
|
+
var name = path3.parts[0], scoped = _ast2["default"].helpers.scopedId(path3), blockParamId = !path3.depth && !scoped && this.blockParamIndex(name);
|
56814
56814
|
if (blockParamId) {
|
56815
|
-
this.opcode("lookupBlockParam", blockParamId,
|
56815
|
+
this.opcode("lookupBlockParam", blockParamId, path3.parts);
|
56816
56816
|
} else if (!name) {
|
56817
56817
|
this.opcode("pushContext");
|
56818
|
-
} else if (
|
56818
|
+
} else if (path3.data) {
|
56819
56819
|
this.options.data = true;
|
56820
|
-
this.opcode("lookupData",
|
56820
|
+
this.opcode("lookupData", path3.depth, path3.parts, path3.strict);
|
56821
56821
|
} else {
|
56822
|
-
this.opcode("lookupOnContext",
|
56822
|
+
this.opcode("lookupOnContext", path3.parts, path3.falsy, path3.strict, scoped);
|
56823
56823
|
}
|
56824
56824
|
},
|
56825
56825
|
StringLiteral: function StringLiteral(string) {
|
@@ -57170,16 +57170,16 @@ var require_util2 = __commonJS({
|
|
57170
57170
|
}
|
57171
57171
|
exports.urlGenerate = urlGenerate;
|
57172
57172
|
function normalize(aPath) {
|
57173
|
-
var
|
57173
|
+
var path3 = aPath;
|
57174
57174
|
var url = urlParse(aPath);
|
57175
57175
|
if (url) {
|
57176
57176
|
if (!url.path) {
|
57177
57177
|
return aPath;
|
57178
57178
|
}
|
57179
|
-
|
57179
|
+
path3 = url.path;
|
57180
57180
|
}
|
57181
|
-
var isAbsolute = exports.isAbsolute(
|
57182
|
-
var parts =
|
57181
|
+
var isAbsolute = exports.isAbsolute(path3);
|
57182
|
+
var parts = path3.split(/\/+/);
|
57183
57183
|
for (var part, up = 0, i = parts.length - 1; i >= 0; i--) {
|
57184
57184
|
part = parts[i];
|
57185
57185
|
if (part === ".") {
|
@@ -57196,15 +57196,15 @@ var require_util2 = __commonJS({
|
|
57196
57196
|
}
|
57197
57197
|
}
|
57198
57198
|
}
|
57199
|
-
|
57200
|
-
if (
|
57201
|
-
|
57199
|
+
path3 = parts.join("/");
|
57200
|
+
if (path3 === "") {
|
57201
|
+
path3 = isAbsolute ? "/" : ".";
|
57202
57202
|
}
|
57203
57203
|
if (url) {
|
57204
|
-
url.path =
|
57204
|
+
url.path = path3;
|
57205
57205
|
return urlGenerate(url);
|
57206
57206
|
}
|
57207
|
-
return
|
57207
|
+
return path3;
|
57208
57208
|
}
|
57209
57209
|
exports.normalize = normalize;
|
57210
57210
|
function join(aRoot, aPath) {
|
@@ -59986,8 +59986,8 @@ var require_printer = __commonJS({
|
|
59986
59986
|
return this.accept(sexpr.path) + " " + params + hash;
|
59987
59987
|
};
|
59988
59988
|
PrintVisitor.prototype.PathExpression = function(id) {
|
59989
|
-
var
|
59990
|
-
return (id.data ? "@" : "") + "PATH:" +
|
59989
|
+
var path3 = id.parts.join("/");
|
59990
|
+
return (id.data ? "@" : "") + "PATH:" + path3;
|
59991
59991
|
};
|
59992
59992
|
PrintVisitor.prototype.StringLiteral = function(string) {
|
59993
59993
|
return '"' + string.value + '"';
|
@@ -60037,9 +60037,9 @@ var require_lib = __commonJS({
|
|
60037
60037
|
}
|
60038
60038
|
});
|
60039
60039
|
|
60040
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.0.
|
60040
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.0.5_@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith-api-handlebars/dist/js/node/utils/renderString.js
|
60041
60041
|
var require_renderString = __commonJS({
|
60042
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.0.
|
60042
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.0.5_@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith-api-handlebars/dist/js/node/utils/renderString.js"(exports) {
|
60043
60043
|
"use strict";
|
60044
60044
|
Object.defineProperty(exports, "__esModule", {
|
60045
60045
|
value: true
|
@@ -60088,9 +60088,9 @@ var require_renderString = __commonJS({
|
|
60088
60088
|
}
|
60089
60089
|
});
|
60090
60090
|
|
60091
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.0.
|
60091
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.0.5_@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith-api-handlebars/dist/js/node/utils/index.js
|
60092
60092
|
var require_utils6 = __commonJS({
|
60093
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.0.
|
60093
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.0.5_@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith-api-handlebars/dist/js/node/utils/index.js"(exports) {
|
60094
60094
|
"use strict";
|
60095
60095
|
Object.defineProperty(exports, "__esModule", {
|
60096
60096
|
value: true
|
@@ -60105,9 +60105,9 @@ var require_utils6 = __commonJS({
|
|
60105
60105
|
}
|
60106
60106
|
});
|
60107
60107
|
|
60108
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.0.
|
60108
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.0.5_@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith-api-handlebars/dist/js/node/index.js
|
60109
60109
|
var require_node4 = __commonJS({
|
60110
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.0.
|
60110
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.0.5_@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith-api-handlebars/dist/js/node/index.js"(exports) {
|
60111
60111
|
"use strict";
|
60112
60112
|
Object.defineProperty(exports, "__esModule", {
|
60113
60113
|
value: true
|
@@ -60121,6 +60121,27 @@ var require_node4 = __commonJS({
|
|
60121
60121
|
});
|
60122
60122
|
var _codesmith = require_node();
|
60123
60123
|
var _utils = require_utils6();
|
60124
|
+
function ownKeys(object, enumerableOnly) {
|
60125
|
+
var keys = Object.keys(object);
|
60126
|
+
if (Object.getOwnPropertySymbols) {
|
60127
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
60128
|
+
enumerableOnly && (symbols = symbols.filter(function(sym) {
|
60129
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
60130
|
+
})), keys.push.apply(keys, symbols);
|
60131
|
+
}
|
60132
|
+
return keys;
|
60133
|
+
}
|
60134
|
+
function _objectSpread(target) {
|
60135
|
+
for (var i = 1; i < arguments.length; i++) {
|
60136
|
+
var source = null != arguments[i] ? arguments[i] : {};
|
60137
|
+
i % 2 ? ownKeys(Object(source), true).forEach(function(key) {
|
60138
|
+
_defineProperty(target, key, source[key]);
|
60139
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function(key) {
|
60140
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
60141
|
+
});
|
60142
|
+
}
|
60143
|
+
return target;
|
60144
|
+
}
|
60124
60145
|
function _defineProperty(obj, key, value) {
|
60125
60146
|
if (key in obj) {
|
60126
60147
|
Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true });
|
@@ -60139,6 +60160,16 @@ var require_node4 = __commonJS({
|
|
60139
60160
|
partials: {}
|
60140
60161
|
};
|
60141
60162
|
}
|
60163
|
+
registerHelp(helpers) {
|
60164
|
+
return __async(this, null, function* () {
|
60165
|
+
this.registers.helpers = _objectSpread(_objectSpread({}, this.registers.helpers), helpers);
|
60166
|
+
});
|
60167
|
+
}
|
60168
|
+
registerPartials(partials) {
|
60169
|
+
return __async(this, null, function* () {
|
60170
|
+
this.registers.partials = _objectSpread(_objectSpread({}, this.registers.partials), partials);
|
60171
|
+
});
|
60172
|
+
}
|
60142
60173
|
renderTemplate(_0, _1) {
|
60143
60174
|
return __async(this, arguments, function* (templateResource, target, parameters = {}) {
|
60144
60175
|
if (templateResource._type !== _codesmith.FS_RESOURCE) {
|
@@ -60339,7 +60370,7 @@ var require_ejs = __commonJS({
|
|
60339
60370
|
"../../../../node_modules/.pnpm/ejs@3.1.8/node_modules/ejs/lib/ejs.js"(exports) {
|
60340
60371
|
"use strict";
|
60341
60372
|
var fs3 = require("fs");
|
60342
|
-
var
|
60373
|
+
var path3 = require("path");
|
60343
60374
|
var utils = require_utils7();
|
60344
60375
|
var scopeOptionWarned = false;
|
60345
60376
|
var _VERSION_STRING = require_package3().version;
|
@@ -60370,9 +60401,9 @@ var require_ejs = __commonJS({
|
|
60370
60401
|
exports.localsName = _DEFAULT_LOCALS_NAME;
|
60371
60402
|
exports.promiseImpl = new Function("return this;")().Promise;
|
60372
60403
|
exports.resolveInclude = function(name, filename, isDir) {
|
60373
|
-
var dirname =
|
60374
|
-
var extname =
|
60375
|
-
var resolve =
|
60404
|
+
var dirname = path3.dirname;
|
60405
|
+
var extname = path3.extname;
|
60406
|
+
var resolve = path3.resolve;
|
60376
60407
|
var includePath = resolve(isDir ? filename : dirname(filename), name);
|
60377
60408
|
var ext = extname(name);
|
60378
60409
|
if (!ext) {
|
@@ -60389,30 +60420,30 @@ var require_ejs = __commonJS({
|
|
60389
60420
|
return filePath;
|
60390
60421
|
}
|
60391
60422
|
}
|
60392
|
-
function getIncludePath(
|
60423
|
+
function getIncludePath(path4, options) {
|
60393
60424
|
var includePath;
|
60394
60425
|
var filePath;
|
60395
60426
|
var views = options.views;
|
60396
|
-
var match = /^[A-Za-z]+:\\|^\//.exec(
|
60427
|
+
var match = /^[A-Za-z]+:\\|^\//.exec(path4);
|
60397
60428
|
if (match && match.length) {
|
60398
|
-
|
60429
|
+
path4 = path4.replace(/^\/*/, "");
|
60399
60430
|
if (Array.isArray(options.root)) {
|
60400
|
-
includePath = resolvePaths(
|
60431
|
+
includePath = resolvePaths(path4, options.root);
|
60401
60432
|
} else {
|
60402
|
-
includePath = exports.resolveInclude(
|
60433
|
+
includePath = exports.resolveInclude(path4, options.root || "/", true);
|
60403
60434
|
}
|
60404
60435
|
} else {
|
60405
60436
|
if (options.filename) {
|
60406
|
-
filePath = exports.resolveInclude(
|
60437
|
+
filePath = exports.resolveInclude(path4, options.filename);
|
60407
60438
|
if (fs3.existsSync(filePath)) {
|
60408
60439
|
includePath = filePath;
|
60409
60440
|
}
|
60410
60441
|
}
|
60411
60442
|
if (!includePath && Array.isArray(views)) {
|
60412
|
-
includePath = resolvePaths(
|
60443
|
+
includePath = resolvePaths(path4, views);
|
60413
60444
|
}
|
60414
60445
|
if (!includePath && typeof options.includer !== "function") {
|
60415
|
-
throw new Error('Could not find the include file "' + options.escapeFunction(
|
60446
|
+
throw new Error('Could not find the include file "' + options.escapeFunction(path4) + '"');
|
60416
60447
|
}
|
60417
60448
|
}
|
60418
60449
|
return includePath;
|
@@ -60471,11 +60502,11 @@ var require_ejs = __commonJS({
|
|
60471
60502
|
function fileLoader(filePath) {
|
60472
60503
|
return exports.fileLoader(filePath);
|
60473
60504
|
}
|
60474
|
-
function includeFile(
|
60505
|
+
function includeFile(path4, options) {
|
60475
60506
|
var opts = utils.shallowCopy(utils.createNullProtoObjWherePossible(), options);
|
60476
|
-
opts.filename = getIncludePath(
|
60507
|
+
opts.filename = getIncludePath(path4, opts);
|
60477
60508
|
if (typeof options.includer === "function") {
|
60478
|
-
var includerResult = options.includer(
|
60509
|
+
var includerResult = options.includer(path4, opts.filename);
|
60479
60510
|
if (includerResult) {
|
60480
60511
|
if (includerResult.filename) {
|
60481
60512
|
opts.filename = includerResult.filename;
|
@@ -60710,12 +60741,12 @@ var require_ejs = __commonJS({
|
|
60710
60741
|
throw e;
|
60711
60742
|
}
|
60712
60743
|
var returnedFn = opts.client ? fn : function anonymous(data) {
|
60713
|
-
var include = function(
|
60744
|
+
var include = function(path4, includeData) {
|
60714
60745
|
var d = utils.shallowCopy(utils.createNullProtoObjWherePossible(), data);
|
60715
60746
|
if (includeData) {
|
60716
60747
|
d = utils.shallowCopy(d, includeData);
|
60717
60748
|
}
|
60718
|
-
return includeFile(
|
60749
|
+
return includeFile(path4, opts)(d);
|
60719
60750
|
};
|
60720
60751
|
return fn.apply(
|
60721
60752
|
opts.context,
|
@@ -60724,7 +60755,7 @@ var require_ejs = __commonJS({
|
|
60724
60755
|
};
|
60725
60756
|
if (opts.filename && typeof Object.defineProperty === "function") {
|
60726
60757
|
var filename = opts.filename;
|
60727
|
-
var basename =
|
60758
|
+
var basename = path3.basename(filename, path3.extname(filename));
|
60728
60759
|
try {
|
60729
60760
|
Object.defineProperty(returnedFn, "name", {
|
60730
60761
|
value: basename,
|
@@ -60880,9 +60911,9 @@ var require_ejs = __commonJS({
|
|
60880
60911
|
}
|
60881
60912
|
});
|
60882
60913
|
|
60883
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.0.
|
60914
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.0.5_@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith-api-ejs/dist/js/node/utils/renderString.js
|
60884
60915
|
var require_renderString2 = __commonJS({
|
60885
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.0.
|
60916
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.0.5_@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith-api-ejs/dist/js/node/utils/renderString.js"(exports) {
|
60886
60917
|
"use strict";
|
60887
60918
|
Object.defineProperty(exports, "__esModule", {
|
60888
60919
|
value: true
|
@@ -60898,9 +60929,9 @@ var require_renderString2 = __commonJS({
|
|
60898
60929
|
}
|
60899
60930
|
});
|
60900
60931
|
|
60901
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.0.
|
60932
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.0.5_@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith-api-ejs/dist/js/node/utils/index.js
|
60902
60933
|
var require_utils8 = __commonJS({
|
60903
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.0.
|
60934
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.0.5_@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith-api-ejs/dist/js/node/utils/index.js"(exports) {
|
60904
60935
|
"use strict";
|
60905
60936
|
Object.defineProperty(exports, "__esModule", {
|
60906
60937
|
value: true
|
@@ -60915,9 +60946,9 @@ var require_utils8 = __commonJS({
|
|
60915
60946
|
}
|
60916
60947
|
});
|
60917
60948
|
|
60918
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.0.
|
60949
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.0.5_@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith-api-ejs/dist/js/node/index.js
|
60919
60950
|
var require_node5 = __commonJS({
|
60920
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.0.
|
60951
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.0.5_@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith-api-ejs/dist/js/node/index.js"(exports) {
|
60921
60952
|
"use strict";
|
60922
60953
|
Object.defineProperty(exports, "__esModule", {
|
60923
60954
|
value: true
|
@@ -60975,9 +61006,9 @@ var require_node5 = __commonJS({
|
|
60975
61006
|
}
|
60976
61007
|
});
|
60977
61008
|
|
60978
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-fs@2.0.
|
61009
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-fs@2.0.5_@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith-api-fs/dist/js/node/constant.js
|
60979
61010
|
var require_constant = __commonJS({
|
60980
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-fs@2.0.
|
61011
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-fs@2.0.5_@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith-api-fs/dist/js/node/constant.js"(exports) {
|
60981
61012
|
"use strict";
|
60982
61013
|
Object.defineProperty(exports, "__esModule", {
|
60983
61014
|
value: true
|
@@ -60988,9 +61019,9 @@ var require_constant = __commonJS({
|
|
60988
61019
|
}
|
60989
61020
|
});
|
60990
61021
|
|
60991
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-fs@2.0.
|
61022
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-fs@2.0.5_@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith-api-fs/dist/js/node/index.js
|
60992
61023
|
var require_node6 = __commonJS({
|
60993
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-fs@2.0.
|
61024
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-fs@2.0.5_@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith-api-fs/dist/js/node/index.js"(exports) {
|
60994
61025
|
"use strict";
|
60995
61026
|
Object.defineProperty(exports, "__esModule", {
|
60996
61027
|
value: true
|
@@ -62179,8 +62210,8 @@ var init_destructor = __esm({
|
|
62179
62210
|
};
|
62180
62211
|
setInByDestructor = function(source, rules, value, mutators) {
|
62181
62212
|
rules.forEach(function(_a2) {
|
62182
|
-
var key = _a2.key,
|
62183
|
-
mutators.setIn([key], source, mutators.getIn(
|
62213
|
+
var key = _a2.key, path3 = _a2.path;
|
62214
|
+
mutators.setIn([key], source, mutators.getIn(path3, value));
|
62184
62215
|
});
|
62185
62216
|
};
|
62186
62217
|
getInByDestructor = function(source, rules, mutators) {
|
@@ -62192,8 +62223,8 @@ var init_destructor = __esm({
|
|
62192
62223
|
}
|
62193
62224
|
source = isValid2(source) ? source : {};
|
62194
62225
|
rules.forEach(function(_a2) {
|
62195
|
-
var key = _a2.key,
|
62196
|
-
mutators.setIn(
|
62226
|
+
var key = _a2.key, path3 = _a2.path;
|
62227
|
+
mutators.setIn(path3, response, source[key]);
|
62197
62228
|
});
|
62198
62229
|
return response;
|
62199
62230
|
};
|
@@ -62774,8 +62805,8 @@ var init_matcher = __esm({
|
|
62774
62805
|
}
|
62775
62806
|
return false;
|
62776
62807
|
};
|
62777
|
-
Matcher2.prototype.match = function(
|
62778
|
-
this.path =
|
62808
|
+
Matcher2.prototype.match = function(path3) {
|
62809
|
+
this.path = path3;
|
62779
62810
|
return { matched: this.matchNode(this.tree), record: this.record };
|
62780
62811
|
};
|
62781
62812
|
Matcher2.matchSegments = function(source, target, record) {
|
@@ -63072,21 +63103,21 @@ var init_esm = __esm({
|
|
63072
63103
|
if (_this.isMatchPattern || _this.isRegExp) {
|
63073
63104
|
throw new Error("".concat(_this.entire, " cannot be concat"));
|
63074
63105
|
}
|
63075
|
-
var
|
63076
|
-
|
63106
|
+
var path3 = new Path2("");
|
63107
|
+
path3.segments = (_a3 = _this.segments).concat.apply(_a3, __spreadArray([], __read(args.map(function(s) {
|
63077
63108
|
return parseString(s);
|
63078
63109
|
})), false));
|
63079
|
-
|
63080
|
-
return
|
63110
|
+
path3.entire = path3.segments.join(".");
|
63111
|
+
return path3;
|
63081
63112
|
};
|
63082
63113
|
this.slice = function(start, end) {
|
63083
63114
|
if (_this.isMatchPattern || _this.isRegExp) {
|
63084
63115
|
throw new Error("".concat(_this.entire, " cannot be slice"));
|
63085
63116
|
}
|
63086
|
-
var
|
63087
|
-
|
63088
|
-
|
63089
|
-
return
|
63117
|
+
var path3 = new Path2("");
|
63118
|
+
path3.segments = _this.segments.slice(start, end);
|
63119
|
+
path3.entire = path3.segments.join(".");
|
63120
|
+
return path3;
|
63090
63121
|
};
|
63091
63122
|
this.push = function() {
|
63092
63123
|
var items = [];
|
@@ -63178,8 +63209,8 @@ var init_esm = __esm({
|
|
63178
63209
|
};
|
63179
63210
|
this.match = function(pattern) {
|
63180
63211
|
var _a3, _b;
|
63181
|
-
var
|
63182
|
-
var cache = _this.matchCache.get(
|
63212
|
+
var path3 = Path2.parse(pattern);
|
63213
|
+
var cache = _this.matchCache.get(path3.entire);
|
63183
63214
|
if (cache !== void 0) {
|
63184
63215
|
if (cache.record && cache.record.score !== void 0) {
|
63185
63216
|
_this.matchScore = cache.record.score;
|
@@ -63187,21 +63218,21 @@ var init_esm = __esm({
|
|
63187
63218
|
return cache.matched;
|
63188
63219
|
}
|
63189
63220
|
var cacheWith = function(value) {
|
63190
|
-
_this.matchCache.set(
|
63221
|
+
_this.matchCache.set(path3.entire, value);
|
63191
63222
|
return value;
|
63192
63223
|
};
|
63193
|
-
if (
|
63224
|
+
if (path3.isMatchPattern) {
|
63194
63225
|
if (_this.isMatchPattern) {
|
63195
|
-
throw new Error("".concat(
|
63226
|
+
throw new Error("".concat(path3.entire, " cannot match ").concat(_this.entire));
|
63196
63227
|
} else {
|
63197
63228
|
_this.matchScore = 0;
|
63198
|
-
return cacheWith(
|
63229
|
+
return cacheWith(path3.match(_this.segments));
|
63199
63230
|
}
|
63200
63231
|
} else {
|
63201
63232
|
if (_this.isMatchPattern) {
|
63202
63233
|
if (_this.isRegExp) {
|
63203
63234
|
try {
|
63204
|
-
return (_b = (_a3 = _this["entire"]) === null || _a3 === void 0 ? void 0 : _a3["test"]) === null || _b === void 0 ? void 0 : _b.call(_a3,
|
63235
|
+
return (_b = (_a3 = _this["entire"]) === null || _a3 === void 0 ? void 0 : _a3["test"]) === null || _b === void 0 ? void 0 : _b.call(_a3, path3.entire);
|
63205
63236
|
} finally {
|
63206
63237
|
;
|
63207
63238
|
_this.entire.lastIndex = 0;
|
@@ -63210,14 +63241,14 @@ var init_esm = __esm({
|
|
63210
63241
|
var record = {
|
63211
63242
|
score: 0
|
63212
63243
|
};
|
63213
|
-
var result = cacheWith(new Matcher(_this.tree, record).match(
|
63244
|
+
var result = cacheWith(new Matcher(_this.tree, record).match(path3.segments));
|
63214
63245
|
_this.matchScore = record.score;
|
63215
63246
|
return result.matched;
|
63216
63247
|
} else {
|
63217
63248
|
var record = {
|
63218
63249
|
score: 0
|
63219
63250
|
};
|
63220
|
-
var result = cacheWith(Matcher.matchSegments(_this.segments,
|
63251
|
+
var result = cacheWith(Matcher.matchSegments(_this.segments, path3.segments, record));
|
63221
63252
|
_this.matchScore = record.score;
|
63222
63253
|
return result.matched;
|
63223
63254
|
}
|
@@ -63293,12 +63324,12 @@ var init_esm = __esm({
|
|
63293
63324
|
configurable: true
|
63294
63325
|
});
|
63295
63326
|
Path2.match = function(pattern) {
|
63296
|
-
var
|
63327
|
+
var path3 = Path2.parse(pattern);
|
63297
63328
|
var matcher = function(target) {
|
63298
|
-
return
|
63329
|
+
return path3.match(target);
|
63299
63330
|
};
|
63300
63331
|
matcher[isMatcher] = true;
|
63301
|
-
matcher.path =
|
63332
|
+
matcher.path = path3;
|
63302
63333
|
return matcher;
|
63303
63334
|
};
|
63304
63335
|
Path2.isPathPattern = function(target) {
|
@@ -63310,52 +63341,52 @@ var init_esm = __esm({
|
|
63310
63341
|
Path2.transform = function(pattern, regexp, callback) {
|
63311
63342
|
return Path2.parse(pattern).transform(regexp, callback);
|
63312
63343
|
};
|
63313
|
-
Path2.parse = function(
|
63314
|
-
if (
|
63315
|
-
|
63344
|
+
Path2.parse = function(path3, base) {
|
63345
|
+
if (path3 === void 0) {
|
63346
|
+
path3 = "";
|
63316
63347
|
}
|
63317
|
-
if (
|
63318
|
-
var found = pathCache.get(
|
63348
|
+
if (path3 instanceof Path2) {
|
63349
|
+
var found = pathCache.get(path3.entire);
|
63319
63350
|
if (found) {
|
63320
63351
|
return found;
|
63321
63352
|
} else {
|
63322
|
-
pathCache.set(
|
63323
|
-
return
|
63353
|
+
pathCache.set(path3.entire, path3);
|
63354
|
+
return path3;
|
63324
63355
|
}
|
63325
|
-
} else if (
|
63326
|
-
return Path2.parse(
|
63356
|
+
} else if (path3 && path3[isMatcher]) {
|
63357
|
+
return Path2.parse(path3["path"]);
|
63327
63358
|
} else {
|
63328
63359
|
var key_ = base ? Path2.parse(base) : "";
|
63329
|
-
var key = "".concat(
|
63360
|
+
var key = "".concat(path3, ":").concat(key_);
|
63330
63361
|
var found = pathCache.get(key);
|
63331
63362
|
if (found) {
|
63332
63363
|
return found;
|
63333
63364
|
} else {
|
63334
|
-
|
63335
|
-
pathCache.set(key,
|
63336
|
-
return
|
63365
|
+
path3 = new Path2(path3, base);
|
63366
|
+
pathCache.set(key, path3);
|
63367
|
+
return path3;
|
63337
63368
|
}
|
63338
63369
|
}
|
63339
63370
|
};
|
63340
63371
|
Path2.getIn = function(source, pattern) {
|
63341
|
-
var
|
63342
|
-
return
|
63372
|
+
var path3 = Path2.parse(pattern);
|
63373
|
+
return path3.getIn(source);
|
63343
63374
|
};
|
63344
63375
|
Path2.setIn = function(source, pattern, value) {
|
63345
|
-
var
|
63346
|
-
return
|
63376
|
+
var path3 = Path2.parse(pattern);
|
63377
|
+
return path3.setIn(source, value);
|
63347
63378
|
};
|
63348
63379
|
Path2.deleteIn = function(source, pattern) {
|
63349
|
-
var
|
63350
|
-
return
|
63380
|
+
var path3 = Path2.parse(pattern);
|
63381
|
+
return path3.deleteIn(source);
|
63351
63382
|
};
|
63352
63383
|
Path2.existIn = function(source, pattern, start) {
|
63353
|
-
var
|
63354
|
-
return
|
63384
|
+
var path3 = Path2.parse(pattern);
|
63385
|
+
return path3.existIn(source, start);
|
63355
63386
|
};
|
63356
63387
|
Path2.ensureIn = function(source, pattern, defaultValue) {
|
63357
|
-
var
|
63358
|
-
return
|
63388
|
+
var path3 = Path2.parse(pattern);
|
63389
|
+
return path3.ensureIn(source, defaultValue);
|
63359
63390
|
};
|
63360
63391
|
return Path2;
|
63361
63392
|
}();
|
@@ -65392,9 +65423,9 @@ var init_shared2 = __esm({
|
|
65392
65423
|
traverse = function(target, visitor) {
|
65393
65424
|
var seenObjects = [];
|
65394
65425
|
var root = target;
|
65395
|
-
var traverse2 = function(target2,
|
65396
|
-
if (
|
65397
|
-
|
65426
|
+
var traverse2 = function(target2, path3) {
|
65427
|
+
if (path3 === void 0) {
|
65428
|
+
path3 = [];
|
65398
65429
|
}
|
65399
65430
|
if (isPlainObj(target2)) {
|
65400
65431
|
var seenIndex = seenObjects.indexOf(target2);
|
@@ -65404,15 +65435,15 @@ var init_shared2 = __esm({
|
|
65404
65435
|
var addIndex = seenObjects.length;
|
65405
65436
|
seenObjects.push(target2);
|
65406
65437
|
if (isNoNeedCompileObject(target2) && root !== target2) {
|
65407
|
-
visitor(target2,
|
65438
|
+
visitor(target2, path3);
|
65408
65439
|
return;
|
65409
65440
|
}
|
65410
65441
|
each(target2, function(value, key) {
|
65411
|
-
traverse2(value,
|
65442
|
+
traverse2(value, path3.concat(key));
|
65412
65443
|
});
|
65413
65444
|
seenObjects.splice(addIndex, 1);
|
65414
65445
|
} else {
|
65415
|
-
visitor(target2,
|
65446
|
+
visitor(target2, path3);
|
65416
65447
|
}
|
65417
65448
|
};
|
65418
65449
|
traverse2(target);
|
@@ -65423,24 +65454,24 @@ var init_shared2 = __esm({
|
|
65423
65454
|
}
|
65424
65455
|
var seenObjects = [];
|
65425
65456
|
var root = schema;
|
65426
|
-
var traverse2 = function(target,
|
65457
|
+
var traverse2 = function(target, path3) {
|
65427
65458
|
var _a2;
|
65428
|
-
if (
|
65429
|
-
|
65459
|
+
if (path3 === void 0) {
|
65460
|
+
path3 = [];
|
65430
65461
|
}
|
65431
|
-
if (
|
65462
|
+
if (path3[0] === "x-compile-omitted" || path3[0] === "x-validator" || path3[0] === "version" || path3[0] === "_isJSONSchemaObject")
|
65432
65463
|
return;
|
65433
|
-
if (String(
|
65464
|
+
if (String(path3[0]).indexOf("x-") == -1 && isFn(target))
|
65434
65465
|
return;
|
65435
|
-
if (SchemaNestedMap[
|
65466
|
+
if (SchemaNestedMap[path3[0]])
|
65436
65467
|
return;
|
65437
|
-
if (((_a2 = schema["x-compile-omitted"]) === null || _a2 === void 0 ? void 0 : _a2.indexOf(
|
65438
|
-
visitor(target,
|
65468
|
+
if (((_a2 = schema["x-compile-omitted"]) === null || _a2 === void 0 ? void 0 : _a2.indexOf(path3[0])) > -1) {
|
65469
|
+
visitor(target, path3, true);
|
65439
65470
|
return;
|
65440
65471
|
}
|
65441
65472
|
if (isPlainObj(target)) {
|
65442
|
-
if (
|
65443
|
-
visitor(target,
|
65473
|
+
if (path3[0] === "default" || path3[0] === "x-value") {
|
65474
|
+
visitor(target, path3);
|
65444
65475
|
return;
|
65445
65476
|
}
|
65446
65477
|
var seenIndex = seenObjects.indexOf(target);
|
@@ -65450,15 +65481,15 @@ var init_shared2 = __esm({
|
|
65450
65481
|
var addIndex = seenObjects.length;
|
65451
65482
|
seenObjects.push(target);
|
65452
65483
|
if (isNoNeedCompileObject(target) && root !== target) {
|
65453
|
-
visitor(target,
|
65484
|
+
visitor(target, path3);
|
65454
65485
|
return;
|
65455
65486
|
}
|
65456
65487
|
each(target, function(value, key) {
|
65457
|
-
traverse2(value,
|
65488
|
+
traverse2(value, path3.concat(key));
|
65458
65489
|
});
|
65459
65490
|
seenObjects.splice(addIndex, 1);
|
65460
65491
|
} else {
|
65461
|
-
visitor(target,
|
65492
|
+
visitor(target, path3);
|
65462
65493
|
}
|
65463
65494
|
};
|
65464
65495
|
traverse2(schema);
|
@@ -65502,8 +65533,8 @@ var init_shared2 = __esm({
|
|
65502
65533
|
patchStateFormSchema = function(targetState, pattern, compiled) {
|
65503
65534
|
untracked(function() {
|
65504
65535
|
var _a2;
|
65505
|
-
var
|
65506
|
-
var segments =
|
65536
|
+
var path3 = Path.parse(pattern);
|
65537
|
+
var segments = path3.segments;
|
65507
65538
|
var key = segments[0];
|
65508
65539
|
var isEnum = key === "enum" && isArr(compiled);
|
65509
65540
|
var schemaMapKey = SchemaStateMap[key];
|
@@ -65595,14 +65626,14 @@ var init_compiler = __esm({
|
|
65595
65626
|
};
|
65596
65627
|
patchCompile = function(targetState, sourceState, scope) {
|
65597
65628
|
traverse(sourceState, function(value, pattern) {
|
65598
|
-
var
|
65629
|
+
var path3 = Path.parse(pattern);
|
65599
65630
|
var compiled = compile(value, scope);
|
65600
|
-
var key =
|
65631
|
+
var key = path3.segments[0];
|
65601
65632
|
if (compiled === void 0)
|
65602
65633
|
return;
|
65603
65634
|
if (hasOwnProperty4.call(targetState, key)) {
|
65604
65635
|
untracked(function() {
|
65605
|
-
return Path.setIn(targetState,
|
65636
|
+
return Path.setIn(targetState, path3, compiled);
|
65606
65637
|
});
|
65607
65638
|
}
|
65608
65639
|
});
|
@@ -65611,7 +65642,7 @@ var init_compiler = __esm({
|
|
65611
65642
|
if (demand === void 0) {
|
65612
65643
|
demand = false;
|
65613
65644
|
}
|
65614
|
-
traverseSchema(sourceSchema, function(value,
|
65645
|
+
traverseSchema(sourceSchema, function(value, path3, omitCompile) {
|
65615
65646
|
var compiled = value;
|
65616
65647
|
var collected = hasCollected(function() {
|
65617
65648
|
if (!omitCompile) {
|
@@ -65622,10 +65653,10 @@ var init_compiler = __esm({
|
|
65622
65653
|
return;
|
65623
65654
|
if (demand) {
|
65624
65655
|
if (collected || !targetState.initialized) {
|
65625
|
-
patchStateFormSchema(targetState,
|
65656
|
+
patchStateFormSchema(targetState, path3, compiled);
|
65626
65657
|
}
|
65627
65658
|
} else {
|
65628
|
-
patchStateFormSchema(targetState,
|
65659
|
+
patchStateFormSchema(targetState, path3, compiled);
|
65629
65660
|
}
|
65630
65661
|
});
|
65631
65662
|
};
|
@@ -65949,14 +65980,14 @@ var init_registry = __esm({
|
|
65949
65980
|
getValidateLanguage = function() {
|
65950
65981
|
return registry.locales.language;
|
65951
65982
|
};
|
65952
|
-
getLocaleByPath = function(
|
65983
|
+
getLocaleByPath = function(path3, lang) {
|
65953
65984
|
if (lang === void 0) {
|
65954
65985
|
lang = registry.locales.language;
|
65955
65986
|
}
|
65956
|
-
return getIn2(registry.locales.messages, "".concat(getISOCode(lang), ".").concat(
|
65987
|
+
return getIn2(registry.locales.messages, "".concat(getISOCode(lang), ".").concat(path3));
|
65957
65988
|
};
|
65958
|
-
getValidateLocale = function(
|
65959
|
-
var message = getLocaleByPath(
|
65989
|
+
getValidateLocale = function(path3) {
|
65990
|
+
var message = getLocaleByPath(path3);
|
65960
65991
|
return message || getLocaleByPath("pattern") || getLocaleByPath("pattern", defaultLanguage);
|
65961
65992
|
};
|
65962
65993
|
getValidateMessageTemplateEngine = function() {
|
@@ -67314,15 +67345,15 @@ var init_internals2 = __esm({
|
|
67314
67345
|
buildDataPath = function(fields, pattern) {
|
67315
67346
|
var prevArray = false;
|
67316
67347
|
var segments = pattern.segments;
|
67317
|
-
var
|
67318
|
-
var currentPath =
|
67348
|
+
var path3 = segments.reduce(function(path4, key, index) {
|
67349
|
+
var currentPath = path4.concat(key);
|
67319
67350
|
var currentAddress = segments.slice(0, index + 1);
|
67320
67351
|
var current = fields[currentAddress.join(".")];
|
67321
67352
|
if (prevArray) {
|
67322
67353
|
if (!isVoidField(current)) {
|
67323
67354
|
prevArray = false;
|
67324
67355
|
}
|
67325
|
-
return
|
67356
|
+
return path4;
|
67326
67357
|
}
|
67327
67358
|
if (index >= segments.length - 1) {
|
67328
67359
|
return currentPath;
|
@@ -67334,13 +67365,13 @@ var init_internals2 = __esm({
|
|
67334
67365
|
prevArray = true;
|
67335
67366
|
return currentPath;
|
67336
67367
|
}
|
67337
|
-
return
|
67368
|
+
return path4;
|
67338
67369
|
} else {
|
67339
67370
|
prevArray = false;
|
67340
67371
|
}
|
67341
67372
|
return currentPath;
|
67342
67373
|
}, []);
|
67343
|
-
return new Path(
|
67374
|
+
return new Path(path3);
|
67344
67375
|
};
|
67345
67376
|
locateNode = function(field, address2) {
|
67346
67377
|
field.address = Path.parse(address2);
|
@@ -67374,33 +67405,33 @@ var init_internals2 = __esm({
|
|
67374
67405
|
field === null || field === void 0 ? void 0 : field.dispose();
|
67375
67406
|
if (isDataField(field) && forceClear) {
|
67376
67407
|
var form = field.form;
|
67377
|
-
var
|
67378
|
-
form.deleteValuesIn(
|
67379
|
-
form.deleteInitialValuesIn(
|
67408
|
+
var path3 = field.path;
|
67409
|
+
form.deleteValuesIn(path3);
|
67410
|
+
form.deleteInitialValuesIn(path3);
|
67380
67411
|
}
|
67381
67412
|
delete target[address2];
|
67382
67413
|
};
|
67383
|
-
patchFormValues = function(form,
|
67384
|
-
var update = function(
|
67385
|
-
if (
|
67386
|
-
form.setValuesIn(
|
67414
|
+
patchFormValues = function(form, path3, source) {
|
67415
|
+
var update = function(path4, source2) {
|
67416
|
+
if (path4.length) {
|
67417
|
+
form.setValuesIn(path4, clone(source2));
|
67387
67418
|
} else {
|
67388
67419
|
Object.assign(form.values, clone(source2));
|
67389
67420
|
}
|
67390
67421
|
};
|
67391
|
-
var patch = function(source2,
|
67392
|
-
if (
|
67393
|
-
|
67422
|
+
var patch = function(source2, path4) {
|
67423
|
+
if (path4 === void 0) {
|
67424
|
+
path4 = [];
|
67394
67425
|
}
|
67395
|
-
var targetValue = form.getValuesIn(
|
67396
|
-
var targetField = form.query(
|
67426
|
+
var targetValue = form.getValuesIn(path4);
|
67427
|
+
var targetField = form.query(path4).take();
|
67397
67428
|
var isUnVoidField = targetField && !isVoidField(targetField);
|
67398
67429
|
if (isUnVoidField && targetField.display === "none") {
|
67399
67430
|
targetField.caches.value = clone(source2);
|
67400
67431
|
return;
|
67401
67432
|
}
|
67402
67433
|
if (allowAssignDefaultValue(targetValue, source2)) {
|
67403
|
-
update(
|
67434
|
+
update(path4, source2);
|
67404
67435
|
} else {
|
67405
67436
|
if (isEmpty(source2))
|
67406
67437
|
return;
|
@@ -67408,20 +67439,20 @@ var init_internals2 = __esm({
|
|
67408
67439
|
return;
|
67409
67440
|
if (isPlainObj(targetValue) && isPlainObj(source2)) {
|
67410
67441
|
each(source2, function(value, key) {
|
67411
|
-
patch(value,
|
67442
|
+
patch(value, path4.concat(key));
|
67412
67443
|
});
|
67413
67444
|
} else {
|
67414
67445
|
if (targetField) {
|
67415
67446
|
if (isUnVoidField && !targetField.selfModified) {
|
67416
|
-
update(
|
67447
|
+
update(path4, source2);
|
67417
67448
|
}
|
67418
67449
|
} else if (form.initialized) {
|
67419
|
-
update(
|
67450
|
+
update(path4, source2);
|
67420
67451
|
}
|
67421
67452
|
}
|
67422
67453
|
}
|
67423
67454
|
};
|
67424
|
-
patch(source,
|
67455
|
+
patch(source, path3);
|
67425
67456
|
};
|
67426
67457
|
matchFeedback = function(search, feedback) {
|
67427
67458
|
if (!search || !feedback)
|
@@ -67844,13 +67875,13 @@ var init_internals2 = __esm({
|
|
67844
67875
|
} else if (isGeneralField(pattern)) {
|
67845
67876
|
pattern.setState(payload);
|
67846
67877
|
} else {
|
67847
|
-
var matchCount_1 = 0,
|
67848
|
-
form.query(
|
67878
|
+
var matchCount_1 = 0, path3 = Path.parse(pattern);
|
67879
|
+
form.query(path3).forEach(function(field) {
|
67849
67880
|
field.setState(payload);
|
67850
67881
|
matchCount_1++;
|
67851
67882
|
});
|
67852
|
-
if (matchCount_1 === 0 ||
|
67853
|
-
subscribeUpdate(form,
|
67883
|
+
if (matchCount_1 === 0 || path3.isWildMatchPattern) {
|
67884
|
+
subscribeUpdate(form, path3, payload);
|
67854
67885
|
}
|
67855
67886
|
}
|
67856
67887
|
});
|
@@ -70555,8 +70586,8 @@ var init_transformer = __esm({
|
|
70555
70586
|
};
|
70556
70587
|
DefaultFieldEffects = ["onFieldInit", "onFieldValueChange"];
|
70557
70588
|
getDependencyValue = function(field, pattern, property) {
|
70558
|
-
var _a2 = __read7(String(pattern).split(/\s*#\s*/), 2), target = _a2[0],
|
70559
|
-
return field.query(target).getIn(
|
70589
|
+
var _a2 = __read7(String(pattern).split(/\s*#\s*/), 2), target = _a2[0], path3 = _a2[1];
|
70590
|
+
return field.query(target).getIn(path3 || property || "value");
|
70560
70591
|
};
|
70561
70592
|
getDependencies = function(field, dependencies) {
|
70562
70593
|
if (isArr(dependencies)) {
|
@@ -72738,11 +72769,11 @@ var require_baseGet = __commonJS({
|
|
72738
72769
|
"../../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseGet.js"(exports, module2) {
|
72739
72770
|
var castPath = require_castPath();
|
72740
72771
|
var toKey = require_toKey();
|
72741
|
-
function baseGet(object,
|
72742
|
-
|
72743
|
-
var index = 0, length =
|
72772
|
+
function baseGet(object, path3) {
|
72773
|
+
path3 = castPath(path3, object);
|
72774
|
+
var index = 0, length = path3.length;
|
72744
72775
|
while (object != null && index < length) {
|
72745
|
-
object = object[toKey(
|
72776
|
+
object = object[toKey(path3[index++])];
|
72746
72777
|
}
|
72747
72778
|
return index && index == length ? object : void 0;
|
72748
72779
|
}
|
@@ -72754,8 +72785,8 @@ var require_baseGet = __commonJS({
|
|
72754
72785
|
var require_get = __commonJS({
|
72755
72786
|
"../../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/get.js"(exports, module2) {
|
72756
72787
|
var baseGet = require_baseGet();
|
72757
|
-
function get2(object,
|
72758
|
-
var result = object == null ? void 0 : baseGet(object,
|
72788
|
+
function get2(object, path3, defaultValue) {
|
72789
|
+
var result = object == null ? void 0 : baseGet(object, path3);
|
72759
72790
|
return result === void 0 ? defaultValue : result;
|
72760
72791
|
}
|
72761
72792
|
module2.exports = get2;
|
@@ -72837,14 +72868,14 @@ var require_baseSet = __commonJS({
|
|
72837
72868
|
var isIndex = require_isIndex();
|
72838
72869
|
var isObject2 = require_isObject();
|
72839
72870
|
var toKey = require_toKey();
|
72840
|
-
function baseSet(object,
|
72871
|
+
function baseSet(object, path3, value, customizer) {
|
72841
72872
|
if (!isObject2(object)) {
|
72842
72873
|
return object;
|
72843
72874
|
}
|
72844
|
-
|
72845
|
-
var index = -1, length =
|
72875
|
+
path3 = castPath(path3, object);
|
72876
|
+
var index = -1, length = path3.length, lastIndex = length - 1, nested = object;
|
72846
72877
|
while (nested != null && ++index < length) {
|
72847
|
-
var key = toKey(
|
72878
|
+
var key = toKey(path3[index]), newValue = value;
|
72848
72879
|
if (key === "__proto__" || key === "constructor" || key === "prototype") {
|
72849
72880
|
return object;
|
72850
72881
|
}
|
@@ -72852,7 +72883,7 @@ var require_baseSet = __commonJS({
|
|
72852
72883
|
var objValue = nested[key];
|
72853
72884
|
newValue = customizer ? customizer(objValue, key, nested) : void 0;
|
72854
72885
|
if (newValue === void 0) {
|
72855
|
-
newValue = isObject2(objValue) ? objValue : isIndex(
|
72886
|
+
newValue = isObject2(objValue) ? objValue : isIndex(path3[index + 1]) ? [] : {};
|
72856
72887
|
}
|
72857
72888
|
}
|
72858
72889
|
assignValue(nested, key, newValue);
|
@@ -72868,8 +72899,8 @@ var require_baseSet = __commonJS({
|
|
72868
72899
|
var require_set = __commonJS({
|
72869
72900
|
"../../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/set.js"(exports, module2) {
|
72870
72901
|
var baseSet = require_baseSet();
|
72871
|
-
function set(object,
|
72872
|
-
return object == null ? object : baseSet(object,
|
72902
|
+
function set(object, path3, value) {
|
72903
|
+
return object == null ? object : baseSet(object, path3, value);
|
72873
72904
|
}
|
72874
72905
|
module2.exports = set;
|
72875
72906
|
}
|
@@ -85382,11 +85413,11 @@ var require_hasPath = __commonJS({
|
|
85382
85413
|
var isIndex = require_isIndex();
|
85383
85414
|
var isLength = require_isLength();
|
85384
85415
|
var toKey = require_toKey();
|
85385
|
-
function hasPath(object,
|
85386
|
-
|
85387
|
-
var index = -1, length =
|
85416
|
+
function hasPath(object, path3, hasFunc) {
|
85417
|
+
path3 = castPath(path3, object);
|
85418
|
+
var index = -1, length = path3.length, result = false;
|
85388
85419
|
while (++index < length) {
|
85389
|
-
var key = toKey(
|
85420
|
+
var key = toKey(path3[index]);
|
85390
85421
|
if (!(result = object != null && hasFunc(object, key))) {
|
85391
85422
|
break;
|
85392
85423
|
}
|
@@ -85407,8 +85438,8 @@ var require_hasIn = __commonJS({
|
|
85407
85438
|
"../../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/hasIn.js"(exports, module2) {
|
85408
85439
|
var baseHasIn = require_baseHasIn();
|
85409
85440
|
var hasPath = require_hasPath();
|
85410
|
-
function hasIn(object,
|
85411
|
-
return object != null && hasPath(object,
|
85441
|
+
function hasIn(object, path3) {
|
85442
|
+
return object != null && hasPath(object, path3, baseHasIn);
|
85412
85443
|
}
|
85413
85444
|
module2.exports = hasIn;
|
85414
85445
|
}
|
@@ -85426,13 +85457,13 @@ var require_baseMatchesProperty = __commonJS({
|
|
85426
85457
|
var toKey = require_toKey();
|
85427
85458
|
var COMPARE_PARTIAL_FLAG = 1;
|
85428
85459
|
var COMPARE_UNORDERED_FLAG = 2;
|
85429
|
-
function baseMatchesProperty(
|
85430
|
-
if (isKey(
|
85431
|
-
return matchesStrictComparable(toKey(
|
85460
|
+
function baseMatchesProperty(path3, srcValue) {
|
85461
|
+
if (isKey(path3) && isStrictComparable(srcValue)) {
|
85462
|
+
return matchesStrictComparable(toKey(path3), srcValue);
|
85432
85463
|
}
|
85433
85464
|
return function(object) {
|
85434
|
-
var objValue = get2(object,
|
85435
|
-
return objValue === void 0 && objValue === srcValue ? hasIn(object,
|
85465
|
+
var objValue = get2(object, path3);
|
85466
|
+
return objValue === void 0 && objValue === srcValue ? hasIn(object, path3) : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);
|
85436
85467
|
};
|
85437
85468
|
}
|
85438
85469
|
module2.exports = baseMatchesProperty;
|
@@ -85455,9 +85486,9 @@ var require_baseProperty = __commonJS({
|
|
85455
85486
|
var require_basePropertyDeep = __commonJS({
|
85456
85487
|
"../../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_basePropertyDeep.js"(exports, module2) {
|
85457
85488
|
var baseGet = require_baseGet();
|
85458
|
-
function basePropertyDeep(
|
85489
|
+
function basePropertyDeep(path3) {
|
85459
85490
|
return function(object) {
|
85460
|
-
return baseGet(object,
|
85491
|
+
return baseGet(object, path3);
|
85461
85492
|
};
|
85462
85493
|
}
|
85463
85494
|
module2.exports = basePropertyDeep;
|
@@ -85471,8 +85502,8 @@ var require_property = __commonJS({
|
|
85471
85502
|
var basePropertyDeep = require_basePropertyDeep();
|
85472
85503
|
var isKey = require_isKey();
|
85473
85504
|
var toKey = require_toKey();
|
85474
|
-
function property(
|
85475
|
-
return isKey(
|
85505
|
+
function property(path3) {
|
85506
|
+
return isKey(path3) ? baseProperty(toKey(path3)) : basePropertyDeep(path3);
|
85476
85507
|
}
|
85477
85508
|
module2.exports = property;
|
85478
85509
|
}
|
@@ -101551,16 +101582,16 @@ var require_os_tmpdir = __commonJS({
|
|
101551
101582
|
var isWindows = process.platform === "win32";
|
101552
101583
|
var trailingSlashRe = isWindows ? /[^:]\\$/ : /.\/$/;
|
101553
101584
|
module2.exports = function() {
|
101554
|
-
var
|
101585
|
+
var path3;
|
101555
101586
|
if (isWindows) {
|
101556
|
-
|
101587
|
+
path3 = process.env.TEMP || process.env.TMP || (process.env.SystemRoot || process.env.windir) + "\\temp";
|
101557
101588
|
} else {
|
101558
|
-
|
101589
|
+
path3 = process.env.TMPDIR || process.env.TMP || process.env.TEMP || "/tmp";
|
101559
101590
|
}
|
101560
|
-
if (trailingSlashRe.test(
|
101561
|
-
|
101591
|
+
if (trailingSlashRe.test(path3)) {
|
101592
|
+
path3 = path3.slice(0, -1);
|
101562
101593
|
}
|
101563
|
-
return
|
101594
|
+
return path3;
|
101564
101595
|
};
|
101565
101596
|
}
|
101566
101597
|
});
|
@@ -101569,7 +101600,7 @@ var require_os_tmpdir = __commonJS({
|
|
101569
101600
|
var require_tmp = __commonJS({
|
101570
101601
|
"../../../../node_modules/.pnpm/tmp@0.0.33/node_modules/tmp/lib/tmp.js"(exports, module2) {
|
101571
101602
|
var fs3 = require("fs");
|
101572
|
-
var
|
101603
|
+
var path3 = require("path");
|
101573
101604
|
var crypto = require("crypto");
|
101574
101605
|
var osTmpDir = require_os_tmpdir();
|
101575
101606
|
var _c = process.binding("constants");
|
@@ -101611,7 +101642,7 @@ var require_tmp = __commonJS({
|
|
101611
101642
|
}
|
101612
101643
|
function _generateTmpName(opts) {
|
101613
101644
|
if (opts.name) {
|
101614
|
-
return
|
101645
|
+
return path3.join(opts.dir || tmpDir, opts.name);
|
101615
101646
|
}
|
101616
101647
|
if (opts.template) {
|
101617
101648
|
return opts.template.replace(TEMPLATE_PATTERN, _randomChars(6));
|
@@ -101622,7 +101653,7 @@ var require_tmp = __commonJS({
|
|
101622
101653
|
_randomChars(12),
|
101623
101654
|
opts.postfix || ""
|
101624
101655
|
].join("");
|
101625
|
-
return
|
101656
|
+
return path3.join(opts.dir || tmpDir, name);
|
101626
101657
|
}
|
101627
101658
|
function tmpName(options, callback) {
|
101628
101659
|
var args = _parseArguments(options, callback), opts = args[0], cb = args[1], tries = opts.name ? 1 : opts.tries || DEFAULT_TRIES;
|
@@ -101710,7 +101741,7 @@ var require_tmp = __commonJS({
|
|
101710
101741
|
do {
|
101711
101742
|
var dir2 = dirs.pop(), deferred = false, files = fs3.readdirSync(dir2);
|
101712
101743
|
for (var i = 0, length = files.length; i < length; i++) {
|
101713
|
-
var file2 =
|
101744
|
+
var file2 = path3.join(dir2, files[i]), stat = fs3.lstatSync(file2);
|
101714
101745
|
if (stat.isDirectory()) {
|
101715
101746
|
if (!deferred) {
|
101716
101747
|
deferred = true;
|
@@ -102349,9 +102380,9 @@ var require_inquirer = __commonJS({
|
|
102349
102380
|
}
|
102350
102381
|
});
|
102351
102382
|
|
102352
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.0.
|
102383
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.0.5_nm4hhkiukvbf5akr5dslvh5h6q/node_modules/@modern-js/codesmith-formily/dist/js/node/transform.js
|
102353
102384
|
var require_transform = __commonJS({
|
102354
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.0.
|
102385
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.0.5_nm4hhkiukvbf5akr5dslvh5h6q/node_modules/@modern-js/codesmith-formily/dist/js/node/transform.js"(exports) {
|
102355
102386
|
"use strict";
|
102356
102387
|
Object.defineProperty(exports, "__esModule", {
|
102357
102388
|
value: true
|
@@ -102520,9 +102551,9 @@ var require_transform = __commonJS({
|
|
102520
102551
|
}
|
102521
102552
|
});
|
102522
102553
|
|
102523
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.0.
|
102554
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.0.5_nm4hhkiukvbf5akr5dslvh5h6q/node_modules/@modern-js/codesmith-formily/dist/js/node/prompt.js
|
102524
102555
|
var require_prompt2 = __commonJS({
|
102525
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.0.
|
102556
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.0.5_nm4hhkiukvbf5akr5dslvh5h6q/node_modules/@modern-js/codesmith-formily/dist/js/node/prompt.js"(exports) {
|
102526
102557
|
"use strict";
|
102527
102558
|
Object.defineProperty(exports, "__esModule", {
|
102528
102559
|
value: true
|
@@ -102660,9 +102691,9 @@ var require_prompt2 = __commonJS({
|
|
102660
102691
|
}
|
102661
102692
|
});
|
102662
102693
|
|
102663
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.0.
|
102694
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.0.5_nm4hhkiukvbf5akr5dslvh5h6q/node_modules/@modern-js/codesmith-formily/dist/js/node/inquirer.js
|
102664
102695
|
var require_inquirer2 = __commonJS({
|
102665
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.0.
|
102696
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.0.5_nm4hhkiukvbf5akr5dslvh5h6q/node_modules/@modern-js/codesmith-formily/dist/js/node/inquirer.js"(exports) {
|
102666
102697
|
"use strict";
|
102667
102698
|
Object.defineProperty(exports, "__esModule", {
|
102668
102699
|
value: true
|
@@ -102734,9 +102765,9 @@ var require_inquirer2 = __commonJS({
|
|
102734
102765
|
}
|
102735
102766
|
});
|
102736
102767
|
|
102737
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.0.
|
102768
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.0.5_nm4hhkiukvbf5akr5dslvh5h6q/node_modules/@modern-js/codesmith-formily/dist/js/node/index.js
|
102738
102769
|
var require_node7 = __commonJS({
|
102739
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.0.
|
102770
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.0.5_nm4hhkiukvbf5akr5dslvh5h6q/node_modules/@modern-js/codesmith-formily/dist/js/node/index.js"(exports) {
|
102740
102771
|
"use strict";
|
102741
102772
|
Object.defineProperty(exports, "__esModule", {
|
102742
102773
|
value: true
|
@@ -102917,8 +102948,8 @@ var require_parent = __commonJS({
|
|
102917
102948
|
"../../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_parent.js"(exports, module2) {
|
102918
102949
|
var baseGet = require_baseGet();
|
102919
102950
|
var baseSlice = require_baseSlice();
|
102920
|
-
function parent(object,
|
102921
|
-
return
|
102951
|
+
function parent(object, path3) {
|
102952
|
+
return path3.length < 2 ? object : baseGet(object, baseSlice(path3, 0, -1));
|
102922
102953
|
}
|
102923
102954
|
module2.exports = parent;
|
102924
102955
|
}
|
@@ -102931,10 +102962,10 @@ var require_baseUnset = __commonJS({
|
|
102931
102962
|
var last = require_last2();
|
102932
102963
|
var parent = require_parent();
|
102933
102964
|
var toKey = require_toKey();
|
102934
|
-
function baseUnset(object,
|
102935
|
-
|
102936
|
-
object = parent(object,
|
102937
|
-
return object == null || delete object[toKey(last(
|
102965
|
+
function baseUnset(object, path3) {
|
102966
|
+
path3 = castPath(path3, object);
|
102967
|
+
object = parent(object, path3);
|
102968
|
+
return object == null || delete object[toKey(last(path3))];
|
102938
102969
|
}
|
102939
102970
|
module2.exports = baseUnset;
|
102940
102971
|
}
|
@@ -103037,10 +103068,10 @@ var require_omit = __commonJS({
|
|
103037
103068
|
return result;
|
103038
103069
|
}
|
103039
103070
|
var isDeep = false;
|
103040
|
-
paths = arrayMap(paths, function(
|
103041
|
-
|
103042
|
-
isDeep || (isDeep =
|
103043
|
-
return
|
103071
|
+
paths = arrayMap(paths, function(path3) {
|
103072
|
+
path3 = castPath(path3, object);
|
103073
|
+
isDeep || (isDeep = path3.length > 1);
|
103074
|
+
return path3;
|
103044
103075
|
});
|
103045
103076
|
copyObject(object, getAllKeysIn(object), result);
|
103046
103077
|
if (isDeep) {
|
@@ -105549,9 +105580,9 @@ var require_node8 = __commonJS({
|
|
105549
105580
|
}
|
105550
105581
|
});
|
105551
105582
|
|
105552
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.0.
|
105583
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.0.5_nm4hhkiukvbf5akr5dslvh5h6q/node_modules/@modern-js/codesmith-api-app/dist/js/node/locale/zh.js
|
105553
105584
|
var require_zh = __commonJS({
|
105554
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.0.
|
105585
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.0.5_nm4hhkiukvbf5akr5dslvh5h6q/node_modules/@modern-js/codesmith-api-app/dist/js/node/locale/zh.js"(exports) {
|
105555
105586
|
"use strict";
|
105556
105587
|
Object.defineProperty(exports, "__esModule", {
|
105557
105588
|
value: true
|
@@ -105586,9 +105617,9 @@ var require_zh = __commonJS({
|
|
105586
105617
|
}
|
105587
105618
|
});
|
105588
105619
|
|
105589
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.0.
|
105620
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.0.5_nm4hhkiukvbf5akr5dslvh5h6q/node_modules/@modern-js/codesmith-api-app/dist/js/node/locale/en.js
|
105590
105621
|
var require_en = __commonJS({
|
105591
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.0.
|
105622
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.0.5_nm4hhkiukvbf5akr5dslvh5h6q/node_modules/@modern-js/codesmith-api-app/dist/js/node/locale/en.js"(exports) {
|
105592
105623
|
"use strict";
|
105593
105624
|
Object.defineProperty(exports, "__esModule", {
|
105594
105625
|
value: true
|
@@ -105623,9 +105654,9 @@ var require_en = __commonJS({
|
|
105623
105654
|
}
|
105624
105655
|
});
|
105625
105656
|
|
105626
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.0.
|
105657
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.0.5_nm4hhkiukvbf5akr5dslvh5h6q/node_modules/@modern-js/codesmith-api-app/dist/js/node/locale/index.js
|
105627
105658
|
var require_locale = __commonJS({
|
105628
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.0.
|
105659
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.0.5_nm4hhkiukvbf5akr5dslvh5h6q/node_modules/@modern-js/codesmith-api-app/dist/js/node/locale/index.js"(exports) {
|
105629
105660
|
"use strict";
|
105630
105661
|
Object.defineProperty(exports, "__esModule", {
|
105631
105662
|
value: true
|
@@ -105650,9 +105681,9 @@ var require_locale = __commonJS({
|
|
105650
105681
|
}
|
105651
105682
|
});
|
105652
105683
|
|
105653
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.0.
|
105684
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.0.5_nm4hhkiukvbf5akr5dslvh5h6q/node_modules/@modern-js/codesmith-api-app/dist/js/node/utils/transform.js
|
105654
105685
|
var require_transform2 = __commonJS({
|
105655
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.0.
|
105686
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.0.5_nm4hhkiukvbf5akr5dslvh5h6q/node_modules/@modern-js/codesmith-api-app/dist/js/node/utils/transform.js"(exports) {
|
105656
105687
|
"use strict";
|
105657
105688
|
Object.defineProperty(exports, "__esModule", {
|
105658
105689
|
value: true
|
@@ -105687,9 +105718,9 @@ var require_transform2 = __commonJS({
|
|
105687
105718
|
}
|
105688
105719
|
});
|
105689
105720
|
|
105690
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.0.
|
105721
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.0.5_nm4hhkiukvbf5akr5dslvh5h6q/node_modules/@modern-js/codesmith-api-app/dist/js/node/utils/checkUseNvm.js
|
105691
105722
|
var require_checkUseNvm = __commonJS({
|
105692
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.0.
|
105723
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.0.5_nm4hhkiukvbf5akr5dslvh5h6q/node_modules/@modern-js/codesmith-api-app/dist/js/node/utils/checkUseNvm.js"(exports) {
|
105693
105724
|
"use strict";
|
105694
105725
|
Object.defineProperty(exports, "__esModule", {
|
105695
105726
|
value: true
|
@@ -105752,9 +105783,9 @@ var require_checkUseNvm = __commonJS({
|
|
105752
105783
|
}
|
105753
105784
|
});
|
105754
105785
|
|
105755
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.0.
|
105786
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.0.5_nm4hhkiukvbf5akr5dslvh5h6q/node_modules/@modern-js/codesmith-api-app/dist/js/node/index.js
|
105756
105787
|
var require_node9 = __commonJS({
|
105757
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.0.
|
105788
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.0.5_nm4hhkiukvbf5akr5dslvh5h6q/node_modules/@modern-js/codesmith-api-app/dist/js/node/index.js"(exports) {
|
105758
105789
|
"use strict";
|
105759
105790
|
Object.defineProperty(exports, "__esModule", {
|
105760
105791
|
value: true
|
@@ -105808,13 +105839,13 @@ var require_node9 = __commonJS({
|
|
105808
105839
|
var AppAPI2 = class {
|
105809
105840
|
constructor(generatorContext, generatorCore) {
|
105810
105841
|
_defineProperty(this, "i18n", _locale.i18n);
|
105811
|
-
_defineProperty(this, "generatorCore", void 0);
|
105812
|
-
_defineProperty(this, "generatorContext", void 0);
|
105813
105842
|
_defineProperty(this, "npmApi", void 0);
|
105814
105843
|
_defineProperty(this, "gitApi", void 0);
|
105815
105844
|
_defineProperty(this, "handlebarsAPI", void 0);
|
105816
105845
|
_defineProperty(this, "ejsAPI", void 0);
|
105817
105846
|
_defineProperty(this, "fsAPI", void 0);
|
105847
|
+
_defineProperty(this, "generatorCore", void 0);
|
105848
|
+
_defineProperty(this, "generatorContext", void 0);
|
105818
105849
|
this.generatorCore = generatorCore;
|
105819
105850
|
this.generatorContext = generatorContext;
|
105820
105851
|
this.npmApi = new _codesmithApiNpm.NpmAPI(generatorCore);
|
@@ -105874,6 +105905,7 @@ var require_node9 = __commonJS({
|
|
105874
105905
|
yield intallPromise;
|
105875
105906
|
this.generatorCore.logger.info(_locale.i18n.t(_locale.localeKeys.install.success));
|
105876
105907
|
} catch (e) {
|
105908
|
+
this.generatorCore.logger.warn(e);
|
105877
105909
|
this.generatorCore.logger.warn(_locale.i18n.t(_locale.localeKeys.install.failed, {
|
105878
105910
|
command: command || `${packageManager} install`
|
105879
105911
|
}));
|
@@ -106323,26 +106355,26 @@ var require_mongo_dot = __commonJS({
|
|
106323
106355
|
}
|
106324
106356
|
}
|
106325
106357
|
exports.parent = parent;
|
106326
|
-
var get2 = function(obj,
|
106327
|
-
if (
|
106328
|
-
var par = parent(obj,
|
106329
|
-
var mainKey =
|
106358
|
+
var get2 = function(obj, path3) {
|
106359
|
+
if (path3.includes(".")) {
|
106360
|
+
var par = parent(obj, path3);
|
106361
|
+
var mainKey = path3.split(".").pop();
|
106330
106362
|
var t = get_type_1.default(par);
|
106331
106363
|
if ("object" === t || "array" === t)
|
106332
106364
|
return par[mainKey];
|
106333
106365
|
} else {
|
106334
|
-
return obj[
|
106366
|
+
return obj[path3];
|
106335
106367
|
}
|
106336
106368
|
};
|
106337
106369
|
exports.get = get2;
|
106338
|
-
var set = function(obj,
|
106339
|
-
if (
|
106340
|
-
var par = parent(obj,
|
106341
|
-
var mainKey =
|
106370
|
+
var set = function(obj, path3, val) {
|
106371
|
+
if (path3.includes(".")) {
|
106372
|
+
var par = parent(obj, path3, true);
|
106373
|
+
var mainKey = path3.split(".").pop();
|
106342
106374
|
if (par && "object" === get_type_1.default(par))
|
106343
106375
|
par[mainKey] = val;
|
106344
106376
|
} else {
|
106345
|
-
obj[
|
106377
|
+
obj[path3] = val;
|
106346
106378
|
}
|
106347
106379
|
};
|
106348
106380
|
exports.set = set;
|
@@ -106424,9 +106456,9 @@ var require_mods = __commonJS({
|
|
106424
106456
|
}
|
106425
106457
|
};
|
106426
106458
|
}
|
106427
|
-
var $set = function $set2(obj,
|
106428
|
-
var key =
|
106429
|
-
obj = mongoDot.parent(obj,
|
106459
|
+
var $set = function $set2(obj, path3, val) {
|
106460
|
+
var key = path3.split(".").pop();
|
106461
|
+
obj = mongoDot.parent(obj, path3, true);
|
106430
106462
|
switch (get_type_1.default(obj)) {
|
106431
106463
|
case "object":
|
106432
106464
|
if (!mongo_eql_1.default(obj[key], val)) {
|
@@ -106453,9 +106485,9 @@ var require_mods = __commonJS({
|
|
106453
106485
|
}
|
106454
106486
|
};
|
106455
106487
|
exports.$set = $set;
|
106456
|
-
var $unset = function $unset2(obj,
|
106457
|
-
var key =
|
106458
|
-
obj = mongoDot.parent(obj,
|
106488
|
+
var $unset = function $unset2(obj, path3) {
|
106489
|
+
var key = path3.split(".").pop();
|
106490
|
+
obj = mongoDot.parent(obj, path3);
|
106459
106491
|
switch (get_type_1.default(obj)) {
|
106460
106492
|
case "array":
|
106461
106493
|
case "object":
|
@@ -106469,17 +106501,17 @@ var require_mods = __commonJS({
|
|
106469
106501
|
}
|
106470
106502
|
};
|
106471
106503
|
exports.$unset = $unset;
|
106472
|
-
var $rename = function $rename2(obj,
|
106473
|
-
if (
|
106504
|
+
var $rename = function $rename2(obj, path3, newKey) {
|
106505
|
+
if (path3 === newKey) {
|
106474
106506
|
throw new Error("$rename source must differ from target");
|
106475
106507
|
}
|
106476
|
-
if (0 ===
|
106508
|
+
if (0 === path3.indexOf(newKey + ".")) {
|
106477
106509
|
throw new Error("$rename target may not be a parent of source");
|
106478
106510
|
}
|
106479
|
-
var p = mongoDot.parent(obj,
|
106511
|
+
var p = mongoDot.parent(obj, path3);
|
106480
106512
|
var t = get_type_1.default(p);
|
106481
106513
|
if ("object" === t) {
|
106482
|
-
var key_1 =
|
106514
|
+
var key_1 = path3.split(".").pop();
|
106483
106515
|
if (p.hasOwnProperty(key_1)) {
|
106484
106516
|
return function() {
|
106485
106517
|
var val = p[key_1];
|
@@ -106500,12 +106532,12 @@ var require_mods = __commonJS({
|
|
106500
106532
|
}
|
106501
106533
|
};
|
106502
106534
|
exports.$rename = $rename;
|
106503
|
-
var $inc = function $inc2(obj,
|
106535
|
+
var $inc = function $inc2(obj, path3, inc) {
|
106504
106536
|
if ("number" !== get_type_1.default(inc)) {
|
106505
106537
|
throw new Error("Modifier $inc allowed for numbers only");
|
106506
106538
|
}
|
106507
|
-
obj = mongoDot.parent(obj,
|
106508
|
-
var key =
|
106539
|
+
obj = mongoDot.parent(obj, path3, true);
|
106540
|
+
var key = path3.split(".").pop();
|
106509
106541
|
switch (get_type_1.default(obj)) {
|
106510
106542
|
case "array":
|
106511
106543
|
case "object":
|
@@ -106531,9 +106563,9 @@ var require_mods = __commonJS({
|
|
106531
106563
|
}
|
106532
106564
|
};
|
106533
106565
|
exports.$inc = $inc;
|
106534
|
-
var $pop = function $pop2(obj,
|
106535
|
-
obj = mongoDot.parent(obj,
|
106536
|
-
var key =
|
106566
|
+
var $pop = function $pop2(obj, path3, val) {
|
106567
|
+
obj = mongoDot.parent(obj, path3);
|
106568
|
+
var key = path3.split(".").pop();
|
106537
106569
|
switch (get_type_1.default(obj)) {
|
106538
106570
|
case "array":
|
106539
106571
|
case "object":
|
@@ -106566,9 +106598,9 @@ var require_mods = __commonJS({
|
|
106566
106598
|
}
|
106567
106599
|
};
|
106568
106600
|
exports.$pop = $pop;
|
106569
|
-
var $push = function $push2(obj,
|
106570
|
-
obj = mongoDot.parent(obj,
|
106571
|
-
var key =
|
106601
|
+
var $push = function $push2(obj, path3, val) {
|
106602
|
+
obj = mongoDot.parent(obj, path3, true);
|
106603
|
+
var key = path3.split(".").pop();
|
106572
106604
|
switch (get_type_1.default(obj)) {
|
106573
106605
|
case "object":
|
106574
106606
|
if (obj.hasOwnProperty(key)) {
|
@@ -106609,12 +106641,12 @@ var require_mods = __commonJS({
|
|
106609
106641
|
}
|
106610
106642
|
};
|
106611
106643
|
exports.$push = $push;
|
106612
|
-
var $pushAll = function $pushAll2(obj,
|
106644
|
+
var $pushAll = function $pushAll2(obj, path3, val) {
|
106613
106645
|
if ("array" !== get_type_1.default(val)) {
|
106614
106646
|
throw new Error("Modifier $pushAll/pullAll allowed for arrays only");
|
106615
106647
|
}
|
106616
|
-
obj = mongoDot.parent(obj,
|
106617
|
-
var key =
|
106648
|
+
obj = mongoDot.parent(obj, path3, true);
|
106649
|
+
var key = path3.split(".").pop();
|
106618
106650
|
switch (get_type_1.default(obj)) {
|
106619
106651
|
case "object":
|
106620
106652
|
if (obj.hasOwnProperty(key)) {
|
@@ -106655,9 +106687,9 @@ var require_mods = __commonJS({
|
|
106655
106687
|
}
|
106656
106688
|
};
|
106657
106689
|
exports.$pushAll = $pushAll;
|
106658
|
-
var $pull = function $pull2(obj,
|
106659
|
-
obj = mongoDot.parent(obj,
|
106660
|
-
var key =
|
106690
|
+
var $pull = function $pull2(obj, path3, val) {
|
106691
|
+
obj = mongoDot.parent(obj, path3, true);
|
106692
|
+
var key = path3.split(".").pop();
|
106661
106693
|
var t = get_type_1.default(obj);
|
106662
106694
|
switch (t) {
|
106663
106695
|
case "object":
|
@@ -106701,12 +106733,12 @@ var require_mods = __commonJS({
|
|
106701
106733
|
}
|
106702
106734
|
};
|
106703
106735
|
exports.$pull = $pull;
|
106704
|
-
var $pullAll = function $pullAll2(obj,
|
106736
|
+
var $pullAll = function $pullAll2(obj, path3, val) {
|
106705
106737
|
if ("array" !== get_type_1.default(val)) {
|
106706
106738
|
throw new Error("Modifier $pushAll/pullAll allowed for arrays only");
|
106707
106739
|
}
|
106708
|
-
obj = mongoDot.parent(obj,
|
106709
|
-
var key =
|
106740
|
+
obj = mongoDot.parent(obj, path3, true);
|
106741
|
+
var key = path3.split(".").pop();
|
106710
106742
|
var t = get_type_1.default(obj);
|
106711
106743
|
switch (t) {
|
106712
106744
|
case "object":
|
@@ -106750,11 +106782,11 @@ var require_mods = __commonJS({
|
|
106750
106782
|
}
|
106751
106783
|
};
|
106752
106784
|
exports.$pullAll = $pullAll;
|
106753
|
-
var $addToSet = function $addToSet2(obj,
|
106785
|
+
var $addToSet = function $addToSet2(obj, path3, val, recursing) {
|
106754
106786
|
if (!recursing && "array" === get_type_1.default(val.$each)) {
|
106755
106787
|
var fns_1 = [];
|
106756
106788
|
for (var i = 0, l = val.$each.length; i < l; i++) {
|
106757
|
-
var fn = $addToSet2(obj,
|
106789
|
+
var fn = $addToSet2(obj, path3, val.$each[i], true);
|
106758
106790
|
if (fn)
|
106759
106791
|
fns_1.push(fn);
|
106760
106792
|
}
|
@@ -106769,8 +106801,8 @@ var require_mods = __commonJS({
|
|
106769
106801
|
return;
|
106770
106802
|
}
|
106771
106803
|
}
|
106772
|
-
obj = mongoDot.parent(obj,
|
106773
|
-
var key =
|
106804
|
+
obj = mongoDot.parent(obj, path3, true);
|
106805
|
+
var key = path3.split(".").pop();
|
106774
106806
|
switch (get_type_1.default(obj)) {
|
106775
106807
|
case "object":
|
106776
106808
|
if (obj.hasOwnProperty(key)) {
|
@@ -106905,9 +106937,9 @@ var require_dist2 = __commonJS({
|
|
106905
106937
|
}
|
106906
106938
|
});
|
106907
106939
|
|
106908
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.0.
|
106940
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.0.5/node_modules/@modern-js/codesmith-api-json/dist/js/node/utils/index.js
|
106909
106941
|
var require_utils12 = __commonJS({
|
106910
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.0.
|
106942
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.0.5/node_modules/@modern-js/codesmith-api-json/dist/js/node/utils/index.js"(exports) {
|
106911
106943
|
"use strict";
|
106912
106944
|
Object.defineProperty(exports, "__esModule", {
|
106913
106945
|
value: true
|
@@ -106929,9 +106961,9 @@ var require_utils12 = __commonJS({
|
|
106929
106961
|
}
|
106930
106962
|
});
|
106931
106963
|
|
106932
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.0.
|
106964
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.0.5/node_modules/@modern-js/codesmith-api-json/dist/js/node/index.js
|
106933
106965
|
var require_node10 = __commonJS({
|
106934
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.0.
|
106966
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.0.5/node_modules/@modern-js/codesmith-api-json/dist/js/node/index.js"(exports) {
|
106935
106967
|
"use strict";
|
106936
106968
|
Object.defineProperty(exports, "__esModule", {
|
106937
106969
|
value: true
|
@@ -136387,7 +136419,7 @@ var require_FileSizeReporter2 = __commonJS({
|
|
136387
136419
|
});
|
136388
136420
|
module2.exports = __toCommonJS2(FileSizeReporter_exports);
|
136389
136421
|
var import_fs = __toESM2(require("fs"));
|
136390
|
-
var
|
136422
|
+
var import_path4 = __toESM2(require("path"));
|
136391
136423
|
var import_compiled = require_compiled2();
|
136392
136424
|
var import_logger = require_logger4();
|
136393
136425
|
function canReadAsset(asset) {
|
@@ -136398,7 +136430,7 @@ var require_FileSizeReporter2 = __commonJS({
|
|
136398
136430
|
var sizes = previousSizeMap.sizes;
|
136399
136431
|
var assets = (webpackStats.stats || [webpackStats]).map(
|
136400
136432
|
(stats) => stats.toJson({ all: false, assets: true }).assets.filter((asset) => canReadAsset(asset.name)).map((asset) => {
|
136401
|
-
var fileContents = import_fs.default.readFileSync(
|
136433
|
+
var fileContents = import_fs.default.readFileSync(import_path4.default.join(root, asset.name));
|
136402
136434
|
var size = fileContents.length;
|
136403
136435
|
var gzippedSize = import_compiled.gzipSize.sync(fileContents);
|
136404
136436
|
var [previousSize, previousGzipSize] = sizes[removeFileNameHash(root, asset.name)] || [];
|
@@ -136408,11 +136440,11 @@ var require_FileSizeReporter2 = __commonJS({
|
|
136408
136440
|
previousGzipSize
|
136409
136441
|
);
|
136410
136442
|
return {
|
136411
|
-
folder:
|
136412
|
-
|
136413
|
-
|
136443
|
+
folder: import_path4.default.join(
|
136444
|
+
import_path4.default.basename(buildFolder),
|
136445
|
+
import_path4.default.dirname(asset.name)
|
136414
136446
|
),
|
136415
|
-
name:
|
136447
|
+
name: import_path4.default.basename(asset.name),
|
136416
136448
|
gzippedSize,
|
136417
136449
|
sizeLabel: (0, import_compiled.filesize)(size) + (sizeDifference ? " (" + sizeDifference + ")" : ""),
|
136418
136450
|
gzipSizeLabel: (0, import_compiled.filesize)(gzippedSize) + (gzipSizeDifference ? " (" + gzipSizeDifference + ")" : "")
|
@@ -136426,19 +136458,19 @@ var require_FileSizeReporter2 = __commonJS({
|
|
136426
136458
|
);
|
136427
136459
|
var longestFileNameLength = Math.max.apply(
|
136428
136460
|
null,
|
136429
|
-
assets.map((a) => (0, import_compiled.stripAnsi)(a.folder +
|
136461
|
+
assets.map((a) => (0, import_compiled.stripAnsi)(a.folder + import_path4.default.sep + a.name).length)
|
136430
136462
|
);
|
136431
136463
|
printFileSizesHeader(longestFileNameLength, longestSizeLabelLength);
|
136432
136464
|
var suggestBundleSplitting = false;
|
136433
136465
|
assets.forEach((asset) => {
|
136434
136466
|
var { folder, name, sizeLabel, gzipSizeLabel, gzippedSize } = asset;
|
136435
|
-
var fileNameLength = (0, import_compiled.stripAnsi)(folder +
|
136467
|
+
var fileNameLength = (0, import_compiled.stripAnsi)(folder + import_path4.default.sep + name).length;
|
136436
136468
|
var sizeLength = (0, import_compiled.stripAnsi)(sizeLabel).length;
|
136437
136469
|
if (sizeLength < longestSizeLabelLength) {
|
136438
136470
|
var rightPadding = " ".repeat(longestSizeLabelLength - sizeLength);
|
136439
136471
|
sizeLabel += rightPadding;
|
136440
136472
|
}
|
136441
|
-
var fileNameLabel = import_compiled.chalk.dim(asset.folder +
|
136473
|
+
var fileNameLabel = import_compiled.chalk.dim(asset.folder + import_path4.default.sep) + import_compiled.chalk.cyan(asset.name);
|
136442
136474
|
if (fileNameLength < longestFileNameLength) {
|
136443
136475
|
var rightPadding = " ".repeat(longestFileNameLength - fileNameLength);
|
136444
136476
|
fileNameLabel += rightPadding;
|
@@ -136446,7 +136478,7 @@ var require_FileSizeReporter2 = __commonJS({
|
|
136446
136478
|
var isMainBundle = asset.name.indexOf("main.") === 0;
|
136447
136479
|
var maxRecommendedSize = isMainBundle ? maxBundleGzipSize : maxChunkGzipSize;
|
136448
136480
|
var isLarge = maxRecommendedSize && gzippedSize > maxRecommendedSize;
|
136449
|
-
if (isLarge &&
|
136481
|
+
if (isLarge && import_path4.default.extname(asset.name) === ".js") {
|
136450
136482
|
suggestBundleSplitting = true;
|
136451
136483
|
}
|
136452
136484
|
import_logger.logger.log(
|
@@ -136812,14 +136844,16 @@ var require_is2 = __commonJS({
|
|
136812
136844
|
isEmpty: () => isEmpty2,
|
136813
136845
|
isFastRefresh: () => isFastRefresh,
|
136814
136846
|
isRouterV5: () => isRouterV5,
|
136847
|
+
isSSGEntry: () => isSSGEntry,
|
136815
136848
|
isSSR: () => isSSR,
|
136816
136849
|
isServiceWorker: () => isServiceWorker,
|
136850
|
+
isSingleEntry: () => isSingleEntry,
|
136817
136851
|
isTypescript: () => isTypescript,
|
136818
136852
|
isUseSSRBundle: () => isUseSSRBundle
|
136819
136853
|
});
|
136820
136854
|
module2.exports = __toCommonJS2(is_exports);
|
136821
136855
|
var import_fs = __toESM2(require("fs"));
|
136822
|
-
var
|
136856
|
+
var import_path4 = __toESM2(require("path"));
|
136823
136857
|
var import_debug = require_debug5();
|
136824
136858
|
var import_nodeEnv = require_nodeEnv2();
|
136825
136859
|
__reExport(is_exports, require_nodeEnv2(), module2.exports);
|
@@ -136827,7 +136861,7 @@ var require_is2 = __commonJS({
|
|
136827
136861
|
__reExport(is_exports, require_type2(), module2.exports);
|
136828
136862
|
var debug2 = (0, import_debug.createDebugger)("judge-depExists");
|
136829
136863
|
var isDepExists = (appDirectory, name) => {
|
136830
|
-
const pkgPath =
|
136864
|
+
const pkgPath = import_path4.default.resolve(appDirectory, "./package.json");
|
136831
136865
|
if (!import_fs.default.existsSync(pkgPath)) {
|
136832
136866
|
debug2(`can't find package.json under: %s`, appDirectory);
|
136833
136867
|
return false;
|
@@ -136836,7 +136870,7 @@ var require_is2 = __commonJS({
|
|
136836
136870
|
const { dependencies = {}, devDependencies = {} } = json;
|
136837
136871
|
return dependencies.hasOwnProperty(name) || devDependencies.hasOwnProperty(name);
|
136838
136872
|
};
|
136839
|
-
var isTypescript = (root) => import_fs.default.existsSync(
|
136873
|
+
var isTypescript = (root) => import_fs.default.existsSync(import_path4.default.resolve(root, "./tsconfig.json"));
|
136840
136874
|
var isEmpty2 = (o) => Object.entries(o).length === 0 && o.constructor === Object;
|
136841
136875
|
var isSSR = (config) => {
|
136842
136876
|
const { server } = config;
|
@@ -136871,6 +136905,12 @@ var require_is2 = __commonJS({
|
|
136871
136905
|
var _a2, _b, _c;
|
136872
136906
|
return typeof ((_a2 = config.runtime) == null ? void 0 : _a2.router) !== "boolean" && ((_c = (_b = config == null ? void 0 : config.runtime) == null ? void 0 : _b.router) == null ? void 0 : _c.mode) === "react-router-5";
|
136873
136907
|
};
|
136908
|
+
var isSSGEntry = (config, entryName, entrypoints) => {
|
136909
|
+
const ssgConfig = config.output.ssg;
|
136910
|
+
const useSSG = isSingleEntry(entrypoints) ? Boolean(ssgConfig) : ssgConfig === true || typeof (ssgConfig == null ? void 0 : ssgConfig[0]) === "function" || Boolean(ssgConfig == null ? void 0 : ssgConfig[entryName]);
|
136911
|
+
return useSSG;
|
136912
|
+
};
|
136913
|
+
var isSingleEntry = (entrypoints) => entrypoints.length === 1 && entrypoints[0].entryName === "main";
|
136874
136914
|
}
|
136875
136915
|
});
|
136876
136916
|
|
@@ -136943,12 +136983,12 @@ var require_compatRequire2 = __commonJS({
|
|
136943
136983
|
delete require.cache[filepath];
|
136944
136984
|
});
|
136945
136985
|
};
|
136946
|
-
function deleteRequireCache(
|
136947
|
-
if (require.cache[
|
136948
|
-
delete require.cache[
|
136986
|
+
function deleteRequireCache(path3) {
|
136987
|
+
if (require.cache[path3]) {
|
136988
|
+
delete require.cache[path3];
|
136949
136989
|
}
|
136950
136990
|
if (module2.children) {
|
136951
|
-
module2.children = module2.children.filter((item) => item.filename !==
|
136991
|
+
module2.children = module2.children.filter((item) => item.filename !== path3);
|
136952
136992
|
}
|
136953
136993
|
}
|
136954
136994
|
}
|
@@ -137306,8 +137346,8 @@ var require_ensureAbsolutePath2 = __commonJS({
|
|
137306
137346
|
ensureAbsolutePath: () => ensureAbsolutePath
|
137307
137347
|
});
|
137308
137348
|
module2.exports = __toCommonJS2(ensureAbsolutePath_exports);
|
137309
|
-
var
|
137310
|
-
var ensureAbsolutePath = (base, filePath) =>
|
137349
|
+
var import_path4 = __toESM2(require("path"));
|
137350
|
+
var ensureAbsolutePath = (base, filePath) => import_path4.default.isAbsolute(filePath) ? filePath : import_path4.default.resolve(base, filePath);
|
137311
137351
|
}
|
137312
137352
|
});
|
137313
137353
|
|
@@ -137695,7 +137735,7 @@ var require_monorepo2 = __commonJS({
|
|
137695
137735
|
});
|
137696
137736
|
module2.exports = __toCommonJS2(monorepo_exports);
|
137697
137737
|
var import_fs = __toESM2(require("fs"));
|
137698
|
-
var
|
137738
|
+
var import_path4 = __toESM2(require("path"));
|
137699
137739
|
var import_compiled = require_compiled2();
|
137700
137740
|
var PACKAGE_MAX_DEPTH = 5;
|
137701
137741
|
var WORKSPACE_FILES = {
|
@@ -137703,20 +137743,20 @@ var require_monorepo2 = __commonJS({
|
|
137703
137743
|
PNPM: "pnpm-workspace.yaml",
|
137704
137744
|
LERNA: "lerna.json"
|
137705
137745
|
};
|
137706
|
-
var isLerna = (root) => import_fs.default.existsSync(
|
137746
|
+
var isLerna = (root) => import_fs.default.existsSync(import_path4.default.join(root, WORKSPACE_FILES.LERNA));
|
137707
137747
|
var isYarnWorkspaces = (root) => {
|
137708
137748
|
var _a2;
|
137709
|
-
const pkg =
|
137749
|
+
const pkg = import_path4.default.join(root, WORKSPACE_FILES.YARN);
|
137710
137750
|
if (!import_fs.default.existsSync(pkg)) {
|
137711
137751
|
return false;
|
137712
137752
|
}
|
137713
137753
|
const json = JSON.parse(import_fs.default.readFileSync(pkg, "utf8"));
|
137714
137754
|
return Boolean((_a2 = json.workspaces) == null ? void 0 : _a2.packages);
|
137715
137755
|
};
|
137716
|
-
var isPnpmWorkspaces = (root) => import_fs.default.existsSync(
|
137756
|
+
var isPnpmWorkspaces = (root) => import_fs.default.existsSync(import_path4.default.join(root, WORKSPACE_FILES.PNPM));
|
137717
137757
|
var isMonorepo = (root) => isLerna(root) || isYarnWorkspaces(root) || isPnpmWorkspaces(root);
|
137718
137758
|
var isModernjsMonorepo = (root) => {
|
137719
|
-
const pkgJsonPath =
|
137759
|
+
const pkgJsonPath = import_path4.default.join(root, "package.json");
|
137720
137760
|
if (!import_fs.default.existsSync(pkgJsonPath)) {
|
137721
137761
|
return false;
|
137722
137762
|
}
|
@@ -137731,7 +137771,7 @@ var require_monorepo2 = __commonJS({
|
|
137731
137771
|
inMonorepo = true;
|
137732
137772
|
break;
|
137733
137773
|
}
|
137734
|
-
appDirectory =
|
137774
|
+
appDirectory = import_path4.default.dirname(appDirectory);
|
137735
137775
|
}
|
137736
137776
|
return inMonorepo ? appDirectory : void 0;
|
137737
137777
|
};
|
@@ -137739,31 +137779,31 @@ var require_monorepo2 = __commonJS({
|
|
137739
137779
|
let packages = [];
|
137740
137780
|
if (isYarnWorkspaces(root)) {
|
137741
137781
|
const json = JSON.parse(
|
137742
|
-
import_fs.default.readFileSync(
|
137782
|
+
import_fs.default.readFileSync(import_path4.default.join(root, "package.json"), "utf8")
|
137743
137783
|
);
|
137744
137784
|
({ packages } = json.workspaces);
|
137745
137785
|
} else if (isLerna(root)) {
|
137746
137786
|
const json = JSON.parse(
|
137747
|
-
import_fs.default.readFileSync(
|
137787
|
+
import_fs.default.readFileSync(import_path4.default.resolve(root, "lerna.json"), "utf8")
|
137748
137788
|
);
|
137749
137789
|
({ packages } = json);
|
137750
137790
|
} else {
|
137751
137791
|
({ packages } = import_compiled.yaml.load(
|
137752
|
-
import_fs.default.readFileSync(
|
137792
|
+
import_fs.default.readFileSync(import_path4.default.join(root, WORKSPACE_FILES.PNPM), "utf8")
|
137753
137793
|
));
|
137754
137794
|
}
|
137755
137795
|
if (packages) {
|
137756
137796
|
return packages.map(
|
137757
137797
|
(name) => (
|
137758
137798
|
// The trailing / ensures only dirs are picked up
|
137759
|
-
import_compiled.glob.sync(
|
137799
|
+
import_compiled.glob.sync(import_path4.default.join(root, `${name}/`), {
|
137760
137800
|
ignore: ["**/node_modules/**"]
|
137761
137801
|
})
|
137762
137802
|
)
|
137763
|
-
).reduce((acc, val) => acc.concat(val), []).filter((filepath) => import_fs.default.existsSync(
|
137803
|
+
).reduce((acc, val) => acc.concat(val), []).filter((filepath) => import_fs.default.existsSync(import_path4.default.resolve(filepath, "package.json"))).map((filepath) => ({
|
137764
137804
|
path: filepath,
|
137765
137805
|
name: JSON.parse(
|
137766
|
-
import_fs.default.readFileSync(
|
137806
|
+
import_fs.default.readFileSync(import_path4.default.resolve(filepath, "package.json"), "utf8")
|
137767
137807
|
).name
|
137768
137808
|
}));
|
137769
137809
|
}
|
@@ -137909,7 +137949,7 @@ var require_getPackageManager2 = __commonJS({
|
|
137909
137949
|
});
|
137910
137950
|
module2.exports = __toCommonJS2(getPackageManager_exports);
|
137911
137951
|
var import_os = __toESM2(require("os"));
|
137912
|
-
var
|
137952
|
+
var import_path4 = __toESM2(require("path"));
|
137913
137953
|
var import_compiled = require_compiled2();
|
137914
137954
|
var import_nodeEnv = require_nodeEnv3();
|
137915
137955
|
var MAX_TIMES = 5;
|
@@ -137919,16 +137959,16 @@ var require_getPackageManager2 = __commonJS({
|
|
137919
137959
|
let times = 0;
|
137920
137960
|
while (import_os.default.homedir() !== appDirectory && times < MAX_TIMES) {
|
137921
137961
|
times++;
|
137922
|
-
if (import_compiled.fs.existsSync(
|
137962
|
+
if (import_compiled.fs.existsSync(import_path4.default.resolve(appDirectory, "pnpm-lock.yaml"))) {
|
137923
137963
|
return "pnpm";
|
137924
137964
|
}
|
137925
|
-
if (import_compiled.fs.existsSync(
|
137965
|
+
if (import_compiled.fs.existsSync(import_path4.default.resolve(appDirectory, "yarn.lock"))) {
|
137926
137966
|
return "yarn";
|
137927
137967
|
}
|
137928
|
-
if (import_compiled.fs.existsSync(
|
137968
|
+
if (import_compiled.fs.existsSync(import_path4.default.resolve(appDirectory, "package-lock.json"))) {
|
137929
137969
|
return "npm";
|
137930
137970
|
}
|
137931
|
-
appDirectory =
|
137971
|
+
appDirectory = import_path4.default.join(appDirectory, "..");
|
137932
137972
|
}
|
137933
137973
|
if (yield (0, import_nodeEnv.canUsePnpm)()) {
|
137934
137974
|
return "pnpm";
|
@@ -137986,20 +138026,20 @@ var require_path2 = __commonJS({
|
|
137986
138026
|
upwardPaths: () => upwardPaths
|
137987
138027
|
});
|
137988
138028
|
module2.exports = __toCommonJS2(path_exports);
|
137989
|
-
var
|
138029
|
+
var import_path4 = __toESM2(require("path"));
|
137990
138030
|
var import_os = __toESM2(require("os"));
|
137991
138031
|
var import_fs = __toESM2(require("fs"));
|
137992
138032
|
var import_compiled = require_compiled2();
|
137993
|
-
var isPathString = (test) =>
|
138033
|
+
var isPathString = (test) => import_path4.default.posix.basename(test) !== test || import_path4.default.win32.basename(test) !== test;
|
137994
138034
|
var isRelativePath = (test) => /^\.\.?($|[\\/])/.test(test);
|
137995
138035
|
var normalizeOutputPath = (s) => s.replace(/\\/g, "\\\\");
|
137996
|
-
var normalizeToPosixPath = (p) => import_compiled.upath.normalizeSafe(
|
138036
|
+
var normalizeToPosixPath = (p) => import_compiled.upath.normalizeSafe(import_path4.default.normalize(p || "")).replace(/^([a-zA-Z]+):/, (_2, m) => `/${m.toLowerCase()}`);
|
137997
138037
|
var getTemplatePath = (prefix) => {
|
137998
138038
|
const tmpRoot = import_fs.default.realpathSync(import_os.default.tmpdir());
|
137999
138039
|
const parts = [tmpRoot];
|
138000
138040
|
prefix && parts.push(prefix);
|
138001
138041
|
parts.push((0, import_compiled.nanoid)());
|
138002
|
-
return
|
138042
|
+
return import_path4.default.resolve(...parts);
|
138003
138043
|
};
|
138004
138044
|
function compilePathMatcherRegExp(match) {
|
138005
138045
|
if (typeof match !== "string") {
|
@@ -138062,7 +138102,7 @@ var require_runtimeExports2 = __commonJS({
|
|
138062
138102
|
createRuntimeExportsUtils: () => createRuntimeExportsUtils
|
138063
138103
|
});
|
138064
138104
|
module2.exports = __toCommonJS2(runtimeExports_exports);
|
138065
|
-
var
|
138105
|
+
var import_path4 = __toESM2(require("path"));
|
138066
138106
|
var import_compiled = require_compiled2();
|
138067
138107
|
var import_path22 = require_path2();
|
138068
138108
|
var memo = (fn) => {
|
@@ -138080,7 +138120,7 @@ var require_runtimeExports2 = __commonJS({
|
|
138080
138120
|
};
|
138081
138121
|
var createRuntimeExportsUtils = memo(
|
138082
138122
|
(pwd = "", namespace = "index") => {
|
138083
|
-
const entryExportFile =
|
138123
|
+
const entryExportFile = import_path4.default.join(pwd, `.runtime-exports/${namespace}.js`);
|
138084
138124
|
const addExport = (statement) => {
|
138085
138125
|
statement = (0, import_path22.normalizeOutputPath)(statement);
|
138086
138126
|
try {
|
@@ -138138,13 +138178,13 @@ var require_readTsConfig2 = __commonJS({
|
|
138138
138178
|
readTsConfigByFile: () => readTsConfigByFile
|
138139
138179
|
});
|
138140
138180
|
module2.exports = __toCommonJS2(readTsConfig_exports);
|
138141
|
-
var
|
138181
|
+
var import_path4 = __toESM2(require("path"));
|
138142
138182
|
var import_compiled = require_compiled2();
|
138143
138183
|
var readTsConfig = (root) => {
|
138144
|
-
return readTsConfigByFile(
|
138184
|
+
return readTsConfigByFile(import_path4.default.resolve(root, "./tsconfig.json"));
|
138145
138185
|
};
|
138146
138186
|
var readTsConfigByFile = (filename) => {
|
138147
|
-
const content = import_compiled.fs.readFileSync(
|
138187
|
+
const content = import_compiled.fs.readFileSync(import_path4.default.resolve(filename), "utf-8");
|
138148
138188
|
return import_compiled.json5.parse(content);
|
138149
138189
|
};
|
138150
138190
|
}
|
@@ -138190,12 +138230,12 @@ var require_pathSerializer = __commonJS({
|
|
138190
138230
|
module2.exports = __toCommonJS2(pathSerializer_exports);
|
138191
138231
|
var import_os = __toESM2(require("os"));
|
138192
138232
|
var import_lodash3 = __toESM2(require_lodash3());
|
138193
|
-
var
|
138194
|
-
var matchUpwardPathsAsUnknown = (p) => (0, import_lodash3.default)((0,
|
138233
|
+
var import_path4 = require_path2();
|
138234
|
+
var matchUpwardPathsAsUnknown = (p) => (0, import_lodash3.default)((0, import_path4.upwardPaths)((0, import_path4.normalizeToPosixPath)(p))).map((match) => ({ match, mark: "unknown" })).slice(1, -1).value();
|
138195
138235
|
function applyPathMatcher(matcher, str, options = {}) {
|
138196
|
-
const regex2 = (0,
|
138236
|
+
const regex2 = (0, import_path4.compilePathMatcherRegExp)(matcher.match);
|
138197
138237
|
const replacer = (substring, ...args) => {
|
138198
|
-
if (options.minPartials && (0,
|
138238
|
+
if (options.minPartials && (0, import_path4.splitPathString)(substring).length < options.minPartials) {
|
138199
138239
|
return substring;
|
138200
138240
|
}
|
138201
138241
|
const ret = typeof matcher.mark === "string" ? matcher.mark : matcher.mark(substring, ...args);
|
@@ -138215,7 +138255,7 @@ var require_pathSerializer = __commonJS({
|
|
138215
138255
|
mark: "pnpmInner"
|
138216
138256
|
}
|
138217
138257
|
];
|
138218
|
-
const tmpdir = (0,
|
138258
|
+
const tmpdir = (0, import_path4.getRealTemporaryDirectory)();
|
138219
138259
|
tmpdir && ret.push({ match: tmpdir, mark: "temp" });
|
138220
138260
|
ret.push({ match: import_os.default.tmpdir(), mark: "temp" });
|
138221
138261
|
ret.push({ match: import_os.default.homedir(), mark: "home" });
|
@@ -138322,14 +138362,12 @@ var require_prettyInstructions2 = __commonJS({
|
|
138322
138362
|
__export2(prettyInstructions_exports, {
|
138323
138363
|
getAddressUrls: () => getAddressUrls,
|
138324
138364
|
getIpv4Interfaces: () => getIpv4Interfaces,
|
138325
|
-
isSingleEntry: () => isSingleEntry,
|
138326
138365
|
prettyInstructions: () => prettyInstructions
|
138327
138366
|
});
|
138328
138367
|
module2.exports = __toCommonJS2(prettyInstructions_exports);
|
138329
138368
|
var import_os = __toESM2(require("os"));
|
138330
138369
|
var import_compiled = require_compiled2();
|
138331
138370
|
var import_is = require_is2();
|
138332
|
-
var isSingleEntry = (entrypoints) => entrypoints.length === 1 && entrypoints[0].entryName === "main";
|
138333
138371
|
var normalizeUrl = (url) => url.replace(/([^:]\/)\/+/g, "$1");
|
138334
138372
|
var getIpv4Interfaces = () => {
|
138335
138373
|
const interfaces = import_os.default.networkInterfaces();
|
@@ -138368,7 +138406,7 @@ var require_prettyInstructions2 = __commonJS({
|
|
138368
138406
|
);
|
138369
138407
|
const routes = !apiOnly ? serverRoutes.filter((route) => route.entryName) : serverRoutes;
|
138370
138408
|
let message = "App running at:\n\n";
|
138371
|
-
if (isSingleEntry(entrypoints) || apiOnly) {
|
138409
|
+
if ((0, import_is.isSingleEntry)(entrypoints) || apiOnly) {
|
138372
138410
|
message += urls.map(
|
138373
138411
|
({ type, url }) => ` ${import_compiled.chalk.bold(`> ${type.padEnd(10)}`)}${import_compiled.chalk.cyanBright(
|
138374
138412
|
normalizeUrl(`${url}/${routes[0].urlPath}`)
|
@@ -138458,7 +138496,7 @@ var require_alias2 = __commonJS({
|
|
138458
138496
|
});
|
138459
138497
|
module2.exports = __toCommonJS2(alias_exports);
|
138460
138498
|
var import_fs = __toESM2(require("fs"));
|
138461
|
-
var
|
138499
|
+
var import_path4 = __toESM2(require("path"));
|
138462
138500
|
var import_compiled = require_compiled2();
|
138463
138501
|
var import_readTsConfig = require_readTsConfig2();
|
138464
138502
|
var import_applyOptionsChain = require_applyOptionsChain2();
|
@@ -138497,7 +138535,7 @@ var require_alias2 = __commonJS({
|
|
138497
138535
|
const tsconfig = (0, import_readTsConfig.readTsConfigByFile)(option.tsconfigPath);
|
138498
138536
|
const baseUrl = (_a2 = tsconfig == null ? void 0 : tsconfig.compilerOptions) == null ? void 0 : _a2.baseUrl;
|
138499
138537
|
return {
|
138500
|
-
absoluteBaseUrl: baseUrl ?
|
138538
|
+
absoluteBaseUrl: baseUrl ? import_path4.default.join(option.appDirectory, baseUrl) : option.appDirectory,
|
138501
138539
|
paths: __spreadValues2(__spreadValues2({}, alias), (_b = tsconfig == null ? void 0 : tsconfig.compilerOptions) == null ? void 0 : _b.paths),
|
138502
138540
|
isTsPath: true,
|
138503
138541
|
isTsProject
|
@@ -138568,7 +138606,7 @@ var require_watch2 = __commonJS({
|
|
138568
138606
|
watch: () => watch
|
138569
138607
|
});
|
138570
138608
|
module2.exports = __toCommonJS2(watch_exports);
|
138571
|
-
var
|
138609
|
+
var path3 = __toESM2(require("path"));
|
138572
138610
|
var import_compiled = require_compiled2();
|
138573
138611
|
var WatchChangeType = {
|
138574
138612
|
ADD: "add",
|
@@ -138582,17 +138620,17 @@ var require_watch2 = __commonJS({
|
|
138582
138620
|
});
|
138583
138621
|
watcher.on("ready", () => ready = true);
|
138584
138622
|
watcher.on("change", (filePath) => __async2(void 0, null, function* () {
|
138585
|
-
const changedFilePath =
|
138623
|
+
const changedFilePath = path3.resolve(filePath);
|
138586
138624
|
yield runTask({ changedFilePath, changeType: WatchChangeType.CHANGE });
|
138587
138625
|
}));
|
138588
138626
|
watcher.on("add", (filePath) => __async2(void 0, null, function* () {
|
138589
|
-
const changedFilePath =
|
138627
|
+
const changedFilePath = path3.resolve(filePath);
|
138590
138628
|
if (ready) {
|
138591
138629
|
yield runTask({ changedFilePath, changeType: WatchChangeType.ADD });
|
138592
138630
|
}
|
138593
138631
|
}));
|
138594
138632
|
watcher.on("unlink", (filePath) => __async2(void 0, null, function* () {
|
138595
|
-
const changedFilePath =
|
138633
|
+
const changedFilePath = path3.resolve(filePath);
|
138596
138634
|
yield runTask({ changedFilePath, changeType: WatchChangeType.UNLINK });
|
138597
138635
|
}));
|
138598
138636
|
watcher.on("error", (err) => {
|
@@ -138743,13 +138781,13 @@ var require_getServerConfig2 = __commonJS({
|
|
138743
138781
|
getServerConfig: () => getServerConfig
|
138744
138782
|
});
|
138745
138783
|
module2.exports = __toCommonJS2(getServerConfig_exports);
|
138746
|
-
var
|
138784
|
+
var path3 = __toESM2(require("path"));
|
138747
138785
|
var import_constants3 = require_constants6();
|
138748
138786
|
var import_findExists = require_findExists2();
|
138749
138787
|
var getServerConfig = (appDirectory, configFile) => __async2(void 0, null, function* () {
|
138750
138788
|
const configFilePath = (0, import_findExists.findExists)(
|
138751
138789
|
import_constants3.CONFIG_FILE_EXTENSIONS.map(
|
138752
|
-
(extension) =>
|
138790
|
+
(extension) => path3.resolve(appDirectory, `${configFile}${extension}`)
|
138753
138791
|
)
|
138754
138792
|
);
|
138755
138793
|
return configFilePath;
|
@@ -138860,17 +138898,22 @@ var require_analyzeProject2 = __commonJS({
|
|
138860
138898
|
};
|
138861
138899
|
var analyzeProject_exports = {};
|
138862
138900
|
__export2(analyzeProject_exports, {
|
138863
|
-
isApiOnly: () => isApiOnly
|
138901
|
+
isApiOnly: () => isApiOnly,
|
138902
|
+
isWebOnly: () => isWebOnly
|
138864
138903
|
});
|
138865
138904
|
module2.exports = __toCommonJS2(analyzeProject_exports);
|
138866
|
-
var
|
138905
|
+
var path3 = __toESM2(require("path"));
|
138867
138906
|
var import_compiled = require_compiled2();
|
138868
138907
|
var isApiOnly = (appDirectory, entryDir) => __async2(void 0, null, function* () {
|
138869
|
-
const srcDir =
|
138908
|
+
const srcDir = path3.join(appDirectory, entryDir != null ? entryDir : "src");
|
138870
138909
|
const existSrc = yield import_compiled.fs.pathExists(srcDir);
|
138871
138910
|
const options = (0, import_compiled.minimist)(process.argv.slice(2));
|
138872
138911
|
return !existSrc || Boolean(options["api-only"]);
|
138873
138912
|
});
|
138913
|
+
var isWebOnly = () => __async2(void 0, null, function* () {
|
138914
|
+
const options = (0, import_compiled.minimist)(process.argv.slice(2));
|
138915
|
+
return Boolean(options["web-only"]);
|
138916
|
+
});
|
138874
138917
|
}
|
138875
138918
|
});
|
138876
138919
|
|
@@ -139159,7 +139202,7 @@ var require_version2 = __commonJS({
|
|
139159
139202
|
isReact18: () => isReact18
|
139160
139203
|
});
|
139161
139204
|
module2.exports = __toCommonJS2(version_exports);
|
139162
|
-
var
|
139205
|
+
var import_path4 = __toESM2(require("path"));
|
139163
139206
|
var import_compiled = require_compiled2();
|
139164
139207
|
function getPnpmVersion() {
|
139165
139208
|
return __async2(this, null, function* () {
|
@@ -139168,7 +139211,7 @@ var require_version2 = __commonJS({
|
|
139168
139211
|
});
|
139169
139212
|
}
|
139170
139213
|
var isReact18 = (cwd) => {
|
139171
|
-
const pkgPath =
|
139214
|
+
const pkgPath = import_path4.default.join(cwd, "package.json");
|
139172
139215
|
if (!import_compiled.fs.existsSync(pkgPath)) {
|
139173
139216
|
return false;
|
139174
139217
|
}
|
@@ -139266,16 +139309,16 @@ var require_routes = __commonJS({
|
|
139266
139309
|
getRouteId: () => getRouteId
|
139267
139310
|
});
|
139268
139311
|
module2.exports = __toCommonJS2(routes_exports);
|
139269
|
-
var
|
139312
|
+
var import_path4 = __toESM2(require("path"));
|
139270
139313
|
var import_path22 = require_path2();
|
139271
139314
|
var import_constants3 = require_constants6();
|
139272
139315
|
var getPathWithoutExt = (filename) => {
|
139273
|
-
const extname =
|
139316
|
+
const extname = import_path4.default.extname(filename);
|
139274
139317
|
return filename.slice(0, -extname.length);
|
139275
139318
|
};
|
139276
139319
|
var getRouteId = (componentPath, routesDir, entryName) => {
|
139277
139320
|
const relativePath = (0, import_path22.normalizeToPosixPath)(
|
139278
|
-
|
139321
|
+
import_path4.default.relative(routesDir, componentPath)
|
139279
139322
|
);
|
139280
139323
|
const pathWithoutExt = getPathWithoutExt(relativePath);
|
139281
139324
|
let id = ``;
|
@@ -139426,10 +139469,10 @@ var require_react = __commonJS({
|
|
139426
139469
|
isBeyondReact17: () => isBeyondReact17
|
139427
139470
|
});
|
139428
139471
|
module2.exports = __toCommonJS2(react_exports);
|
139429
|
-
var
|
139472
|
+
var import_path4 = __toESM2(require("path"));
|
139430
139473
|
var import__ = require_dist3();
|
139431
139474
|
var isBeyondReact17 = (cwd) => {
|
139432
|
-
const pkgPath =
|
139475
|
+
const pkgPath = import_path4.default.join(cwd, "package.json");
|
139433
139476
|
if (!import__.fs.existsSync(pkgPath)) {
|
139434
139477
|
return false;
|
139435
139478
|
}
|
@@ -139478,10 +139521,10 @@ var require_getTargetDir = __commonJS({
|
|
139478
139521
|
getTargetDir: () => getTargetDir
|
139479
139522
|
});
|
139480
139523
|
module2.exports = __toCommonJS2(getTargetDir_exports);
|
139481
|
-
var
|
139524
|
+
var path3 = __toESM2(require("path"));
|
139482
139525
|
var getTargetDir = (from, baseDir, targetBaseDir) => {
|
139483
|
-
const relativePath =
|
139484
|
-
return
|
139526
|
+
const relativePath = path3.relative(baseDir, from);
|
139527
|
+
return path3.resolve(targetBaseDir, relativePath);
|
139485
139528
|
};
|
139486
139529
|
}
|
139487
139530
|
});
|
@@ -139559,7 +139602,7 @@ __export(src_exports, {
|
|
139559
139602
|
handleTemplateFile: () => handleTemplateFile
|
139560
139603
|
});
|
139561
139604
|
module.exports = __toCommonJS(src_exports);
|
139562
|
-
var
|
139605
|
+
var import_path3 = __toESM(require("path"));
|
139563
139606
|
var import_codesmith = __toESM(require_node());
|
139564
139607
|
var import_codesmith_api_app = __toESM(require_node9());
|
139565
139608
|
var import_codesmith_api_json = __toESM(require_node10());
|
@@ -139637,8 +139680,8 @@ var I18n = class {
|
|
139637
139680
|
var ZH_LOCALE = {
|
139638
139681
|
solution: {
|
139639
139682
|
self: "请选择你想创建的工程类型",
|
139640
|
-
mwa: "应用",
|
139641
|
-
module: "模块",
|
139683
|
+
mwa: "Web 应用",
|
139684
|
+
module: "Npm 模块",
|
139642
139685
|
monorepo: "Monorepo",
|
139643
139686
|
custom: "自定义",
|
139644
139687
|
default: "默认"
|
@@ -139648,10 +139691,10 @@ var ZH_LOCALE = {
|
|
139648
139691
|
},
|
139649
139692
|
sub_solution: {
|
139650
139693
|
self: "请选择你想创建的工程类型",
|
139651
|
-
mwa: "应用",
|
139652
|
-
mwa_test: "应用(测试)",
|
139653
|
-
module: "模块",
|
139654
|
-
inner_module: "模块(内部)"
|
139694
|
+
mwa: "Web 应用",
|
139695
|
+
mwa_test: "Web 应用(测试)",
|
139696
|
+
module: "Npm 模块",
|
139697
|
+
inner_module: "Npm 模块(内部)"
|
139655
139698
|
},
|
139656
139699
|
action: {
|
139657
139700
|
self: "请选择你想要的操作",
|
@@ -139671,7 +139714,7 @@ var ZH_LOCALE = {
|
|
139671
139714
|
polyfill: "启用「基于 UA 的 Polyfill」功能",
|
139672
139715
|
proxy: "启用「全局代理」",
|
139673
139716
|
swc: "启用「SWC 编译」",
|
139674
|
-
rspack: "启用「
|
139717
|
+
rspack: "启用「Rspack 构建」(实验性)"
|
139675
139718
|
},
|
139676
139719
|
element: {
|
139677
139720
|
self: "创建工程元素",
|
@@ -139725,7 +139768,7 @@ var ZH_LOCALE = {
|
|
139725
139768
|
buildTools: {
|
139726
139769
|
self: "请选择构建工具",
|
139727
139770
|
webpack: "webpack",
|
139728
|
-
rspack: "
|
139771
|
+
rspack: "Rspack (实验性)"
|
139729
139772
|
}
|
139730
139773
|
};
|
139731
139774
|
|
@@ -139733,9 +139776,9 @@ var ZH_LOCALE = {
|
|
139733
139776
|
var EN_LOCALE = {
|
139734
139777
|
solution: {
|
139735
139778
|
self: "Please select the solution you want to create",
|
139736
|
-
mwa: "Web App
|
139737
|
-
module: "Module
|
139738
|
-
monorepo: "Monorepo
|
139779
|
+
mwa: "Web App",
|
139780
|
+
module: "Npm Module",
|
139781
|
+
monorepo: "Monorepo",
|
139739
139782
|
custom: "Custom Solution",
|
139740
139783
|
default: "Default"
|
139741
139784
|
},
|
@@ -139744,11 +139787,11 @@ var EN_LOCALE = {
|
|
139744
139787
|
},
|
139745
139788
|
sub_solution: {
|
139746
139789
|
self: "Please select the solution you want to create",
|
139747
|
-
mwa: "Web App
|
139748
|
-
mwa_test: "Web App
|
139749
|
-
module: "Module
|
139750
|
-
inner_module: "Module
|
139751
|
-
monorepo: "Monorepo
|
139790
|
+
mwa: "Web App",
|
139791
|
+
mwa_test: "Web App (Test)",
|
139792
|
+
module: "Npm Module",
|
139793
|
+
inner_module: "Npm Module (Inner)",
|
139794
|
+
monorepo: "Monorepo"
|
139752
139795
|
},
|
139753
139796
|
action: {
|
139754
139797
|
self: "Action",
|
@@ -139768,7 +139811,7 @@ var EN_LOCALE = {
|
|
139768
139811
|
polyfill: "Enable UA-based Polyfill Feature",
|
139769
139812
|
proxy: "Enable Global Proxy",
|
139770
139813
|
swc: "Enable SWC Compile",
|
139771
|
-
rspack: "Enable
|
139814
|
+
rspack: "Enable Rspack Build (experimental)"
|
139772
139815
|
},
|
139773
139816
|
element: {
|
139774
139817
|
self: "Create project element",
|
@@ -139788,7 +139831,7 @@ var EN_LOCALE = {
|
|
139788
139831
|
self: "Development Language"
|
139789
139832
|
},
|
139790
139833
|
packageManager: {
|
139791
|
-
self: "Package
|
139834
|
+
self: "Package Manager"
|
139792
139835
|
},
|
139793
139836
|
packageName: {
|
139794
139837
|
self: "Package Name",
|
@@ -139820,9 +139863,9 @@ var EN_LOCALE = {
|
|
139820
139863
|
}
|
139821
139864
|
},
|
139822
139865
|
buildTools: {
|
139823
|
-
self: "
|
139866
|
+
self: "Bundler",
|
139824
139867
|
webpack: "webpack",
|
139825
|
-
rspack: "
|
139868
|
+
rspack: "Rspack (experimental)"
|
139826
139869
|
}
|
139827
139870
|
};
|
139828
139871
|
|
@@ -139913,6 +139956,7 @@ var MonorepoDefaultConfig = {
|
|
139913
139956
|
};
|
139914
139957
|
|
139915
139958
|
// ../../generator-utils/dist/esm/index.js
|
139959
|
+
var import_path2 = __toESM(require("path"));
|
139916
139960
|
var import_utils2 = __toESM(require_dist3());
|
139917
139961
|
|
139918
139962
|
// ../../generator-utils/dist/esm/utils/stripAnsi.js
|
@@ -140003,7 +140047,7 @@ var localeKeys2 = i18n2.init("zh", { zh: ZH_LOCALE2, en: EN_LOCALE2 });
|
|
140003
140047
|
// src/index.ts
|
140004
140048
|
var getGeneratorPath = (generator, distTag) => {
|
140005
140049
|
if (process.env.CODESMITH_ENV === "development") {
|
140006
|
-
return
|
140050
|
+
return import_path3.default.dirname(require.resolve(generator));
|
140007
140051
|
} else if (distTag) {
|
140008
140052
|
return `${generator}@${distTag}`;
|
140009
140053
|
}
|
@@ -140065,7 +140109,7 @@ var handleTemplateFile = (context, generator, appApi) => __async(void 0, null, f
|
|
140065
140109
|
const jsonAPI = new import_codesmith_api_json.JsonAPI(generator);
|
140066
140110
|
yield jsonAPI.update(
|
140067
140111
|
context.materials.default.get(
|
140068
|
-
|
140112
|
+
import_path3.default.join(generator.outputPath, "package.json")
|
140069
140113
|
),
|
140070
140114
|
{
|
140071
140115
|
query: {},
|