@modern-js/utils 3.8.2 → 3.8.3
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/cjs/cli/index.js +31 -72
- package/dist/compiled/browserslist/index.js +1 -1
- package/dist/compiled/fast-glob/index.js +1 -1
- package/dist/compiled/inquirer/index.js +3 -3
- package/dist/compiled/js-yaml/index.js +1 -1
- package/dist/compiled/js-yaml/index.mjs +1 -1
- package/dist/compiled/json5/index.js +2 -2
- package/dist/compiled/pkg-up/index.js +1 -1
- package/package.json +5 -5
package/dist/cjs/cli/index.js
CHANGED
|
@@ -117,105 +117,64 @@ function __webpack_require__(moduleId) {
|
|
|
117
117
|
});
|
|
118
118
|
};
|
|
119
119
|
})();
|
|
120
|
+
(()=>{
|
|
121
|
+
__webpack_require__.re = (exports1, source, excluded)=>{
|
|
122
|
+
var getters = {};
|
|
123
|
+
for(const key in source)if (0 === excluded || ("string" == typeof excluded ? key !== excluded : excluded.indexOf(key) < 0)) getters[key] = ()=>source[key];
|
|
124
|
+
__webpack_require__.d(exports1, getters);
|
|
125
|
+
};
|
|
126
|
+
})();
|
|
120
127
|
var __webpack_exports__ = {};
|
|
121
128
|
(()=>{
|
|
122
129
|
__webpack_require__.r(__webpack_exports__);
|
|
123
130
|
var _constants__rspack_import_0 = __webpack_require__("./constants");
|
|
124
|
-
|
|
125
|
-
for(const __rspack_import_key in _constants__rspack_import_0)if ("default" !== __rspack_import_key) __rspack_reexport[__rspack_import_key] = ()=>_constants__rspack_import_0[__rspack_import_key];
|
|
126
|
-
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
131
|
+
__webpack_require__.re(__webpack_exports__, _constants__rspack_import_0, "default");
|
|
127
132
|
var _get__rspack_import_1 = __webpack_require__("./get");
|
|
128
|
-
|
|
129
|
-
for(const __rspack_import_key in _get__rspack_import_1)if ("default" !== __rspack_import_key) __rspack_reexport[__rspack_import_key] = ()=>_get__rspack_import_1[__rspack_import_key];
|
|
130
|
-
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
133
|
+
__webpack_require__.re(__webpack_exports__, _get__rspack_import_1, "default");
|
|
131
134
|
var _is__rspack_import_2 = __webpack_require__("./is");
|
|
132
|
-
|
|
133
|
-
for(const __rspack_import_key in _is__rspack_import_2)if ("default" !== __rspack_import_key) __rspack_reexport[__rspack_import_key] = ()=>_is__rspack_import_2[__rspack_import_key];
|
|
134
|
-
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
135
|
+
__webpack_require__.re(__webpack_exports__, _is__rspack_import_2, "default");
|
|
135
136
|
var _alias__rspack_import_3 = __webpack_require__("./alias");
|
|
136
|
-
|
|
137
|
-
for(const __rspack_import_key in _alias__rspack_import_3)if ("default" !== __rspack_import_key) __rspack_reexport[__rspack_import_key] = ()=>_alias__rspack_import_3[__rspack_import_key];
|
|
138
|
-
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
137
|
+
__webpack_require__.re(__webpack_exports__, _alias__rspack_import_3, "default");
|
|
139
138
|
var _applyOptionsChain__rspack_import_4 = __webpack_require__("./applyOptionsChain");
|
|
140
|
-
|
|
141
|
-
for(const __rspack_import_key in _applyOptionsChain__rspack_import_4)if ("default" !== __rspack_import_key) __rspack_reexport[__rspack_import_key] = ()=>_applyOptionsChain__rspack_import_4[__rspack_import_key];
|
|
142
|
-
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
139
|
+
__webpack_require__.re(__webpack_exports__, _applyOptionsChain__rspack_import_4, "default");
|
|
143
140
|
var _commands__rspack_import_5 = __webpack_require__("./commands");
|
|
144
|
-
|
|
145
|
-
for(const __rspack_import_key in _commands__rspack_import_5)if ("default" !== __rspack_import_key) __rspack_reexport[__rspack_import_key] = ()=>_commands__rspack_import_5[__rspack_import_key];
|
|
146
|
-
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
141
|
+
__webpack_require__.re(__webpack_exports__, _commands__rspack_import_5, "default");
|
|
147
142
|
var _common__rspack_import_6 = __webpack_require__("./common");
|
|
148
|
-
|
|
149
|
-
for(const __rspack_import_key in _common__rspack_import_6)if ("default" !== __rspack_import_key) __rspack_reexport[__rspack_import_key] = ()=>_common__rspack_import_6[__rspack_import_key];
|
|
150
|
-
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
143
|
+
__webpack_require__.re(__webpack_exports__, _common__rspack_import_6, "default");
|
|
151
144
|
var _ensure__rspack_import_7 = __webpack_require__("./ensure");
|
|
152
|
-
|
|
153
|
-
for(const __rspack_import_key in _ensure__rspack_import_7)if ("default" !== __rspack_import_key) __rspack_reexport[__rspack_import_key] = ()=>_ensure__rspack_import_7[__rspack_import_key];
|
|
154
|
-
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
145
|
+
__webpack_require__.re(__webpack_exports__, _ensure__rspack_import_7, "default");
|
|
155
146
|
var _fs__rspack_import_8 = __webpack_require__("./fs");
|
|
156
|
-
|
|
157
|
-
for(const __rspack_import_key in _fs__rspack_import_8)if ("default" !== __rspack_import_key) __rspack_reexport[__rspack_import_key] = ()=>_fs__rspack_import_8[__rspack_import_key];
|
|
158
|
-
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
147
|
+
__webpack_require__.re(__webpack_exports__, _fs__rspack_import_8, "default");
|
|
159
148
|
var _logger__rspack_import_9 = __webpack_require__("./logger");
|
|
160
|
-
|
|
161
|
-
for(const __rspack_import_key in _logger__rspack_import_9)if ("default" !== __rspack_import_key) __rspack_reexport[__rspack_import_key] = ()=>_logger__rspack_import_9[__rspack_import_key];
|
|
162
|
-
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
149
|
+
__webpack_require__.re(__webpack_exports__, _logger__rspack_import_9, "default");
|
|
163
150
|
var _monorepo__rspack_import_10 = __webpack_require__("./monorepo");
|
|
164
|
-
|
|
165
|
-
for(const __rspack_import_key in _monorepo__rspack_import_10)if ("default" !== __rspack_import_key) __rspack_reexport[__rspack_import_key] = ()=>_monorepo__rspack_import_10[__rspack_import_key];
|
|
166
|
-
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
151
|
+
__webpack_require__.re(__webpack_exports__, _monorepo__rspack_import_10, "default");
|
|
167
152
|
var _package__rspack_import_11 = __webpack_require__("./package");
|
|
168
|
-
|
|
169
|
-
for(const __rspack_import_key in _package__rspack_import_11)if ("default" !== __rspack_import_key) __rspack_reexport[__rspack_import_key] = ()=>_package__rspack_import_11[__rspack_import_key];
|
|
170
|
-
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
153
|
+
__webpack_require__.re(__webpack_exports__, _package__rspack_import_11, "default");
|
|
171
154
|
var _path__rspack_import_12 = __webpack_require__("./path");
|
|
172
|
-
|
|
173
|
-
for(const __rspack_import_key in _path__rspack_import_12)if ("default" !== __rspack_import_key) __rspack_reexport[__rspack_import_key] = ()=>_path__rspack_import_12[__rspack_import_key];
|
|
174
|
-
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
155
|
+
__webpack_require__.re(__webpack_exports__, _path__rspack_import_12, "default");
|
|
175
156
|
var _port__rspack_import_13 = __webpack_require__("./port");
|
|
176
|
-
|
|
177
|
-
for(const __rspack_import_key in _port__rspack_import_13)if ("default" !== __rspack_import_key) __rspack_reexport[__rspack_import_key] = ()=>_port__rspack_import_13[__rspack_import_key];
|
|
178
|
-
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
157
|
+
__webpack_require__.re(__webpack_exports__, _port__rspack_import_13, "default");
|
|
179
158
|
var _prettyInstructions__rspack_import_14 = __webpack_require__("./prettyInstructions");
|
|
180
|
-
|
|
181
|
-
for(const __rspack_import_key in _prettyInstructions__rspack_import_14)if ("default" !== __rspack_import_key) __rspack_reexport[__rspack_import_key] = ()=>_prettyInstructions__rspack_import_14[__rspack_import_key];
|
|
182
|
-
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
159
|
+
__webpack_require__.re(__webpack_exports__, _prettyInstructions__rspack_import_14, "default");
|
|
183
160
|
var _require__rspack_import_15 = __webpack_require__("./require");
|
|
184
|
-
|
|
185
|
-
for(const __rspack_import_key in _require__rspack_import_15)if ("default" !== __rspack_import_key) __rspack_reexport[__rspack_import_key] = ()=>_require__rspack_import_15[__rspack_import_key];
|
|
186
|
-
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
161
|
+
__webpack_require__.re(__webpack_exports__, _require__rspack_import_15, "default");
|
|
187
162
|
var _runtimeExports__rspack_import_16 = __webpack_require__("./runtimeExports");
|
|
188
|
-
|
|
189
|
-
for(const __rspack_import_key in _runtimeExports__rspack_import_16)if ("default" !== __rspack_import_key) __rspack_reexport[__rspack_import_key] = ()=>_runtimeExports__rspack_import_16[__rspack_import_key];
|
|
190
|
-
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
163
|
+
__webpack_require__.re(__webpack_exports__, _runtimeExports__rspack_import_16, "default");
|
|
191
164
|
var _watch__rspack_import_17 = __webpack_require__("./watch");
|
|
192
|
-
|
|
193
|
-
for(const __rspack_import_key in _watch__rspack_import_17)if ("default" !== __rspack_import_key) __rspack_reexport[__rspack_import_key] = ()=>_watch__rspack_import_17[__rspack_import_key];
|
|
194
|
-
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
165
|
+
__webpack_require__.re(__webpack_exports__, _watch__rspack_import_17, "default");
|
|
195
166
|
var _config__rspack_import_18 = __webpack_require__("./config");
|
|
196
|
-
|
|
197
|
-
for(const __rspack_import_key in _config__rspack_import_18)if ("default" !== __rspack_import_key) __rspack_reexport[__rspack_import_key] = ()=>_config__rspack_import_18[__rspack_import_key];
|
|
198
|
-
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
167
|
+
__webpack_require__.re(__webpack_exports__, _config__rspack_import_18, "default");
|
|
199
168
|
var _version__rspack_import_19 = __webpack_require__("./version");
|
|
200
|
-
|
|
201
|
-
for(const __rspack_import_key in _version__rspack_import_19)if ("default" !== __rspack_import_key) __rspack_reexport[__rspack_import_key] = ()=>_version__rspack_import_19[__rspack_import_key];
|
|
202
|
-
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
169
|
+
__webpack_require__.re(__webpack_exports__, _version__rspack_import_19, "default");
|
|
203
170
|
var _route__rspack_import_20 = __webpack_require__("./route");
|
|
204
|
-
|
|
205
|
-
for(const __rspack_import_key in _route__rspack_import_20)if ("default" !== __rspack_import_key) __rspack_reexport[__rspack_import_key] = ()=>_route__rspack_import_20[__rspack_import_key];
|
|
206
|
-
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
171
|
+
__webpack_require__.re(__webpack_exports__, _route__rspack_import_20, "default");
|
|
207
172
|
var _modulePath__rspack_import_21 = __webpack_require__("./modulePath");
|
|
208
|
-
|
|
209
|
-
for(const __rspack_import_key in _modulePath__rspack_import_21)if ("default" !== __rspack_import_key) __rspack_reexport[__rspack_import_key] = ()=>_modulePath__rspack_import_21[__rspack_import_key];
|
|
210
|
-
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
173
|
+
__webpack_require__.re(__webpack_exports__, _modulePath__rspack_import_21, "default");
|
|
211
174
|
var _routeComponentFiles__rspack_import_22 = __webpack_require__("./routeComponentFiles");
|
|
212
|
-
|
|
213
|
-
for(const __rspack_import_key in _routeComponentFiles__rspack_import_22)if ("default" !== __rspack_import_key) __rspack_reexport[__rspack_import_key] = ()=>_routeComponentFiles__rspack_import_22[__rspack_import_key];
|
|
214
|
-
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
175
|
+
__webpack_require__.re(__webpack_exports__, _routeComponentFiles__rspack_import_22, "default");
|
|
215
176
|
var _tsconfig__rspack_import_23 = __webpack_require__("./tsconfig");
|
|
216
|
-
|
|
217
|
-
for(const __rspack_import_key in _tsconfig__rspack_import_23)if ("default" !== __rspack_import_key) __rspack_reexport[__rspack_import_key] = ()=>_tsconfig__rspack_import_23[__rspack_import_key];
|
|
218
|
-
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
177
|
+
__webpack_require__.re(__webpack_exports__, _tsconfig__rspack_import_23, "default");
|
|
219
178
|
})();
|
|
220
179
|
for(var __rspack_i in __webpack_exports__)exports[__rspack_i] = __webpack_exports__[__rspack_i];
|
|
221
180
|
Object.defineProperty(exports, '__esModule', {
|
|
@@ -1452,7 +1452,7 @@
|
|
|
1452
1452
|
return this._isSkippedByNegativePatterns(i, s);
|
|
1453
1453
|
}
|
|
1454
1454
|
_isSkippedByDeep(t, e) {
|
|
1455
|
-
if (this._settings.deep
|
|
1455
|
+
if (1 / 0 === this._settings.deep) return false;
|
|
1456
1456
|
return this._getEntryLevel(t, e) >= this._settings.deep;
|
|
1457
1457
|
}
|
|
1458
1458
|
_getEntryLevel(t, e) {
|
|
@@ -8691,7 +8691,7 @@
|
|
|
8691
8691
|
const t = e.match(/(^-?\d+|^\d+\.\d*|^\d*\.\d+)(e\d+)?$/);
|
|
8692
8692
|
if (t) return Number(t[0]);
|
|
8693
8693
|
}
|
|
8694
|
-
return null == this.opt.default ?
|
|
8694
|
+
return null == this.opt.default ? 0 / 0 : this.opt.default;
|
|
8695
8695
|
}
|
|
8696
8696
|
}
|
|
8697
8697
|
e.exports = NumberPrompt;
|
|
@@ -11084,7 +11084,7 @@
|
|
|
11084
11084
|
i._timestampProvider = n;
|
|
11085
11085
|
i._buffer = [];
|
|
11086
11086
|
i._infiniteTimeWindow = true;
|
|
11087
|
-
i._infiniteTimeWindow =
|
|
11087
|
+
i._infiniteTimeWindow = 1 / 0 === r;
|
|
11088
11088
|
i._bufferSize = Math.max(1, t);
|
|
11089
11089
|
i._windowTime = Math.max(1, r);
|
|
11090
11090
|
return i;
|
|
@@ -19550,7 +19550,7 @@
|
|
|
19550
19550
|
};
|
|
19551
19551
|
if (!a.alloc) a.alloc = function(e, t, r) {
|
|
19552
19552
|
if ("number" != typeof e) throw new TypeError('The "size" argument must be of type number. Received type ' + typeof e);
|
|
19553
|
-
if (e < 0 || e >=
|
|
19553
|
+
if (e < 0 || e >= 2147483648) throw new RangeError('The value "' + e + '" is invalid for option "size"');
|
|
19554
19554
|
var n = i(e);
|
|
19555
19555
|
if (t && 0 !== t.length) if ("string" == typeof r) n.fill(t, r);
|
|
19556
19556
|
else n.fill(t);
|
|
@@ -1786,7 +1786,7 @@
|
|
|
1786
1786
|
r = "-" === t[0] ? -1 : 1;
|
|
1787
1787
|
if ("+-".indexOf(t[0]) >= 0) t = t.slice(1);
|
|
1788
1788
|
if (".inf" === t) return 1 === r ? 1 / 0 : -1 / 0;
|
|
1789
|
-
if (".nan" === t) return
|
|
1789
|
+
if (".nan" === t) return 0 / 0;
|
|
1790
1790
|
return r * parseFloat(t, 10);
|
|
1791
1791
|
}
|
|
1792
1792
|
var o = /^[-+]?[0-9]+e/;
|
|
@@ -493,7 +493,7 @@ function constructYamlFloat(e) {
|
|
|
493
493
|
r = "-" === t[0] ? -1 : 1;
|
|
494
494
|
if ("+-".indexOf(t[0]) >= 0) t = t.slice(1);
|
|
495
495
|
if (".inf" === t) return 1 === r ? 1 / 0 : -1 / 0;
|
|
496
|
-
if (".nan" === t) return
|
|
496
|
+
if (".nan" === t) return 0 / 0;
|
|
497
497
|
return r * parseFloat(t, 10);
|
|
498
498
|
}
|
|
499
499
|
var E = /^[-+]?[0-9]+e/;
|
|
@@ -222,7 +222,7 @@
|
|
|
222
222
|
case "N":
|
|
223
223
|
read();
|
|
224
224
|
literal("aN");
|
|
225
|
-
return newToken("numeric",
|
|
225
|
+
return newToken("numeric", 0 / 0);
|
|
226
226
|
case '"':
|
|
227
227
|
case "'":
|
|
228
228
|
o = '"' === read();
|
|
@@ -312,7 +312,7 @@
|
|
|
312
312
|
case "N":
|
|
313
313
|
read();
|
|
314
314
|
literal("aN");
|
|
315
|
-
return newToken("numeric",
|
|
315
|
+
return newToken("numeric", 0 / 0);
|
|
316
316
|
}
|
|
317
317
|
throw invalidChar(read());
|
|
318
318
|
},
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
848: (e, r, n)=>{
|
|
55
55
|
const t = n(242);
|
|
56
56
|
const pLimit = (e)=>{
|
|
57
|
-
if (!((Number.isInteger(e) ||
|
|
57
|
+
if (!((Number.isInteger(e) || 1 / 0 === e) && e > 0)) return Promise.reject(new TypeError("Expected `concurrency` to be a number from 1 and up"));
|
|
58
58
|
const r = [];
|
|
59
59
|
let n = 0;
|
|
60
60
|
const next = ()=>{
|
package/package.json
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"modern",
|
|
16
16
|
"modern.js"
|
|
17
17
|
],
|
|
18
|
-
"version": "3.8.
|
|
18
|
+
"version": "3.8.3",
|
|
19
19
|
"types": "./dist/types/index.d.ts",
|
|
20
20
|
"main": "./dist/cjs/index.js",
|
|
21
21
|
"module": "./dist/esm/index.mjs",
|
|
@@ -147,12 +147,12 @@
|
|
|
147
147
|
"happy-dom": "^20.9.0",
|
|
148
148
|
"typescript": "^5",
|
|
149
149
|
"@modern-js/rslib": "2.68.10",
|
|
150
|
-
"@
|
|
151
|
-
"@
|
|
150
|
+
"@scripts/rstest-config": "2.66.0",
|
|
151
|
+
"@modern-js/types": "3.8.3"
|
|
152
152
|
},
|
|
153
153
|
"peerDependencies": {
|
|
154
|
-
"react": "^19.2.
|
|
155
|
-
"react-dom": "^19.2.
|
|
154
|
+
"react": "^19.2.8",
|
|
155
|
+
"react-dom": "^19.2.8"
|
|
156
156
|
},
|
|
157
157
|
"peerDependenciesMeta": {
|
|
158
158
|
"react": {
|