react-server-dom-webpack 19.2.0-canary-d85ec5f5-20250716 → 19.2.0-canary-e9638c33-20250721
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 +276 -153
- package/cjs/react-server-dom-webpack-client.browser.production.js +27 -14
- package/cjs/react-server-dom-webpack-client.edge.development.js +278 -158
- package/cjs/react-server-dom-webpack-client.edge.production.js +27 -14
- package/cjs/react-server-dom-webpack-client.node.development.js +274 -151
- package/cjs/react-server-dom-webpack-client.node.production.js +25 -13
- package/cjs/react-server-dom-webpack-client.node.unbundled.development.js +274 -151
- package/cjs/react-server-dom-webpack-client.node.unbundled.production.js +25 -13
- package/cjs/react-server-dom-webpack-server.browser.development.js +5 -4
- package/cjs/react-server-dom-webpack-server.edge.development.js +5 -4
- package/cjs/react-server-dom-webpack-server.node.development.js +5 -4
- package/cjs/react-server-dom-webpack-server.node.unbundled.development.js +5 -4
- package/package.json +3 -3
@@ -1124,7 +1124,7 @@
|
|
1124
1124
|
this.status = status;
|
1125
1125
|
this.value = value;
|
1126
1126
|
this.reason = reason;
|
1127
|
-
this._debugInfo = null;
|
1127
|
+
this._debugInfo = this._debugChunk = null;
|
1128
1128
|
}
|
1129
1129
|
function unwrapWeakResponse(weakResponse) {
|
1130
1130
|
weakResponse = weakResponse.weak.deref();
|
@@ -1253,13 +1253,30 @@
|
|
1253
1253
|
}
|
1254
1254
|
}
|
1255
1255
|
function triggerErrorOnChunk(response, chunk, error) {
|
1256
|
-
"pending" !== chunk.status && "blocked" !== chunk.status
|
1257
|
-
|
1258
|
-
|
1259
|
-
|
1260
|
-
|
1261
|
-
|
1262
|
-
|
1256
|
+
if ("pending" !== chunk.status && "blocked" !== chunk.status)
|
1257
|
+
chunk.reason.error(error);
|
1258
|
+
else {
|
1259
|
+
releasePendingChunk(response, chunk);
|
1260
|
+
var listeners = chunk.reason;
|
1261
|
+
if ("pending" === chunk.status && null != chunk._debugChunk) {
|
1262
|
+
var prevHandler = initializingHandler;
|
1263
|
+
initializingHandler = null;
|
1264
|
+
chunk.status = "blocked";
|
1265
|
+
chunk.value = null;
|
1266
|
+
chunk.reason = null;
|
1267
|
+
try {
|
1268
|
+
initializeDebugChunk(response, chunk), (chunk._debugChunk = null);
|
1269
|
+
} finally {
|
1270
|
+
initializingHandler = prevHandler;
|
1271
|
+
}
|
1272
|
+
}
|
1273
|
+
chunk.status = "rejected";
|
1274
|
+
chunk.reason = error;
|
1275
|
+
null !== listeners && rejectChunk(listeners, error);
|
1276
|
+
}
|
1277
|
+
}
|
1278
|
+
function createResolvedModelChunk(response, value) {
|
1279
|
+
return new ReactPromise("resolved_model", value, response);
|
1263
1280
|
}
|
1264
1281
|
function createResolvedIteratorResultChunk(response, value, done) {
|
1265
1282
|
return new ReactPromise(
|
@@ -1300,11 +1317,69 @@
|
|
1300
1317
|
var rejectListeners = chunk.reason;
|
1301
1318
|
chunk.status = "resolved_module";
|
1302
1319
|
chunk.value = value;
|
1320
|
+
chunk._debugInfo = null;
|
1303
1321
|
null !== response &&
|
1304
1322
|
(initializeModuleChunk(chunk),
|
1305
1323
|
wakeChunkIfInitialized(chunk, response, rejectListeners));
|
1306
1324
|
}
|
1307
1325
|
}
|
1326
|
+
function initializeDebugChunk(response, chunk) {
|
1327
|
+
var debugChunk = chunk._debugChunk;
|
1328
|
+
if (null !== debugChunk) {
|
1329
|
+
var debugInfo = chunk._debugInfo || (chunk._debugInfo = []);
|
1330
|
+
try {
|
1331
|
+
if ("resolved_model" === debugChunk.status) {
|
1332
|
+
for (
|
1333
|
+
var idx = debugInfo.length, c = debugChunk._debugChunk;
|
1334
|
+
null !== c;
|
1335
|
+
|
1336
|
+
)
|
1337
|
+
"fulfilled" !== c.status && idx++, (c = c._debugChunk);
|
1338
|
+
initializeModelChunk(debugChunk);
|
1339
|
+
switch (debugChunk.status) {
|
1340
|
+
case "fulfilled":
|
1341
|
+
debugInfo[idx] = initializeDebugInfo(
|
1342
|
+
response,
|
1343
|
+
debugChunk.value
|
1344
|
+
);
|
1345
|
+
break;
|
1346
|
+
case "blocked":
|
1347
|
+
case "pending":
|
1348
|
+
waitForReference(
|
1349
|
+
debugChunk,
|
1350
|
+
debugInfo,
|
1351
|
+
"" + idx,
|
1352
|
+
response,
|
1353
|
+
initializeDebugInfo,
|
1354
|
+
[""]
|
1355
|
+
);
|
1356
|
+
break;
|
1357
|
+
default:
|
1358
|
+
throw debugChunk.reason;
|
1359
|
+
}
|
1360
|
+
} else
|
1361
|
+
switch (debugChunk.status) {
|
1362
|
+
case "fulfilled":
|
1363
|
+
break;
|
1364
|
+
case "blocked":
|
1365
|
+
case "pending":
|
1366
|
+
waitForReference(
|
1367
|
+
debugChunk,
|
1368
|
+
{},
|
1369
|
+
"",
|
1370
|
+
response,
|
1371
|
+
initializeDebugInfo,
|
1372
|
+
[""]
|
1373
|
+
);
|
1374
|
+
break;
|
1375
|
+
default:
|
1376
|
+
throw debugChunk.reason;
|
1377
|
+
}
|
1378
|
+
} catch (error) {
|
1379
|
+
triggerErrorOnChunk(response, chunk, error);
|
1380
|
+
}
|
1381
|
+
}
|
1382
|
+
}
|
1308
1383
|
function initializeModelChunk(chunk) {
|
1309
1384
|
var prevHandler = initializingHandler;
|
1310
1385
|
initializingHandler = null;
|
@@ -1313,6 +1388,8 @@
|
|
1313
1388
|
chunk.status = "blocked";
|
1314
1389
|
chunk.value = null;
|
1315
1390
|
chunk.reason = null;
|
1391
|
+
initializeDebugChunk(response, chunk);
|
1392
|
+
chunk._debugChunk = null;
|
1316
1393
|
try {
|
1317
1394
|
var value = JSON.parse(resolvedModel, response._fromJSON),
|
1318
1395
|
resolveListeners = chunk.value;
|
@@ -1321,7 +1398,7 @@
|
|
1321
1398
|
(chunk.reason = null),
|
1322
1399
|
wakeChunk(resolveListeners, value));
|
1323
1400
|
if (null !== initializingHandler) {
|
1324
|
-
if (initializingHandler.errored) throw initializingHandler.
|
1401
|
+
if (initializingHandler.errored) throw initializingHandler.reason;
|
1325
1402
|
if (0 < initializingHandler.deps) {
|
1326
1403
|
initializingHandler.value = value;
|
1327
1404
|
initializingHandler.chunk = chunk;
|
@@ -1515,6 +1592,7 @@
|
|
1515
1592
|
((parentObject = key.value),
|
1516
1593
|
(key.status = "fulfilled"),
|
1517
1594
|
(key.value = handler.value),
|
1595
|
+
(key.reason = handler.reason),
|
1518
1596
|
null !== parentObject && wakeChunk(parentObject, handler.value)));
|
1519
1597
|
}
|
1520
1598
|
function rejectReference(reference, error) {
|
@@ -1523,7 +1601,8 @@
|
|
1523
1601
|
if (!handler.errored) {
|
1524
1602
|
var blockedValue = handler.value;
|
1525
1603
|
handler.errored = !0;
|
1526
|
-
handler.value =
|
1604
|
+
handler.value = null;
|
1605
|
+
handler.reason = error;
|
1527
1606
|
handler = handler.chunk;
|
1528
1607
|
if (null !== handler && "blocked" === handler.status) {
|
1529
1608
|
if (
|
@@ -1569,6 +1648,7 @@
|
|
1569
1648
|
parent: null,
|
1570
1649
|
chunk: null,
|
1571
1650
|
value: null,
|
1651
|
+
reason: null,
|
1572
1652
|
deps: 1,
|
1573
1653
|
errored: !1
|
1574
1654
|
};
|
@@ -1623,6 +1703,7 @@
|
|
1623
1703
|
parent: null,
|
1624
1704
|
chunk: null,
|
1625
1705
|
value: null,
|
1706
|
+
reason: null,
|
1626
1707
|
deps: 1,
|
1627
1708
|
errored: !1
|
1628
1709
|
};
|
@@ -1671,7 +1752,8 @@
|
|
1671
1752
|
if (!handler.errored) {
|
1672
1753
|
var blockedValue = handler.value;
|
1673
1754
|
handler.errored = !0;
|
1674
|
-
handler.value =
|
1755
|
+
handler.value = null;
|
1756
|
+
handler.reason = error;
|
1675
1757
|
var chunk = handler.chunk;
|
1676
1758
|
if (null !== chunk && "blocked" === chunk.status) {
|
1677
1759
|
if (
|
@@ -1742,6 +1824,7 @@
|
|
1742
1824
|
parent: null,
|
1743
1825
|
chunk: null,
|
1744
1826
|
value: null,
|
1827
|
+
reason: null,
|
1745
1828
|
deps: 1,
|
1746
1829
|
errored: !1
|
1747
1830
|
}),
|
@@ -1751,11 +1834,13 @@
|
|
1751
1834
|
return (
|
1752
1835
|
initializingHandler
|
1753
1836
|
? ((initializingHandler.errored = !0),
|
1754
|
-
(initializingHandler.value =
|
1837
|
+
(initializingHandler.value = null),
|
1838
|
+
(initializingHandler.reason = value.reason))
|
1755
1839
|
: (initializingHandler = {
|
1756
1840
|
parent: null,
|
1757
1841
|
chunk: null,
|
1758
|
-
value:
|
1842
|
+
value: null,
|
1843
|
+
reason: value.reason,
|
1759
1844
|
deps: 0,
|
1760
1845
|
errored: !0
|
1761
1846
|
}),
|
@@ -1798,6 +1883,7 @@
|
|
1798
1883
|
parent: null,
|
1799
1884
|
chunk: null,
|
1800
1885
|
value: null,
|
1886
|
+
reason: null,
|
1801
1887
|
deps: 1,
|
1802
1888
|
errored: !1
|
1803
1889
|
}),
|
@@ -1807,11 +1893,13 @@
|
|
1807
1893
|
return (
|
1808
1894
|
initializingHandler
|
1809
1895
|
? ((initializingHandler.errored = !0),
|
1810
|
-
(initializingHandler.value =
|
1896
|
+
(initializingHandler.value = null),
|
1897
|
+
(initializingHandler.reason = id.reason))
|
1811
1898
|
: (initializingHandler = {
|
1812
1899
|
parent: null,
|
1813
1900
|
chunk: null,
|
1814
|
-
value:
|
1901
|
+
value: null,
|
1902
|
+
reason: id.reason,
|
1815
1903
|
deps: 0,
|
1816
1904
|
errored: !0
|
1817
1905
|
}),
|
@@ -1870,6 +1958,7 @@
|
|
1870
1958
|
parent: initializingHandler,
|
1871
1959
|
chunk: null,
|
1872
1960
|
value: null,
|
1961
|
+
reason: null,
|
1873
1962
|
deps: 0,
|
1874
1963
|
errored: !1
|
1875
1964
|
}),
|
@@ -2093,6 +2182,7 @@
|
|
2093
2182
|
));
|
2094
2183
|
this._debugFindSourceMapURL = findSourceMapURL;
|
2095
2184
|
this._debugChannel = debugChannel;
|
2185
|
+
this._blockedConsole = null;
|
2096
2186
|
this._replayConsole = replayConsole;
|
2097
2187
|
this._rootEnvironmentName = environmentName;
|
2098
2188
|
debugChannel &&
|
@@ -2110,32 +2200,6 @@
|
|
2110
2200
|
_buffer: []
|
2111
2201
|
};
|
2112
2202
|
}
|
2113
|
-
function resolveDebugHalt(response, id) {
|
2114
|
-
var chunks = response._chunks,
|
2115
|
-
chunk = chunks.get(id);
|
2116
|
-
chunk || chunks.set(id, (chunk = createPendingChunk(response)));
|
2117
|
-
if ("pending" === chunk.status || "blocked" === chunk.status)
|
2118
|
-
releasePendingChunk(response, chunk),
|
2119
|
-
(response = chunk),
|
2120
|
-
(response.status = "halted"),
|
2121
|
-
(response.value = null),
|
2122
|
-
(response.reason = null);
|
2123
|
-
}
|
2124
|
-
function resolveModel(response, id, model) {
|
2125
|
-
var chunks = response._chunks,
|
2126
|
-
chunk = chunks.get(id);
|
2127
|
-
chunk
|
2128
|
-
? resolveModelChunk(response, chunk, model)
|
2129
|
-
: chunks.set(id, new ReactPromise("resolved_model", model, response));
|
2130
|
-
}
|
2131
|
-
function resolveText(response, id, text) {
|
2132
|
-
var chunks = response._chunks,
|
2133
|
-
chunk = chunks.get(id);
|
2134
|
-
chunk && "pending" !== chunk.status
|
2135
|
-
? chunk.reason.enqueueValue(text)
|
2136
|
-
: (chunk && releasePendingChunk(response, chunk),
|
2137
|
-
chunks.set(id, new ReactPromise("fulfilled", text, null)));
|
2138
|
-
}
|
2139
2203
|
function resolveBuffer(response, id, buffer) {
|
2140
2204
|
var chunks = response._chunks,
|
2141
2205
|
chunk = chunks.get(id);
|
@@ -2184,15 +2248,39 @@
|
|
2184
2248
|
function resolveStream(response, id, stream, controller) {
|
2185
2249
|
var chunks = response._chunks,
|
2186
2250
|
chunk = chunks.get(id);
|
2187
|
-
chunk
|
2188
|
-
|
2189
|
-
|
2190
|
-
|
2191
|
-
|
2192
|
-
|
2193
|
-
|
2194
|
-
|
2195
|
-
|
2251
|
+
if (!chunk)
|
2252
|
+
chunks.set(id, new ReactPromise("fulfilled", stream, controller));
|
2253
|
+
else if ("pending" === chunk.status) {
|
2254
|
+
releasePendingChunk(response, chunk);
|
2255
|
+
id = chunk.value;
|
2256
|
+
if (null != chunk._debugChunk) {
|
2257
|
+
chunks = initializingHandler;
|
2258
|
+
initializingHandler = null;
|
2259
|
+
chunk.status = "blocked";
|
2260
|
+
chunk.value = null;
|
2261
|
+
chunk.reason = null;
|
2262
|
+
try {
|
2263
|
+
if (
|
2264
|
+
(initializeDebugChunk(response, chunk),
|
2265
|
+
(chunk._debugChunk = null),
|
2266
|
+
null !== initializingHandler &&
|
2267
|
+
!initializingHandler.errored &&
|
2268
|
+
0 < initializingHandler.deps)
|
2269
|
+
) {
|
2270
|
+
initializingHandler.value = stream;
|
2271
|
+
initializingHandler.reason = controller;
|
2272
|
+
initializingHandler.chunk = chunk;
|
2273
|
+
return;
|
2274
|
+
}
|
2275
|
+
} finally {
|
2276
|
+
initializingHandler = chunks;
|
2277
|
+
}
|
2278
|
+
}
|
2279
|
+
chunk.status = "fulfilled";
|
2280
|
+
chunk.value = stream;
|
2281
|
+
chunk.reason = controller;
|
2282
|
+
null !== id && wakeChunk(id, chunk.value);
|
2283
|
+
}
|
2196
2284
|
}
|
2197
2285
|
function startReadableStream(response, id, type) {
|
2198
2286
|
var controller = null;
|
@@ -2213,7 +2301,7 @@
|
|
2213
2301
|
},
|
2214
2302
|
enqueueModel: function (json) {
|
2215
2303
|
if (null === previousBlockedChunk) {
|
2216
|
-
var chunk =
|
2304
|
+
var chunk = createResolvedModelChunk(response, json);
|
2217
2305
|
initializeModelChunk(chunk);
|
2218
2306
|
"fulfilled" === chunk.status
|
2219
2307
|
? controller.enqueue(chunk.value)
|
@@ -2375,11 +2463,6 @@
|
|
2375
2463
|
}
|
2376
2464
|
);
|
2377
2465
|
}
|
2378
|
-
function stopStream(response, id, row) {
|
2379
|
-
(response = response._chunks.get(id)) &&
|
2380
|
-
"fulfilled" === response.status &&
|
2381
|
-
response.reason.close("" === row ? '"$undefined"' : row);
|
2382
|
-
}
|
2383
2466
|
function resolveErrorDev(response, errorInfo) {
|
2384
2467
|
var name = errorInfo.name,
|
2385
2468
|
env = errorInfo.env;
|
@@ -2400,50 +2483,6 @@
|
|
2400
2483
|
response.environmentName = env;
|
2401
2484
|
return response;
|
2402
2485
|
}
|
2403
|
-
function resolveHint(response, code, model) {
|
2404
|
-
response = JSON.parse(model, response._fromJSON);
|
2405
|
-
model = ReactDOMSharedInternals.d;
|
2406
|
-
switch (code) {
|
2407
|
-
case "D":
|
2408
|
-
model.D(response);
|
2409
|
-
break;
|
2410
|
-
case "C":
|
2411
|
-
"string" === typeof response
|
2412
|
-
? model.C(response)
|
2413
|
-
: model.C(response[0], response[1]);
|
2414
|
-
break;
|
2415
|
-
case "L":
|
2416
|
-
code = response[0];
|
2417
|
-
var as = response[1];
|
2418
|
-
3 === response.length
|
2419
|
-
? model.L(code, as, response[2])
|
2420
|
-
: model.L(code, as);
|
2421
|
-
break;
|
2422
|
-
case "m":
|
2423
|
-
"string" === typeof response
|
2424
|
-
? model.m(response)
|
2425
|
-
: model.m(response[0], response[1]);
|
2426
|
-
break;
|
2427
|
-
case "X":
|
2428
|
-
"string" === typeof response
|
2429
|
-
? model.X(response)
|
2430
|
-
: model.X(response[0], response[1]);
|
2431
|
-
break;
|
2432
|
-
case "S":
|
2433
|
-
"string" === typeof response
|
2434
|
-
? model.S(response)
|
2435
|
-
: model.S(
|
2436
|
-
response[0],
|
2437
|
-
0 === response[1] ? void 0 : response[1],
|
2438
|
-
3 === response.length ? response[2] : void 0
|
2439
|
-
);
|
2440
|
-
break;
|
2441
|
-
case "M":
|
2442
|
-
"string" === typeof response
|
2443
|
-
? model.M(response)
|
2444
|
-
: model.M(response[0], response[1]);
|
2445
|
-
}
|
2446
|
-
}
|
2447
2486
|
function createFakeFunction(
|
2448
2487
|
name,
|
2449
2488
|
filename,
|
@@ -2655,7 +2694,7 @@
|
|
2655
2694
|
(owner.debugLocation = debugInfo.debugStack));
|
2656
2695
|
}
|
2657
2696
|
}
|
2658
|
-
function
|
2697
|
+
function initializeDebugInfo(response, debugInfo) {
|
2659
2698
|
void 0 !== debugInfo.stack && initializeFakeTask(response, debugInfo);
|
2660
2699
|
null == debugInfo.owner && null != response._debugRootOwner
|
2661
2700
|
? ((debugInfo.owner = response._debugRootOwner),
|
@@ -2664,8 +2703,7 @@
|
|
2664
2703
|
(debugInfo.debugTask = response._debugRootTask))
|
2665
2704
|
: void 0 !== debugInfo.stack &&
|
2666
2705
|
initializeFakeStack(response, debugInfo);
|
2667
|
-
|
2668
|
-
(response._debugInfo || (response._debugInfo = [])).push(debugInfo);
|
2706
|
+
return debugInfo;
|
2669
2707
|
}
|
2670
2708
|
function getCurrentStackInDEV() {
|
2671
2709
|
var owner = currentOwnerInDEV;
|
@@ -2722,22 +2760,37 @@
|
|
2722
2760
|
}
|
2723
2761
|
return JSCompiler_inline_result$jscomp$0;
|
2724
2762
|
}
|
2725
|
-
function resolveConsoleEntry(response,
|
2763
|
+
function resolveConsoleEntry(response, json) {
|
2726
2764
|
if (response._replayConsole) {
|
2727
|
-
var
|
2728
|
-
|
2729
|
-
|
2730
|
-
|
2731
|
-
|
2732
|
-
|
2733
|
-
|
2734
|
-
|
2735
|
-
|
2736
|
-
|
2737
|
-
|
2738
|
-
|
2739
|
-
|
2740
|
-
|
2765
|
+
var blockedChunk = response._blockedConsole;
|
2766
|
+
if (null == blockedChunk)
|
2767
|
+
(blockedChunk = createResolvedModelChunk(response, json)),
|
2768
|
+
initializeModelChunk(blockedChunk),
|
2769
|
+
"fulfilled" === blockedChunk.status
|
2770
|
+
? replayConsoleWithCallStackInDEV(response, blockedChunk.value)
|
2771
|
+
: (blockedChunk.then(
|
2772
|
+
function (v) {
|
2773
|
+
return replayConsoleWithCallStackInDEV(response, v);
|
2774
|
+
},
|
2775
|
+
function () {}
|
2776
|
+
),
|
2777
|
+
(response._blockedConsole = blockedChunk));
|
2778
|
+
else {
|
2779
|
+
var _chunk4 = createPendingChunk(response);
|
2780
|
+
_chunk4.then(
|
2781
|
+
function (v) {
|
2782
|
+
return replayConsoleWithCallStackInDEV(response, v);
|
2783
|
+
},
|
2784
|
+
function () {}
|
2785
|
+
);
|
2786
|
+
response._blockedConsole = _chunk4;
|
2787
|
+
var unblock = function () {
|
2788
|
+
response._blockedConsole === _chunk4 &&
|
2789
|
+
(response._blockedConsole = null);
|
2790
|
+
resolveModelChunk(response, _chunk4, json);
|
2791
|
+
};
|
2792
|
+
blockedChunk.then(unblock, unblock);
|
2793
|
+
}
|
2741
2794
|
}
|
2742
2795
|
}
|
2743
2796
|
function mergeBuffer(buffer, lastChunk) {
|
@@ -2837,33 +2890,89 @@
|
|
2837
2890
|
resolveModule(response, id, row);
|
2838
2891
|
break;
|
2839
2892
|
case 72:
|
2840
|
-
|
2893
|
+
id = row[0];
|
2894
|
+
row = row.slice(1);
|
2895
|
+
response = JSON.parse(row, response._fromJSON);
|
2896
|
+
row = ReactDOMSharedInternals.d;
|
2897
|
+
switch (id) {
|
2898
|
+
case "D":
|
2899
|
+
row.D(response);
|
2900
|
+
break;
|
2901
|
+
case "C":
|
2902
|
+
"string" === typeof response
|
2903
|
+
? row.C(response)
|
2904
|
+
: row.C(response[0], response[1]);
|
2905
|
+
break;
|
2906
|
+
case "L":
|
2907
|
+
id = response[0];
|
2908
|
+
tag = response[1];
|
2909
|
+
3 === response.length
|
2910
|
+
? row.L(id, tag, response[2])
|
2911
|
+
: row.L(id, tag);
|
2912
|
+
break;
|
2913
|
+
case "m":
|
2914
|
+
"string" === typeof response
|
2915
|
+
? row.m(response)
|
2916
|
+
: row.m(response[0], response[1]);
|
2917
|
+
break;
|
2918
|
+
case "X":
|
2919
|
+
"string" === typeof response
|
2920
|
+
? row.X(response)
|
2921
|
+
: row.X(response[0], response[1]);
|
2922
|
+
break;
|
2923
|
+
case "S":
|
2924
|
+
"string" === typeof response
|
2925
|
+
? row.S(response)
|
2926
|
+
: row.S(
|
2927
|
+
response[0],
|
2928
|
+
0 === response[1] ? void 0 : response[1],
|
2929
|
+
3 === response.length ? response[2] : void 0
|
2930
|
+
);
|
2931
|
+
break;
|
2932
|
+
case "M":
|
2933
|
+
"string" === typeof response
|
2934
|
+
? row.M(response)
|
2935
|
+
: row.M(response[0], response[1]);
|
2936
|
+
}
|
2841
2937
|
break;
|
2842
2938
|
case 69:
|
2939
|
+
tag = response._chunks;
|
2940
|
+
var chunk = tag.get(id);
|
2843
2941
|
row = JSON.parse(row);
|
2844
|
-
|
2845
|
-
|
2846
|
-
row = response._chunks;
|
2847
|
-
var chunk = row.get(id);
|
2942
|
+
var error = resolveErrorDev(response, row);
|
2943
|
+
error.digest = row.digest;
|
2848
2944
|
chunk
|
2849
|
-
? triggerErrorOnChunk(response, chunk,
|
2850
|
-
:
|
2945
|
+
? triggerErrorOnChunk(response, chunk, error)
|
2946
|
+
: tag.set(id, new ReactPromise("rejected", null, error));
|
2851
2947
|
break;
|
2852
2948
|
case 84:
|
2853
|
-
|
2949
|
+
tag = response._chunks;
|
2950
|
+
(chunk = tag.get(id)) && "pending" !== chunk.status
|
2951
|
+
? chunk.reason.enqueueValue(row)
|
2952
|
+
: (chunk && releasePendingChunk(response, chunk),
|
2953
|
+
tag.set(id, new ReactPromise("fulfilled", row, null)));
|
2854
2954
|
break;
|
2855
2955
|
case 78:
|
2856
2956
|
case 68:
|
2857
|
-
|
2858
|
-
|
2859
|
-
|
2860
|
-
|
2861
|
-
|
2862
|
-
|
2863
|
-
|
2864
|
-
|
2865
|
-
|
2866
|
-
|
2957
|
+
id = getChunk(response, id);
|
2958
|
+
"fulfilled" !== id.status &&
|
2959
|
+
"rejected" !== id.status &&
|
2960
|
+
"halted" !== id.status &&
|
2961
|
+
"blocked" !== id.status &&
|
2962
|
+
"resolved_module" !== id.status &&
|
2963
|
+
((tag = id._debugChunk),
|
2964
|
+
(chunk = createResolvedModelChunk(response, row)),
|
2965
|
+
(chunk._debugChunk = tag),
|
2966
|
+
(id._debugChunk = chunk),
|
2967
|
+
initializeDebugChunk(response, id),
|
2968
|
+
"blocked" === chunk.status &&
|
2969
|
+
void 0 === response._debugChannel &&
|
2970
|
+
'"' === row[0] &&
|
2971
|
+
"$" === row[1] &&
|
2972
|
+
((row = row.slice(2, row.length - 1).split(":")),
|
2973
|
+
(row = parseInt(row[0], 16)),
|
2974
|
+
"pending" === getChunk(response, row).status &&
|
2975
|
+
(id._debugChunk = null)));
|
2867
2976
|
break;
|
2868
2977
|
case 74:
|
2869
2978
|
case 87:
|
@@ -2882,12 +2991,28 @@
|
|
2882
2991
|
startAsyncIterable(response, id, !0);
|
2883
2992
|
break;
|
2884
2993
|
case 67:
|
2885
|
-
|
2994
|
+
(response = response._chunks.get(id)) &&
|
2995
|
+
"fulfilled" === response.status &&
|
2996
|
+
response.reason.close("" === row ? '"$undefined"' : row);
|
2886
2997
|
break;
|
2887
2998
|
default:
|
2888
|
-
"" === row
|
2889
|
-
|
2890
|
-
|
2999
|
+
if ("" === row) {
|
3000
|
+
if (
|
3001
|
+
((row = response._chunks),
|
3002
|
+
(tag = row.get(id)) ||
|
3003
|
+
row.set(id, (tag = createPendingChunk(response))),
|
3004
|
+
"pending" === tag.status || "blocked" === tag.status)
|
3005
|
+
)
|
3006
|
+
releasePendingChunk(response, tag),
|
3007
|
+
(response = tag),
|
3008
|
+
(response.status = "halted"),
|
3009
|
+
(response.value = null),
|
3010
|
+
(response.reason = null);
|
3011
|
+
} else
|
3012
|
+
(tag = response._chunks),
|
3013
|
+
(chunk = tag.get(id))
|
3014
|
+
? resolveModelChunk(response, chunk, row)
|
3015
|
+
: tag.set(id, createResolvedModelChunk(response, row));
|
2891
3016
|
}
|
2892
3017
|
}
|
2893
3018
|
function processBinaryChunk(weakResponse, streamState, chunk) {
|
@@ -3030,7 +3155,7 @@
|
|
3030
3155
|
validated = initializingHandler;
|
3031
3156
|
initializingHandler = validated.parent;
|
3032
3157
|
if (validated.errored) {
|
3033
|
-
key = new ReactPromise("rejected", null, validated.
|
3158
|
+
key = new ReactPromise("rejected", null, validated.reason);
|
3034
3159
|
initializeElement(response, value);
|
3035
3160
|
validated = {
|
3036
3161
|
name: getComponentNameFromType(value.type) || "",
|
@@ -3206,14 +3331,12 @@
|
|
3206
3331
|
),
|
3207
3332
|
currentOwnerInDEV = null,
|
3208
3333
|
replayConsoleWithCallStack = {
|
3209
|
-
react_stack_bottom_frame: function (
|
3210
|
-
|
3211
|
-
|
3212
|
-
|
3213
|
-
|
3214
|
-
|
3215
|
-
args
|
3216
|
-
) {
|
3334
|
+
react_stack_bottom_frame: function (response, payload) {
|
3335
|
+
var methodName = payload[0],
|
3336
|
+
stackTrace = payload[1],
|
3337
|
+
owner = payload[2],
|
3338
|
+
env = payload[3];
|
3339
|
+
payload = payload.slice(4);
|
3217
3340
|
var prevStack = ReactSharedInternals.getCurrentStack;
|
3218
3341
|
ReactSharedInternals.getCurrentStack = getCurrentStackInDEV;
|
3219
3342
|
currentOwnerInDEV = null === owner ? response._debugRootOwner : owner;
|
@@ -3227,13 +3350,13 @@
|
|
3227
3350
|
case "table":
|
3228
3351
|
var JSCompiler_inline_result = bind$1.apply(
|
3229
3352
|
console[methodName],
|
3230
|
-
[console].concat(
|
3353
|
+
[console].concat(payload)
|
3231
3354
|
);
|
3232
3355
|
break a;
|
3233
3356
|
case "assert":
|
3234
3357
|
offset = 1;
|
3235
3358
|
}
|
3236
|
-
var newArgs =
|
3359
|
+
var newArgs = payload.slice(0);
|
3237
3360
|
"string" === typeof newArgs[offset]
|
3238
3361
|
? newArgs.splice(
|
3239
3362
|
offset,
|