react-server-dom-webpack 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-webpack-client.browser.development.js +77 -46
- package/cjs/react-server-dom-webpack-client.browser.production.js +81 -66
- package/cjs/react-server-dom-webpack-client.edge.development.js +78 -43
- package/cjs/react-server-dom-webpack-client.edge.production.js +84 -69
- package/cjs/react-server-dom-webpack-client.node.development.js +78 -43
- 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 +182 -88
- package/cjs/react-server-dom-webpack-server.edge.development.js +216 -113
- package/cjs/react-server-dom-webpack-server.edge.production.js +209 -108
- package/cjs/react-server-dom-webpack-server.node.development.js +237 -131
- package/cjs/react-server-dom-webpack-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();
|
|
@@ -840,8 +849,7 @@ function describeObjectForErrorMessage(objectOrArray, expandedName) {
|
|
|
840
849
|
"\n " + str + "\n " + objectOrArray)
|
|
841
850
|
: "\n " + str;
|
|
842
851
|
}
|
|
843
|
-
var
|
|
844
|
-
ObjectPrototype$1 = Object.prototype,
|
|
852
|
+
var ObjectPrototype$1 = Object.prototype,
|
|
845
853
|
stringify = JSON.stringify;
|
|
846
854
|
function defaultErrorHandler(error) {
|
|
847
855
|
console.error(error);
|
|
@@ -1857,11 +1865,28 @@ function emitErrorChunk(request, id, digest) {
|
|
|
1857
1865
|
}
|
|
1858
1866
|
function emitTypedArrayChunk(request, id, tag, typedArray, debug) {
|
|
1859
1867
|
debug ? request.pendingDebugChunks++ : request.pendingChunks++;
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1868
|
+
a: {
|
|
1869
|
+
debug = new Uint8Array(
|
|
1870
|
+
typedArray.buffer,
|
|
1871
|
+
typedArray.byteOffset,
|
|
1872
|
+
typedArray.byteLength
|
|
1873
|
+
);
|
|
1874
|
+
if (2048 < typedArray.byteLength) {
|
|
1875
|
+
if (
|
|
1876
|
+
0 !== typedArray.byteOffset ||
|
|
1877
|
+
typedArray.byteLength !== typedArray.buffer.byteLength ||
|
|
1878
|
+
typedArray.buffer.resizable
|
|
1879
|
+
) {
|
|
1880
|
+
typedArray = debug.slice();
|
|
1881
|
+
break a;
|
|
1882
|
+
}
|
|
1883
|
+
if (!supportsArrayBufferDetached) {
|
|
1884
|
+
typedArray = debug.slice();
|
|
1885
|
+
break a;
|
|
1886
|
+
}
|
|
1887
|
+
}
|
|
1888
|
+
typedArray = debug;
|
|
1889
|
+
}
|
|
1865
1890
|
debug = typedArray.byteLength;
|
|
1866
1891
|
id = id.toString(16) + ":" + tag + debug.toString(16) + ",";
|
|
1867
1892
|
request.completedRegularChunks.push(id, typedArray);
|
|
@@ -2277,13 +2302,37 @@ function requireModule(metadata) {
|
|
|
2277
2302
|
if (hasOwnProperty.call(moduleExports, metadata[2]))
|
|
2278
2303
|
return moduleExports[metadata[2]];
|
|
2279
2304
|
}
|
|
2280
|
-
function appendBackingEntry(backingStore,
|
|
2281
|
-
backingStore.
|
|
2282
|
-
|
|
2283
|
-
|
|
2284
|
-
|
|
2285
|
-
|
|
2286
|
-
|
|
2305
|
+
function appendBackingEntry(backingStore, value, key) {
|
|
2306
|
+
var prefix = backingStore.prefix;
|
|
2307
|
+
if (key.startsWith(prefix)) {
|
|
2308
|
+
switch (key[prefix.length]) {
|
|
2309
|
+
case "_":
|
|
2310
|
+
prefix = backingStore.referencedEntries;
|
|
2311
|
+
null === prefix && (prefix = backingStore.referencedEntries = []);
|
|
2312
|
+
prefix.push([key, value]);
|
|
2313
|
+
return;
|
|
2314
|
+
case "S":
|
|
2315
|
+
"string" === typeof value &&
|
|
2316
|
+
((prefix = backingStore.streamChunks),
|
|
2317
|
+
null === prefix && (prefix = backingStore.streamChunks = new Map()),
|
|
2318
|
+
(backingStore = prefix.get(key)),
|
|
2319
|
+
void 0 === backingStore
|
|
2320
|
+
? prefix.set(key, [value])
|
|
2321
|
+
: backingStore.push(value));
|
|
2322
|
+
return;
|
|
2323
|
+
}
|
|
2324
|
+
"string" === typeof value
|
|
2325
|
+
? ((prefix = backingStore.stringChunks),
|
|
2326
|
+
null === prefix && (prefix = backingStore.stringChunks = new Map()),
|
|
2327
|
+
prefix.set(key, value))
|
|
2328
|
+
: ((prefix = backingStore.blobs),
|
|
2329
|
+
null === prefix && (prefix = backingStore.blobs = new Map()),
|
|
2330
|
+
prefix.set(key, value));
|
|
2331
|
+
}
|
|
2332
|
+
}
|
|
2333
|
+
function getBackingBlob(backingStore, key) {
|
|
2334
|
+
backingStore = backingStore.blobs;
|
|
2335
|
+
return null === backingStore ? void 0 : backingStore.get(key);
|
|
2287
2336
|
}
|
|
2288
2337
|
var RESPONSE_SYMBOL = Symbol();
|
|
2289
2338
|
function ReactPromise(status, value, reason) {
|
|
@@ -2656,15 +2705,18 @@ function reportGlobalError(response, error) {
|
|
|
2656
2705
|
function getChunk(response, id) {
|
|
2657
2706
|
var chunks = response._chunks,
|
|
2658
2707
|
chunk = chunks.get(id);
|
|
2659
|
-
chunk
|
|
2660
|
-
|
|
2661
|
-
|
|
2708
|
+
if (!chunk) {
|
|
2709
|
+
chunk = response._prefix;
|
|
2710
|
+
var stringChunks = response._formData.stringChunks;
|
|
2711
|
+
chunk = null === stringChunks ? void 0 : stringChunks.get(chunk + id);
|
|
2712
|
+
chunk =
|
|
2662
2713
|
"string" === typeof chunk
|
|
2663
2714
|
? createResolvedModelChunk(response, chunk, id)
|
|
2664
2715
|
: response._closed
|
|
2665
2716
|
? new ReactPromise("rejected", null, response._closedReason)
|
|
2666
|
-
: new ReactPromise("pending", null, null)
|
|
2667
|
-
chunks.set(id, chunk)
|
|
2717
|
+
: new ReactPromise("pending", null, null);
|
|
2718
|
+
chunks.set(id, chunk);
|
|
2719
|
+
}
|
|
2668
2720
|
return chunk;
|
|
2669
2721
|
}
|
|
2670
2722
|
function fulfillReference(response, reference, value, arrayRoot) {
|
|
@@ -2895,7 +2947,7 @@ function parseTypedArray(
|
|
|
2895
2947
|
Error("Already initialized typed array.")
|
|
2896
2948
|
)
|
|
2897
2949
|
);
|
|
2898
|
-
reference = response._formData
|
|
2950
|
+
reference = getBackingBlob(response._formData, key).arrayBuffer();
|
|
2899
2951
|
if (initializingHandler) {
|
|
2900
2952
|
var handler = initializingHandler;
|
|
2901
2953
|
handler.deps++;
|
|
@@ -2939,13 +2991,15 @@ function resolveStream(response, id, stream, controller) {
|
|
|
2939
2991
|
var chunks = response._chunks;
|
|
2940
2992
|
stream = new ReactPromise("fulfilled", stream, controller);
|
|
2941
2993
|
chunks.set(id, stream);
|
|
2942
|
-
|
|
2943
|
-
|
|
2944
|
-
|
|
2945
|
-
|
|
2946
|
-
|
|
2994
|
+
chunks = response._prefix;
|
|
2995
|
+
response = response._formData.streamChunks;
|
|
2996
|
+
id = null === response ? void 0 : response.get(chunks + "S" + id);
|
|
2997
|
+
if (void 0 !== id)
|
|
2998
|
+
for (response = 0; response < id.length; response++)
|
|
2999
|
+
(chunks = id[response]),
|
|
3000
|
+
"C" === chunks[0]
|
|
2947
3001
|
? controller.close("C" === chunks ? '"$undefined"' : chunks.slice(1))
|
|
2948
|
-
: controller.enqueueModel(chunks)
|
|
3002
|
+
: controller.enqueueModel(chunks);
|
|
2949
3003
|
}
|
|
2950
3004
|
function parseReadableStream(response, reference, type) {
|
|
2951
3005
|
function enqueue(value) {
|
|
@@ -3111,7 +3165,14 @@ function parseAsyncIterable(response, reference, iterator) {
|
|
|
3111
3165
|
});
|
|
3112
3166
|
return iterator;
|
|
3113
3167
|
}
|
|
3114
|
-
function parseModelString(
|
|
3168
|
+
function parseModelString(
|
|
3169
|
+
response,
|
|
3170
|
+
obj,
|
|
3171
|
+
key$jscomp$0,
|
|
3172
|
+
value,
|
|
3173
|
+
reference,
|
|
3174
|
+
arrayRoot
|
|
3175
|
+
) {
|
|
3115
3176
|
if ("$" === value[0]) {
|
|
3116
3177
|
switch (value[1]) {
|
|
3117
3178
|
case "$":
|
|
@@ -3129,7 +3190,7 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
|
|
|
3129
3190
|
response,
|
|
3130
3191
|
arrayRoot,
|
|
3131
3192
|
obj,
|
|
3132
|
-
key,
|
|
3193
|
+
key$jscomp$0,
|
|
3133
3194
|
null,
|
|
3134
3195
|
loadServerReference$1
|
|
3135
3196
|
)
|
|
@@ -3146,43 +3207,55 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
|
|
|
3146
3207
|
case "Q":
|
|
3147
3208
|
return (
|
|
3148
3209
|
(arrayRoot = value.slice(2)),
|
|
3149
|
-
getOutlinedModel(
|
|
3210
|
+
getOutlinedModel(
|
|
3211
|
+
response,
|
|
3212
|
+
arrayRoot,
|
|
3213
|
+
obj,
|
|
3214
|
+
key$jscomp$0,
|
|
3215
|
+
null,
|
|
3216
|
+
createMap
|
|
3217
|
+
)
|
|
3150
3218
|
);
|
|
3151
3219
|
case "W":
|
|
3152
3220
|
return (
|
|
3153
3221
|
(arrayRoot = value.slice(2)),
|
|
3154
|
-
getOutlinedModel(
|
|
3222
|
+
getOutlinedModel(
|
|
3223
|
+
response,
|
|
3224
|
+
arrayRoot,
|
|
3225
|
+
obj,
|
|
3226
|
+
key$jscomp$0,
|
|
3227
|
+
null,
|
|
3228
|
+
createSet
|
|
3229
|
+
)
|
|
3155
3230
|
);
|
|
3156
3231
|
case "K":
|
|
3157
|
-
|
|
3158
|
-
obj = response._prefix + "_";
|
|
3159
|
-
|
|
3160
|
-
|
|
3161
|
-
|
|
3162
|
-
|
|
3163
|
-
|
|
3164
|
-
|
|
3165
|
-
|
|
3166
|
-
|
|
3167
|
-
|
|
3168
|
-
|
|
3169
|
-
|
|
3170
|
-
|
|
3171
|
-
var referencedFormDataKey = value.slice(key.length), i = 0;
|
|
3172
|
-
i < reference.length;
|
|
3173
|
-
i++
|
|
3174
|
-
)
|
|
3175
|
-
arrayRoot.append(referencedFormDataKey, reference[i]);
|
|
3176
|
-
response.data.delete(value);
|
|
3177
|
-
response.keyPointer++;
|
|
3178
|
-
} else if (value.startsWith(obj)) break;
|
|
3179
|
-
else response.keyPointer++;
|
|
3232
|
+
obj = value.slice(2);
|
|
3233
|
+
obj = response._prefix + "_" + obj + "_";
|
|
3234
|
+
response = response._formData;
|
|
3235
|
+
key$jscomp$0 = new FormData();
|
|
3236
|
+
arrayRoot = response.referencedEntries;
|
|
3237
|
+
if (null !== arrayRoot) {
|
|
3238
|
+
for (value = response.keyPointer; value < arrayRoot.length; ) {
|
|
3239
|
+
reference = arrayRoot[value];
|
|
3240
|
+
var key = reference[0];
|
|
3241
|
+
if (!key.startsWith(obj)) break;
|
|
3242
|
+
key$jscomp$0.append(key.slice(obj.length), reference[1]);
|
|
3243
|
+
value++;
|
|
3244
|
+
}
|
|
3245
|
+
response.keyPointer = value;
|
|
3180
3246
|
}
|
|
3181
|
-
return
|
|
3247
|
+
return key$jscomp$0;
|
|
3182
3248
|
case "i":
|
|
3183
3249
|
return (
|
|
3184
3250
|
(arrayRoot = value.slice(2)),
|
|
3185
|
-
getOutlinedModel(
|
|
3251
|
+
getOutlinedModel(
|
|
3252
|
+
response,
|
|
3253
|
+
arrayRoot,
|
|
3254
|
+
obj,
|
|
3255
|
+
key$jscomp$0,
|
|
3256
|
+
null,
|
|
3257
|
+
extractIterator
|
|
3258
|
+
)
|
|
3186
3259
|
);
|
|
3187
3260
|
case "I":
|
|
3188
3261
|
return Infinity;
|
|
@@ -3211,7 +3284,7 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
|
|
|
3211
3284
|
ArrayBuffer,
|
|
3212
3285
|
1,
|
|
3213
3286
|
obj,
|
|
3214
|
-
key,
|
|
3287
|
+
key$jscomp$0,
|
|
3215
3288
|
arrayRoot
|
|
3216
3289
|
);
|
|
3217
3290
|
case "O":
|
|
@@ -3221,7 +3294,7 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
|
|
|
3221
3294
|
Int8Array,
|
|
3222
3295
|
1,
|
|
3223
3296
|
obj,
|
|
3224
|
-
key,
|
|
3297
|
+
key$jscomp$0,
|
|
3225
3298
|
arrayRoot
|
|
3226
3299
|
);
|
|
3227
3300
|
case "o":
|
|
@@ -3231,7 +3304,7 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
|
|
|
3231
3304
|
Uint8Array,
|
|
3232
3305
|
1,
|
|
3233
3306
|
obj,
|
|
3234
|
-
key,
|
|
3307
|
+
key$jscomp$0,
|
|
3235
3308
|
arrayRoot
|
|
3236
3309
|
);
|
|
3237
3310
|
case "U":
|
|
@@ -3241,7 +3314,7 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
|
|
|
3241
3314
|
Uint8ClampedArray,
|
|
3242
3315
|
1,
|
|
3243
3316
|
obj,
|
|
3244
|
-
key,
|
|
3317
|
+
key$jscomp$0,
|
|
3245
3318
|
arrayRoot
|
|
3246
3319
|
);
|
|
3247
3320
|
case "S":
|
|
@@ -3251,7 +3324,7 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
|
|
|
3251
3324
|
Int16Array,
|
|
3252
3325
|
2,
|
|
3253
3326
|
obj,
|
|
3254
|
-
key,
|
|
3327
|
+
key$jscomp$0,
|
|
3255
3328
|
arrayRoot
|
|
3256
3329
|
);
|
|
3257
3330
|
case "s":
|
|
@@ -3261,7 +3334,7 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
|
|
|
3261
3334
|
Uint16Array,
|
|
3262
3335
|
2,
|
|
3263
3336
|
obj,
|
|
3264
|
-
key,
|
|
3337
|
+
key$jscomp$0,
|
|
3265
3338
|
arrayRoot
|
|
3266
3339
|
);
|
|
3267
3340
|
case "L":
|
|
@@ -3271,7 +3344,7 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
|
|
|
3271
3344
|
Int32Array,
|
|
3272
3345
|
4,
|
|
3273
3346
|
obj,
|
|
3274
|
-
key,
|
|
3347
|
+
key$jscomp$0,
|
|
3275
3348
|
arrayRoot
|
|
3276
3349
|
);
|
|
3277
3350
|
case "l":
|
|
@@ -3281,7 +3354,7 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
|
|
|
3281
3354
|
Uint32Array,
|
|
3282
3355
|
4,
|
|
3283
3356
|
obj,
|
|
3284
|
-
key,
|
|
3357
|
+
key$jscomp$0,
|
|
3285
3358
|
arrayRoot
|
|
3286
3359
|
);
|
|
3287
3360
|
case "G":
|
|
@@ -3291,7 +3364,7 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
|
|
|
3291
3364
|
Float32Array,
|
|
3292
3365
|
4,
|
|
3293
3366
|
obj,
|
|
3294
|
-
key,
|
|
3367
|
+
key$jscomp$0,
|
|
3295
3368
|
arrayRoot
|
|
3296
3369
|
);
|
|
3297
3370
|
case "g":
|
|
@@ -3301,7 +3374,7 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
|
|
|
3301
3374
|
Float64Array,
|
|
3302
3375
|
8,
|
|
3303
3376
|
obj,
|
|
3304
|
-
key,
|
|
3377
|
+
key$jscomp$0,
|
|
3305
3378
|
arrayRoot
|
|
3306
3379
|
);
|
|
3307
3380
|
case "M":
|
|
@@ -3311,7 +3384,7 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
|
|
|
3311
3384
|
BigInt64Array,
|
|
3312
3385
|
8,
|
|
3313
3386
|
obj,
|
|
3314
|
-
key,
|
|
3387
|
+
key$jscomp$0,
|
|
3315
3388
|
arrayRoot
|
|
3316
3389
|
);
|
|
3317
3390
|
case "m":
|
|
@@ -3321,7 +3394,7 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
|
|
|
3321
3394
|
BigUint64Array,
|
|
3322
3395
|
8,
|
|
3323
3396
|
obj,
|
|
3324
|
-
key,
|
|
3397
|
+
key$jscomp$0,
|
|
3325
3398
|
arrayRoot
|
|
3326
3399
|
);
|
|
3327
3400
|
case "V":
|
|
@@ -3331,13 +3404,13 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
|
|
|
3331
3404
|
DataView,
|
|
3332
3405
|
1,
|
|
3333
3406
|
obj,
|
|
3334
|
-
key,
|
|
3407
|
+
key$jscomp$0,
|
|
3335
3408
|
arrayRoot
|
|
3336
3409
|
);
|
|
3337
3410
|
case "B":
|
|
3338
3411
|
return (
|
|
3339
3412
|
(obj = parseInt(value.slice(2), 16)),
|
|
3340
|
-
response._formData
|
|
3413
|
+
getBackingBlob(response._formData, response._prefix + obj)
|
|
3341
3414
|
);
|
|
3342
3415
|
case "R":
|
|
3343
3416
|
return parseReadableStream(response, value, void 0);
|
|
@@ -3349,7 +3422,14 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
|
|
|
3349
3422
|
return parseAsyncIterable(response, value, !0);
|
|
3350
3423
|
}
|
|
3351
3424
|
value = value.slice(1);
|
|
3352
|
-
return getOutlinedModel(
|
|
3425
|
+
return getOutlinedModel(
|
|
3426
|
+
response,
|
|
3427
|
+
value,
|
|
3428
|
+
obj,
|
|
3429
|
+
key$jscomp$0,
|
|
3430
|
+
arrayRoot,
|
|
3431
|
+
createModel
|
|
3432
|
+
);
|
|
3353
3433
|
}
|
|
3354
3434
|
null !== arrayRoot && bumpArrayCount(arrayRoot, value.length, response);
|
|
3355
3435
|
return value;
|
|
@@ -3361,11 +3441,20 @@ function createResponse(bundlerConfig, formFieldPrefix, temporaryReferences) {
|
|
|
3361
3441
|
: new FormData(),
|
|
3362
3442
|
arraySizeLimit =
|
|
3363
3443
|
4 < arguments.length && void 0 !== arguments[4] ? arguments[4] : 1e6,
|
|
3364
|
-
chunks = new Map()
|
|
3444
|
+
chunks = new Map(),
|
|
3445
|
+
backingStore = {
|
|
3446
|
+
prefix: formFieldPrefix,
|
|
3447
|
+
referencedEntries: null,
|
|
3448
|
+
keyPointer: 0,
|
|
3449
|
+
stringChunks: null,
|
|
3450
|
+
streamChunks: null,
|
|
3451
|
+
blobs: null
|
|
3452
|
+
};
|
|
3453
|
+
backingFormData.forEach(appendBackingEntry.bind(null, backingStore));
|
|
3365
3454
|
return {
|
|
3366
3455
|
_bundlerConfig: bundlerConfig,
|
|
3367
3456
|
_prefix: formFieldPrefix,
|
|
3368
|
-
_formData:
|
|
3457
|
+
_formData: backingStore,
|
|
3369
3458
|
_chunks: chunks,
|
|
3370
3459
|
_closed: !1,
|
|
3371
3460
|
_closedReason: null,
|
|
@@ -3375,14 +3464,26 @@ function createResponse(bundlerConfig, formFieldPrefix, temporaryReferences) {
|
|
|
3375
3464
|
};
|
|
3376
3465
|
}
|
|
3377
3466
|
function resolveField(response, key, value) {
|
|
3378
|
-
appendBackingEntry(response._formData, key, value);
|
|
3379
3467
|
var prefix = response._prefix;
|
|
3380
3468
|
if (key.startsWith(prefix)) {
|
|
3381
3469
|
var chunks = response._chunks;
|
|
3382
|
-
|
|
3383
|
-
|
|
3384
|
-
|
|
3470
|
+
if ("S" === key[prefix.length]) {
|
|
3471
|
+
if (
|
|
3472
|
+
key.length > prefix.length + 1 &&
|
|
3473
|
+
((prefix = +key.slice(prefix.length + 1)),
|
|
3474
|
+
(chunks = chunks.get(prefix)))
|
|
3475
|
+
) {
|
|
3476
|
+
resolveModelChunk(response, chunks, value, prefix);
|
|
3477
|
+
return;
|
|
3478
|
+
}
|
|
3479
|
+
} else if (
|
|
3480
|
+
((prefix = +key.slice(prefix.length)), (chunks = chunks.get(prefix)))
|
|
3481
|
+
) {
|
|
3482
|
+
resolveModelChunk(response, chunks, value, prefix);
|
|
3483
|
+
return;
|
|
3484
|
+
}
|
|
3385
3485
|
}
|
|
3486
|
+
appendBackingEntry(response._formData, value, key);
|
|
3386
3487
|
}
|
|
3387
3488
|
function close(response) {
|
|
3388
3489
|
reportGlobalError(response, Error("Connection closed."));
|
|
@@ -3550,7 +3651,7 @@ exports.decodeReplyFromAsyncIterable = function (
|
|
|
3550
3651
|
_entry$value = _entry$value[1];
|
|
3551
3652
|
"string" === typeof _entry$value
|
|
3552
3653
|
? resolveField(response, entry, _entry$value)
|
|
3553
|
-
: appendBackingEntry(response._formData,
|
|
3654
|
+
: appendBackingEntry(response._formData, _entry$value, entry);
|
|
3554
3655
|
iterator.next().then(progress, error);
|
|
3555
3656
|
}
|
|
3556
3657
|
}
|
|
@@ -3577,28 +3678,32 @@ exports.decodeReplyFromBusboy = function (busboyStream, webpackMap, options) {
|
|
|
3577
3678
|
if (!current.complete) return;
|
|
3578
3679
|
try {
|
|
3579
3680
|
var key = current.name,
|
|
3580
|
-
|
|
3581
|
-
|
|
3582
|
-
|
|
3583
|
-
|
|
3584
|
-
|
|
3585
|
-
|
|
3586
|
-
|
|
3587
|
-
|
|
3588
|
-
|
|
3589
|
-
|
|
3681
|
+
JSCompiler_temp_const = response._formData;
|
|
3682
|
+
var handle = current.file;
|
|
3683
|
+
if ("function" === typeof File)
|
|
3684
|
+
var JSCompiler_inline_result = new File(
|
|
3685
|
+
handle.chunks,
|
|
3686
|
+
handle.filename,
|
|
3687
|
+
{ type: handle.mime }
|
|
3688
|
+
);
|
|
3689
|
+
else {
|
|
3690
|
+
var scratch = new FormData();
|
|
3691
|
+
scratch.append(
|
|
3692
|
+
"file",
|
|
3693
|
+
new Blob(handle.chunks, { type: handle.mime }),
|
|
3694
|
+
handle.filename
|
|
3695
|
+
);
|
|
3696
|
+
JSCompiler_inline_result = scratch.get("file");
|
|
3697
|
+
}
|
|
3698
|
+
appendBackingEntry(
|
|
3699
|
+
JSCompiler_temp_const,
|
|
3700
|
+
JSCompiler_inline_result,
|
|
3701
|
+
key
|
|
3702
|
+
);
|
|
3590
3703
|
var queuedFields = current.queuedFields;
|
|
3591
3704
|
if (null !== queuedFields)
|
|
3592
|
-
for (
|
|
3593
|
-
|
|
3594
|
-
key$jscomp$0 < queuedFields.length;
|
|
3595
|
-
key$jscomp$0 += 2
|
|
3596
|
-
)
|
|
3597
|
-
resolveField(
|
|
3598
|
-
response,
|
|
3599
|
-
queuedFields[key$jscomp$0],
|
|
3600
|
-
queuedFields[key$jscomp$0 + 1]
|
|
3601
|
-
);
|
|
3705
|
+
for (var i = 0; i < queuedFields.length; i += 2)
|
|
3706
|
+
resolveField(response, queuedFields[i], queuedFields[i + 1]);
|
|
3602
3707
|
} catch (error) {
|
|
3603
3708
|
busboyStream.destroy(error);
|
|
3604
3709
|
return;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-server-dom-webpack",
|
|
3
3
|
"description": "React Server Components bindings for DOM using Webpack. 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
|
],
|
|
@@ -84,8 +84,8 @@
|
|
|
84
84
|
"node": ">=0.10.0"
|
|
85
85
|
},
|
|
86
86
|
"peerDependencies": {
|
|
87
|
-
"react": "^19.2.
|
|
88
|
-
"react-dom": "^19.2.
|
|
87
|
+
"react": "^19.2.9",
|
|
88
|
+
"react-dom": "^19.2.9",
|
|
89
89
|
"webpack": "^5.59.0"
|
|
90
90
|
},
|
|
91
91
|
"dependencies": {
|