react-server-dom-webpack 19.0.0-rc-512b09b2-20240718 → 19.0.0-rc-f6cce072-20240723
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/cjs/react-server-dom-webpack-client.browser.development.js +145 -46
- package/cjs/react-server-dom-webpack-client.browser.production.js +14 -14
- package/cjs/react-server-dom-webpack-client.edge.development.js +146 -46
- package/cjs/react-server-dom-webpack-client.edge.production.js +14 -14
- package/cjs/react-server-dom-webpack-client.node.development.js +156 -55
- package/cjs/react-server-dom-webpack-client.node.production.js +18 -18
- package/cjs/react-server-dom-webpack-client.node.unbundled.development.js +152 -51
- package/cjs/react-server-dom-webpack-client.node.unbundled.production.js +14 -14
- package/cjs/react-server-dom-webpack-plugin.js +7 -7
- package/cjs/react-server-dom-webpack-server.browser.development.js +264 -156
- package/cjs/react-server-dom-webpack-server.browser.production.js +56 -56
- package/cjs/react-server-dom-webpack-server.edge.development.js +273 -160
- package/cjs/react-server-dom-webpack-server.edge.production.js +56 -56
- package/cjs/react-server-dom-webpack-server.node.development.js +272 -164
- package/cjs/react-server-dom-webpack-server.node.production.js +56 -56
- package/cjs/react-server-dom-webpack-server.node.unbundled.development.js +268 -160
- package/cjs/react-server-dom-webpack-server.node.unbundled.production.js +52 -52
- package/package.json +3 -3
@@ -202,6 +202,12 @@
|
|
202
202
|
((hasProperties = !0), (trimmed[key] = options[key]));
|
203
203
|
return hasProperties ? trimmed : null;
|
204
204
|
}
|
205
|
+
function prepareStackTrace(error, structuredStackTrace) {
|
206
|
+
error = (error.name || "Error") + ": " + (error.message || "");
|
207
|
+
for (var i = 0; i < structuredStackTrace.length; i++)
|
208
|
+
error += "\n at " + structuredStackTrace[i].toString();
|
209
|
+
return error;
|
210
|
+
}
|
205
211
|
function createTemporaryReference(temporaryReferences, id) {
|
206
212
|
var reference = Object.defineProperties(
|
207
213
|
function () {
|
@@ -354,8 +360,8 @@
|
|
354
360
|
return value.$$typeof === CLIENT_REFERENCE_TAG
|
355
361
|
? "client"
|
356
362
|
: (value = value.displayName || value.name)
|
357
|
-
|
358
|
-
|
363
|
+
? "function " + value
|
364
|
+
: "function";
|
359
365
|
default:
|
360
366
|
return String(value);
|
361
367
|
}
|
@@ -398,8 +404,8 @@
|
|
398
404
|
"string" === typeof value
|
399
405
|
? value
|
400
406
|
: "object" === typeof value && null !== value
|
401
|
-
|
402
|
-
|
407
|
+
? "{" + describeObjectForErrorMessage(value) + "}"
|
408
|
+
: "{" + describeValueForErrorMessage(value) + "}";
|
403
409
|
"" + i === expandedName
|
404
410
|
? ((start = objKind.length),
|
405
411
|
(length = value.length),
|
@@ -485,15 +491,12 @@
|
|
485
491
|
return void 0 === expandedName
|
486
492
|
? objKind
|
487
493
|
: -1 < start && 0 < length
|
488
|
-
|
489
|
-
|
490
|
-
|
494
|
+
? ((objectOrArray = " ".repeat(start) + "^".repeat(length)),
|
495
|
+
"\n " + objKind + "\n " + objectOrArray)
|
496
|
+
: "\n " + objKind;
|
491
497
|
}
|
492
|
-
function
|
493
|
-
|
494
|
-
for (var i = 0; i < structuredStackTrace.length; i++)
|
495
|
-
error += "\n at " + structuredStackTrace[i].toString();
|
496
|
-
return error;
|
498
|
+
function isNotExternal(stackFrame) {
|
499
|
+
return !externalRegExp.test(stackFrame[1]);
|
497
500
|
}
|
498
501
|
function getCurrentStackInDEV() {
|
499
502
|
return "";
|
@@ -554,12 +557,12 @@
|
|
554
557
|
return "Server";
|
555
558
|
}
|
556
559
|
: "function" !== typeof environmentName
|
557
|
-
|
558
|
-
|
559
|
-
|
560
|
-
|
560
|
+
? function () {
|
561
|
+
return environmentName;
|
562
|
+
}
|
563
|
+
: environmentName;
|
561
564
|
this.didWarnForKey = null;
|
562
|
-
model = createTask(this, model, null, !1, abortSet);
|
565
|
+
model = createTask(this, model, null, !1, abortSet, null);
|
563
566
|
pingedTasks.push(model);
|
564
567
|
}
|
565
568
|
function resolveRequest() {
|
@@ -573,7 +576,8 @@
|
|
573
576
|
null,
|
574
577
|
task.keyPath,
|
575
578
|
task.implicitSlot,
|
576
|
-
request.abortableTasks
|
579
|
+
request.abortableTasks,
|
580
|
+
task.debugOwner
|
577
581
|
);
|
578
582
|
(task = thenable._debugInfo) &&
|
579
583
|
forwardDebugInfo(request, newTask.id, task);
|
@@ -670,7 +674,8 @@
|
|
670
674
|
task.model,
|
671
675
|
task.keyPath,
|
672
676
|
task.implicitSlot,
|
673
|
-
request.abortableTasks
|
677
|
+
request.abortableTasks,
|
678
|
+
task.debugOwner
|
674
679
|
);
|
675
680
|
request.abortableTasks.delete(streamTask);
|
676
681
|
request.pendingChunks++;
|
@@ -682,9 +687,6 @@
|
|
682
687
|
reader.read().then(progress, error);
|
683
688
|
return serializeByValueID(streamTask.id);
|
684
689
|
}
|
685
|
-
function callIteratorInDEV(iterator, progress, error) {
|
686
|
-
iterator.next().then(progress, error);
|
687
|
-
}
|
688
690
|
function serializeAsyncIterable(request, task, iterable, iterator) {
|
689
691
|
function progress(entry) {
|
690
692
|
if (!aborted)
|
@@ -735,7 +737,8 @@
|
|
735
737
|
task.model,
|
736
738
|
task.keyPath,
|
737
739
|
task.implicitSlot,
|
738
|
-
request.abortableTasks
|
740
|
+
request.abortableTasks,
|
741
|
+
task.debugOwner
|
739
742
|
);
|
740
743
|
request.abortableTasks.delete(streamTask);
|
741
744
|
request.pendingChunks++;
|
@@ -789,23 +792,6 @@
|
|
789
792
|
lazyType._debugInfo = wakeable._debugInfo || [];
|
790
793
|
return lazyType;
|
791
794
|
}
|
792
|
-
function callComponentInDEV(Component, props, componentDebugInfo) {
|
793
|
-
currentOwner = componentDebugInfo;
|
794
|
-
try {
|
795
|
-
return componentStorage.run(
|
796
|
-
componentDebugInfo,
|
797
|
-
Component,
|
798
|
-
props,
|
799
|
-
void 0
|
800
|
-
);
|
801
|
-
} finally {
|
802
|
-
currentOwner = null;
|
803
|
-
}
|
804
|
-
}
|
805
|
-
function callLazyInitInDEV(lazy) {
|
806
|
-
var init = lazy._init;
|
807
|
-
return init(lazy._payload);
|
808
|
-
}
|
809
795
|
function callWithDebugContextInDEV(task, callback, arg) {
|
810
796
|
currentOwner = { env: task.environmentName, owner: task.debugOwner };
|
811
797
|
try {
|
@@ -965,7 +951,8 @@
|
|
965
951
|
task.model,
|
966
952
|
task.keyPath,
|
967
953
|
task.implicitSlot,
|
968
|
-
request.abortableTasks
|
954
|
+
request.abortableTasks,
|
955
|
+
task.debugOwner
|
969
956
|
);
|
970
957
|
retryTask(request, task);
|
971
958
|
return 1 === task.status
|
@@ -1042,7 +1029,14 @@
|
|
1042
1029
|
return performWork(request);
|
1043
1030
|
}));
|
1044
1031
|
}
|
1045
|
-
function createTask(
|
1032
|
+
function createTask(
|
1033
|
+
request,
|
1034
|
+
model,
|
1035
|
+
keyPath,
|
1036
|
+
implicitSlot,
|
1037
|
+
abortSet,
|
1038
|
+
debugOwner
|
1039
|
+
) {
|
1046
1040
|
request.pendingChunks++;
|
1047
1041
|
var id = request.nextChunkId++;
|
1048
1042
|
"object" !== typeof model ||
|
@@ -1088,6 +1082,7 @@
|
|
1088
1082
|
thenableState: null
|
1089
1083
|
};
|
1090
1084
|
task.environmentName = request.environmentName();
|
1085
|
+
task.debugOwner = debugOwner;
|
1091
1086
|
abortSet.add(task);
|
1092
1087
|
return task;
|
1093
1088
|
}
|
@@ -1103,10 +1098,10 @@
|
|
1103
1098
|
? "$-0"
|
1104
1099
|
: number
|
1105
1100
|
: Infinity === number
|
1106
|
-
|
1107
|
-
|
1108
|
-
|
1109
|
-
|
1101
|
+
? "$Infinity"
|
1102
|
+
: -Infinity === number
|
1103
|
+
? "$-Infinity"
|
1104
|
+
: "$NaN";
|
1110
1105
|
}
|
1111
1106
|
function encodeReferenceChunk(request, id, reference) {
|
1112
1107
|
request = stringify(reference);
|
@@ -1169,7 +1164,14 @@
|
|
1169
1164
|
}
|
1170
1165
|
}
|
1171
1166
|
function outlineModel(request, value) {
|
1172
|
-
value = createTask(
|
1167
|
+
value = createTask(
|
1168
|
+
request,
|
1169
|
+
value,
|
1170
|
+
null,
|
1171
|
+
!1,
|
1172
|
+
request.abortableTasks,
|
1173
|
+
null
|
1174
|
+
);
|
1173
1175
|
retryTask(request, value);
|
1174
1176
|
return value.id;
|
1175
1177
|
}
|
@@ -1234,7 +1236,14 @@
|
|
1234
1236
|
}
|
1235
1237
|
}
|
1236
1238
|
var model = [blob.type],
|
1237
|
-
newTask = createTask(
|
1239
|
+
newTask = createTask(
|
1240
|
+
request,
|
1241
|
+
model,
|
1242
|
+
null,
|
1243
|
+
!1,
|
1244
|
+
request.abortableTasks,
|
1245
|
+
null
|
1246
|
+
),
|
1238
1247
|
reader = blob.stream().getReader(),
|
1239
1248
|
aborted = !1;
|
1240
1249
|
request.abortListeners.add(error);
|
@@ -1273,7 +1282,8 @@
|
|
1273
1282
|
task.model,
|
1274
1283
|
task.keyPath,
|
1275
1284
|
task.implicitSlot,
|
1276
|
-
request.abortableTasks
|
1285
|
+
request.abortableTasks,
|
1286
|
+
task.debugOwner
|
1277
1287
|
);
|
1278
1288
|
value = request.ping;
|
1279
1289
|
key.then(value, value);
|
@@ -1482,13 +1492,14 @@
|
|
1482
1492
|
describeObjectForErrorMessage(parent, parentPropertyName)
|
1483
1493
|
);
|
1484
1494
|
if (
|
1485
|
-
"object" === typeof value.
|
1486
|
-
|
1487
|
-
|
1495
|
+
(("object" === typeof value.debugTask &&
|
1496
|
+
null !== value.debugTask &&
|
1497
|
+
"function" === typeof value.debugTask.run) ||
|
1498
|
+
value.debugStack instanceof Error) &&
|
1499
|
+
"undefined" === typeof value.stack &&
|
1488
1500
|
"string" === typeof value.name &&
|
1489
1501
|
"string" === typeof value.env &&
|
1490
|
-
void 0 !== value.owner
|
1491
|
-
"undefined" === typeof value.stack
|
1502
|
+
void 0 !== value.owner
|
1492
1503
|
)
|
1493
1504
|
return { name: value.name, env: value.env, owner: value.owner };
|
1494
1505
|
if ("Object" !== objectName(value))
|
@@ -1524,10 +1535,10 @@
|
|
1524
1535
|
parent[parentPropertyName] instanceof Date
|
1525
1536
|
? "$D" + value
|
1526
1537
|
: 1024 <= value.length && null !== byteLengthOfChunk
|
1527
|
-
|
1528
|
-
|
1529
|
-
|
1530
|
-
|
1538
|
+
? serializeLargeTextString(request, value)
|
1539
|
+
: "$" === value[0]
|
1540
|
+
? "$" + value
|
1541
|
+
: value;
|
1531
1542
|
if ("boolean" === typeof value) return value;
|
1532
1543
|
if ("number" === typeof value) return serializeNumber(value);
|
1533
1544
|
if ("undefined" === typeof value) return "$undefined";
|
@@ -1635,8 +1646,7 @@
|
|
1635
1646
|
: ((request.status = 2), (request.fatalError = error));
|
1636
1647
|
}
|
1637
1648
|
function emitErrorChunk(request, id, digest, error) {
|
1638
|
-
var
|
1639
|
-
env = request.environmentName();
|
1649
|
+
var env = request.environmentName();
|
1640
1650
|
try {
|
1641
1651
|
if (error instanceof Error) {
|
1642
1652
|
var message = String(error.message);
|
@@ -1644,24 +1654,66 @@
|
|
1644
1654
|
var previousPrepare = Error.prepareStackTrace;
|
1645
1655
|
Error.prepareStackTrace = prepareStackTrace;
|
1646
1656
|
try {
|
1647
|
-
stack = String(error.stack);
|
1657
|
+
var stack = String(error.stack);
|
1648
1658
|
break a;
|
1649
1659
|
} finally {
|
1650
1660
|
Error.prepareStackTrace = previousPrepare;
|
1651
1661
|
}
|
1652
1662
|
stack = void 0;
|
1653
1663
|
}
|
1664
|
+
stack.startsWith("Error: react-stack-top-frame\n") &&
|
1665
|
+
(stack = stack.slice(29));
|
1666
|
+
var idx = stack.indexOf("react-stack-bottom-frame");
|
1667
|
+
-1 !== idx && (idx = stack.lastIndexOf("\n", idx));
|
1668
|
+
-1 !== idx && (stack = stack.slice(0, idx));
|
1669
|
+
var frames = stack.split("\n");
|
1670
|
+
stack = [];
|
1671
|
+
for (
|
1672
|
+
previousPrepare = 0;
|
1673
|
+
previousPrepare < frames.length;
|
1674
|
+
previousPrepare++
|
1675
|
+
) {
|
1676
|
+
var parsed = frameRegExp.exec(frames[previousPrepare]);
|
1677
|
+
if (parsed) {
|
1678
|
+
var name = parsed[1] || "";
|
1679
|
+
"<anonymous>" === name && (name = "");
|
1680
|
+
var filename = parsed[2] || parsed[5] || "";
|
1681
|
+
"<anonymous>" === filename && (filename = "");
|
1682
|
+
stack.push([
|
1683
|
+
name,
|
1684
|
+
filename,
|
1685
|
+
+(parsed[3] || parsed[6]),
|
1686
|
+
+(parsed[4] || parsed[7])
|
1687
|
+
]);
|
1688
|
+
}
|
1689
|
+
}
|
1690
|
+
var stack$jscomp$0 = stack.filter(isNotExternal);
|
1691
|
+
for (frames = 0; frames < stack$jscomp$0.length; frames++) {
|
1692
|
+
var callsite = stack$jscomp$0[frames],
|
1693
|
+
url = callsite[1];
|
1694
|
+
if (url.startsWith("rsc://React/")) {
|
1695
|
+
var suffixIdx = url.lastIndexOf("?");
|
1696
|
+
-1 < suffixIdx && (callsite[1] = url.slice(12, suffixIdx));
|
1697
|
+
}
|
1698
|
+
}
|
1699
|
+
var stack$jscomp$1 = stack$jscomp$0;
|
1654
1700
|
var errorEnv = error.environmentName;
|
1655
1701
|
"string" === typeof errorEnv && (env = errorEnv);
|
1656
1702
|
} else
|
1657
|
-
message =
|
1703
|
+
(message =
|
1658
1704
|
"object" === typeof error && null !== error
|
1659
1705
|
? describeObjectForErrorMessage(error)
|
1660
|
-
: String(error)
|
1706
|
+
: String(error)),
|
1707
|
+
(stack$jscomp$1 = []);
|
1661
1708
|
} catch (x) {
|
1662
1709
|
message = "An error occurred but serializing the error message failed.";
|
1663
1710
|
}
|
1664
|
-
digest = {
|
1711
|
+
digest = {
|
1712
|
+
digest: digest,
|
1713
|
+
message: message,
|
1714
|
+
stack: stack$jscomp$1,
|
1715
|
+
env: env
|
1716
|
+
};
|
1665
1717
|
id = id.toString(16) + ":E" + stringify(digest) + "\n";
|
1666
1718
|
request.completedErrorChunks.push(id);
|
1667
1719
|
}
|
@@ -1755,55 +1807,70 @@
|
|
1755
1807
|
return void 0 !== parent
|
1756
1808
|
? parent
|
1757
1809
|
: isArrayImpl(value)
|
1758
|
-
|
1759
|
-
|
1760
|
-
|
1761
|
-
|
1762
|
-
|
1763
|
-
|
1764
|
-
|
1765
|
-
|
1766
|
-
|
1767
|
-
|
1768
|
-
|
1769
|
-
|
1770
|
-
|
1771
|
-
|
1772
|
-
|
1773
|
-
|
1774
|
-
|
1775
|
-
|
1776
|
-
|
1777
|
-
|
1778
|
-
|
1779
|
-
|
1780
|
-
|
1781
|
-
|
1782
|
-
|
1783
|
-
|
1784
|
-
|
1785
|
-
|
1786
|
-
|
1787
|
-
|
1788
|
-
|
1789
|
-
|
1790
|
-
|
1791
|
-
|
1792
|
-
|
1793
|
-
|
1794
|
-
|
1795
|
-
|
1796
|
-
|
1797
|
-
|
1810
|
+
? value
|
1811
|
+
: value instanceof Map
|
1812
|
+
? ((value = Array.from(value)),
|
1813
|
+
"$Q" +
|
1814
|
+
outlineConsoleValue(request, counter, value).toString(16))
|
1815
|
+
: value instanceof Set
|
1816
|
+
? ((value = Array.from(value)),
|
1817
|
+
"$W" +
|
1818
|
+
outlineConsoleValue(request, counter, value).toString(16))
|
1819
|
+
: "function" === typeof FormData && value instanceof FormData
|
1820
|
+
? serializeFormData(request, value)
|
1821
|
+
: value instanceof ArrayBuffer
|
1822
|
+
? serializeTypedArray(request, "A", new Uint8Array(value))
|
1823
|
+
: value instanceof Int8Array
|
1824
|
+
? serializeTypedArray(request, "O", value)
|
1825
|
+
: value instanceof Uint8Array
|
1826
|
+
? serializeTypedArray(request, "o", value)
|
1827
|
+
: value instanceof Uint8ClampedArray
|
1828
|
+
? serializeTypedArray(request, "U", value)
|
1829
|
+
: value instanceof Int16Array
|
1830
|
+
? serializeTypedArray(request, "S", value)
|
1831
|
+
: value instanceof Uint16Array
|
1832
|
+
? serializeTypedArray(request, "s", value)
|
1833
|
+
: value instanceof Int32Array
|
1834
|
+
? serializeTypedArray(request, "L", value)
|
1835
|
+
: value instanceof Uint32Array
|
1836
|
+
? serializeTypedArray(request, "l", value)
|
1837
|
+
: value instanceof Float32Array
|
1838
|
+
? serializeTypedArray(request, "G", value)
|
1839
|
+
: value instanceof Float64Array
|
1840
|
+
? serializeTypedArray(request, "g", value)
|
1841
|
+
: value instanceof BigInt64Array
|
1842
|
+
? serializeTypedArray(
|
1843
|
+
request,
|
1844
|
+
"M",
|
1845
|
+
value
|
1846
|
+
)
|
1847
|
+
: value instanceof BigUint64Array
|
1848
|
+
? serializeTypedArray(
|
1849
|
+
request,
|
1850
|
+
"m",
|
1851
|
+
value
|
1852
|
+
)
|
1853
|
+
: value instanceof DataView
|
1854
|
+
? serializeTypedArray(
|
1855
|
+
request,
|
1856
|
+
"V",
|
1857
|
+
value
|
1858
|
+
)
|
1859
|
+
: "function" === typeof Blob &&
|
1860
|
+
value instanceof Blob
|
1861
|
+
? serializeBlob(request, value)
|
1862
|
+
: getIteratorFn(value)
|
1863
|
+
? Array.from(value)
|
1864
|
+
: value;
|
1798
1865
|
}
|
1799
1866
|
if ("string" === typeof value)
|
1800
1867
|
return "Z" === value[value.length - 1] && originalValue instanceof Date
|
1801
1868
|
? "$D" + value
|
1802
1869
|
: 1024 <= value.length
|
1803
|
-
|
1804
|
-
|
1805
|
-
|
1806
|
-
|
1870
|
+
? serializeLargeTextString(request, value)
|
1871
|
+
: "$" === value[0]
|
1872
|
+
? "$" + value
|
1873
|
+
: value;
|
1807
1874
|
if ("boolean" === typeof value) return value;
|
1808
1875
|
if ("number" === typeof value) return serializeNumber(value);
|
1809
1876
|
if ("undefined" === typeof value) return "$undefined";
|
@@ -1811,10 +1878,10 @@
|
|
1811
1878
|
return value.$$typeof === CLIENT_REFERENCE_TAG$1
|
1812
1879
|
? serializeClientReference(request, parent, parentPropertyName, value)
|
1813
1880
|
: void 0 !== request.temporaryReferences &&
|
1814
|
-
|
1815
|
-
|
1816
|
-
|
1817
|
-
|
1881
|
+
((request = request.temporaryReferences.get(value)),
|
1882
|
+
void 0 !== request)
|
1883
|
+
? "$T" + request
|
1884
|
+
: "$E(" + (Function.prototype.toString.call(value) + ")");
|
1818
1885
|
if ("symbol" === typeof value) {
|
1819
1886
|
counter = request.writtenSymbols.get(value);
|
1820
1887
|
if (void 0 !== counter) return serializeByValueID(counter);
|
@@ -1860,33 +1927,33 @@
|
|
1860
1927
|
"string" === typeof value && null !== byteLengthOfChunk
|
1861
1928
|
? emitTextChunk(request, id, value)
|
1862
1929
|
: value instanceof ArrayBuffer
|
1863
|
-
|
1864
|
-
|
1865
|
-
|
1866
|
-
|
1867
|
-
|
1868
|
-
|
1869
|
-
|
1870
|
-
|
1871
|
-
|
1872
|
-
|
1873
|
-
|
1874
|
-
|
1875
|
-
|
1876
|
-
|
1877
|
-
|
1878
|
-
|
1879
|
-
|
1880
|
-
|
1881
|
-
|
1882
|
-
|
1883
|
-
|
1884
|
-
|
1885
|
-
|
1886
|
-
|
1887
|
-
|
1888
|
-
|
1889
|
-
|
1930
|
+
? emitTypedArrayChunk(request, id, "A", new Uint8Array(value))
|
1931
|
+
: value instanceof Int8Array
|
1932
|
+
? emitTypedArrayChunk(request, id, "O", value)
|
1933
|
+
: value instanceof Uint8Array
|
1934
|
+
? emitTypedArrayChunk(request, id, "o", value)
|
1935
|
+
: value instanceof Uint8ClampedArray
|
1936
|
+
? emitTypedArrayChunk(request, id, "U", value)
|
1937
|
+
: value instanceof Int16Array
|
1938
|
+
? emitTypedArrayChunk(request, id, "S", value)
|
1939
|
+
: value instanceof Uint16Array
|
1940
|
+
? emitTypedArrayChunk(request, id, "s", value)
|
1941
|
+
: value instanceof Int32Array
|
1942
|
+
? emitTypedArrayChunk(request, id, "L", value)
|
1943
|
+
: value instanceof Uint32Array
|
1944
|
+
? emitTypedArrayChunk(request, id, "l", value)
|
1945
|
+
: value instanceof Float32Array
|
1946
|
+
? emitTypedArrayChunk(request, id, "G", value)
|
1947
|
+
: value instanceof Float64Array
|
1948
|
+
? emitTypedArrayChunk(request, id, "g", value)
|
1949
|
+
: value instanceof BigInt64Array
|
1950
|
+
? emitTypedArrayChunk(request, id, "M", value)
|
1951
|
+
: value instanceof BigUint64Array
|
1952
|
+
? emitTypedArrayChunk(request, id, "m", value)
|
1953
|
+
: value instanceof DataView
|
1954
|
+
? emitTypedArrayChunk(request, id, "V", value)
|
1955
|
+
: ((value = stringify(value, task.toJSON)),
|
1956
|
+
emitModelChunk(request, task.id, value));
|
1890
1957
|
}
|
1891
1958
|
function retryTask(request, task) {
|
1892
1959
|
if (0 === task.status) {
|
@@ -2097,10 +2164,12 @@
|
|
2097
2164
|
"The render was aborted by the server without a reason."
|
2098
2165
|
)
|
2099
2166
|
: "object" === typeof reason &&
|
2100
|
-
|
2101
|
-
|
2102
|
-
|
2103
|
-
|
2167
|
+
null !== reason &&
|
2168
|
+
"function" === typeof reason.then
|
2169
|
+
? Error(
|
2170
|
+
"The render was aborted by the server with a promise."
|
2171
|
+
)
|
2172
|
+
: reason,
|
2104
2173
|
digest = logRecoverableError(request, error, null);
|
2105
2174
|
emitErrorChunk(request, errorId, digest, error);
|
2106
2175
|
abortableTasks.forEach(function (task) {
|
@@ -2119,10 +2188,10 @@
|
|
2119
2188
|
void 0 === reason
|
2120
2189
|
? Error("The render was aborted by the server without a reason.")
|
2121
2190
|
: "object" === typeof reason &&
|
2122
|
-
|
2123
|
-
|
2124
|
-
|
2125
|
-
|
2191
|
+
null !== reason &&
|
2192
|
+
"function" === typeof reason.then
|
2193
|
+
? Error("The render was aborted by the server with a promise.")
|
2194
|
+
: reason;
|
2126
2195
|
abortListeners.forEach(function (callback) {
|
2127
2196
|
return callback(_error);
|
2128
2197
|
});
|
@@ -2173,8 +2242,8 @@
|
|
2173
2242
|
return "*" === metadata.name
|
2174
2243
|
? moduleExports
|
2175
2244
|
: "" === metadata.name
|
2176
|
-
|
2177
|
-
|
2245
|
+
? moduleExports.default
|
2246
|
+
: moduleExports[metadata.name];
|
2178
2247
|
}
|
2179
2248
|
function Chunk(status, value, reason, response) {
|
2180
2249
|
this.status = status;
|
@@ -2831,10 +2900,10 @@
|
|
2831
2900
|
return fn.bind.apply(fn, [null].concat(_ref));
|
2832
2901
|
})
|
2833
2902
|
: bundlerConfig
|
2834
|
-
|
2835
|
-
|
2836
|
-
|
2837
|
-
|
2903
|
+
? Promise.resolve(bundlerConfig).then(function () {
|
2904
|
+
return requireModule(serverReference);
|
2905
|
+
})
|
2906
|
+
: Promise.resolve(requireModule(serverReference));
|
2838
2907
|
}
|
2839
2908
|
function decodeBoundActionMetaData(body, serverManifest, formFieldPrefix) {
|
2840
2909
|
body = createResponse(serverManifest, formFieldPrefix, void 0, body);
|
@@ -3037,8 +3106,8 @@
|
|
3037
3106
|
options
|
3038
3107
|
])
|
3039
3108
|
: "string" === typeof precedence
|
3040
|
-
|
3041
|
-
|
3109
|
+
? emitHint(request, "S", [href, precedence])
|
3110
|
+
: emitHint(request, "S", href);
|
3042
3111
|
}
|
3043
3112
|
previousDispatcher.S(href, precedence, options);
|
3044
3113
|
}
|
@@ -3059,7 +3128,9 @@
|
|
3059
3128
|
}
|
3060
3129
|
}
|
3061
3130
|
};
|
3062
|
-
var
|
3131
|
+
var frameRegExp =
|
3132
|
+
/^ {3} at (?:(.+) \(([^\)]+):(\d+):(\d+)\)|(?:async )?([^\)]+):(\d+):(\d+))$/,
|
3133
|
+
requestStorage = new async_hooks.AsyncLocalStorage(),
|
3063
3134
|
componentStorage = new async_hooks.AsyncLocalStorage(),
|
3064
3135
|
TEMPORARY_REFERENCE_TAG = Symbol.for("react.temporary.reference"),
|
3065
3136
|
proxyHandlers = {
|
@@ -3207,11 +3278,48 @@
|
|
3207
3278
|
'The "react" package in this environment is not configured correctly. The "react-server" condition must be enabled in any environment that runs React Server Components.'
|
3208
3279
|
);
|
3209
3280
|
new ("function" === typeof WeakMap ? WeakMap : Map)();
|
3210
|
-
var
|
3281
|
+
var callComponent = {
|
3282
|
+
"react-stack-bottom-frame": function (
|
3283
|
+
Component,
|
3284
|
+
props,
|
3285
|
+
componentDebugInfo
|
3286
|
+
) {
|
3287
|
+
currentOwner = componentDebugInfo;
|
3288
|
+
try {
|
3289
|
+
return componentStorage.run(
|
3290
|
+
componentDebugInfo,
|
3291
|
+
Component,
|
3292
|
+
props,
|
3293
|
+
void 0
|
3294
|
+
);
|
3295
|
+
} finally {
|
3296
|
+
currentOwner = null;
|
3297
|
+
}
|
3298
|
+
}
|
3299
|
+
},
|
3300
|
+
callComponentInDEV =
|
3301
|
+
callComponent["react-stack-bottom-frame"].bind(callComponent),
|
3302
|
+
callLazyInit = {
|
3303
|
+
"react-stack-bottom-frame": function (lazy) {
|
3304
|
+
var init = lazy._init;
|
3305
|
+
return init(lazy._payload);
|
3306
|
+
}
|
3307
|
+
},
|
3308
|
+
callLazyInitInDEV =
|
3309
|
+
callLazyInit["react-stack-bottom-frame"].bind(callLazyInit),
|
3310
|
+
callIterator = {
|
3311
|
+
"react-stack-bottom-frame": function (iterator, progress, error) {
|
3312
|
+
iterator.next().then(progress, error);
|
3313
|
+
}
|
3314
|
+
},
|
3315
|
+
callIteratorInDEV =
|
3316
|
+
callIterator["react-stack-bottom-frame"].bind(callIterator),
|
3317
|
+
isArrayImpl = Array.isArray,
|
3211
3318
|
getPrototypeOf = Object.getPrototypeOf,
|
3212
3319
|
jsxPropsParents = new WeakMap(),
|
3213
3320
|
jsxChildrenParents = new WeakMap(),
|
3214
3321
|
CLIENT_REFERENCE_TAG = Symbol.for("react.client.reference"),
|
3322
|
+
externalRegExp = /\/node_modules\/|^node:|^$/,
|
3215
3323
|
ObjectPrototype = Object.prototype,
|
3216
3324
|
stringify = JSON.stringify,
|
3217
3325
|
AbortSigil = {},
|
@@ -3337,12 +3445,12 @@
|
|
3337
3445
|
"React doesn't accept base64 encoded file uploads because we don't expect form data passed from a browser to ever encode data that way. If that's the wrong assumption, we can easily fix it."
|
3338
3446
|
);
|
3339
3447
|
pendingFiles++;
|
3340
|
-
var
|
3448
|
+
var JSCompiler_object_inline_chunks_143 = [];
|
3341
3449
|
value.on("data", function (chunk) {
|
3342
|
-
|
3450
|
+
JSCompiler_object_inline_chunks_143.push(chunk);
|
3343
3451
|
});
|
3344
3452
|
value.on("end", function () {
|
3345
|
-
var blob = new Blob(
|
3453
|
+
var blob = new Blob(JSCompiler_object_inline_chunks_143, {
|
3346
3454
|
type: mimeType
|
3347
3455
|
});
|
3348
3456
|
response._formData.append(name, blob, filename);
|