react-server-dom-webpack 19.3.0 → 19.3.1
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 +58 -45
- package/cjs/react-server-dom-webpack-client.browser.production.js +79 -64
- package/cjs/react-server-dom-webpack-client.edge.development.js +59 -42
- package/cjs/react-server-dom-webpack-client.edge.production.js +82 -67
- package/cjs/react-server-dom-webpack-client.node.development.js +59 -42
- package/cjs/react-server-dom-webpack-client.node.production.js +82 -67
- package/cjs/react-server-dom-webpack-server.browser.development.js +188 -94
- package/cjs/react-server-dom-webpack-server.browser.production.js +181 -89
- package/cjs/react-server-dom-webpack-server.edge.development.js +219 -112
- package/cjs/react-server-dom-webpack-server.edge.production.js +209 -107
- package/cjs/react-server-dom-webpack-server.node.development.js +240 -131
- package/cjs/react-server-dom-webpack-server.node.production.js +228 -123
- package/package.json +3 -3
|
@@ -57,33 +57,44 @@
|
|
|
57
57
|
(currentView = new Uint8Array(4096)),
|
|
58
58
|
(writtenBytes = 0));
|
|
59
59
|
}
|
|
60
|
-
} else
|
|
61
|
-
|
|
62
|
-
(
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
(currentView
|
|
86
|
-
(
|
|
60
|
+
} else if (0 === chunk.byteLength)
|
|
61
|
+
if (supportsArrayBufferDetached) {
|
|
62
|
+
if (chunk.buffer.detached)
|
|
63
|
+
throw Error(
|
|
64
|
+
"Cannot transport a detached buffer. This usually happens when trying to transport multiple buffer-spanning views on the same underyling buffer. Either reuse the exact same view by identity or copy the underlying buffer manually via `view.slice()`."
|
|
65
|
+
);
|
|
66
|
+
} else
|
|
67
|
+
didWarnAboutMissingArrayBufferDetached ||
|
|
68
|
+
(console.error(
|
|
69
|
+
"React encountered an empty buffer when writing in an environment that does not support ArrayBuffer.prototype.detached. This could be a security issue if the buffer was not actually empty. Please upgrade to a Node.js version that supports ArrayBuffer.prototype.detached."
|
|
70
|
+
),
|
|
71
|
+
(didWarnAboutMissingArrayBufferDetached = !0));
|
|
72
|
+
else
|
|
73
|
+
4096 < chunk.byteLength
|
|
74
|
+
? (0 < writtenBytes &&
|
|
75
|
+
(writeToDestination(
|
|
76
|
+
destination,
|
|
77
|
+
currentView.subarray(0, writtenBytes)
|
|
78
|
+
),
|
|
79
|
+
(currentView = new Uint8Array(4096)),
|
|
80
|
+
(writtenBytes = 0)),
|
|
81
|
+
writeToDestination(destination, chunk))
|
|
82
|
+
: ((target = currentView.length - writtenBytes),
|
|
83
|
+
target < chunk.byteLength &&
|
|
84
|
+
(0 === target
|
|
85
|
+
? writeToDestination(destination, currentView)
|
|
86
|
+
: (currentView.set(chunk.subarray(0, target), writtenBytes),
|
|
87
|
+
(writtenBytes += target),
|
|
88
|
+
writeToDestination(destination, currentView),
|
|
89
|
+
(chunk = chunk.subarray(target))),
|
|
90
|
+
(currentView = new Uint8Array(4096)),
|
|
91
|
+
(writtenBytes = 0)),
|
|
92
|
+
currentView.set(chunk, writtenBytes),
|
|
93
|
+
(writtenBytes += chunk.byteLength),
|
|
94
|
+
4096 === writtenBytes &&
|
|
95
|
+
(writeToDestination(destination, currentView),
|
|
96
|
+
(currentView = new Uint8Array(4096)),
|
|
97
|
+
(writtenBytes = 0)));
|
|
87
98
|
}
|
|
88
99
|
function writeToDestination(destination, view) {
|
|
89
100
|
destination = destination.write(view);
|
|
@@ -3475,13 +3486,35 @@
|
|
|
3475
3486
|
}
|
|
3476
3487
|
function emitTypedArrayChunk(request, id, tag, typedArray, debug) {
|
|
3477
3488
|
debug ? request.pendingDebugChunks++ : request.pendingChunks++;
|
|
3478
|
-
|
|
3479
|
-
|
|
3480
|
-
|
|
3481
|
-
|
|
3482
|
-
|
|
3483
|
-
|
|
3484
|
-
|
|
3489
|
+
a: {
|
|
3490
|
+
var view = new Uint8Array(
|
|
3491
|
+
typedArray.buffer,
|
|
3492
|
+
typedArray.byteOffset,
|
|
3493
|
+
typedArray.byteLength
|
|
3494
|
+
);
|
|
3495
|
+
if (4096 < typedArray.byteLength) {
|
|
3496
|
+
if (
|
|
3497
|
+
0 !== typedArray.byteOffset ||
|
|
3498
|
+
typedArray.byteLength !== typedArray.buffer.byteLength ||
|
|
3499
|
+
typedArray.buffer.resizable
|
|
3500
|
+
) {
|
|
3501
|
+
typedArray = view.slice();
|
|
3502
|
+
break a;
|
|
3503
|
+
}
|
|
3504
|
+
if (!supportsArrayBufferDetached) {
|
|
3505
|
+
didWarnAboutMissingArrayBufferDetached ||
|
|
3506
|
+
(console.error(
|
|
3507
|
+
"React copied a partial view into a fresh buffer as a safety precaution because the environment does not implement ArrayBuffer.prototype.detached. This negatively impacts performance. Please upgrade to a modern Node.js version."
|
|
3508
|
+
),
|
|
3509
|
+
(didWarnAboutMissingArrayBufferDetached = !0));
|
|
3510
|
+
typedArray = view.slice();
|
|
3511
|
+
break a;
|
|
3512
|
+
}
|
|
3513
|
+
}
|
|
3514
|
+
typedArray = view;
|
|
3515
|
+
}
|
|
3516
|
+
view = typedArray.byteLength;
|
|
3517
|
+
id = id.toString(16) + ":" + tag + view.toString(16) + ",";
|
|
3485
3518
|
debug
|
|
3486
3519
|
? request.completedDebugChunks.push(
|
|
3487
3520
|
NEXT_TWO_CHUNKS_ARE_ATOMIC,
|
|
@@ -4744,13 +4777,38 @@
|
|
|
4744
4777
|
if (hasOwnProperty.call(moduleExports, metadata[2]))
|
|
4745
4778
|
return moduleExports[metadata[2]];
|
|
4746
4779
|
}
|
|
4747
|
-
function appendBackingEntry(backingStore,
|
|
4748
|
-
backingStore.
|
|
4749
|
-
|
|
4750
|
-
|
|
4751
|
-
|
|
4752
|
-
|
|
4753
|
-
|
|
4780
|
+
function appendBackingEntry(backingStore, value, key) {
|
|
4781
|
+
var prefix = backingStore.prefix;
|
|
4782
|
+
if (key.startsWith(prefix)) {
|
|
4783
|
+
switch (key[prefix.length]) {
|
|
4784
|
+
case "_":
|
|
4785
|
+
prefix = backingStore.referencedEntries;
|
|
4786
|
+
null === prefix && (prefix = backingStore.referencedEntries = []);
|
|
4787
|
+
prefix.push([key, value]);
|
|
4788
|
+
return;
|
|
4789
|
+
case "S":
|
|
4790
|
+
"string" === typeof value &&
|
|
4791
|
+
((prefix = backingStore.streamChunks),
|
|
4792
|
+
null === prefix &&
|
|
4793
|
+
(prefix = backingStore.streamChunks = new Map()),
|
|
4794
|
+
(backingStore = prefix.get(key)),
|
|
4795
|
+
void 0 === backingStore
|
|
4796
|
+
? prefix.set(key, [value])
|
|
4797
|
+
: backingStore.push(value));
|
|
4798
|
+
return;
|
|
4799
|
+
}
|
|
4800
|
+
"string" === typeof value
|
|
4801
|
+
? ((prefix = backingStore.stringChunks),
|
|
4802
|
+
null === prefix && (prefix = backingStore.stringChunks = new Map()),
|
|
4803
|
+
prefix.set(key, value))
|
|
4804
|
+
: ((prefix = backingStore.blobs),
|
|
4805
|
+
null === prefix && (prefix = backingStore.blobs = new Map()),
|
|
4806
|
+
prefix.set(key, value));
|
|
4807
|
+
}
|
|
4808
|
+
}
|
|
4809
|
+
function getBackingBlob(backingStore, key) {
|
|
4810
|
+
backingStore = backingStore.blobs;
|
|
4811
|
+
return null === backingStore ? void 0 : backingStore.get(key);
|
|
4754
4812
|
}
|
|
4755
4813
|
function ReactPromise(status, value, reason) {
|
|
4756
4814
|
this.status = status;
|
|
@@ -5088,15 +5146,18 @@
|
|
|
5088
5146
|
function getChunk(response, id) {
|
|
5089
5147
|
var chunks = response._chunks,
|
|
5090
5148
|
chunk = chunks.get(id);
|
|
5091
|
-
chunk
|
|
5092
|
-
|
|
5093
|
-
|
|
5149
|
+
if (!chunk) {
|
|
5150
|
+
chunk = response._prefix;
|
|
5151
|
+
var stringChunks = response._formData.stringChunks;
|
|
5152
|
+
chunk = null === stringChunks ? void 0 : stringChunks.get(chunk + id);
|
|
5153
|
+
chunk =
|
|
5094
5154
|
"string" === typeof chunk
|
|
5095
5155
|
? createResolvedModelChunk(response, chunk, id)
|
|
5096
5156
|
: response._closed
|
|
5097
5157
|
? new ReactPromise("rejected", null, response._closedReason)
|
|
5098
|
-
: new ReactPromise("pending", null, null)
|
|
5099
|
-
chunks.set(id, chunk)
|
|
5158
|
+
: new ReactPromise("pending", null, null);
|
|
5159
|
+
chunks.set(id, chunk);
|
|
5160
|
+
}
|
|
5100
5161
|
return chunk;
|
|
5101
5162
|
}
|
|
5102
5163
|
function fulfillReference(response, reference, value, arrayRoot) {
|
|
@@ -5343,7 +5404,7 @@
|
|
|
5343
5404
|
Error("Already initialized typed array.")
|
|
5344
5405
|
)
|
|
5345
5406
|
);
|
|
5346
|
-
reference = response._formData
|
|
5407
|
+
reference = getBackingBlob(response._formData, key).arrayBuffer();
|
|
5347
5408
|
if (initializingHandler) {
|
|
5348
5409
|
var handler = initializingHandler;
|
|
5349
5410
|
handler.deps++;
|
|
@@ -5387,15 +5448,17 @@
|
|
|
5387
5448
|
var chunks = response._chunks;
|
|
5388
5449
|
stream = new ReactPromise("fulfilled", stream, controller);
|
|
5389
5450
|
chunks.set(id, stream);
|
|
5390
|
-
|
|
5391
|
-
|
|
5392
|
-
|
|
5393
|
-
|
|
5394
|
-
|
|
5451
|
+
chunks = response._prefix;
|
|
5452
|
+
response = response._formData.streamChunks;
|
|
5453
|
+
id = null === response ? void 0 : response.get(chunks + "S" + id);
|
|
5454
|
+
if (void 0 !== id)
|
|
5455
|
+
for (response = 0; response < id.length; response++)
|
|
5456
|
+
(chunks = id[response]),
|
|
5457
|
+
"C" === chunks[0]
|
|
5395
5458
|
? controller.close(
|
|
5396
5459
|
"C" === chunks ? '"$undefined"' : chunks.slice(1)
|
|
5397
5460
|
)
|
|
5398
|
-
: controller.enqueueModel(chunks)
|
|
5461
|
+
: controller.enqueueModel(chunks);
|
|
5399
5462
|
}
|
|
5400
5463
|
function parseReadableStream(response, reference, type) {
|
|
5401
5464
|
function enqueue(value) {
|
|
@@ -5560,7 +5623,14 @@
|
|
|
5560
5623
|
});
|
|
5561
5624
|
return iterator;
|
|
5562
5625
|
}
|
|
5563
|
-
function parseModelString(
|
|
5626
|
+
function parseModelString(
|
|
5627
|
+
response,
|
|
5628
|
+
obj,
|
|
5629
|
+
key$jscomp$0,
|
|
5630
|
+
value,
|
|
5631
|
+
reference,
|
|
5632
|
+
arrayRoot
|
|
5633
|
+
) {
|
|
5564
5634
|
if ("$" === value[0]) {
|
|
5565
5635
|
switch (value[1]) {
|
|
5566
5636
|
case "$":
|
|
@@ -5580,7 +5650,7 @@
|
|
|
5580
5650
|
response,
|
|
5581
5651
|
arrayRoot,
|
|
5582
5652
|
obj,
|
|
5583
|
-
key,
|
|
5653
|
+
key$jscomp$0,
|
|
5584
5654
|
null,
|
|
5585
5655
|
loadServerReference$1
|
|
5586
5656
|
)
|
|
@@ -5600,41 +5670,44 @@
|
|
|
5600
5670
|
case "Q":
|
|
5601
5671
|
return (
|
|
5602
5672
|
(arrayRoot = value.slice(2)),
|
|
5603
|
-
getOutlinedModel(
|
|
5673
|
+
getOutlinedModel(
|
|
5674
|
+
response,
|
|
5675
|
+
arrayRoot,
|
|
5676
|
+
obj,
|
|
5677
|
+
key$jscomp$0,
|
|
5678
|
+
null,
|
|
5679
|
+
createMap
|
|
5680
|
+
)
|
|
5604
5681
|
);
|
|
5605
5682
|
case "W":
|
|
5606
5683
|
return (
|
|
5607
5684
|
(arrayRoot = value.slice(2)),
|
|
5608
|
-
getOutlinedModel(
|
|
5685
|
+
getOutlinedModel(
|
|
5686
|
+
response,
|
|
5687
|
+
arrayRoot,
|
|
5688
|
+
obj,
|
|
5689
|
+
key$jscomp$0,
|
|
5690
|
+
null,
|
|
5691
|
+
createSet
|
|
5692
|
+
)
|
|
5609
5693
|
);
|
|
5610
5694
|
case "K":
|
|
5611
|
-
key = value.slice(2);
|
|
5612
|
-
obj = response.
|
|
5613
|
-
|
|
5614
|
-
|
|
5615
|
-
|
|
5616
|
-
|
|
5617
|
-
|
|
5618
|
-
|
|
5619
|
-
|
|
5620
|
-
(
|
|
5621
|
-
|
|
5622
|
-
|
|
5623
|
-
|
|
5624
|
-
|
|
5625
|
-
for (
|
|
5626
|
-
var referencedFormDataKey = value.slice(key.length), i = 0;
|
|
5627
|
-
i < reference.length;
|
|
5628
|
-
i++
|
|
5629
|
-
)
|
|
5630
|
-
arrayRoot.append(referencedFormDataKey, reference[i]);
|
|
5631
|
-
reference = response;
|
|
5632
|
-
reference.data.delete(value);
|
|
5633
|
-
reference.keyPointer++;
|
|
5634
|
-
} else if (value.startsWith(obj)) break;
|
|
5635
|
-
else response.keyPointer++;
|
|
5695
|
+
key$jscomp$0 = value.slice(2);
|
|
5696
|
+
obj = response._formData;
|
|
5697
|
+
response = response._prefix + "_" + key$jscomp$0 + "_";
|
|
5698
|
+
key$jscomp$0 = new FormData();
|
|
5699
|
+
arrayRoot = obj.referencedEntries;
|
|
5700
|
+
if (null !== arrayRoot) {
|
|
5701
|
+
for (value = obj.keyPointer; value < arrayRoot.length; ) {
|
|
5702
|
+
reference = arrayRoot[value];
|
|
5703
|
+
var key = reference[0];
|
|
5704
|
+
if (!key.startsWith(response)) break;
|
|
5705
|
+
key$jscomp$0.append(key.slice(response.length), reference[1]);
|
|
5706
|
+
value++;
|
|
5707
|
+
}
|
|
5708
|
+
obj.keyPointer = value;
|
|
5636
5709
|
}
|
|
5637
|
-
return
|
|
5710
|
+
return key$jscomp$0;
|
|
5638
5711
|
case "i":
|
|
5639
5712
|
return (
|
|
5640
5713
|
(arrayRoot = value.slice(2)),
|
|
@@ -5642,7 +5715,7 @@
|
|
|
5642
5715
|
response,
|
|
5643
5716
|
arrayRoot,
|
|
5644
5717
|
obj,
|
|
5645
|
-
key,
|
|
5718
|
+
key$jscomp$0,
|
|
5646
5719
|
null,
|
|
5647
5720
|
extractIterator
|
|
5648
5721
|
)
|
|
@@ -5677,7 +5750,7 @@
|
|
|
5677
5750
|
ArrayBuffer,
|
|
5678
5751
|
1,
|
|
5679
5752
|
obj,
|
|
5680
|
-
key,
|
|
5753
|
+
key$jscomp$0,
|
|
5681
5754
|
arrayRoot
|
|
5682
5755
|
);
|
|
5683
5756
|
case "O":
|
|
@@ -5687,7 +5760,7 @@
|
|
|
5687
5760
|
Int8Array,
|
|
5688
5761
|
1,
|
|
5689
5762
|
obj,
|
|
5690
|
-
key,
|
|
5763
|
+
key$jscomp$0,
|
|
5691
5764
|
arrayRoot
|
|
5692
5765
|
);
|
|
5693
5766
|
case "o":
|
|
@@ -5697,7 +5770,7 @@
|
|
|
5697
5770
|
Uint8Array,
|
|
5698
5771
|
1,
|
|
5699
5772
|
obj,
|
|
5700
|
-
key,
|
|
5773
|
+
key$jscomp$0,
|
|
5701
5774
|
arrayRoot
|
|
5702
5775
|
);
|
|
5703
5776
|
case "U":
|
|
@@ -5707,7 +5780,7 @@
|
|
|
5707
5780
|
Uint8ClampedArray,
|
|
5708
5781
|
1,
|
|
5709
5782
|
obj,
|
|
5710
|
-
key,
|
|
5783
|
+
key$jscomp$0,
|
|
5711
5784
|
arrayRoot
|
|
5712
5785
|
);
|
|
5713
5786
|
case "S":
|
|
@@ -5717,7 +5790,7 @@
|
|
|
5717
5790
|
Int16Array,
|
|
5718
5791
|
2,
|
|
5719
5792
|
obj,
|
|
5720
|
-
key,
|
|
5793
|
+
key$jscomp$0,
|
|
5721
5794
|
arrayRoot
|
|
5722
5795
|
);
|
|
5723
5796
|
case "s":
|
|
@@ -5727,7 +5800,7 @@
|
|
|
5727
5800
|
Uint16Array,
|
|
5728
5801
|
2,
|
|
5729
5802
|
obj,
|
|
5730
|
-
key,
|
|
5803
|
+
key$jscomp$0,
|
|
5731
5804
|
arrayRoot
|
|
5732
5805
|
);
|
|
5733
5806
|
case "L":
|
|
@@ -5737,7 +5810,7 @@
|
|
|
5737
5810
|
Int32Array,
|
|
5738
5811
|
4,
|
|
5739
5812
|
obj,
|
|
5740
|
-
key,
|
|
5813
|
+
key$jscomp$0,
|
|
5741
5814
|
arrayRoot
|
|
5742
5815
|
);
|
|
5743
5816
|
case "l":
|
|
@@ -5747,7 +5820,7 @@
|
|
|
5747
5820
|
Uint32Array,
|
|
5748
5821
|
4,
|
|
5749
5822
|
obj,
|
|
5750
|
-
key,
|
|
5823
|
+
key$jscomp$0,
|
|
5751
5824
|
arrayRoot
|
|
5752
5825
|
);
|
|
5753
5826
|
case "G":
|
|
@@ -5757,7 +5830,7 @@
|
|
|
5757
5830
|
Float32Array,
|
|
5758
5831
|
4,
|
|
5759
5832
|
obj,
|
|
5760
|
-
key,
|
|
5833
|
+
key$jscomp$0,
|
|
5761
5834
|
arrayRoot
|
|
5762
5835
|
);
|
|
5763
5836
|
case "g":
|
|
@@ -5767,7 +5840,7 @@
|
|
|
5767
5840
|
Float64Array,
|
|
5768
5841
|
8,
|
|
5769
5842
|
obj,
|
|
5770
|
-
key,
|
|
5843
|
+
key$jscomp$0,
|
|
5771
5844
|
arrayRoot
|
|
5772
5845
|
);
|
|
5773
5846
|
case "M":
|
|
@@ -5777,7 +5850,7 @@
|
|
|
5777
5850
|
BigInt64Array,
|
|
5778
5851
|
8,
|
|
5779
5852
|
obj,
|
|
5780
|
-
key,
|
|
5853
|
+
key$jscomp$0,
|
|
5781
5854
|
arrayRoot
|
|
5782
5855
|
);
|
|
5783
5856
|
case "m":
|
|
@@ -5787,7 +5860,7 @@
|
|
|
5787
5860
|
BigUint64Array,
|
|
5788
5861
|
8,
|
|
5789
5862
|
obj,
|
|
5790
|
-
key,
|
|
5863
|
+
key$jscomp$0,
|
|
5791
5864
|
arrayRoot
|
|
5792
5865
|
);
|
|
5793
5866
|
case "V":
|
|
@@ -5797,12 +5870,15 @@
|
|
|
5797
5870
|
DataView,
|
|
5798
5871
|
1,
|
|
5799
5872
|
obj,
|
|
5800
|
-
key,
|
|
5873
|
+
key$jscomp$0,
|
|
5801
5874
|
arrayRoot
|
|
5802
5875
|
);
|
|
5803
5876
|
case "B":
|
|
5804
5877
|
obj = parseInt(value.slice(2), 16);
|
|
5805
|
-
response =
|
|
5878
|
+
response = getBackingBlob(
|
|
5879
|
+
response._formData,
|
|
5880
|
+
response._prefix + obj
|
|
5881
|
+
);
|
|
5806
5882
|
if (!(response instanceof Blob))
|
|
5807
5883
|
throw Error("Referenced Blob is not a Blob.");
|
|
5808
5884
|
return response;
|
|
@@ -5820,7 +5896,7 @@
|
|
|
5820
5896
|
response,
|
|
5821
5897
|
value,
|
|
5822
5898
|
obj,
|
|
5823
|
-
key,
|
|
5899
|
+
key$jscomp$0,
|
|
5824
5900
|
arrayRoot,
|
|
5825
5901
|
createModel
|
|
5826
5902
|
);
|
|
@@ -5839,11 +5915,20 @@
|
|
|
5839
5915
|
: new FormData(),
|
|
5840
5916
|
arraySizeLimit =
|
|
5841
5917
|
4 < arguments.length && void 0 !== arguments[4] ? arguments[4] : 1e6,
|
|
5842
|
-
chunks = new Map()
|
|
5918
|
+
chunks = new Map(),
|
|
5919
|
+
backingStore = {
|
|
5920
|
+
prefix: formFieldPrefix,
|
|
5921
|
+
referencedEntries: null,
|
|
5922
|
+
keyPointer: 0,
|
|
5923
|
+
stringChunks: null,
|
|
5924
|
+
streamChunks: null,
|
|
5925
|
+
blobs: null
|
|
5926
|
+
};
|
|
5927
|
+
backingFormData.forEach(appendBackingEntry.bind(null, backingStore));
|
|
5843
5928
|
return {
|
|
5844
5929
|
_bundlerConfig: bundlerConfig,
|
|
5845
5930
|
_prefix: formFieldPrefix,
|
|
5846
|
-
_formData:
|
|
5931
|
+
_formData: backingStore,
|
|
5847
5932
|
_chunks: chunks,
|
|
5848
5933
|
_closed: !1,
|
|
5849
5934
|
_closedReason: null,
|
|
@@ -5853,14 +5938,26 @@
|
|
|
5853
5938
|
};
|
|
5854
5939
|
}
|
|
5855
5940
|
function resolveField(response, key, value) {
|
|
5856
|
-
appendBackingEntry(response._formData, key, value);
|
|
5857
5941
|
var prefix = response._prefix;
|
|
5858
5942
|
if (key.startsWith(prefix)) {
|
|
5859
5943
|
var chunks = response._chunks;
|
|
5860
|
-
|
|
5861
|
-
|
|
5862
|
-
|
|
5944
|
+
if ("S" === key[prefix.length]) {
|
|
5945
|
+
if (
|
|
5946
|
+
key.length > prefix.length + 1 &&
|
|
5947
|
+
((prefix = +key.slice(prefix.length + 1)),
|
|
5948
|
+
(chunks = chunks.get(prefix)))
|
|
5949
|
+
) {
|
|
5950
|
+
resolveModelChunk(response, chunks, value, prefix);
|
|
5951
|
+
return;
|
|
5952
|
+
}
|
|
5953
|
+
} else if (
|
|
5954
|
+
((prefix = +key.slice(prefix.length)), (chunks = chunks.get(prefix)))
|
|
5955
|
+
) {
|
|
5956
|
+
resolveModelChunk(response, chunks, value, prefix);
|
|
5957
|
+
return;
|
|
5958
|
+
}
|
|
5863
5959
|
}
|
|
5960
|
+
appendBackingEntry(response._formData, value, key);
|
|
5864
5961
|
}
|
|
5865
5962
|
function close(response) {
|
|
5866
5963
|
reportGlobalError(response, Error("Connection closed."));
|
|
@@ -6069,6 +6166,12 @@
|
|
|
6069
6166
|
MAYBE_ITERATOR_SYMBOL = Symbol.iterator,
|
|
6070
6167
|
ASYNC_ITERATOR = Symbol.asyncIterator,
|
|
6071
6168
|
REACT_OPTIMISTIC_KEY = Symbol.for("react.optimistic_key"),
|
|
6169
|
+
hasOwnProperty = Object.prototype.hasOwnProperty,
|
|
6170
|
+
supportsArrayBufferDetached = hasOwnProperty.call(
|
|
6171
|
+
ArrayBuffer.prototype,
|
|
6172
|
+
"detached"
|
|
6173
|
+
),
|
|
6174
|
+
didWarnAboutMissingArrayBufferDetached = !1,
|
|
6072
6175
|
scheduleMicrotask = queueMicrotask,
|
|
6073
6176
|
currentView = null,
|
|
6074
6177
|
writtenBytes = 0,
|
|
@@ -6441,7 +6544,6 @@
|
|
|
6441
6544
|
jsxPropsParents = new WeakMap(),
|
|
6442
6545
|
jsxChildrenParents = new WeakMap(),
|
|
6443
6546
|
CLIENT_REFERENCE_TAG = Symbol.for("react.client.reference"),
|
|
6444
|
-
hasOwnProperty = Object.prototype.hasOwnProperty,
|
|
6445
6547
|
doNotLimit = new WeakSet();
|
|
6446
6548
|
(function () {
|
|
6447
6549
|
async_hooks
|
|
@@ -6806,7 +6908,7 @@
|
|
|
6806
6908
|
_entry$value = _entry$value[1];
|
|
6807
6909
|
"string" === typeof _entry$value
|
|
6808
6910
|
? resolveField(response, entry, _entry$value)
|
|
6809
|
-
: appendBackingEntry(response._formData,
|
|
6911
|
+
: appendBackingEntry(response._formData, _entry$value, entry);
|
|
6810
6912
|
iterator.next().then(progress, error);
|
|
6811
6913
|
}
|
|
6812
6914
|
}
|
|
@@ -6836,26 +6938,33 @@
|
|
|
6836
6938
|
var current = head;
|
|
6837
6939
|
if (!current.complete) return;
|
|
6838
6940
|
try {
|
|
6839
|
-
var
|
|
6840
|
-
|
|
6841
|
-
|
|
6842
|
-
|
|
6843
|
-
|
|
6844
|
-
|
|
6845
|
-
|
|
6846
|
-
|
|
6847
|
-
|
|
6848
|
-
|
|
6849
|
-
|
|
6850
|
-
|
|
6941
|
+
var key = current.name,
|
|
6942
|
+
JSCompiler_temp_const = response._formData;
|
|
6943
|
+
var handle = current.file;
|
|
6944
|
+
if ("function" === typeof File)
|
|
6945
|
+
var JSCompiler_inline_result = new File(
|
|
6946
|
+
handle.chunks,
|
|
6947
|
+
handle.filename,
|
|
6948
|
+
{ type: handle.mime }
|
|
6949
|
+
);
|
|
6950
|
+
else {
|
|
6951
|
+
var scratch = new FormData();
|
|
6952
|
+
scratch.append(
|
|
6953
|
+
"file",
|
|
6954
|
+
new Blob(handle.chunks, { type: handle.mime }),
|
|
6955
|
+
handle.filename
|
|
6956
|
+
);
|
|
6957
|
+
JSCompiler_inline_result = scratch.get("file");
|
|
6958
|
+
}
|
|
6959
|
+
appendBackingEntry(
|
|
6960
|
+
JSCompiler_temp_const,
|
|
6961
|
+
JSCompiler_inline_result,
|
|
6962
|
+
key
|
|
6963
|
+
);
|
|
6851
6964
|
var queuedFields = current.queuedFields;
|
|
6852
6965
|
if (null !== queuedFields)
|
|
6853
|
-
for (
|
|
6854
|
-
resolveField(
|
|
6855
|
-
response$jscomp$0,
|
|
6856
|
-
queuedFields[response],
|
|
6857
|
-
queuedFields[response + 1]
|
|
6858
|
-
);
|
|
6966
|
+
for (var i = 0; i < queuedFields.length; i += 2)
|
|
6967
|
+
resolveField(response, queuedFields[i], queuedFields[i + 1]);
|
|
6859
6968
|
} catch (error) {
|
|
6860
6969
|
busboyStream.destroy(error);
|
|
6861
6970
|
return;
|
|
@@ -6863,9 +6972,9 @@
|
|
|
6863
6972
|
head = current.next;
|
|
6864
6973
|
}
|
|
6865
6974
|
tail = null;
|
|
6866
|
-
bodyFinished && !closed && ((closed = !0), close(response
|
|
6975
|
+
bodyFinished && !closed && ((closed = !0), close(response));
|
|
6867
6976
|
}
|
|
6868
|
-
var response
|
|
6977
|
+
var response = createResponse(
|
|
6869
6978
|
webpackMap,
|
|
6870
6979
|
"",
|
|
6871
6980
|
options ? options.temporaryReferences : void 0,
|
|
@@ -6882,7 +6991,7 @@
|
|
|
6882
6991
|
tail.queuedFields.push(name, value);
|
|
6883
6992
|
else
|
|
6884
6993
|
try {
|
|
6885
|
-
resolveField(response
|
|
6994
|
+
resolveField(response, name, value);
|
|
6886
6995
|
} catch (error) {
|
|
6887
6996
|
busboyStream.destroy(error);
|
|
6888
6997
|
}
|
|
@@ -6928,14 +7037,14 @@
|
|
|
6928
7037
|
flush();
|
|
6929
7038
|
closed ||
|
|
6930
7039
|
reportGlobalError(
|
|
6931
|
-
response
|
|
7040
|
+
response,
|
|
6932
7041
|
Error("Reply finished with incomplete file part.")
|
|
6933
7042
|
);
|
|
6934
7043
|
});
|
|
6935
7044
|
busboyStream.on("error", function (err) {
|
|
6936
|
-
reportGlobalError(response
|
|
7045
|
+
reportGlobalError(response, err);
|
|
6937
7046
|
});
|
|
6938
|
-
return getChunk(response
|
|
7047
|
+
return getChunk(response, 0);
|
|
6939
7048
|
};
|
|
6940
7049
|
exports.prerender = function (model, webpackMap, options) {
|
|
6941
7050
|
return new Promise(function (resolve, reject) {
|