@rspack/core 1.3.7 → 1.3.9

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.
Files changed (45) hide show
  1. package/compiled/browserslist/index.js +77 -57
  2. package/compiled/browserslist/package.json +1 -1
  3. package/compiled/graceful-fs/index.js +8 -8
  4. package/compiled/zod/index.d.ts +2 -1772
  5. package/compiled/zod/index.js +35 -35
  6. package/compiled/zod/lib/ZodError.d.ts +164 -0
  7. package/compiled/zod/lib/__tests__/Mocker.d.ts +17 -0
  8. package/compiled/zod/lib/benchmarks/datetime.d.ts +5 -0
  9. package/compiled/zod/lib/benchmarks/discriminatedUnion.d.ts +5 -0
  10. package/compiled/zod/lib/benchmarks/index.d.ts +1 -0
  11. package/compiled/zod/lib/benchmarks/ipv4.d.ts +5 -0
  12. package/compiled/zod/lib/benchmarks/object.d.ts +5 -0
  13. package/compiled/zod/lib/benchmarks/primitives.d.ts +5 -0
  14. package/compiled/zod/lib/benchmarks/realworld.d.ts +5 -0
  15. package/compiled/zod/lib/benchmarks/string.d.ts +5 -0
  16. package/compiled/zod/lib/benchmarks/union.d.ts +5 -0
  17. package/compiled/zod/lib/errors.d.ts +5 -0
  18. package/compiled/zod/lib/external.d.ts +6 -0
  19. package/compiled/zod/lib/helpers/enumUtil.d.ts +8 -0
  20. package/compiled/zod/lib/helpers/errorUtil.d.ts +9 -0
  21. package/compiled/zod/lib/helpers/parseUtil.d.ts +78 -0
  22. package/compiled/zod/lib/helpers/partialUtil.d.ts +8 -0
  23. package/compiled/zod/lib/helpers/typeAliases.d.ts +2 -0
  24. package/compiled/zod/lib/helpers/util.d.ts +82 -0
  25. package/compiled/zod/lib/index.d.ts +4 -0
  26. package/compiled/zod/lib/locales/en.d.ts +3 -0
  27. package/compiled/zod/lib/standard-schema.d.ts +102 -0
  28. package/compiled/zod/lib/types.d.ts +1062 -0
  29. package/compiled/zod/package.json +1 -1
  30. package/dist/ChunkGroup.d.ts +10 -0
  31. package/dist/builtin-loader/swc/pluginImport.d.ts +1 -1
  32. package/dist/builtin-loader/swc/types.d.ts +632 -631
  33. package/dist/builtin-plugin/html-plugin/hooks.d.ts +3 -1
  34. package/dist/builtin-plugin/html-plugin/options.d.ts +7 -3
  35. package/dist/builtin-plugin/html-plugin/plugin.d.ts +0 -1
  36. package/dist/config/types.d.ts +11 -3
  37. package/dist/config/utils.d.ts +1 -1
  38. package/dist/config/zod.d.ts +77 -77
  39. package/dist/exports.d.ts +5 -0
  40. package/dist/index.d.ts +1 -0
  41. package/dist/index.js +644 -597
  42. package/dist/setupEnv.d.ts +1 -0
  43. package/dist/stats/statsFactoryUtils.d.ts +1 -0
  44. package/dist/swc.d.ts +5 -0
  45. package/package.json +11 -11
@@ -1,7 +1,7 @@
1
1
  /******/ (() => { // webpackBootstrap
2
2
  /******/ var __webpack_modules__ = ({
3
3
 
4
- /***/ 40:
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
- /***/ 82:
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__(554)
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__(40)
33
- var env = __nccwpck_require__(944)
34
- var parseWithoutCache = __nccwpck_require__(481) // Will load browser.js in webpack
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
- /***/ 944:
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__(40)
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 && (loc in 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(opts.path, function (dir) {
1534
- var file = path.join(dir, 'browserslist-stats.json')
1535
- return isFile(file) ? file : undefined
1536
- }, statCache)
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(from, function (dir) {
1645
- var config = path.join(dir, 'browserslist')
1646
- var pkg = path.join(dir, 'package.json')
1647
- var rc = path.join(dir, '.browserslistrc')
1648
-
1649
- var pkgBrowserslist
1650
- if (isFile(pkg)) {
1651
- try {
1652
- pkgBrowserslist = parsePackage(pkg)
1653
- } catch (e) {
1654
- if (e.name === 'BrowserslistError') throw e
1655
- console.warn(
1656
- '[Browserslist] Could not parse ' + pkg + '. Ignoring it.'
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
- if (isFile(config) && pkgBrowserslist) {
1662
- throw new BrowserslistError(
1663
- dir + ' contains both browserslist and package.json with browsers'
1664
- )
1665
- } else if (isFile(rc) && pkgBrowserslist) {
1666
- throw new BrowserslistError(
1667
- dir + ' contains both .browserslistrc and package.json with browsers'
1668
- )
1669
- } else if (isFile(config) && isFile(rc)) {
1670
- throw new BrowserslistError(
1671
- dir + ' contains both .browserslistrc and browserslist'
1672
- )
1673
- } else if (isFile(config)) {
1674
- return config
1675
- } else if (isFile(rc)) {
1676
- return rc
1677
- } else if (pkgBrowserslist) {
1678
- return pkg
1679
- }
1680
- }, configPathCache)
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
- /***/ 481:
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
- /***/ 554:
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
- "35.0": "134"
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__(82);
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.4","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"}
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"}
@@ -1,7 +1,7 @@
1
1
  /******/ (() => { // webpackBootstrap
2
2
  /******/ var __webpack_modules__ = ({
3
3
 
4
- /***/ 682:
4
+ /***/ 759:
5
5
  /***/ ((module) => {
6
6
 
7
7
  "use strict";
@@ -32,13 +32,13 @@ function clone (obj) {
32
32
 
33
33
  /***/ }),
34
34
 
35
- /***/ 658:
35
+ /***/ 523:
36
36
  /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
37
37
 
38
38
  var fs = __nccwpck_require__(896)
39
- var polyfills = __nccwpck_require__(443)
40
- var legacy = __nccwpck_require__(248)
41
- var clone = __nccwpck_require__(682)
39
+ var polyfills = __nccwpck_require__(710)
40
+ var legacy = __nccwpck_require__(615)
41
+ var clone = __nccwpck_require__(759)
42
42
 
43
43
  var util = __nccwpck_require__(23)
44
44
 
@@ -487,7 +487,7 @@ function retry () {
487
487
 
488
488
  /***/ }),
489
489
 
490
- /***/ 248:
490
+ /***/ 615:
491
491
  /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
492
492
 
493
493
  var Stream = (__nccwpck_require__(203).Stream)
@@ -612,7 +612,7 @@ function legacy (fs) {
612
612
 
613
613
  /***/ }),
614
614
 
615
- /***/ 443:
615
+ /***/ 710:
616
616
  /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
617
617
 
618
618
  var constants = __nccwpck_require__(140)
@@ -1056,7 +1056,7 @@ module.exports = require("util");
1056
1056
  /******/ // startup
1057
1057
  /******/ // Load entry module and return exports
1058
1058
  /******/ // This entry module is referenced by other modules so it can't be inlined
1059
- /******/ var __webpack_exports__ = __nccwpck_require__(658);
1059
+ /******/ var __webpack_exports__ = __nccwpck_require__(523);
1060
1060
  /******/ module.exports = __webpack_exports__;
1061
1061
  /******/
1062
1062
  /******/ })()