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 &&
|
@@ -2101,32 +2191,6 @@
|
|
2101
2191
|
: debugChannelRegistry.register(this, debugChannel));
|
2102
2192
|
this._fromJSON = createFromJSONCallback(this);
|
2103
2193
|
}
|
2104
|
-
function resolveDebugHalt(response, id) {
|
2105
|
-
var chunks = response._chunks,
|
2106
|
-
chunk = chunks.get(id);
|
2107
|
-
chunk || chunks.set(id, (chunk = createPendingChunk(response)));
|
2108
|
-
if ("pending" === chunk.status || "blocked" === chunk.status)
|
2109
|
-
releasePendingChunk(response, chunk),
|
2110
|
-
(response = chunk),
|
2111
|
-
(response.status = "halted"),
|
2112
|
-
(response.value = null),
|
2113
|
-
(response.reason = null);
|
2114
|
-
}
|
2115
|
-
function resolveModel(response, id, model) {
|
2116
|
-
var chunks = response._chunks,
|
2117
|
-
chunk = chunks.get(id);
|
2118
|
-
chunk
|
2119
|
-
? resolveModelChunk(response, chunk, model)
|
2120
|
-
: chunks.set(id, new ReactPromise("resolved_model", model, response));
|
2121
|
-
}
|
2122
|
-
function resolveText(response, id, text) {
|
2123
|
-
var chunks = response._chunks,
|
2124
|
-
chunk = chunks.get(id);
|
2125
|
-
chunk && "pending" !== chunk.status
|
2126
|
-
? chunk.reason.enqueueValue(text)
|
2127
|
-
: (chunk && releasePendingChunk(response, chunk),
|
2128
|
-
chunks.set(id, new ReactPromise("fulfilled", text, null)));
|
2129
|
-
}
|
2130
2194
|
function resolveBuffer(response, id, buffer) {
|
2131
2195
|
var chunks = response._chunks,
|
2132
2196
|
chunk = chunks.get(id);
|
@@ -2175,15 +2239,39 @@
|
|
2175
2239
|
function resolveStream(response, id, stream, controller) {
|
2176
2240
|
var chunks = response._chunks,
|
2177
2241
|
chunk = chunks.get(id);
|
2178
|
-
chunk
|
2179
|
-
|
2180
|
-
|
2181
|
-
|
2182
|
-
|
2183
|
-
|
2184
|
-
|
2185
|
-
|
2186
|
-
|
2242
|
+
if (!chunk)
|
2243
|
+
chunks.set(id, new ReactPromise("fulfilled", stream, controller));
|
2244
|
+
else if ("pending" === chunk.status) {
|
2245
|
+
releasePendingChunk(response, chunk);
|
2246
|
+
id = chunk.value;
|
2247
|
+
if (null != chunk._debugChunk) {
|
2248
|
+
chunks = initializingHandler;
|
2249
|
+
initializingHandler = null;
|
2250
|
+
chunk.status = "blocked";
|
2251
|
+
chunk.value = null;
|
2252
|
+
chunk.reason = null;
|
2253
|
+
try {
|
2254
|
+
if (
|
2255
|
+
(initializeDebugChunk(response, chunk),
|
2256
|
+
(chunk._debugChunk = null),
|
2257
|
+
null !== initializingHandler &&
|
2258
|
+
!initializingHandler.errored &&
|
2259
|
+
0 < initializingHandler.deps)
|
2260
|
+
) {
|
2261
|
+
initializingHandler.value = stream;
|
2262
|
+
initializingHandler.reason = controller;
|
2263
|
+
initializingHandler.chunk = chunk;
|
2264
|
+
return;
|
2265
|
+
}
|
2266
|
+
} finally {
|
2267
|
+
initializingHandler = chunks;
|
2268
|
+
}
|
2269
|
+
}
|
2270
|
+
chunk.status = "fulfilled";
|
2271
|
+
chunk.value = stream;
|
2272
|
+
chunk.reason = controller;
|
2273
|
+
null !== id && wakeChunk(id, chunk.value);
|
2274
|
+
}
|
2187
2275
|
}
|
2188
2276
|
function startReadableStream(response, id, type) {
|
2189
2277
|
var controller = null;
|
@@ -2204,7 +2292,7 @@
|
|
2204
2292
|
},
|
2205
2293
|
enqueueModel: function (json) {
|
2206
2294
|
if (null === previousBlockedChunk) {
|
2207
|
-
var chunk =
|
2295
|
+
var chunk = createResolvedModelChunk(response, json);
|
2208
2296
|
initializeModelChunk(chunk);
|
2209
2297
|
"fulfilled" === chunk.status
|
2210
2298
|
? controller.enqueue(chunk.value)
|
@@ -2366,11 +2454,6 @@
|
|
2366
2454
|
}
|
2367
2455
|
);
|
2368
2456
|
}
|
2369
|
-
function stopStream(response, id, row) {
|
2370
|
-
(response = response._chunks.get(id)) &&
|
2371
|
-
"fulfilled" === response.status &&
|
2372
|
-
response.reason.close("" === row ? '"$undefined"' : row);
|
2373
|
-
}
|
2374
2457
|
function resolveErrorDev(response, errorInfo) {
|
2375
2458
|
var name = errorInfo.name,
|
2376
2459
|
env = errorInfo.env;
|
@@ -2391,50 +2474,6 @@
|
|
2391
2474
|
response.environmentName = env;
|
2392
2475
|
return response;
|
2393
2476
|
}
|
2394
|
-
function resolveHint(response, code, model) {
|
2395
|
-
response = JSON.parse(model, response._fromJSON);
|
2396
|
-
model = ReactDOMSharedInternals.d;
|
2397
|
-
switch (code) {
|
2398
|
-
case "D":
|
2399
|
-
model.D(response);
|
2400
|
-
break;
|
2401
|
-
case "C":
|
2402
|
-
"string" === typeof response
|
2403
|
-
? model.C(response)
|
2404
|
-
: model.C(response[0], response[1]);
|
2405
|
-
break;
|
2406
|
-
case "L":
|
2407
|
-
code = response[0];
|
2408
|
-
var as = response[1];
|
2409
|
-
3 === response.length
|
2410
|
-
? model.L(code, as, response[2])
|
2411
|
-
: model.L(code, as);
|
2412
|
-
break;
|
2413
|
-
case "m":
|
2414
|
-
"string" === typeof response
|
2415
|
-
? model.m(response)
|
2416
|
-
: model.m(response[0], response[1]);
|
2417
|
-
break;
|
2418
|
-
case "X":
|
2419
|
-
"string" === typeof response
|
2420
|
-
? model.X(response)
|
2421
|
-
: model.X(response[0], response[1]);
|
2422
|
-
break;
|
2423
|
-
case "S":
|
2424
|
-
"string" === typeof response
|
2425
|
-
? model.S(response)
|
2426
|
-
: model.S(
|
2427
|
-
response[0],
|
2428
|
-
0 === response[1] ? void 0 : response[1],
|
2429
|
-
3 === response.length ? response[2] : void 0
|
2430
|
-
);
|
2431
|
-
break;
|
2432
|
-
case "M":
|
2433
|
-
"string" === typeof response
|
2434
|
-
? model.M(response)
|
2435
|
-
: model.M(response[0], response[1]);
|
2436
|
-
}
|
2437
|
-
}
|
2438
2477
|
function createFakeFunction(
|
2439
2478
|
name,
|
2440
2479
|
filename,
|
@@ -2646,7 +2685,7 @@
|
|
2646
2685
|
(owner.debugLocation = debugInfo.debugStack));
|
2647
2686
|
}
|
2648
2687
|
}
|
2649
|
-
function
|
2688
|
+
function initializeDebugInfo(response, debugInfo) {
|
2650
2689
|
void 0 !== debugInfo.stack && initializeFakeTask(response, debugInfo);
|
2651
2690
|
null == debugInfo.owner && null != response._debugRootOwner
|
2652
2691
|
? ((debugInfo.owner = response._debugRootOwner),
|
@@ -2655,8 +2694,7 @@
|
|
2655
2694
|
(debugInfo.debugTask = response._debugRootTask))
|
2656
2695
|
: void 0 !== debugInfo.stack &&
|
2657
2696
|
initializeFakeStack(response, debugInfo);
|
2658
|
-
|
2659
|
-
(response._debugInfo || (response._debugInfo = [])).push(debugInfo);
|
2697
|
+
return debugInfo;
|
2660
2698
|
}
|
2661
2699
|
function getCurrentStackInDEV() {
|
2662
2700
|
var owner = currentOwnerInDEV;
|
@@ -2713,22 +2751,37 @@
|
|
2713
2751
|
}
|
2714
2752
|
return JSCompiler_inline_result$jscomp$0;
|
2715
2753
|
}
|
2716
|
-
function resolveConsoleEntry(response,
|
2754
|
+
function resolveConsoleEntry(response, json) {
|
2717
2755
|
if (response._replayConsole) {
|
2718
|
-
var
|
2719
|
-
|
2720
|
-
|
2721
|
-
|
2722
|
-
|
2723
|
-
|
2724
|
-
|
2725
|
-
|
2726
|
-
|
2727
|
-
|
2728
|
-
|
2729
|
-
|
2730
|
-
|
2731
|
-
|
2756
|
+
var blockedChunk = response._blockedConsole;
|
2757
|
+
if (null == blockedChunk)
|
2758
|
+
(blockedChunk = createResolvedModelChunk(response, json)),
|
2759
|
+
initializeModelChunk(blockedChunk),
|
2760
|
+
"fulfilled" === blockedChunk.status
|
2761
|
+
? replayConsoleWithCallStackInDEV(response, blockedChunk.value)
|
2762
|
+
: (blockedChunk.then(
|
2763
|
+
function (v) {
|
2764
|
+
return replayConsoleWithCallStackInDEV(response, v);
|
2765
|
+
},
|
2766
|
+
function () {}
|
2767
|
+
),
|
2768
|
+
(response._blockedConsole = blockedChunk));
|
2769
|
+
else {
|
2770
|
+
var _chunk4 = createPendingChunk(response);
|
2771
|
+
_chunk4.then(
|
2772
|
+
function (v) {
|
2773
|
+
return replayConsoleWithCallStackInDEV(response, v);
|
2774
|
+
},
|
2775
|
+
function () {}
|
2776
|
+
);
|
2777
|
+
response._blockedConsole = _chunk4;
|
2778
|
+
var unblock = function () {
|
2779
|
+
response._blockedConsole === _chunk4 &&
|
2780
|
+
(response._blockedConsole = null);
|
2781
|
+
resolveModelChunk(response, _chunk4, json);
|
2782
|
+
};
|
2783
|
+
blockedChunk.then(unblock, unblock);
|
2784
|
+
}
|
2732
2785
|
}
|
2733
2786
|
}
|
2734
2787
|
function mergeBuffer(buffer, lastChunk) {
|
@@ -2819,46 +2872,99 @@
|
|
2819
2872
|
i++
|
2820
2873
|
)
|
2821
2874
|
row += stringDecoder.decode(buffer[i], decoderOptions);
|
2822
|
-
row += stringDecoder.decode(chunk);
|
2823
|
-
processFullStringRow(response, id, tag, row);
|
2824
|
-
}
|
2825
|
-
function processFullStringRow(response, id, tag, row) {
|
2875
|
+
buffer = row += stringDecoder.decode(chunk);
|
2826
2876
|
switch (tag) {
|
2827
2877
|
case 73:
|
2828
|
-
resolveModule(response, id,
|
2878
|
+
resolveModule(response, id, buffer);
|
2829
2879
|
break;
|
2830
2880
|
case 72:
|
2831
|
-
|
2881
|
+
id = buffer[0];
|
2882
|
+
buffer = buffer.slice(1);
|
2883
|
+
response = JSON.parse(buffer, response._fromJSON);
|
2884
|
+
buffer = ReactDOMSharedInternals.d;
|
2885
|
+
switch (id) {
|
2886
|
+
case "D":
|
2887
|
+
buffer.D(response);
|
2888
|
+
break;
|
2889
|
+
case "C":
|
2890
|
+
"string" === typeof response
|
2891
|
+
? buffer.C(response)
|
2892
|
+
: buffer.C(response[0], response[1]);
|
2893
|
+
break;
|
2894
|
+
case "L":
|
2895
|
+
id = response[0];
|
2896
|
+
tag = response[1];
|
2897
|
+
3 === response.length
|
2898
|
+
? buffer.L(id, tag, response[2])
|
2899
|
+
: buffer.L(id, tag);
|
2900
|
+
break;
|
2901
|
+
case "m":
|
2902
|
+
"string" === typeof response
|
2903
|
+
? buffer.m(response)
|
2904
|
+
: buffer.m(response[0], response[1]);
|
2905
|
+
break;
|
2906
|
+
case "X":
|
2907
|
+
"string" === typeof response
|
2908
|
+
? buffer.X(response)
|
2909
|
+
: buffer.X(response[0], response[1]);
|
2910
|
+
break;
|
2911
|
+
case "S":
|
2912
|
+
"string" === typeof response
|
2913
|
+
? buffer.S(response)
|
2914
|
+
: buffer.S(
|
2915
|
+
response[0],
|
2916
|
+
0 === response[1] ? void 0 : response[1],
|
2917
|
+
3 === response.length ? response[2] : void 0
|
2918
|
+
);
|
2919
|
+
break;
|
2920
|
+
case "M":
|
2921
|
+
"string" === typeof response
|
2922
|
+
? buffer.M(response)
|
2923
|
+
: buffer.M(response[0], response[1]);
|
2924
|
+
}
|
2832
2925
|
break;
|
2833
2926
|
case 69:
|
2834
|
-
|
2835
|
-
|
2836
|
-
|
2837
|
-
|
2838
|
-
|
2927
|
+
tag = response._chunks;
|
2928
|
+
chunk = tag.get(id);
|
2929
|
+
buffer = JSON.parse(buffer);
|
2930
|
+
stringDecoder = resolveErrorDev(response, buffer);
|
2931
|
+
stringDecoder.digest = buffer.digest;
|
2839
2932
|
chunk
|
2840
|
-
? triggerErrorOnChunk(response, chunk,
|
2841
|
-
:
|
2933
|
+
? triggerErrorOnChunk(response, chunk, stringDecoder)
|
2934
|
+
: tag.set(id, new ReactPromise("rejected", null, stringDecoder));
|
2842
2935
|
break;
|
2843
2936
|
case 84:
|
2844
|
-
|
2937
|
+
tag = response._chunks;
|
2938
|
+
(chunk = tag.get(id)) && "pending" !== chunk.status
|
2939
|
+
? chunk.reason.enqueueValue(buffer)
|
2940
|
+
: (chunk && releasePendingChunk(response, chunk),
|
2941
|
+
tag.set(id, new ReactPromise("fulfilled", buffer, null)));
|
2845
2942
|
break;
|
2846
2943
|
case 78:
|
2847
2944
|
case 68:
|
2848
|
-
|
2849
|
-
|
2850
|
-
|
2851
|
-
|
2852
|
-
|
2853
|
-
|
2854
|
-
|
2855
|
-
|
2856
|
-
|
2857
|
-
|
2945
|
+
id = getChunk(response, id);
|
2946
|
+
"fulfilled" !== id.status &&
|
2947
|
+
"rejected" !== id.status &&
|
2948
|
+
"halted" !== id.status &&
|
2949
|
+
"blocked" !== id.status &&
|
2950
|
+
"resolved_module" !== id.status &&
|
2951
|
+
((tag = id._debugChunk),
|
2952
|
+
(chunk = createResolvedModelChunk(response, buffer)),
|
2953
|
+
(chunk._debugChunk = tag),
|
2954
|
+
(id._debugChunk = chunk),
|
2955
|
+
initializeDebugChunk(response, id),
|
2956
|
+
"blocked" === chunk.status &&
|
2957
|
+
void 0 === response._debugChannel &&
|
2958
|
+
'"' === buffer[0] &&
|
2959
|
+
"$" === buffer[1] &&
|
2960
|
+
((buffer = buffer.slice(2, buffer.length - 1).split(":")),
|
2961
|
+
(buffer = parseInt(buffer[0], 16)),
|
2962
|
+
"pending" === getChunk(response, buffer).status &&
|
2963
|
+
(id._debugChunk = null)));
|
2858
2964
|
break;
|
2859
2965
|
case 74:
|
2860
2966
|
case 87:
|
2861
|
-
resolveConsoleEntry(response,
|
2967
|
+
resolveConsoleEntry(response, buffer);
|
2862
2968
|
break;
|
2863
2969
|
case 82:
|
2864
2970
|
startReadableStream(response, id, void 0);
|
@@ -2873,12 +2979,28 @@
|
|
2873
2979
|
startAsyncIterable(response, id, !0);
|
2874
2980
|
break;
|
2875
2981
|
case 67:
|
2876
|
-
|
2982
|
+
(response = response._chunks.get(id)) &&
|
2983
|
+
"fulfilled" === response.status &&
|
2984
|
+
response.reason.close("" === buffer ? '"$undefined"' : buffer);
|
2877
2985
|
break;
|
2878
2986
|
default:
|
2879
|
-
"" ===
|
2880
|
-
|
2881
|
-
|
2987
|
+
if ("" === buffer) {
|
2988
|
+
if (
|
2989
|
+
((buffer = response._chunks),
|
2990
|
+
(tag = buffer.get(id)) ||
|
2991
|
+
buffer.set(id, (tag = createPendingChunk(response))),
|
2992
|
+
"pending" === tag.status || "blocked" === tag.status)
|
2993
|
+
)
|
2994
|
+
releasePendingChunk(response, tag),
|
2995
|
+
(response = tag),
|
2996
|
+
(response.status = "halted"),
|
2997
|
+
(response.value = null),
|
2998
|
+
(response.reason = null);
|
2999
|
+
} else
|
3000
|
+
(tag = response._chunks),
|
3001
|
+
(chunk = tag.get(id))
|
3002
|
+
? resolveModelChunk(response, chunk, buffer)
|
3003
|
+
: tag.set(id, createResolvedModelChunk(response, buffer));
|
2882
3004
|
}
|
2883
3005
|
}
|
2884
3006
|
function createFromJSONCallback(response) {
|
@@ -2931,7 +3053,7 @@
|
|
2931
3053
|
validated = initializingHandler;
|
2932
3054
|
initializingHandler = validated.parent;
|
2933
3055
|
if (validated.errored) {
|
2934
|
-
key = new ReactPromise("rejected", null, validated.
|
3056
|
+
key = new ReactPromise("rejected", null, validated.reason);
|
2935
3057
|
initializeElement(response, value);
|
2936
3058
|
validated = {
|
2937
3059
|
name: getComponentNameFromType(value.type) || "",
|
@@ -3196,14 +3318,12 @@
|
|
3196
3318
|
),
|
3197
3319
|
currentOwnerInDEV = null,
|
3198
3320
|
replayConsoleWithCallStack = {
|
3199
|
-
react_stack_bottom_frame: function (
|
3200
|
-
|
3201
|
-
|
3202
|
-
|
3203
|
-
|
3204
|
-
|
3205
|
-
args
|
3206
|
-
) {
|
3321
|
+
react_stack_bottom_frame: function (response, payload) {
|
3322
|
+
var methodName = payload[0],
|
3323
|
+
stackTrace = payload[1],
|
3324
|
+
owner = payload[2],
|
3325
|
+
env = payload[3];
|
3326
|
+
payload = payload.slice(4);
|
3207
3327
|
var prevStack = ReactSharedInternals.getCurrentStack;
|
3208
3328
|
ReactSharedInternals.getCurrentStack = getCurrentStackInDEV;
|
3209
3329
|
currentOwnerInDEV = null === owner ? response._debugRootOwner : owner;
|
@@ -3217,13 +3337,13 @@
|
|
3217
3337
|
case "table":
|
3218
3338
|
var JSCompiler_inline_result = bind$1.apply(
|
3219
3339
|
console[methodName],
|
3220
|
-
[console].concat(
|
3340
|
+
[console].concat(payload)
|
3221
3341
|
);
|
3222
3342
|
break a;
|
3223
3343
|
case "assert":
|
3224
3344
|
offset = 1;
|
3225
3345
|
}
|
3226
|
-
var newArgs =
|
3346
|
+
var newArgs = payload.slice(0);
|
3227
3347
|
"string" === typeof newArgs[offset]
|
3228
3348
|
? newArgs.splice(
|
3229
3349
|
offset,
|