vite 5.1.6 → 5.2.0-beta.0
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/LICENSE.md +6 -0
- package/dist/client/client.mjs +23 -22
- package/dist/client/client.mjs.map +1 -1
- package/dist/node/chunks/{dep-pxQDj-UY.js → dep-6MdzGidO.js} +145 -145
- package/dist/node/chunks/{dep-jvB8WLp9.js → dep-BxRAmRCV.js} +848 -771
- package/dist/node/chunks/{dep-sFlFG1c_.js → dep-DeEXZBZL.js} +2 -2
- package/dist/node/cli.js +6 -6
- package/dist/node/index.d.ts +3 -2
- package/dist/node/index.js +3 -3
- package/dist/node/runtime.d.ts +2 -2
- package/dist/node/runtime.js +9 -6
- package/dist/node/{types.d-FdqQ54oU.d.ts → types.d-aGj9QkWt.d.ts} +1 -1
- package/dist/node-cjs/publicUtils.cjs +405 -405
- package/package.json +4 -3
- /package/dist/node/chunks/{dep-kjUoH5nk.js → dep-CrWVpuYf.js} +0 -0
- /package/dist/node/chunks/{dep-8a-6Quh6.js → dep-IQS-Za7F.js} +0 -0
@@ -1,10 +1,10 @@
|
|
1
|
-
import { C as commonjsGlobal, B as getDefaultExportFromCjs } from './dep-
|
1
|
+
import { C as commonjsGlobal, B as getDefaultExportFromCjs } from './dep-BxRAmRCV.js';
|
2
2
|
import require$$0__default from 'fs';
|
3
3
|
import require$$0 from 'postcss';
|
4
4
|
import require$$0$1 from 'path';
|
5
|
-
import require$$
|
6
|
-
import require$$0$
|
7
|
-
import { l as lib } from './dep-
|
5
|
+
import require$$3 from 'crypto';
|
6
|
+
import require$$0$2 from 'util';
|
7
|
+
import { l as lib } from './dep-IQS-Za7F.js';
|
8
8
|
|
9
9
|
import { fileURLToPath as __cjs_fileURLToPath } from 'node:url';
|
10
10
|
import { dirname as __cjs_dirname } from 'node:path';
|
@@ -1448,122 +1448,6 @@ src$3.exports.postcss = true;
|
|
1448
1448
|
|
1449
1449
|
var srcExports$2 = src$3.exports;
|
1450
1450
|
|
1451
|
-
var BulkUpdateDecorator_1;
|
1452
|
-
var hasRequiredBulkUpdateDecorator;
|
1453
|
-
|
1454
|
-
function requireBulkUpdateDecorator () {
|
1455
|
-
if (hasRequiredBulkUpdateDecorator) return BulkUpdateDecorator_1;
|
1456
|
-
hasRequiredBulkUpdateDecorator = 1;
|
1457
|
-
const BULK_SIZE = 2000;
|
1458
|
-
|
1459
|
-
// We are using an object instead of a Map as this will stay static during the runtime
|
1460
|
-
// so access to it can be optimized by v8
|
1461
|
-
const digestCaches = {};
|
1462
|
-
|
1463
|
-
class BulkUpdateDecorator {
|
1464
|
-
/**
|
1465
|
-
* @param {Hash | function(): Hash} hashOrFactory function to create a hash
|
1466
|
-
* @param {string=} hashKey key for caching
|
1467
|
-
*/
|
1468
|
-
constructor(hashOrFactory, hashKey) {
|
1469
|
-
this.hashKey = hashKey;
|
1470
|
-
|
1471
|
-
if (typeof hashOrFactory === "function") {
|
1472
|
-
this.hashFactory = hashOrFactory;
|
1473
|
-
this.hash = undefined;
|
1474
|
-
} else {
|
1475
|
-
this.hashFactory = undefined;
|
1476
|
-
this.hash = hashOrFactory;
|
1477
|
-
}
|
1478
|
-
|
1479
|
-
this.buffer = "";
|
1480
|
-
}
|
1481
|
-
|
1482
|
-
/**
|
1483
|
-
* Update hash {@link https://nodejs.org/api/crypto.html#crypto_hash_update_data_inputencoding}
|
1484
|
-
* @param {string|Buffer} data data
|
1485
|
-
* @param {string=} inputEncoding data encoding
|
1486
|
-
* @returns {this} updated hash
|
1487
|
-
*/
|
1488
|
-
update(data, inputEncoding) {
|
1489
|
-
if (
|
1490
|
-
inputEncoding !== undefined ||
|
1491
|
-
typeof data !== "string" ||
|
1492
|
-
data.length > BULK_SIZE
|
1493
|
-
) {
|
1494
|
-
if (this.hash === undefined) {
|
1495
|
-
this.hash = this.hashFactory();
|
1496
|
-
}
|
1497
|
-
|
1498
|
-
if (this.buffer.length > 0) {
|
1499
|
-
this.hash.update(this.buffer);
|
1500
|
-
this.buffer = "";
|
1501
|
-
}
|
1502
|
-
|
1503
|
-
this.hash.update(data, inputEncoding);
|
1504
|
-
} else {
|
1505
|
-
this.buffer += data;
|
1506
|
-
|
1507
|
-
if (this.buffer.length > BULK_SIZE) {
|
1508
|
-
if (this.hash === undefined) {
|
1509
|
-
this.hash = this.hashFactory();
|
1510
|
-
}
|
1511
|
-
|
1512
|
-
this.hash.update(this.buffer);
|
1513
|
-
this.buffer = "";
|
1514
|
-
}
|
1515
|
-
}
|
1516
|
-
|
1517
|
-
return this;
|
1518
|
-
}
|
1519
|
-
|
1520
|
-
/**
|
1521
|
-
* Calculates the digest {@link https://nodejs.org/api/crypto.html#crypto_hash_digest_encoding}
|
1522
|
-
* @param {string=} encoding encoding of the return value
|
1523
|
-
* @returns {string|Buffer} digest
|
1524
|
-
*/
|
1525
|
-
digest(encoding) {
|
1526
|
-
let digestCache;
|
1527
|
-
|
1528
|
-
const buffer = this.buffer;
|
1529
|
-
|
1530
|
-
if (this.hash === undefined) {
|
1531
|
-
// short data for hash, we can use caching
|
1532
|
-
const cacheKey = `${this.hashKey}-${encoding}`;
|
1533
|
-
|
1534
|
-
digestCache = digestCaches[cacheKey];
|
1535
|
-
|
1536
|
-
if (digestCache === undefined) {
|
1537
|
-
digestCache = digestCaches[cacheKey] = new Map();
|
1538
|
-
}
|
1539
|
-
|
1540
|
-
const cacheEntry = digestCache.get(buffer);
|
1541
|
-
|
1542
|
-
if (cacheEntry !== undefined) {
|
1543
|
-
return cacheEntry;
|
1544
|
-
}
|
1545
|
-
|
1546
|
-
this.hash = this.hashFactory();
|
1547
|
-
}
|
1548
|
-
|
1549
|
-
if (buffer.length > 0) {
|
1550
|
-
this.hash.update(buffer);
|
1551
|
-
}
|
1552
|
-
|
1553
|
-
const digestResult = this.hash.digest(encoding);
|
1554
|
-
|
1555
|
-
if (digestCache !== undefined) {
|
1556
|
-
digestCache.set(buffer, digestResult);
|
1557
|
-
}
|
1558
|
-
|
1559
|
-
return digestResult;
|
1560
|
-
}
|
1561
|
-
}
|
1562
|
-
|
1563
|
-
BulkUpdateDecorator_1 = BulkUpdateDecorator;
|
1564
|
-
return BulkUpdateDecorator_1;
|
1565
|
-
}
|
1566
|
-
|
1567
1451
|
var wasmHash = {exports: {}};
|
1568
1452
|
|
1569
1453
|
/*
|
@@ -1786,27 +1670,27 @@ function requireWasmHash () {
|
|
1786
1670
|
Author Tobias Koppers @sokra
|
1787
1671
|
*/
|
1788
1672
|
|
1789
|
-
var
|
1790
|
-
var
|
1673
|
+
var xxhash64_1;
|
1674
|
+
var hasRequiredXxhash64;
|
1791
1675
|
|
1792
|
-
function
|
1793
|
-
if (
|
1794
|
-
|
1676
|
+
function requireXxhash64 () {
|
1677
|
+
if (hasRequiredXxhash64) return xxhash64_1;
|
1678
|
+
hasRequiredXxhash64 = 1;
|
1795
1679
|
|
1796
1680
|
const create = requireWasmHash();
|
1797
1681
|
|
1798
|
-
//#region wasm code:
|
1799
|
-
const
|
1682
|
+
//#region wasm code: xxhash64 (../../../assembly/hash/xxhash64.asm.ts) --initialMemory 1
|
1683
|
+
const xxhash64 = new WebAssembly.Module(
|
1800
1684
|
Buffer.from(
|
1801
|
-
//
|
1802
|
-
"
|
1685
|
+
// 1173 bytes
|
1686
|
+
"AGFzbQEAAAABCAJgAX8AYAAAAwQDAQAABQMBAAEGGgV+AUIAC34BQgALfgFCAAt+AUIAC34BQgALByIEBGluaXQAAAZ1cGRhdGUAAQVmaW5hbAACBm1lbW9yeQIACrUIAzAAQtbrgu7q/Yn14AAkAELP1tO+0ser2UIkAUIAJAJC+erQ0OfJoeThACQDQgAkBAvUAQIBfwR+IABFBEAPCyMEIACtfCQEIwAhAiMBIQMjAiEEIwMhBQNAIAIgASkDAELP1tO+0ser2UJ+fEIfiUKHla+vmLbem55/fiECIAMgASkDCELP1tO+0ser2UJ+fEIfiUKHla+vmLbem55/fiEDIAQgASkDEELP1tO+0ser2UJ+fEIfiUKHla+vmLbem55/fiEEIAUgASkDGELP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GfEIEiEKBgoSIkKDAgAGDQid+IAJCsODAgYOGjJgwhHw3AwAL",
|
1803
1687
|
"base64"
|
1804
1688
|
)
|
1805
1689
|
);
|
1806
1690
|
//#endregion
|
1807
1691
|
|
1808
|
-
|
1809
|
-
return
|
1692
|
+
xxhash64_1 = create.bind(null, xxhash64, [], 32, 16);
|
1693
|
+
return xxhash64_1;
|
1810
1694
|
}
|
1811
1695
|
|
1812
1696
|
var BatchedHash_1;
|
@@ -1887,27 +1771,143 @@ function requireBatchedHash () {
|
|
1887
1771
|
Author Tobias Koppers @sokra
|
1888
1772
|
*/
|
1889
1773
|
|
1890
|
-
var
|
1891
|
-
var
|
1774
|
+
var md4_1;
|
1775
|
+
var hasRequiredMd4;
|
1892
1776
|
|
1893
|
-
function
|
1894
|
-
if (
|
1895
|
-
|
1777
|
+
function requireMd4 () {
|
1778
|
+
if (hasRequiredMd4) return md4_1;
|
1779
|
+
hasRequiredMd4 = 1;
|
1896
1780
|
|
1897
1781
|
const create = requireWasmHash();
|
1898
1782
|
|
1899
|
-
//#region wasm code:
|
1900
|
-
const
|
1783
|
+
//#region wasm code: md4 (../../../assembly/hash/md4.asm.ts) --initialMemory 1
|
1784
|
+
const md4 = new WebAssembly.Module(
|
1901
1785
|
Buffer.from(
|
1902
|
-
//
|
1903
|
-
"
|
1786
|
+
// 2150 bytes
|
1787
|
+
"AGFzbQEAAAABCAJgAX8AYAAAAwUEAQAAAAUDAQABBhoFfwFBAAt/AUEAC38BQQALfwFBAAt/AUEACwciBARpbml0AAAGdXBkYXRlAAIFZmluYWwAAwZtZW1vcnkCAAqFEAQmAEGBxpS6BiQBQYnXtv5+JAJB/rnrxXkkA0H2qMmBASQEQQAkAAvMCgEYfyMBIQojAiEGIwMhByMEIQgDQCAAIAVLBEAgBSgCCCINIAcgBiAFKAIEIgsgCCAHIAUoAgAiDCAKIAggBiAHIAhzcXNqakEDdyIDIAYgB3Nxc2pqQQd3IgEgAyAGc3FzampBC3chAiAFKAIUIg8gASACIAUoAhAiCSADIAEgBSgCDCIOIAYgAyACIAEgA3Nxc2pqQRN3IgQgASACc3FzampBA3ciAyACIARzcXNqakEHdyEBIAUoAiAiEiADIAEgBSgCHCIRIAQgAyAFKAIYIhAgAiAEIAEgAyAEc3FzampBC3ciAiABIANzcXNqakETdyIEIAEgAnNxc2pqQQN3IQMgBSgCLCIVIAQgAyAFKAIoIhQgAiAEIAUoAiQiEyABIAIgAyACIARzcXNqakEHdyIBIAMgBHNxc2pqQQt3IgIgASADc3FzampBE3chBCAPIBAgCSAVIBQgEyAFKAI4IhYgAiAEIAUoAjQiFyABIAIgBSgCMCIYIAMgASAEIAEgAnNxc2pqQQN3IgEgAiAEc3FzampBB3ciAiABIARzcXNqakELdyIDIAkgAiAMIAEgBSgCPCIJIAQgASADIAEgAnNxc2pqQRN3IgEgAiADcnEgAiADcXJqakGZ84nUBWpBA3ciAiABIANycSABIANxcmpqQZnzidQFakEFdyIEIAEgAnJxIAEgAnFyaiASakGZ84nUBWpBCXciAyAPIAQgCyACIBggASADIAIgBHJxIAIgBHFyampBmfOJ1AVqQQ13IgEgAyAEcnEgAyAEcXJqakGZ84nUBWpBA3ciAiABIANycSABIANxcmpqQZnzidQFakEFdyIEIAEgAnJxIAEgAnFyampBmfOJ1AVqQQl3IgMgECAEIAIgFyABIAMgAiAEcnEgAiAEcXJqakGZ84nUBWpBDXciASADIARycSADIARxcmogDWpBmfOJ1AVqQQN3IgIgASADcnEgASADcXJqakGZ84nUBWpBBXciBCABIAJycSABIAJxcmpqQZnzidQFakEJdyIDIBEgBCAOIAIgFiABIAMgAiAEcnEgAiAEcXJqakGZ84nUBWpBDXciASADIARycSADIARxcmpqQZnzidQFakEDdyICIAEgA3JxIAEgA3FyampBmfOJ1AVqQQV3IgQgASACcnEgASACcXJqakGZ84nUBWpBCXciAyAMIAIgAyAJIAEgAyACIARycSACIARxcmpqQZnzidQFakENdyIBcyAEc2pqQaHX5/YGakEDdyICIAQgASACcyADc2ogEmpBodfn9g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IgRCj4C8gPCBwAeDQgiGIARC8IHAh4CegPgAg0IEiIQiBEKGjJiw4MCBgwZ8QgSIQoGChIiQoMCAAYNCJ34gBEKw4MCBg4aMmDCEfDcDAEEYIwStIgRC//8DgyAEQoCA/P8Pg0IQhoQiBEL/gYCA8B+DIARCgP6DgIDgP4NCCIaEIgRCj4C8gPCBwAeDQgiGIARC8IHAh4CegPgAg0IEiIQiBEKGjJiw4MCBgwZ8QgSIQoGChIiQoMCAAYNCJ34gBEKw4MCBg4aMmDCEfDcDAAs=",
|
1904
1788
|
"base64"
|
1905
1789
|
)
|
1906
1790
|
);
|
1907
1791
|
//#endregion
|
1908
1792
|
|
1909
|
-
|
1910
|
-
return
|
1793
|
+
md4_1 = create.bind(null, md4, [], 64, 32);
|
1794
|
+
return md4_1;
|
1795
|
+
}
|
1796
|
+
|
1797
|
+
var BulkUpdateDecorator_1;
|
1798
|
+
var hasRequiredBulkUpdateDecorator;
|
1799
|
+
|
1800
|
+
function requireBulkUpdateDecorator () {
|
1801
|
+
if (hasRequiredBulkUpdateDecorator) return BulkUpdateDecorator_1;
|
1802
|
+
hasRequiredBulkUpdateDecorator = 1;
|
1803
|
+
const BULK_SIZE = 2000;
|
1804
|
+
|
1805
|
+
// We are using an object instead of a Map as this will stay static during the runtime
|
1806
|
+
// so access to it can be optimized by v8
|
1807
|
+
const digestCaches = {};
|
1808
|
+
|
1809
|
+
class BulkUpdateDecorator {
|
1810
|
+
/**
|
1811
|
+
* @param {Hash | function(): Hash} hashOrFactory function to create a hash
|
1812
|
+
* @param {string=} hashKey key for caching
|
1813
|
+
*/
|
1814
|
+
constructor(hashOrFactory, hashKey) {
|
1815
|
+
this.hashKey = hashKey;
|
1816
|
+
|
1817
|
+
if (typeof hashOrFactory === "function") {
|
1818
|
+
this.hashFactory = hashOrFactory;
|
1819
|
+
this.hash = undefined;
|
1820
|
+
} else {
|
1821
|
+
this.hashFactory = undefined;
|
1822
|
+
this.hash = hashOrFactory;
|
1823
|
+
}
|
1824
|
+
|
1825
|
+
this.buffer = "";
|
1826
|
+
}
|
1827
|
+
|
1828
|
+
/**
|
1829
|
+
* Update hash {@link https://nodejs.org/api/crypto.html#crypto_hash_update_data_inputencoding}
|
1830
|
+
* @param {string|Buffer} data data
|
1831
|
+
* @param {string=} inputEncoding data encoding
|
1832
|
+
* @returns {this} updated hash
|
1833
|
+
*/
|
1834
|
+
update(data, inputEncoding) {
|
1835
|
+
if (
|
1836
|
+
inputEncoding !== undefined ||
|
1837
|
+
typeof data !== "string" ||
|
1838
|
+
data.length > BULK_SIZE
|
1839
|
+
) {
|
1840
|
+
if (this.hash === undefined) {
|
1841
|
+
this.hash = this.hashFactory();
|
1842
|
+
}
|
1843
|
+
|
1844
|
+
if (this.buffer.length > 0) {
|
1845
|
+
this.hash.update(this.buffer);
|
1846
|
+
this.buffer = "";
|
1847
|
+
}
|
1848
|
+
|
1849
|
+
this.hash.update(data, inputEncoding);
|
1850
|
+
} else {
|
1851
|
+
this.buffer += data;
|
1852
|
+
|
1853
|
+
if (this.buffer.length > BULK_SIZE) {
|
1854
|
+
if (this.hash === undefined) {
|
1855
|
+
this.hash = this.hashFactory();
|
1856
|
+
}
|
1857
|
+
|
1858
|
+
this.hash.update(this.buffer);
|
1859
|
+
this.buffer = "";
|
1860
|
+
}
|
1861
|
+
}
|
1862
|
+
|
1863
|
+
return this;
|
1864
|
+
}
|
1865
|
+
|
1866
|
+
/**
|
1867
|
+
* Calculates the digest {@link https://nodejs.org/api/crypto.html#crypto_hash_digest_encoding}
|
1868
|
+
* @param {string=} encoding encoding of the return value
|
1869
|
+
* @returns {string|Buffer} digest
|
1870
|
+
*/
|
1871
|
+
digest(encoding) {
|
1872
|
+
let digestCache;
|
1873
|
+
|
1874
|
+
const buffer = this.buffer;
|
1875
|
+
|
1876
|
+
if (this.hash === undefined) {
|
1877
|
+
// short data for hash, we can use caching
|
1878
|
+
const cacheKey = `${this.hashKey}-${encoding}`;
|
1879
|
+
|
1880
|
+
digestCache = digestCaches[cacheKey];
|
1881
|
+
|
1882
|
+
if (digestCache === undefined) {
|
1883
|
+
digestCache = digestCaches[cacheKey] = new Map();
|
1884
|
+
}
|
1885
|
+
|
1886
|
+
const cacheEntry = digestCache.get(buffer);
|
1887
|
+
|
1888
|
+
if (cacheEntry !== undefined) {
|
1889
|
+
return cacheEntry;
|
1890
|
+
}
|
1891
|
+
|
1892
|
+
this.hash = this.hashFactory();
|
1893
|
+
}
|
1894
|
+
|
1895
|
+
if (buffer.length > 0) {
|
1896
|
+
this.hash.update(buffer);
|
1897
|
+
}
|
1898
|
+
|
1899
|
+
const digestResult = this.hash.digest(encoding);
|
1900
|
+
|
1901
|
+
if (digestCache !== undefined) {
|
1902
|
+
digestCache.set(buffer, digestResult);
|
1903
|
+
}
|
1904
|
+
|
1905
|
+
return digestResult;
|
1906
|
+
}
|
1907
|
+
}
|
1908
|
+
|
1909
|
+
BulkUpdateDecorator_1 = BulkUpdateDecorator;
|
1910
|
+
return BulkUpdateDecorator_1;
|
1911
1911
|
}
|
1912
1912
|
|
1913
1913
|
const baseEncodeTables = {
|
@@ -1998,7 +1998,7 @@ function getHashDigest$1(buffer, algorithm, digestType, maxLength) {
|
|
1998
1998
|
hash = new BatchedHash(createMd4());
|
1999
1999
|
} else if (algorithm === "native-md4") {
|
2000
2000
|
if (typeof crypto === "undefined") {
|
2001
|
-
crypto = require$$
|
2001
|
+
crypto = require$$3;
|
2002
2002
|
|
2003
2003
|
if (BulkUpdateDecorator === undefined) {
|
2004
2004
|
BulkUpdateDecorator = requireBulkUpdateDecorator();
|
@@ -2008,7 +2008,7 @@ function getHashDigest$1(buffer, algorithm, digestType, maxLength) {
|
|
2008
2008
|
hash = new BulkUpdateDecorator(() => crypto.createHash("md4"), "md4");
|
2009
2009
|
} else {
|
2010
2010
|
if (typeof crypto === "undefined") {
|
2011
|
-
crypto = require$$
|
2011
|
+
crypto = require$$3;
|
2012
2012
|
|
2013
2013
|
if (BulkUpdateDecorator === undefined) {
|
2014
2014
|
BulkUpdateDecorator = requireBulkUpdateDecorator();
|
@@ -3694,7 +3694,7 @@ var attribute$1 = {};
|
|
3694
3694
|
* For Node.js, simply re-export the core `util.deprecate` function.
|
3695
3695
|
*/
|
3696
3696
|
|
3697
|
-
var node = require$$0$
|
3697
|
+
var node = require$$0$2.deprecate;
|
3698
3698
|
|
3699
3699
|
(function (exports) {
|
3700
3700
|
|