@modern-js/upgrade-generator 3.1.16 → 3.1.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +340 -512
- package/package.json +10 -11
package/dist/index.js
CHANGED
|
@@ -85944,6 +85944,79 @@ var require_dist = __commonJS({
|
|
|
85944
85944
|
}
|
|
85945
85945
|
});
|
|
85946
85946
|
|
|
85947
|
+
// ../../../../node_modules/.pnpm/@swc+helpers@0.5.1/node_modules/@swc/helpers/cjs/_export_star.cjs
|
|
85948
|
+
var require_export_star = __commonJS({
|
|
85949
|
+
"../../../../node_modules/.pnpm/@swc+helpers@0.5.1/node_modules/@swc/helpers/cjs/_export_star.cjs"(exports) {
|
|
85950
|
+
"use strict";
|
|
85951
|
+
exports._ = exports._export_star = _export_star;
|
|
85952
|
+
function _export_star(from, to) {
|
|
85953
|
+
Object.keys(from).forEach(function(k) {
|
|
85954
|
+
if (k !== "default" && !Object.prototype.hasOwnProperty.call(to, k)) {
|
|
85955
|
+
Object.defineProperty(to, k, {
|
|
85956
|
+
enumerable: true,
|
|
85957
|
+
get: function() {
|
|
85958
|
+
return from[k];
|
|
85959
|
+
}
|
|
85960
|
+
});
|
|
85961
|
+
}
|
|
85962
|
+
});
|
|
85963
|
+
return from;
|
|
85964
|
+
}
|
|
85965
|
+
}
|
|
85966
|
+
});
|
|
85967
|
+
|
|
85968
|
+
// ../../../../node_modules/.pnpm/@swc+helpers@0.5.1/node_modules/@swc/helpers/cjs/_interop_require_default.cjs
|
|
85969
|
+
var require_interop_require_default = __commonJS({
|
|
85970
|
+
"../../../../node_modules/.pnpm/@swc+helpers@0.5.1/node_modules/@swc/helpers/cjs/_interop_require_default.cjs"(exports) {
|
|
85971
|
+
"use strict";
|
|
85972
|
+
exports._ = exports._interop_require_default = _interop_require_default;
|
|
85973
|
+
function _interop_require_default(obj) {
|
|
85974
|
+
return obj && obj.__esModule ? obj : { default: obj };
|
|
85975
|
+
}
|
|
85976
|
+
}
|
|
85977
|
+
});
|
|
85978
|
+
|
|
85979
|
+
// ../../../../node_modules/.pnpm/@swc+helpers@0.5.1/node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs
|
|
85980
|
+
var require_interop_require_wildcard = __commonJS({
|
|
85981
|
+
"../../../../node_modules/.pnpm/@swc+helpers@0.5.1/node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs"(exports) {
|
|
85982
|
+
"use strict";
|
|
85983
|
+
function _getRequireWildcardCache(nodeInterop) {
|
|
85984
|
+
if (typeof WeakMap !== "function")
|
|
85985
|
+
return null;
|
|
85986
|
+
var cacheBabelInterop = /* @__PURE__ */ new WeakMap();
|
|
85987
|
+
var cacheNodeInterop = /* @__PURE__ */ new WeakMap();
|
|
85988
|
+
return (_getRequireWildcardCache = function(nodeInterop2) {
|
|
85989
|
+
return nodeInterop2 ? cacheNodeInterop : cacheBabelInterop;
|
|
85990
|
+
})(nodeInterop);
|
|
85991
|
+
}
|
|
85992
|
+
exports._ = exports._interop_require_wildcard = _interop_require_wildcard;
|
|
85993
|
+
function _interop_require_wildcard(obj, nodeInterop) {
|
|
85994
|
+
if (!nodeInterop && obj && obj.__esModule)
|
|
85995
|
+
return obj;
|
|
85996
|
+
if (obj === null || typeof obj !== "object" && typeof obj !== "function")
|
|
85997
|
+
return { default: obj };
|
|
85998
|
+
var cache = _getRequireWildcardCache(nodeInterop);
|
|
85999
|
+
if (cache && cache.has(obj))
|
|
86000
|
+
return cache.get(obj);
|
|
86001
|
+
var newObj = {};
|
|
86002
|
+
var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
86003
|
+
for (var key in obj) {
|
|
86004
|
+
if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
86005
|
+
var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
|
|
86006
|
+
if (desc && (desc.get || desc.set))
|
|
86007
|
+
Object.defineProperty(newObj, key, desc);
|
|
86008
|
+
else
|
|
86009
|
+
newObj[key] = obj[key];
|
|
86010
|
+
}
|
|
86011
|
+
}
|
|
86012
|
+
newObj.default = obj;
|
|
86013
|
+
if (cache)
|
|
86014
|
+
cache.set(obj, newObj);
|
|
86015
|
+
return newObj;
|
|
86016
|
+
}
|
|
86017
|
+
}
|
|
86018
|
+
});
|
|
86019
|
+
|
|
85947
86020
|
// ../../../toolkit/utils/dist/compiled/import-lazy/index.js
|
|
85948
86021
|
var require_import_lazy2 = __commonJS({
|
|
85949
86022
|
"../../../toolkit/utils/dist/compiled/import-lazy/index.js"(exports, module2) {
|
|
@@ -115095,80 +115168,37 @@ var require_compiled = __commonJS({
|
|
|
115095
115168
|
chokidar: () => chokidar2,
|
|
115096
115169
|
inquirer: () => inquirer4
|
|
115097
115170
|
});
|
|
115171
|
+
var _interop_require_default = require_interop_require_default();
|
|
115172
|
+
var _interop_require_wildcard = require_interop_require_wildcard();
|
|
115098
115173
|
var _import = require_import();
|
|
115099
|
-
var _fsextra = /* @__PURE__ */ _interop_require_default(require_fs_extra2());
|
|
115100
|
-
var _ora = /* @__PURE__ */ _interop_require_default(require_ora3());
|
|
115101
|
-
var _glob = /* @__PURE__ */ _interop_require_default(require_glob2());
|
|
115102
|
-
var _jsyaml = /* @__PURE__ */ _interop_require_default(require_js_yaml2());
|
|
115103
|
-
var _chalk = /* @__PURE__ */ _interop_require_default(require_chalk2());
|
|
115104
|
-
var _debug = /* @__PURE__ */ _interop_require_default(require_debug2());
|
|
115105
|
-
var _slash = /* @__PURE__ */ _interop_require_default(require_slash2());
|
|
115106
|
-
var _execa = /* @__PURE__ */ _interop_require_default(require_execa2());
|
|
115107
|
-
var _json5 = /* @__PURE__ */ _interop_require_default(require_json52());
|
|
115108
|
-
var _upath = /* @__PURE__ */ _interop_require_default(require_upath2());
|
|
115109
|
-
var _pkgup = /* @__PURE__ */ _interop_require_default(require_pkg_up2());
|
|
115174
|
+
var _fsextra = /* @__PURE__ */ _interop_require_default._(require_fs_extra2());
|
|
115175
|
+
var _ora = /* @__PURE__ */ _interop_require_default._(require_ora3());
|
|
115176
|
+
var _glob = /* @__PURE__ */ _interop_require_default._(require_glob2());
|
|
115177
|
+
var _jsyaml = /* @__PURE__ */ _interop_require_default._(require_js_yaml2());
|
|
115178
|
+
var _chalk = /* @__PURE__ */ _interop_require_default._(require_chalk2());
|
|
115179
|
+
var _debug = /* @__PURE__ */ _interop_require_default._(require_debug2());
|
|
115180
|
+
var _slash = /* @__PURE__ */ _interop_require_default._(require_slash2());
|
|
115181
|
+
var _execa = /* @__PURE__ */ _interop_require_default._(require_execa2());
|
|
115182
|
+
var _json5 = /* @__PURE__ */ _interop_require_default._(require_json52());
|
|
115183
|
+
var _upath = /* @__PURE__ */ _interop_require_default._(require_upath2());
|
|
115184
|
+
var _pkgup = /* @__PURE__ */ _interop_require_default._(require_pkg_up2());
|
|
115110
115185
|
var _nanoid = require_nanoid2();
|
|
115111
|
-
var _semver = /* @__PURE__ */ _interop_require_default(require_semver2());
|
|
115112
|
-
var _dotenv = /* @__PURE__ */ _interop_require_default(require_dotenv2());
|
|
115113
|
-
var _lodash = /* @__PURE__ */ _interop_require_default(require_lodash3());
|
|
115114
|
-
var _globby = /* @__PURE__ */ _interop_require_default(require_globby2());
|
|
115115
|
-
var _address = /* @__PURE__ */ _interop_require_default(require_address2());
|
|
115116
|
-
var _signale = /* @__PURE__ */ _interop_require_wildcard(require_signale2());
|
|
115117
|
-
var _urljoin = /* @__PURE__ */ _interop_require_default(require_url_join2());
|
|
115118
|
-
var _minimist = /* @__PURE__ */ _interop_require_default(require_minimist2());
|
|
115119
|
-
var _fastglob = /* @__PURE__ */ _interop_require_default(require_fast_glob2());
|
|
115120
|
-
var _filesize = /* @__PURE__ */ _interop_require_default(require_filesize2());
|
|
115121
|
-
var _gzipsize = /* @__PURE__ */ _interop_require_default(require_gzip_size2());
|
|
115122
|
-
var _stripansi = /* @__PURE__ */ _interop_require_default(require_strip_ansi3());
|
|
115123
|
-
var _dotenvexpand = /* @__PURE__ */ _interop_require_default(require_dotenv_expand2());
|
|
115124
|
-
var _browserslist = /* @__PURE__ */ _interop_require_default(require_browserslist2());
|
|
115125
|
-
var _recursivereaddir = /* @__PURE__ */ _interop_require_default(require_recursive_readdir2());
|
|
115186
|
+
var _semver = /* @__PURE__ */ _interop_require_default._(require_semver2());
|
|
115187
|
+
var _dotenv = /* @__PURE__ */ _interop_require_default._(require_dotenv2());
|
|
115188
|
+
var _lodash = /* @__PURE__ */ _interop_require_default._(require_lodash3());
|
|
115189
|
+
var _globby = /* @__PURE__ */ _interop_require_default._(require_globby2());
|
|
115190
|
+
var _address = /* @__PURE__ */ _interop_require_default._(require_address2());
|
|
115191
|
+
var _signale = /* @__PURE__ */ _interop_require_wildcard._(require_signale2());
|
|
115192
|
+
var _urljoin = /* @__PURE__ */ _interop_require_default._(require_url_join2());
|
|
115193
|
+
var _minimist = /* @__PURE__ */ _interop_require_default._(require_minimist2());
|
|
115194
|
+
var _fastglob = /* @__PURE__ */ _interop_require_default._(require_fast_glob2());
|
|
115195
|
+
var _filesize = /* @__PURE__ */ _interop_require_default._(require_filesize2());
|
|
115196
|
+
var _gzipsize = /* @__PURE__ */ _interop_require_default._(require_gzip_size2());
|
|
115197
|
+
var _stripansi = /* @__PURE__ */ _interop_require_default._(require_strip_ansi3());
|
|
115198
|
+
var _dotenvexpand = /* @__PURE__ */ _interop_require_default._(require_dotenv_expand2());
|
|
115199
|
+
var _browserslist = /* @__PURE__ */ _interop_require_default._(require_browserslist2());
|
|
115200
|
+
var _recursivereaddir = /* @__PURE__ */ _interop_require_default._(require_recursive_readdir2());
|
|
115126
115201
|
var _commander = require_commander2();
|
|
115127
|
-
function _interop_require_default(obj) {
|
|
115128
|
-
return obj && obj.__esModule ? obj : {
|
|
115129
|
-
default: obj
|
|
115130
|
-
};
|
|
115131
|
-
}
|
|
115132
|
-
function _getRequireWildcardCache(nodeInterop) {
|
|
115133
|
-
if (typeof WeakMap !== "function")
|
|
115134
|
-
return null;
|
|
115135
|
-
var cacheBabelInterop = /* @__PURE__ */ new WeakMap();
|
|
115136
|
-
var cacheNodeInterop = /* @__PURE__ */ new WeakMap();
|
|
115137
|
-
return (_getRequireWildcardCache = function(nodeInterop2) {
|
|
115138
|
-
return nodeInterop2 ? cacheNodeInterop : cacheBabelInterop;
|
|
115139
|
-
})(nodeInterop);
|
|
115140
|
-
}
|
|
115141
|
-
function _interop_require_wildcard(obj, nodeInterop) {
|
|
115142
|
-
if (!nodeInterop && obj && obj.__esModule) {
|
|
115143
|
-
return obj;
|
|
115144
|
-
}
|
|
115145
|
-
if (obj === null || typeof obj !== "object" && typeof obj !== "function") {
|
|
115146
|
-
return {
|
|
115147
|
-
default: obj
|
|
115148
|
-
};
|
|
115149
|
-
}
|
|
115150
|
-
var cache = _getRequireWildcardCache(nodeInterop);
|
|
115151
|
-
if (cache && cache.has(obj)) {
|
|
115152
|
-
return cache.get(obj);
|
|
115153
|
-
}
|
|
115154
|
-
var newObj = {};
|
|
115155
|
-
var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
115156
|
-
for (var key in obj) {
|
|
115157
|
-
if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
115158
|
-
var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
|
|
115159
|
-
if (desc && (desc.get || desc.set)) {
|
|
115160
|
-
Object.defineProperty(newObj, key, desc);
|
|
115161
|
-
} else {
|
|
115162
|
-
newObj[key] = obj[key];
|
|
115163
|
-
}
|
|
115164
|
-
}
|
|
115165
|
-
}
|
|
115166
|
-
newObj.default = obj;
|
|
115167
|
-
if (cache) {
|
|
115168
|
-
cache.set(obj, newObj);
|
|
115169
|
-
}
|
|
115170
|
-
return newObj;
|
|
115171
|
-
}
|
|
115172
115202
|
var mime2 = _import.Import.lazy("../compiled/mime-types", require);
|
|
115173
115203
|
var chokidar2 = _import.Import.lazy("../compiled/chokidar", require);
|
|
115174
115204
|
var inquirer4 = _import.Import.lazy("../compiled/inquirer", require);
|
|
@@ -115318,6 +115348,8 @@ var require_chainId = __commonJS({
|
|
|
115318
115348
|
BOTTOM_TEMPLATE: "bottom-template",
|
|
115319
115349
|
/** HtmlCrossOriginPlugin */
|
|
115320
115350
|
HTML_CROSS_ORIGIN: "html-cross-origin",
|
|
115351
|
+
/** HtmlNoncePlugin */
|
|
115352
|
+
HTML_NONCE: "html-nonce",
|
|
115321
115353
|
/** MiniCssExtractPlugin */
|
|
115322
115354
|
MINI_CSS_EXTRACT: "mini-css-extract",
|
|
115323
115355
|
/** ReactFastRefreshPlugin */
|
|
@@ -115406,20 +115438,8 @@ var require_constants = __commonJS({
|
|
|
115406
115438
|
PLUGIN_SCHEMAS: () => PLUGIN_SCHEMAS,
|
|
115407
115439
|
DEFAULT_BABEL_PRESET_TYPESCRIPT_OPTIONS: () => DEFAULT_BABEL_PRESET_TYPESCRIPT_OPTIONS
|
|
115408
115440
|
});
|
|
115409
|
-
_export_star(
|
|
115410
|
-
|
|
115411
|
-
Object.keys(from).forEach(function(k) {
|
|
115412
|
-
if (k !== "default" && !Object.prototype.hasOwnProperty.call(to, k)) {
|
|
115413
|
-
Object.defineProperty(to, k, {
|
|
115414
|
-
enumerable: true,
|
|
115415
|
-
get: function() {
|
|
115416
|
-
return from[k];
|
|
115417
|
-
}
|
|
115418
|
-
});
|
|
115419
|
-
}
|
|
115420
|
-
});
|
|
115421
|
-
return from;
|
|
115422
|
-
}
|
|
115441
|
+
var _export_star = require_export_star();
|
|
115442
|
+
_export_star._(require_chainId(), exports);
|
|
115423
115443
|
var ROUTE_SPEC_FILE = "route.json";
|
|
115424
115444
|
var MAIN_ENTRY_NAME = "main";
|
|
115425
115445
|
var SERVER_BUNDLE_DIRECTORY = "bundles";
|
|
@@ -116032,12 +116052,8 @@ var require_ensure = __commonJS({
|
|
|
116032
116052
|
ensureAbsolutePath: () => ensureAbsolutePath,
|
|
116033
116053
|
ensureArray: () => ensureArray
|
|
116034
116054
|
});
|
|
116035
|
-
var
|
|
116036
|
-
|
|
116037
|
-
return obj && obj.__esModule ? obj : {
|
|
116038
|
-
default: obj
|
|
116039
|
-
};
|
|
116040
|
-
}
|
|
116055
|
+
var _interop_require_default = require_interop_require_default();
|
|
116056
|
+
var _path = /* @__PURE__ */ _interop_require_default._(require("path"));
|
|
116041
116057
|
var ensureAbsolutePath = (base, filePath) => _path.default.isAbsolute(filePath) ? filePath : _path.default.resolve(base, filePath);
|
|
116042
116058
|
var ensureArray = (params) => {
|
|
116043
116059
|
if (Array.isArray(params)) {
|
|
@@ -116073,16 +116089,12 @@ var require_project = __commonJS({
|
|
|
116073
116089
|
isReact18: () => isReact182,
|
|
116074
116090
|
isTypescript: () => isTypescript
|
|
116075
116091
|
});
|
|
116076
|
-
var
|
|
116092
|
+
var _interop_require_default = require_interop_require_default();
|
|
116093
|
+
var _path = /* @__PURE__ */ _interop_require_default._(require("path"));
|
|
116077
116094
|
var _commands = require_commands();
|
|
116078
116095
|
var _compiled = require_compiled();
|
|
116079
116096
|
var _common = require_common3();
|
|
116080
116097
|
var _ensure = require_ensure();
|
|
116081
|
-
function _interop_require_default(obj) {
|
|
116082
|
-
return obj && obj.__esModule ? obj : {
|
|
116083
|
-
default: obj
|
|
116084
|
-
};
|
|
116085
|
-
}
|
|
116086
116098
|
var debug = (0, _common.createDebugger)("judge-depExists");
|
|
116087
116099
|
var isDepExists = (appDirectory, name) => {
|
|
116088
116100
|
const pkgPath = _path.default.resolve(appDirectory, "./package.json");
|
|
@@ -116149,24 +116161,12 @@ var require_is = __commonJS({
|
|
|
116149
116161
|
Object.defineProperty(exports, "__esModule", {
|
|
116150
116162
|
value: true
|
|
116151
116163
|
});
|
|
116152
|
-
_export_star(
|
|
116153
|
-
_export_star(
|
|
116154
|
-
_export_star(
|
|
116155
|
-
_export_star(
|
|
116156
|
-
_export_star(
|
|
116157
|
-
|
|
116158
|
-
Object.keys(from).forEach(function(k) {
|
|
116159
|
-
if (k !== "default" && !Object.prototype.hasOwnProperty.call(to, k)) {
|
|
116160
|
-
Object.defineProperty(to, k, {
|
|
116161
|
-
enumerable: true,
|
|
116162
|
-
get: function() {
|
|
116163
|
-
return from[k];
|
|
116164
|
-
}
|
|
116165
|
-
});
|
|
116166
|
-
}
|
|
116167
|
-
});
|
|
116168
|
-
return from;
|
|
116169
|
-
}
|
|
116164
|
+
var _export_star = require_export_star();
|
|
116165
|
+
_export_star._(require_env(), exports);
|
|
116166
|
+
_export_star._(require_platform(), exports);
|
|
116167
|
+
_export_star._(require_type(), exports);
|
|
116168
|
+
_export_star._(require_config2(), exports);
|
|
116169
|
+
_export_star._(require_project(), exports);
|
|
116170
116170
|
}
|
|
116171
116171
|
});
|
|
116172
116172
|
|
|
@@ -116268,17 +116268,13 @@ var require_data = __commonJS({
|
|
|
116268
116268
|
readTsConfig: () => readTsConfig,
|
|
116269
116269
|
readTsConfigByFile: () => readTsConfigByFile2
|
|
116270
116270
|
});
|
|
116271
|
-
var
|
|
116272
|
-
var
|
|
116271
|
+
var _interop_require_default = require_interop_require_default();
|
|
116272
|
+
var _os = /* @__PURE__ */ _interop_require_default._(require("os"));
|
|
116273
|
+
var _path = /* @__PURE__ */ _interop_require_default._(require("path"));
|
|
116273
116274
|
var _compiled = require_compiled();
|
|
116274
116275
|
var _constants = require_constants();
|
|
116275
116276
|
var _is = require_is();
|
|
116276
116277
|
var _package = require_package4();
|
|
116277
|
-
function _interop_require_default(obj) {
|
|
116278
|
-
return obj && obj.__esModule ? obj : {
|
|
116279
|
-
default: obj
|
|
116280
|
-
};
|
|
116281
|
-
}
|
|
116282
116278
|
var MAX_TIMES = 5;
|
|
116283
116279
|
function getPackageManager2() {
|
|
116284
116280
|
return __async(this, arguments, function* (cwd = process.cwd()) {
|
|
@@ -116410,29 +116406,13 @@ var require_get2 = __commonJS({
|
|
|
116410
116406
|
getServerConfig: () => getServerConfig,
|
|
116411
116407
|
getTargetDir: () => getTargetDir
|
|
116412
116408
|
});
|
|
116413
|
-
var
|
|
116409
|
+
var _export_star = require_export_star();
|
|
116410
|
+
var _interop_require_default = require_interop_require_default();
|
|
116411
|
+
var _path = /* @__PURE__ */ _interop_require_default._(require("path"));
|
|
116414
116412
|
var _constants = require_constants();
|
|
116415
116413
|
var _fs = require_fs();
|
|
116416
|
-
_export_star(require_data(), exports);
|
|
116417
|
-
_export_star(require_config3(), exports);
|
|
116418
|
-
function _export_star(from, to) {
|
|
116419
|
-
Object.keys(from).forEach(function(k) {
|
|
116420
|
-
if (k !== "default" && !Object.prototype.hasOwnProperty.call(to, k)) {
|
|
116421
|
-
Object.defineProperty(to, k, {
|
|
116422
|
-
enumerable: true,
|
|
116423
|
-
get: function() {
|
|
116424
|
-
return from[k];
|
|
116425
|
-
}
|
|
116426
|
-
});
|
|
116427
|
-
}
|
|
116428
|
-
});
|
|
116429
|
-
return from;
|
|
116430
|
-
}
|
|
116431
|
-
function _interop_require_default(obj) {
|
|
116432
|
-
return obj && obj.__esModule ? obj : {
|
|
116433
|
-
default: obj
|
|
116434
|
-
};
|
|
116435
|
-
}
|
|
116414
|
+
_export_star._(require_data(), exports);
|
|
116415
|
+
_export_star._(require_config3(), exports);
|
|
116436
116416
|
var getServerConfig = (appDirectory, configFile) => __async(exports, null, function* () {
|
|
116437
116417
|
const configFilePath = (0, _fs.findExists)(_constants.CONFIG_FILE_EXTENSIONS.map((extension) => _path.default.resolve(appDirectory, `${configFile}${extension}`)));
|
|
116438
116418
|
return configFilePath;
|
|
@@ -116444,6 +116424,21 @@ var require_get2 = __commonJS({
|
|
|
116444
116424
|
}
|
|
116445
116425
|
});
|
|
116446
116426
|
|
|
116427
|
+
// ../../../../node_modules/.pnpm/@swc+helpers@0.5.1/node_modules/@swc/helpers/cjs/_define_property.cjs
|
|
116428
|
+
var require_define_property = __commonJS({
|
|
116429
|
+
"../../../../node_modules/.pnpm/@swc+helpers@0.5.1/node_modules/@swc/helpers/cjs/_define_property.cjs"(exports) {
|
|
116430
|
+
"use strict";
|
|
116431
|
+
exports._ = exports._define_property = _define_property15;
|
|
116432
|
+
function _define_property15(obj, key, value) {
|
|
116433
|
+
if (key in obj) {
|
|
116434
|
+
Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true });
|
|
116435
|
+
} else
|
|
116436
|
+
obj[key] = value;
|
|
116437
|
+
return obj;
|
|
116438
|
+
}
|
|
116439
|
+
}
|
|
116440
|
+
});
|
|
116441
|
+
|
|
116447
116442
|
// ../../../toolkit/utils/dist/cjs/cli/logger.js
|
|
116448
116443
|
var require_logger2 = __commonJS({
|
|
116449
116444
|
"../../../toolkit/utils/dist/cjs/cli/logger.js"(exports) {
|
|
@@ -116462,25 +116457,9 @@ var require_logger2 = __commonJS({
|
|
|
116462
116457
|
Logger: () => Logger,
|
|
116463
116458
|
logger: () => logger2
|
|
116464
116459
|
});
|
|
116465
|
-
var
|
|
116466
|
-
|
|
116467
|
-
|
|
116468
|
-
Object.defineProperty(obj, key, {
|
|
116469
|
-
value,
|
|
116470
|
-
enumerable: true,
|
|
116471
|
-
configurable: true,
|
|
116472
|
-
writable: true
|
|
116473
|
-
});
|
|
116474
|
-
} else {
|
|
116475
|
-
obj[key] = value;
|
|
116476
|
-
}
|
|
116477
|
-
return obj;
|
|
116478
|
-
}
|
|
116479
|
-
function _interop_require_default(obj) {
|
|
116480
|
-
return obj && obj.__esModule ? obj : {
|
|
116481
|
-
default: obj
|
|
116482
|
-
};
|
|
116483
|
-
}
|
|
116460
|
+
var _define_property15 = require_define_property();
|
|
116461
|
+
var _interop_require_default = require_interop_require_default();
|
|
116462
|
+
var _chalk = /* @__PURE__ */ _interop_require_default._(require_chalk2());
|
|
116484
116463
|
var LOG_LEVEL = {
|
|
116485
116464
|
error: 0,
|
|
116486
116465
|
warn: 1,
|
|
@@ -116564,10 +116543,10 @@ ${_chalk.default.grey(rest.join("\n"))}`;
|
|
|
116564
116543
|
return longestLabel;
|
|
116565
116544
|
}
|
|
116566
116545
|
constructor(options = {}) {
|
|
116567
|
-
_define_property15(this, "level", void 0);
|
|
116568
|
-
_define_property15(this, "config", void 0);
|
|
116569
|
-
_define_property15(this, "types", void 0);
|
|
116570
|
-
_define_property15(this, "longestLabel", void 0);
|
|
116546
|
+
_define_property15._(this, "level", void 0);
|
|
116547
|
+
_define_property15._(this, "config", void 0);
|
|
116548
|
+
_define_property15._(this, "types", void 0);
|
|
116549
|
+
_define_property15._(this, "longestLabel", void 0);
|
|
116571
116550
|
this.level = options.level || LOG_TYPES.log.level;
|
|
116572
116551
|
this.config = __spreadValues(__spreadValues({}, DEFAULT_CONFIG), options.config || {});
|
|
116573
116552
|
this.types = __spreadValues(__spreadValues({}, LOG_TYPES), options.types || {});
|
|
@@ -116640,16 +116619,12 @@ var require_alias = __commonJS({
|
|
|
116640
116619
|
getAliasConfig: () => getAliasConfig,
|
|
116641
116620
|
getUserAlias: () => getUserAlias
|
|
116642
116621
|
});
|
|
116643
|
-
var
|
|
116644
|
-
var
|
|
116622
|
+
var _interop_require_default = require_interop_require_default();
|
|
116623
|
+
var _fs = /* @__PURE__ */ _interop_require_default._(require("fs"));
|
|
116624
|
+
var _path = /* @__PURE__ */ _interop_require_default._(require("path"));
|
|
116645
116625
|
var _compiled = require_compiled();
|
|
116646
116626
|
var _get = require_get2();
|
|
116647
116627
|
var _applyOptionsChain = require_applyOptionsChain();
|
|
116648
|
-
function _interop_require_default(obj) {
|
|
116649
|
-
return obj && obj.__esModule ? obj : {
|
|
116650
|
-
default: obj
|
|
116651
|
-
};
|
|
116652
|
-
}
|
|
116653
116628
|
var validAlias = (modernConfig, { tsconfigPath }) => {
|
|
116654
116629
|
const { source: { alias } } = modernConfig;
|
|
116655
116630
|
if (!alias) {
|
|
@@ -116725,15 +116700,11 @@ var require_path = __commonJS({
|
|
|
116725
116700
|
removeTailSlash: () => removeTailSlash,
|
|
116726
116701
|
removeSlash: () => removeSlash
|
|
116727
116702
|
});
|
|
116728
|
-
var
|
|
116729
|
-
var
|
|
116730
|
-
var
|
|
116703
|
+
var _interop_require_default = require_interop_require_default();
|
|
116704
|
+
var _path = /* @__PURE__ */ _interop_require_default._(require("path"));
|
|
116705
|
+
var _os = /* @__PURE__ */ _interop_require_default._(require("os"));
|
|
116706
|
+
var _fs = /* @__PURE__ */ _interop_require_default._(require("fs"));
|
|
116731
116707
|
var _compiled = require_compiled();
|
|
116732
|
-
function _interop_require_default(obj) {
|
|
116733
|
-
return obj && obj.__esModule ? obj : {
|
|
116734
|
-
default: obj
|
|
116735
|
-
};
|
|
116736
|
-
}
|
|
116737
116708
|
var isPathString = (test) => _path.default.posix.basename(test) !== test || _path.default.win32.basename(test) !== test;
|
|
116738
116709
|
var isRelativePath = (test) => /^\.\.?($|[\\/])/.test(test);
|
|
116739
116710
|
var normalizeOutputPath = (s) => s.replace(/\\/g, "\\\\");
|
|
@@ -116897,54 +116868,6 @@ var require_babel = __commonJS({
|
|
|
116897
116868
|
}
|
|
116898
116869
|
});
|
|
116899
116870
|
|
|
116900
|
-
// ../../../toolkit/utils/dist/cjs/cli/generateMetaTags.js
|
|
116901
|
-
var require_generateMetaTags = __commonJS({
|
|
116902
|
-
"../../../toolkit/utils/dist/cjs/cli/generateMetaTags.js"(exports) {
|
|
116903
|
-
"use strict";
|
|
116904
|
-
Object.defineProperty(exports, "__esModule", {
|
|
116905
|
-
value: true
|
|
116906
|
-
});
|
|
116907
|
-
Object.defineProperty(exports, "generateMetaTags", {
|
|
116908
|
-
enumerable: true,
|
|
116909
|
-
get: () => generateMetaTags
|
|
116910
|
-
});
|
|
116911
|
-
var tagObjectToString = (tagDefinition) => {
|
|
116912
|
-
const attributes = Object.keys(tagDefinition.attributes || {}).filter((attributeName) => tagDefinition.attributes[attributeName] !== false).map((attributeName) => {
|
|
116913
|
-
if (tagDefinition.attributes[attributeName] === true) {
|
|
116914
|
-
return attributeName;
|
|
116915
|
-
}
|
|
116916
|
-
return `${attributeName}="${tagDefinition.attributes[attributeName]}"`;
|
|
116917
|
-
});
|
|
116918
|
-
return `<${[
|
|
116919
|
-
tagDefinition.tagName
|
|
116920
|
-
].concat(attributes).join(" ")}>${tagDefinition.innerHTML || ""}${tagDefinition.voidTag ? "" : `</${tagDefinition.tagName}>`}`;
|
|
116921
|
-
};
|
|
116922
|
-
var generateMetaTags = (metaOptions) => {
|
|
116923
|
-
if (!metaOptions) {
|
|
116924
|
-
return "";
|
|
116925
|
-
}
|
|
116926
|
-
const metaTagAttributeObjects = Object.keys(metaOptions).map((metaName) => {
|
|
116927
|
-
const metaTagContent = metaOptions[metaName];
|
|
116928
|
-
return typeof metaTagContent === "string" ? {
|
|
116929
|
-
name: metaName,
|
|
116930
|
-
content: metaTagContent
|
|
116931
|
-
} : metaTagContent;
|
|
116932
|
-
}).filter((attribute) => attribute !== false);
|
|
116933
|
-
return metaTagAttributeObjects.map((metaTagAttributes) => {
|
|
116934
|
-
if (metaTagAttributes === false) {
|
|
116935
|
-
throw new Error("Invalid meta tag");
|
|
116936
|
-
}
|
|
116937
|
-
return {
|
|
116938
|
-
tagName: "meta",
|
|
116939
|
-
voidTag: true,
|
|
116940
|
-
attributes: metaTagAttributes
|
|
116941
|
-
};
|
|
116942
|
-
}).reduce((memo, tagObject) => `${memo}
|
|
116943
|
-
${tagObjectToString(tagObject)}`, "");
|
|
116944
|
-
};
|
|
116945
|
-
}
|
|
116946
|
-
});
|
|
116947
|
-
|
|
116948
116871
|
// ../../../toolkit/utils/dist/cjs/cli/monorepo.js
|
|
116949
116872
|
var require_monorepo = __commonJS({
|
|
116950
116873
|
"../../../toolkit/utils/dist/cjs/cli/monorepo.js"(exports) {
|
|
@@ -116968,14 +116891,10 @@ var require_monorepo = __commonJS({
|
|
|
116968
116891
|
findMonorepoRoot: () => findMonorepoRoot,
|
|
116969
116892
|
getMonorepoPackages: () => getMonorepoPackages2
|
|
116970
116893
|
});
|
|
116971
|
-
var
|
|
116972
|
-
var
|
|
116894
|
+
var _interop_require_default = require_interop_require_default();
|
|
116895
|
+
var _fs = /* @__PURE__ */ _interop_require_default._(require("fs"));
|
|
116896
|
+
var _path = /* @__PURE__ */ _interop_require_default._(require("path"));
|
|
116973
116897
|
var _compiled = require_compiled();
|
|
116974
|
-
function _interop_require_default(obj) {
|
|
116975
|
-
return obj && obj.__esModule ? obj : {
|
|
116976
|
-
default: obj
|
|
116977
|
-
};
|
|
116978
|
-
}
|
|
116979
116898
|
var PACKAGE_MAX_DEPTH = 5;
|
|
116980
116899
|
var WORKSPACE_FILES = {
|
|
116981
116900
|
YARN: "package.json",
|
|
@@ -117063,14 +116982,10 @@ var require_pathSerializer = __commonJS({
|
|
|
117063
116982
|
applyMatcherReplacement: () => applyMatcherReplacement,
|
|
117064
116983
|
createDefaultPathMatchers: () => createDefaultPathMatchers
|
|
117065
116984
|
});
|
|
117066
|
-
var
|
|
117067
|
-
var
|
|
116985
|
+
var _interop_require_default = require_interop_require_default();
|
|
116986
|
+
var _os = /* @__PURE__ */ _interop_require_default._(require("os"));
|
|
116987
|
+
var _lodash = /* @__PURE__ */ _interop_require_default._(require_lodash3());
|
|
117068
116988
|
var _path = require_path();
|
|
117069
|
-
function _interop_require_default(obj) {
|
|
117070
|
-
return obj && obj.__esModule ? obj : {
|
|
117071
|
-
default: obj
|
|
117072
|
-
};
|
|
117073
|
-
}
|
|
117074
116989
|
var matchUpwardPathsAsUnknown = (p) => (0, _lodash.default)((0, _path.upwardPaths)((0, _path.normalizeToPosixPath)(p))).map((match) => ({
|
|
117075
116990
|
match,
|
|
117076
116991
|
mark: "unknown"
|
|
@@ -117128,14 +117043,10 @@ var require_port = __commonJS({
|
|
|
117128
117043
|
enumerable: true,
|
|
117129
117044
|
get: () => getPort
|
|
117130
117045
|
});
|
|
117131
|
-
var
|
|
117046
|
+
var _interop_require_default = require_interop_require_default();
|
|
117047
|
+
var _net = /* @__PURE__ */ _interop_require_default._(require("net"));
|
|
117132
117048
|
var _compiled = require_compiled();
|
|
117133
117049
|
var _logger = require_logger2();
|
|
117134
|
-
function _interop_require_default(obj) {
|
|
117135
|
-
return obj && obj.__esModule ? obj : {
|
|
117136
|
-
default: obj
|
|
117137
|
-
};
|
|
117138
|
-
}
|
|
117139
117050
|
var getPort = (_0, ..._1) => __async(exports, [_0, ..._1], function* (port, { tryLimits = 20, strictPort = false } = {}) {
|
|
117140
117051
|
if (typeof port === "string") {
|
|
117141
117052
|
port = parseInt(port, 10);
|
|
@@ -117198,15 +117109,11 @@ var require_prettyInstructions = __commonJS({
|
|
|
117198
117109
|
getAddressUrls: () => getAddressUrls,
|
|
117199
117110
|
prettyInstructions: () => prettyInstructions
|
|
117200
117111
|
});
|
|
117201
|
-
var
|
|
117112
|
+
var _interop_require_default = require_interop_require_default();
|
|
117113
|
+
var _os = /* @__PURE__ */ _interop_require_default._(require("os"));
|
|
117202
117114
|
var _compiled = require_compiled();
|
|
117203
117115
|
var _is = require_is();
|
|
117204
117116
|
var _constants = require_constants();
|
|
117205
|
-
function _interop_require_default(obj) {
|
|
117206
|
-
return obj && obj.__esModule ? obj : {
|
|
117207
|
-
default: obj
|
|
117208
|
-
};
|
|
117209
|
-
}
|
|
117210
117117
|
var normalizeUrl = (url) => url.replace(/([^:]\/)\/+/g, "$1");
|
|
117211
117118
|
var getIpv4Interfaces = () => {
|
|
117212
117119
|
const interfaces = _os.default.networkInterfaces();
|
|
@@ -117410,14 +117317,10 @@ var require_routes = __commonJS({
|
|
|
117410
117317
|
enumerable: true,
|
|
117411
117318
|
get: () => getRouteId
|
|
117412
117319
|
});
|
|
117413
|
-
var
|
|
117320
|
+
var _interop_require_default = require_interop_require_default();
|
|
117321
|
+
var _path = /* @__PURE__ */ _interop_require_default._(require("path"));
|
|
117414
117322
|
var _constants = require_constants();
|
|
117415
117323
|
var _path1 = require_path();
|
|
117416
|
-
function _interop_require_default(obj) {
|
|
117417
|
-
return obj && obj.__esModule ? obj : {
|
|
117418
|
-
default: obj
|
|
117419
|
-
};
|
|
117420
|
-
}
|
|
117421
117324
|
var getPathWithoutExt = (filename) => {
|
|
117422
117325
|
const extname = _path.default.extname(filename);
|
|
117423
117326
|
return filename.slice(0, -extname.length);
|
|
@@ -117447,14 +117350,10 @@ var require_runtimeExports = __commonJS({
|
|
|
117447
117350
|
enumerable: true,
|
|
117448
117351
|
get: () => createRuntimeExportsUtils
|
|
117449
117352
|
});
|
|
117450
|
-
var
|
|
117353
|
+
var _interop_require_default = require_interop_require_default();
|
|
117354
|
+
var _path = /* @__PURE__ */ _interop_require_default._(require("path"));
|
|
117451
117355
|
var _compiled = require_compiled();
|
|
117452
117356
|
var _path1 = require_path();
|
|
117453
|
-
function _interop_require_default(obj) {
|
|
117454
|
-
return obj && obj.__esModule ? obj : {
|
|
117455
|
-
default: obj
|
|
117456
|
-
};
|
|
117457
|
-
}
|
|
117458
117357
|
var memo = (fn) => {
|
|
117459
117358
|
const cache = /* @__PURE__ */ new Map();
|
|
117460
117359
|
return (...params) => {
|
|
@@ -117531,13 +117430,9 @@ var require_watch = __commonJS({
|
|
|
117531
117430
|
WatchChangeType: () => WatchChangeType,
|
|
117532
117431
|
watch: () => watch
|
|
117533
117432
|
});
|
|
117534
|
-
var
|
|
117433
|
+
var _interop_require_default = require_interop_require_default();
|
|
117434
|
+
var _path = /* @__PURE__ */ _interop_require_default._(require("path"));
|
|
117535
117435
|
var _compiled = require_compiled();
|
|
117536
|
-
function _interop_require_default(obj) {
|
|
117537
|
-
return obj && obj.__esModule ? obj : {
|
|
117538
|
-
default: obj
|
|
117539
|
-
};
|
|
117540
|
-
}
|
|
117541
117436
|
var WatchChangeType = {
|
|
117542
117437
|
ADD: "add",
|
|
117543
117438
|
UNLINK: "unlink",
|
|
@@ -117587,43 +117482,30 @@ var require_cli = __commonJS({
|
|
|
117587
117482
|
Object.defineProperty(exports, "__esModule", {
|
|
117588
117483
|
value: true
|
|
117589
117484
|
});
|
|
117590
|
-
_export_star(
|
|
117591
|
-
_export_star(
|
|
117592
|
-
_export_star(
|
|
117593
|
-
_export_star(
|
|
117594
|
-
_export_star(
|
|
117595
|
-
_export_star(
|
|
117596
|
-
_export_star(
|
|
117597
|
-
_export_star(
|
|
117598
|
-
_export_star(
|
|
117599
|
-
_export_star(
|
|
117600
|
-
_export_star(
|
|
117601
|
-
_export_star(require_logger2(), exports);
|
|
117602
|
-
_export_star(require_monorepo(), exports);
|
|
117603
|
-
_export_star(require_package4(), exports);
|
|
117604
|
-
_export_star(require_path(), exports);
|
|
117605
|
-
_export_star(require_pathSerializer(), exports);
|
|
117606
|
-
_export_star(require_port(), exports);
|
|
117607
|
-
_export_star(require_prettyInstructions(), exports);
|
|
117608
|
-
_export_star(require_print(), exports);
|
|
117609
|
-
_export_star(require_require(), exports);
|
|
117610
|
-
_export_star(require_routes(), exports);
|
|
117611
|
-
_export_star(require_runtimeExports(), exports);
|
|
117612
|
-
_export_star(require_test(), exports);
|
|
117613
|
-
_export_star(require_watch(), exports);
|
|
117614
|
-
function _export_star(from, to) {
|
|
117615
|
-
Object.keys(from).forEach(function(k) {
|
|
117616
|
-
if (k !== "default" && !Object.prototype.hasOwnProperty.call(to, k)) {
|
|
117617
|
-
Object.defineProperty(to, k, {
|
|
117618
|
-
enumerable: true,
|
|
117619
|
-
get: function() {
|
|
117620
|
-
return from[k];
|
|
117621
|
-
}
|
|
117622
|
-
});
|
|
117623
|
-
}
|
|
117624
|
-
});
|
|
117625
|
-
return from;
|
|
117626
|
-
}
|
|
117485
|
+
var _export_star = require_export_star();
|
|
117486
|
+
_export_star._(require_constants(), exports);
|
|
117487
|
+
_export_star._(require_get2(), exports);
|
|
117488
|
+
_export_star._(require_is(), exports);
|
|
117489
|
+
_export_star._(require_alias(), exports);
|
|
117490
|
+
_export_star._(require_applyOptionsChain(), exports);
|
|
117491
|
+
_export_star._(require_babel(), exports);
|
|
117492
|
+
_export_star._(require_commands(), exports);
|
|
117493
|
+
_export_star._(require_common3(), exports);
|
|
117494
|
+
_export_star._(require_ensure(), exports);
|
|
117495
|
+
_export_star._(require_fs(), exports);
|
|
117496
|
+
_export_star._(require_logger2(), exports);
|
|
117497
|
+
_export_star._(require_monorepo(), exports);
|
|
117498
|
+
_export_star._(require_package4(), exports);
|
|
117499
|
+
_export_star._(require_path(), exports);
|
|
117500
|
+
_export_star._(require_pathSerializer(), exports);
|
|
117501
|
+
_export_star._(require_port(), exports);
|
|
117502
|
+
_export_star._(require_prettyInstructions(), exports);
|
|
117503
|
+
_export_star._(require_print(), exports);
|
|
117504
|
+
_export_star._(require_require(), exports);
|
|
117505
|
+
_export_star._(require_routes(), exports);
|
|
117506
|
+
_export_star._(require_runtimeExports(), exports);
|
|
117507
|
+
_export_star._(require_test(), exports);
|
|
117508
|
+
_export_star._(require_watch(), exports);
|
|
117627
117509
|
}
|
|
117628
117510
|
});
|
|
117629
117511
|
|
|
@@ -117634,22 +117516,10 @@ var require_cjs2 = __commonJS({
|
|
|
117634
117516
|
Object.defineProperty(exports, "__esModule", {
|
|
117635
117517
|
value: true
|
|
117636
117518
|
});
|
|
117637
|
-
_export_star(
|
|
117638
|
-
_export_star(
|
|
117639
|
-
_export_star(
|
|
117640
|
-
|
|
117641
|
-
Object.keys(from).forEach(function(k) {
|
|
117642
|
-
if (k !== "default" && !Object.prototype.hasOwnProperty.call(to, k)) {
|
|
117643
|
-
Object.defineProperty(to, k, {
|
|
117644
|
-
enumerable: true,
|
|
117645
|
-
get: function() {
|
|
117646
|
-
return from[k];
|
|
117647
|
-
}
|
|
117648
|
-
});
|
|
117649
|
-
}
|
|
117650
|
-
});
|
|
117651
|
-
return from;
|
|
117652
|
-
}
|
|
117519
|
+
var _export_star = require_export_star();
|
|
117520
|
+
_export_star._(require_compiled(), exports);
|
|
117521
|
+
_export_star._(require_cli(), exports);
|
|
117522
|
+
_export_star._(require_import(), exports);
|
|
117653
117523
|
}
|
|
117654
117524
|
});
|
|
117655
117525
|
|
|
@@ -117712,11 +117582,11 @@ var mime = Import.lazy("../compiled/mime-types", require);
|
|
|
117712
117582
|
var chokidar = Import.lazy("../compiled/chokidar", require);
|
|
117713
117583
|
var inquirer = Import.lazy("../compiled/inquirer", require);
|
|
117714
117584
|
|
|
117715
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.
|
|
117585
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.3_bho3aw2byq52erp6eaxmeboo7i/node_modules/@modern-js/codesmith-api-app/dist/esm/index.js
|
|
117716
117586
|
var import_lodash6 = __toESM(require_lodash2());
|
|
117717
117587
|
var import_comment_json = __toESM(require_src2());
|
|
117718
117588
|
|
|
117719
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.2.
|
|
117589
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.2.3/node_modules/@modern-js/codesmith-api-npm/dist/esm/utils/env.js
|
|
117720
117590
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
117721
117591
|
try {
|
|
117722
117592
|
var info = gen[key](arg);
|
|
@@ -118024,7 +117894,7 @@ function _canUsePnpm() {
|
|
|
118024
117894
|
return _canUsePnpm.apply(this, arguments);
|
|
118025
117895
|
}
|
|
118026
117896
|
|
|
118027
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.2.
|
|
117897
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.2.3/node_modules/@modern-js/codesmith-api-npm/dist/esm/utils/install.js
|
|
118028
117898
|
function asyncGeneratorStep2(gen, resolve, reject, _next, _throw, key, arg) {
|
|
118029
117899
|
try {
|
|
118030
117900
|
var info = gen[key](arg);
|
|
@@ -118391,7 +118261,7 @@ function _pnpmInstall() {
|
|
|
118391
118261
|
return _pnpmInstall.apply(this, arguments);
|
|
118392
118262
|
}
|
|
118393
118263
|
|
|
118394
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.2.
|
|
118264
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.2.3/node_modules/@modern-js/codesmith-api-npm/dist/esm/index.js
|
|
118395
118265
|
function _class_call_check(instance, Constructor) {
|
|
118396
118266
|
if (!(instance instanceof Constructor)) {
|
|
118397
118267
|
throw new TypeError("Cannot call a class as a function");
|
|
@@ -118472,7 +118342,7 @@ var NpmAPI = /* @__PURE__ */ function() {
|
|
|
118472
118342
|
return NpmAPI2;
|
|
118473
118343
|
}();
|
|
118474
118344
|
|
|
118475
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.2.
|
|
118345
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.2.3_@modern-js+codesmith@2.2.3/node_modules/@modern-js/codesmith-api-git/dist/esm/utils/index.js
|
|
118476
118346
|
function asyncGeneratorStep3(gen, resolve, reject, _next, _throw, key, arg) {
|
|
118477
118347
|
try {
|
|
118478
118348
|
var info = gen[key](arg);
|
|
@@ -118814,7 +118684,7 @@ function _gitCommit() {
|
|
|
118814
118684
|
return _gitCommit.apply(this, arguments);
|
|
118815
118685
|
}
|
|
118816
118686
|
|
|
118817
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.2.
|
|
118687
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.2.3_@modern-js+codesmith@2.2.3/node_modules/@modern-js/codesmith-api-git/dist/esm/index.js
|
|
118818
118688
|
function asyncGeneratorStep4(gen, resolve, reject, _next, _throw, key, arg) {
|
|
118819
118689
|
try {
|
|
118820
118690
|
var info = gen[key](arg);
|
|
@@ -119145,11 +119015,11 @@ var GitAPI = /* @__PURE__ */ function() {
|
|
|
119145
119015
|
return GitAPI2;
|
|
119146
119016
|
}();
|
|
119147
119017
|
|
|
119148
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.2.
|
|
119018
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.2.3/node_modules/@modern-js/codesmith/dist/esm/materials/FsResource.js
|
|
119149
119019
|
var import_path = __toESM(require("path"));
|
|
119150
119020
|
var FS_RESOURCE = "_codesmith_core_fs_resource";
|
|
119151
119021
|
|
|
119152
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.2.
|
|
119022
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.2.3/node_modules/@modern-js/codesmith/dist/esm/utils/fsExists.js
|
|
119153
119023
|
function asyncGeneratorStep5(gen, resolve, reject, _next, _throw, key, arg) {
|
|
119154
119024
|
try {
|
|
119155
119025
|
var info = gen[key](arg);
|
|
@@ -119322,7 +119192,7 @@ function _fsExists() {
|
|
|
119322
119192
|
return _fsExists.apply(this, arguments);
|
|
119323
119193
|
}
|
|
119324
119194
|
|
|
119325
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.2.
|
|
119195
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.2.3_@modern-js+codesmith@2.2.3/node_modules/@modern-js/codesmith-api-handlebars/dist/esm/utils/renderString.js
|
|
119326
119196
|
var import_handlebars = __toESM(require_lib());
|
|
119327
119197
|
function _define_property4(obj, key, value) {
|
|
119328
119198
|
if (key in obj) {
|
|
@@ -119364,7 +119234,7 @@ function renderString(template, fullData, registers) {
|
|
|
119364
119234
|
return import_handlebars.default.compile(template)(fullData) || "";
|
|
119365
119235
|
}
|
|
119366
119236
|
|
|
119367
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.2.
|
|
119237
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.2.3_@modern-js+codesmith@2.2.3/node_modules/@modern-js/codesmith-api-handlebars/dist/esm/index.js
|
|
119368
119238
|
function asyncGeneratorStep6(gen, resolve, reject, _next, _throw, key, arg) {
|
|
119369
119239
|
try {
|
|
119370
119240
|
var info = gen[key](arg);
|
|
@@ -119682,13 +119552,13 @@ var HandlebarsAPI = /* @__PURE__ */ function() {
|
|
|
119682
119552
|
return HandlebarsAPI2;
|
|
119683
119553
|
}();
|
|
119684
119554
|
|
|
119685
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.2.
|
|
119555
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.2.3_@modern-js+codesmith@2.2.3/node_modules/@modern-js/codesmith-api-ejs/dist/esm/utils/renderString.js
|
|
119686
119556
|
var import_ejs = __toESM(require_ejs());
|
|
119687
119557
|
function renderString2(template, fullData) {
|
|
119688
119558
|
return import_ejs.default.render(template, fullData) || "";
|
|
119689
119559
|
}
|
|
119690
119560
|
|
|
119691
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.2.
|
|
119561
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.2.3_@modern-js+codesmith@2.2.3/node_modules/@modern-js/codesmith-api-ejs/dist/esm/index.js
|
|
119692
119562
|
function asyncGeneratorStep7(gen, resolve, reject, _next, _throw, key, arg) {
|
|
119693
119563
|
try {
|
|
119694
119564
|
var info = gen[key](arg);
|
|
@@ -119958,24 +119828,8 @@ var EjsAPI = /* @__PURE__ */ function() {
|
|
|
119958
119828
|
return EjsAPI2;
|
|
119959
119829
|
}();
|
|
119960
119830
|
|
|
119961
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-fs@2.2.
|
|
119831
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-fs@2.2.3_@modern-js+codesmith@2.2.3/node_modules/@modern-js/codesmith-api-fs/dist/esm/index.js
|
|
119962
119832
|
var import_path2 = __toESM(require("path"));
|
|
119963
|
-
|
|
119964
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-fs@2.2.0_@modern-js+codesmith@2.2.0/node_modules/@modern-js/codesmith-api-fs/dist/esm/constant.js
|
|
119965
|
-
var imageExtNameList = [
|
|
119966
|
-
".jpg",
|
|
119967
|
-
".jpeg",
|
|
119968
|
-
".png",
|
|
119969
|
-
".gif",
|
|
119970
|
-
".bmp",
|
|
119971
|
-
".ico",
|
|
119972
|
-
".icon",
|
|
119973
|
-
".mpt",
|
|
119974
|
-
".psd",
|
|
119975
|
-
".wmf"
|
|
119976
|
-
];
|
|
119977
|
-
|
|
119978
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-fs@2.2.0_@modern-js+codesmith@2.2.0/node_modules/@modern-js/codesmith-api-fs/dist/esm/index.js
|
|
119979
119833
|
function asyncGeneratorStep8(gen, resolve, reject, _next, _throw, key, arg) {
|
|
119980
119834
|
try {
|
|
119981
119835
|
var info = gen[key](arg);
|
|
@@ -120155,48 +120009,26 @@ var FsAPI = /* @__PURE__ */ function() {
|
|
|
120155
120009
|
value: function renderFile(resource, target) {
|
|
120156
120010
|
var _this = this;
|
|
120157
120011
|
return _async_to_generator8(function() {
|
|
120158
|
-
var
|
|
120012
|
+
var filePath;
|
|
120159
120013
|
return __generator8(this, function(_state) {
|
|
120160
120014
|
switch (_state.label) {
|
|
120161
120015
|
case 0:
|
|
120162
120016
|
if (resource._type !== FS_RESOURCE) {
|
|
120163
120017
|
throw new Error("resource not match");
|
|
120164
120018
|
}
|
|
120019
|
+
filePath = import_path2.default.resolve(_this.generatorCore.outputPath, target.toString());
|
|
120165
120020
|
return [
|
|
120166
120021
|
4,
|
|
120167
|
-
|
|
120022
|
+
import_fs_extra.default.mkdirp(import_path2.default.dirname(filePath))
|
|
120168
120023
|
];
|
|
120169
120024
|
case 1:
|
|
120170
|
-
resourceValue = _state.sent();
|
|
120171
|
-
resourceFileExt = import_path2.default.extname(resource.filePath);
|
|
120172
|
-
if (!imageExtNameList.includes(resourceFileExt))
|
|
120173
|
-
return [
|
|
120174
|
-
3,
|
|
120175
|
-
3
|
|
120176
|
-
];
|
|
120177
|
-
return [
|
|
120178
|
-
4,
|
|
120179
|
-
_this.generatorCore.output.fs(target, resourceValue.content, {
|
|
120180
|
-
encoding: "binary"
|
|
120181
|
-
})
|
|
120182
|
-
];
|
|
120183
|
-
case 2:
|
|
120184
120025
|
_state.sent();
|
|
120185
|
-
return [
|
|
120186
|
-
3,
|
|
120187
|
-
5
|
|
120188
|
-
];
|
|
120189
|
-
case 3:
|
|
120190
120026
|
return [
|
|
120191
120027
|
4,
|
|
120192
|
-
|
|
120193
|
-
encoding: "utf-8"
|
|
120194
|
-
})
|
|
120028
|
+
import_fs_extra.default.copyFile(resource.filePath, filePath)
|
|
120195
120029
|
];
|
|
120196
|
-
case
|
|
120030
|
+
case 2:
|
|
120197
120031
|
_state.sent();
|
|
120198
|
-
_state.label = 5;
|
|
120199
|
-
case 5:
|
|
120200
120032
|
return [
|
|
120201
120033
|
2
|
|
120202
120034
|
];
|
|
@@ -120259,7 +120091,7 @@ var FsAPI = /* @__PURE__ */ function() {
|
|
|
120259
120091
|
return FsAPI2;
|
|
120260
120092
|
}();
|
|
120261
120093
|
|
|
120262
|
-
// ../../../../node_modules/.pnpm/@formily+shared@2.2.
|
|
120094
|
+
// ../../../../node_modules/.pnpm/@formily+shared@2.2.24/node_modules/@formily/shared/esm/checkers.js
|
|
120263
120095
|
var toString = Object.prototype.toString;
|
|
120264
120096
|
var isType = function(type) {
|
|
120265
120097
|
return function(obj) {
|
|
@@ -120285,7 +120117,7 @@ var isObj = function(val) {
|
|
|
120285
120117
|
};
|
|
120286
120118
|
var isRegExp = isType("RegExp");
|
|
120287
120119
|
|
|
120288
|
-
// ../../../../node_modules/.pnpm/@formily+shared@2.2.
|
|
120120
|
+
// ../../../../node_modules/.pnpm/@formily+shared@2.2.24/node_modules/@formily/shared/esm/array.js
|
|
120289
120121
|
var toArr = function(val) {
|
|
120290
120122
|
return isArr(val) ? val : val ? [val] : [];
|
|
120291
120123
|
};
|
|
@@ -120336,7 +120168,7 @@ function reduce(val, iterator, accumulator, revert) {
|
|
|
120336
120168
|
return result;
|
|
120337
120169
|
}
|
|
120338
120170
|
|
|
120339
|
-
// ../../../../node_modules/.pnpm/@formily+shared@2.2.
|
|
120171
|
+
// ../../../../node_modules/.pnpm/@formily+shared@2.2.24/node_modules/@formily/shared/esm/global.js
|
|
120340
120172
|
function globalSelf() {
|
|
120341
120173
|
try {
|
|
120342
120174
|
if (typeof self !== "undefined") {
|
|
@@ -120360,7 +120192,7 @@ function globalSelf() {
|
|
|
120360
120192
|
}
|
|
120361
120193
|
var globalThisPolyfill = globalSelf();
|
|
120362
120194
|
|
|
120363
|
-
// ../../../../node_modules/.pnpm/@formily+shared@2.2.
|
|
120195
|
+
// ../../../../node_modules/.pnpm/@formily+shared@2.2.24/node_modules/@formily/shared/esm/instanceof.js
|
|
120364
120196
|
var instOf = function(value, cls) {
|
|
120365
120197
|
if (isFn(cls))
|
|
120366
120198
|
return value instanceof cls;
|
|
@@ -120369,7 +120201,7 @@ var instOf = function(value, cls) {
|
|
|
120369
120201
|
return false;
|
|
120370
120202
|
};
|
|
120371
120203
|
|
|
120372
|
-
// ../../../../node_modules/.pnpm/@formily+shared@2.2.
|
|
120204
|
+
// ../../../../node_modules/.pnpm/@formily+shared@2.2.24/node_modules/@formily/shared/esm/compare.js
|
|
120373
120205
|
var isArray = isArr;
|
|
120374
120206
|
var keyList = Object.keys;
|
|
120375
120207
|
var hasProp = Object.prototype.hasOwnProperty;
|
|
@@ -120476,7 +120308,7 @@ var isEqual = function exportedEqual(a, b) {
|
|
|
120476
120308
|
}
|
|
120477
120309
|
};
|
|
120478
120310
|
|
|
120479
|
-
// ../../../../node_modules/.pnpm/@formily+shared@2.2.
|
|
120311
|
+
// ../../../../node_modules/.pnpm/@formily+shared@2.2.24/node_modules/@formily/shared/esm/clone.js
|
|
120480
120312
|
var clone = function(values) {
|
|
120481
120313
|
if (Array.isArray(values)) {
|
|
120482
120314
|
var res_1 = [];
|
|
@@ -120512,7 +120344,7 @@ var clone = function(values) {
|
|
|
120512
120344
|
}
|
|
120513
120345
|
};
|
|
120514
120346
|
|
|
120515
|
-
// ../../../../node_modules/.pnpm/@formily+shared@2.2.
|
|
120347
|
+
// ../../../../node_modules/.pnpm/@formily+shared@2.2.24/node_modules/@formily/shared/esm/isEmpty.js
|
|
120516
120348
|
var has = Object.prototype.hasOwnProperty;
|
|
120517
120349
|
var toString2 = Object.prototype.toString;
|
|
120518
120350
|
var isUndef = function(val) {
|
|
@@ -120640,7 +120472,7 @@ function pascalCase(input, options) {
|
|
|
120640
120472
|
return noCase(input, __assign({ delimiter: "", transform: pascalCaseTransform }, options));
|
|
120641
120473
|
}
|
|
120642
120474
|
|
|
120643
|
-
// ../../../../node_modules/.pnpm/@formily+shared@2.2.
|
|
120475
|
+
// ../../../../node_modules/.pnpm/@formily+shared@2.2.24/node_modules/@formily/shared/esm/string.js
|
|
120644
120476
|
var ansiRegex = function() {
|
|
120645
120477
|
var pattern = [
|
|
120646
120478
|
"[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[a-zA-Z\\d]*)*)?\\u0007)",
|
|
@@ -120659,7 +120491,7 @@ var stringLength = function(input) {
|
|
|
120659
120491
|
return stripAnsi(input).replace(astralRegex(), " ").length;
|
|
120660
120492
|
};
|
|
120661
120493
|
|
|
120662
|
-
// ../../../../node_modules/.pnpm/@formily+path@2.2.
|
|
120494
|
+
// ../../../../node_modules/.pnpm/@formily+path@2.2.24/node_modules/@formily/path/esm/contexts.js
|
|
120663
120495
|
var __assign2 = function() {
|
|
120664
120496
|
__assign2 = Object.assign || function(t) {
|
|
120665
120497
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -120682,7 +120514,7 @@ var parenContext = ContextType("()");
|
|
|
120682
120514
|
var braceContext = ContextType("{}");
|
|
120683
120515
|
var destructorContext = ContextType("{x}");
|
|
120684
120516
|
|
|
120685
|
-
// ../../../../node_modules/.pnpm/@formily+path@2.2.
|
|
120517
|
+
// ../../../../node_modules/.pnpm/@formily+path@2.2.24/node_modules/@formily/path/esm/tokens.js
|
|
120686
120518
|
var __assign3 = function() {
|
|
120687
120519
|
__assign3 = Object.assign || function(t) {
|
|
120688
120520
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -120850,7 +120682,7 @@ var expandTok = TokenType("expandTok", {
|
|
|
120850
120682
|
});
|
|
120851
120683
|
var eofTok = TokenType("eof");
|
|
120852
120684
|
|
|
120853
|
-
// ../../../../node_modules/.pnpm/@formily+path@2.2.
|
|
120685
|
+
// ../../../../node_modules/.pnpm/@formily+path@2.2.24/node_modules/@formily/path/esm/tokenizer.js
|
|
120854
120686
|
var nonASCIIWhitespace = /[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/;
|
|
120855
120687
|
var fullCharCodeAtPos = function(input, pos) {
|
|
120856
120688
|
if (String.fromCharCode)
|
|
@@ -121102,7 +120934,7 @@ var Tokenizer = (
|
|
|
121102
120934
|
}()
|
|
121103
120935
|
);
|
|
121104
120936
|
|
|
121105
|
-
// ../../../../node_modules/.pnpm/@formily+path@2.2.
|
|
120937
|
+
// ../../../../node_modules/.pnpm/@formily+path@2.2.24/node_modules/@formily/path/esm/types.js
|
|
121106
120938
|
var isType2 = function(type) {
|
|
121107
120939
|
return function(obj) {
|
|
121108
120940
|
return obj && obj.type === type;
|
|
@@ -121120,7 +120952,7 @@ var isObjectPattern = isType2("ObjectPattern");
|
|
|
121120
120952
|
var isObjectPatternProperty = isType2("ObjectPatternProperty");
|
|
121121
120953
|
var isArrayPattern = isType2("ArrayPattern");
|
|
121122
120954
|
|
|
121123
|
-
// ../../../../node_modules/.pnpm/@formily+path@2.2.
|
|
120955
|
+
// ../../../../node_modules/.pnpm/@formily+path@2.2.24/node_modules/@formily/path/esm/shared.js
|
|
121124
120956
|
var toString3 = Object.prototype.toString;
|
|
121125
120957
|
var isType3 = function(type) {
|
|
121126
120958
|
return function(obj) {
|
|
@@ -121197,7 +121029,7 @@ var isSegmentEqual = function(a, b) {
|
|
|
121197
121029
|
return a === b;
|
|
121198
121030
|
};
|
|
121199
121031
|
|
|
121200
|
-
// ../../../../node_modules/.pnpm/@formily+path@2.2.
|
|
121032
|
+
// ../../../../node_modules/.pnpm/@formily+path@2.2.24/node_modules/@formily/path/esm/destructor.js
|
|
121201
121033
|
var DestructorCache = /* @__PURE__ */ new Map();
|
|
121202
121034
|
var isValid2 = function(val) {
|
|
121203
121035
|
return val !== void 0 && val !== null;
|
|
@@ -121315,7 +121147,7 @@ var existInByDestructor = function(source, rules, start, mutators) {
|
|
|
121315
121147
|
});
|
|
121316
121148
|
};
|
|
121317
121149
|
|
|
121318
|
-
// ../../../../node_modules/.pnpm/@formily+path@2.2.
|
|
121150
|
+
// ../../../../node_modules/.pnpm/@formily+path@2.2.24/node_modules/@formily/path/esm/parser.js
|
|
121319
121151
|
var __extends = function() {
|
|
121320
121152
|
var extendStatics = function(d, b) {
|
|
121321
121153
|
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
|
@@ -121706,7 +121538,7 @@ var Parser = (
|
|
|
121706
121538
|
}(Tokenizer)
|
|
121707
121539
|
);
|
|
121708
121540
|
|
|
121709
|
-
// ../../../../node_modules/.pnpm/@formily+path@2.2.
|
|
121541
|
+
// ../../../../node_modules/.pnpm/@formily+path@2.2.24/node_modules/@formily/path/esm/matcher.js
|
|
121710
121542
|
var Matcher = (
|
|
121711
121543
|
/** @class */
|
|
121712
121544
|
function() {
|
|
@@ -121888,7 +121720,7 @@ var Matcher = (
|
|
|
121888
121720
|
}()
|
|
121889
121721
|
);
|
|
121890
121722
|
|
|
121891
|
-
// ../../../../node_modules/.pnpm/@formily+path@2.2.
|
|
121723
|
+
// ../../../../node_modules/.pnpm/@formily+path@2.2.24/node_modules/@formily/path/esm/index.js
|
|
121892
121724
|
var __read = function(o, n) {
|
|
121893
121725
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
121894
121726
|
if (!m)
|
|
@@ -122442,7 +122274,7 @@ var Path = (
|
|
|
122442
122274
|
}()
|
|
122443
122275
|
);
|
|
122444
122276
|
|
|
122445
|
-
// ../../../../node_modules/.pnpm/@formily+shared@2.2.
|
|
122277
|
+
// ../../../../node_modules/.pnpm/@formily+shared@2.2.24/node_modules/@formily/shared/esm/subscribable.js
|
|
122446
122278
|
var Subscribable = (
|
|
122447
122279
|
/** @class */
|
|
122448
122280
|
function() {
|
|
@@ -122494,7 +122326,7 @@ var Subscribable = (
|
|
|
122494
122326
|
}()
|
|
122495
122327
|
);
|
|
122496
122328
|
|
|
122497
|
-
// ../../../../node_modules/.pnpm/@formily+shared@2.2.
|
|
122329
|
+
// ../../../../node_modules/.pnpm/@formily+shared@2.2.24/node_modules/@formily/shared/esm/merge.js
|
|
122498
122330
|
function defaultIsMergeableObject(value) {
|
|
122499
122331
|
return isNonNullObject(value) && !isSpecial(value);
|
|
122500
122332
|
}
|
|
@@ -122687,7 +122519,7 @@ var lazyMerge = function(target) {
|
|
|
122687
122519
|
};
|
|
122688
122520
|
var merge = deepmerge;
|
|
122689
122521
|
|
|
122690
|
-
// ../../../../node_modules/.pnpm/@formily+shared@2.2.
|
|
122522
|
+
// ../../../../node_modules/.pnpm/@formily+shared@2.2.24/node_modules/@formily/shared/esm/uid.js
|
|
122691
122523
|
var IDX = 36;
|
|
122692
122524
|
var HEX = "";
|
|
122693
122525
|
while (IDX--)
|
|
@@ -122699,7 +122531,7 @@ function uid(len) {
|
|
|
122699
122531
|
return str;
|
|
122700
122532
|
}
|
|
122701
122533
|
|
|
122702
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
122534
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/checkers.js
|
|
122703
122535
|
var toString4 = Object.prototype.toString;
|
|
122704
122536
|
var isMap = function(val) {
|
|
122705
122537
|
return val && val instanceof Map;
|
|
@@ -122730,7 +122562,7 @@ var isNormalType = function(target) {
|
|
|
122730
122562
|
return isPlainObj3(target) || isArr3(target);
|
|
122731
122563
|
};
|
|
122732
122564
|
|
|
122733
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
122565
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/array.js
|
|
122734
122566
|
var toArray = function(value) {
|
|
122735
122567
|
return Array.isArray(value) ? value : value !== void 0 && value !== null ? [value] : [];
|
|
122736
122568
|
};
|
|
@@ -122794,7 +122626,7 @@ var ArraySet = (
|
|
|
122794
122626
|
}()
|
|
122795
122627
|
);
|
|
122796
122628
|
|
|
122797
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
122629
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/environment.js
|
|
122798
122630
|
var ProxyRaw = /* @__PURE__ */ new WeakMap();
|
|
122799
122631
|
var RawProxy = /* @__PURE__ */ new WeakMap();
|
|
122800
122632
|
var RawShallowProxy = /* @__PURE__ */ new WeakMap();
|
|
@@ -122813,7 +122645,7 @@ var MakeObModelSymbol = Symbol("MakeObModelSymbol");
|
|
|
122813
122645
|
var ObModelSymbol = Symbol("ObModelSymbol");
|
|
122814
122646
|
var ObModelNodeSymbol = Symbol("ObModelNodeSymbol");
|
|
122815
122647
|
|
|
122816
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
122648
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/reaction.js
|
|
122817
122649
|
var ITERATION_KEY = Symbol("iteration key");
|
|
122818
122650
|
var addRawReactionsMap = function(target, key, reaction2) {
|
|
122819
122651
|
var reactionsMap = RawReactionsMap.get(target);
|
|
@@ -123043,7 +122875,7 @@ var disposeEffects = function(reaction2) {
|
|
|
123043
122875
|
}
|
|
123044
122876
|
};
|
|
123045
122877
|
|
|
123046
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
122878
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/tree.js
|
|
123047
122879
|
var DataChange = (
|
|
123048
122880
|
/** @class */
|
|
123049
122881
|
function() {
|
|
@@ -123139,7 +122971,7 @@ var buildDataTree = function(target, key, value) {
|
|
|
123139
122971
|
setDataNode(raw2, new DataNode(target, key, value));
|
|
123140
122972
|
};
|
|
123141
122973
|
|
|
123142
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
122974
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/externals.js
|
|
123143
122975
|
var RAW_TYPE = Symbol("RAW_TYPE");
|
|
123144
122976
|
var OBSERVABLE_TYPE = Symbol("OBSERVABLE_TYPE");
|
|
123145
122977
|
var hasOwnProperty2 = Object.prototype.hasOwnProperty;
|
|
@@ -123241,7 +123073,7 @@ var hasCollected = function(callback) {
|
|
|
123241
123073
|
return DependencyCollected.value;
|
|
123242
123074
|
};
|
|
123243
123075
|
|
|
123244
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
123076
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/handlers.js
|
|
123245
123077
|
var __read2 = function(o, n) {
|
|
123246
123078
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
123247
123079
|
if (!m)
|
|
@@ -123497,7 +123329,7 @@ var baseHandlers = {
|
|
|
123497
123329
|
}
|
|
123498
123330
|
};
|
|
123499
123331
|
|
|
123500
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
123332
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/internals.js
|
|
123501
123333
|
var createNormalProxy = function(target, shallow2) {
|
|
123502
123334
|
var proxy = new Proxy(target, baseHandlers);
|
|
123503
123335
|
ProxyRaw.set(proxy, target);
|
|
@@ -123612,7 +123444,7 @@ var createBoundaryAnnotation = function(start, end) {
|
|
|
123612
123444
|
return boundary;
|
|
123613
123445
|
};
|
|
123614
123446
|
|
|
123615
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
123447
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/batch.js
|
|
123616
123448
|
var batch = createBoundaryAnnotation(batchStart, batchEnd);
|
|
123617
123449
|
batch.scope = createBoundaryAnnotation(batchScopeStart, batchScopeEnd);
|
|
123618
123450
|
batch.endpoint = function(callback) {
|
|
@@ -123625,7 +123457,7 @@ batch.endpoint = function(callback) {
|
|
|
123625
123457
|
}
|
|
123626
123458
|
};
|
|
123627
123459
|
|
|
123628
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
123460
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/action.js
|
|
123629
123461
|
var action = createBoundaryAnnotation(function() {
|
|
123630
123462
|
batchStart();
|
|
123631
123463
|
untrackStart();
|
|
@@ -123641,10 +123473,10 @@ action.scope = createBoundaryAnnotation(function() {
|
|
|
123641
123473
|
batchScopeEnd();
|
|
123642
123474
|
});
|
|
123643
123475
|
|
|
123644
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
123476
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/untracked.js
|
|
123645
123477
|
var untracked = createBoundaryFunction(untrackStart, untrackEnd);
|
|
123646
123478
|
|
|
123647
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
123479
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/annotations/observable.js
|
|
123648
123480
|
var observable = createAnnotation(function(_a2) {
|
|
123649
123481
|
var target = _a2.target, key = _a2.key, value = _a2.value;
|
|
123650
123482
|
var store = {
|
|
@@ -123684,7 +123516,7 @@ var observable = createAnnotation(function(_a2) {
|
|
|
123684
123516
|
return store.value;
|
|
123685
123517
|
});
|
|
123686
123518
|
|
|
123687
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
123519
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/annotations/box.js
|
|
123688
123520
|
var box = createAnnotation(function(_a2) {
|
|
123689
123521
|
var target = _a2.target, key = _a2.key, value = _a2.value;
|
|
123690
123522
|
var store = {
|
|
@@ -123730,7 +123562,7 @@ var box = createAnnotation(function(_a2) {
|
|
|
123730
123562
|
return proxy;
|
|
123731
123563
|
});
|
|
123732
123564
|
|
|
123733
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
123565
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/annotations/ref.js
|
|
123734
123566
|
var ref = createAnnotation(function(_a2) {
|
|
123735
123567
|
var target = _a2.target, key = _a2.key, value = _a2.value;
|
|
123736
123568
|
var store = {
|
|
@@ -123778,7 +123610,7 @@ var ref = createAnnotation(function(_a2) {
|
|
|
123778
123610
|
return proxy;
|
|
123779
123611
|
});
|
|
123780
123612
|
|
|
123781
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
123613
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/annotations/shallow.js
|
|
123782
123614
|
var shallow = createAnnotation(function(_a2) {
|
|
123783
123615
|
var target = _a2.target, key = _a2.key, value = _a2.value;
|
|
123784
123616
|
var store = {
|
|
@@ -123818,7 +123650,7 @@ var shallow = createAnnotation(function(_a2) {
|
|
|
123818
123650
|
return store.value;
|
|
123819
123651
|
});
|
|
123820
123652
|
|
|
123821
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
123653
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/annotations/computed.js
|
|
123822
123654
|
var getDescriptor = Object.getOwnPropertyDescriptor;
|
|
123823
123655
|
var getProto = Object.getPrototypeOf;
|
|
123824
123656
|
var ClassDescriptorSymbol = Symbol("ClassDescriptorSymbol");
|
|
@@ -123939,7 +123771,7 @@ var computed = createAnnotation(function(_a2) {
|
|
|
123939
123771
|
return proxy;
|
|
123940
123772
|
});
|
|
123941
123773
|
|
|
123942
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
123774
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/observable.js
|
|
123943
123775
|
function observable2(target) {
|
|
123944
123776
|
return createObservable(null, null, target);
|
|
123945
123777
|
}
|
|
@@ -123950,7 +123782,7 @@ observable2.shallow = shallow;
|
|
|
123950
123782
|
observable2.computed = computed;
|
|
123951
123783
|
observable2[MakeObModelSymbol] = observable;
|
|
123952
123784
|
|
|
123953
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
123785
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/model.js
|
|
123954
123786
|
function define2(target, annotations) {
|
|
123955
123787
|
if (isObservable(target))
|
|
123956
123788
|
return target;
|
|
@@ -123970,7 +123802,7 @@ function define2(target, annotations) {
|
|
|
123970
123802
|
return target;
|
|
123971
123803
|
}
|
|
123972
123804
|
|
|
123973
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
123805
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/autorun.js
|
|
123974
123806
|
var __assign4 = function() {
|
|
123975
123807
|
__assign4 = Object.assign || function(t) {
|
|
123976
123808
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -124116,7 +123948,7 @@ var reaction = function(tracker, subscriber, options) {
|
|
|
124116
123948
|
};
|
|
124117
123949
|
};
|
|
124118
123950
|
|
|
124119
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
123951
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/tracker.js
|
|
124120
123952
|
var Tracker = (
|
|
124121
123953
|
/** @class */
|
|
124122
123954
|
function() {
|
|
@@ -124161,7 +123993,7 @@ var Tracker = (
|
|
|
124161
123993
|
}()
|
|
124162
123994
|
);
|
|
124163
123995
|
|
|
124164
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
123996
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/observe.js
|
|
124165
123997
|
var observe = function(target, observer, deep) {
|
|
124166
123998
|
if (deep === void 0) {
|
|
124167
123999
|
deep = true;
|
|
@@ -124194,7 +124026,7 @@ var observe = function(target, observer, deep) {
|
|
|
124194
124026
|
return addListener(target);
|
|
124195
124027
|
};
|
|
124196
124028
|
|
|
124197
|
-
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.
|
|
124029
|
+
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.0.4/node_modules/@formily/json-schema/esm/shared.js
|
|
124198
124030
|
var REVA_ACTIONS_KEY = Symbol.for("__REVA_ACTIONS");
|
|
124199
124031
|
var SchemaNestedMap = {
|
|
124200
124032
|
parent: true,
|
|
@@ -124381,7 +124213,7 @@ var patchStateFormSchema = function(targetState, pattern, compiled) {
|
|
|
124381
124213
|
});
|
|
124382
124214
|
};
|
|
124383
124215
|
|
|
124384
|
-
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.
|
|
124216
|
+
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.0.4/node_modules/@formily/json-schema/esm/compiler.js
|
|
124385
124217
|
var ExpRE = /^\s*\{\{([\s\S]*)\}\}\s*$/;
|
|
124386
124218
|
var Registry = {
|
|
124387
124219
|
silent: false,
|
|
@@ -124485,7 +124317,7 @@ var patchSchemaCompile = function(targetState, sourceSchema, scope, demand) {
|
|
|
124485
124317
|
});
|
|
124486
124318
|
};
|
|
124487
124319
|
|
|
124488
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
|
124320
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/models/LifeCycle.js
|
|
124489
124321
|
var LifeCycle = (
|
|
124490
124322
|
/** @class */
|
|
124491
124323
|
function() {
|
|
@@ -124531,7 +124363,7 @@ var LifeCycle = (
|
|
|
124531
124363
|
}()
|
|
124532
124364
|
);
|
|
124533
124365
|
|
|
124534
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
|
124366
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/models/Heart.js
|
|
124535
124367
|
var __extends2 = function() {
|
|
124536
124368
|
var extendStatics = function(d, b) {
|
|
124537
124369
|
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
|
@@ -124627,7 +124459,7 @@ var Heart = (
|
|
|
124627
124459
|
}(Subscribable)
|
|
124628
124460
|
);
|
|
124629
124461
|
|
|
124630
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
|
124462
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/shared/checkers.js
|
|
124631
124463
|
var isForm = function(node) {
|
|
124632
124464
|
return node instanceof Form;
|
|
124633
124465
|
};
|
|
@@ -124673,7 +124505,7 @@ var isQuery = function(query2) {
|
|
|
124673
124505
|
return query2 && query2 instanceof Query;
|
|
124674
124506
|
};
|
|
124675
124507
|
|
|
124676
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
|
124508
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/models/Graph.js
|
|
124677
124509
|
var Graph = (
|
|
124678
124510
|
/** @class */
|
|
124679
124511
|
function() {
|
|
@@ -124725,12 +124557,12 @@ var Graph = (
|
|
|
124725
124557
|
}()
|
|
124726
124558
|
);
|
|
124727
124559
|
|
|
124728
|
-
// ../../../../node_modules/.pnpm/@formily+validator@2.2.
|
|
124560
|
+
// ../../../../node_modules/.pnpm/@formily+validator@2.2.24/node_modules/@formily/validator/esm/types.js
|
|
124729
124561
|
var isValidateResult = function(obj) {
|
|
124730
124562
|
return !!obj["type"] && !!obj["message"];
|
|
124731
124563
|
};
|
|
124732
124564
|
|
|
124733
|
-
// ../../../../node_modules/.pnpm/@formily+validator@2.2.
|
|
124565
|
+
// ../../../../node_modules/.pnpm/@formily+validator@2.2.24/node_modules/@formily/validator/esm/registry.js
|
|
124734
124566
|
var getIn2 = Path.getIn;
|
|
124735
124567
|
var self2 = globalThisPolyfill;
|
|
124736
124568
|
var defaultLanguage = "en";
|
|
@@ -124801,7 +124633,7 @@ var registerValidateFormats = function(formats) {
|
|
|
124801
124633
|
});
|
|
124802
124634
|
};
|
|
124803
124635
|
|
|
124804
|
-
// ../../../../node_modules/.pnpm/@formily+validator@2.2.
|
|
124636
|
+
// ../../../../node_modules/.pnpm/@formily+validator@2.2.24/node_modules/@formily/validator/esm/template.js
|
|
124805
124637
|
var render = function(result, rules) {
|
|
124806
124638
|
var message = result.message;
|
|
124807
124639
|
if (isStr(result.message)) {
|
|
@@ -124816,7 +124648,7 @@ var render = function(result, rules) {
|
|
|
124816
124648
|
return result;
|
|
124817
124649
|
};
|
|
124818
124650
|
|
|
124819
|
-
// ../../../../node_modules/.pnpm/@formily+validator@2.2.
|
|
124651
|
+
// ../../../../node_modules/.pnpm/@formily+validator@2.2.24/node_modules/@formily/validator/esm/parser.js
|
|
124820
124652
|
var __assign5 = function() {
|
|
124821
124653
|
__assign5 = Object.assign || function(t) {
|
|
124822
124654
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -125067,7 +124899,7 @@ var parseValidator = function(validator, options) {
|
|
|
125067
124899
|
}, []);
|
|
125068
124900
|
};
|
|
125069
124901
|
|
|
125070
|
-
// ../../../../node_modules/.pnpm/@formily+validator@2.2.
|
|
124902
|
+
// ../../../../node_modules/.pnpm/@formily+validator@2.2.24/node_modules/@formily/validator/esm/locale.js
|
|
125071
124903
|
var locale_default = {
|
|
125072
124904
|
en: {
|
|
125073
124905
|
pattern: "This field is invalid",
|
|
@@ -125287,7 +125119,7 @@ var locale_default = {
|
|
|
125287
125119
|
}
|
|
125288
125120
|
};
|
|
125289
125121
|
|
|
125290
|
-
// ../../../../node_modules/.pnpm/@formily+validator@2.2.
|
|
125122
|
+
// ../../../../node_modules/.pnpm/@formily+validator@2.2.24/node_modules/@formily/validator/esm/formats.js
|
|
125291
125123
|
var formats_default = {
|
|
125292
125124
|
url: new RegExp(
|
|
125293
125125
|
// protocol identifier
|
|
@@ -125307,7 +125139,7 @@ var formats_default = {
|
|
|
125307
125139
|
zip: /^[0-9]{6}$/
|
|
125308
125140
|
};
|
|
125309
125141
|
|
|
125310
|
-
// ../../../../node_modules/.pnpm/@formily+validator@2.2.
|
|
125142
|
+
// ../../../../node_modules/.pnpm/@formily+validator@2.2.24/node_modules/@formily/validator/esm/rules.js
|
|
125311
125143
|
var __assign6 = function() {
|
|
125312
125144
|
__assign6 = Object.assign || function(t) {
|
|
125313
125145
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -125622,7 +125454,7 @@ extendSameRules(RULES, {
|
|
|
125622
125454
|
});
|
|
125623
125455
|
var rules_default = RULES;
|
|
125624
125456
|
|
|
125625
|
-
// ../../../../node_modules/.pnpm/@formily+validator@2.2.
|
|
125457
|
+
// ../../../../node_modules/.pnpm/@formily+validator@2.2.24/node_modules/@formily/validator/esm/validator.js
|
|
125626
125458
|
var __awaiter3 = function(thisArg, _arguments, P, generator) {
|
|
125627
125459
|
function adopt(value) {
|
|
125628
125460
|
return value instanceof P ? value : new P(function(resolve) {
|
|
@@ -125767,7 +125599,7 @@ var validate = function(value, validator, options) {
|
|
|
125767
125599
|
});
|
|
125768
125600
|
};
|
|
125769
125601
|
|
|
125770
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
|
125602
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/types.js
|
|
125771
125603
|
var LifeCycleTypes;
|
|
125772
125604
|
(function(LifeCycleTypes2) {
|
|
125773
125605
|
LifeCycleTypes2["ON_FORM_INIT"] = "onFormInit";
|
|
@@ -125819,7 +125651,7 @@ var LifeCycleTypes;
|
|
|
125819
125651
|
LifeCycleTypes2["ON_FIELD_UNMOUNT"] = "onFieldUnmount";
|
|
125820
125652
|
})(LifeCycleTypes || (LifeCycleTypes = {}));
|
|
125821
125653
|
|
|
125822
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
|
125654
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/shared/constants.js
|
|
125823
125655
|
var ReservedProperties = {
|
|
125824
125656
|
form: true,
|
|
125825
125657
|
parent: true,
|
|
@@ -125871,7 +125703,7 @@ var GlobalState = {
|
|
|
125871
125703
|
};
|
|
125872
125704
|
var NumberIndexReg = /^\.(\d+)/;
|
|
125873
125705
|
|
|
125874
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
|
125706
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/shared/internals.js
|
|
125875
125707
|
var __assign7 = function() {
|
|
125876
125708
|
__assign7 = Object.assign || function(t) {
|
|
125877
125709
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -126978,7 +126810,7 @@ var getObjectParent = function(field) {
|
|
|
126978
126810
|
}
|
|
126979
126811
|
};
|
|
126980
126812
|
|
|
126981
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
|
126813
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/models/Query.js
|
|
126982
126814
|
var output = function(field, taker) {
|
|
126983
126815
|
if (!field)
|
|
126984
126816
|
return;
|
|
@@ -127061,7 +126893,7 @@ var Query = (
|
|
|
127061
126893
|
}()
|
|
127062
126894
|
);
|
|
127063
126895
|
|
|
127064
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
|
126896
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/models/BaseField.js
|
|
127065
126897
|
var __read4 = function(o, n) {
|
|
127066
126898
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
127067
126899
|
if (!m)
|
|
@@ -127441,7 +127273,7 @@ var BaseField = (
|
|
|
127441
127273
|
}()
|
|
127442
127274
|
);
|
|
127443
127275
|
|
|
127444
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
|
127276
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/models/Field.js
|
|
127445
127277
|
var __extends3 = function() {
|
|
127446
127278
|
var extendStatics = function(d, b) {
|
|
127447
127279
|
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
|
@@ -128082,7 +127914,7 @@ var Field = (
|
|
|
128082
127914
|
}(BaseField)
|
|
128083
127915
|
);
|
|
128084
127916
|
|
|
128085
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
|
127917
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/shared/effective.js
|
|
128086
127918
|
var __read5 = function(o, n) {
|
|
128087
127919
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
128088
127920
|
if (!m)
|
|
@@ -128176,7 +128008,7 @@ var runEffects = function(context) {
|
|
|
128176
128008
|
return GlobalState.lifecycles;
|
|
128177
128009
|
};
|
|
128178
128010
|
|
|
128179
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
|
128011
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/models/ArrayField.js
|
|
128180
128012
|
var __extends4 = function() {
|
|
128181
128013
|
var extendStatics = function(d, b) {
|
|
128182
128014
|
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
|
@@ -128366,7 +128198,7 @@ var ArrayField = (
|
|
|
128366
128198
|
}(Field)
|
|
128367
128199
|
);
|
|
128368
128200
|
|
|
128369
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
|
128201
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/models/ObjectField.js
|
|
128370
128202
|
var __extends5 = function() {
|
|
128371
128203
|
var extendStatics = function(d, b) {
|
|
128372
128204
|
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
|
@@ -128427,7 +128259,7 @@ var ObjectField = (
|
|
|
128427
128259
|
}(Field)
|
|
128428
128260
|
);
|
|
128429
128261
|
|
|
128430
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
|
128262
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/models/VoidField.js
|
|
128431
128263
|
var __extends6 = function() {
|
|
128432
128264
|
var extendStatics = function(d, b) {
|
|
128433
128265
|
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
|
@@ -128542,7 +128374,7 @@ var VoidField = (
|
|
|
128542
128374
|
}(BaseField)
|
|
128543
128375
|
);
|
|
128544
128376
|
|
|
128545
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
|
128377
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/models/Form.js
|
|
128546
128378
|
var __assign8 = function() {
|
|
128547
128379
|
__assign8 = Object.assign || function(t) {
|
|
128548
128380
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -129070,7 +128902,7 @@ var Form = (
|
|
|
129070
128902
|
}()
|
|
129071
128903
|
);
|
|
129072
128904
|
|
|
129073
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
|
128905
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/effects/onFormEffects.js
|
|
129074
128906
|
function createFormEffect(type) {
|
|
129075
128907
|
return createEffectHook(type, function(form) {
|
|
129076
128908
|
return function(callback) {
|
|
@@ -129103,7 +128935,7 @@ var onFormValidateEnd = createFormEffect(LifeCycleTypes.ON_FORM_VALIDATE_END);
|
|
|
129103
128935
|
var onFormGraphChange = createFormEffect(LifeCycleTypes.ON_FORM_GRAPH_CHANGE);
|
|
129104
128936
|
var onFormLoading = createFormEffect(LifeCycleTypes.ON_FORM_LOADING);
|
|
129105
128937
|
|
|
129106
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
|
128938
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/effects/onFieldEffects.js
|
|
129107
128939
|
function createFieldEffect(type) {
|
|
129108
128940
|
return createEffectHook(type, function(field, form) {
|
|
129109
128941
|
return function(pattern, callback) {
|
|
@@ -129148,7 +128980,7 @@ function onFieldInit(pattern, callback) {
|
|
|
129148
128980
|
}
|
|
129149
128981
|
}
|
|
129150
128982
|
|
|
129151
|
-
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.
|
|
128983
|
+
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.0.4/node_modules/@formily/json-schema/esm/transformer.js
|
|
129152
128984
|
var __read7 = function(o, n) {
|
|
129153
128985
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
129154
128986
|
if (!m)
|
|
@@ -129373,7 +129205,7 @@ var transformFieldProps = function(schema, options) {
|
|
|
129373
129205
|
};
|
|
129374
129206
|
};
|
|
129375
129207
|
|
|
129376
|
-
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.
|
|
129208
|
+
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.0.4/node_modules/@formily/json-schema/esm/patches.js
|
|
129377
129209
|
var __assign9 = function() {
|
|
129378
129210
|
__assign9 = Object.assign || function(t) {
|
|
129379
129211
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -129422,7 +129254,7 @@ var enablePolyfills = function(versions) {
|
|
|
129422
129254
|
}
|
|
129423
129255
|
};
|
|
129424
129256
|
|
|
129425
|
-
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.
|
|
129257
|
+
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.0.4/node_modules/@formily/json-schema/esm/polyfills/SPECIFICATION_1_0.js
|
|
129426
129258
|
var __assign10 = function() {
|
|
129427
129259
|
__assign10 = Object.assign || function(t) {
|
|
129428
129260
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -129579,7 +129411,7 @@ var registerTypeDefaultComponents = function(maps) {
|
|
|
129579
129411
|
Object.assign(TYPE_DEFAULT_COMPONENTS, maps);
|
|
129580
129412
|
};
|
|
129581
129413
|
|
|
129582
|
-
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.
|
|
129414
|
+
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.0.4/node_modules/@formily/json-schema/esm/schema.js
|
|
129583
129415
|
var Schema = (
|
|
129584
129416
|
/** @class */
|
|
129585
129417
|
function() {
|
|
@@ -129815,10 +129647,10 @@ var Schema = (
|
|
|
129815
129647
|
}()
|
|
129816
129648
|
);
|
|
129817
129649
|
|
|
129818
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.2.
|
|
129650
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.2.3_bho3aw2byq52erp6eaxmeboo7i/node_modules/@modern-js/codesmith-formily/dist/esm/prompt.js
|
|
129819
129651
|
var import_inquirer = __toESM(require_inquirer());
|
|
129820
129652
|
|
|
129821
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.2.
|
|
129653
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.2.3_bho3aw2byq52erp6eaxmeboo7i/node_modules/@modern-js/codesmith-formily/dist/esm/transform.js
|
|
129822
129654
|
var import_lodash2 = __toESM(require_lodash2());
|
|
129823
129655
|
function asyncGeneratorStep9(gen, resolve, reject, _next, _throw, key, arg) {
|
|
129824
129656
|
try {
|
|
@@ -130165,7 +129997,7 @@ function transformForm(schema) {
|
|
|
130165
129997
|
return getQuestionFromSchema(schema, configValue, validateMap, initValue);
|
|
130166
129998
|
}
|
|
130167
129999
|
|
|
130168
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.2.
|
|
130000
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.2.3_bho3aw2byq52erp6eaxmeboo7i/node_modules/@modern-js/codesmith-formily/dist/esm/prompt.js
|
|
130169
130001
|
function asyncGeneratorStep10(gen, resolve, reject, _next, _throw, key, arg) {
|
|
130170
130002
|
try {
|
|
130171
130003
|
var info = gen[key](arg);
|
|
@@ -130689,7 +130521,7 @@ function _prompt() {
|
|
|
130689
130521
|
return _prompt.apply(this, arguments);
|
|
130690
130522
|
}
|
|
130691
130523
|
|
|
130692
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.2.
|
|
130524
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.2.3_bho3aw2byq52erp6eaxmeboo7i/node_modules/@modern-js/codesmith-formily/dist/esm/inquirer.js
|
|
130693
130525
|
function asyncGeneratorStep11(gen, resolve, reject, _next, _throw, key, arg) {
|
|
130694
130526
|
try {
|
|
130695
130527
|
var info = gen[key](arg);
|
|
@@ -130929,7 +130761,7 @@ var CLIReader = /* @__PURE__ */ function() {
|
|
|
130929
130761
|
return CLIReader2;
|
|
130930
130762
|
}();
|
|
130931
130763
|
|
|
130932
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.
|
|
130764
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.3_bho3aw2byq52erp6eaxmeboo7i/node_modules/@modern-js/codesmith-api-app/dist/esm/index.js
|
|
130933
130765
|
var import_inquirer2 = __toESM(require_inquirer2());
|
|
130934
130766
|
|
|
130935
130767
|
// ../../../../node_modules/.pnpm/@modern-js+plugin-i18n@2.18.0/node_modules/@modern-js/plugin-i18n/dist/esm-node/index.js
|
|
@@ -131008,7 +130840,7 @@ var I18n = class {
|
|
|
131008
130840
|
}
|
|
131009
130841
|
};
|
|
131010
130842
|
|
|
131011
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.
|
|
130843
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.3_bho3aw2byq52erp6eaxmeboo7i/node_modules/@modern-js/codesmith-api-app/dist/esm/locale/zh.js
|
|
131012
130844
|
var ZH_LOCALE = {
|
|
131013
130845
|
environment: {
|
|
131014
130846
|
node_version: "请升级 Node 版本至 LIS",
|
|
@@ -131035,7 +130867,7 @@ var ZH_LOCALE = {
|
|
|
131035
130867
|
}
|
|
131036
130868
|
};
|
|
131037
130869
|
|
|
131038
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.
|
|
130870
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.3_bho3aw2byq52erp6eaxmeboo7i/node_modules/@modern-js/codesmith-api-app/dist/esm/locale/en.js
|
|
131039
130871
|
var EN_LOCALE = {
|
|
131040
130872
|
environment: {
|
|
131041
130873
|
node_version: "please upgrade node to lts version",
|
|
@@ -131062,14 +130894,14 @@ var EN_LOCALE = {
|
|
|
131062
130894
|
}
|
|
131063
130895
|
};
|
|
131064
130896
|
|
|
131065
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.
|
|
130897
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.3_bho3aw2byq52erp6eaxmeboo7i/node_modules/@modern-js/codesmith-api-app/dist/esm/locale/index.js
|
|
131066
130898
|
var i18n = new I18n();
|
|
131067
130899
|
var localeKeys = i18n.init("zh", {
|
|
131068
130900
|
zh: ZH_LOCALE,
|
|
131069
130901
|
en: EN_LOCALE
|
|
131070
130902
|
});
|
|
131071
130903
|
|
|
131072
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.
|
|
130904
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.3_bho3aw2byq52erp6eaxmeboo7i/node_modules/@modern-js/codesmith-api-app/dist/esm/utils/transform.js
|
|
131073
130905
|
var import_lodash5 = __toESM(require_lodash2());
|
|
131074
130906
|
function asyncGeneratorStep12(gen, resolve, reject, _next, _throw, key, arg) {
|
|
131075
130907
|
try {
|
|
@@ -131278,7 +131110,7 @@ function transformInquirerSchema(questions) {
|
|
|
131278
131110
|
return questions;
|
|
131279
131111
|
}
|
|
131280
131112
|
|
|
131281
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.
|
|
131113
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.3_bho3aw2byq52erp6eaxmeboo7i/node_modules/@modern-js/codesmith-api-app/dist/esm/utils/checkUseNvm.js
|
|
131282
131114
|
var import_path4 = __toESM(require("path"));
|
|
131283
131115
|
function asyncGeneratorStep13(gen, resolve, reject, _next, _throw, key, arg) {
|
|
131284
131116
|
try {
|
|
@@ -131542,7 +131374,7 @@ function _checkUseNvm() {
|
|
|
131542
131374
|
return _checkUseNvm.apply(this, arguments);
|
|
131543
131375
|
}
|
|
131544
131376
|
|
|
131545
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.
|
|
131377
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.3_bho3aw2byq52erp6eaxmeboo7i/node_modules/@modern-js/codesmith-api-app/dist/esm/index.js
|
|
131546
131378
|
function _array_like_to_array(arr, len) {
|
|
131547
131379
|
if (len == null || len > arr.length)
|
|
131548
131380
|
len = arr.length;
|
|
@@ -132123,7 +131955,7 @@ var AppAPI = /* @__PURE__ */ function() {
|
|
|
132123
131955
|
switch (_state2.label) {
|
|
132124
131956
|
case 0:
|
|
132125
131957
|
_this.generatorCore.logger.debug("[renderDir] resourceKey=".concat(resourceKey));
|
|
132126
|
-
target = rename ? rename(resourceKey) : resourceKey.replace("templates/", "").replace(".handlebars", "");
|
|
131958
|
+
target = rename ? rename(resourceKey) : resourceKey.replace("templates/", "").replace(".handlebars", "").replace(".ejs", "");
|
|
132127
131959
|
return [
|
|
132128
131960
|
4,
|
|
132129
131961
|
api.renderTemplate(material.get(resourceKey), target, _object_spread7({}, _this.generatorContext.data || {}, parameters || {}))
|
|
@@ -132472,11 +132304,11 @@ var AppAPI = /* @__PURE__ */ function() {
|
|
|
132472
132304
|
return AppAPI2;
|
|
132473
132305
|
}();
|
|
132474
132306
|
|
|
132475
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.2.
|
|
132307
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.2.3/node_modules/@modern-js/codesmith-api-json/dist/esm/index.js
|
|
132476
132308
|
var import_comment_json2 = __toESM(require_src2());
|
|
132477
132309
|
var declarationUpdate = __toESM(require_dist());
|
|
132478
132310
|
|
|
132479
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.2.
|
|
132311
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.2.3/node_modules/@modern-js/codesmith-api-json/dist/esm/utils/index.js
|
|
132480
132312
|
function asyncGeneratorStep15(gen, resolve, reject, _next, _throw, key, arg) {
|
|
132481
132313
|
try {
|
|
132482
132314
|
var info = gen[key](arg);
|
|
@@ -132650,7 +132482,7 @@ function _editJson() {
|
|
|
132650
132482
|
return _editJson.apply(this, arguments);
|
|
132651
132483
|
}
|
|
132652
132484
|
|
|
132653
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.2.
|
|
132485
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.2.3/node_modules/@modern-js/codesmith-api-json/dist/esm/index.js
|
|
132654
132486
|
function asyncGeneratorStep16(gen, resolve, reject, _next, _throw, key, arg) {
|
|
132655
132487
|
try {
|
|
132656
132488
|
var info = gen[key](arg);
|
|
@@ -132946,7 +132778,16 @@ var JsonAPI = /* @__PURE__ */ function() {
|
|
|
132946
132778
|
|
|
132947
132779
|
// ../../generator-utils/dist/esm/index.js
|
|
132948
132780
|
var import_path5 = __toESM(require("path"));
|
|
132949
|
-
var
|
|
132781
|
+
var import_utils16 = __toESM(require_cjs2());
|
|
132782
|
+
|
|
132783
|
+
// ../../../../node_modules/.pnpm/@swc+helpers@0.5.1/node_modules/@swc/helpers/esm/_define_property.js
|
|
132784
|
+
function _define_property14(obj, key, value) {
|
|
132785
|
+
if (key in obj) {
|
|
132786
|
+
Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true });
|
|
132787
|
+
} else
|
|
132788
|
+
obj[key] = value;
|
|
132789
|
+
return obj;
|
|
132790
|
+
}
|
|
132950
132791
|
|
|
132951
132792
|
// ../../../cli/plugin-i18n/dist/esm-node/index.js
|
|
132952
132793
|
var import_lodash8 = __toESM(require_lodash4());
|
|
@@ -132966,19 +132807,6 @@ function getObjKeyMap2(obj, prefix = "") {
|
|
|
132966
132807
|
}
|
|
132967
132808
|
|
|
132968
132809
|
// ../../../cli/plugin-i18n/dist/esm-node/index.js
|
|
132969
|
-
function _define_property14(obj, key, value) {
|
|
132970
|
-
if (key in obj) {
|
|
132971
|
-
Object.defineProperty(obj, key, {
|
|
132972
|
-
value,
|
|
132973
|
-
enumerable: true,
|
|
132974
|
-
configurable: true,
|
|
132975
|
-
writable: true
|
|
132976
|
-
});
|
|
132977
|
-
} else {
|
|
132978
|
-
obj[key] = value;
|
|
132979
|
-
}
|
|
132980
|
-
return obj;
|
|
132981
|
-
}
|
|
132982
132810
|
var I18n2 = class {
|
|
132983
132811
|
format(msg, vars) {
|
|
132984
132812
|
return msg.replace(/\{(\w+)\}/g, (_match, capture) => Object.prototype.hasOwnProperty.call(vars, capture) ? vars[capture] : capture);
|
|
@@ -133301,10 +133129,10 @@ function stripAnsi2(string) {
|
|
|
133301
133129
|
}
|
|
133302
133130
|
|
|
133303
133131
|
// ../../generator-utils/dist/esm/utils/package.js
|
|
133304
|
-
var
|
|
133132
|
+
var import_utils15 = __toESM(require_cjs2());
|
|
133305
133133
|
function isPackageExist(packageName, registry2) {
|
|
133306
133134
|
return __async(this, null, function* () {
|
|
133307
|
-
if (yield (0,
|
|
133135
|
+
if (yield (0, import_utils15.canUseNpm)()) {
|
|
133308
133136
|
const args = [
|
|
133309
133137
|
"view",
|
|
133310
133138
|
packageName,
|
|
@@ -133313,15 +133141,15 @@ function isPackageExist(packageName, registry2) {
|
|
|
133313
133141
|
if (registry2) {
|
|
133314
133142
|
args.push(`--registry=${registry2}`);
|
|
133315
133143
|
}
|
|
133316
|
-
const result = yield (0,
|
|
133317
|
-
return (0,
|
|
133144
|
+
const result = yield (0, import_utils15.execa)("npm", args);
|
|
133145
|
+
return (0, import_utils15.stripAnsi)(result.stdout);
|
|
133318
133146
|
}
|
|
133319
133147
|
throw new Error("not found npm, please install npm before");
|
|
133320
133148
|
});
|
|
133321
133149
|
}
|
|
133322
133150
|
function isPackageDeprecated(packageName, registry2) {
|
|
133323
133151
|
return __async(this, null, function* () {
|
|
133324
|
-
if (yield (0,
|
|
133152
|
+
if (yield (0, import_utils15.canUseNpm)()) {
|
|
133325
133153
|
const args = [
|
|
133326
133154
|
"view",
|
|
133327
133155
|
packageName,
|
|
@@ -133330,14 +133158,14 @@ function isPackageDeprecated(packageName, registry2) {
|
|
|
133330
133158
|
if (registry2) {
|
|
133331
133159
|
args.push(`--registry=${registry2}`);
|
|
133332
133160
|
}
|
|
133333
|
-
const result = yield (0,
|
|
133334
|
-
return (0,
|
|
133161
|
+
const result = yield (0, import_utils15.execa)("npm", args);
|
|
133162
|
+
return (0, import_utils15.stripAnsi)(result.stdout);
|
|
133335
133163
|
}
|
|
133336
133164
|
throw new Error("not found npm, please install npm before");
|
|
133337
133165
|
});
|
|
133338
133166
|
}
|
|
133339
133167
|
function semverDecrease(version) {
|
|
133340
|
-
const versionObj =
|
|
133168
|
+
const versionObj = import_utils15.semver.parse(version, {
|
|
133341
133169
|
loose: true
|
|
133342
133170
|
});
|
|
133343
133171
|
if (!versionObj) {
|
|
@@ -133347,8 +133175,8 @@ function semverDecrease(version) {
|
|
|
133347
133175
|
versionObj.prerelease = [];
|
|
133348
133176
|
versionObj.patch--;
|
|
133349
133177
|
const result = versionObj.format();
|
|
133350
|
-
if (!
|
|
133351
|
-
|
|
133178
|
+
if (!import_utils15.semver.valid(result)) {
|
|
133179
|
+
import_utils15.logger.debug(`Version ${result} is not valid semver`);
|
|
133352
133180
|
return version;
|
|
133353
133181
|
}
|
|
133354
133182
|
return result;
|
|
@@ -133359,7 +133187,7 @@ function getAvailableVersion(packageName, currentVersion, registry2) {
|
|
|
133359
133187
|
let version = currentVersion;
|
|
133360
133188
|
while (times) {
|
|
133361
133189
|
if (!(yield isPackageExist(`${packageName}@${version}`, registry2)) || (yield isPackageDeprecated(`${packageName}@${version}`, registry2))) {
|
|
133362
|
-
version =
|
|
133190
|
+
version = import_utils15.semver.inc(version, "patch");
|
|
133363
133191
|
times--;
|
|
133364
133192
|
continue;
|
|
133365
133193
|
}
|
|
@@ -133379,14 +133207,14 @@ function getAvailableVersion(packageName, currentVersion, registry2) {
|
|
|
133379
133207
|
}
|
|
133380
133208
|
|
|
133381
133209
|
// ../../generator-utils/dist/esm/index.js
|
|
133382
|
-
var
|
|
133210
|
+
var import_utils17 = __toESM(require_cjs2());
|
|
133383
133211
|
function getPackageVersion(packageName, registry2) {
|
|
133384
133212
|
return __async(this, null, function* () {
|
|
133385
|
-
const spinner = (0,
|
|
133213
|
+
const spinner = (0, import_utils16.ora)({
|
|
133386
133214
|
text: "Load Generator...",
|
|
133387
133215
|
spinner: "runner"
|
|
133388
133216
|
}).start();
|
|
133389
|
-
if (yield (0,
|
|
133217
|
+
if (yield (0, import_utils16.canUsePnpm)()) {
|
|
133390
133218
|
const args = [
|
|
133391
133219
|
"info",
|
|
133392
133220
|
packageName,
|
|
@@ -133395,11 +133223,11 @@ function getPackageVersion(packageName, registry2) {
|
|
|
133395
133223
|
if (registry2) {
|
|
133396
133224
|
args.push(`--registry=${registry2}`);
|
|
133397
133225
|
}
|
|
133398
|
-
const result = yield (0,
|
|
133226
|
+
const result = yield (0, import_utils16.execa)("pnpm", args);
|
|
133399
133227
|
spinner.stop();
|
|
133400
133228
|
return stripAnsi2(result.stdout);
|
|
133401
133229
|
}
|
|
133402
|
-
if (yield (0,
|
|
133230
|
+
if (yield (0, import_utils16.canUseNpm)()) {
|
|
133403
133231
|
const args = [
|
|
133404
133232
|
"view",
|
|
133405
133233
|
packageName,
|
|
@@ -133408,7 +133236,7 @@ function getPackageVersion(packageName, registry2) {
|
|
|
133408
133236
|
if (registry2) {
|
|
133409
133237
|
args.push(`--registry=${registry2}`);
|
|
133410
133238
|
}
|
|
133411
|
-
const result = yield (0,
|
|
133239
|
+
const result = yield (0, import_utils16.execa)("npm", args);
|
|
133412
133240
|
spinner.stop();
|
|
133413
133241
|
return stripAnsi2(result.stdout);
|
|
133414
133242
|
}
|
|
@@ -133497,22 +133325,22 @@ var handleTemplateFile = (context, generator, appApi) => __async(void 0, null, f
|
|
|
133497
133325
|
return;
|
|
133498
133326
|
}
|
|
133499
133327
|
const appDir = context.materials.default.basePath;
|
|
133500
|
-
const packageManager = yield (0,
|
|
133328
|
+
const packageManager = yield (0, import_utils17.getPackageManager)(appDir);
|
|
133501
133329
|
context.config.packageManager = packageManager;
|
|
133502
133330
|
if (packageManager === PackageManager.Pnpm) {
|
|
133503
133331
|
const npmrcPath = import_path6.default.join(generator.outputPath, ".npmrc");
|
|
133504
|
-
if (
|
|
133505
|
-
const content =
|
|
133332
|
+
if (import_utils17.fs.existsSync(npmrcPath)) {
|
|
133333
|
+
const content = import_utils17.fs.readFileSync(npmrcPath, "utf-8");
|
|
133506
133334
|
if (!content.includes("strict-peer-dependencies=false")) {
|
|
133507
|
-
|
|
133335
|
+
import_utils17.fs.appendFileSync(npmrcPath, "\nstrict-peer-dependencies=false\n");
|
|
133508
133336
|
}
|
|
133509
133337
|
} else {
|
|
133510
|
-
|
|
133511
|
-
|
|
133338
|
+
import_utils17.fs.ensureFileSync(npmrcPath);
|
|
133339
|
+
import_utils17.fs.writeFileSync(npmrcPath, "strict-peer-dependencies=false");
|
|
133512
133340
|
}
|
|
133513
133341
|
}
|
|
133514
133342
|
if (solutions[0] === Solution.Monorepo && packageManager === PackageManager.Pnpm) {
|
|
133515
|
-
yield (0,
|
|
133343
|
+
yield (0, import_utils17.execa)(
|
|
133516
133344
|
"pnpm",
|
|
133517
133345
|
["update", "@modern-js/*", "@modern-js-app/*", "--recursive", "--latest"],
|
|
133518
133346
|
{
|
|
@@ -133530,7 +133358,7 @@ var handleTemplateFile = (context, generator, appApi) => __async(void 0, null, f
|
|
|
133530
133358
|
(dep) => dep.startsWith("@modern-js") || dep.startsWith("@modern-js-app")
|
|
133531
133359
|
);
|
|
133532
133360
|
const updateInfo = {};
|
|
133533
|
-
const spinner = (0,
|
|
133361
|
+
const spinner = (0, import_utils17.ora)({
|
|
133534
133362
|
text: "Load Generator...",
|
|
133535
133363
|
spinner: "runner"
|
|
133536
133364
|
}).start();
|
|
@@ -133566,7 +133394,7 @@ var handleTemplateFile = (context, generator, appApi) => __async(void 0, null, f
|
|
|
133566
133394
|
spinner.stop();
|
|
133567
133395
|
const huskyVersion = deps.husky;
|
|
133568
133396
|
try {
|
|
133569
|
-
if (huskyVersion &&
|
|
133397
|
+
if (huskyVersion && import_utils17.semver.lt(huskyVersion, "8.0.0")) {
|
|
133570
133398
|
generator.logger.info(`${i18n3.t(localeKeys3.updateHusky)}`);
|
|
133571
133399
|
yield jsonAPI.update(
|
|
133572
133400
|
context.materials.default.get(import_path6.default.join(appDir, "package.json")),
|
|
@@ -133582,7 +133410,7 @@ var handleTemplateFile = (context, generator, appApi) => __async(void 0, null, f
|
|
|
133582
133410
|
const pkgPath = context.materials.default.get(
|
|
133583
133411
|
import_path6.default.join(appDir, "package.json")
|
|
133584
133412
|
).filePath;
|
|
133585
|
-
const pkgInfo2 =
|
|
133413
|
+
const pkgInfo2 = import_utils17.fs.readJSONSync(pkgPath, "utf-8");
|
|
133586
133414
|
const { prepare } = pkgInfo2.scripts;
|
|
133587
133415
|
if (!prepare) {
|
|
133588
133416
|
pkgInfo2.scripts.prepare = "husky install";
|
|
@@ -133590,9 +133418,9 @@ var handleTemplateFile = (context, generator, appApi) => __async(void 0, null, f
|
|
|
133590
133418
|
pkgInfo2.scripts.prepare = `${prepare} && husky install`;
|
|
133591
133419
|
}
|
|
133592
133420
|
pkgInfo2.husky = void 0;
|
|
133593
|
-
|
|
133421
|
+
import_utils17.fs.writeJSONSync(pkgPath, pkgInfo2, { spaces: 2 });
|
|
133594
133422
|
yield appApi.forgeTemplate("templates/**/*");
|
|
133595
|
-
|
|
133423
|
+
import_utils17.fs.chmodSync(
|
|
133596
133424
|
import_path6.default.join(generator.outputPath, ".husky", "pre-commit"),
|
|
133597
133425
|
"755"
|
|
133598
133426
|
);
|