react-server-dom-parcel 19.2.8 → 19.2.9
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 +77 -46
- package/cjs/react-server-dom-parcel-client.browser.production.js +81 -66
- package/cjs/react-server-dom-parcel-client.edge.development.js +78 -43
- package/cjs/react-server-dom-parcel-client.edge.production.js +84 -69
- package/cjs/react-server-dom-parcel-client.node.development.js +78 -43
- 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 +180 -86
- package/cjs/react-server-dom-parcel-server.edge.development.js +215 -112
- package/cjs/react-server-dom-parcel-server.edge.production.js +207 -106
- package/cjs/react-server-dom-parcel-server.node.development.js +237 -131
- package/cjs/react-server-dom-parcel-server.node.production.js +228 -123
- package/package.json +3 -3
|
@@ -36,6 +36,11 @@ function getIteratorFn(maybeIterable) {
|
|
|
36
36
|
return "function" === typeof maybeIterable ? maybeIterable : null;
|
|
37
37
|
}
|
|
38
38
|
var ASYNC_ITERATOR = Symbol.asyncIterator,
|
|
39
|
+
hasOwnProperty = Object.prototype.hasOwnProperty,
|
|
40
|
+
supportsArrayBufferDetached = hasOwnProperty.call(
|
|
41
|
+
ArrayBuffer.prototype,
|
|
42
|
+
"detached"
|
|
43
|
+
),
|
|
39
44
|
scheduleMicrotask = queueMicrotask,
|
|
40
45
|
currentView = null,
|
|
41
46
|
writtenBytes = 0,
|
|
@@ -77,33 +82,37 @@ function writeChunkAndReturn(destination, chunk) {
|
|
|
77
82
|
(currentView = new Uint8Array(2048)),
|
|
78
83
|
(writtenBytes = 0));
|
|
79
84
|
}
|
|
85
|
+
} else if (0 === chunk.byteLength) {
|
|
86
|
+
if (supportsArrayBufferDetached && chunk.buffer.detached)
|
|
87
|
+
throw Error(
|
|
88
|
+
"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()`."
|
|
89
|
+
);
|
|
80
90
|
} else
|
|
81
|
-
|
|
82
|
-
(
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
(
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
(writtenBytes = 0))));
|
|
91
|
+
2048 < chunk.byteLength
|
|
92
|
+
? (0 < writtenBytes &&
|
|
93
|
+
(writeToDestination(
|
|
94
|
+
destination,
|
|
95
|
+
currentView.subarray(0, writtenBytes)
|
|
96
|
+
),
|
|
97
|
+
(currentView = new Uint8Array(2048)),
|
|
98
|
+
(writtenBytes = 0)),
|
|
99
|
+
writeToDestination(destination, chunk))
|
|
100
|
+
: ((target = currentView.length - writtenBytes),
|
|
101
|
+
target < chunk.byteLength &&
|
|
102
|
+
(0 === target
|
|
103
|
+
? writeToDestination(destination, currentView)
|
|
104
|
+
: (currentView.set(chunk.subarray(0, target), writtenBytes),
|
|
105
|
+
(writtenBytes += target),
|
|
106
|
+
writeToDestination(destination, currentView),
|
|
107
|
+
(chunk = chunk.subarray(target))),
|
|
108
|
+
(currentView = new Uint8Array(2048)),
|
|
109
|
+
(writtenBytes = 0)),
|
|
110
|
+
currentView.set(chunk, writtenBytes),
|
|
111
|
+
(writtenBytes += chunk.byteLength),
|
|
112
|
+
2048 === writtenBytes &&
|
|
113
|
+
(writeToDestination(destination, currentView),
|
|
114
|
+
(currentView = new Uint8Array(2048)),
|
|
115
|
+
(writtenBytes = 0)));
|
|
107
116
|
return destinationHasCapacity;
|
|
108
117
|
}
|
|
109
118
|
var textEncoder = new util.TextEncoder();
|
|
@@ -694,8 +703,7 @@ function describeObjectForErrorMessage(objectOrArray, expandedName) {
|
|
|
694
703
|
"\n " + str + "\n " + objectOrArray)
|
|
695
704
|
: "\n " + str;
|
|
696
705
|
}
|
|
697
|
-
var
|
|
698
|
-
ObjectPrototype$1 = Object.prototype,
|
|
706
|
+
var ObjectPrototype$1 = Object.prototype,
|
|
699
707
|
stringify = JSON.stringify;
|
|
700
708
|
function defaultErrorHandler(error) {
|
|
701
709
|
console.error(error);
|
|
@@ -1694,11 +1702,28 @@ function emitErrorChunk(request, id, digest) {
|
|
|
1694
1702
|
}
|
|
1695
1703
|
function emitTypedArrayChunk(request, id, tag, typedArray, debug) {
|
|
1696
1704
|
debug ? request.pendingDebugChunks++ : request.pendingChunks++;
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1705
|
+
a: {
|
|
1706
|
+
debug = new Uint8Array(
|
|
1707
|
+
typedArray.buffer,
|
|
1708
|
+
typedArray.byteOffset,
|
|
1709
|
+
typedArray.byteLength
|
|
1710
|
+
);
|
|
1711
|
+
if (2048 < typedArray.byteLength) {
|
|
1712
|
+
if (
|
|
1713
|
+
0 !== typedArray.byteOffset ||
|
|
1714
|
+
typedArray.byteLength !== typedArray.buffer.byteLength ||
|
|
1715
|
+
typedArray.buffer.resizable
|
|
1716
|
+
) {
|
|
1717
|
+
typedArray = debug.slice();
|
|
1718
|
+
break a;
|
|
1719
|
+
}
|
|
1720
|
+
if (!supportsArrayBufferDetached) {
|
|
1721
|
+
typedArray = debug.slice();
|
|
1722
|
+
break a;
|
|
1723
|
+
}
|
|
1724
|
+
}
|
|
1725
|
+
typedArray = debug;
|
|
1726
|
+
}
|
|
1702
1727
|
debug = typedArray.byteLength;
|
|
1703
1728
|
id = id.toString(16) + ":" + tag + debug.toString(16) + ",";
|
|
1704
1729
|
request.completedRegularChunks.push(id, typedArray);
|
|
@@ -2064,13 +2089,37 @@ function requireModule(metadata) {
|
|
|
2064
2089
|
if (hasOwnProperty.call(moduleExports, metadata[1]))
|
|
2065
2090
|
return moduleExports[metadata[1]];
|
|
2066
2091
|
}
|
|
2067
|
-
function appendBackingEntry(backingStore,
|
|
2068
|
-
backingStore.
|
|
2069
|
-
|
|
2070
|
-
|
|
2071
|
-
|
|
2072
|
-
|
|
2073
|
-
|
|
2092
|
+
function appendBackingEntry(backingStore, value, key) {
|
|
2093
|
+
var prefix = backingStore.prefix;
|
|
2094
|
+
if (key.startsWith(prefix)) {
|
|
2095
|
+
switch (key[prefix.length]) {
|
|
2096
|
+
case "_":
|
|
2097
|
+
prefix = backingStore.referencedEntries;
|
|
2098
|
+
null === prefix && (prefix = backingStore.referencedEntries = []);
|
|
2099
|
+
prefix.push([key, value]);
|
|
2100
|
+
return;
|
|
2101
|
+
case "S":
|
|
2102
|
+
"string" === typeof value &&
|
|
2103
|
+
((prefix = backingStore.streamChunks),
|
|
2104
|
+
null === prefix && (prefix = backingStore.streamChunks = new Map()),
|
|
2105
|
+
(backingStore = prefix.get(key)),
|
|
2106
|
+
void 0 === backingStore
|
|
2107
|
+
? prefix.set(key, [value])
|
|
2108
|
+
: backingStore.push(value));
|
|
2109
|
+
return;
|
|
2110
|
+
}
|
|
2111
|
+
"string" === typeof value
|
|
2112
|
+
? ((prefix = backingStore.stringChunks),
|
|
2113
|
+
null === prefix && (prefix = backingStore.stringChunks = new Map()),
|
|
2114
|
+
prefix.set(key, value))
|
|
2115
|
+
: ((prefix = backingStore.blobs),
|
|
2116
|
+
null === prefix && (prefix = backingStore.blobs = new Map()),
|
|
2117
|
+
prefix.set(key, value));
|
|
2118
|
+
}
|
|
2119
|
+
}
|
|
2120
|
+
function getBackingBlob(backingStore, key) {
|
|
2121
|
+
backingStore = backingStore.blobs;
|
|
2122
|
+
return null === backingStore ? void 0 : backingStore.get(key);
|
|
2074
2123
|
}
|
|
2075
2124
|
var RESPONSE_SYMBOL = Symbol();
|
|
2076
2125
|
function ReactPromise(status, value, reason) {
|
|
@@ -2443,15 +2492,18 @@ function reportGlobalError(response, error) {
|
|
|
2443
2492
|
function getChunk(response, id) {
|
|
2444
2493
|
var chunks = response._chunks,
|
|
2445
2494
|
chunk = chunks.get(id);
|
|
2446
|
-
chunk
|
|
2447
|
-
|
|
2448
|
-
|
|
2495
|
+
if (!chunk) {
|
|
2496
|
+
chunk = response._prefix;
|
|
2497
|
+
var stringChunks = response._formData.stringChunks;
|
|
2498
|
+
chunk = null === stringChunks ? void 0 : stringChunks.get(chunk + id);
|
|
2499
|
+
chunk =
|
|
2449
2500
|
"string" === typeof chunk
|
|
2450
2501
|
? createResolvedModelChunk(response, chunk, id)
|
|
2451
2502
|
: response._closed
|
|
2452
2503
|
? new ReactPromise("rejected", null, response._closedReason)
|
|
2453
|
-
: new ReactPromise("pending", null, null)
|
|
2454
|
-
chunks.set(id, chunk)
|
|
2504
|
+
: new ReactPromise("pending", null, null);
|
|
2505
|
+
chunks.set(id, chunk);
|
|
2506
|
+
}
|
|
2455
2507
|
return chunk;
|
|
2456
2508
|
}
|
|
2457
2509
|
function fulfillReference(response, reference, value, arrayRoot) {
|
|
@@ -2682,7 +2734,7 @@ function parseTypedArray(
|
|
|
2682
2734
|
Error("Already initialized typed array.")
|
|
2683
2735
|
)
|
|
2684
2736
|
);
|
|
2685
|
-
reference = response._formData
|
|
2737
|
+
reference = getBackingBlob(response._formData, key).arrayBuffer();
|
|
2686
2738
|
if (initializingHandler) {
|
|
2687
2739
|
var handler = initializingHandler;
|
|
2688
2740
|
handler.deps++;
|
|
@@ -2726,13 +2778,15 @@ function resolveStream(response, id, stream, controller) {
|
|
|
2726
2778
|
var chunks = response._chunks;
|
|
2727
2779
|
stream = new ReactPromise("fulfilled", stream, controller);
|
|
2728
2780
|
chunks.set(id, stream);
|
|
2729
|
-
|
|
2730
|
-
|
|
2731
|
-
|
|
2732
|
-
|
|
2733
|
-
|
|
2781
|
+
chunks = response._prefix;
|
|
2782
|
+
response = response._formData.streamChunks;
|
|
2783
|
+
id = null === response ? void 0 : response.get(chunks + "S" + id);
|
|
2784
|
+
if (void 0 !== id)
|
|
2785
|
+
for (response = 0; response < id.length; response++)
|
|
2786
|
+
(chunks = id[response]),
|
|
2787
|
+
"C" === chunks[0]
|
|
2734
2788
|
? controller.close("C" === chunks ? '"$undefined"' : chunks.slice(1))
|
|
2735
|
-
: controller.enqueueModel(chunks)
|
|
2789
|
+
: controller.enqueueModel(chunks);
|
|
2736
2790
|
}
|
|
2737
2791
|
function parseReadableStream(response, reference, type) {
|
|
2738
2792
|
function enqueue(value) {
|
|
@@ -2898,7 +2952,14 @@ function parseAsyncIterable(response, reference, iterator) {
|
|
|
2898
2952
|
});
|
|
2899
2953
|
return iterator;
|
|
2900
2954
|
}
|
|
2901
|
-
function parseModelString(
|
|
2955
|
+
function parseModelString(
|
|
2956
|
+
response,
|
|
2957
|
+
obj,
|
|
2958
|
+
key$jscomp$0,
|
|
2959
|
+
value,
|
|
2960
|
+
reference,
|
|
2961
|
+
arrayRoot
|
|
2962
|
+
) {
|
|
2902
2963
|
if ("$" === value[0]) {
|
|
2903
2964
|
switch (value[1]) {
|
|
2904
2965
|
case "$":
|
|
@@ -2916,7 +2977,7 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
|
|
|
2916
2977
|
response,
|
|
2917
2978
|
arrayRoot,
|
|
2918
2979
|
obj,
|
|
2919
|
-
key,
|
|
2980
|
+
key$jscomp$0,
|
|
2920
2981
|
null,
|
|
2921
2982
|
loadServerReference$1
|
|
2922
2983
|
)
|
|
@@ -2933,43 +2994,55 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
|
|
|
2933
2994
|
case "Q":
|
|
2934
2995
|
return (
|
|
2935
2996
|
(arrayRoot = value.slice(2)),
|
|
2936
|
-
getOutlinedModel(
|
|
2997
|
+
getOutlinedModel(
|
|
2998
|
+
response,
|
|
2999
|
+
arrayRoot,
|
|
3000
|
+
obj,
|
|
3001
|
+
key$jscomp$0,
|
|
3002
|
+
null,
|
|
3003
|
+
createMap
|
|
3004
|
+
)
|
|
2937
3005
|
);
|
|
2938
3006
|
case "W":
|
|
2939
3007
|
return (
|
|
2940
3008
|
(arrayRoot = value.slice(2)),
|
|
2941
|
-
getOutlinedModel(
|
|
3009
|
+
getOutlinedModel(
|
|
3010
|
+
response,
|
|
3011
|
+
arrayRoot,
|
|
3012
|
+
obj,
|
|
3013
|
+
key$jscomp$0,
|
|
3014
|
+
null,
|
|
3015
|
+
createSet
|
|
3016
|
+
)
|
|
2942
3017
|
);
|
|
2943
3018
|
case "K":
|
|
2944
|
-
|
|
2945
|
-
obj = response._prefix + "_";
|
|
2946
|
-
|
|
2947
|
-
|
|
2948
|
-
|
|
2949
|
-
|
|
2950
|
-
|
|
2951
|
-
|
|
2952
|
-
|
|
2953
|
-
|
|
2954
|
-
|
|
2955
|
-
|
|
2956
|
-
|
|
2957
|
-
|
|
2958
|
-
var referencedFormDataKey = value.slice(key.length), i = 0;
|
|
2959
|
-
i < reference.length;
|
|
2960
|
-
i++
|
|
2961
|
-
)
|
|
2962
|
-
arrayRoot.append(referencedFormDataKey, reference[i]);
|
|
2963
|
-
response.data.delete(value);
|
|
2964
|
-
response.keyPointer++;
|
|
2965
|
-
} else if (value.startsWith(obj)) break;
|
|
2966
|
-
else response.keyPointer++;
|
|
3019
|
+
obj = value.slice(2);
|
|
3020
|
+
obj = response._prefix + "_" + obj + "_";
|
|
3021
|
+
response = response._formData;
|
|
3022
|
+
key$jscomp$0 = new FormData();
|
|
3023
|
+
arrayRoot = response.referencedEntries;
|
|
3024
|
+
if (null !== arrayRoot) {
|
|
3025
|
+
for (value = response.keyPointer; value < arrayRoot.length; ) {
|
|
3026
|
+
reference = arrayRoot[value];
|
|
3027
|
+
var key = reference[0];
|
|
3028
|
+
if (!key.startsWith(obj)) break;
|
|
3029
|
+
key$jscomp$0.append(key.slice(obj.length), reference[1]);
|
|
3030
|
+
value++;
|
|
3031
|
+
}
|
|
3032
|
+
response.keyPointer = value;
|
|
2967
3033
|
}
|
|
2968
|
-
return
|
|
3034
|
+
return key$jscomp$0;
|
|
2969
3035
|
case "i":
|
|
2970
3036
|
return (
|
|
2971
3037
|
(arrayRoot = value.slice(2)),
|
|
2972
|
-
getOutlinedModel(
|
|
3038
|
+
getOutlinedModel(
|
|
3039
|
+
response,
|
|
3040
|
+
arrayRoot,
|
|
3041
|
+
obj,
|
|
3042
|
+
key$jscomp$0,
|
|
3043
|
+
null,
|
|
3044
|
+
extractIterator
|
|
3045
|
+
)
|
|
2973
3046
|
);
|
|
2974
3047
|
case "I":
|
|
2975
3048
|
return Infinity;
|
|
@@ -2998,7 +3071,7 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
|
|
|
2998
3071
|
ArrayBuffer,
|
|
2999
3072
|
1,
|
|
3000
3073
|
obj,
|
|
3001
|
-
key,
|
|
3074
|
+
key$jscomp$0,
|
|
3002
3075
|
arrayRoot
|
|
3003
3076
|
);
|
|
3004
3077
|
case "O":
|
|
@@ -3008,7 +3081,7 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
|
|
|
3008
3081
|
Int8Array,
|
|
3009
3082
|
1,
|
|
3010
3083
|
obj,
|
|
3011
|
-
key,
|
|
3084
|
+
key$jscomp$0,
|
|
3012
3085
|
arrayRoot
|
|
3013
3086
|
);
|
|
3014
3087
|
case "o":
|
|
@@ -3018,7 +3091,7 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
|
|
|
3018
3091
|
Uint8Array,
|
|
3019
3092
|
1,
|
|
3020
3093
|
obj,
|
|
3021
|
-
key,
|
|
3094
|
+
key$jscomp$0,
|
|
3022
3095
|
arrayRoot
|
|
3023
3096
|
);
|
|
3024
3097
|
case "U":
|
|
@@ -3028,7 +3101,7 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
|
|
|
3028
3101
|
Uint8ClampedArray,
|
|
3029
3102
|
1,
|
|
3030
3103
|
obj,
|
|
3031
|
-
key,
|
|
3104
|
+
key$jscomp$0,
|
|
3032
3105
|
arrayRoot
|
|
3033
3106
|
);
|
|
3034
3107
|
case "S":
|
|
@@ -3038,7 +3111,7 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
|
|
|
3038
3111
|
Int16Array,
|
|
3039
3112
|
2,
|
|
3040
3113
|
obj,
|
|
3041
|
-
key,
|
|
3114
|
+
key$jscomp$0,
|
|
3042
3115
|
arrayRoot
|
|
3043
3116
|
);
|
|
3044
3117
|
case "s":
|
|
@@ -3048,7 +3121,7 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
|
|
|
3048
3121
|
Uint16Array,
|
|
3049
3122
|
2,
|
|
3050
3123
|
obj,
|
|
3051
|
-
key,
|
|
3124
|
+
key$jscomp$0,
|
|
3052
3125
|
arrayRoot
|
|
3053
3126
|
);
|
|
3054
3127
|
case "L":
|
|
@@ -3058,7 +3131,7 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
|
|
|
3058
3131
|
Int32Array,
|
|
3059
3132
|
4,
|
|
3060
3133
|
obj,
|
|
3061
|
-
key,
|
|
3134
|
+
key$jscomp$0,
|
|
3062
3135
|
arrayRoot
|
|
3063
3136
|
);
|
|
3064
3137
|
case "l":
|
|
@@ -3068,7 +3141,7 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
|
|
|
3068
3141
|
Uint32Array,
|
|
3069
3142
|
4,
|
|
3070
3143
|
obj,
|
|
3071
|
-
key,
|
|
3144
|
+
key$jscomp$0,
|
|
3072
3145
|
arrayRoot
|
|
3073
3146
|
);
|
|
3074
3147
|
case "G":
|
|
@@ -3078,7 +3151,7 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
|
|
|
3078
3151
|
Float32Array,
|
|
3079
3152
|
4,
|
|
3080
3153
|
obj,
|
|
3081
|
-
key,
|
|
3154
|
+
key$jscomp$0,
|
|
3082
3155
|
arrayRoot
|
|
3083
3156
|
);
|
|
3084
3157
|
case "g":
|
|
@@ -3088,7 +3161,7 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
|
|
|
3088
3161
|
Float64Array,
|
|
3089
3162
|
8,
|
|
3090
3163
|
obj,
|
|
3091
|
-
key,
|
|
3164
|
+
key$jscomp$0,
|
|
3092
3165
|
arrayRoot
|
|
3093
3166
|
);
|
|
3094
3167
|
case "M":
|
|
@@ -3098,7 +3171,7 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
|
|
|
3098
3171
|
BigInt64Array,
|
|
3099
3172
|
8,
|
|
3100
3173
|
obj,
|
|
3101
|
-
key,
|
|
3174
|
+
key$jscomp$0,
|
|
3102
3175
|
arrayRoot
|
|
3103
3176
|
);
|
|
3104
3177
|
case "m":
|
|
@@ -3108,7 +3181,7 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
|
|
|
3108
3181
|
BigUint64Array,
|
|
3109
3182
|
8,
|
|
3110
3183
|
obj,
|
|
3111
|
-
key,
|
|
3184
|
+
key$jscomp$0,
|
|
3112
3185
|
arrayRoot
|
|
3113
3186
|
);
|
|
3114
3187
|
case "V":
|
|
@@ -3118,13 +3191,13 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
|
|
|
3118
3191
|
DataView,
|
|
3119
3192
|
1,
|
|
3120
3193
|
obj,
|
|
3121
|
-
key,
|
|
3194
|
+
key$jscomp$0,
|
|
3122
3195
|
arrayRoot
|
|
3123
3196
|
);
|
|
3124
3197
|
case "B":
|
|
3125
3198
|
return (
|
|
3126
3199
|
(obj = parseInt(value.slice(2), 16)),
|
|
3127
|
-
response._formData
|
|
3200
|
+
getBackingBlob(response._formData, response._prefix + obj)
|
|
3128
3201
|
);
|
|
3129
3202
|
case "R":
|
|
3130
3203
|
return parseReadableStream(response, value, void 0);
|
|
@@ -3136,7 +3209,14 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
|
|
|
3136
3209
|
return parseAsyncIterable(response, value, !0);
|
|
3137
3210
|
}
|
|
3138
3211
|
value = value.slice(1);
|
|
3139
|
-
return getOutlinedModel(
|
|
3212
|
+
return getOutlinedModel(
|
|
3213
|
+
response,
|
|
3214
|
+
value,
|
|
3215
|
+
obj,
|
|
3216
|
+
key$jscomp$0,
|
|
3217
|
+
arrayRoot,
|
|
3218
|
+
createModel
|
|
3219
|
+
);
|
|
3140
3220
|
}
|
|
3141
3221
|
null !== arrayRoot && bumpArrayCount(arrayRoot, value.length, response);
|
|
3142
3222
|
return value;
|
|
@@ -3148,11 +3228,20 @@ function createResponse(bundlerConfig, formFieldPrefix, temporaryReferences) {
|
|
|
3148
3228
|
: new FormData(),
|
|
3149
3229
|
arraySizeLimit =
|
|
3150
3230
|
4 < arguments.length && void 0 !== arguments[4] ? arguments[4] : 1e6,
|
|
3151
|
-
chunks = new Map()
|
|
3231
|
+
chunks = new Map(),
|
|
3232
|
+
backingStore = {
|
|
3233
|
+
prefix: formFieldPrefix,
|
|
3234
|
+
referencedEntries: null,
|
|
3235
|
+
keyPointer: 0,
|
|
3236
|
+
stringChunks: null,
|
|
3237
|
+
streamChunks: null,
|
|
3238
|
+
blobs: null
|
|
3239
|
+
};
|
|
3240
|
+
backingFormData.forEach(appendBackingEntry.bind(null, backingStore));
|
|
3152
3241
|
return {
|
|
3153
3242
|
_bundlerConfig: bundlerConfig,
|
|
3154
3243
|
_prefix: formFieldPrefix,
|
|
3155
|
-
_formData:
|
|
3244
|
+
_formData: backingStore,
|
|
3156
3245
|
_chunks: chunks,
|
|
3157
3246
|
_closed: !1,
|
|
3158
3247
|
_closedReason: null,
|
|
@@ -3162,14 +3251,26 @@ function createResponse(bundlerConfig, formFieldPrefix, temporaryReferences) {
|
|
|
3162
3251
|
};
|
|
3163
3252
|
}
|
|
3164
3253
|
function resolveField(response, key, value) {
|
|
3165
|
-
appendBackingEntry(response._formData, key, value);
|
|
3166
3254
|
var prefix = response._prefix;
|
|
3167
3255
|
if (key.startsWith(prefix)) {
|
|
3168
3256
|
var chunks = response._chunks;
|
|
3169
|
-
|
|
3170
|
-
|
|
3171
|
-
|
|
3257
|
+
if ("S" === key[prefix.length]) {
|
|
3258
|
+
if (
|
|
3259
|
+
key.length > prefix.length + 1 &&
|
|
3260
|
+
((prefix = +key.slice(prefix.length + 1)),
|
|
3261
|
+
(chunks = chunks.get(prefix)))
|
|
3262
|
+
) {
|
|
3263
|
+
resolveModelChunk(response, chunks, value, prefix);
|
|
3264
|
+
return;
|
|
3265
|
+
}
|
|
3266
|
+
} else if (
|
|
3267
|
+
((prefix = +key.slice(prefix.length)), (chunks = chunks.get(prefix)))
|
|
3268
|
+
) {
|
|
3269
|
+
resolveModelChunk(response, chunks, value, prefix);
|
|
3270
|
+
return;
|
|
3271
|
+
}
|
|
3172
3272
|
}
|
|
3273
|
+
appendBackingEntry(response._formData, value, key);
|
|
3173
3274
|
}
|
|
3174
3275
|
function close(response) {
|
|
3175
3276
|
reportGlobalError(response, Error("Connection closed."));
|
|
@@ -3345,7 +3446,7 @@ exports.decodeReplyFromAsyncIterable = function (iterable, options) {
|
|
|
3345
3446
|
_entry$value = _entry$value[1];
|
|
3346
3447
|
"string" === typeof _entry$value
|
|
3347
3448
|
? resolveField(response, entry, _entry$value)
|
|
3348
|
-
: appendBackingEntry(response._formData,
|
|
3449
|
+
: appendBackingEntry(response._formData, _entry$value, entry);
|
|
3349
3450
|
iterator.next().then(progress, error);
|
|
3350
3451
|
}
|
|
3351
3452
|
}
|
|
@@ -3372,28 +3473,32 @@ exports.decodeReplyFromBusboy = function (busboyStream, options) {
|
|
|
3372
3473
|
if (!current.complete) return;
|
|
3373
3474
|
try {
|
|
3374
3475
|
var key = current.name,
|
|
3375
|
-
|
|
3376
|
-
|
|
3377
|
-
|
|
3378
|
-
|
|
3379
|
-
|
|
3380
|
-
|
|
3381
|
-
|
|
3382
|
-
|
|
3383
|
-
|
|
3384
|
-
|
|
3476
|
+
JSCompiler_temp_const = response._formData;
|
|
3477
|
+
var handle = current.file;
|
|
3478
|
+
if ("function" === typeof File)
|
|
3479
|
+
var JSCompiler_inline_result = new File(
|
|
3480
|
+
handle.chunks,
|
|
3481
|
+
handle.filename,
|
|
3482
|
+
{ type: handle.mime }
|
|
3483
|
+
);
|
|
3484
|
+
else {
|
|
3485
|
+
var scratch = new FormData();
|
|
3486
|
+
scratch.append(
|
|
3487
|
+
"file",
|
|
3488
|
+
new Blob(handle.chunks, { type: handle.mime }),
|
|
3489
|
+
handle.filename
|
|
3490
|
+
);
|
|
3491
|
+
JSCompiler_inline_result = scratch.get("file");
|
|
3492
|
+
}
|
|
3493
|
+
appendBackingEntry(
|
|
3494
|
+
JSCompiler_temp_const,
|
|
3495
|
+
JSCompiler_inline_result,
|
|
3496
|
+
key
|
|
3497
|
+
);
|
|
3385
3498
|
var queuedFields = current.queuedFields;
|
|
3386
3499
|
if (null !== queuedFields)
|
|
3387
|
-
for (
|
|
3388
|
-
|
|
3389
|
-
key$jscomp$0 < queuedFields.length;
|
|
3390
|
-
key$jscomp$0 += 2
|
|
3391
|
-
)
|
|
3392
|
-
resolveField(
|
|
3393
|
-
response,
|
|
3394
|
-
queuedFields[key$jscomp$0],
|
|
3395
|
-
queuedFields[key$jscomp$0 + 1]
|
|
3396
|
-
);
|
|
3500
|
+
for (var i = 0; i < queuedFields.length; i += 2)
|
|
3501
|
+
resolveField(response, queuedFields[i], queuedFields[i + 1]);
|
|
3397
3502
|
} catch (error) {
|
|
3398
3503
|
busboyStream.destroy(error);
|
|
3399
3504
|
return;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-server-dom-parcel",
|
|
3
3
|
"description": "React Server Components bindings for DOM using Parcel. This is intended to be integrated into meta-frameworks. It is not intended to be imported directly.",
|
|
4
|
-
"version": "19.2.
|
|
4
|
+
"version": "19.2.9",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react"
|
|
7
7
|
],
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
"node": ">=0.10.0"
|
|
79
79
|
},
|
|
80
80
|
"peerDependencies": {
|
|
81
|
-
"react": "^19.2.
|
|
82
|
-
"react-dom": "^19.2.
|
|
81
|
+
"react": "^19.2.9",
|
|
82
|
+
"react-dom": "^19.2.9"
|
|
83
83
|
}
|
|
84
84
|
}
|