react-server-dom-webpack 19.0.0-rc-3da26163a3-20240704 → 19.0.0-rc-df783f9ea1-20240708

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.
@@ -1262,7 +1262,8 @@
1262
1262
  encodeFormAction,
1263
1263
  nonce,
1264
1264
  temporaryReferences,
1265
- findSourceMapURL
1265
+ findSourceMapURL,
1266
+ replayConsole
1266
1267
  ) {
1267
1268
  var chunks = new Map();
1268
1269
  this._bundlerConfig = bundlerConfig;
@@ -1277,6 +1278,7 @@
1277
1278
  this._buffer = [];
1278
1279
  this._tempRefs = temporaryReferences;
1279
1280
  this._debugFindSourceMapURL = findSourceMapURL;
1281
+ this._replayConsole = replayConsole;
1280
1282
  this._fromJSON = createFromJSONCallback(this);
1281
1283
  }
1282
1284
  function resolveBuffer(response, id, buffer) {
@@ -1666,46 +1668,47 @@
1666
1668
  (response._debugInfo || (response._debugInfo = [])).push(buffer);
1667
1669
  break;
1668
1670
  case 87:
1669
- buffer = JSON.parse(buffer, response._fromJSON);
1670
- response = buffer[0];
1671
- id = buffer[3];
1672
- tag = buffer.slice(4);
1673
- b: {
1674
- buffer = 0;
1675
- switch (response) {
1676
- case "dir":
1677
- case "dirxml":
1678
- case "groupEnd":
1679
- case "table":
1680
- console[response].apply(console, tag);
1681
- break b;
1682
- case "assert":
1683
- buffer = 1;
1671
+ if (response._replayConsole)
1672
+ b: {
1673
+ (buffer = JSON.parse(buffer, response._fromJSON)),
1674
+ (response = buffer[0]),
1675
+ (id = buffer[3]),
1676
+ (tag = buffer.slice(4)),
1677
+ (buffer = 0);
1678
+ switch (response) {
1679
+ case "dir":
1680
+ case "dirxml":
1681
+ case "groupEnd":
1682
+ case "table":
1683
+ console[response].apply(console, tag);
1684
+ break b;
1685
+ case "assert":
1686
+ buffer = 1;
1687
+ }
1688
+ tag = tag.slice(0);
1689
+ "string" === typeof tag[buffer]
1690
+ ? tag.splice(
1691
+ buffer,
1692
+ 1,
1693
+ "%c%s%c " + tag[buffer],
1694
+ "background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px",
1695
+ " " + id + " ",
1696
+ ""
1697
+ )
1698
+ : tag.splice(
1699
+ buffer,
1700
+ 0,
1701
+ "%c%s%c ",
1702
+ "background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px",
1703
+ " " + id + " ",
1704
+ ""
1705
+ );
1706
+ "error" === response
1707
+ ? error$jscomp$0.apply(console, tag)
1708
+ : "warn" === response
1709
+ ? warn.apply(console, tag)
1710
+ : console[response].apply(console, tag);
1684
1711
  }
1685
- tag = tag.slice(0);
1686
- "string" === typeof tag[buffer]
1687
- ? tag.splice(
1688
- buffer,
1689
- 1,
1690
- "%c%s%c " + tag[buffer],
1691
- "background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px",
1692
- " " + id + " ",
1693
- ""
1694
- )
1695
- : tag.splice(
1696
- buffer,
1697
- 0,
1698
- "%c%s%c ",
1699
- "background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px",
1700
- " " + id + " ",
1701
- ""
1702
- );
1703
- "error" === response
1704
- ? error$jscomp$0.apply(console, tag)
1705
- : "warn" === response
1706
- ? warn.apply(console, tag)
1707
- : console[response].apply(console, tag);
1708
- }
1709
1712
  break;
1710
1713
  case 82:
1711
1714
  startReadableStream(response, id, void 0);
@@ -1806,7 +1809,8 @@
1806
1809
  options && options.temporaryReferences
1807
1810
  ? options.temporaryReferences
1808
1811
  : void 0,
1809
- options && options.findSourceMapURL ? options.findSourceMapURL : void 0
1812
+ options && options.findSourceMapURL ? options.findSourceMapURL : void 0,
1813
+ options ? !1 !== options.replayConsoleLogs : !0
1810
1814
  );
1811
1815
  }
1812
1816
  function startReadingFromStream(response, stream) {
@@ -1433,7 +1433,8 @@
1433
1433
  encodeFormAction,
1434
1434
  nonce,
1435
1435
  temporaryReferences,
1436
- findSourceMapURL
1436
+ findSourceMapURL,
1437
+ replayConsole
1437
1438
  ) {
1438
1439
  var chunks = new Map();
1439
1440
  this._bundlerConfig = bundlerConfig;
@@ -1448,6 +1449,7 @@
1448
1449
  this._buffer = [];
1449
1450
  this._tempRefs = temporaryReferences;
1450
1451
  this._debugFindSourceMapURL = findSourceMapURL;
1452
+ this._replayConsole = replayConsole;
1451
1453
  this._fromJSON = createFromJSONCallback(this);
1452
1454
  }
1453
1455
  function resolveBuffer(response, id, buffer) {
@@ -1842,46 +1844,47 @@
1842
1844
  (response._debugInfo || (response._debugInfo = [])).push(buffer);
1843
1845
  break;
1844
1846
  case 87:
1845
- buffer = JSON.parse(buffer, response._fromJSON);
1846
- response = buffer[0];
1847
- id = buffer[3];
1848
- tag = buffer.slice(4);
1849
- b: {
1850
- buffer = 0;
1851
- switch (response) {
1852
- case "dir":
1853
- case "dirxml":
1854
- case "groupEnd":
1855
- case "table":
1856
- console[response].apply(console, tag);
1857
- break b;
1858
- case "assert":
1859
- buffer = 1;
1847
+ if (response._replayConsole)
1848
+ b: {
1849
+ (buffer = JSON.parse(buffer, response._fromJSON)),
1850
+ (response = buffer[0]),
1851
+ (id = buffer[3]),
1852
+ (tag = buffer.slice(4)),
1853
+ (buffer = 0);
1854
+ switch (response) {
1855
+ case "dir":
1856
+ case "dirxml":
1857
+ case "groupEnd":
1858
+ case "table":
1859
+ console[response].apply(console, tag);
1860
+ break b;
1861
+ case "assert":
1862
+ buffer = 1;
1863
+ }
1864
+ tag = tag.slice(0);
1865
+ "string" === typeof tag[buffer]
1866
+ ? tag.splice(
1867
+ buffer,
1868
+ 1,
1869
+ "\u001b[0m\u001b[7m%c%s\u001b[0m%c " + tag[buffer],
1870
+ "background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px",
1871
+ " " + id + " ",
1872
+ ""
1873
+ )
1874
+ : tag.splice(
1875
+ buffer,
1876
+ 0,
1877
+ "\u001b[0m\u001b[7m%c%s\u001b[0m%c ",
1878
+ "background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px",
1879
+ " " + id + " ",
1880
+ ""
1881
+ );
1882
+ "error" === response
1883
+ ? error$jscomp$0.apply(console, tag)
1884
+ : "warn" === response
1885
+ ? warn.apply(console, tag)
1886
+ : console[response].apply(console, tag);
1860
1887
  }
1861
- tag = tag.slice(0);
1862
- "string" === typeof tag[buffer]
1863
- ? tag.splice(
1864
- buffer,
1865
- 1,
1866
- "\u001b[0m\u001b[7m%c%s\u001b[0m%c " + tag[buffer],
1867
- "background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px",
1868
- " " + id + " ",
1869
- ""
1870
- )
1871
- : tag.splice(
1872
- buffer,
1873
- 0,
1874
- "\u001b[0m\u001b[7m%c%s\u001b[0m%c ",
1875
- "background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px",
1876
- " " + id + " ",
1877
- ""
1878
- );
1879
- "error" === response
1880
- ? error$jscomp$0.apply(console, tag)
1881
- : "warn" === response
1882
- ? warn.apply(console, tag)
1883
- : console[response].apply(console, tag);
1884
- }
1885
1888
  break;
1886
1889
  case 82:
1887
1890
  startReadableStream(response, id, void 0);
@@ -1987,7 +1990,8 @@
1987
1990
  options && options.temporaryReferences
1988
1991
  ? options.temporaryReferences
1989
1992
  : void 0,
1990
- options && options.findSourceMapURL ? options.findSourceMapURL : void 0
1993
+ options && options.findSourceMapURL ? options.findSourceMapURL : void 0,
1994
+ options ? !0 === options.replayConsoleLogs : !1
1991
1995
  );
1992
1996
  }
1993
1997
  function startReadingFromStream(response, stream) {
@@ -1433,7 +1433,8 @@
1433
1433
  encodeFormAction,
1434
1434
  nonce,
1435
1435
  temporaryReferences,
1436
- findSourceMapURL
1436
+ findSourceMapURL,
1437
+ replayConsole
1437
1438
  ) {
1438
1439
  var chunks = new Map();
1439
1440
  this._bundlerConfig = bundlerConfig;
@@ -1448,6 +1449,7 @@
1448
1449
  this._buffer = [];
1449
1450
  this._tempRefs = temporaryReferences;
1450
1451
  this._debugFindSourceMapURL = findSourceMapURL;
1452
+ this._replayConsole = replayConsole;
1451
1453
  this._fromJSON = createFromJSONCallback(this);
1452
1454
  }
1453
1455
  function resolveBuffer(response, id, buffer) {
@@ -1845,46 +1847,47 @@
1845
1847
  (response._debugInfo || (response._debugInfo = [])).push(row);
1846
1848
  break;
1847
1849
  case 87:
1848
- row = JSON.parse(row, response._fromJSON);
1849
- response = row[0];
1850
- id = row[3];
1851
- tag = row.slice(4);
1852
- b: {
1853
- row = 0;
1854
- switch (response) {
1855
- case "dir":
1856
- case "dirxml":
1857
- case "groupEnd":
1858
- case "table":
1859
- console[response].apply(console, tag);
1860
- break b;
1861
- case "assert":
1862
- row = 1;
1850
+ if (response._replayConsole)
1851
+ b: {
1852
+ (row = JSON.parse(row, response._fromJSON)),
1853
+ (response = row[0]),
1854
+ (id = row[3]),
1855
+ (tag = row.slice(4)),
1856
+ (row = 0);
1857
+ switch (response) {
1858
+ case "dir":
1859
+ case "dirxml":
1860
+ case "groupEnd":
1861
+ case "table":
1862
+ console[response].apply(console, tag);
1863
+ break b;
1864
+ case "assert":
1865
+ row = 1;
1866
+ }
1867
+ tag = tag.slice(0);
1868
+ "string" === typeof tag[row]
1869
+ ? tag.splice(
1870
+ row,
1871
+ 1,
1872
+ "\u001b[0m\u001b[7m%c%s\u001b[0m%c " + tag[row],
1873
+ "background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px",
1874
+ " " + id + " ",
1875
+ ""
1876
+ )
1877
+ : tag.splice(
1878
+ row,
1879
+ 0,
1880
+ "\u001b[0m\u001b[7m%c%s\u001b[0m%c ",
1881
+ "background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px",
1882
+ " " + id + " ",
1883
+ ""
1884
+ );
1885
+ "error" === response
1886
+ ? error$jscomp$0.apply(console, tag)
1887
+ : "warn" === response
1888
+ ? warn.apply(console, tag)
1889
+ : console[response].apply(console, tag);
1863
1890
  }
1864
- tag = tag.slice(0);
1865
- "string" === typeof tag[row]
1866
- ? tag.splice(
1867
- row,
1868
- 1,
1869
- "\u001b[0m\u001b[7m%c%s\u001b[0m%c " + tag[row],
1870
- "background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px",
1871
- " " + id + " ",
1872
- ""
1873
- )
1874
- : tag.splice(
1875
- row,
1876
- 0,
1877
- "\u001b[0m\u001b[7m%c%s\u001b[0m%c ",
1878
- "background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px",
1879
- " " + id + " ",
1880
- ""
1881
- );
1882
- "error" === response
1883
- ? error$jscomp$0.apply(console, tag)
1884
- : "warn" === response
1885
- ? warn.apply(console, tag)
1886
- : console[response].apply(console, tag);
1887
- }
1888
1891
  break;
1889
1892
  case 82:
1890
1893
  startReadableStream(response, id, void 0);
@@ -2047,7 +2050,8 @@
2047
2050
  options ? options.encodeFormAction : void 0,
2048
2051
  options && "string" === typeof options.nonce ? options.nonce : void 0,
2049
2052
  void 0,
2050
- options && options.findSourceMapURL ? options.findSourceMapURL : void 0
2053
+ options && options.findSourceMapURL ? options.findSourceMapURL : void 0,
2054
+ options ? !0 === options.replayConsoleLogs : !1
2051
2055
  );
2052
2056
  stream.on("data", function (chunk) {
2053
2057
  if ("string" === typeof chunk) {
@@ -1408,7 +1408,8 @@
1408
1408
  encodeFormAction,
1409
1409
  nonce,
1410
1410
  temporaryReferences,
1411
- findSourceMapURL
1411
+ findSourceMapURL,
1412
+ replayConsole
1412
1413
  ) {
1413
1414
  var chunks = new Map();
1414
1415
  this._bundlerConfig = bundlerConfig;
@@ -1423,6 +1424,7 @@
1423
1424
  this._buffer = [];
1424
1425
  this._tempRefs = temporaryReferences;
1425
1426
  this._debugFindSourceMapURL = findSourceMapURL;
1427
+ this._replayConsole = replayConsole;
1426
1428
  this._fromJSON = createFromJSONCallback(this);
1427
1429
  }
1428
1430
  function resolveBuffer(response, id, buffer) {
@@ -1820,46 +1822,47 @@
1820
1822
  (response._debugInfo || (response._debugInfo = [])).push(row);
1821
1823
  break;
1822
1824
  case 87:
1823
- row = JSON.parse(row, response._fromJSON);
1824
- response = row[0];
1825
- id = row[3];
1826
- tag = row.slice(4);
1827
- b: {
1828
- row = 0;
1829
- switch (response) {
1830
- case "dir":
1831
- case "dirxml":
1832
- case "groupEnd":
1833
- case "table":
1834
- console[response].apply(console, tag);
1835
- break b;
1836
- case "assert":
1837
- row = 1;
1825
+ if (response._replayConsole)
1826
+ b: {
1827
+ (row = JSON.parse(row, response._fromJSON)),
1828
+ (response = row[0]),
1829
+ (id = row[3]),
1830
+ (tag = row.slice(4)),
1831
+ (row = 0);
1832
+ switch (response) {
1833
+ case "dir":
1834
+ case "dirxml":
1835
+ case "groupEnd":
1836
+ case "table":
1837
+ console[response].apply(console, tag);
1838
+ break b;
1839
+ case "assert":
1840
+ row = 1;
1841
+ }
1842
+ tag = tag.slice(0);
1843
+ "string" === typeof tag[row]
1844
+ ? tag.splice(
1845
+ row,
1846
+ 1,
1847
+ "\u001b[0m\u001b[7m%c%s\u001b[0m%c " + tag[row],
1848
+ "background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px",
1849
+ " " + id + " ",
1850
+ ""
1851
+ )
1852
+ : tag.splice(
1853
+ row,
1854
+ 0,
1855
+ "\u001b[0m\u001b[7m%c%s\u001b[0m%c ",
1856
+ "background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px",
1857
+ " " + id + " ",
1858
+ ""
1859
+ );
1860
+ "error" === response
1861
+ ? error$jscomp$0.apply(console, tag)
1862
+ : "warn" === response
1863
+ ? warn.apply(console, tag)
1864
+ : console[response].apply(console, tag);
1838
1865
  }
1839
- tag = tag.slice(0);
1840
- "string" === typeof tag[row]
1841
- ? tag.splice(
1842
- row,
1843
- 1,
1844
- "\u001b[0m\u001b[7m%c%s\u001b[0m%c " + tag[row],
1845
- "background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px",
1846
- " " + id + " ",
1847
- ""
1848
- )
1849
- : tag.splice(
1850
- row,
1851
- 0,
1852
- "\u001b[0m\u001b[7m%c%s\u001b[0m%c ",
1853
- "background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px",
1854
- " " + id + " ",
1855
- ""
1856
- );
1857
- "error" === response
1858
- ? error$jscomp$0.apply(console, tag)
1859
- : "warn" === response
1860
- ? warn.apply(console, tag)
1861
- : console[response].apply(console, tag);
1862
- }
1863
1866
  break;
1864
1867
  case 82:
1865
1868
  startReadableStream(response, id, void 0);
@@ -2022,7 +2025,8 @@
2022
2025
  options ? options.encodeFormAction : void 0,
2023
2026
  options && "string" === typeof options.nonce ? options.nonce : void 0,
2024
2027
  void 0,
2025
- options && options.findSourceMapURL ? options.findSourceMapURL : void 0
2028
+ options && options.findSourceMapURL ? options.findSourceMapURL : void 0,
2029
+ options ? !0 === options.replayConsoleLogs : !1
2026
2030
  );
2027
2031
  stream.on("data", function (chunk) {
2028
2032
  if ("string" === typeof chunk) {