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
|
@@ -15,6 +15,11 @@ require("crypto");
|
|
|
15
15
|
var async_hooks = require("async_hooks"),
|
|
16
16
|
ReactDOM = require("react-dom"),
|
|
17
17
|
React = require("react"),
|
|
18
|
+
hasOwnProperty = Object.prototype.hasOwnProperty,
|
|
19
|
+
supportsArrayBufferDetached = hasOwnProperty.call(
|
|
20
|
+
ArrayBuffer.prototype,
|
|
21
|
+
"detached"
|
|
22
|
+
),
|
|
18
23
|
scheduleMicrotask = queueMicrotask,
|
|
19
24
|
currentView = null,
|
|
20
25
|
writtenBytes = 0,
|
|
@@ -56,33 +61,37 @@ function writeChunkAndReturn(destination, chunk) {
|
|
|
56
61
|
(currentView = new Uint8Array(2048)),
|
|
57
62
|
(writtenBytes = 0));
|
|
58
63
|
}
|
|
64
|
+
} else if (0 === chunk.byteLength) {
|
|
65
|
+
if (supportsArrayBufferDetached && chunk.buffer.detached)
|
|
66
|
+
throw Error(
|
|
67
|
+
"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()`."
|
|
68
|
+
);
|
|
59
69
|
} else
|
|
60
|
-
|
|
61
|
-
(
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
(
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
(writtenBytes = 0))));
|
|
70
|
+
2048 < chunk.byteLength
|
|
71
|
+
? (0 < writtenBytes &&
|
|
72
|
+
(writeToDestination(
|
|
73
|
+
destination,
|
|
74
|
+
currentView.subarray(0, writtenBytes)
|
|
75
|
+
),
|
|
76
|
+
(currentView = new Uint8Array(2048)),
|
|
77
|
+
(writtenBytes = 0)),
|
|
78
|
+
writeToDestination(destination, chunk))
|
|
79
|
+
: ((target = currentView.length - writtenBytes),
|
|
80
|
+
target < chunk.byteLength &&
|
|
81
|
+
(0 === target
|
|
82
|
+
? writeToDestination(destination, currentView)
|
|
83
|
+
: (currentView.set(chunk.subarray(0, target), writtenBytes),
|
|
84
|
+
(writtenBytes += target),
|
|
85
|
+
writeToDestination(destination, currentView),
|
|
86
|
+
(chunk = chunk.subarray(target))),
|
|
87
|
+
(currentView = new Uint8Array(2048)),
|
|
88
|
+
(writtenBytes = 0)),
|
|
89
|
+
currentView.set(chunk, writtenBytes),
|
|
90
|
+
(writtenBytes += chunk.byteLength),
|
|
91
|
+
2048 === writtenBytes &&
|
|
92
|
+
(writeToDestination(destination, currentView),
|
|
93
|
+
(currentView = new Uint8Array(2048)),
|
|
94
|
+
(writtenBytes = 0)));
|
|
86
95
|
return destinationHasCapacity;
|
|
87
96
|
}
|
|
88
97
|
var textEncoder = new util.TextEncoder();
|
|
@@ -1670,13 +1679,30 @@ function emitModelChunk(request, id, json) {
|
|
|
1670
1679
|
}
|
|
1671
1680
|
function emitTypedArrayChunk(request, id, tag, typedArray) {
|
|
1672
1681
|
request.pendingChunks++;
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1682
|
+
a: {
|
|
1683
|
+
var view = new Uint8Array(
|
|
1684
|
+
typedArray.buffer,
|
|
1685
|
+
typedArray.byteOffset,
|
|
1686
|
+
typedArray.byteLength
|
|
1687
|
+
);
|
|
1688
|
+
if (2048 < typedArray.byteLength) {
|
|
1689
|
+
if (
|
|
1690
|
+
0 !== typedArray.byteOffset ||
|
|
1691
|
+
typedArray.byteLength !== typedArray.buffer.byteLength ||
|
|
1692
|
+
typedArray.buffer.resizable
|
|
1693
|
+
) {
|
|
1694
|
+
typedArray = view.slice();
|
|
1695
|
+
break a;
|
|
1696
|
+
}
|
|
1697
|
+
if (!supportsArrayBufferDetached) {
|
|
1698
|
+
typedArray = view.slice();
|
|
1699
|
+
break a;
|
|
1700
|
+
}
|
|
1701
|
+
}
|
|
1702
|
+
typedArray = view;
|
|
1703
|
+
}
|
|
1704
|
+
view = typedArray.byteLength;
|
|
1705
|
+
id = id.toString(16) + ":" + tag + view.toString(16) + ",";
|
|
1680
1706
|
request.completedRegularChunks.push(id, typedArray);
|
|
1681
1707
|
}
|
|
1682
1708
|
function emitTextChunk(request, id, text) {
|
|
@@ -1949,7 +1975,6 @@ function abort(request, reason) {
|
|
|
1949
1975
|
logRecoverableError(request, error$26, null), fatalError(request, error$26);
|
|
1950
1976
|
}
|
|
1951
1977
|
}
|
|
1952
|
-
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
1953
1978
|
function resolveServerReference(bundlerConfig, id) {
|
|
1954
1979
|
var name = "",
|
|
1955
1980
|
resolvedModuleData = bundlerConfig[id];
|
|
@@ -2023,6 +2048,38 @@ function requireModule(metadata) {
|
|
|
2023
2048
|
if (hasOwnProperty.call(moduleExports, metadata[2]))
|
|
2024
2049
|
return moduleExports[metadata[2]];
|
|
2025
2050
|
}
|
|
2051
|
+
function appendBackingEntry(backingStore, value, key) {
|
|
2052
|
+
var prefix = backingStore.prefix;
|
|
2053
|
+
if (key.startsWith(prefix)) {
|
|
2054
|
+
switch (key[prefix.length]) {
|
|
2055
|
+
case "_":
|
|
2056
|
+
prefix = backingStore.referencedEntries;
|
|
2057
|
+
null === prefix && (prefix = backingStore.referencedEntries = []);
|
|
2058
|
+
prefix.push([key, value]);
|
|
2059
|
+
return;
|
|
2060
|
+
case "S":
|
|
2061
|
+
"string" === typeof value &&
|
|
2062
|
+
((prefix = backingStore.streamChunks),
|
|
2063
|
+
null === prefix && (prefix = backingStore.streamChunks = new Map()),
|
|
2064
|
+
(backingStore = prefix.get(key)),
|
|
2065
|
+
void 0 === backingStore
|
|
2066
|
+
? prefix.set(key, [value])
|
|
2067
|
+
: backingStore.push(value));
|
|
2068
|
+
return;
|
|
2069
|
+
}
|
|
2070
|
+
"string" === typeof value
|
|
2071
|
+
? ((prefix = backingStore.stringChunks),
|
|
2072
|
+
null === prefix && (prefix = backingStore.stringChunks = new Map()),
|
|
2073
|
+
prefix.set(key, value))
|
|
2074
|
+
: ((prefix = backingStore.blobs),
|
|
2075
|
+
null === prefix && (prefix = backingStore.blobs = new Map()),
|
|
2076
|
+
prefix.set(key, value));
|
|
2077
|
+
}
|
|
2078
|
+
}
|
|
2079
|
+
function getBackingBlob(backingStore, key) {
|
|
2080
|
+
backingStore = backingStore.blobs;
|
|
2081
|
+
return null === backingStore ? void 0 : backingStore.get(key);
|
|
2082
|
+
}
|
|
2026
2083
|
var RESPONSE_SYMBOL = Symbol();
|
|
2027
2084
|
function ReactPromise(status, value, reason) {
|
|
2028
2085
|
this.status = status;
|
|
@@ -2394,15 +2451,18 @@ function reportGlobalError(response, error) {
|
|
|
2394
2451
|
function getChunk(response, id) {
|
|
2395
2452
|
var chunks = response._chunks,
|
|
2396
2453
|
chunk = chunks.get(id);
|
|
2397
|
-
chunk
|
|
2398
|
-
|
|
2399
|
-
|
|
2454
|
+
if (!chunk) {
|
|
2455
|
+
chunk = response._prefix;
|
|
2456
|
+
var stringChunks = response._formData.stringChunks;
|
|
2457
|
+
chunk = null === stringChunks ? void 0 : stringChunks.get(chunk + id);
|
|
2458
|
+
chunk =
|
|
2400
2459
|
"string" === typeof chunk
|
|
2401
2460
|
? createResolvedModelChunk(response, chunk, id)
|
|
2402
2461
|
: response._closed
|
|
2403
2462
|
? new ReactPromise("rejected", null, response._closedReason)
|
|
2404
|
-
: new ReactPromise("pending", null, null)
|
|
2405
|
-
chunks.set(id, chunk)
|
|
2463
|
+
: new ReactPromise("pending", null, null);
|
|
2464
|
+
chunks.set(id, chunk);
|
|
2465
|
+
}
|
|
2406
2466
|
return chunk;
|
|
2407
2467
|
}
|
|
2408
2468
|
function fulfillReference(response, reference, value, arrayRoot) {
|
|
@@ -2633,7 +2693,7 @@ function parseTypedArray(
|
|
|
2633
2693
|
Error("Already initialized typed array.")
|
|
2634
2694
|
)
|
|
2635
2695
|
);
|
|
2636
|
-
reference = response._formData
|
|
2696
|
+
reference = getBackingBlob(response._formData, key).arrayBuffer();
|
|
2637
2697
|
if (initializingHandler) {
|
|
2638
2698
|
var handler = initializingHandler;
|
|
2639
2699
|
handler.deps++;
|
|
@@ -2677,13 +2737,15 @@ function resolveStream(response, id, stream, controller) {
|
|
|
2677
2737
|
var chunks = response._chunks;
|
|
2678
2738
|
stream = new ReactPromise("fulfilled", stream, controller);
|
|
2679
2739
|
chunks.set(id, stream);
|
|
2680
|
-
|
|
2681
|
-
|
|
2682
|
-
|
|
2683
|
-
|
|
2684
|
-
|
|
2740
|
+
chunks = response._prefix;
|
|
2741
|
+
response = response._formData.streamChunks;
|
|
2742
|
+
id = null === response ? void 0 : response.get(chunks + "S" + id);
|
|
2743
|
+
if (void 0 !== id)
|
|
2744
|
+
for (response = 0; response < id.length; response++)
|
|
2745
|
+
(chunks = id[response]),
|
|
2746
|
+
"C" === chunks[0]
|
|
2685
2747
|
? controller.close("C" === chunks ? '"$undefined"' : chunks.slice(1))
|
|
2686
|
-
: controller.enqueueModel(chunks)
|
|
2748
|
+
: controller.enqueueModel(chunks);
|
|
2687
2749
|
}
|
|
2688
2750
|
function parseReadableStream(response, reference, type) {
|
|
2689
2751
|
function enqueue(value) {
|
|
@@ -2849,7 +2911,14 @@ function parseAsyncIterable(response, reference, iterator) {
|
|
|
2849
2911
|
});
|
|
2850
2912
|
return iterator;
|
|
2851
2913
|
}
|
|
2852
|
-
function parseModelString(
|
|
2914
|
+
function parseModelString(
|
|
2915
|
+
response,
|
|
2916
|
+
obj,
|
|
2917
|
+
key$jscomp$0,
|
|
2918
|
+
value,
|
|
2919
|
+
reference,
|
|
2920
|
+
arrayRoot
|
|
2921
|
+
) {
|
|
2853
2922
|
if ("$" === value[0]) {
|
|
2854
2923
|
switch (value[1]) {
|
|
2855
2924
|
case "$":
|
|
@@ -2867,7 +2936,7 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
|
|
|
2867
2936
|
response,
|
|
2868
2937
|
arrayRoot,
|
|
2869
2938
|
obj,
|
|
2870
|
-
key,
|
|
2939
|
+
key$jscomp$0,
|
|
2871
2940
|
null,
|
|
2872
2941
|
loadServerReference$1
|
|
2873
2942
|
)
|
|
@@ -2884,43 +2953,55 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
|
|
|
2884
2953
|
case "Q":
|
|
2885
2954
|
return (
|
|
2886
2955
|
(arrayRoot = value.slice(2)),
|
|
2887
|
-
getOutlinedModel(
|
|
2956
|
+
getOutlinedModel(
|
|
2957
|
+
response,
|
|
2958
|
+
arrayRoot,
|
|
2959
|
+
obj,
|
|
2960
|
+
key$jscomp$0,
|
|
2961
|
+
null,
|
|
2962
|
+
createMap
|
|
2963
|
+
)
|
|
2888
2964
|
);
|
|
2889
2965
|
case "W":
|
|
2890
2966
|
return (
|
|
2891
2967
|
(arrayRoot = value.slice(2)),
|
|
2892
|
-
getOutlinedModel(
|
|
2968
|
+
getOutlinedModel(
|
|
2969
|
+
response,
|
|
2970
|
+
arrayRoot,
|
|
2971
|
+
obj,
|
|
2972
|
+
key$jscomp$0,
|
|
2973
|
+
null,
|
|
2974
|
+
createSet
|
|
2975
|
+
)
|
|
2893
2976
|
);
|
|
2894
2977
|
case "K":
|
|
2895
|
-
|
|
2896
|
-
obj = response._prefix + "_";
|
|
2897
|
-
|
|
2898
|
-
|
|
2899
|
-
|
|
2900
|
-
|
|
2901
|
-
|
|
2902
|
-
|
|
2903
|
-
|
|
2904
|
-
|
|
2905
|
-
|
|
2906
|
-
|
|
2907
|
-
|
|
2908
|
-
|
|
2909
|
-
var referencedFormDataKey = value.slice(key.length), i = 0;
|
|
2910
|
-
i < reference.length;
|
|
2911
|
-
i++
|
|
2912
|
-
)
|
|
2913
|
-
arrayRoot.append(referencedFormDataKey, reference[i]);
|
|
2914
|
-
response.data.delete(value);
|
|
2915
|
-
response.keyPointer++;
|
|
2916
|
-
} else if (value.startsWith(obj)) break;
|
|
2917
|
-
else response.keyPointer++;
|
|
2978
|
+
obj = value.slice(2);
|
|
2979
|
+
obj = response._prefix + "_" + obj + "_";
|
|
2980
|
+
response = response._formData;
|
|
2981
|
+
key$jscomp$0 = new FormData();
|
|
2982
|
+
arrayRoot = response.referencedEntries;
|
|
2983
|
+
if (null !== arrayRoot) {
|
|
2984
|
+
for (value = response.keyPointer; value < arrayRoot.length; ) {
|
|
2985
|
+
reference = arrayRoot[value];
|
|
2986
|
+
var key = reference[0];
|
|
2987
|
+
if (!key.startsWith(obj)) break;
|
|
2988
|
+
key$jscomp$0.append(key.slice(obj.length), reference[1]);
|
|
2989
|
+
value++;
|
|
2990
|
+
}
|
|
2991
|
+
response.keyPointer = value;
|
|
2918
2992
|
}
|
|
2919
|
-
return
|
|
2993
|
+
return key$jscomp$0;
|
|
2920
2994
|
case "i":
|
|
2921
2995
|
return (
|
|
2922
2996
|
(arrayRoot = value.slice(2)),
|
|
2923
|
-
getOutlinedModel(
|
|
2997
|
+
getOutlinedModel(
|
|
2998
|
+
response,
|
|
2999
|
+
arrayRoot,
|
|
3000
|
+
obj,
|
|
3001
|
+
key$jscomp$0,
|
|
3002
|
+
null,
|
|
3003
|
+
extractIterator
|
|
3004
|
+
)
|
|
2924
3005
|
);
|
|
2925
3006
|
case "I":
|
|
2926
3007
|
return Infinity;
|
|
@@ -2949,7 +3030,7 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
|
|
|
2949
3030
|
ArrayBuffer,
|
|
2950
3031
|
1,
|
|
2951
3032
|
obj,
|
|
2952
|
-
key,
|
|
3033
|
+
key$jscomp$0,
|
|
2953
3034
|
arrayRoot
|
|
2954
3035
|
);
|
|
2955
3036
|
case "O":
|
|
@@ -2959,7 +3040,7 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
|
|
|
2959
3040
|
Int8Array,
|
|
2960
3041
|
1,
|
|
2961
3042
|
obj,
|
|
2962
|
-
key,
|
|
3043
|
+
key$jscomp$0,
|
|
2963
3044
|
arrayRoot
|
|
2964
3045
|
);
|
|
2965
3046
|
case "o":
|
|
@@ -2969,7 +3050,7 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
|
|
|
2969
3050
|
Uint8Array,
|
|
2970
3051
|
1,
|
|
2971
3052
|
obj,
|
|
2972
|
-
key,
|
|
3053
|
+
key$jscomp$0,
|
|
2973
3054
|
arrayRoot
|
|
2974
3055
|
);
|
|
2975
3056
|
case "U":
|
|
@@ -2979,7 +3060,7 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
|
|
|
2979
3060
|
Uint8ClampedArray,
|
|
2980
3061
|
1,
|
|
2981
3062
|
obj,
|
|
2982
|
-
key,
|
|
3063
|
+
key$jscomp$0,
|
|
2983
3064
|
arrayRoot
|
|
2984
3065
|
);
|
|
2985
3066
|
case "S":
|
|
@@ -2989,7 +3070,7 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
|
|
|
2989
3070
|
Int16Array,
|
|
2990
3071
|
2,
|
|
2991
3072
|
obj,
|
|
2992
|
-
key,
|
|
3073
|
+
key$jscomp$0,
|
|
2993
3074
|
arrayRoot
|
|
2994
3075
|
);
|
|
2995
3076
|
case "s":
|
|
@@ -2999,7 +3080,7 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
|
|
|
2999
3080
|
Uint16Array,
|
|
3000
3081
|
2,
|
|
3001
3082
|
obj,
|
|
3002
|
-
key,
|
|
3083
|
+
key$jscomp$0,
|
|
3003
3084
|
arrayRoot
|
|
3004
3085
|
);
|
|
3005
3086
|
case "L":
|
|
@@ -3009,7 +3090,7 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
|
|
|
3009
3090
|
Int32Array,
|
|
3010
3091
|
4,
|
|
3011
3092
|
obj,
|
|
3012
|
-
key,
|
|
3093
|
+
key$jscomp$0,
|
|
3013
3094
|
arrayRoot
|
|
3014
3095
|
);
|
|
3015
3096
|
case "l":
|
|
@@ -3019,7 +3100,7 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
|
|
|
3019
3100
|
Uint32Array,
|
|
3020
3101
|
4,
|
|
3021
3102
|
obj,
|
|
3022
|
-
key,
|
|
3103
|
+
key$jscomp$0,
|
|
3023
3104
|
arrayRoot
|
|
3024
3105
|
);
|
|
3025
3106
|
case "G":
|
|
@@ -3029,7 +3110,7 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
|
|
|
3029
3110
|
Float32Array,
|
|
3030
3111
|
4,
|
|
3031
3112
|
obj,
|
|
3032
|
-
key,
|
|
3113
|
+
key$jscomp$0,
|
|
3033
3114
|
arrayRoot
|
|
3034
3115
|
);
|
|
3035
3116
|
case "g":
|
|
@@ -3039,7 +3120,7 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
|
|
|
3039
3120
|
Float64Array,
|
|
3040
3121
|
8,
|
|
3041
3122
|
obj,
|
|
3042
|
-
key,
|
|
3123
|
+
key$jscomp$0,
|
|
3043
3124
|
arrayRoot
|
|
3044
3125
|
);
|
|
3045
3126
|
case "M":
|
|
@@ -3049,7 +3130,7 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
|
|
|
3049
3130
|
BigInt64Array,
|
|
3050
3131
|
8,
|
|
3051
3132
|
obj,
|
|
3052
|
-
key,
|
|
3133
|
+
key$jscomp$0,
|
|
3053
3134
|
arrayRoot
|
|
3054
3135
|
);
|
|
3055
3136
|
case "m":
|
|
@@ -3059,7 +3140,7 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
|
|
|
3059
3140
|
BigUint64Array,
|
|
3060
3141
|
8,
|
|
3061
3142
|
obj,
|
|
3062
|
-
key,
|
|
3143
|
+
key$jscomp$0,
|
|
3063
3144
|
arrayRoot
|
|
3064
3145
|
);
|
|
3065
3146
|
case "V":
|
|
@@ -3069,13 +3150,13 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
|
|
|
3069
3150
|
DataView,
|
|
3070
3151
|
1,
|
|
3071
3152
|
obj,
|
|
3072
|
-
key,
|
|
3153
|
+
key$jscomp$0,
|
|
3073
3154
|
arrayRoot
|
|
3074
3155
|
);
|
|
3075
3156
|
case "B":
|
|
3076
3157
|
return (
|
|
3077
3158
|
(obj = parseInt(value.slice(2), 16)),
|
|
3078
|
-
response._formData
|
|
3159
|
+
getBackingBlob(response._formData, response._prefix + obj)
|
|
3079
3160
|
);
|
|
3080
3161
|
case "R":
|
|
3081
3162
|
return parseReadableStream(response, value, void 0);
|
|
@@ -3087,7 +3168,14 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
|
|
|
3087
3168
|
return parseAsyncIterable(response, value, !0);
|
|
3088
3169
|
}
|
|
3089
3170
|
value = value.slice(1);
|
|
3090
|
-
return getOutlinedModel(
|
|
3171
|
+
return getOutlinedModel(
|
|
3172
|
+
response,
|
|
3173
|
+
value,
|
|
3174
|
+
obj,
|
|
3175
|
+
key$jscomp$0,
|
|
3176
|
+
arrayRoot,
|
|
3177
|
+
createModel
|
|
3178
|
+
);
|
|
3091
3179
|
}
|
|
3092
3180
|
null !== arrayRoot && bumpArrayCount(arrayRoot, value.length, response);
|
|
3093
3181
|
return value;
|
|
@@ -3099,11 +3187,20 @@ function createResponse(bundlerConfig, formFieldPrefix, temporaryReferences) {
|
|
|
3099
3187
|
: new FormData(),
|
|
3100
3188
|
arraySizeLimit =
|
|
3101
3189
|
4 < arguments.length && void 0 !== arguments[4] ? arguments[4] : 1e6,
|
|
3102
|
-
chunks = new Map()
|
|
3190
|
+
chunks = new Map(),
|
|
3191
|
+
backingStore = {
|
|
3192
|
+
prefix: formFieldPrefix,
|
|
3193
|
+
referencedEntries: null,
|
|
3194
|
+
keyPointer: 0,
|
|
3195
|
+
stringChunks: null,
|
|
3196
|
+
streamChunks: null,
|
|
3197
|
+
blobs: null
|
|
3198
|
+
};
|
|
3199
|
+
backingFormData.forEach(appendBackingEntry.bind(null, backingStore));
|
|
3103
3200
|
return {
|
|
3104
3201
|
_bundlerConfig: bundlerConfig,
|
|
3105
3202
|
_prefix: formFieldPrefix,
|
|
3106
|
-
_formData:
|
|
3203
|
+
_formData: backingStore,
|
|
3107
3204
|
_chunks: chunks,
|
|
3108
3205
|
_closed: !1,
|
|
3109
3206
|
_closedReason: null,
|
|
@@ -3113,19 +3210,26 @@ function createResponse(bundlerConfig, formFieldPrefix, temporaryReferences) {
|
|
|
3113
3210
|
};
|
|
3114
3211
|
}
|
|
3115
3212
|
function resolveField(response, key, value) {
|
|
3116
|
-
var
|
|
3117
|
-
|
|
3118
|
-
|
|
3119
|
-
|
|
3120
|
-
|
|
3121
|
-
|
|
3122
|
-
|
|
3123
|
-
|
|
3124
|
-
|
|
3125
|
-
|
|
3126
|
-
|
|
3127
|
-
|
|
3128
|
-
|
|
3213
|
+
var prefix = response._prefix;
|
|
3214
|
+
if (key.startsWith(prefix)) {
|
|
3215
|
+
var chunks = response._chunks;
|
|
3216
|
+
if ("S" === key[prefix.length]) {
|
|
3217
|
+
if (
|
|
3218
|
+
key.length > prefix.length + 1 &&
|
|
3219
|
+
((prefix = +key.slice(prefix.length + 1)),
|
|
3220
|
+
(chunks = chunks.get(prefix)))
|
|
3221
|
+
) {
|
|
3222
|
+
resolveModelChunk(response, chunks, value, prefix);
|
|
3223
|
+
return;
|
|
3224
|
+
}
|
|
3225
|
+
} else if (
|
|
3226
|
+
((prefix = +key.slice(prefix.length)), (chunks = chunks.get(prefix)))
|
|
3227
|
+
) {
|
|
3228
|
+
resolveModelChunk(response, chunks, value, prefix);
|
|
3229
|
+
return;
|
|
3230
|
+
}
|
|
3231
|
+
}
|
|
3232
|
+
appendBackingEntry(response._formData, value, key);
|
|
3129
3233
|
}
|
|
3130
3234
|
function close(response) {
|
|
3131
3235
|
reportGlobalError(response, Error("Connection closed."));
|
|
@@ -3270,28 +3374,32 @@ exports.decodeReplyFromBusboy = function (busboyStream, webpackMap, options) {
|
|
|
3270
3374
|
if (!current.complete) return;
|
|
3271
3375
|
try {
|
|
3272
3376
|
var key = current.name,
|
|
3273
|
-
|
|
3274
|
-
|
|
3275
|
-
|
|
3276
|
-
|
|
3277
|
-
|
|
3278
|
-
|
|
3279
|
-
|
|
3280
|
-
|
|
3281
|
-
|
|
3282
|
-
|
|
3377
|
+
JSCompiler_temp_const = response._formData;
|
|
3378
|
+
var handle = current.file;
|
|
3379
|
+
if ("function" === typeof File)
|
|
3380
|
+
var JSCompiler_inline_result = new File(
|
|
3381
|
+
handle.chunks,
|
|
3382
|
+
handle.filename,
|
|
3383
|
+
{ type: handle.mime }
|
|
3384
|
+
);
|
|
3385
|
+
else {
|
|
3386
|
+
var scratch = new FormData();
|
|
3387
|
+
scratch.append(
|
|
3388
|
+
"file",
|
|
3389
|
+
new Blob(handle.chunks, { type: handle.mime }),
|
|
3390
|
+
handle.filename
|
|
3391
|
+
);
|
|
3392
|
+
JSCompiler_inline_result = scratch.get("file");
|
|
3393
|
+
}
|
|
3394
|
+
appendBackingEntry(
|
|
3395
|
+
JSCompiler_temp_const,
|
|
3396
|
+
JSCompiler_inline_result,
|
|
3397
|
+
key
|
|
3398
|
+
);
|
|
3283
3399
|
var queuedFields = current.queuedFields;
|
|
3284
3400
|
if (null !== queuedFields)
|
|
3285
|
-
for (
|
|
3286
|
-
|
|
3287
|
-
key$jscomp$0 < queuedFields.length;
|
|
3288
|
-
key$jscomp$0 += 2
|
|
3289
|
-
)
|
|
3290
|
-
resolveField(
|
|
3291
|
-
response,
|
|
3292
|
-
queuedFields[key$jscomp$0],
|
|
3293
|
-
queuedFields[key$jscomp$0 + 1]
|
|
3294
|
-
);
|
|
3401
|
+
for (var i = 0; i < queuedFields.length; i += 2)
|
|
3402
|
+
resolveField(response, queuedFields[i], queuedFields[i + 1]);
|
|
3295
3403
|
} catch (error) {
|
|
3296
3404
|
busboyStream.destroy(error);
|
|
3297
3405
|
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.1.
|
|
4
|
+
"version": "19.1.10",
|
|
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.1.
|
|
88
|
-
"react-dom": "^19.1.
|
|
87
|
+
"react": "^19.1.10",
|
|
88
|
+
"react-dom": "^19.1.10",
|
|
89
89
|
"webpack": "^5.59.0"
|
|
90
90
|
},
|
|
91
91
|
"dependencies": {
|