react-server-dom-webpack 19.1.9 → 19.1.10
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 +61 -52
- package/cjs/react-server-dom-webpack-client.browser.production.js +79 -63
- package/cjs/react-server-dom-webpack-client.edge.development.js +64 -52
- package/cjs/react-server-dom-webpack-client.edge.production.js +84 -69
- package/cjs/react-server-dom-webpack-client.node.development.js +64 -52
- package/cjs/react-server-dom-webpack-client.node.production.js +84 -69
- package/cjs/react-server-dom-webpack-server.browser.development.js +185 -94
- package/cjs/react-server-dom-webpack-server.browser.production.js +183 -89
- package/cjs/react-server-dom-webpack-server.edge.development.js +216 -113
- package/cjs/react-server-dom-webpack-server.edge.production.js +210 -109
- package/cjs/react-server-dom-webpack-server.node.development.js +241 -132
- package/cjs/react-server-dom-webpack-server.node.production.js +233 -125
- package/package.json +3 -3
|
@@ -70,33 +70,44 @@
|
|
|
70
70
|
(currentView = new Uint8Array(2048)),
|
|
71
71
|
(writtenBytes = 0));
|
|
72
72
|
}
|
|
73
|
-
} else
|
|
74
|
-
|
|
75
|
-
(
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
(currentView
|
|
99
|
-
(
|
|
73
|
+
} else if (0 === chunk.byteLength)
|
|
74
|
+
if (supportsArrayBufferDetached) {
|
|
75
|
+
if (chunk.buffer.detached)
|
|
76
|
+
throw Error(
|
|
77
|
+
"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()`."
|
|
78
|
+
);
|
|
79
|
+
} else
|
|
80
|
+
didWarnAboutMissingArrayBufferDetached ||
|
|
81
|
+
(console.error(
|
|
82
|
+
"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."
|
|
83
|
+
),
|
|
84
|
+
(didWarnAboutMissingArrayBufferDetached = !0));
|
|
85
|
+
else
|
|
86
|
+
2048 < chunk.byteLength
|
|
87
|
+
? (0 < writtenBytes &&
|
|
88
|
+
(writeToDestination(
|
|
89
|
+
destination,
|
|
90
|
+
currentView.subarray(0, writtenBytes)
|
|
91
|
+
),
|
|
92
|
+
(currentView = new Uint8Array(2048)),
|
|
93
|
+
(writtenBytes = 0)),
|
|
94
|
+
writeToDestination(destination, chunk))
|
|
95
|
+
: ((target = currentView.length - writtenBytes),
|
|
96
|
+
target < chunk.byteLength &&
|
|
97
|
+
(0 === target
|
|
98
|
+
? writeToDestination(destination, currentView)
|
|
99
|
+
: (currentView.set(chunk.subarray(0, target), writtenBytes),
|
|
100
|
+
(writtenBytes += target),
|
|
101
|
+
writeToDestination(destination, currentView),
|
|
102
|
+
(chunk = chunk.subarray(target))),
|
|
103
|
+
(currentView = new Uint8Array(2048)),
|
|
104
|
+
(writtenBytes = 0)),
|
|
105
|
+
currentView.set(chunk, writtenBytes),
|
|
106
|
+
(writtenBytes += chunk.byteLength),
|
|
107
|
+
2048 === writtenBytes &&
|
|
108
|
+
(writeToDestination(destination, currentView),
|
|
109
|
+
(currentView = new Uint8Array(2048)),
|
|
110
|
+
(writtenBytes = 0)));
|
|
100
111
|
return destinationHasCapacity;
|
|
101
112
|
}
|
|
102
113
|
function byteLengthOfChunk(chunk) {
|
|
@@ -2172,13 +2183,35 @@
|
|
|
2172
2183
|
}
|
|
2173
2184
|
function emitTypedArrayChunk(request, id, tag, typedArray) {
|
|
2174
2185
|
request.pendingChunks++;
|
|
2175
|
-
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
|
|
2179
|
-
|
|
2180
|
-
|
|
2181
|
-
|
|
2186
|
+
a: {
|
|
2187
|
+
var view = new Uint8Array(
|
|
2188
|
+
typedArray.buffer,
|
|
2189
|
+
typedArray.byteOffset,
|
|
2190
|
+
typedArray.byteLength
|
|
2191
|
+
);
|
|
2192
|
+
if (2048 < typedArray.byteLength) {
|
|
2193
|
+
if (
|
|
2194
|
+
0 !== typedArray.byteOffset ||
|
|
2195
|
+
typedArray.byteLength !== typedArray.buffer.byteLength ||
|
|
2196
|
+
typedArray.buffer.resizable
|
|
2197
|
+
) {
|
|
2198
|
+
typedArray = view.slice();
|
|
2199
|
+
break a;
|
|
2200
|
+
}
|
|
2201
|
+
if (!supportsArrayBufferDetached) {
|
|
2202
|
+
didWarnAboutMissingArrayBufferDetached ||
|
|
2203
|
+
(console.error(
|
|
2204
|
+
"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."
|
|
2205
|
+
),
|
|
2206
|
+
(didWarnAboutMissingArrayBufferDetached = !0));
|
|
2207
|
+
typedArray = view.slice();
|
|
2208
|
+
break a;
|
|
2209
|
+
}
|
|
2210
|
+
}
|
|
2211
|
+
typedArray = view;
|
|
2212
|
+
}
|
|
2213
|
+
view = typedArray.byteLength;
|
|
2214
|
+
id = id.toString(16) + ":" + tag + view.toString(16) + ",";
|
|
2182
2215
|
request.completedRegularChunks.push(id, typedArray);
|
|
2183
2216
|
}
|
|
2184
2217
|
function emitTextChunk(request, id, text) {
|
|
@@ -2811,6 +2844,39 @@
|
|
|
2811
2844
|
if (hasOwnProperty.call(moduleExports, metadata[2]))
|
|
2812
2845
|
return moduleExports[metadata[2]];
|
|
2813
2846
|
}
|
|
2847
|
+
function appendBackingEntry(backingStore, value, key) {
|
|
2848
|
+
var prefix = backingStore.prefix;
|
|
2849
|
+
if (key.startsWith(prefix)) {
|
|
2850
|
+
switch (key[prefix.length]) {
|
|
2851
|
+
case "_":
|
|
2852
|
+
prefix = backingStore.referencedEntries;
|
|
2853
|
+
null === prefix && (prefix = backingStore.referencedEntries = []);
|
|
2854
|
+
prefix.push([key, value]);
|
|
2855
|
+
return;
|
|
2856
|
+
case "S":
|
|
2857
|
+
"string" === typeof value &&
|
|
2858
|
+
((prefix = backingStore.streamChunks),
|
|
2859
|
+
null === prefix &&
|
|
2860
|
+
(prefix = backingStore.streamChunks = new Map()),
|
|
2861
|
+
(backingStore = prefix.get(key)),
|
|
2862
|
+
void 0 === backingStore
|
|
2863
|
+
? prefix.set(key, [value])
|
|
2864
|
+
: backingStore.push(value));
|
|
2865
|
+
return;
|
|
2866
|
+
}
|
|
2867
|
+
"string" === typeof value
|
|
2868
|
+
? ((prefix = backingStore.stringChunks),
|
|
2869
|
+
null === prefix && (prefix = backingStore.stringChunks = new Map()),
|
|
2870
|
+
prefix.set(key, value))
|
|
2871
|
+
: ((prefix = backingStore.blobs),
|
|
2872
|
+
null === prefix && (prefix = backingStore.blobs = new Map()),
|
|
2873
|
+
prefix.set(key, value));
|
|
2874
|
+
}
|
|
2875
|
+
}
|
|
2876
|
+
function getBackingBlob(backingStore, key) {
|
|
2877
|
+
backingStore = backingStore.blobs;
|
|
2878
|
+
return null === backingStore ? void 0 : backingStore.get(key);
|
|
2879
|
+
}
|
|
2814
2880
|
function ReactPromise(status, value, reason) {
|
|
2815
2881
|
this.status = status;
|
|
2816
2882
|
this.value = value;
|
|
@@ -3122,9 +3188,11 @@
|
|
|
3122
3188
|
function getChunk(response, id) {
|
|
3123
3189
|
var chunks = response._chunks,
|
|
3124
3190
|
chunk = chunks.get(id);
|
|
3125
|
-
chunk
|
|
3126
|
-
|
|
3127
|
-
|
|
3191
|
+
if (!chunk) {
|
|
3192
|
+
chunk = response._prefix;
|
|
3193
|
+
var stringChunks = response._formData.stringChunks;
|
|
3194
|
+
chunk = null === stringChunks ? void 0 : stringChunks.get(chunk + id);
|
|
3195
|
+
chunk =
|
|
3128
3196
|
"string" === typeof chunk
|
|
3129
3197
|
? new ReactPromise(
|
|
3130
3198
|
"resolved_model",
|
|
@@ -3133,8 +3201,9 @@
|
|
|
3133
3201
|
)
|
|
3134
3202
|
: response._closed
|
|
3135
3203
|
? new ReactPromise("rejected", null, response._closedReason)
|
|
3136
|
-
: new ReactPromise("pending", null, null)
|
|
3137
|
-
chunks.set(id, chunk)
|
|
3204
|
+
: new ReactPromise("pending", null, null);
|
|
3205
|
+
chunks.set(id, chunk);
|
|
3206
|
+
}
|
|
3138
3207
|
return chunk;
|
|
3139
3208
|
}
|
|
3140
3209
|
function fulfillReference(response, reference, value, arrayRoot) {
|
|
@@ -3381,7 +3450,7 @@
|
|
|
3381
3450
|
Error("Already initialized typed array.")
|
|
3382
3451
|
)
|
|
3383
3452
|
);
|
|
3384
|
-
reference = response._formData
|
|
3453
|
+
reference = getBackingBlob(response._formData, key).arrayBuffer();
|
|
3385
3454
|
if (initializingHandler) {
|
|
3386
3455
|
var handler = initializingHandler;
|
|
3387
3456
|
handler.deps++;
|
|
@@ -3425,15 +3494,17 @@
|
|
|
3425
3494
|
var chunks = response._chunks;
|
|
3426
3495
|
stream = new ReactPromise("fulfilled", stream, controller);
|
|
3427
3496
|
chunks.set(id, stream);
|
|
3428
|
-
|
|
3429
|
-
|
|
3430
|
-
|
|
3431
|
-
|
|
3432
|
-
|
|
3497
|
+
chunks = response._prefix;
|
|
3498
|
+
response = response._formData.streamChunks;
|
|
3499
|
+
id = null === response ? void 0 : response.get(chunks + "S" + id);
|
|
3500
|
+
if (void 0 !== id)
|
|
3501
|
+
for (response = 0; response < id.length; response++)
|
|
3502
|
+
(chunks = id[response]),
|
|
3503
|
+
"C" === chunks[0]
|
|
3433
3504
|
? controller.close(
|
|
3434
3505
|
"C" === chunks ? '"$undefined"' : chunks.slice(1)
|
|
3435
3506
|
)
|
|
3436
|
-
: controller.enqueueModel(chunks)
|
|
3507
|
+
: controller.enqueueModel(chunks);
|
|
3437
3508
|
}
|
|
3438
3509
|
function parseReadableStream(response, reference, type) {
|
|
3439
3510
|
function enqueue(value) {
|
|
@@ -3597,7 +3668,14 @@
|
|
|
3597
3668
|
});
|
|
3598
3669
|
return iterator;
|
|
3599
3670
|
}
|
|
3600
|
-
function parseModelString(
|
|
3671
|
+
function parseModelString(
|
|
3672
|
+
response,
|
|
3673
|
+
obj,
|
|
3674
|
+
key$jscomp$0,
|
|
3675
|
+
value,
|
|
3676
|
+
reference,
|
|
3677
|
+
arrayRoot
|
|
3678
|
+
) {
|
|
3601
3679
|
if ("$" === value[0]) {
|
|
3602
3680
|
switch (value[1]) {
|
|
3603
3681
|
case "$":
|
|
@@ -3617,7 +3695,7 @@
|
|
|
3617
3695
|
response,
|
|
3618
3696
|
arrayRoot,
|
|
3619
3697
|
obj,
|
|
3620
|
-
key,
|
|
3698
|
+
key$jscomp$0,
|
|
3621
3699
|
null,
|
|
3622
3700
|
loadServerReference$1
|
|
3623
3701
|
)
|
|
@@ -3637,41 +3715,44 @@
|
|
|
3637
3715
|
case "Q":
|
|
3638
3716
|
return (
|
|
3639
3717
|
(arrayRoot = value.slice(2)),
|
|
3640
|
-
getOutlinedModel(
|
|
3718
|
+
getOutlinedModel(
|
|
3719
|
+
response,
|
|
3720
|
+
arrayRoot,
|
|
3721
|
+
obj,
|
|
3722
|
+
key$jscomp$0,
|
|
3723
|
+
null,
|
|
3724
|
+
createMap
|
|
3725
|
+
)
|
|
3641
3726
|
);
|
|
3642
3727
|
case "W":
|
|
3643
3728
|
return (
|
|
3644
3729
|
(arrayRoot = value.slice(2)),
|
|
3645
|
-
getOutlinedModel(
|
|
3730
|
+
getOutlinedModel(
|
|
3731
|
+
response,
|
|
3732
|
+
arrayRoot,
|
|
3733
|
+
obj,
|
|
3734
|
+
key$jscomp$0,
|
|
3735
|
+
null,
|
|
3736
|
+
createSet
|
|
3737
|
+
)
|
|
3646
3738
|
);
|
|
3647
3739
|
case "K":
|
|
3648
|
-
key = value.slice(2);
|
|
3649
|
-
obj = response.
|
|
3650
|
-
|
|
3651
|
-
|
|
3652
|
-
|
|
3653
|
-
|
|
3654
|
-
|
|
3655
|
-
|
|
3656
|
-
|
|
3657
|
-
(
|
|
3658
|
-
|
|
3659
|
-
|
|
3660
|
-
|
|
3661
|
-
|
|
3662
|
-
for (
|
|
3663
|
-
var referencedFormDataKey = value.slice(key.length), i = 0;
|
|
3664
|
-
i < reference.length;
|
|
3665
|
-
i++
|
|
3666
|
-
)
|
|
3667
|
-
arrayRoot.append(referencedFormDataKey, reference[i]);
|
|
3668
|
-
reference = response;
|
|
3669
|
-
reference.data.delete(value);
|
|
3670
|
-
reference.keyPointer++;
|
|
3671
|
-
} else if (value.startsWith(obj)) break;
|
|
3672
|
-
else response.keyPointer++;
|
|
3740
|
+
key$jscomp$0 = value.slice(2);
|
|
3741
|
+
obj = response._formData;
|
|
3742
|
+
response = response._prefix + "_" + key$jscomp$0 + "_";
|
|
3743
|
+
key$jscomp$0 = new FormData();
|
|
3744
|
+
arrayRoot = obj.referencedEntries;
|
|
3745
|
+
if (null !== arrayRoot) {
|
|
3746
|
+
for (value = obj.keyPointer; value < arrayRoot.length; ) {
|
|
3747
|
+
reference = arrayRoot[value];
|
|
3748
|
+
var key = reference[0];
|
|
3749
|
+
if (!key.startsWith(response)) break;
|
|
3750
|
+
key$jscomp$0.append(key.slice(response.length), reference[1]);
|
|
3751
|
+
value++;
|
|
3752
|
+
}
|
|
3753
|
+
obj.keyPointer = value;
|
|
3673
3754
|
}
|
|
3674
|
-
return
|
|
3755
|
+
return key$jscomp$0;
|
|
3675
3756
|
case "i":
|
|
3676
3757
|
return (
|
|
3677
3758
|
(arrayRoot = value.slice(2)),
|
|
@@ -3679,7 +3760,7 @@
|
|
|
3679
3760
|
response,
|
|
3680
3761
|
arrayRoot,
|
|
3681
3762
|
obj,
|
|
3682
|
-
key,
|
|
3763
|
+
key$jscomp$0,
|
|
3683
3764
|
null,
|
|
3684
3765
|
extractIterator
|
|
3685
3766
|
)
|
|
@@ -3714,7 +3795,7 @@
|
|
|
3714
3795
|
ArrayBuffer,
|
|
3715
3796
|
1,
|
|
3716
3797
|
obj,
|
|
3717
|
-
key,
|
|
3798
|
+
key$jscomp$0,
|
|
3718
3799
|
arrayRoot
|
|
3719
3800
|
);
|
|
3720
3801
|
case "O":
|
|
@@ -3724,7 +3805,7 @@
|
|
|
3724
3805
|
Int8Array,
|
|
3725
3806
|
1,
|
|
3726
3807
|
obj,
|
|
3727
|
-
key,
|
|
3808
|
+
key$jscomp$0,
|
|
3728
3809
|
arrayRoot
|
|
3729
3810
|
);
|
|
3730
3811
|
case "o":
|
|
@@ -3734,7 +3815,7 @@
|
|
|
3734
3815
|
Uint8Array,
|
|
3735
3816
|
1,
|
|
3736
3817
|
obj,
|
|
3737
|
-
key,
|
|
3818
|
+
key$jscomp$0,
|
|
3738
3819
|
arrayRoot
|
|
3739
3820
|
);
|
|
3740
3821
|
case "U":
|
|
@@ -3744,7 +3825,7 @@
|
|
|
3744
3825
|
Uint8ClampedArray,
|
|
3745
3826
|
1,
|
|
3746
3827
|
obj,
|
|
3747
|
-
key,
|
|
3828
|
+
key$jscomp$0,
|
|
3748
3829
|
arrayRoot
|
|
3749
3830
|
);
|
|
3750
3831
|
case "S":
|
|
@@ -3754,7 +3835,7 @@
|
|
|
3754
3835
|
Int16Array,
|
|
3755
3836
|
2,
|
|
3756
3837
|
obj,
|
|
3757
|
-
key,
|
|
3838
|
+
key$jscomp$0,
|
|
3758
3839
|
arrayRoot
|
|
3759
3840
|
);
|
|
3760
3841
|
case "s":
|
|
@@ -3764,7 +3845,7 @@
|
|
|
3764
3845
|
Uint16Array,
|
|
3765
3846
|
2,
|
|
3766
3847
|
obj,
|
|
3767
|
-
key,
|
|
3848
|
+
key$jscomp$0,
|
|
3768
3849
|
arrayRoot
|
|
3769
3850
|
);
|
|
3770
3851
|
case "L":
|
|
@@ -3774,7 +3855,7 @@
|
|
|
3774
3855
|
Int32Array,
|
|
3775
3856
|
4,
|
|
3776
3857
|
obj,
|
|
3777
|
-
key,
|
|
3858
|
+
key$jscomp$0,
|
|
3778
3859
|
arrayRoot
|
|
3779
3860
|
);
|
|
3780
3861
|
case "l":
|
|
@@ -3784,7 +3865,7 @@
|
|
|
3784
3865
|
Uint32Array,
|
|
3785
3866
|
4,
|
|
3786
3867
|
obj,
|
|
3787
|
-
key,
|
|
3868
|
+
key$jscomp$0,
|
|
3788
3869
|
arrayRoot
|
|
3789
3870
|
);
|
|
3790
3871
|
case "G":
|
|
@@ -3794,7 +3875,7 @@
|
|
|
3794
3875
|
Float32Array,
|
|
3795
3876
|
4,
|
|
3796
3877
|
obj,
|
|
3797
|
-
key,
|
|
3878
|
+
key$jscomp$0,
|
|
3798
3879
|
arrayRoot
|
|
3799
3880
|
);
|
|
3800
3881
|
case "g":
|
|
@@ -3804,7 +3885,7 @@
|
|
|
3804
3885
|
Float64Array,
|
|
3805
3886
|
8,
|
|
3806
3887
|
obj,
|
|
3807
|
-
key,
|
|
3888
|
+
key$jscomp$0,
|
|
3808
3889
|
arrayRoot
|
|
3809
3890
|
);
|
|
3810
3891
|
case "M":
|
|
@@ -3814,7 +3895,7 @@
|
|
|
3814
3895
|
BigInt64Array,
|
|
3815
3896
|
8,
|
|
3816
3897
|
obj,
|
|
3817
|
-
key,
|
|
3898
|
+
key$jscomp$0,
|
|
3818
3899
|
arrayRoot
|
|
3819
3900
|
);
|
|
3820
3901
|
case "m":
|
|
@@ -3824,7 +3905,7 @@
|
|
|
3824
3905
|
BigUint64Array,
|
|
3825
3906
|
8,
|
|
3826
3907
|
obj,
|
|
3827
|
-
key,
|
|
3908
|
+
key$jscomp$0,
|
|
3828
3909
|
arrayRoot
|
|
3829
3910
|
);
|
|
3830
3911
|
case "V":
|
|
@@ -3834,13 +3915,13 @@
|
|
|
3834
3915
|
DataView,
|
|
3835
3916
|
1,
|
|
3836
3917
|
obj,
|
|
3837
|
-
key,
|
|
3918
|
+
key$jscomp$0,
|
|
3838
3919
|
arrayRoot
|
|
3839
3920
|
);
|
|
3840
3921
|
case "B":
|
|
3841
3922
|
return (
|
|
3842
3923
|
(obj = parseInt(value.slice(2), 16)),
|
|
3843
|
-
response._formData
|
|
3924
|
+
getBackingBlob(response._formData, response._prefix + obj)
|
|
3844
3925
|
);
|
|
3845
3926
|
case "R":
|
|
3846
3927
|
return parseReadableStream(response, value, void 0);
|
|
@@ -3856,7 +3937,7 @@
|
|
|
3856
3937
|
response,
|
|
3857
3938
|
value,
|
|
3858
3939
|
obj,
|
|
3859
|
-
key,
|
|
3940
|
+
key$jscomp$0,
|
|
3860
3941
|
arrayRoot,
|
|
3861
3942
|
createModel
|
|
3862
3943
|
);
|
|
@@ -3875,11 +3956,20 @@
|
|
|
3875
3956
|
: new FormData(),
|
|
3876
3957
|
arraySizeLimit =
|
|
3877
3958
|
4 < arguments.length && void 0 !== arguments[4] ? arguments[4] : 1e6,
|
|
3878
|
-
chunks = new Map()
|
|
3959
|
+
chunks = new Map(),
|
|
3960
|
+
backingStore = {
|
|
3961
|
+
prefix: formFieldPrefix,
|
|
3962
|
+
referencedEntries: null,
|
|
3963
|
+
keyPointer: 0,
|
|
3964
|
+
stringChunks: null,
|
|
3965
|
+
streamChunks: null,
|
|
3966
|
+
blobs: null
|
|
3967
|
+
};
|
|
3968
|
+
backingFormData.forEach(appendBackingEntry.bind(null, backingStore));
|
|
3879
3969
|
return {
|
|
3880
3970
|
_bundlerConfig: bundlerConfig,
|
|
3881
3971
|
_prefix: formFieldPrefix,
|
|
3882
|
-
_formData:
|
|
3972
|
+
_formData: backingStore,
|
|
3883
3973
|
_chunks: chunks,
|
|
3884
3974
|
_closed: !1,
|
|
3885
3975
|
_closedReason: null,
|
|
@@ -3889,19 +3979,26 @@
|
|
|
3889
3979
|
};
|
|
3890
3980
|
}
|
|
3891
3981
|
function resolveField(response, key, value) {
|
|
3892
|
-
var
|
|
3893
|
-
|
|
3894
|
-
|
|
3895
|
-
|
|
3896
|
-
|
|
3897
|
-
|
|
3898
|
-
|
|
3899
|
-
|
|
3900
|
-
|
|
3901
|
-
|
|
3902
|
-
|
|
3903
|
-
|
|
3904
|
-
|
|
3982
|
+
var prefix = response._prefix;
|
|
3983
|
+
if (key.startsWith(prefix)) {
|
|
3984
|
+
var chunks = response._chunks;
|
|
3985
|
+
if ("S" === key[prefix.length]) {
|
|
3986
|
+
if (
|
|
3987
|
+
key.length > prefix.length + 1 &&
|
|
3988
|
+
((prefix = +key.slice(prefix.length + 1)),
|
|
3989
|
+
(chunks = chunks.get(prefix)))
|
|
3990
|
+
) {
|
|
3991
|
+
resolveModelChunk(response, chunks, value, prefix);
|
|
3992
|
+
return;
|
|
3993
|
+
}
|
|
3994
|
+
} else if (
|
|
3995
|
+
((prefix = +key.slice(prefix.length)), (chunks = chunks.get(prefix)))
|
|
3996
|
+
) {
|
|
3997
|
+
resolveModelChunk(response, chunks, value, prefix);
|
|
3998
|
+
return;
|
|
3999
|
+
}
|
|
4000
|
+
}
|
|
4001
|
+
appendBackingEntry(response._formData, value, key);
|
|
3905
4002
|
}
|
|
3906
4003
|
function close(response) {
|
|
3907
4004
|
reportGlobalError(response, Error("Connection closed."));
|
|
@@ -3981,6 +4078,12 @@
|
|
|
3981
4078
|
var async_hooks = require("async_hooks"),
|
|
3982
4079
|
ReactDOM = require("react-dom"),
|
|
3983
4080
|
React = require("react"),
|
|
4081
|
+
hasOwnProperty = Object.prototype.hasOwnProperty,
|
|
4082
|
+
supportsArrayBufferDetached = hasOwnProperty.call(
|
|
4083
|
+
ArrayBuffer.prototype,
|
|
4084
|
+
"detached"
|
|
4085
|
+
),
|
|
4086
|
+
didWarnAboutMissingArrayBufferDetached = !1,
|
|
3984
4087
|
scheduleMicrotask = queueMicrotask,
|
|
3985
4088
|
currentView = null,
|
|
3986
4089
|
writtenBytes = 0,
|
|
@@ -4422,7 +4525,6 @@
|
|
|
4422
4525
|
debugID = null,
|
|
4423
4526
|
modelRoot = !1,
|
|
4424
4527
|
emptyRoot = {},
|
|
4425
|
-
hasOwnProperty = Object.prototype.hasOwnProperty,
|
|
4426
4528
|
chunkCache = new Map(),
|
|
4427
4529
|
RESPONSE_SYMBOL = Symbol();
|
|
4428
4530
|
ReactPromise.prototype = Object.create(Promise.prototype);
|
|
@@ -4560,26 +4662,33 @@
|
|
|
4560
4662
|
var current = head;
|
|
4561
4663
|
if (!current.complete) return;
|
|
4562
4664
|
try {
|
|
4563
|
-
var
|
|
4564
|
-
|
|
4565
|
-
|
|
4566
|
-
|
|
4567
|
-
|
|
4568
|
-
|
|
4569
|
-
|
|
4570
|
-
|
|
4571
|
-
|
|
4572
|
-
|
|
4573
|
-
|
|
4574
|
-
|
|
4665
|
+
var key = current.name,
|
|
4666
|
+
JSCompiler_temp_const = response._formData;
|
|
4667
|
+
var handle = current.file;
|
|
4668
|
+
if ("function" === typeof File)
|
|
4669
|
+
var JSCompiler_inline_result = new File(
|
|
4670
|
+
handle.chunks,
|
|
4671
|
+
handle.filename,
|
|
4672
|
+
{ type: handle.mime }
|
|
4673
|
+
);
|
|
4674
|
+
else {
|
|
4675
|
+
var scratch = new FormData();
|
|
4676
|
+
scratch.append(
|
|
4677
|
+
"file",
|
|
4678
|
+
new Blob(handle.chunks, { type: handle.mime }),
|
|
4679
|
+
handle.filename
|
|
4680
|
+
);
|
|
4681
|
+
JSCompiler_inline_result = scratch.get("file");
|
|
4682
|
+
}
|
|
4683
|
+
appendBackingEntry(
|
|
4684
|
+
JSCompiler_temp_const,
|
|
4685
|
+
JSCompiler_inline_result,
|
|
4686
|
+
key
|
|
4687
|
+
);
|
|
4575
4688
|
var queuedFields = current.queuedFields;
|
|
4576
4689
|
if (null !== queuedFields)
|
|
4577
|
-
for (
|
|
4578
|
-
resolveField(
|
|
4579
|
-
response$jscomp$0,
|
|
4580
|
-
queuedFields[response],
|
|
4581
|
-
queuedFields[response + 1]
|
|
4582
|
-
);
|
|
4690
|
+
for (var i = 0; i < queuedFields.length; i += 2)
|
|
4691
|
+
resolveField(response, queuedFields[i], queuedFields[i + 1]);
|
|
4583
4692
|
} catch (error) {
|
|
4584
4693
|
busboyStream.destroy(error);
|
|
4585
4694
|
return;
|
|
@@ -4587,9 +4696,9 @@
|
|
|
4587
4696
|
head = current.next;
|
|
4588
4697
|
}
|
|
4589
4698
|
tail = null;
|
|
4590
|
-
bodyFinished && !closed && ((closed = !0), close(response
|
|
4699
|
+
bodyFinished && !closed && ((closed = !0), close(response));
|
|
4591
4700
|
}
|
|
4592
|
-
var response
|
|
4701
|
+
var response = createResponse(
|
|
4593
4702
|
webpackMap,
|
|
4594
4703
|
"",
|
|
4595
4704
|
options ? options.temporaryReferences : void 0,
|
|
@@ -4606,7 +4715,7 @@
|
|
|
4606
4715
|
tail.queuedFields.push(name, value);
|
|
4607
4716
|
else
|
|
4608
4717
|
try {
|
|
4609
|
-
resolveField(response
|
|
4718
|
+
resolveField(response, name, value);
|
|
4610
4719
|
} catch (error) {
|
|
4611
4720
|
busboyStream.destroy(error);
|
|
4612
4721
|
}
|
|
@@ -4652,14 +4761,14 @@
|
|
|
4652
4761
|
flush();
|
|
4653
4762
|
closed ||
|
|
4654
4763
|
reportGlobalError(
|
|
4655
|
-
response
|
|
4764
|
+
response,
|
|
4656
4765
|
Error("Reply finished with incomplete file part.")
|
|
4657
4766
|
);
|
|
4658
4767
|
});
|
|
4659
4768
|
busboyStream.on("error", function (err) {
|
|
4660
|
-
reportGlobalError(response
|
|
4769
|
+
reportGlobalError(response, err);
|
|
4661
4770
|
});
|
|
4662
|
-
return getChunk(response
|
|
4771
|
+
return getChunk(response, 0);
|
|
4663
4772
|
};
|
|
4664
4773
|
exports.registerClientReference = function (
|
|
4665
4774
|
proxyImplementation,
|