@rspack/core 1.3.8 → 1.3.10
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/compiled/browserslist/index.js +77 -57
- package/compiled/browserslist/package.json +1 -1
- package/compiled/zod/index.js +35 -35
- package/compiled/zod/package.json +1 -1
- package/dist/ChunkGraph.d.ts +1 -0
- package/dist/CodeGenerationResults.d.ts +1 -0
- package/dist/Compilation.d.ts +5 -1
- package/dist/Module.d.ts +0 -7
- package/dist/builtin-plugin/SubresourceIntegrityPlugin.d.ts +1 -1
- package/dist/builtin-plugin/html-plugin/hooks.d.ts +3 -1
- package/dist/builtin-plugin/html-plugin/options.d.ts +7 -3
- package/dist/builtin-plugin/html-plugin/plugin.d.ts +0 -1
- package/dist/config/adapter.d.ts +2 -2
- package/dist/config/types.d.ts +25 -1
- package/dist/config/zod.d.ts +57 -12
- package/dist/index.d.ts +1 -0
- package/dist/index.js +277 -219
- package/dist/setupEnv.d.ts +1 -0
- package/dist/stats/statsFactoryUtils.d.ts +1 -0
- package/dist/taps/compilation.d.ts +6 -0
- package/dist/trace/index.d.ts +2 -3
- package/package.json +10 -10
@@ -1,7 +1,7 @@
|
|
1
1
|
/******/ (() => { // webpackBootstrap
|
2
2
|
/******/ var __webpack_modules__ = ({
|
3
3
|
|
4
|
-
/***/
|
4
|
+
/***/ 523:
|
5
5
|
/***/ ((module) => {
|
6
6
|
|
7
7
|
function BrowserslistError(message) {
|
@@ -20,18 +20,18 @@ module.exports = BrowserslistError
|
|
20
20
|
|
21
21
|
/***/ }),
|
22
22
|
|
23
|
-
/***/
|
23
|
+
/***/ 113:
|
24
24
|
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
25
25
|
|
26
26
|
var jsReleases = __nccwpck_require__(613)
|
27
27
|
var agents = (__nccwpck_require__(946).agents)
|
28
|
-
var e2c = __nccwpck_require__(
|
28
|
+
var e2c = __nccwpck_require__(867)
|
29
29
|
var jsEOL = __nccwpck_require__(995)
|
30
30
|
var path = __nccwpck_require__(928)
|
31
31
|
|
32
|
-
var BrowserslistError = __nccwpck_require__(
|
33
|
-
var env = __nccwpck_require__(
|
34
|
-
var parseWithoutCache = __nccwpck_require__(
|
32
|
+
var BrowserslistError = __nccwpck_require__(523)
|
33
|
+
var env = __nccwpck_require__(217)
|
34
|
+
var parseWithoutCache = __nccwpck_require__(494) // Will load browser.js in webpack
|
35
35
|
|
36
36
|
var YEAR = 365.259641 * 24 * 60 * 60 * 1000
|
37
37
|
var ANDROID_EVERGREEN_FIRST = '37'
|
@@ -1262,7 +1262,7 @@ module.exports = browserslist
|
|
1262
1262
|
|
1263
1263
|
/***/ }),
|
1264
1264
|
|
1265
|
-
/***/
|
1265
|
+
/***/ 217:
|
1266
1266
|
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
1267
1267
|
|
1268
1268
|
var feature = (__nccwpck_require__(930)["default"])
|
@@ -1270,7 +1270,7 @@ var region = (__nccwpck_require__(800)["default"])
|
|
1270
1270
|
var fs = __nccwpck_require__(896)
|
1271
1271
|
var path = __nccwpck_require__(928)
|
1272
1272
|
|
1273
|
-
var BrowserslistError = __nccwpck_require__(
|
1273
|
+
var BrowserslistError = __nccwpck_require__(523)
|
1274
1274
|
|
1275
1275
|
var IS_SECTION = /^\s*\[(.+)]\s*$/
|
1276
1276
|
var CONFIG_PATTERN = /^browserslist-config-/
|
@@ -1318,23 +1318,23 @@ function eachParent(file, callback, cache) {
|
|
1318
1318
|
if (!pathInRoot(loc)) {
|
1319
1319
|
break
|
1320
1320
|
}
|
1321
|
-
if (cache &&
|
1321
|
+
if (cache && loc in cache) {
|
1322
1322
|
result = cache[loc]
|
1323
1323
|
break
|
1324
1324
|
}
|
1325
1325
|
pathsForCacheResult.push(loc)
|
1326
|
-
|
1326
|
+
|
1327
1327
|
if (!isDirectory(loc)) {
|
1328
1328
|
continue
|
1329
1329
|
}
|
1330
|
-
|
1330
|
+
|
1331
1331
|
var locResult = callback(loc)
|
1332
1332
|
if (typeof locResult !== 'undefined') {
|
1333
1333
|
result = locResult
|
1334
1334
|
break
|
1335
1335
|
}
|
1336
1336
|
} while (loc !== (loc = path.dirname(loc)))
|
1337
|
-
|
1337
|
+
|
1338
1338
|
if (cache && !process.env.BROWSERSLIST_DISABLE_CACHE) {
|
1339
1339
|
pathsForCacheResult.forEach(function (cachePath) {
|
1340
1340
|
cache[cachePath] = result
|
@@ -1419,10 +1419,10 @@ function parsePackageOrReadConfig(file) {
|
|
1419
1419
|
if (file in parseConfigCache) {
|
1420
1420
|
return parseConfigCache[file]
|
1421
1421
|
}
|
1422
|
-
|
1422
|
+
|
1423
1423
|
var isPackage = path.basename(file) === 'package.json'
|
1424
1424
|
var result = isPackage ? parsePackage(file) : module.exports.readConfig(file)
|
1425
|
-
|
1425
|
+
|
1426
1426
|
if (!process.env.BROWSERSLIST_DISABLE_CACHE) {
|
1427
1427
|
parseConfigCache[file] = result
|
1428
1428
|
}
|
@@ -1496,6 +1496,9 @@ module.exports = {
|
|
1496
1496
|
checkExtend(name)
|
1497
1497
|
}
|
1498
1498
|
var queries = eval("require")(require.resolve(name, { paths: ['.', ctx.path] }))
|
1499
|
+
if (typeof queries === 'object' && queries !== null && queries.__esModule) {
|
1500
|
+
queries = queries.default
|
1501
|
+
}
|
1499
1502
|
if (queries) {
|
1500
1503
|
if (Array.isArray(queries)) {
|
1501
1504
|
return queries
|
@@ -1530,10 +1533,14 @@ module.exports = {
|
|
1530
1533
|
} else if (process.env.BROWSERSLIST_STATS) {
|
1531
1534
|
stats = process.env.BROWSERSLIST_STATS
|
1532
1535
|
} else if (opts.path && path.resolve && fs.existsSync) {
|
1533
|
-
stats = eachParent(
|
1534
|
-
|
1535
|
-
|
1536
|
-
|
1536
|
+
stats = eachParent(
|
1537
|
+
opts.path,
|
1538
|
+
function (dir) {
|
1539
|
+
var file = path.join(dir, 'browserslist-stats.json')
|
1540
|
+
return isFile(file) ? file : undefined
|
1541
|
+
},
|
1542
|
+
statCache
|
1543
|
+
)
|
1537
1544
|
}
|
1538
1545
|
if (typeof stats === 'string') {
|
1539
1546
|
try {
|
@@ -1641,43 +1648,48 @@ module.exports = {
|
|
1641
1648
|
},
|
1642
1649
|
|
1643
1650
|
findConfigFile: function findConfigFile(from) {
|
1644
|
-
return eachParent(
|
1645
|
-
|
1646
|
-
|
1647
|
-
|
1648
|
-
|
1649
|
-
|
1650
|
-
|
1651
|
-
|
1652
|
-
|
1653
|
-
|
1654
|
-
|
1655
|
-
|
1656
|
-
|
1657
|
-
|
1651
|
+
return eachParent(
|
1652
|
+
from,
|
1653
|
+
function (dir) {
|
1654
|
+
var config = path.join(dir, 'browserslist')
|
1655
|
+
var pkg = path.join(dir, 'package.json')
|
1656
|
+
var rc = path.join(dir, '.browserslistrc')
|
1657
|
+
|
1658
|
+
var pkgBrowserslist
|
1659
|
+
if (isFile(pkg)) {
|
1660
|
+
try {
|
1661
|
+
pkgBrowserslist = parsePackage(pkg)
|
1662
|
+
} catch (e) {
|
1663
|
+
if (e.name === 'BrowserslistError') throw e
|
1664
|
+
console.warn(
|
1665
|
+
'[Browserslist] Could not parse ' + pkg + '. Ignoring it.'
|
1666
|
+
)
|
1667
|
+
}
|
1658
1668
|
}
|
1659
|
-
}
|
1660
1669
|
|
1661
|
-
|
1662
|
-
|
1663
|
-
|
1664
|
-
|
1665
|
-
|
1666
|
-
|
1667
|
-
|
1668
|
-
|
1669
|
-
|
1670
|
-
|
1671
|
-
|
1672
|
-
|
1673
|
-
|
1674
|
-
|
1675
|
-
|
1676
|
-
|
1677
|
-
|
1678
|
-
|
1679
|
-
|
1680
|
-
|
1670
|
+
if (isFile(config) && pkgBrowserslist) {
|
1671
|
+
throw new BrowserslistError(
|
1672
|
+
dir + ' contains both browserslist and package.json with browsers'
|
1673
|
+
)
|
1674
|
+
} else if (isFile(rc) && pkgBrowserslist) {
|
1675
|
+
throw new BrowserslistError(
|
1676
|
+
dir +
|
1677
|
+
' contains both .browserslistrc and package.json with browsers'
|
1678
|
+
)
|
1679
|
+
} else if (isFile(config) && isFile(rc)) {
|
1680
|
+
throw new BrowserslistError(
|
1681
|
+
dir + ' contains both .browserslistrc and browserslist'
|
1682
|
+
)
|
1683
|
+
} else if (isFile(config)) {
|
1684
|
+
return config
|
1685
|
+
} else if (isFile(rc)) {
|
1686
|
+
return rc
|
1687
|
+
} else if (pkgBrowserslist) {
|
1688
|
+
return pkg
|
1689
|
+
}
|
1690
|
+
},
|
1691
|
+
configPathCache
|
1692
|
+
)
|
1681
1693
|
},
|
1682
1694
|
|
1683
1695
|
findConfig: function findConfig(from) {
|
@@ -1726,7 +1738,7 @@ module.exports = {
|
|
1726
1738
|
|
1727
1739
|
/***/ }),
|
1728
1740
|
|
1729
|
-
/***/
|
1741
|
+
/***/ 494:
|
1730
1742
|
/***/ ((module) => {
|
1731
1743
|
|
1732
1744
|
var AND_REGEXP = /^\s+and\s+(.*)/i
|
@@ -1811,7 +1823,7 @@ module.exports = function parse(all, queries) {
|
|
1811
1823
|
|
1812
1824
|
/***/ }),
|
1813
1825
|
|
1814
|
-
/***/
|
1826
|
+
/***/ 867:
|
1815
1827
|
/***/ ((module) => {
|
1816
1828
|
|
1817
1829
|
module.exports = {
|
@@ -1993,7 +2005,15 @@ module.exports = {
|
|
1993
2005
|
"34.0": "132",
|
1994
2006
|
"34.1": "132",
|
1995
2007
|
"34.2": "132",
|
1996
|
-
"
|
2008
|
+
"34.3": "132",
|
2009
|
+
"34.4": "132",
|
2010
|
+
"34.5": "132",
|
2011
|
+
"35.0": "134",
|
2012
|
+
"35.1": "134",
|
2013
|
+
"35.2": "134",
|
2014
|
+
"36.0": "136",
|
2015
|
+
"36.1": "136",
|
2016
|
+
"37.0": "138"
|
1997
2017
|
};
|
1998
2018
|
|
1999
2019
|
/***/ }),
|
@@ -2096,7 +2116,7 @@ module.exports = /*#__PURE__*/JSON.parse('{"v0.8":{"start":"2012-06-25","end":"2
|
|
2096
2116
|
/******/ // startup
|
2097
2117
|
/******/ // Load entry module and return exports
|
2098
2118
|
/******/ // This entry module is referenced by other modules so it can't be inlined
|
2099
|
-
/******/ var __webpack_exports__ = __nccwpck_require__(
|
2119
|
+
/******/ var __webpack_exports__ = __nccwpck_require__(113);
|
2100
2120
|
/******/ module.exports = __webpack_exports__;
|
2101
2121
|
/******/
|
2102
2122
|
/******/ })()
|
@@ -1 +1 @@
|
|
1
|
-
{"name":"browserslist","author":"Andrey Sitnik <andrey@sitnik.ru>","version":"4.24.
|
1
|
+
{"name":"browserslist","author":"Andrey Sitnik <andrey@sitnik.ru>","version":"4.24.5","funding":[{"type":"opencollective","url":"https://opencollective.com/browserslist"},{"type":"tidelift","url":"https://tidelift.com/funding/github/npm/browserslist"},{"type":"github","url":"https://github.com/sponsors/ai"}],"license":"MIT","types":"index.d.ts","type":"commonjs"}
|
package/compiled/zod/index.js
CHANGED
@@ -2,13 +2,13 @@
|
|
2
2
|
/******/ "use strict";
|
3
3
|
/******/ var __webpack_modules__ = ({
|
4
4
|
|
5
|
-
/***/
|
5
|
+
/***/ 36:
|
6
6
|
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
|
7
7
|
|
8
8
|
|
9
9
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
10
10
|
exports.ZodError = exports.quotelessJson = exports.ZodIssueCode = void 0;
|
11
|
-
const util_1 = __nccwpck_require__(
|
11
|
+
const util_1 = __nccwpck_require__(919);
|
12
12
|
exports.ZodIssueCode = util_1.util.arrayToEnum([
|
13
13
|
"invalid_type",
|
14
14
|
"invalid_literal",
|
@@ -146,7 +146,7 @@ ZodError.create = (issues) => {
|
|
146
146
|
|
147
147
|
/***/ }),
|
148
148
|
|
149
|
-
/***/
|
149
|
+
/***/ 874:
|
150
150
|
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
|
151
151
|
|
152
152
|
|
@@ -155,7 +155,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
155
155
|
};
|
156
156
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
157
157
|
exports.getErrorMap = exports.setErrorMap = exports.defaultErrorMap = void 0;
|
158
|
-
const en_1 = __importDefault(__nccwpck_require__(
|
158
|
+
const en_1 = __importDefault(__nccwpck_require__(986));
|
159
159
|
exports.defaultErrorMap = en_1.default;
|
160
160
|
let overrideErrorMap = en_1.default;
|
161
161
|
function setErrorMap(map) {
|
@@ -170,7 +170,7 @@ exports.getErrorMap = getErrorMap;
|
|
170
170
|
|
171
171
|
/***/ }),
|
172
172
|
|
173
|
-
/***/
|
173
|
+
/***/ 286:
|
174
174
|
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
|
175
175
|
|
176
176
|
|
@@ -189,17 +189,17 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
189
189
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
190
190
|
};
|
191
191
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
192
|
-
__exportStar(__nccwpck_require__(
|
193
|
-
__exportStar(__nccwpck_require__(
|
194
|
-
__exportStar(__nccwpck_require__(
|
195
|
-
__exportStar(__nccwpck_require__(
|
196
|
-
__exportStar(__nccwpck_require__(
|
197
|
-
__exportStar(__nccwpck_require__(
|
192
|
+
__exportStar(__nccwpck_require__(874), exports);
|
193
|
+
__exportStar(__nccwpck_require__(148), exports);
|
194
|
+
__exportStar(__nccwpck_require__(163), exports);
|
195
|
+
__exportStar(__nccwpck_require__(919), exports);
|
196
|
+
__exportStar(__nccwpck_require__(796), exports);
|
197
|
+
__exportStar(__nccwpck_require__(36), exports);
|
198
198
|
|
199
199
|
|
200
200
|
/***/ }),
|
201
201
|
|
202
|
-
/***/
|
202
|
+
/***/ 121:
|
203
203
|
/***/ ((__unused_webpack_module, exports) => {
|
204
204
|
|
205
205
|
|
@@ -214,7 +214,7 @@ var errorUtil;
|
|
214
214
|
|
215
215
|
/***/ }),
|
216
216
|
|
217
|
-
/***/
|
217
|
+
/***/ 148:
|
218
218
|
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
|
219
219
|
|
220
220
|
|
@@ -223,8 +223,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
223
223
|
};
|
224
224
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
225
225
|
exports.isAsync = exports.isValid = exports.isDirty = exports.isAborted = exports.OK = exports.DIRTY = exports.INVALID = exports.ParseStatus = exports.addIssueToContext = exports.EMPTY_PATH = exports.makeIssue = void 0;
|
226
|
-
const errors_1 = __nccwpck_require__(
|
227
|
-
const en_1 = __importDefault(__nccwpck_require__(
|
226
|
+
const errors_1 = __nccwpck_require__(874);
|
227
|
+
const en_1 = __importDefault(__nccwpck_require__(986));
|
228
228
|
const makeIssue = (params) => {
|
229
229
|
const { data, path, errorMaps, issueData } = params;
|
230
230
|
const fullPath = [...path, ...(issueData.path || [])];
|
@@ -346,7 +346,7 @@ exports.isAsync = isAsync;
|
|
346
346
|
|
347
347
|
/***/ }),
|
348
348
|
|
349
|
-
/***/
|
349
|
+
/***/ 163:
|
350
350
|
/***/ ((__unused_webpack_module, exports) => {
|
351
351
|
|
352
352
|
|
@@ -355,7 +355,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
355
355
|
|
356
356
|
/***/ }),
|
357
357
|
|
358
|
-
/***/
|
358
|
+
/***/ 919:
|
359
359
|
/***/ ((__unused_webpack_module, exports) => {
|
360
360
|
|
361
361
|
|
@@ -504,7 +504,7 @@ exports.getParsedType = getParsedType;
|
|
504
504
|
|
505
505
|
/***/ }),
|
506
506
|
|
507
|
-
/***/
|
507
|
+
/***/ 437:
|
508
508
|
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
|
509
509
|
|
510
510
|
|
@@ -536,21 +536,21 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
536
536
|
};
|
537
537
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
538
538
|
exports.z = void 0;
|
539
|
-
const z = __importStar(__nccwpck_require__(
|
539
|
+
const z = __importStar(__nccwpck_require__(286));
|
540
540
|
exports.z = z;
|
541
|
-
__exportStar(__nccwpck_require__(
|
541
|
+
__exportStar(__nccwpck_require__(286), exports);
|
542
542
|
exports["default"] = z;
|
543
543
|
|
544
544
|
|
545
545
|
/***/ }),
|
546
546
|
|
547
|
-
/***/
|
547
|
+
/***/ 986:
|
548
548
|
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
|
549
549
|
|
550
550
|
|
551
551
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
552
|
-
const util_1 = __nccwpck_require__(
|
553
|
-
const ZodError_1 = __nccwpck_require__(
|
552
|
+
const util_1 = __nccwpck_require__(919);
|
553
|
+
const ZodError_1 = __nccwpck_require__(36);
|
554
554
|
const errorMap = (issue, _ctx) => {
|
555
555
|
let message;
|
556
556
|
switch (issue.code) {
|
@@ -680,7 +680,7 @@ exports["default"] = errorMap;
|
|
680
680
|
|
681
681
|
/***/ }),
|
682
682
|
|
683
|
-
/***/
|
683
|
+
/***/ 796:
|
684
684
|
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
|
685
685
|
|
686
686
|
|
@@ -699,11 +699,11 @@ var _ZodEnum_cache, _ZodNativeEnum_cache;
|
|
699
699
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
700
700
|
exports.boolean = exports.bigint = exports.array = exports.any = exports.coerce = exports.ZodFirstPartyTypeKind = exports.late = exports.ZodSchema = exports.Schema = exports.custom = exports.ZodReadonly = exports.ZodPipeline = exports.ZodBranded = exports.BRAND = exports.ZodNaN = exports.ZodCatch = exports.ZodDefault = exports.ZodNullable = exports.ZodOptional = exports.ZodTransformer = exports.ZodEffects = exports.ZodPromise = exports.ZodNativeEnum = exports.ZodEnum = exports.ZodLiteral = exports.ZodLazy = exports.ZodFunction = exports.ZodSet = exports.ZodMap = exports.ZodRecord = exports.ZodTuple = exports.ZodIntersection = exports.ZodDiscriminatedUnion = exports.ZodUnion = exports.ZodObject = exports.ZodArray = exports.ZodVoid = exports.ZodNever = exports.ZodUnknown = exports.ZodAny = exports.ZodNull = exports.ZodUndefined = exports.ZodSymbol = exports.ZodDate = exports.ZodBoolean = exports.ZodBigInt = exports.ZodNumber = exports.ZodString = exports.datetimeRegex = exports.ZodType = void 0;
|
701
701
|
exports.NEVER = exports["void"] = exports.unknown = exports.union = exports.undefined = exports.tuple = exports.transformer = exports.symbol = exports.string = exports.strictObject = exports.set = exports.record = exports.promise = exports.preprocess = exports.pipeline = exports.ostring = exports.optional = exports.onumber = exports.oboolean = exports.object = exports.number = exports.nullable = exports["null"] = exports.never = exports.nativeEnum = exports.nan = exports.map = exports.literal = exports.lazy = exports.intersection = exports["instanceof"] = exports["function"] = exports["enum"] = exports.effect = exports.discriminatedUnion = exports.date = void 0;
|
702
|
-
const errors_1 = __nccwpck_require__(
|
703
|
-
const errorUtil_1 = __nccwpck_require__(
|
704
|
-
const parseUtil_1 = __nccwpck_require__(
|
705
|
-
const util_1 = __nccwpck_require__(
|
706
|
-
const ZodError_1 = __nccwpck_require__(
|
702
|
+
const errors_1 = __nccwpck_require__(874);
|
703
|
+
const errorUtil_1 = __nccwpck_require__(121);
|
704
|
+
const parseUtil_1 = __nccwpck_require__(148);
|
705
|
+
const util_1 = __nccwpck_require__(919);
|
706
|
+
const ZodError_1 = __nccwpck_require__(36);
|
707
707
|
class ParseInputLazyPath {
|
708
708
|
constructor(parent, value, path, key) {
|
709
709
|
this._cachedPath = [];
|
@@ -1117,15 +1117,15 @@ const base64urlRegex = /^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z
|
|
1117
1117
|
const dateRegexSource = `((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))`;
|
1118
1118
|
const dateRegex = new RegExp(`^${dateRegexSource}$`);
|
1119
1119
|
function timeRegexSource(args) {
|
1120
|
-
|
1121
|
-
let regex = `([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d`;
|
1120
|
+
let secondsRegexSource = `[0-5]\\d`;
|
1122
1121
|
if (args.precision) {
|
1123
|
-
|
1122
|
+
secondsRegexSource = `${secondsRegexSource}\\.\\d{${args.precision}}`;
|
1124
1123
|
}
|
1125
1124
|
else if (args.precision == null) {
|
1126
|
-
|
1125
|
+
secondsRegexSource = `${secondsRegexSource}(\\.\\d+)?`;
|
1127
1126
|
}
|
1128
|
-
|
1127
|
+
const secondsQuantifier = args.precision ? "+" : "?"; // require seconds if precision is nonzero
|
1128
|
+
return `([01]\\d|2[0-3]):[0-5]\\d(:${secondsRegexSource})${secondsQuantifier}`;
|
1129
1129
|
}
|
1130
1130
|
function timeRegex(args) {
|
1131
1131
|
return new RegExp(`^${timeRegexSource(args)}$`);
|
@@ -4575,7 +4575,7 @@ exports.NEVER = parseUtil_1.INVALID;
|
|
4575
4575
|
/******/ // startup
|
4576
4576
|
/******/ // Load entry module and return exports
|
4577
4577
|
/******/ // This entry module is referenced by other modules so it can't be inlined
|
4578
|
-
/******/ var __webpack_exports__ = __nccwpck_require__(
|
4578
|
+
/******/ var __webpack_exports__ = __nccwpck_require__(437);
|
4579
4579
|
/******/ module.exports = __webpack_exports__;
|
4580
4580
|
/******/
|
4581
4581
|
/******/ })()
|
@@ -1 +1 @@
|
|
1
|
-
{"name":"zod","author":"Colin McDonnell <colin@colinhacks.com>","version":"3.24.
|
1
|
+
{"name":"zod","author":"Colin McDonnell <colin@colinhacks.com>","version":"3.24.4","funding":"https://github.com/sponsors/colinhacks","license":"MIT","types":"./index.d.ts","type":"commonjs"}
|
package/dist/ChunkGraph.d.ts
CHANGED
@@ -7,6 +7,7 @@ export declare class ChunkGraph {
|
|
7
7
|
#private;
|
8
8
|
static __from_binding(binding: JsChunkGraph): ChunkGraph;
|
9
9
|
constructor(binding: JsChunkGraph);
|
10
|
+
hasChunkEntryDependentChunks(chunk: Chunk): boolean;
|
10
11
|
getChunkModules(chunk: Chunk): ReadonlyArray<Module>;
|
11
12
|
getChunkModulesIterable(chunk: Chunk): Iterable<Module>;
|
12
13
|
getOrderedChunkModulesIterable(chunk: Chunk, compareFn: (a: Module, b: Module) => number): Iterable<Module>;
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
package/dist/Compilation.d.ts
CHANGED
@@ -18,7 +18,7 @@ import { ChunkGroup } from "./ChunkGroup";
|
|
18
18
|
import type { Compiler } from "./Compiler";
|
19
19
|
import type { ContextModuleFactory } from "./ContextModuleFactory";
|
20
20
|
import { Entrypoint } from "./Entrypoint";
|
21
|
-
import type {
|
21
|
+
import type { Module } from "./Module";
|
22
22
|
import ModuleGraph from "./ModuleGraph";
|
23
23
|
import type { NormalModuleCompilationHooks } from "./NormalModule";
|
24
24
|
import type { NormalModuleFactory } from "./NormalModuleFactory";
|
@@ -35,6 +35,8 @@ import { StatsPrinter } from "./stats/StatsPrinter";
|
|
35
35
|
import type { InputFileSystem } from "./util/fs";
|
36
36
|
import type Hash from "./util/hash";
|
37
37
|
import "./Chunks";
|
38
|
+
import "./CodeGenerationResults";
|
39
|
+
import type { CodeGenerationResult } from "./taps/compilation";
|
38
40
|
export type Assets = Record<string, Source>;
|
39
41
|
export interface Asset {
|
40
42
|
name: string;
|
@@ -236,6 +238,7 @@ export declare class Compilation {
|
|
236
238
|
*/
|
237
239
|
get namedChunks(): ReadonlyMap<string, Readonly<Chunk>>;
|
238
240
|
get entries(): Map<string, EntryData>;
|
241
|
+
get codeGenerationResults(): binding.CodeGenerationResults;
|
239
242
|
getCache(name: string): import("./lib/CacheFacade").CacheFacade;
|
240
243
|
createStatsOptions(statsValue: StatsValue | undefined, context?: CreateStatsOptionsContext): NormalizedStatsOptions;
|
241
244
|
createStatsFactory(options: StatsOptions): StatsFactory;
|
@@ -315,6 +318,7 @@ export declare class Compilation {
|
|
315
318
|
rebuildModule(module: Module, f: (err: Error | null, module: Module | null) => void): void;
|
316
319
|
addRuntimeModule(chunk: Chunk, runtimeModule: RuntimeModule): void;
|
317
320
|
addInclude(context: string, dependency: ReturnType<typeof EntryPlugin.createDependency>, options: EntryOptions, callback: (err?: null | WebpackError, module?: Module) => void): void;
|
321
|
+
addEntry(context: string, dependency: ReturnType<typeof EntryPlugin.createDependency>, optionsOrName: EntryOptions | string, callback: (err?: null | WebpackError, module?: Module) => void): void;
|
318
322
|
/**
|
319
323
|
* Get the `Source` of a given asset filename.
|
320
324
|
*
|
package/dist/Module.d.ts
CHANGED
@@ -51,10 +51,3 @@ declare module "@rspack/binding" {
|
|
51
51
|
}
|
52
52
|
}
|
53
53
|
export { Module } from "@rspack/binding";
|
54
|
-
export declare class CodeGenerationResult {
|
55
|
-
#private;
|
56
|
-
constructor(result: binding.JsCodegenerationResult);
|
57
|
-
get(sourceType: string): string;
|
58
|
-
}
|
59
|
-
export declare class CodeGenerationResults {
|
60
|
-
}
|
@@ -29,7 +29,7 @@ export declare class SubresourceIntegrityPlugin extends NativeSubresourceIntegri
|
|
29
29
|
private integrities;
|
30
30
|
private options;
|
31
31
|
private validateError;
|
32
|
-
constructor(options
|
32
|
+
constructor(options?: SubresourceIntegrityPluginOptions);
|
33
33
|
private isEnabled;
|
34
34
|
private getIntegrityChecksumForAsset;
|
35
35
|
private handleHwpPluginArgs;
|
@@ -11,7 +11,9 @@ export type HtmlRspackPluginHooks = {
|
|
11
11
|
beforeAssetTagGeneration: liteTapable.AsyncSeriesWaterfallHook<[
|
12
12
|
JsBeforeAssetTagGenerationData & ExtraPluginHookData
|
13
13
|
]>;
|
14
|
-
alterAssetTags: liteTapable.AsyncSeriesWaterfallHook<[
|
14
|
+
alterAssetTags: liteTapable.AsyncSeriesWaterfallHook<[
|
15
|
+
JsAlterAssetTagsData & ExtraPluginHookData
|
16
|
+
]>;
|
15
17
|
alterAssetTagGroups: liteTapable.AsyncSeriesWaterfallHook<[
|
16
18
|
JsAlterAssetTagGroupsData & ExtraPluginHookData
|
17
19
|
]>;
|
@@ -72,8 +72,12 @@ export type HtmlRspackPluginOptions = {
|
|
72
72
|
* If `true` then append a unique Rspack compilation hash to all included scripts and CSS files. This is useful for cache busting.
|
73
73
|
*/
|
74
74
|
hash?: boolean;
|
75
|
+
/**
|
76
|
+
* Any other options will be passed by hooks.
|
77
|
+
*/
|
78
|
+
[key: string]: any;
|
75
79
|
};
|
76
80
|
export declare function validateHtmlPluginOptions(options: HtmlRspackPluginOptions): string | null;
|
77
|
-
export declare const getPluginOptions: (compilation: Compilation) =>
|
78
|
-
export declare const setPluginOptions: (compilation: Compilation, options: HtmlRspackPluginOptions) => void;
|
79
|
-
export declare const cleanPluginOptions: (compilation: Compilation) => void;
|
81
|
+
export declare const getPluginOptions: (compilation: Compilation, uid: number) => any;
|
82
|
+
export declare const setPluginOptions: (compilation: Compilation, uid: number, options: HtmlRspackPluginOptions) => void;
|
83
|
+
export declare const cleanPluginOptions: (compilation: Compilation, uid: number) => void;
|
@@ -18,7 +18,6 @@ declare const HtmlRspackPlugin: typeof HtmlRspackPluginImpl & {
|
|
18
18
|
*/
|
19
19
|
getHooks: (compilation: Compilation) => HtmlRspackPluginHooks;
|
20
20
|
getCompilationHooks: (compilation: Compilation) => HtmlRspackPluginHooks;
|
21
|
-
getCompilationOptions: (compilation: Compilation) => HtmlRspackPluginOptions | void;
|
22
21
|
createHtmlTagObject: (tagName: string, attributes?: Record<string, string | boolean>, innerHTML?: string | undefined) => JsHtmlPluginTag;
|
23
22
|
version: number;
|
24
23
|
};
|
package/dist/config/adapter.d.ts
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
import { type RawOptions } from "@rspack/binding";
|
2
2
|
import type { Compiler } from "../Compiler";
|
3
|
-
import { type LoaderContext, type LoaderDefinition, type LoaderDefinitionFunction } from "./adapterRuleUse";
|
3
|
+
import { type LoaderContext, type LoaderDefinition, type LoaderDefinitionFunction, type PitchLoaderDefinitionFunction } from "./adapterRuleUse";
|
4
4
|
import type { RspackOptionsNormalized } from "./normalization";
|
5
5
|
import type { Resolve } from "./types";
|
6
|
-
export type { LoaderContext, LoaderDefinition, LoaderDefinitionFunction };
|
6
|
+
export type { LoaderContext, LoaderDefinition, LoaderDefinitionFunction, PitchLoaderDefinitionFunction };
|
7
7
|
export declare const getRawOptions: (options: RspackOptionsNormalized, compiler: Compiler) => RawOptions;
|
8
8
|
export declare function getRawResolve(resolve: Resolve): RawOptions["resolve"];
|
package/dist/config/types.d.ts
CHANGED
@@ -620,7 +620,7 @@ export type RuleSetRule = {
|
|
620
620
|
resourceFragment?: RuleSetCondition;
|
621
621
|
/** Matches all modules that match this resource against the Resource's query. */
|
622
622
|
resourceQuery?: RuleSetCondition;
|
623
|
-
/** Matches
|
623
|
+
/** Matches modules based on [MIME type](https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/MIME_types) instead of file extension. It's primarily useful for data URI module */
|
624
624
|
mimetype?: RuleSetCondition;
|
625
625
|
/** Matches all modules that match this resource, and will match against the Resource's scheme. */
|
626
626
|
scheme?: RuleSetCondition;
|
@@ -682,6 +682,7 @@ export type AssetParserOptions = {
|
|
682
682
|
dataUrlCondition?: AssetParserDataUrlOptions;
|
683
683
|
};
|
684
684
|
export type CssParserNamedExports = boolean;
|
685
|
+
export type CssParserUrl = boolean;
|
685
686
|
/** Options object for `css` modules. */
|
686
687
|
export type CssParserOptions = {
|
687
688
|
/**
|
@@ -689,6 +690,11 @@ export type CssParserOptions = {
|
|
689
690
|
* @default true
|
690
691
|
* */
|
691
692
|
namedExports?: CssParserNamedExports;
|
693
|
+
/**
|
694
|
+
* Allow to enable/disables handling the CSS functions url.
|
695
|
+
* @default true
|
696
|
+
* */
|
697
|
+
url?: CssParserUrl;
|
692
698
|
};
|
693
699
|
/** Options object for `css/auto` modules. */
|
694
700
|
export type CssAutoParserOptions = {
|
@@ -697,6 +703,11 @@ export type CssAutoParserOptions = {
|
|
697
703
|
* @default true
|
698
704
|
* */
|
699
705
|
namedExports?: CssParserNamedExports;
|
706
|
+
/**
|
707
|
+
* Allow to enable/disables handling the CSS functions url.
|
708
|
+
* @default true
|
709
|
+
* */
|
710
|
+
url?: CssParserUrl;
|
700
711
|
};
|
701
712
|
/** Options object for `css/module` modules. */
|
702
713
|
export type CssModuleParserOptions = {
|
@@ -705,6 +716,11 @@ export type CssModuleParserOptions = {
|
|
705
716
|
* @default true
|
706
717
|
* */
|
707
718
|
namedExports?: CssParserNamedExports;
|
719
|
+
/**
|
720
|
+
* Allow to enable/disables handling the CSS functions url.
|
721
|
+
* @default true
|
722
|
+
* */
|
723
|
+
url?: CssParserUrl;
|
708
724
|
};
|
709
725
|
type ExportsPresence = "error" | "warn" | "auto" | false;
|
710
726
|
export type JavascriptParserOptions = {
|
@@ -822,6 +838,10 @@ export type AssetGeneratorDataUrl = AssetGeneratorDataUrlOptions | AssetGenerato
|
|
822
838
|
export type AssetInlineGeneratorOptions = {
|
823
839
|
/** Only for modules with module type 'asset' or 'asset/inline'. */
|
824
840
|
dataUrl?: AssetGeneratorDataUrl;
|
841
|
+
/**
|
842
|
+
* Whether or not this asset module should be considered binary. This can be set to 'false' to treat this asset module as text.
|
843
|
+
*/
|
844
|
+
binary?: boolean;
|
825
845
|
};
|
826
846
|
/** Emit the asset in the specified folder relative to 'output.path'. */
|
827
847
|
export type AssetModuleOutputPath = Filename;
|
@@ -852,6 +872,10 @@ export type AssetResourceGeneratorOptions = {
|
|
852
872
|
* @default "url"
|
853
873
|
*/
|
854
874
|
importMode?: AssetModuleImportMode;
|
875
|
+
/**
|
876
|
+
* Whether or not this asset module should be considered binary. This can be set to 'false' to treat this asset module as text.
|
877
|
+
*/
|
878
|
+
binary?: boolean;
|
855
879
|
};
|
856
880
|
/** Generator options for asset modules. */
|
857
881
|
export type AssetGeneratorOptions = AssetInlineGeneratorOptions & AssetResourceGeneratorOptions;
|