react-server-dom-parcel 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-parcel-client.browser.development.js +61 -52
- package/cjs/react-server-dom-parcel-client.browser.production.js +79 -63
- package/cjs/react-server-dom-parcel-client.edge.development.js +64 -52
- package/cjs/react-server-dom-parcel-client.edge.production.js +84 -69
- package/cjs/react-server-dom-parcel-client.node.development.js +64 -52
- package/cjs/react-server-dom-parcel-client.node.production.js +84 -69
- package/cjs/react-server-dom-parcel-server.browser.development.js +184 -93
- package/cjs/react-server-dom-parcel-server.browser.production.js +182 -88
- package/cjs/react-server-dom-parcel-server.edge.development.js +215 -112
- package/cjs/react-server-dom-parcel-server.edge.production.js +209 -108
- package/cjs/react-server-dom-parcel-server.node.development.js +241 -132
- package/cjs/react-server-dom-parcel-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) {
|
|
@@ -2074,13 +2085,35 @@
|
|
|
2074
2085
|
}
|
|
2075
2086
|
function emitTypedArrayChunk(request, id, tag, typedArray) {
|
|
2076
2087
|
request.pendingChunks++;
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
|
|
2088
|
+
a: {
|
|
2089
|
+
var view = new Uint8Array(
|
|
2090
|
+
typedArray.buffer,
|
|
2091
|
+
typedArray.byteOffset,
|
|
2092
|
+
typedArray.byteLength
|
|
2093
|
+
);
|
|
2094
|
+
if (2048 < typedArray.byteLength) {
|
|
2095
|
+
if (
|
|
2096
|
+
0 !== typedArray.byteOffset ||
|
|
2097
|
+
typedArray.byteLength !== typedArray.buffer.byteLength ||
|
|
2098
|
+
typedArray.buffer.resizable
|
|
2099
|
+
) {
|
|
2100
|
+
typedArray = view.slice();
|
|
2101
|
+
break a;
|
|
2102
|
+
}
|
|
2103
|
+
if (!supportsArrayBufferDetached) {
|
|
2104
|
+
didWarnAboutMissingArrayBufferDetached ||
|
|
2105
|
+
(console.error(
|
|
2106
|
+
"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."
|
|
2107
|
+
),
|
|
2108
|
+
(didWarnAboutMissingArrayBufferDetached = !0));
|
|
2109
|
+
typedArray = view.slice();
|
|
2110
|
+
break a;
|
|
2111
|
+
}
|
|
2112
|
+
}
|
|
2113
|
+
typedArray = view;
|
|
2114
|
+
}
|
|
2115
|
+
view = typedArray.byteLength;
|
|
2116
|
+
id = id.toString(16) + ":" + tag + view.toString(16) + ",";
|
|
2084
2117
|
request.completedRegularChunks.push(id, typedArray);
|
|
2085
2118
|
}
|
|
2086
2119
|
function emitTextChunk(request, id, text) {
|
|
@@ -2660,6 +2693,39 @@
|
|
|
2660
2693
|
if (hasOwnProperty.call(moduleExports, metadata[1]))
|
|
2661
2694
|
return moduleExports[metadata[1]];
|
|
2662
2695
|
}
|
|
2696
|
+
function appendBackingEntry(backingStore, value, key) {
|
|
2697
|
+
var prefix = backingStore.prefix;
|
|
2698
|
+
if (key.startsWith(prefix)) {
|
|
2699
|
+
switch (key[prefix.length]) {
|
|
2700
|
+
case "_":
|
|
2701
|
+
prefix = backingStore.referencedEntries;
|
|
2702
|
+
null === prefix && (prefix = backingStore.referencedEntries = []);
|
|
2703
|
+
prefix.push([key, value]);
|
|
2704
|
+
return;
|
|
2705
|
+
case "S":
|
|
2706
|
+
"string" === typeof value &&
|
|
2707
|
+
((prefix = backingStore.streamChunks),
|
|
2708
|
+
null === prefix &&
|
|
2709
|
+
(prefix = backingStore.streamChunks = new Map()),
|
|
2710
|
+
(backingStore = prefix.get(key)),
|
|
2711
|
+
void 0 === backingStore
|
|
2712
|
+
? prefix.set(key, [value])
|
|
2713
|
+
: backingStore.push(value));
|
|
2714
|
+
return;
|
|
2715
|
+
}
|
|
2716
|
+
"string" === typeof value
|
|
2717
|
+
? ((prefix = backingStore.stringChunks),
|
|
2718
|
+
null === prefix && (prefix = backingStore.stringChunks = new Map()),
|
|
2719
|
+
prefix.set(key, value))
|
|
2720
|
+
: ((prefix = backingStore.blobs),
|
|
2721
|
+
null === prefix && (prefix = backingStore.blobs = new Map()),
|
|
2722
|
+
prefix.set(key, value));
|
|
2723
|
+
}
|
|
2724
|
+
}
|
|
2725
|
+
function getBackingBlob(backingStore, key) {
|
|
2726
|
+
backingStore = backingStore.blobs;
|
|
2727
|
+
return null === backingStore ? void 0 : backingStore.get(key);
|
|
2728
|
+
}
|
|
2663
2729
|
function ReactPromise(status, value, reason) {
|
|
2664
2730
|
this.status = status;
|
|
2665
2731
|
this.value = value;
|
|
@@ -2971,9 +3037,11 @@
|
|
|
2971
3037
|
function getChunk(response, id) {
|
|
2972
3038
|
var chunks = response._chunks,
|
|
2973
3039
|
chunk = chunks.get(id);
|
|
2974
|
-
chunk
|
|
2975
|
-
|
|
2976
|
-
|
|
3040
|
+
if (!chunk) {
|
|
3041
|
+
chunk = response._prefix;
|
|
3042
|
+
var stringChunks = response._formData.stringChunks;
|
|
3043
|
+
chunk = null === stringChunks ? void 0 : stringChunks.get(chunk + id);
|
|
3044
|
+
chunk =
|
|
2977
3045
|
"string" === typeof chunk
|
|
2978
3046
|
? new ReactPromise(
|
|
2979
3047
|
"resolved_model",
|
|
@@ -2982,8 +3050,9 @@
|
|
|
2982
3050
|
)
|
|
2983
3051
|
: response._closed
|
|
2984
3052
|
? new ReactPromise("rejected", null, response._closedReason)
|
|
2985
|
-
: new ReactPromise("pending", null, null)
|
|
2986
|
-
chunks.set(id, chunk)
|
|
3053
|
+
: new ReactPromise("pending", null, null);
|
|
3054
|
+
chunks.set(id, chunk);
|
|
3055
|
+
}
|
|
2987
3056
|
return chunk;
|
|
2988
3057
|
}
|
|
2989
3058
|
function fulfillReference(response, reference, value, arrayRoot) {
|
|
@@ -3230,7 +3299,7 @@
|
|
|
3230
3299
|
Error("Already initialized typed array.")
|
|
3231
3300
|
)
|
|
3232
3301
|
);
|
|
3233
|
-
reference = response._formData
|
|
3302
|
+
reference = getBackingBlob(response._formData, key).arrayBuffer();
|
|
3234
3303
|
if (initializingHandler) {
|
|
3235
3304
|
var handler = initializingHandler;
|
|
3236
3305
|
handler.deps++;
|
|
@@ -3274,15 +3343,17 @@
|
|
|
3274
3343
|
var chunks = response._chunks;
|
|
3275
3344
|
stream = new ReactPromise("fulfilled", stream, controller);
|
|
3276
3345
|
chunks.set(id, stream);
|
|
3277
|
-
|
|
3278
|
-
|
|
3279
|
-
|
|
3280
|
-
|
|
3281
|
-
|
|
3346
|
+
chunks = response._prefix;
|
|
3347
|
+
response = response._formData.streamChunks;
|
|
3348
|
+
id = null === response ? void 0 : response.get(chunks + "S" + id);
|
|
3349
|
+
if (void 0 !== id)
|
|
3350
|
+
for (response = 0; response < id.length; response++)
|
|
3351
|
+
(chunks = id[response]),
|
|
3352
|
+
"C" === chunks[0]
|
|
3282
3353
|
? controller.close(
|
|
3283
3354
|
"C" === chunks ? '"$undefined"' : chunks.slice(1)
|
|
3284
3355
|
)
|
|
3285
|
-
: controller.enqueueModel(chunks)
|
|
3356
|
+
: controller.enqueueModel(chunks);
|
|
3286
3357
|
}
|
|
3287
3358
|
function parseReadableStream(response, reference, type) {
|
|
3288
3359
|
function enqueue(value) {
|
|
@@ -3446,7 +3517,14 @@
|
|
|
3446
3517
|
});
|
|
3447
3518
|
return iterator;
|
|
3448
3519
|
}
|
|
3449
|
-
function parseModelString(
|
|
3520
|
+
function parseModelString(
|
|
3521
|
+
response,
|
|
3522
|
+
obj,
|
|
3523
|
+
key$jscomp$0,
|
|
3524
|
+
value,
|
|
3525
|
+
reference,
|
|
3526
|
+
arrayRoot
|
|
3527
|
+
) {
|
|
3450
3528
|
if ("$" === value[0]) {
|
|
3451
3529
|
switch (value[1]) {
|
|
3452
3530
|
case "$":
|
|
@@ -3466,7 +3544,7 @@
|
|
|
3466
3544
|
response,
|
|
3467
3545
|
arrayRoot,
|
|
3468
3546
|
obj,
|
|
3469
|
-
key,
|
|
3547
|
+
key$jscomp$0,
|
|
3470
3548
|
null,
|
|
3471
3549
|
loadServerReference$1
|
|
3472
3550
|
)
|
|
@@ -3486,41 +3564,44 @@
|
|
|
3486
3564
|
case "Q":
|
|
3487
3565
|
return (
|
|
3488
3566
|
(arrayRoot = value.slice(2)),
|
|
3489
|
-
getOutlinedModel(
|
|
3567
|
+
getOutlinedModel(
|
|
3568
|
+
response,
|
|
3569
|
+
arrayRoot,
|
|
3570
|
+
obj,
|
|
3571
|
+
key$jscomp$0,
|
|
3572
|
+
null,
|
|
3573
|
+
createMap
|
|
3574
|
+
)
|
|
3490
3575
|
);
|
|
3491
3576
|
case "W":
|
|
3492
3577
|
return (
|
|
3493
3578
|
(arrayRoot = value.slice(2)),
|
|
3494
|
-
getOutlinedModel(
|
|
3579
|
+
getOutlinedModel(
|
|
3580
|
+
response,
|
|
3581
|
+
arrayRoot,
|
|
3582
|
+
obj,
|
|
3583
|
+
key$jscomp$0,
|
|
3584
|
+
null,
|
|
3585
|
+
createSet
|
|
3586
|
+
)
|
|
3495
3587
|
);
|
|
3496
3588
|
case "K":
|
|
3497
|
-
key = value.slice(2);
|
|
3498
|
-
obj = response.
|
|
3499
|
-
|
|
3500
|
-
|
|
3501
|
-
|
|
3502
|
-
|
|
3503
|
-
|
|
3504
|
-
|
|
3505
|
-
|
|
3506
|
-
(
|
|
3507
|
-
|
|
3508
|
-
|
|
3509
|
-
|
|
3510
|
-
|
|
3511
|
-
for (
|
|
3512
|
-
var referencedFormDataKey = value.slice(key.length), i = 0;
|
|
3513
|
-
i < reference.length;
|
|
3514
|
-
i++
|
|
3515
|
-
)
|
|
3516
|
-
arrayRoot.append(referencedFormDataKey, reference[i]);
|
|
3517
|
-
reference = response;
|
|
3518
|
-
reference.data.delete(value);
|
|
3519
|
-
reference.keyPointer++;
|
|
3520
|
-
} else if (value.startsWith(obj)) break;
|
|
3521
|
-
else response.keyPointer++;
|
|
3589
|
+
key$jscomp$0 = value.slice(2);
|
|
3590
|
+
obj = response._formData;
|
|
3591
|
+
response = response._prefix + "_" + key$jscomp$0 + "_";
|
|
3592
|
+
key$jscomp$0 = new FormData();
|
|
3593
|
+
arrayRoot = obj.referencedEntries;
|
|
3594
|
+
if (null !== arrayRoot) {
|
|
3595
|
+
for (value = obj.keyPointer; value < arrayRoot.length; ) {
|
|
3596
|
+
reference = arrayRoot[value];
|
|
3597
|
+
var key = reference[0];
|
|
3598
|
+
if (!key.startsWith(response)) break;
|
|
3599
|
+
key$jscomp$0.append(key.slice(response.length), reference[1]);
|
|
3600
|
+
value++;
|
|
3601
|
+
}
|
|
3602
|
+
obj.keyPointer = value;
|
|
3522
3603
|
}
|
|
3523
|
-
return
|
|
3604
|
+
return key$jscomp$0;
|
|
3524
3605
|
case "i":
|
|
3525
3606
|
return (
|
|
3526
3607
|
(arrayRoot = value.slice(2)),
|
|
@@ -3528,7 +3609,7 @@
|
|
|
3528
3609
|
response,
|
|
3529
3610
|
arrayRoot,
|
|
3530
3611
|
obj,
|
|
3531
|
-
key,
|
|
3612
|
+
key$jscomp$0,
|
|
3532
3613
|
null,
|
|
3533
3614
|
extractIterator
|
|
3534
3615
|
)
|
|
@@ -3563,7 +3644,7 @@
|
|
|
3563
3644
|
ArrayBuffer,
|
|
3564
3645
|
1,
|
|
3565
3646
|
obj,
|
|
3566
|
-
key,
|
|
3647
|
+
key$jscomp$0,
|
|
3567
3648
|
arrayRoot
|
|
3568
3649
|
);
|
|
3569
3650
|
case "O":
|
|
@@ -3573,7 +3654,7 @@
|
|
|
3573
3654
|
Int8Array,
|
|
3574
3655
|
1,
|
|
3575
3656
|
obj,
|
|
3576
|
-
key,
|
|
3657
|
+
key$jscomp$0,
|
|
3577
3658
|
arrayRoot
|
|
3578
3659
|
);
|
|
3579
3660
|
case "o":
|
|
@@ -3583,7 +3664,7 @@
|
|
|
3583
3664
|
Uint8Array,
|
|
3584
3665
|
1,
|
|
3585
3666
|
obj,
|
|
3586
|
-
key,
|
|
3667
|
+
key$jscomp$0,
|
|
3587
3668
|
arrayRoot
|
|
3588
3669
|
);
|
|
3589
3670
|
case "U":
|
|
@@ -3593,7 +3674,7 @@
|
|
|
3593
3674
|
Uint8ClampedArray,
|
|
3594
3675
|
1,
|
|
3595
3676
|
obj,
|
|
3596
|
-
key,
|
|
3677
|
+
key$jscomp$0,
|
|
3597
3678
|
arrayRoot
|
|
3598
3679
|
);
|
|
3599
3680
|
case "S":
|
|
@@ -3603,7 +3684,7 @@
|
|
|
3603
3684
|
Int16Array,
|
|
3604
3685
|
2,
|
|
3605
3686
|
obj,
|
|
3606
|
-
key,
|
|
3687
|
+
key$jscomp$0,
|
|
3607
3688
|
arrayRoot
|
|
3608
3689
|
);
|
|
3609
3690
|
case "s":
|
|
@@ -3613,7 +3694,7 @@
|
|
|
3613
3694
|
Uint16Array,
|
|
3614
3695
|
2,
|
|
3615
3696
|
obj,
|
|
3616
|
-
key,
|
|
3697
|
+
key$jscomp$0,
|
|
3617
3698
|
arrayRoot
|
|
3618
3699
|
);
|
|
3619
3700
|
case "L":
|
|
@@ -3623,7 +3704,7 @@
|
|
|
3623
3704
|
Int32Array,
|
|
3624
3705
|
4,
|
|
3625
3706
|
obj,
|
|
3626
|
-
key,
|
|
3707
|
+
key$jscomp$0,
|
|
3627
3708
|
arrayRoot
|
|
3628
3709
|
);
|
|
3629
3710
|
case "l":
|
|
@@ -3633,7 +3714,7 @@
|
|
|
3633
3714
|
Uint32Array,
|
|
3634
3715
|
4,
|
|
3635
3716
|
obj,
|
|
3636
|
-
key,
|
|
3717
|
+
key$jscomp$0,
|
|
3637
3718
|
arrayRoot
|
|
3638
3719
|
);
|
|
3639
3720
|
case "G":
|
|
@@ -3643,7 +3724,7 @@
|
|
|
3643
3724
|
Float32Array,
|
|
3644
3725
|
4,
|
|
3645
3726
|
obj,
|
|
3646
|
-
key,
|
|
3727
|
+
key$jscomp$0,
|
|
3647
3728
|
arrayRoot
|
|
3648
3729
|
);
|
|
3649
3730
|
case "g":
|
|
@@ -3653,7 +3734,7 @@
|
|
|
3653
3734
|
Float64Array,
|
|
3654
3735
|
8,
|
|
3655
3736
|
obj,
|
|
3656
|
-
key,
|
|
3737
|
+
key$jscomp$0,
|
|
3657
3738
|
arrayRoot
|
|
3658
3739
|
);
|
|
3659
3740
|
case "M":
|
|
@@ -3663,7 +3744,7 @@
|
|
|
3663
3744
|
BigInt64Array,
|
|
3664
3745
|
8,
|
|
3665
3746
|
obj,
|
|
3666
|
-
key,
|
|
3747
|
+
key$jscomp$0,
|
|
3667
3748
|
arrayRoot
|
|
3668
3749
|
);
|
|
3669
3750
|
case "m":
|
|
@@ -3673,7 +3754,7 @@
|
|
|
3673
3754
|
BigUint64Array,
|
|
3674
3755
|
8,
|
|
3675
3756
|
obj,
|
|
3676
|
-
key,
|
|
3757
|
+
key$jscomp$0,
|
|
3677
3758
|
arrayRoot
|
|
3678
3759
|
);
|
|
3679
3760
|
case "V":
|
|
@@ -3683,13 +3764,13 @@
|
|
|
3683
3764
|
DataView,
|
|
3684
3765
|
1,
|
|
3685
3766
|
obj,
|
|
3686
|
-
key,
|
|
3767
|
+
key$jscomp$0,
|
|
3687
3768
|
arrayRoot
|
|
3688
3769
|
);
|
|
3689
3770
|
case "B":
|
|
3690
3771
|
return (
|
|
3691
3772
|
(obj = parseInt(value.slice(2), 16)),
|
|
3692
|
-
response._formData
|
|
3773
|
+
getBackingBlob(response._formData, response._prefix + obj)
|
|
3693
3774
|
);
|
|
3694
3775
|
case "R":
|
|
3695
3776
|
return parseReadableStream(response, value, void 0);
|
|
@@ -3705,7 +3786,7 @@
|
|
|
3705
3786
|
response,
|
|
3706
3787
|
value,
|
|
3707
3788
|
obj,
|
|
3708
|
-
key,
|
|
3789
|
+
key$jscomp$0,
|
|
3709
3790
|
arrayRoot,
|
|
3710
3791
|
createModel
|
|
3711
3792
|
);
|
|
@@ -3724,11 +3805,20 @@
|
|
|
3724
3805
|
: new FormData(),
|
|
3725
3806
|
arraySizeLimit =
|
|
3726
3807
|
4 < arguments.length && void 0 !== arguments[4] ? arguments[4] : 1e6,
|
|
3727
|
-
chunks = new Map()
|
|
3808
|
+
chunks = new Map(),
|
|
3809
|
+
backingStore = {
|
|
3810
|
+
prefix: formFieldPrefix,
|
|
3811
|
+
referencedEntries: null,
|
|
3812
|
+
keyPointer: 0,
|
|
3813
|
+
stringChunks: null,
|
|
3814
|
+
streamChunks: null,
|
|
3815
|
+
blobs: null
|
|
3816
|
+
};
|
|
3817
|
+
backingFormData.forEach(appendBackingEntry.bind(null, backingStore));
|
|
3728
3818
|
return {
|
|
3729
3819
|
_bundlerConfig: bundlerConfig,
|
|
3730
3820
|
_prefix: formFieldPrefix,
|
|
3731
|
-
_formData:
|
|
3821
|
+
_formData: backingStore,
|
|
3732
3822
|
_chunks: chunks,
|
|
3733
3823
|
_closed: !1,
|
|
3734
3824
|
_closedReason: null,
|
|
@@ -3738,19 +3828,26 @@
|
|
|
3738
3828
|
};
|
|
3739
3829
|
}
|
|
3740
3830
|
function resolveField(response, key, value) {
|
|
3741
|
-
var
|
|
3742
|
-
|
|
3743
|
-
|
|
3744
|
-
|
|
3745
|
-
|
|
3746
|
-
|
|
3747
|
-
|
|
3748
|
-
|
|
3749
|
-
|
|
3750
|
-
|
|
3751
|
-
|
|
3752
|
-
|
|
3753
|
-
|
|
3831
|
+
var prefix = response._prefix;
|
|
3832
|
+
if (key.startsWith(prefix)) {
|
|
3833
|
+
var chunks = response._chunks;
|
|
3834
|
+
if ("S" === key[prefix.length]) {
|
|
3835
|
+
if (
|
|
3836
|
+
key.length > prefix.length + 1 &&
|
|
3837
|
+
((prefix = +key.slice(prefix.length + 1)),
|
|
3838
|
+
(chunks = chunks.get(prefix)))
|
|
3839
|
+
) {
|
|
3840
|
+
resolveModelChunk(response, chunks, value, prefix);
|
|
3841
|
+
return;
|
|
3842
|
+
}
|
|
3843
|
+
} else if (
|
|
3844
|
+
((prefix = +key.slice(prefix.length)), (chunks = chunks.get(prefix)))
|
|
3845
|
+
) {
|
|
3846
|
+
resolveModelChunk(response, chunks, value, prefix);
|
|
3847
|
+
return;
|
|
3848
|
+
}
|
|
3849
|
+
}
|
|
3850
|
+
appendBackingEntry(response._formData, value, key);
|
|
3754
3851
|
}
|
|
3755
3852
|
function close(response) {
|
|
3756
3853
|
reportGlobalError(response, Error("Connection closed."));
|
|
@@ -3875,6 +3972,12 @@
|
|
|
3875
3972
|
var async_hooks = require("async_hooks"),
|
|
3876
3973
|
ReactDOM = require("react-dom"),
|
|
3877
3974
|
React = require("react"),
|
|
3975
|
+
hasOwnProperty = Object.prototype.hasOwnProperty,
|
|
3976
|
+
supportsArrayBufferDetached = hasOwnProperty.call(
|
|
3977
|
+
ArrayBuffer.prototype,
|
|
3978
|
+
"detached"
|
|
3979
|
+
),
|
|
3980
|
+
didWarnAboutMissingArrayBufferDetached = !1,
|
|
3878
3981
|
scheduleMicrotask = queueMicrotask,
|
|
3879
3982
|
currentView = null,
|
|
3880
3983
|
writtenBytes = 0,
|
|
@@ -4252,7 +4355,6 @@
|
|
|
4252
4355
|
debugID = null,
|
|
4253
4356
|
modelRoot = !1,
|
|
4254
4357
|
emptyRoot = {},
|
|
4255
|
-
hasOwnProperty = Object.prototype.hasOwnProperty,
|
|
4256
4358
|
RESPONSE_SYMBOL = Symbol();
|
|
4257
4359
|
ReactPromise.prototype = Object.create(Promise.prototype);
|
|
4258
4360
|
ReactPromise.prototype.then = function (resolve, reject) {
|
|
@@ -4357,26 +4459,33 @@
|
|
|
4357
4459
|
var current = head;
|
|
4358
4460
|
if (!current.complete) return;
|
|
4359
4461
|
try {
|
|
4360
|
-
var
|
|
4361
|
-
|
|
4362
|
-
|
|
4363
|
-
|
|
4364
|
-
|
|
4365
|
-
|
|
4366
|
-
|
|
4367
|
-
|
|
4368
|
-
|
|
4369
|
-
|
|
4370
|
-
|
|
4371
|
-
|
|
4462
|
+
var key = current.name,
|
|
4463
|
+
JSCompiler_temp_const = response._formData;
|
|
4464
|
+
var handle = current.file;
|
|
4465
|
+
if ("function" === typeof File)
|
|
4466
|
+
var JSCompiler_inline_result = new File(
|
|
4467
|
+
handle.chunks,
|
|
4468
|
+
handle.filename,
|
|
4469
|
+
{ type: handle.mime }
|
|
4470
|
+
);
|
|
4471
|
+
else {
|
|
4472
|
+
var scratch = new FormData();
|
|
4473
|
+
scratch.append(
|
|
4474
|
+
"file",
|
|
4475
|
+
new Blob(handle.chunks, { type: handle.mime }),
|
|
4476
|
+
handle.filename
|
|
4477
|
+
);
|
|
4478
|
+
JSCompiler_inline_result = scratch.get("file");
|
|
4479
|
+
}
|
|
4480
|
+
appendBackingEntry(
|
|
4481
|
+
JSCompiler_temp_const,
|
|
4482
|
+
JSCompiler_inline_result,
|
|
4483
|
+
key
|
|
4484
|
+
);
|
|
4372
4485
|
var queuedFields = current.queuedFields;
|
|
4373
4486
|
if (null !== queuedFields)
|
|
4374
|
-
for (
|
|
4375
|
-
resolveField(
|
|
4376
|
-
response$jscomp$0,
|
|
4377
|
-
queuedFields[response],
|
|
4378
|
-
queuedFields[response + 1]
|
|
4379
|
-
);
|
|
4487
|
+
for (var i = 0; i < queuedFields.length; i += 2)
|
|
4488
|
+
resolveField(response, queuedFields[i], queuedFields[i + 1]);
|
|
4380
4489
|
} catch (error) {
|
|
4381
4490
|
busboyStream.destroy(error);
|
|
4382
4491
|
return;
|
|
@@ -4384,9 +4493,9 @@
|
|
|
4384
4493
|
head = current.next;
|
|
4385
4494
|
}
|
|
4386
4495
|
tail = null;
|
|
4387
|
-
bodyFinished && !closed && ((closed = !0), close(response
|
|
4496
|
+
bodyFinished && !closed && ((closed = !0), close(response));
|
|
4388
4497
|
}
|
|
4389
|
-
var response
|
|
4498
|
+
var response = createResponse(
|
|
4390
4499
|
serverManifest,
|
|
4391
4500
|
"",
|
|
4392
4501
|
options ? options.temporaryReferences : void 0,
|
|
@@ -4403,7 +4512,7 @@
|
|
|
4403
4512
|
tail.queuedFields.push(name, value);
|
|
4404
4513
|
else
|
|
4405
4514
|
try {
|
|
4406
|
-
resolveField(response
|
|
4515
|
+
resolveField(response, name, value);
|
|
4407
4516
|
} catch (error) {
|
|
4408
4517
|
busboyStream.destroy(error);
|
|
4409
4518
|
}
|
|
@@ -4449,14 +4558,14 @@
|
|
|
4449
4558
|
flush();
|
|
4450
4559
|
closed ||
|
|
4451
4560
|
reportGlobalError(
|
|
4452
|
-
response
|
|
4561
|
+
response,
|
|
4453
4562
|
Error("Reply finished with incomplete file part.")
|
|
4454
4563
|
);
|
|
4455
4564
|
});
|
|
4456
4565
|
busboyStream.on("error", function (err) {
|
|
4457
|
-
reportGlobalError(response
|
|
4566
|
+
reportGlobalError(response, err);
|
|
4458
4567
|
});
|
|
4459
|
-
return getChunk(response
|
|
4568
|
+
return getChunk(response, 0);
|
|
4460
4569
|
};
|
|
4461
4570
|
exports.loadServerAction = function (id) {
|
|
4462
4571
|
var reference = resolveServerReference(serverManifest, id);
|