react-server-dom-webpack 19.1.1 → 19.1.3
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 +82 -52
- package/cjs/react-server-dom-webpack-client.browser.production.js +79 -51
- package/cjs/react-server-dom-webpack-client.edge.development.js +80 -50
- package/cjs/react-server-dom-webpack-client.edge.production.js +79 -51
- package/cjs/react-server-dom-webpack-client.node.development.js +80 -50
- package/cjs/react-server-dom-webpack-client.node.production.js +79 -51
- package/cjs/react-server-dom-webpack-server.browser.development.js +467 -244
- package/cjs/react-server-dom-webpack-server.browser.production.js +464 -249
- package/cjs/react-server-dom-webpack-server.edge.development.js +474 -250
- package/cjs/react-server-dom-webpack-server.edge.production.js +467 -251
- package/cjs/react-server-dom-webpack-server.node.development.js +511 -274
- package/cjs/react-server-dom-webpack-server.node.production.js +508 -275
- package/package.json +6 -21
- package/cjs/react-server-dom-webpack-client.node.unbundled.development.js +0 -2962
- package/cjs/react-server-dom-webpack-client.node.unbundled.production.js +0 -1859
- package/cjs/react-server-dom-webpack-server.node.unbundled.development.js +0 -4158
- package/cjs/react-server-dom-webpack-server.node.unbundled.production.js +0 -2868
- package/client.node.unbundled.js +0 -7
- package/server.node.unbundled.js +0 -18
- package/static.node.unbundled.js +0 -12
|
@@ -123,13 +123,11 @@
|
|
|
123
123
|
if ("fulfilled" === moduleExports.status)
|
|
124
124
|
moduleExports = moduleExports.value;
|
|
125
125
|
else throw moduleExports.reason;
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
: moduleExports
|
|
132
|
-
: moduleExports[metadata[2]];
|
|
126
|
+
if ("*" === metadata[2]) return moduleExports;
|
|
127
|
+
if ("" === metadata[2])
|
|
128
|
+
return moduleExports.__esModule ? moduleExports.default : moduleExports;
|
|
129
|
+
if (hasOwnProperty.call(moduleExports, metadata[2]))
|
|
130
|
+
return moduleExports[metadata[2]];
|
|
133
131
|
}
|
|
134
132
|
function loadChunk(chunkId, filename) {
|
|
135
133
|
chunkMap.set(chunkId, filename);
|
|
@@ -519,13 +517,23 @@
|
|
|
519
517
|
pendingParts--;
|
|
520
518
|
}
|
|
521
519
|
}
|
|
520
|
+
parentReference = writtenObjects.get(value);
|
|
522
521
|
if ("function" === typeof value.then) {
|
|
522
|
+
if (void 0 !== parentReference)
|
|
523
|
+
if (modelRoot === value) modelRoot = null;
|
|
524
|
+
else return parentReference;
|
|
523
525
|
null === formData && (formData = new FormData());
|
|
524
526
|
pendingParts++;
|
|
525
527
|
var promiseId = nextPartId++;
|
|
528
|
+
key = "$@" + promiseId.toString(16);
|
|
529
|
+
writtenObjects.set(value, key);
|
|
526
530
|
value.then(function (partValue) {
|
|
527
531
|
try {
|
|
528
|
-
var
|
|
532
|
+
var previousReference = writtenObjects.get(partValue);
|
|
533
|
+
var _partJSON3 =
|
|
534
|
+
void 0 !== previousReference
|
|
535
|
+
? JSON.stringify(previousReference)
|
|
536
|
+
: serializeModel(partValue, promiseId);
|
|
529
537
|
partValue = formData;
|
|
530
538
|
partValue.append(formFieldPrefix + promiseId, _partJSON3);
|
|
531
539
|
pendingParts--;
|
|
@@ -534,9 +542,8 @@
|
|
|
534
542
|
reject(reason);
|
|
535
543
|
}
|
|
536
544
|
}, reject);
|
|
537
|
-
return
|
|
545
|
+
return key;
|
|
538
546
|
}
|
|
539
|
-
parentReference = writtenObjects.get(value);
|
|
540
547
|
if (void 0 !== parentReference)
|
|
541
548
|
if (modelRoot === value) modelRoot = null;
|
|
542
549
|
else return parentReference;
|
|
@@ -694,7 +701,7 @@
|
|
|
694
701
|
null === formData && (formData = new FormData()),
|
|
695
702
|
(parentReference = nextPartId++),
|
|
696
703
|
formData.set(formFieldPrefix + parentReference, key),
|
|
697
|
-
"$
|
|
704
|
+
"$h" + parentReference.toString(16)
|
|
698
705
|
);
|
|
699
706
|
if (
|
|
700
707
|
void 0 !== temporaryReferences &&
|
|
@@ -1038,6 +1045,7 @@
|
|
|
1038
1045
|
rejectListeners = chunk.reason;
|
|
1039
1046
|
chunk.status = "resolved_module";
|
|
1040
1047
|
chunk.value = value;
|
|
1048
|
+
chunk.reason = null;
|
|
1041
1049
|
null !== resolveListeners &&
|
|
1042
1050
|
(initializeModuleChunk(chunk),
|
|
1043
1051
|
wakeChunkIfInitialized(chunk, resolveListeners, rejectListeners));
|
|
@@ -1067,6 +1075,7 @@
|
|
|
1067
1075
|
}
|
|
1068
1076
|
chunk.status = "fulfilled";
|
|
1069
1077
|
chunk.value = value;
|
|
1078
|
+
chunk.reason = null;
|
|
1070
1079
|
} catch (error) {
|
|
1071
1080
|
(chunk.status = "rejected"), (chunk.reason = error);
|
|
1072
1081
|
} finally {
|
|
@@ -1078,6 +1087,7 @@
|
|
|
1078
1087
|
var value = requireModule(chunk.value);
|
|
1079
1088
|
chunk.status = "fulfilled";
|
|
1080
1089
|
chunk.value = value;
|
|
1090
|
+
chunk.reason = null;
|
|
1081
1091
|
} catch (error) {
|
|
1082
1092
|
(chunk.status = "rejected"), (chunk.reason = error);
|
|
1083
1093
|
}
|
|
@@ -1086,7 +1096,11 @@
|
|
|
1086
1096
|
response._closed = !0;
|
|
1087
1097
|
response._closedReason = error;
|
|
1088
1098
|
response._chunks.forEach(function (chunk) {
|
|
1089
|
-
"pending" === chunk.status
|
|
1099
|
+
"pending" === chunk.status
|
|
1100
|
+
? triggerErrorOnChunk(chunk, error)
|
|
1101
|
+
: "fulfilled" === chunk.status &&
|
|
1102
|
+
null !== chunk.reason &&
|
|
1103
|
+
chunk.reason.error(error);
|
|
1090
1104
|
});
|
|
1091
1105
|
}
|
|
1092
1106
|
function nullRefGetter() {
|
|
@@ -1173,6 +1187,7 @@
|
|
|
1173
1187
|
((value = i.value),
|
|
1174
1188
|
(i.status = "fulfilled"),
|
|
1175
1189
|
(i.value = handler.value),
|
|
1190
|
+
(i.reason = null),
|
|
1176
1191
|
null !== value && wakeChunk(value, handler.value)));
|
|
1177
1192
|
}
|
|
1178
1193
|
function reject(error) {
|
|
@@ -1286,6 +1301,7 @@
|
|
|
1286
1301
|
((boundArgs = resolvedValue.value),
|
|
1287
1302
|
(resolvedValue.status = "fulfilled"),
|
|
1288
1303
|
(resolvedValue.value = handler.value),
|
|
1304
|
+
(resolvedValue.reason = null),
|
|
1289
1305
|
null !== boundArgs && wakeChunk(boundArgs, handler.value)));
|
|
1290
1306
|
},
|
|
1291
1307
|
function (error) {
|
|
@@ -1438,7 +1454,7 @@
|
|
|
1438
1454
|
return getChunk(response, parentObject);
|
|
1439
1455
|
case "S":
|
|
1440
1456
|
return Symbol.for(value.slice(2));
|
|
1441
|
-
case "
|
|
1457
|
+
case "h":
|
|
1442
1458
|
return (
|
|
1443
1459
|
(value = value.slice(2)),
|
|
1444
1460
|
getOutlinedModel(
|
|
@@ -1668,7 +1684,8 @@
|
|
|
1668
1684
|
);
|
|
1669
1685
|
}
|
|
1670
1686
|
function startReadableStream(response, id, type) {
|
|
1671
|
-
var controller = null
|
|
1687
|
+
var controller = null,
|
|
1688
|
+
closed = !1;
|
|
1672
1689
|
type = new ReadableStream({
|
|
1673
1690
|
type: type,
|
|
1674
1691
|
start: function (c) {
|
|
@@ -1723,24 +1740,28 @@
|
|
|
1723
1740
|
}
|
|
1724
1741
|
},
|
|
1725
1742
|
close: function () {
|
|
1726
|
-
if (
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1743
|
+
if (!closed)
|
|
1744
|
+
if (((closed = !0), null === previousBlockedChunk))
|
|
1745
|
+
controller.close();
|
|
1746
|
+
else {
|
|
1747
|
+
var blockedChunk = previousBlockedChunk;
|
|
1748
|
+
previousBlockedChunk = null;
|
|
1749
|
+
blockedChunk.then(function () {
|
|
1750
|
+
return controller.close();
|
|
1751
|
+
});
|
|
1752
|
+
}
|
|
1734
1753
|
},
|
|
1735
1754
|
error: function (error) {
|
|
1736
|
-
if (
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1755
|
+
if (!closed)
|
|
1756
|
+
if (((closed = !0), null === previousBlockedChunk))
|
|
1757
|
+
controller.error(error);
|
|
1758
|
+
else {
|
|
1759
|
+
var blockedChunk = previousBlockedChunk;
|
|
1760
|
+
previousBlockedChunk = null;
|
|
1761
|
+
blockedChunk.then(function () {
|
|
1762
|
+
return controller.error(error);
|
|
1763
|
+
});
|
|
1764
|
+
}
|
|
1744
1765
|
}
|
|
1745
1766
|
});
|
|
1746
1767
|
}
|
|
@@ -1795,6 +1816,7 @@
|
|
|
1795
1816
|
rejectListeners = chunk.reason;
|
|
1796
1817
|
chunk.status = "fulfilled";
|
|
1797
1818
|
chunk.value = { done: !1, value: value };
|
|
1819
|
+
chunk.reason = null;
|
|
1798
1820
|
null !== resolveListeners &&
|
|
1799
1821
|
wakeChunkIfInitialized(
|
|
1800
1822
|
chunk,
|
|
@@ -1815,30 +1837,37 @@
|
|
|
1815
1837
|
nextWriteIndex++;
|
|
1816
1838
|
},
|
|
1817
1839
|
close: function (value) {
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1840
|
+
if (!closed)
|
|
1841
|
+
for (
|
|
1842
|
+
closed = !0,
|
|
1843
|
+
nextWriteIndex === buffer.length
|
|
1844
|
+
? (buffer[nextWriteIndex] =
|
|
1845
|
+
createResolvedIteratorResultChunk(response, value, !0))
|
|
1846
|
+
: resolveIteratorResultChunk(
|
|
1847
|
+
buffer[nextWriteIndex],
|
|
1848
|
+
value,
|
|
1849
|
+
!0
|
|
1850
|
+
),
|
|
1851
|
+
nextWriteIndex++;
|
|
1852
|
+
nextWriteIndex < buffer.length;
|
|
1853
|
+
|
|
1854
|
+
)
|
|
1855
|
+
resolveIteratorResultChunk(
|
|
1856
|
+
buffer[nextWriteIndex++],
|
|
1857
|
+
'"$undefined"',
|
|
1823
1858
|
!0
|
|
1824
|
-
)
|
|
1825
|
-
: resolveIteratorResultChunk(buffer[nextWriteIndex], value, !0);
|
|
1826
|
-
for (nextWriteIndex++; nextWriteIndex < buffer.length; )
|
|
1827
|
-
resolveIteratorResultChunk(
|
|
1828
|
-
buffer[nextWriteIndex++],
|
|
1829
|
-
'"$undefined"',
|
|
1830
|
-
!0
|
|
1831
|
-
);
|
|
1859
|
+
);
|
|
1832
1860
|
},
|
|
1833
1861
|
error: function (error) {
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1862
|
+
if (!closed)
|
|
1863
|
+
for (
|
|
1864
|
+
closed = !0,
|
|
1865
|
+
nextWriteIndex === buffer.length &&
|
|
1866
|
+
(buffer[nextWriteIndex] = createPendingChunk(response));
|
|
1867
|
+
nextWriteIndex < buffer.length;
|
|
1839
1868
|
|
|
1840
|
-
|
|
1841
|
-
|
|
1869
|
+
)
|
|
1870
|
+
triggerErrorOnChunk(buffer[nextWriteIndex++], error);
|
|
1842
1871
|
}
|
|
1843
1872
|
}
|
|
1844
1873
|
);
|
|
@@ -2509,6 +2538,7 @@
|
|
|
2509
2538
|
ReactDOM = require("react-dom"),
|
|
2510
2539
|
decoderOptions = { stream: !0 },
|
|
2511
2540
|
bind = Function.prototype.bind,
|
|
2541
|
+
hasOwnProperty = Object.prototype.hasOwnProperty,
|
|
2512
2542
|
chunkCache = new Map(),
|
|
2513
2543
|
chunkMap = new Map(),
|
|
2514
2544
|
webpackGetChunkFilename = __webpack_require__.u;
|
|
@@ -2691,10 +2721,10 @@
|
|
|
2691
2721
|
return hook.checkDCE ? !0 : !1;
|
|
2692
2722
|
})({
|
|
2693
2723
|
bundleType: 1,
|
|
2694
|
-
version: "19.1.
|
|
2724
|
+
version: "19.1.3",
|
|
2695
2725
|
rendererPackageName: "react-server-dom-webpack",
|
|
2696
2726
|
currentDispatcherRef: ReactSharedInternals,
|
|
2697
|
-
reconcilerVersion: "19.1.
|
|
2727
|
+
reconcilerVersion: "19.1.3",
|
|
2698
2728
|
getCurrentComponentInfo: function () {
|
|
2699
2729
|
return currentOwnerInDEV;
|
|
2700
2730
|
}
|
|
@@ -10,7 +10,8 @@
|
|
|
10
10
|
|
|
11
11
|
"use strict";
|
|
12
12
|
var ReactDOM = require("react-dom"),
|
|
13
|
-
decoderOptions = { stream: !0 }
|
|
13
|
+
decoderOptions = { stream: !0 },
|
|
14
|
+
hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
14
15
|
function resolveClientReference(bundlerConfig, metadata) {
|
|
15
16
|
if (bundlerConfig) {
|
|
16
17
|
var moduleExports = bundlerConfig[metadata[0]];
|
|
@@ -100,13 +101,11 @@ function requireModule(metadata) {
|
|
|
100
101
|
if ("fulfilled" === moduleExports.status)
|
|
101
102
|
moduleExports = moduleExports.value;
|
|
102
103
|
else throw moduleExports.reason;
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
: moduleExports
|
|
109
|
-
: moduleExports[metadata[2]];
|
|
104
|
+
if ("*" === metadata[2]) return moduleExports;
|
|
105
|
+
if ("" === metadata[2])
|
|
106
|
+
return moduleExports.__esModule ? moduleExports.default : moduleExports;
|
|
107
|
+
if (hasOwnProperty.call(moduleExports, metadata[2]))
|
|
108
|
+
return moduleExports[metadata[2]];
|
|
110
109
|
}
|
|
111
110
|
var chunkMap = new Map(),
|
|
112
111
|
webpackGetChunkFilename = __webpack_require__.u;
|
|
@@ -304,13 +303,23 @@ function processReply(
|
|
|
304
303
|
pendingParts--;
|
|
305
304
|
}
|
|
306
305
|
}
|
|
306
|
+
parentReference = writtenObjects.get(value);
|
|
307
307
|
if ("function" === typeof value.then) {
|
|
308
|
+
if (void 0 !== parentReference)
|
|
309
|
+
if (modelRoot === value) modelRoot = null;
|
|
310
|
+
else return parentReference;
|
|
308
311
|
null === formData && (formData = new FormData());
|
|
309
312
|
pendingParts++;
|
|
310
313
|
var promiseId = nextPartId++;
|
|
314
|
+
key = "$@" + promiseId.toString(16);
|
|
315
|
+
writtenObjects.set(value, key);
|
|
311
316
|
value.then(function (partValue) {
|
|
312
317
|
try {
|
|
313
|
-
var
|
|
318
|
+
var previousReference = writtenObjects.get(partValue);
|
|
319
|
+
var partJSON$28 =
|
|
320
|
+
void 0 !== previousReference
|
|
321
|
+
? JSON.stringify(previousReference)
|
|
322
|
+
: serializeModel(partValue, promiseId);
|
|
314
323
|
partValue = formData;
|
|
315
324
|
partValue.append(formFieldPrefix + promiseId, partJSON$28);
|
|
316
325
|
pendingParts--;
|
|
@@ -319,9 +328,8 @@ function processReply(
|
|
|
319
328
|
reject(reason);
|
|
320
329
|
}
|
|
321
330
|
}, reject);
|
|
322
|
-
return
|
|
331
|
+
return key;
|
|
323
332
|
}
|
|
324
|
-
parentReference = writtenObjects.get(value);
|
|
325
333
|
if (void 0 !== parentReference)
|
|
326
334
|
if (modelRoot === value) modelRoot = null;
|
|
327
335
|
else return parentReference;
|
|
@@ -445,7 +453,7 @@ function processReply(
|
|
|
445
453
|
null === formData && (formData = new FormData()),
|
|
446
454
|
(parentReference = nextPartId++),
|
|
447
455
|
formData.set(formFieldPrefix + parentReference, key),
|
|
448
|
-
"$
|
|
456
|
+
"$h" + parentReference.toString(16)
|
|
449
457
|
);
|
|
450
458
|
if (
|
|
451
459
|
void 0 !== temporaryReferences &&
|
|
@@ -651,6 +659,7 @@ function resolveModuleChunk(chunk, value) {
|
|
|
651
659
|
rejectListeners = chunk.reason;
|
|
652
660
|
chunk.status = "resolved_module";
|
|
653
661
|
chunk.value = value;
|
|
662
|
+
chunk.reason = null;
|
|
654
663
|
null !== resolveListeners &&
|
|
655
664
|
(initializeModuleChunk(chunk),
|
|
656
665
|
wakeChunkIfInitialized(chunk, resolveListeners, rejectListeners));
|
|
@@ -681,6 +690,7 @@ function initializeModelChunk(chunk) {
|
|
|
681
690
|
}
|
|
682
691
|
chunk.status = "fulfilled";
|
|
683
692
|
chunk.value = value;
|
|
693
|
+
chunk.reason = null;
|
|
684
694
|
} catch (error) {
|
|
685
695
|
(chunk.status = "rejected"), (chunk.reason = error);
|
|
686
696
|
} finally {
|
|
@@ -692,6 +702,7 @@ function initializeModuleChunk(chunk) {
|
|
|
692
702
|
var value = requireModule(chunk.value);
|
|
693
703
|
chunk.status = "fulfilled";
|
|
694
704
|
chunk.value = value;
|
|
705
|
+
chunk.reason = null;
|
|
695
706
|
} catch (error) {
|
|
696
707
|
(chunk.status = "rejected"), (chunk.reason = error);
|
|
697
708
|
}
|
|
@@ -700,7 +711,11 @@ function reportGlobalError(response, error) {
|
|
|
700
711
|
response._closed = !0;
|
|
701
712
|
response._closedReason = error;
|
|
702
713
|
response._chunks.forEach(function (chunk) {
|
|
703
|
-
"pending" === chunk.status
|
|
714
|
+
"pending" === chunk.status
|
|
715
|
+
? triggerErrorOnChunk(chunk, error)
|
|
716
|
+
: "fulfilled" === chunk.status &&
|
|
717
|
+
null !== chunk.reason &&
|
|
718
|
+
chunk.reason.error(error);
|
|
704
719
|
});
|
|
705
720
|
}
|
|
706
721
|
function createLazyChunkWrapper(chunk) {
|
|
@@ -758,6 +773,7 @@ function waitForReference(
|
|
|
758
773
|
((value = i.value),
|
|
759
774
|
(i.status = "fulfilled"),
|
|
760
775
|
(i.value = handler.value),
|
|
776
|
+
(i.reason = null),
|
|
761
777
|
null !== value && wakeChunk(value, handler.value)));
|
|
762
778
|
}
|
|
763
779
|
function reject(error) {
|
|
@@ -840,6 +856,7 @@ function loadServerReference(response, metaData, parentObject, key) {
|
|
|
840
856
|
((boundArgs = resolvedValue.value),
|
|
841
857
|
(resolvedValue.status = "fulfilled"),
|
|
842
858
|
(resolvedValue.value = handler.value),
|
|
859
|
+
(resolvedValue.reason = null),
|
|
843
860
|
null !== boundArgs && wakeChunk(boundArgs, handler.value)));
|
|
844
861
|
},
|
|
845
862
|
function (error) {
|
|
@@ -955,7 +972,7 @@ function parseModelString(response, parentObject, key, value) {
|
|
|
955
972
|
return getChunk(response, parentObject);
|
|
956
973
|
case "S":
|
|
957
974
|
return Symbol.for(value.slice(2));
|
|
958
|
-
case "
|
|
975
|
+
case "h":
|
|
959
976
|
return (
|
|
960
977
|
(value = value.slice(2)),
|
|
961
978
|
getOutlinedModel(
|
|
@@ -1104,7 +1121,8 @@ function resolveStream(response, id, stream, controller) {
|
|
|
1104
1121
|
);
|
|
1105
1122
|
}
|
|
1106
1123
|
function startReadableStream(response, id, type) {
|
|
1107
|
-
var controller = null
|
|
1124
|
+
var controller = null,
|
|
1125
|
+
closed = !1;
|
|
1108
1126
|
type = new ReadableStream({
|
|
1109
1127
|
type: type,
|
|
1110
1128
|
start: function (c) {
|
|
@@ -1154,24 +1172,27 @@ function startReadableStream(response, id, type) {
|
|
|
1154
1172
|
}
|
|
1155
1173
|
},
|
|
1156
1174
|
close: function () {
|
|
1157
|
-
if (
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1175
|
+
if (!closed)
|
|
1176
|
+
if (((closed = !0), null === previousBlockedChunk)) controller.close();
|
|
1177
|
+
else {
|
|
1178
|
+
var blockedChunk = previousBlockedChunk;
|
|
1179
|
+
previousBlockedChunk = null;
|
|
1180
|
+
blockedChunk.then(function () {
|
|
1181
|
+
return controller.close();
|
|
1182
|
+
});
|
|
1183
|
+
}
|
|
1165
1184
|
},
|
|
1166
1185
|
error: function (error) {
|
|
1167
|
-
if (
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1186
|
+
if (!closed)
|
|
1187
|
+
if (((closed = !0), null === previousBlockedChunk))
|
|
1188
|
+
controller.error(error);
|
|
1189
|
+
else {
|
|
1190
|
+
var blockedChunk = previousBlockedChunk;
|
|
1191
|
+
previousBlockedChunk = null;
|
|
1192
|
+
blockedChunk.then(function () {
|
|
1193
|
+
return controller.error(error);
|
|
1194
|
+
});
|
|
1195
|
+
}
|
|
1175
1196
|
}
|
|
1176
1197
|
});
|
|
1177
1198
|
}
|
|
@@ -1229,6 +1250,7 @@ function startAsyncIterable(response, id, iterator) {
|
|
|
1229
1250
|
rejectListeners = chunk.reason;
|
|
1230
1251
|
chunk.status = "fulfilled";
|
|
1231
1252
|
chunk.value = { done: !1, value: value };
|
|
1253
|
+
chunk.reason = null;
|
|
1232
1254
|
null !== resolveListeners &&
|
|
1233
1255
|
wakeChunkIfInitialized(chunk, resolveListeners, rejectListeners);
|
|
1234
1256
|
}
|
|
@@ -1245,30 +1267,36 @@ function startAsyncIterable(response, id, iterator) {
|
|
|
1245
1267
|
nextWriteIndex++;
|
|
1246
1268
|
},
|
|
1247
1269
|
close: function (value) {
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1270
|
+
if (!closed)
|
|
1271
|
+
for (
|
|
1272
|
+
closed = !0,
|
|
1273
|
+
nextWriteIndex === buffer.length
|
|
1274
|
+
? (buffer[nextWriteIndex] = createResolvedIteratorResultChunk(
|
|
1275
|
+
response,
|
|
1276
|
+
value,
|
|
1277
|
+
!0
|
|
1278
|
+
))
|
|
1279
|
+
: resolveIteratorResultChunk(buffer[nextWriteIndex], value, !0),
|
|
1280
|
+
nextWriteIndex++;
|
|
1281
|
+
nextWriteIndex < buffer.length;
|
|
1282
|
+
|
|
1283
|
+
)
|
|
1284
|
+
resolveIteratorResultChunk(
|
|
1285
|
+
buffer[nextWriteIndex++],
|
|
1286
|
+
'"$undefined"',
|
|
1253
1287
|
!0
|
|
1254
|
-
)
|
|
1255
|
-
: resolveIteratorResultChunk(buffer[nextWriteIndex], value, !0);
|
|
1256
|
-
for (nextWriteIndex++; nextWriteIndex < buffer.length; )
|
|
1257
|
-
resolveIteratorResultChunk(
|
|
1258
|
-
buffer[nextWriteIndex++],
|
|
1259
|
-
'"$undefined"',
|
|
1260
|
-
!0
|
|
1261
|
-
);
|
|
1288
|
+
);
|
|
1262
1289
|
},
|
|
1263
1290
|
error: function (error) {
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1291
|
+
if (!closed)
|
|
1292
|
+
for (
|
|
1293
|
+
closed = !0,
|
|
1294
|
+
nextWriteIndex === buffer.length &&
|
|
1295
|
+
(buffer[nextWriteIndex] = createPendingChunk(response));
|
|
1296
|
+
nextWriteIndex < buffer.length;
|
|
1269
1297
|
|
|
1270
|
-
|
|
1271
|
-
|
|
1298
|
+
)
|
|
1299
|
+
triggerErrorOnChunk(buffer[nextWriteIndex++], error);
|
|
1272
1300
|
}
|
|
1273
1301
|
}
|
|
1274
1302
|
);
|