react-server-dom-parcel 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-parcel-client.browser.development.js +58 -45
- package/cjs/react-server-dom-parcel-client.browser.production.js +79 -64
- package/cjs/react-server-dom-parcel-client.edge.development.js +59 -42
- package/cjs/react-server-dom-parcel-client.edge.production.js +82 -67
- package/cjs/react-server-dom-parcel-client.node.development.js +59 -42
- package/cjs/react-server-dom-parcel-client.node.production.js +82 -67
- package/cjs/react-server-dom-parcel-server.browser.development.js +187 -93
- package/cjs/react-server-dom-parcel-server.browser.production.js +178 -86
- package/cjs/react-server-dom-parcel-server.edge.development.js +218 -111
- package/cjs/react-server-dom-parcel-server.edge.production.js +207 -105
- package/cjs/react-server-dom-parcel-server.node.development.js +240 -131
- package/cjs/react-server-dom-parcel-server.node.production.js +228 -123
- package/package.json +3 -3
|
@@ -37,6 +37,11 @@ function getIteratorFn(maybeIterable) {
|
|
|
37
37
|
}
|
|
38
38
|
var ASYNC_ITERATOR = Symbol.asyncIterator,
|
|
39
39
|
REACT_OPTIMISTIC_KEY = Symbol.for("react.optimistic_key"),
|
|
40
|
+
hasOwnProperty = Object.prototype.hasOwnProperty,
|
|
41
|
+
supportsArrayBufferDetached = hasOwnProperty.call(
|
|
42
|
+
ArrayBuffer.prototype,
|
|
43
|
+
"detached"
|
|
44
|
+
),
|
|
40
45
|
scheduleMicrotask = queueMicrotask,
|
|
41
46
|
currentView = null,
|
|
42
47
|
writtenBytes = 0,
|
|
@@ -74,33 +79,37 @@ function writeChunk(destination, chunk) {
|
|
|
74
79
|
(currentView = new Uint8Array(4096)),
|
|
75
80
|
(writtenBytes = 0));
|
|
76
81
|
}
|
|
82
|
+
} else if (0 === chunk.byteLength) {
|
|
83
|
+
if (supportsArrayBufferDetached && chunk.buffer.detached)
|
|
84
|
+
throw Error(
|
|
85
|
+
"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()`."
|
|
86
|
+
);
|
|
77
87
|
} else
|
|
78
|
-
|
|
79
|
-
(
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
(
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
(writtenBytes = 0))));
|
|
88
|
+
4096 < chunk.byteLength
|
|
89
|
+
? (0 < writtenBytes &&
|
|
90
|
+
(writeToDestination(
|
|
91
|
+
destination,
|
|
92
|
+
currentView.subarray(0, writtenBytes)
|
|
93
|
+
),
|
|
94
|
+
(currentView = new Uint8Array(4096)),
|
|
95
|
+
(writtenBytes = 0)),
|
|
96
|
+
writeToDestination(destination, chunk))
|
|
97
|
+
: ((target = currentView.length - writtenBytes),
|
|
98
|
+
target < chunk.byteLength &&
|
|
99
|
+
(0 === target
|
|
100
|
+
? writeToDestination(destination, currentView)
|
|
101
|
+
: (currentView.set(chunk.subarray(0, target), writtenBytes),
|
|
102
|
+
(writtenBytes += target),
|
|
103
|
+
writeToDestination(destination, currentView),
|
|
104
|
+
(chunk = chunk.subarray(target))),
|
|
105
|
+
(currentView = new Uint8Array(4096)),
|
|
106
|
+
(writtenBytes = 0)),
|
|
107
|
+
currentView.set(chunk, writtenBytes),
|
|
108
|
+
(writtenBytes += chunk.byteLength),
|
|
109
|
+
4096 === writtenBytes &&
|
|
110
|
+
(writeToDestination(destination, currentView),
|
|
111
|
+
(currentView = new Uint8Array(4096)),
|
|
112
|
+
(writtenBytes = 0)));
|
|
104
113
|
}
|
|
105
114
|
function writeToDestination(destination, view) {
|
|
106
115
|
destination = destination.write(view);
|
|
@@ -703,8 +712,7 @@ function describeObjectForErrorMessage(objectOrArray, expandedName) {
|
|
|
703
712
|
"\n " + str + "\n " + objectOrArray)
|
|
704
713
|
: "\n " + str;
|
|
705
714
|
}
|
|
706
|
-
var
|
|
707
|
-
ObjectPrototype$1 = Object.prototype,
|
|
715
|
+
var ObjectPrototype$1 = Object.prototype,
|
|
708
716
|
stringify = JSON.stringify,
|
|
709
717
|
NEXT_TWO_CHUNKS_ARE_ATOMIC = Symbol();
|
|
710
718
|
function defaultErrorHandler(error) {
|
|
@@ -1906,11 +1914,28 @@ function transformImportMetadata(request, value, depth) {
|
|
|
1906
1914
|
}
|
|
1907
1915
|
function emitTypedArrayChunk(request, id, tag, typedArray, debug) {
|
|
1908
1916
|
debug ? request.pendingDebugChunks++ : request.pendingChunks++;
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
1917
|
+
a: {
|
|
1918
|
+
debug = new Uint8Array(
|
|
1919
|
+
typedArray.buffer,
|
|
1920
|
+
typedArray.byteOffset,
|
|
1921
|
+
typedArray.byteLength
|
|
1922
|
+
);
|
|
1923
|
+
if (4096 < typedArray.byteLength) {
|
|
1924
|
+
if (
|
|
1925
|
+
0 !== typedArray.byteOffset ||
|
|
1926
|
+
typedArray.byteLength !== typedArray.buffer.byteLength ||
|
|
1927
|
+
typedArray.buffer.resizable
|
|
1928
|
+
) {
|
|
1929
|
+
typedArray = debug.slice();
|
|
1930
|
+
break a;
|
|
1931
|
+
}
|
|
1932
|
+
if (!supportsArrayBufferDetached) {
|
|
1933
|
+
typedArray = debug.slice();
|
|
1934
|
+
break a;
|
|
1935
|
+
}
|
|
1936
|
+
}
|
|
1937
|
+
typedArray = debug;
|
|
1938
|
+
}
|
|
1914
1939
|
debug = typedArray.byteLength;
|
|
1915
1940
|
id = id.toString(16) + ":" + tag + debug.toString(16) + ",";
|
|
1916
1941
|
request.completedRegularChunks.push(
|
|
@@ -2311,13 +2336,37 @@ function requireModule(metadata) {
|
|
|
2311
2336
|
if (hasOwnProperty.call(moduleExports, metadata[1]))
|
|
2312
2337
|
return moduleExports[metadata[1]];
|
|
2313
2338
|
}
|
|
2314
|
-
function appendBackingEntry(backingStore,
|
|
2315
|
-
backingStore.
|
|
2316
|
-
|
|
2317
|
-
|
|
2318
|
-
|
|
2319
|
-
|
|
2320
|
-
|
|
2339
|
+
function appendBackingEntry(backingStore, value, key) {
|
|
2340
|
+
var prefix = backingStore.prefix;
|
|
2341
|
+
if (key.startsWith(prefix)) {
|
|
2342
|
+
switch (key[prefix.length]) {
|
|
2343
|
+
case "_":
|
|
2344
|
+
prefix = backingStore.referencedEntries;
|
|
2345
|
+
null === prefix && (prefix = backingStore.referencedEntries = []);
|
|
2346
|
+
prefix.push([key, value]);
|
|
2347
|
+
return;
|
|
2348
|
+
case "S":
|
|
2349
|
+
"string" === typeof value &&
|
|
2350
|
+
((prefix = backingStore.streamChunks),
|
|
2351
|
+
null === prefix && (prefix = backingStore.streamChunks = new Map()),
|
|
2352
|
+
(backingStore = prefix.get(key)),
|
|
2353
|
+
void 0 === backingStore
|
|
2354
|
+
? prefix.set(key, [value])
|
|
2355
|
+
: backingStore.push(value));
|
|
2356
|
+
return;
|
|
2357
|
+
}
|
|
2358
|
+
"string" === typeof value
|
|
2359
|
+
? ((prefix = backingStore.stringChunks),
|
|
2360
|
+
null === prefix && (prefix = backingStore.stringChunks = new Map()),
|
|
2361
|
+
prefix.set(key, value))
|
|
2362
|
+
: ((prefix = backingStore.blobs),
|
|
2363
|
+
null === prefix && (prefix = backingStore.blobs = new Map()),
|
|
2364
|
+
prefix.set(key, value));
|
|
2365
|
+
}
|
|
2366
|
+
}
|
|
2367
|
+
function getBackingBlob(backingStore, key) {
|
|
2368
|
+
backingStore = backingStore.blobs;
|
|
2369
|
+
return null === backingStore ? void 0 : backingStore.get(key);
|
|
2321
2370
|
}
|
|
2322
2371
|
var RESPONSE_SYMBOL = Symbol();
|
|
2323
2372
|
function ReactPromise(status, value, reason) {
|
|
@@ -2698,15 +2747,18 @@ function reportGlobalError(response, error) {
|
|
|
2698
2747
|
function getChunk(response, id) {
|
|
2699
2748
|
var chunks = response._chunks,
|
|
2700
2749
|
chunk = chunks.get(id);
|
|
2701
|
-
chunk
|
|
2702
|
-
|
|
2703
|
-
|
|
2750
|
+
if (!chunk) {
|
|
2751
|
+
chunk = response._prefix;
|
|
2752
|
+
var stringChunks = response._formData.stringChunks;
|
|
2753
|
+
chunk = null === stringChunks ? void 0 : stringChunks.get(chunk + id);
|
|
2754
|
+
chunk =
|
|
2704
2755
|
"string" === typeof chunk
|
|
2705
2756
|
? createResolvedModelChunk(response, chunk, id)
|
|
2706
2757
|
: response._closed
|
|
2707
2758
|
? new ReactPromise("rejected", null, response._closedReason)
|
|
2708
|
-
: new ReactPromise("pending", null, null)
|
|
2709
|
-
chunks.set(id, chunk)
|
|
2759
|
+
: new ReactPromise("pending", null, null);
|
|
2760
|
+
chunks.set(id, chunk);
|
|
2761
|
+
}
|
|
2710
2762
|
return chunk;
|
|
2711
2763
|
}
|
|
2712
2764
|
function fulfillReference(response, reference, value, arrayRoot) {
|
|
@@ -2937,7 +2989,7 @@ function parseTypedArray(
|
|
|
2937
2989
|
Error("Already initialized typed array.")
|
|
2938
2990
|
)
|
|
2939
2991
|
);
|
|
2940
|
-
reference = response._formData
|
|
2992
|
+
reference = getBackingBlob(response._formData, key).arrayBuffer();
|
|
2941
2993
|
if (initializingHandler) {
|
|
2942
2994
|
var handler = initializingHandler;
|
|
2943
2995
|
handler.deps++;
|
|
@@ -2981,13 +3033,15 @@ function resolveStream(response, id, stream, controller) {
|
|
|
2981
3033
|
var chunks = response._chunks;
|
|
2982
3034
|
stream = new ReactPromise("fulfilled", stream, controller);
|
|
2983
3035
|
chunks.set(id, stream);
|
|
2984
|
-
|
|
2985
|
-
|
|
2986
|
-
|
|
2987
|
-
|
|
2988
|
-
|
|
3036
|
+
chunks = response._prefix;
|
|
3037
|
+
response = response._formData.streamChunks;
|
|
3038
|
+
id = null === response ? void 0 : response.get(chunks + "S" + id);
|
|
3039
|
+
if (void 0 !== id)
|
|
3040
|
+
for (response = 0; response < id.length; response++)
|
|
3041
|
+
(chunks = id[response]),
|
|
3042
|
+
"C" === chunks[0]
|
|
2989
3043
|
? controller.close("C" === chunks ? '"$undefined"' : chunks.slice(1))
|
|
2990
|
-
: controller.enqueueModel(chunks)
|
|
3044
|
+
: controller.enqueueModel(chunks);
|
|
2991
3045
|
}
|
|
2992
3046
|
function parseReadableStream(response, reference, type) {
|
|
2993
3047
|
function enqueue(value) {
|
|
@@ -3153,7 +3207,14 @@ function parseAsyncIterable(response, reference, iterator) {
|
|
|
3153
3207
|
});
|
|
3154
3208
|
return iterator;
|
|
3155
3209
|
}
|
|
3156
|
-
function parseModelString(
|
|
3210
|
+
function parseModelString(
|
|
3211
|
+
response,
|
|
3212
|
+
obj,
|
|
3213
|
+
key$jscomp$0,
|
|
3214
|
+
value,
|
|
3215
|
+
reference,
|
|
3216
|
+
arrayRoot
|
|
3217
|
+
) {
|
|
3157
3218
|
if ("$" === value[0]) {
|
|
3158
3219
|
switch (value[1]) {
|
|
3159
3220
|
case "$":
|
|
@@ -3171,7 +3232,7 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
|
|
|
3171
3232
|
response,
|
|
3172
3233
|
arrayRoot,
|
|
3173
3234
|
obj,
|
|
3174
|
-
key,
|
|
3235
|
+
key$jscomp$0,
|
|
3175
3236
|
null,
|
|
3176
3237
|
loadServerReference$1
|
|
3177
3238
|
)
|
|
@@ -3188,43 +3249,55 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
|
|
|
3188
3249
|
case "Q":
|
|
3189
3250
|
return (
|
|
3190
3251
|
(arrayRoot = value.slice(2)),
|
|
3191
|
-
getOutlinedModel(
|
|
3252
|
+
getOutlinedModel(
|
|
3253
|
+
response,
|
|
3254
|
+
arrayRoot,
|
|
3255
|
+
obj,
|
|
3256
|
+
key$jscomp$0,
|
|
3257
|
+
null,
|
|
3258
|
+
createMap
|
|
3259
|
+
)
|
|
3192
3260
|
);
|
|
3193
3261
|
case "W":
|
|
3194
3262
|
return (
|
|
3195
3263
|
(arrayRoot = value.slice(2)),
|
|
3196
|
-
getOutlinedModel(
|
|
3264
|
+
getOutlinedModel(
|
|
3265
|
+
response,
|
|
3266
|
+
arrayRoot,
|
|
3267
|
+
obj,
|
|
3268
|
+
key$jscomp$0,
|
|
3269
|
+
null,
|
|
3270
|
+
createSet
|
|
3271
|
+
)
|
|
3197
3272
|
);
|
|
3198
3273
|
case "K":
|
|
3199
|
-
|
|
3200
|
-
obj = response._prefix + "_";
|
|
3201
|
-
|
|
3202
|
-
|
|
3203
|
-
|
|
3204
|
-
|
|
3205
|
-
|
|
3206
|
-
|
|
3207
|
-
|
|
3208
|
-
|
|
3209
|
-
|
|
3210
|
-
|
|
3211
|
-
|
|
3212
|
-
|
|
3213
|
-
var referencedFormDataKey = value.slice(key.length), i = 0;
|
|
3214
|
-
i < reference.length;
|
|
3215
|
-
i++
|
|
3216
|
-
)
|
|
3217
|
-
arrayRoot.append(referencedFormDataKey, reference[i]);
|
|
3218
|
-
response.data.delete(value);
|
|
3219
|
-
response.keyPointer++;
|
|
3220
|
-
} else if (value.startsWith(obj)) break;
|
|
3221
|
-
else response.keyPointer++;
|
|
3274
|
+
obj = value.slice(2);
|
|
3275
|
+
obj = response._prefix + "_" + obj + "_";
|
|
3276
|
+
response = response._formData;
|
|
3277
|
+
key$jscomp$0 = new FormData();
|
|
3278
|
+
arrayRoot = response.referencedEntries;
|
|
3279
|
+
if (null !== arrayRoot) {
|
|
3280
|
+
for (value = response.keyPointer; value < arrayRoot.length; ) {
|
|
3281
|
+
reference = arrayRoot[value];
|
|
3282
|
+
var key = reference[0];
|
|
3283
|
+
if (!key.startsWith(obj)) break;
|
|
3284
|
+
key$jscomp$0.append(key.slice(obj.length), reference[1]);
|
|
3285
|
+
value++;
|
|
3286
|
+
}
|
|
3287
|
+
response.keyPointer = value;
|
|
3222
3288
|
}
|
|
3223
|
-
return
|
|
3289
|
+
return key$jscomp$0;
|
|
3224
3290
|
case "i":
|
|
3225
3291
|
return (
|
|
3226
3292
|
(arrayRoot = value.slice(2)),
|
|
3227
|
-
getOutlinedModel(
|
|
3293
|
+
getOutlinedModel(
|
|
3294
|
+
response,
|
|
3295
|
+
arrayRoot,
|
|
3296
|
+
obj,
|
|
3297
|
+
key$jscomp$0,
|
|
3298
|
+
null,
|
|
3299
|
+
extractIterator
|
|
3300
|
+
)
|
|
3228
3301
|
);
|
|
3229
3302
|
case "I":
|
|
3230
3303
|
return Infinity;
|
|
@@ -3253,7 +3326,7 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
|
|
|
3253
3326
|
ArrayBuffer,
|
|
3254
3327
|
1,
|
|
3255
3328
|
obj,
|
|
3256
|
-
key,
|
|
3329
|
+
key$jscomp$0,
|
|
3257
3330
|
arrayRoot
|
|
3258
3331
|
);
|
|
3259
3332
|
case "O":
|
|
@@ -3263,7 +3336,7 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
|
|
|
3263
3336
|
Int8Array,
|
|
3264
3337
|
1,
|
|
3265
3338
|
obj,
|
|
3266
|
-
key,
|
|
3339
|
+
key$jscomp$0,
|
|
3267
3340
|
arrayRoot
|
|
3268
3341
|
);
|
|
3269
3342
|
case "o":
|
|
@@ -3273,7 +3346,7 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
|
|
|
3273
3346
|
Uint8Array,
|
|
3274
3347
|
1,
|
|
3275
3348
|
obj,
|
|
3276
|
-
key,
|
|
3349
|
+
key$jscomp$0,
|
|
3277
3350
|
arrayRoot
|
|
3278
3351
|
);
|
|
3279
3352
|
case "U":
|
|
@@ -3283,7 +3356,7 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
|
|
|
3283
3356
|
Uint8ClampedArray,
|
|
3284
3357
|
1,
|
|
3285
3358
|
obj,
|
|
3286
|
-
key,
|
|
3359
|
+
key$jscomp$0,
|
|
3287
3360
|
arrayRoot
|
|
3288
3361
|
);
|
|
3289
3362
|
case "S":
|
|
@@ -3293,7 +3366,7 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
|
|
|
3293
3366
|
Int16Array,
|
|
3294
3367
|
2,
|
|
3295
3368
|
obj,
|
|
3296
|
-
key,
|
|
3369
|
+
key$jscomp$0,
|
|
3297
3370
|
arrayRoot
|
|
3298
3371
|
);
|
|
3299
3372
|
case "s":
|
|
@@ -3303,7 +3376,7 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
|
|
|
3303
3376
|
Uint16Array,
|
|
3304
3377
|
2,
|
|
3305
3378
|
obj,
|
|
3306
|
-
key,
|
|
3379
|
+
key$jscomp$0,
|
|
3307
3380
|
arrayRoot
|
|
3308
3381
|
);
|
|
3309
3382
|
case "L":
|
|
@@ -3313,7 +3386,7 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
|
|
|
3313
3386
|
Int32Array,
|
|
3314
3387
|
4,
|
|
3315
3388
|
obj,
|
|
3316
|
-
key,
|
|
3389
|
+
key$jscomp$0,
|
|
3317
3390
|
arrayRoot
|
|
3318
3391
|
);
|
|
3319
3392
|
case "l":
|
|
@@ -3323,7 +3396,7 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
|
|
|
3323
3396
|
Uint32Array,
|
|
3324
3397
|
4,
|
|
3325
3398
|
obj,
|
|
3326
|
-
key,
|
|
3399
|
+
key$jscomp$0,
|
|
3327
3400
|
arrayRoot
|
|
3328
3401
|
);
|
|
3329
3402
|
case "G":
|
|
@@ -3333,7 +3406,7 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
|
|
|
3333
3406
|
Float32Array,
|
|
3334
3407
|
4,
|
|
3335
3408
|
obj,
|
|
3336
|
-
key,
|
|
3409
|
+
key$jscomp$0,
|
|
3337
3410
|
arrayRoot
|
|
3338
3411
|
);
|
|
3339
3412
|
case "g":
|
|
@@ -3343,7 +3416,7 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
|
|
|
3343
3416
|
Float64Array,
|
|
3344
3417
|
8,
|
|
3345
3418
|
obj,
|
|
3346
|
-
key,
|
|
3419
|
+
key$jscomp$0,
|
|
3347
3420
|
arrayRoot
|
|
3348
3421
|
);
|
|
3349
3422
|
case "M":
|
|
@@ -3353,7 +3426,7 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
|
|
|
3353
3426
|
BigInt64Array,
|
|
3354
3427
|
8,
|
|
3355
3428
|
obj,
|
|
3356
|
-
key,
|
|
3429
|
+
key$jscomp$0,
|
|
3357
3430
|
arrayRoot
|
|
3358
3431
|
);
|
|
3359
3432
|
case "m":
|
|
@@ -3363,7 +3436,7 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
|
|
|
3363
3436
|
BigUint64Array,
|
|
3364
3437
|
8,
|
|
3365
3438
|
obj,
|
|
3366
|
-
key,
|
|
3439
|
+
key$jscomp$0,
|
|
3367
3440
|
arrayRoot
|
|
3368
3441
|
);
|
|
3369
3442
|
case "V":
|
|
@@ -3373,12 +3446,12 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
|
|
|
3373
3446
|
DataView,
|
|
3374
3447
|
1,
|
|
3375
3448
|
obj,
|
|
3376
|
-
key,
|
|
3449
|
+
key$jscomp$0,
|
|
3377
3450
|
arrayRoot
|
|
3378
3451
|
);
|
|
3379
3452
|
case "B":
|
|
3380
3453
|
obj = parseInt(value.slice(2), 16);
|
|
3381
|
-
response = response._formData
|
|
3454
|
+
response = getBackingBlob(response._formData, response._prefix + obj);
|
|
3382
3455
|
if (!(response instanceof Blob))
|
|
3383
3456
|
throw Error("Referenced Blob is not a Blob.");
|
|
3384
3457
|
return response;
|
|
@@ -3392,7 +3465,14 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
|
|
|
3392
3465
|
return parseAsyncIterable(response, value, !0);
|
|
3393
3466
|
}
|
|
3394
3467
|
value = value.slice(1);
|
|
3395
|
-
return getOutlinedModel(
|
|
3468
|
+
return getOutlinedModel(
|
|
3469
|
+
response,
|
|
3470
|
+
value,
|
|
3471
|
+
obj,
|
|
3472
|
+
key$jscomp$0,
|
|
3473
|
+
arrayRoot,
|
|
3474
|
+
createModel
|
|
3475
|
+
);
|
|
3396
3476
|
}
|
|
3397
3477
|
null !== arrayRoot && bumpArrayCount(arrayRoot, value.length, response);
|
|
3398
3478
|
return value;
|
|
@@ -3404,11 +3484,20 @@ function createResponse(bundlerConfig, formFieldPrefix, temporaryReferences) {
|
|
|
3404
3484
|
: new FormData(),
|
|
3405
3485
|
arraySizeLimit =
|
|
3406
3486
|
4 < arguments.length && void 0 !== arguments[4] ? arguments[4] : 1e6,
|
|
3407
|
-
chunks = new Map()
|
|
3487
|
+
chunks = new Map(),
|
|
3488
|
+
backingStore = {
|
|
3489
|
+
prefix: formFieldPrefix,
|
|
3490
|
+
referencedEntries: null,
|
|
3491
|
+
keyPointer: 0,
|
|
3492
|
+
stringChunks: null,
|
|
3493
|
+
streamChunks: null,
|
|
3494
|
+
blobs: null
|
|
3495
|
+
};
|
|
3496
|
+
backingFormData.forEach(appendBackingEntry.bind(null, backingStore));
|
|
3408
3497
|
return {
|
|
3409
3498
|
_bundlerConfig: bundlerConfig,
|
|
3410
3499
|
_prefix: formFieldPrefix,
|
|
3411
|
-
_formData:
|
|
3500
|
+
_formData: backingStore,
|
|
3412
3501
|
_chunks: chunks,
|
|
3413
3502
|
_closed: !1,
|
|
3414
3503
|
_closedReason: null,
|
|
@@ -3418,14 +3507,26 @@ function createResponse(bundlerConfig, formFieldPrefix, temporaryReferences) {
|
|
|
3418
3507
|
};
|
|
3419
3508
|
}
|
|
3420
3509
|
function resolveField(response, key, value) {
|
|
3421
|
-
appendBackingEntry(response._formData, key, value);
|
|
3422
3510
|
var prefix = response._prefix;
|
|
3423
3511
|
if (key.startsWith(prefix)) {
|
|
3424
3512
|
var chunks = response._chunks;
|
|
3425
|
-
|
|
3426
|
-
|
|
3427
|
-
|
|
3513
|
+
if ("S" === key[prefix.length]) {
|
|
3514
|
+
if (
|
|
3515
|
+
key.length > prefix.length + 1 &&
|
|
3516
|
+
((prefix = +key.slice(prefix.length + 1)),
|
|
3517
|
+
(chunks = chunks.get(prefix)))
|
|
3518
|
+
) {
|
|
3519
|
+
resolveModelChunk(response, chunks, value, prefix);
|
|
3520
|
+
return;
|
|
3521
|
+
}
|
|
3522
|
+
} else if (
|
|
3523
|
+
((prefix = +key.slice(prefix.length)), (chunks = chunks.get(prefix)))
|
|
3524
|
+
) {
|
|
3525
|
+
resolveModelChunk(response, chunks, value, prefix);
|
|
3526
|
+
return;
|
|
3527
|
+
}
|
|
3428
3528
|
}
|
|
3529
|
+
appendBackingEntry(response._formData, value, key);
|
|
3429
3530
|
}
|
|
3430
3531
|
function close(response) {
|
|
3431
3532
|
reportGlobalError(response, Error("Connection closed."));
|
|
@@ -3601,7 +3702,7 @@ exports.decodeReplyFromAsyncIterable = function (iterable, options) {
|
|
|
3601
3702
|
_entry$value = _entry$value[1];
|
|
3602
3703
|
"string" === typeof _entry$value
|
|
3603
3704
|
? resolveField(response, entry, _entry$value)
|
|
3604
|
-
: appendBackingEntry(response._formData,
|
|
3705
|
+
: appendBackingEntry(response._formData, _entry$value, entry);
|
|
3605
3706
|
iterator.next().then(progress, error);
|
|
3606
3707
|
}
|
|
3607
3708
|
}
|
|
@@ -3628,28 +3729,32 @@ exports.decodeReplyFromBusboy = function (busboyStream, options) {
|
|
|
3628
3729
|
if (!current.complete) return;
|
|
3629
3730
|
try {
|
|
3630
3731
|
var key = current.name,
|
|
3631
|
-
|
|
3632
|
-
|
|
3633
|
-
|
|
3634
|
-
|
|
3635
|
-
|
|
3636
|
-
|
|
3637
|
-
|
|
3638
|
-
|
|
3639
|
-
|
|
3640
|
-
|
|
3732
|
+
JSCompiler_temp_const = response._formData;
|
|
3733
|
+
var handle = current.file;
|
|
3734
|
+
if ("function" === typeof File)
|
|
3735
|
+
var JSCompiler_inline_result = new File(
|
|
3736
|
+
handle.chunks,
|
|
3737
|
+
handle.filename,
|
|
3738
|
+
{ type: handle.mime }
|
|
3739
|
+
);
|
|
3740
|
+
else {
|
|
3741
|
+
var scratch = new FormData();
|
|
3742
|
+
scratch.append(
|
|
3743
|
+
"file",
|
|
3744
|
+
new Blob(handle.chunks, { type: handle.mime }),
|
|
3745
|
+
handle.filename
|
|
3746
|
+
);
|
|
3747
|
+
JSCompiler_inline_result = scratch.get("file");
|
|
3748
|
+
}
|
|
3749
|
+
appendBackingEntry(
|
|
3750
|
+
JSCompiler_temp_const,
|
|
3751
|
+
JSCompiler_inline_result,
|
|
3752
|
+
key
|
|
3753
|
+
);
|
|
3641
3754
|
var queuedFields = current.queuedFields;
|
|
3642
3755
|
if (null !== queuedFields)
|
|
3643
|
-
for (
|
|
3644
|
-
|
|
3645
|
-
key$jscomp$0 < queuedFields.length;
|
|
3646
|
-
key$jscomp$0 += 2
|
|
3647
|
-
)
|
|
3648
|
-
resolveField(
|
|
3649
|
-
response,
|
|
3650
|
-
queuedFields[key$jscomp$0],
|
|
3651
|
-
queuedFields[key$jscomp$0 + 1]
|
|
3652
|
-
);
|
|
3756
|
+
for (var i = 0; i < queuedFields.length; i += 2)
|
|
3757
|
+
resolveField(response, queuedFields[i], queuedFields[i + 1]);
|
|
3653
3758
|
} catch (error) {
|
|
3654
3759
|
busboyStream.destroy(error);
|
|
3655
3760
|
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.3.
|
|
4
|
+
"version": "19.3.1",
|
|
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.3.
|
|
82
|
-
"react-dom": "^19.3.
|
|
81
|
+
"react": "^19.3.1",
|
|
82
|
+
"react-dom": "^19.3.1"
|
|
83
83
|
}
|
|
84
84
|
}
|