react-server-dom-turbopack 19.0.4 → 19.0.6
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-turbopack-client.browser.development.js +3 -3
- package/cjs/react-server-dom-turbopack-client.browser.production.js +1 -1
- package/cjs/react-server-dom-turbopack-client.edge.development.js +1 -1
- package/cjs/react-server-dom-turbopack-client.edge.production.js +1 -1
- package/cjs/react-server-dom-turbopack-client.node.development.js +1 -1
- package/cjs/react-server-dom-turbopack-client.node.production.js +1 -1
- package/cjs/react-server-dom-turbopack-server.browser.development.js +37 -27
- package/cjs/react-server-dom-turbopack-server.browser.production.js +35 -27
- package/cjs/react-server-dom-turbopack-server.edge.development.js +37 -27
- package/cjs/react-server-dom-turbopack-server.edge.production.js +35 -27
- package/cjs/react-server-dom-turbopack-server.node.development.js +62 -41
- package/cjs/react-server-dom-turbopack-server.node.production.js +60 -41
- package/package.json +3 -3
|
@@ -548,7 +548,7 @@
|
|
|
548
548
|
null === formData && (formData = new FormData());
|
|
549
549
|
var _data3 = formData;
|
|
550
550
|
key = nextPartId++;
|
|
551
|
-
var prefix = formFieldPrefix + key + "_";
|
|
551
|
+
var prefix = formFieldPrefix + "_" + key + "_";
|
|
552
552
|
value.forEach(function (originalValue, originalKey) {
|
|
553
553
|
_data3.append(prefix + originalKey, originalValue);
|
|
554
554
|
});
|
|
@@ -2476,10 +2476,10 @@
|
|
|
2476
2476
|
return hook.checkDCE ? !0 : !1;
|
|
2477
2477
|
})({
|
|
2478
2478
|
bundleType: 1,
|
|
2479
|
-
version: "19.0.
|
|
2479
|
+
version: "19.0.6",
|
|
2480
2480
|
rendererPackageName: "react-server-dom-turbopack",
|
|
2481
2481
|
currentDispatcherRef: ReactSharedInternals,
|
|
2482
|
-
reconcilerVersion: "19.0.
|
|
2482
|
+
reconcilerVersion: "19.0.6",
|
|
2483
2483
|
getCurrentComponentInfo: function () {
|
|
2484
2484
|
return currentOwnerInDEV;
|
|
2485
2485
|
}
|
|
@@ -334,7 +334,7 @@ function processReply(
|
|
|
334
334
|
null === formData && (formData = new FormData());
|
|
335
335
|
var data$32 = formData;
|
|
336
336
|
key = nextPartId++;
|
|
337
|
-
var prefix = formFieldPrefix + key + "_";
|
|
337
|
+
var prefix = formFieldPrefix + "_" + key + "_";
|
|
338
338
|
value.forEach(function (originalValue, originalKey) {
|
|
339
339
|
data$32.append(prefix + originalKey, originalValue);
|
|
340
340
|
});
|
|
@@ -573,7 +573,7 @@
|
|
|
573
573
|
null === formData && (formData = new FormData());
|
|
574
574
|
var _data3 = formData;
|
|
575
575
|
key = nextPartId++;
|
|
576
|
-
var prefix = formFieldPrefix + key + "_";
|
|
576
|
+
var prefix = formFieldPrefix + "_" + key + "_";
|
|
577
577
|
value.forEach(function (originalValue, originalKey) {
|
|
578
578
|
_data3.append(prefix + originalKey, originalValue);
|
|
579
579
|
});
|
|
@@ -355,7 +355,7 @@ function processReply(
|
|
|
355
355
|
null === formData && (formData = new FormData());
|
|
356
356
|
var data$32 = formData;
|
|
357
357
|
key = nextPartId++;
|
|
358
|
-
var prefix = formFieldPrefix + key + "_";
|
|
358
|
+
var prefix = formFieldPrefix + "_" + key + "_";
|
|
359
359
|
value.forEach(function (originalValue, originalKey) {
|
|
360
360
|
data$32.append(prefix + originalKey, originalValue);
|
|
361
361
|
});
|
|
@@ -573,7 +573,7 @@
|
|
|
573
573
|
null === formData && (formData = new FormData());
|
|
574
574
|
var _data3 = formData;
|
|
575
575
|
key = nextPartId++;
|
|
576
|
-
var prefix = formFieldPrefix + key + "_";
|
|
576
|
+
var prefix = formFieldPrefix + "_" + key + "_";
|
|
577
577
|
value.forEach(function (originalValue, originalKey) {
|
|
578
578
|
_data3.append(prefix + originalKey, originalValue);
|
|
579
579
|
});
|
|
@@ -356,7 +356,7 @@ function processReply(
|
|
|
356
356
|
null === formData && (formData = new FormData());
|
|
357
357
|
var data$32 = formData;
|
|
358
358
|
key = nextPartId++;
|
|
359
|
-
var prefix = formFieldPrefix + key + "_";
|
|
359
|
+
var prefix = formFieldPrefix + "_" + key + "_";
|
|
360
360
|
value.forEach(function (originalValue, originalKey) {
|
|
361
361
|
data$32.append(prefix + originalKey, originalValue);
|
|
362
362
|
});
|
|
@@ -2820,7 +2820,7 @@
|
|
|
2820
2820
|
var chunks = response._chunks,
|
|
2821
2821
|
chunk = chunks.get(id);
|
|
2822
2822
|
chunk ||
|
|
2823
|
-
((chunk = response._formData.get(response._prefix + id)),
|
|
2823
|
+
((chunk = response._formData.data.get(response._prefix + id)),
|
|
2824
2824
|
(chunk =
|
|
2825
2825
|
"string" === typeof chunk
|
|
2826
2826
|
? new ReactPromise(
|
|
@@ -2930,6 +2930,10 @@
|
|
|
2930
2930
|
case "fulfilled":
|
|
2931
2931
|
id = chunk.value;
|
|
2932
2932
|
chunk = chunk.reason;
|
|
2933
|
+
if (null !== chunk && "error" in chunk)
|
|
2934
|
+
throw Error(
|
|
2935
|
+
"Expected an initialized chunk but got an initialized stream chunk instead. This payload may have been submitted by an older version of React."
|
|
2936
|
+
);
|
|
2933
2937
|
for (
|
|
2934
2938
|
var localLength = 0,
|
|
2935
2939
|
rootArrayContexts = response._rootArrayContexts,
|
|
@@ -3021,23 +3025,20 @@
|
|
|
3021
3025
|
function createMap(response, model) {
|
|
3022
3026
|
if (!isArrayImpl(model)) throw Error("Invalid Map initializer.");
|
|
3023
3027
|
if (!0 === model.$$consumed) throw Error("Already initialized Map.");
|
|
3024
|
-
response = new Map(model);
|
|
3025
3028
|
model.$$consumed = !0;
|
|
3026
|
-
return
|
|
3029
|
+
return new Map(model);
|
|
3027
3030
|
}
|
|
3028
3031
|
function createSet(response, model) {
|
|
3029
3032
|
if (!isArrayImpl(model)) throw Error("Invalid Set initializer.");
|
|
3030
3033
|
if (!0 === model.$$consumed) throw Error("Already initialized Set.");
|
|
3031
|
-
response = new Set(model);
|
|
3032
3034
|
model.$$consumed = !0;
|
|
3033
|
-
return
|
|
3035
|
+
return new Set(model);
|
|
3034
3036
|
}
|
|
3035
3037
|
function extractIterator(response, model) {
|
|
3036
3038
|
if (!isArrayImpl(model)) throw Error("Invalid Iterator initializer.");
|
|
3037
3039
|
if (!0 === model.$$consumed) throw Error("Already initialized Iterator.");
|
|
3038
|
-
response = model[Symbol.iterator]();
|
|
3039
3040
|
model.$$consumed = !0;
|
|
3040
|
-
return
|
|
3041
|
+
return model[Symbol.iterator]();
|
|
3041
3042
|
}
|
|
3042
3043
|
function createModel(response, model, parentObject, key) {
|
|
3043
3044
|
return "then" === key && "function" === typeof model ? null : model;
|
|
@@ -3075,7 +3076,7 @@
|
|
|
3075
3076
|
Error("Already initialized typed array.")
|
|
3076
3077
|
)
|
|
3077
3078
|
);
|
|
3078
|
-
reference = response._formData.get(key).arrayBuffer();
|
|
3079
|
+
reference = response._formData.data.get(key).arrayBuffer();
|
|
3079
3080
|
if (initializingHandler) {
|
|
3080
3081
|
var handler = initializingHandler;
|
|
3081
3082
|
handler.deps++;
|
|
@@ -3119,7 +3120,7 @@
|
|
|
3119
3120
|
var chunks = response._chunks;
|
|
3120
3121
|
stream = new ReactPromise("fulfilled", stream, controller);
|
|
3121
3122
|
chunks.set(id, stream);
|
|
3122
|
-
response = response._formData.getAll(response._prefix + id);
|
|
3123
|
+
response = response._formData.data.getAll(response._prefix + id);
|
|
3123
3124
|
for (id = 0; id < response.length; id++)
|
|
3124
3125
|
(chunks = response[id]),
|
|
3125
3126
|
"string" === typeof chunks &&
|
|
@@ -3339,24 +3340,33 @@
|
|
|
3339
3340
|
getOutlinedModel(response, arrayRoot, obj, key, null, createSet)
|
|
3340
3341
|
);
|
|
3341
3342
|
case "K":
|
|
3342
|
-
|
|
3343
|
-
obj = response._prefix +
|
|
3344
|
-
key =
|
|
3345
|
-
|
|
3346
|
-
|
|
3347
|
-
|
|
3348
|
-
|
|
3343
|
+
key = value.slice(2);
|
|
3344
|
+
obj = response._prefix + "_";
|
|
3345
|
+
key = obj + key + "_";
|
|
3346
|
+
arrayRoot = new FormData();
|
|
3347
|
+
for (response = response._formData; ; ) {
|
|
3348
|
+
value = response;
|
|
3349
|
+
reference = value.keys;
|
|
3350
|
+
null === reference &&
|
|
3351
|
+
((reference = value.keys = Array.from(value.data.keys())),
|
|
3352
|
+
(value.keyPointer = 0));
|
|
3353
|
+
value = reference[value.keyPointer];
|
|
3354
|
+
if (void 0 === value) break;
|
|
3355
|
+
if (value.startsWith(key)) {
|
|
3356
|
+
reference = response.data.getAll(value);
|
|
3349
3357
|
for (
|
|
3350
|
-
var
|
|
3351
|
-
|
|
3352
|
-
|
|
3353
|
-
j < entries.length;
|
|
3354
|
-
j++
|
|
3358
|
+
var referencedFormDataKey = value.slice(key.length), i = 0;
|
|
3359
|
+
i < reference.length;
|
|
3360
|
+
i++
|
|
3355
3361
|
)
|
|
3356
|
-
|
|
3357
|
-
response
|
|
3358
|
-
|
|
3359
|
-
|
|
3362
|
+
arrayRoot.append(referencedFormDataKey, reference[i]);
|
|
3363
|
+
reference = response;
|
|
3364
|
+
reference.data.delete(value);
|
|
3365
|
+
reference.keyPointer++;
|
|
3366
|
+
} else if (value.startsWith(obj)) break;
|
|
3367
|
+
else response.keyPointer++;
|
|
3368
|
+
}
|
|
3369
|
+
return arrayRoot;
|
|
3360
3370
|
case "i":
|
|
3361
3371
|
return (
|
|
3362
3372
|
(arrayRoot = value.slice(2)),
|
|
@@ -3527,7 +3537,7 @@
|
|
|
3527
3537
|
case "B":
|
|
3528
3538
|
return (
|
|
3529
3539
|
(obj = parseInt(value.slice(2), 16)),
|
|
3530
|
-
response._formData.get(response._prefix + obj)
|
|
3540
|
+
response._formData.data.get(response._prefix + obj)
|
|
3531
3541
|
);
|
|
3532
3542
|
}
|
|
3533
3543
|
switch (value[1]) {
|
|
@@ -3568,7 +3578,7 @@
|
|
|
3568
3578
|
return {
|
|
3569
3579
|
_bundlerConfig: bundlerConfig,
|
|
3570
3580
|
_prefix: formFieldPrefix,
|
|
3571
|
-
_formData: backingFormData,
|
|
3581
|
+
_formData: { data: backingFormData, keyPointer: -1, keys: null },
|
|
3572
3582
|
_chunks: chunks,
|
|
3573
3583
|
_temporaryReferences: temporaryReferences,
|
|
3574
3584
|
_rootArrayContexts: new WeakMap(),
|
|
@@ -2368,7 +2368,7 @@ function getChunk(response, id) {
|
|
|
2368
2368
|
var chunks = response._chunks,
|
|
2369
2369
|
chunk = chunks.get(id);
|
|
2370
2370
|
chunk ||
|
|
2371
|
-
((chunk = response._formData.get(response._prefix + id)),
|
|
2371
|
+
((chunk = response._formData.data.get(response._prefix + id)),
|
|
2372
2372
|
(chunk =
|
|
2373
2373
|
"string" === typeof chunk
|
|
2374
2374
|
? createResolvedModelChunk(response, chunk, id)
|
|
@@ -2467,6 +2467,10 @@ function getOutlinedModel(
|
|
|
2467
2467
|
case "fulfilled":
|
|
2468
2468
|
id = chunk.value;
|
|
2469
2469
|
chunk = chunk.reason;
|
|
2470
|
+
if (null !== chunk && "error" in chunk)
|
|
2471
|
+
throw Error(
|
|
2472
|
+
"Expected an initialized chunk but got an initialized stream chunk instead. This payload may have been submitted by an older version of React."
|
|
2473
|
+
);
|
|
2470
2474
|
for (
|
|
2471
2475
|
var localLength = 0,
|
|
2472
2476
|
rootArrayContexts = response._rootArrayContexts,
|
|
@@ -2549,23 +2553,20 @@ function getOutlinedModel(
|
|
|
2549
2553
|
function createMap(response, model) {
|
|
2550
2554
|
if (!isArrayImpl(model)) throw Error("Invalid Map initializer.");
|
|
2551
2555
|
if (!0 === model.$$consumed) throw Error("Already initialized Map.");
|
|
2552
|
-
response = new Map(model);
|
|
2553
2556
|
model.$$consumed = !0;
|
|
2554
|
-
return
|
|
2557
|
+
return new Map(model);
|
|
2555
2558
|
}
|
|
2556
2559
|
function createSet(response, model) {
|
|
2557
2560
|
if (!isArrayImpl(model)) throw Error("Invalid Set initializer.");
|
|
2558
2561
|
if (!0 === model.$$consumed) throw Error("Already initialized Set.");
|
|
2559
|
-
response = new Set(model);
|
|
2560
2562
|
model.$$consumed = !0;
|
|
2561
|
-
return
|
|
2563
|
+
return new Set(model);
|
|
2562
2564
|
}
|
|
2563
2565
|
function extractIterator(response, model) {
|
|
2564
2566
|
if (!isArrayImpl(model)) throw Error("Invalid Iterator initializer.");
|
|
2565
2567
|
if (!0 === model.$$consumed) throw Error("Already initialized Iterator.");
|
|
2566
|
-
response = model[Symbol.iterator]();
|
|
2567
2568
|
model.$$consumed = !0;
|
|
2568
|
-
return
|
|
2569
|
+
return model[Symbol.iterator]();
|
|
2569
2570
|
}
|
|
2570
2571
|
function createModel(response, model, parentObject, key) {
|
|
2571
2572
|
return "then" === key && "function" === typeof model ? null : model;
|
|
@@ -2603,7 +2604,7 @@ function parseTypedArray(
|
|
|
2603
2604
|
Error("Already initialized typed array.")
|
|
2604
2605
|
)
|
|
2605
2606
|
);
|
|
2606
|
-
reference = response._formData.get(key).arrayBuffer();
|
|
2607
|
+
reference = response._formData.data.get(key).arrayBuffer();
|
|
2607
2608
|
if (initializingHandler) {
|
|
2608
2609
|
var handler = initializingHandler;
|
|
2609
2610
|
handler.deps++;
|
|
@@ -2647,7 +2648,7 @@ function resolveStream(response, id, stream, controller) {
|
|
|
2647
2648
|
var chunks = response._chunks;
|
|
2648
2649
|
stream = new ReactPromise("fulfilled", stream, controller);
|
|
2649
2650
|
chunks.set(id, stream);
|
|
2650
|
-
response = response._formData.getAll(response._prefix + id);
|
|
2651
|
+
response = response._formData.data.getAll(response._prefix + id);
|
|
2651
2652
|
for (id = 0; id < response.length; id++)
|
|
2652
2653
|
(chunks = response[id]),
|
|
2653
2654
|
"string" === typeof chunks &&
|
|
@@ -2862,24 +2863,31 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
|
|
|
2862
2863
|
getOutlinedModel(response, arrayRoot, obj, key, null, createSet)
|
|
2863
2864
|
);
|
|
2864
2865
|
case "K":
|
|
2865
|
-
|
|
2866
|
-
obj = response._prefix +
|
|
2867
|
-
key =
|
|
2868
|
-
|
|
2869
|
-
|
|
2870
|
-
|
|
2871
|
-
|
|
2866
|
+
key = value.slice(2);
|
|
2867
|
+
obj = response._prefix + "_";
|
|
2868
|
+
key = obj + key + "_";
|
|
2869
|
+
arrayRoot = new FormData();
|
|
2870
|
+
for (response = response._formData; ; ) {
|
|
2871
|
+
value = response.keys;
|
|
2872
|
+
null === value &&
|
|
2873
|
+
((value = response.keys = Array.from(response.data.keys())),
|
|
2874
|
+
(response.keyPointer = 0));
|
|
2875
|
+
value = value[response.keyPointer];
|
|
2876
|
+
if (void 0 === value) break;
|
|
2877
|
+
if (value.startsWith(key)) {
|
|
2878
|
+
reference = response.data.getAll(value);
|
|
2872
2879
|
for (
|
|
2873
|
-
var
|
|
2874
|
-
|
|
2875
|
-
|
|
2876
|
-
j < entries.length;
|
|
2877
|
-
j++
|
|
2880
|
+
var referencedFormDataKey = value.slice(key.length), i = 0;
|
|
2881
|
+
i < reference.length;
|
|
2882
|
+
i++
|
|
2878
2883
|
)
|
|
2879
|
-
|
|
2880
|
-
response.delete(
|
|
2881
|
-
|
|
2882
|
-
|
|
2884
|
+
arrayRoot.append(referencedFormDataKey, reference[i]);
|
|
2885
|
+
response.data.delete(value);
|
|
2886
|
+
response.keyPointer++;
|
|
2887
|
+
} else if (value.startsWith(obj)) break;
|
|
2888
|
+
else response.keyPointer++;
|
|
2889
|
+
}
|
|
2890
|
+
return arrayRoot;
|
|
2883
2891
|
case "i":
|
|
2884
2892
|
return (
|
|
2885
2893
|
(arrayRoot = value.slice(2)),
|
|
@@ -3040,7 +3048,7 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
|
|
|
3040
3048
|
case "B":
|
|
3041
3049
|
return (
|
|
3042
3050
|
(obj = parseInt(value.slice(2), 16)),
|
|
3043
|
-
response._formData.get(response._prefix + obj)
|
|
3051
|
+
response._formData.data.get(response._prefix + obj)
|
|
3044
3052
|
);
|
|
3045
3053
|
}
|
|
3046
3054
|
switch (value[1]) {
|
|
@@ -3070,7 +3078,7 @@ function createResponse(bundlerConfig, formFieldPrefix, temporaryReferences) {
|
|
|
3070
3078
|
return {
|
|
3071
3079
|
_bundlerConfig: bundlerConfig,
|
|
3072
3080
|
_prefix: formFieldPrefix,
|
|
3073
|
-
_formData: backingFormData,
|
|
3081
|
+
_formData: { data: backingFormData, keyPointer: -1, keys: null },
|
|
3074
3082
|
_chunks: chunks,
|
|
3075
3083
|
_temporaryReferences: temporaryReferences,
|
|
3076
3084
|
_rootArrayContexts: new WeakMap(),
|
|
@@ -2858,7 +2858,7 @@
|
|
|
2858
2858
|
var chunks = response._chunks,
|
|
2859
2859
|
chunk = chunks.get(id);
|
|
2860
2860
|
chunk ||
|
|
2861
|
-
((chunk = response._formData.get(response._prefix + id)),
|
|
2861
|
+
((chunk = response._formData.data.get(response._prefix + id)),
|
|
2862
2862
|
(chunk =
|
|
2863
2863
|
"string" === typeof chunk
|
|
2864
2864
|
? new ReactPromise(
|
|
@@ -2968,6 +2968,10 @@
|
|
|
2968
2968
|
case "fulfilled":
|
|
2969
2969
|
id = chunk.value;
|
|
2970
2970
|
chunk = chunk.reason;
|
|
2971
|
+
if (null !== chunk && "error" in chunk)
|
|
2972
|
+
throw Error(
|
|
2973
|
+
"Expected an initialized chunk but got an initialized stream chunk instead. This payload may have been submitted by an older version of React."
|
|
2974
|
+
);
|
|
2971
2975
|
for (
|
|
2972
2976
|
var localLength = 0,
|
|
2973
2977
|
rootArrayContexts = response._rootArrayContexts,
|
|
@@ -3059,23 +3063,20 @@
|
|
|
3059
3063
|
function createMap(response, model) {
|
|
3060
3064
|
if (!isArrayImpl(model)) throw Error("Invalid Map initializer.");
|
|
3061
3065
|
if (!0 === model.$$consumed) throw Error("Already initialized Map.");
|
|
3062
|
-
response = new Map(model);
|
|
3063
3066
|
model.$$consumed = !0;
|
|
3064
|
-
return
|
|
3067
|
+
return new Map(model);
|
|
3065
3068
|
}
|
|
3066
3069
|
function createSet(response, model) {
|
|
3067
3070
|
if (!isArrayImpl(model)) throw Error("Invalid Set initializer.");
|
|
3068
3071
|
if (!0 === model.$$consumed) throw Error("Already initialized Set.");
|
|
3069
|
-
response = new Set(model);
|
|
3070
3072
|
model.$$consumed = !0;
|
|
3071
|
-
return
|
|
3073
|
+
return new Set(model);
|
|
3072
3074
|
}
|
|
3073
3075
|
function extractIterator(response, model) {
|
|
3074
3076
|
if (!isArrayImpl(model)) throw Error("Invalid Iterator initializer.");
|
|
3075
3077
|
if (!0 === model.$$consumed) throw Error("Already initialized Iterator.");
|
|
3076
|
-
response = model[Symbol.iterator]();
|
|
3077
3078
|
model.$$consumed = !0;
|
|
3078
|
-
return
|
|
3079
|
+
return model[Symbol.iterator]();
|
|
3079
3080
|
}
|
|
3080
3081
|
function createModel(response, model, parentObject, key) {
|
|
3081
3082
|
return "then" === key && "function" === typeof model ? null : model;
|
|
@@ -3113,7 +3114,7 @@
|
|
|
3113
3114
|
Error("Already initialized typed array.")
|
|
3114
3115
|
)
|
|
3115
3116
|
);
|
|
3116
|
-
reference = response._formData.get(key).arrayBuffer();
|
|
3117
|
+
reference = response._formData.data.get(key).arrayBuffer();
|
|
3117
3118
|
if (initializingHandler) {
|
|
3118
3119
|
var handler = initializingHandler;
|
|
3119
3120
|
handler.deps++;
|
|
@@ -3157,7 +3158,7 @@
|
|
|
3157
3158
|
var chunks = response._chunks;
|
|
3158
3159
|
stream = new ReactPromise("fulfilled", stream, controller);
|
|
3159
3160
|
chunks.set(id, stream);
|
|
3160
|
-
response = response._formData.getAll(response._prefix + id);
|
|
3161
|
+
response = response._formData.data.getAll(response._prefix + id);
|
|
3161
3162
|
for (id = 0; id < response.length; id++)
|
|
3162
3163
|
(chunks = response[id]),
|
|
3163
3164
|
"string" === typeof chunks &&
|
|
@@ -3377,24 +3378,33 @@
|
|
|
3377
3378
|
getOutlinedModel(response, arrayRoot, obj, key, null, createSet)
|
|
3378
3379
|
);
|
|
3379
3380
|
case "K":
|
|
3380
|
-
|
|
3381
|
-
obj = response._prefix +
|
|
3382
|
-
key =
|
|
3383
|
-
|
|
3384
|
-
|
|
3385
|
-
|
|
3386
|
-
|
|
3381
|
+
key = value.slice(2);
|
|
3382
|
+
obj = response._prefix + "_";
|
|
3383
|
+
key = obj + key + "_";
|
|
3384
|
+
arrayRoot = new FormData();
|
|
3385
|
+
for (response = response._formData; ; ) {
|
|
3386
|
+
value = response;
|
|
3387
|
+
reference = value.keys;
|
|
3388
|
+
null === reference &&
|
|
3389
|
+
((reference = value.keys = Array.from(value.data.keys())),
|
|
3390
|
+
(value.keyPointer = 0));
|
|
3391
|
+
value = reference[value.keyPointer];
|
|
3392
|
+
if (void 0 === value) break;
|
|
3393
|
+
if (value.startsWith(key)) {
|
|
3394
|
+
reference = response.data.getAll(value);
|
|
3387
3395
|
for (
|
|
3388
|
-
var
|
|
3389
|
-
|
|
3390
|
-
|
|
3391
|
-
j < entries.length;
|
|
3392
|
-
j++
|
|
3396
|
+
var referencedFormDataKey = value.slice(key.length), i = 0;
|
|
3397
|
+
i < reference.length;
|
|
3398
|
+
i++
|
|
3393
3399
|
)
|
|
3394
|
-
|
|
3395
|
-
response
|
|
3396
|
-
|
|
3397
|
-
|
|
3400
|
+
arrayRoot.append(referencedFormDataKey, reference[i]);
|
|
3401
|
+
reference = response;
|
|
3402
|
+
reference.data.delete(value);
|
|
3403
|
+
reference.keyPointer++;
|
|
3404
|
+
} else if (value.startsWith(obj)) break;
|
|
3405
|
+
else response.keyPointer++;
|
|
3406
|
+
}
|
|
3407
|
+
return arrayRoot;
|
|
3398
3408
|
case "i":
|
|
3399
3409
|
return (
|
|
3400
3410
|
(arrayRoot = value.slice(2)),
|
|
@@ -3565,7 +3575,7 @@
|
|
|
3565
3575
|
case "B":
|
|
3566
3576
|
return (
|
|
3567
3577
|
(obj = parseInt(value.slice(2), 16)),
|
|
3568
|
-
response._formData.get(response._prefix + obj)
|
|
3578
|
+
response._formData.data.get(response._prefix + obj)
|
|
3569
3579
|
);
|
|
3570
3580
|
}
|
|
3571
3581
|
switch (value[1]) {
|
|
@@ -3606,7 +3616,7 @@
|
|
|
3606
3616
|
return {
|
|
3607
3617
|
_bundlerConfig: bundlerConfig,
|
|
3608
3618
|
_prefix: formFieldPrefix,
|
|
3609
|
-
_formData: backingFormData,
|
|
3619
|
+
_formData: { data: backingFormData, keyPointer: -1, keys: null },
|
|
3610
3620
|
_chunks: chunks,
|
|
3611
3621
|
_temporaryReferences: temporaryReferences,
|
|
3612
3622
|
_rootArrayContexts: new WeakMap(),
|
|
@@ -2379,7 +2379,7 @@ function getChunk(response, id) {
|
|
|
2379
2379
|
var chunks = response._chunks,
|
|
2380
2380
|
chunk = chunks.get(id);
|
|
2381
2381
|
chunk ||
|
|
2382
|
-
((chunk = response._formData.get(response._prefix + id)),
|
|
2382
|
+
((chunk = response._formData.data.get(response._prefix + id)),
|
|
2383
2383
|
(chunk =
|
|
2384
2384
|
"string" === typeof chunk
|
|
2385
2385
|
? createResolvedModelChunk(response, chunk, id)
|
|
@@ -2478,6 +2478,10 @@ function getOutlinedModel(
|
|
|
2478
2478
|
case "fulfilled":
|
|
2479
2479
|
id = chunk.value;
|
|
2480
2480
|
chunk = chunk.reason;
|
|
2481
|
+
if (null !== chunk && "error" in chunk)
|
|
2482
|
+
throw Error(
|
|
2483
|
+
"Expected an initialized chunk but got an initialized stream chunk instead. This payload may have been submitted by an older version of React."
|
|
2484
|
+
);
|
|
2481
2485
|
for (
|
|
2482
2486
|
var localLength = 0,
|
|
2483
2487
|
rootArrayContexts = response._rootArrayContexts,
|
|
@@ -2560,23 +2564,20 @@ function getOutlinedModel(
|
|
|
2560
2564
|
function createMap(response, model) {
|
|
2561
2565
|
if (!isArrayImpl(model)) throw Error("Invalid Map initializer.");
|
|
2562
2566
|
if (!0 === model.$$consumed) throw Error("Already initialized Map.");
|
|
2563
|
-
response = new Map(model);
|
|
2564
2567
|
model.$$consumed = !0;
|
|
2565
|
-
return
|
|
2568
|
+
return new Map(model);
|
|
2566
2569
|
}
|
|
2567
2570
|
function createSet(response, model) {
|
|
2568
2571
|
if (!isArrayImpl(model)) throw Error("Invalid Set initializer.");
|
|
2569
2572
|
if (!0 === model.$$consumed) throw Error("Already initialized Set.");
|
|
2570
|
-
response = new Set(model);
|
|
2571
2573
|
model.$$consumed = !0;
|
|
2572
|
-
return
|
|
2574
|
+
return new Set(model);
|
|
2573
2575
|
}
|
|
2574
2576
|
function extractIterator(response, model) {
|
|
2575
2577
|
if (!isArrayImpl(model)) throw Error("Invalid Iterator initializer.");
|
|
2576
2578
|
if (!0 === model.$$consumed) throw Error("Already initialized Iterator.");
|
|
2577
|
-
response = model[Symbol.iterator]();
|
|
2578
2579
|
model.$$consumed = !0;
|
|
2579
|
-
return
|
|
2580
|
+
return model[Symbol.iterator]();
|
|
2580
2581
|
}
|
|
2581
2582
|
function createModel(response, model, parentObject, key) {
|
|
2582
2583
|
return "then" === key && "function" === typeof model ? null : model;
|
|
@@ -2614,7 +2615,7 @@ function parseTypedArray(
|
|
|
2614
2615
|
Error("Already initialized typed array.")
|
|
2615
2616
|
)
|
|
2616
2617
|
);
|
|
2617
|
-
reference = response._formData.get(key).arrayBuffer();
|
|
2618
|
+
reference = response._formData.data.get(key).arrayBuffer();
|
|
2618
2619
|
if (initializingHandler) {
|
|
2619
2620
|
var handler = initializingHandler;
|
|
2620
2621
|
handler.deps++;
|
|
@@ -2658,7 +2659,7 @@ function resolveStream(response, id, stream, controller) {
|
|
|
2658
2659
|
var chunks = response._chunks;
|
|
2659
2660
|
stream = new ReactPromise("fulfilled", stream, controller);
|
|
2660
2661
|
chunks.set(id, stream);
|
|
2661
|
-
response = response._formData.getAll(response._prefix + id);
|
|
2662
|
+
response = response._formData.data.getAll(response._prefix + id);
|
|
2662
2663
|
for (id = 0; id < response.length; id++)
|
|
2663
2664
|
(chunks = response[id]),
|
|
2664
2665
|
"string" === typeof chunks &&
|
|
@@ -2873,24 +2874,31 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
|
|
|
2873
2874
|
getOutlinedModel(response, arrayRoot, obj, key, null, createSet)
|
|
2874
2875
|
);
|
|
2875
2876
|
case "K":
|
|
2876
|
-
|
|
2877
|
-
obj = response._prefix +
|
|
2878
|
-
key =
|
|
2879
|
-
|
|
2880
|
-
|
|
2881
|
-
|
|
2882
|
-
|
|
2877
|
+
key = value.slice(2);
|
|
2878
|
+
obj = response._prefix + "_";
|
|
2879
|
+
key = obj + key + "_";
|
|
2880
|
+
arrayRoot = new FormData();
|
|
2881
|
+
for (response = response._formData; ; ) {
|
|
2882
|
+
value = response.keys;
|
|
2883
|
+
null === value &&
|
|
2884
|
+
((value = response.keys = Array.from(response.data.keys())),
|
|
2885
|
+
(response.keyPointer = 0));
|
|
2886
|
+
value = value[response.keyPointer];
|
|
2887
|
+
if (void 0 === value) break;
|
|
2888
|
+
if (value.startsWith(key)) {
|
|
2889
|
+
reference = response.data.getAll(value);
|
|
2883
2890
|
for (
|
|
2884
|
-
var
|
|
2885
|
-
|
|
2886
|
-
|
|
2887
|
-
j < entries.length;
|
|
2888
|
-
j++
|
|
2891
|
+
var referencedFormDataKey = value.slice(key.length), i = 0;
|
|
2892
|
+
i < reference.length;
|
|
2893
|
+
i++
|
|
2889
2894
|
)
|
|
2890
|
-
|
|
2891
|
-
response.delete(
|
|
2892
|
-
|
|
2893
|
-
|
|
2895
|
+
arrayRoot.append(referencedFormDataKey, reference[i]);
|
|
2896
|
+
response.data.delete(value);
|
|
2897
|
+
response.keyPointer++;
|
|
2898
|
+
} else if (value.startsWith(obj)) break;
|
|
2899
|
+
else response.keyPointer++;
|
|
2900
|
+
}
|
|
2901
|
+
return arrayRoot;
|
|
2894
2902
|
case "i":
|
|
2895
2903
|
return (
|
|
2896
2904
|
(arrayRoot = value.slice(2)),
|
|
@@ -3051,7 +3059,7 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
|
|
|
3051
3059
|
case "B":
|
|
3052
3060
|
return (
|
|
3053
3061
|
(obj = parseInt(value.slice(2), 16)),
|
|
3054
|
-
response._formData.get(response._prefix + obj)
|
|
3062
|
+
response._formData.data.get(response._prefix + obj)
|
|
3055
3063
|
);
|
|
3056
3064
|
}
|
|
3057
3065
|
switch (value[1]) {
|
|
@@ -3081,7 +3089,7 @@ function createResponse(bundlerConfig, formFieldPrefix, temporaryReferences) {
|
|
|
3081
3089
|
return {
|
|
3082
3090
|
_bundlerConfig: bundlerConfig,
|
|
3083
3091
|
_prefix: formFieldPrefix,
|
|
3084
|
-
_formData: backingFormData,
|
|
3092
|
+
_formData: { data: backingFormData, keyPointer: -1, keys: null },
|
|
3085
3093
|
_chunks: chunks,
|
|
3086
3094
|
_temporaryReferences: temporaryReferences,
|
|
3087
3095
|
_rootArrayContexts: new WeakMap(),
|
|
@@ -2869,7 +2869,7 @@
|
|
|
2869
2869
|
var chunks = response._chunks,
|
|
2870
2870
|
chunk = chunks.get(id);
|
|
2871
2871
|
chunk ||
|
|
2872
|
-
((chunk = response._formData.get(response._prefix + id)),
|
|
2872
|
+
((chunk = response._formData.data.get(response._prefix + id)),
|
|
2873
2873
|
(chunk =
|
|
2874
2874
|
"string" === typeof chunk
|
|
2875
2875
|
? new ReactPromise(
|
|
@@ -2979,6 +2979,10 @@
|
|
|
2979
2979
|
case "fulfilled":
|
|
2980
2980
|
id = chunk.value;
|
|
2981
2981
|
chunk = chunk.reason;
|
|
2982
|
+
if (null !== chunk && "error" in chunk)
|
|
2983
|
+
throw Error(
|
|
2984
|
+
"Expected an initialized chunk but got an initialized stream chunk instead. This payload may have been submitted by an older version of React."
|
|
2985
|
+
);
|
|
2982
2986
|
for (
|
|
2983
2987
|
var localLength = 0,
|
|
2984
2988
|
rootArrayContexts = response._rootArrayContexts,
|
|
@@ -3070,23 +3074,20 @@
|
|
|
3070
3074
|
function createMap(response, model) {
|
|
3071
3075
|
if (!isArrayImpl(model)) throw Error("Invalid Map initializer.");
|
|
3072
3076
|
if (!0 === model.$$consumed) throw Error("Already initialized Map.");
|
|
3073
|
-
response = new Map(model);
|
|
3074
3077
|
model.$$consumed = !0;
|
|
3075
|
-
return
|
|
3078
|
+
return new Map(model);
|
|
3076
3079
|
}
|
|
3077
3080
|
function createSet(response, model) {
|
|
3078
3081
|
if (!isArrayImpl(model)) throw Error("Invalid Set initializer.");
|
|
3079
3082
|
if (!0 === model.$$consumed) throw Error("Already initialized Set.");
|
|
3080
|
-
response = new Set(model);
|
|
3081
3083
|
model.$$consumed = !0;
|
|
3082
|
-
return
|
|
3084
|
+
return new Set(model);
|
|
3083
3085
|
}
|
|
3084
3086
|
function extractIterator(response, model) {
|
|
3085
3087
|
if (!isArrayImpl(model)) throw Error("Invalid Iterator initializer.");
|
|
3086
3088
|
if (!0 === model.$$consumed) throw Error("Already initialized Iterator.");
|
|
3087
|
-
response = model[Symbol.iterator]();
|
|
3088
3089
|
model.$$consumed = !0;
|
|
3089
|
-
return
|
|
3090
|
+
return model[Symbol.iterator]();
|
|
3090
3091
|
}
|
|
3091
3092
|
function createModel(response, model, parentObject, key) {
|
|
3092
3093
|
return "then" === key && "function" === typeof model ? null : model;
|
|
@@ -3124,7 +3125,7 @@
|
|
|
3124
3125
|
Error("Already initialized typed array.")
|
|
3125
3126
|
)
|
|
3126
3127
|
);
|
|
3127
|
-
reference = response._formData.get(key).arrayBuffer();
|
|
3128
|
+
reference = response._formData.data.get(key).arrayBuffer();
|
|
3128
3129
|
if (initializingHandler) {
|
|
3129
3130
|
var handler = initializingHandler;
|
|
3130
3131
|
handler.deps++;
|
|
@@ -3168,7 +3169,7 @@
|
|
|
3168
3169
|
var chunks = response._chunks;
|
|
3169
3170
|
stream = new ReactPromise("fulfilled", stream, controller);
|
|
3170
3171
|
chunks.set(id, stream);
|
|
3171
|
-
response = response._formData.getAll(response._prefix + id);
|
|
3172
|
+
response = response._formData.data.getAll(response._prefix + id);
|
|
3172
3173
|
for (id = 0; id < response.length; id++)
|
|
3173
3174
|
(chunks = response[id]),
|
|
3174
3175
|
"string" === typeof chunks &&
|
|
@@ -3388,24 +3389,33 @@
|
|
|
3388
3389
|
getOutlinedModel(response, arrayRoot, obj, key, null, createSet)
|
|
3389
3390
|
);
|
|
3390
3391
|
case "K":
|
|
3391
|
-
|
|
3392
|
-
obj = response._prefix +
|
|
3393
|
-
key =
|
|
3394
|
-
|
|
3395
|
-
|
|
3396
|
-
|
|
3397
|
-
|
|
3392
|
+
key = value.slice(2);
|
|
3393
|
+
obj = response._prefix + "_";
|
|
3394
|
+
key = obj + key + "_";
|
|
3395
|
+
arrayRoot = new FormData();
|
|
3396
|
+
for (response = response._formData; ; ) {
|
|
3397
|
+
value = response;
|
|
3398
|
+
reference = value.keys;
|
|
3399
|
+
null === reference &&
|
|
3400
|
+
((reference = value.keys = Array.from(value.data.keys())),
|
|
3401
|
+
(value.keyPointer = 0));
|
|
3402
|
+
value = reference[value.keyPointer];
|
|
3403
|
+
if (void 0 === value) break;
|
|
3404
|
+
if (value.startsWith(key)) {
|
|
3405
|
+
reference = response.data.getAll(value);
|
|
3398
3406
|
for (
|
|
3399
|
-
var
|
|
3400
|
-
|
|
3401
|
-
|
|
3402
|
-
j < entries.length;
|
|
3403
|
-
j++
|
|
3407
|
+
var referencedFormDataKey = value.slice(key.length), i = 0;
|
|
3408
|
+
i < reference.length;
|
|
3409
|
+
i++
|
|
3404
3410
|
)
|
|
3405
|
-
|
|
3406
|
-
response
|
|
3407
|
-
|
|
3408
|
-
|
|
3411
|
+
arrayRoot.append(referencedFormDataKey, reference[i]);
|
|
3412
|
+
reference = response;
|
|
3413
|
+
reference.data.delete(value);
|
|
3414
|
+
reference.keyPointer++;
|
|
3415
|
+
} else if (value.startsWith(obj)) break;
|
|
3416
|
+
else response.keyPointer++;
|
|
3417
|
+
}
|
|
3418
|
+
return arrayRoot;
|
|
3409
3419
|
case "i":
|
|
3410
3420
|
return (
|
|
3411
3421
|
(arrayRoot = value.slice(2)),
|
|
@@ -3576,7 +3586,7 @@
|
|
|
3576
3586
|
case "B":
|
|
3577
3587
|
return (
|
|
3578
3588
|
(obj = parseInt(value.slice(2), 16)),
|
|
3579
|
-
response._formData.get(response._prefix + obj)
|
|
3589
|
+
response._formData.data.get(response._prefix + obj)
|
|
3580
3590
|
);
|
|
3581
3591
|
}
|
|
3582
3592
|
switch (value[1]) {
|
|
@@ -3617,7 +3627,7 @@
|
|
|
3617
3627
|
return {
|
|
3618
3628
|
_bundlerConfig: bundlerConfig,
|
|
3619
3629
|
_prefix: formFieldPrefix,
|
|
3620
|
-
_formData: backingFormData,
|
|
3630
|
+
_formData: { data: backingFormData, keyPointer: -1, keys: null },
|
|
3621
3631
|
_chunks: chunks,
|
|
3622
3632
|
_temporaryReferences: temporaryReferences,
|
|
3623
3633
|
_rootArrayContexts: new WeakMap(),
|
|
@@ -3625,14 +3635,19 @@
|
|
|
3625
3635
|
};
|
|
3626
3636
|
}
|
|
3627
3637
|
function resolveField(response, key, value) {
|
|
3628
|
-
response._formData
|
|
3629
|
-
|
|
3630
|
-
|
|
3631
|
-
|
|
3632
|
-
|
|
3633
|
-
|
|
3634
|
-
|
|
3635
|
-
|
|
3638
|
+
var backingStore = response._formData;
|
|
3639
|
+
backingStore.data.append(key, value);
|
|
3640
|
+
var keys = backingStore.keys;
|
|
3641
|
+
null === keys
|
|
3642
|
+
? ((backingStore.keys = Array.from(backingStore.data.keys())),
|
|
3643
|
+
(backingStore.keyPointer = 0))
|
|
3644
|
+
: keys.push(key);
|
|
3645
|
+
keys = response._prefix;
|
|
3646
|
+
key.startsWith(keys) &&
|
|
3647
|
+
((backingStore = response._chunks),
|
|
3648
|
+
(key = +key.slice(keys.length)),
|
|
3649
|
+
(backingStore = backingStore.get(key)) &&
|
|
3650
|
+
resolveModelChunk(response, backingStore, value, key));
|
|
3636
3651
|
}
|
|
3637
3652
|
function close(response) {
|
|
3638
3653
|
reportGlobalError(response, Error("Connection closed."));
|
|
@@ -4281,16 +4296,22 @@
|
|
|
4281
4296
|
);
|
|
4282
4297
|
else {
|
|
4283
4298
|
pendingFiles++;
|
|
4284
|
-
var
|
|
4299
|
+
var JSCompiler_object_inline_chunks_162 = [];
|
|
4285
4300
|
value.on("data", function (chunk) {
|
|
4286
|
-
|
|
4301
|
+
JSCompiler_object_inline_chunks_162.push(chunk);
|
|
4287
4302
|
});
|
|
4288
4303
|
value.on("end", function () {
|
|
4289
4304
|
try {
|
|
4290
|
-
var blob = new Blob(
|
|
4291
|
-
|
|
4292
|
-
|
|
4293
|
-
|
|
4305
|
+
var blob = new Blob(JSCompiler_object_inline_chunks_162, {
|
|
4306
|
+
type: mimeType
|
|
4307
|
+
}),
|
|
4308
|
+
backingStore = response._formData;
|
|
4309
|
+
backingStore.data.append(name, blob, filename);
|
|
4310
|
+
var keys = backingStore.keys;
|
|
4311
|
+
null === keys
|
|
4312
|
+
? ((backingStore.keys = Array.from(backingStore.data.keys())),
|
|
4313
|
+
(backingStore.keyPointer = 0))
|
|
4314
|
+
: keys.push(name);
|
|
4294
4315
|
pendingFiles--;
|
|
4295
4316
|
if (0 === pendingFiles) {
|
|
4296
4317
|
for (blob = 0; blob < queuedFields.length; blob += 2)
|
|
@@ -2415,7 +2415,7 @@ function getChunk(response, id) {
|
|
|
2415
2415
|
var chunks = response._chunks,
|
|
2416
2416
|
chunk = chunks.get(id);
|
|
2417
2417
|
chunk ||
|
|
2418
|
-
((chunk = response._formData.get(response._prefix + id)),
|
|
2418
|
+
((chunk = response._formData.data.get(response._prefix + id)),
|
|
2419
2419
|
(chunk =
|
|
2420
2420
|
"string" === typeof chunk
|
|
2421
2421
|
? createResolvedModelChunk(response, chunk, id)
|
|
@@ -2514,6 +2514,10 @@ function getOutlinedModel(
|
|
|
2514
2514
|
case "fulfilled":
|
|
2515
2515
|
id = chunk.value;
|
|
2516
2516
|
chunk = chunk.reason;
|
|
2517
|
+
if (null !== chunk && "error" in chunk)
|
|
2518
|
+
throw Error(
|
|
2519
|
+
"Expected an initialized chunk but got an initialized stream chunk instead. This payload may have been submitted by an older version of React."
|
|
2520
|
+
);
|
|
2517
2521
|
for (
|
|
2518
2522
|
var localLength = 0,
|
|
2519
2523
|
rootArrayContexts = response._rootArrayContexts,
|
|
@@ -2596,23 +2600,20 @@ function getOutlinedModel(
|
|
|
2596
2600
|
function createMap(response, model) {
|
|
2597
2601
|
if (!isArrayImpl(model)) throw Error("Invalid Map initializer.");
|
|
2598
2602
|
if (!0 === model.$$consumed) throw Error("Already initialized Map.");
|
|
2599
|
-
response = new Map(model);
|
|
2600
2603
|
model.$$consumed = !0;
|
|
2601
|
-
return
|
|
2604
|
+
return new Map(model);
|
|
2602
2605
|
}
|
|
2603
2606
|
function createSet(response, model) {
|
|
2604
2607
|
if (!isArrayImpl(model)) throw Error("Invalid Set initializer.");
|
|
2605
2608
|
if (!0 === model.$$consumed) throw Error("Already initialized Set.");
|
|
2606
|
-
response = new Set(model);
|
|
2607
2609
|
model.$$consumed = !0;
|
|
2608
|
-
return
|
|
2610
|
+
return new Set(model);
|
|
2609
2611
|
}
|
|
2610
2612
|
function extractIterator(response, model) {
|
|
2611
2613
|
if (!isArrayImpl(model)) throw Error("Invalid Iterator initializer.");
|
|
2612
2614
|
if (!0 === model.$$consumed) throw Error("Already initialized Iterator.");
|
|
2613
|
-
response = model[Symbol.iterator]();
|
|
2614
2615
|
model.$$consumed = !0;
|
|
2615
|
-
return
|
|
2616
|
+
return model[Symbol.iterator]();
|
|
2616
2617
|
}
|
|
2617
2618
|
function createModel(response, model, parentObject, key) {
|
|
2618
2619
|
return "then" === key && "function" === typeof model ? null : model;
|
|
@@ -2650,7 +2651,7 @@ function parseTypedArray(
|
|
|
2650
2651
|
Error("Already initialized typed array.")
|
|
2651
2652
|
)
|
|
2652
2653
|
);
|
|
2653
|
-
reference = response._formData.get(key).arrayBuffer();
|
|
2654
|
+
reference = response._formData.data.get(key).arrayBuffer();
|
|
2654
2655
|
if (initializingHandler) {
|
|
2655
2656
|
var handler = initializingHandler;
|
|
2656
2657
|
handler.deps++;
|
|
@@ -2694,7 +2695,7 @@ function resolveStream(response, id, stream, controller) {
|
|
|
2694
2695
|
var chunks = response._chunks;
|
|
2695
2696
|
stream = new ReactPromise("fulfilled", stream, controller);
|
|
2696
2697
|
chunks.set(id, stream);
|
|
2697
|
-
response = response._formData.getAll(response._prefix + id);
|
|
2698
|
+
response = response._formData.data.getAll(response._prefix + id);
|
|
2698
2699
|
for (id = 0; id < response.length; id++)
|
|
2699
2700
|
(chunks = response[id]),
|
|
2700
2701
|
"string" === typeof chunks &&
|
|
@@ -2909,24 +2910,31 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
|
|
|
2909
2910
|
getOutlinedModel(response, arrayRoot, obj, key, null, createSet)
|
|
2910
2911
|
);
|
|
2911
2912
|
case "K":
|
|
2912
|
-
|
|
2913
|
-
obj = response._prefix +
|
|
2914
|
-
key =
|
|
2915
|
-
|
|
2916
|
-
|
|
2917
|
-
|
|
2918
|
-
|
|
2913
|
+
key = value.slice(2);
|
|
2914
|
+
obj = response._prefix + "_";
|
|
2915
|
+
key = obj + key + "_";
|
|
2916
|
+
arrayRoot = new FormData();
|
|
2917
|
+
for (response = response._formData; ; ) {
|
|
2918
|
+
value = response.keys;
|
|
2919
|
+
null === value &&
|
|
2920
|
+
((value = response.keys = Array.from(response.data.keys())),
|
|
2921
|
+
(response.keyPointer = 0));
|
|
2922
|
+
value = value[response.keyPointer];
|
|
2923
|
+
if (void 0 === value) break;
|
|
2924
|
+
if (value.startsWith(key)) {
|
|
2925
|
+
reference = response.data.getAll(value);
|
|
2919
2926
|
for (
|
|
2920
|
-
var
|
|
2921
|
-
|
|
2922
|
-
|
|
2923
|
-
j < entries.length;
|
|
2924
|
-
j++
|
|
2927
|
+
var referencedFormDataKey = value.slice(key.length), i = 0;
|
|
2928
|
+
i < reference.length;
|
|
2929
|
+
i++
|
|
2925
2930
|
)
|
|
2926
|
-
|
|
2927
|
-
response.delete(
|
|
2928
|
-
|
|
2929
|
-
|
|
2931
|
+
arrayRoot.append(referencedFormDataKey, reference[i]);
|
|
2932
|
+
response.data.delete(value);
|
|
2933
|
+
response.keyPointer++;
|
|
2934
|
+
} else if (value.startsWith(obj)) break;
|
|
2935
|
+
else response.keyPointer++;
|
|
2936
|
+
}
|
|
2937
|
+
return arrayRoot;
|
|
2930
2938
|
case "i":
|
|
2931
2939
|
return (
|
|
2932
2940
|
(arrayRoot = value.slice(2)),
|
|
@@ -3087,7 +3095,7 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
|
|
|
3087
3095
|
case "B":
|
|
3088
3096
|
return (
|
|
3089
3097
|
(obj = parseInt(value.slice(2), 16)),
|
|
3090
|
-
response._formData.get(response._prefix + obj)
|
|
3098
|
+
response._formData.data.get(response._prefix + obj)
|
|
3091
3099
|
);
|
|
3092
3100
|
}
|
|
3093
3101
|
switch (value[1]) {
|
|
@@ -3117,7 +3125,7 @@ function createResponse(bundlerConfig, formFieldPrefix, temporaryReferences) {
|
|
|
3117
3125
|
return {
|
|
3118
3126
|
_bundlerConfig: bundlerConfig,
|
|
3119
3127
|
_prefix: formFieldPrefix,
|
|
3120
|
-
_formData: backingFormData,
|
|
3128
|
+
_formData: { data: backingFormData, keyPointer: -1, keys: null },
|
|
3121
3129
|
_chunks: chunks,
|
|
3122
3130
|
_temporaryReferences: temporaryReferences,
|
|
3123
3131
|
_rootArrayContexts: new WeakMap(),
|
|
@@ -3125,14 +3133,19 @@ function createResponse(bundlerConfig, formFieldPrefix, temporaryReferences) {
|
|
|
3125
3133
|
};
|
|
3126
3134
|
}
|
|
3127
3135
|
function resolveField(response, key, value) {
|
|
3128
|
-
response._formData
|
|
3129
|
-
|
|
3130
|
-
|
|
3131
|
-
|
|
3132
|
-
|
|
3133
|
-
|
|
3134
|
-
|
|
3135
|
-
|
|
3136
|
+
var backingStore = response._formData;
|
|
3137
|
+
backingStore.data.append(key, value);
|
|
3138
|
+
var keys = backingStore.keys;
|
|
3139
|
+
null === keys
|
|
3140
|
+
? ((backingStore.keys = Array.from(backingStore.data.keys())),
|
|
3141
|
+
(backingStore.keyPointer = 0))
|
|
3142
|
+
: keys.push(key);
|
|
3143
|
+
keys = response._prefix;
|
|
3144
|
+
key.startsWith(keys) &&
|
|
3145
|
+
((backingStore = response._chunks),
|
|
3146
|
+
(key = +key.slice(keys.length)),
|
|
3147
|
+
(backingStore = backingStore.get(key)) &&
|
|
3148
|
+
resolveModelChunk(response, backingStore, value, key));
|
|
3136
3149
|
}
|
|
3137
3150
|
function close(response) {
|
|
3138
3151
|
reportGlobalError(response, Error("Connection closed."));
|
|
@@ -3290,16 +3303,22 @@ exports.decodeReplyFromBusboy = function (busboyStream, turbopackMap, options) {
|
|
|
3290
3303
|
);
|
|
3291
3304
|
else {
|
|
3292
3305
|
pendingFiles++;
|
|
3293
|
-
var
|
|
3306
|
+
var JSCompiler_object_inline_chunks_243 = [];
|
|
3294
3307
|
value.on("data", function (chunk) {
|
|
3295
|
-
|
|
3308
|
+
JSCompiler_object_inline_chunks_243.push(chunk);
|
|
3296
3309
|
});
|
|
3297
3310
|
value.on("end", function () {
|
|
3298
3311
|
try {
|
|
3299
|
-
var blob = new Blob(
|
|
3300
|
-
|
|
3301
|
-
|
|
3302
|
-
|
|
3312
|
+
var blob = new Blob(JSCompiler_object_inline_chunks_243, {
|
|
3313
|
+
type: mimeType
|
|
3314
|
+
}),
|
|
3315
|
+
backingStore = response._formData;
|
|
3316
|
+
backingStore.data.append(name, blob, filename);
|
|
3317
|
+
var keys = backingStore.keys;
|
|
3318
|
+
null === keys
|
|
3319
|
+
? ((backingStore.keys = Array.from(backingStore.data.keys())),
|
|
3320
|
+
(backingStore.keyPointer = 0))
|
|
3321
|
+
: keys.push(name);
|
|
3303
3322
|
pendingFiles--;
|
|
3304
3323
|
if (0 === pendingFiles) {
|
|
3305
3324
|
for (blob = 0; blob < queuedFields.length; blob += 2)
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-server-dom-turbopack",
|
|
3
3
|
"description": "React Server Components bindings for DOM using Turbopack. This is intended to be integrated into meta-frameworks. It is not intended to be imported directly.",
|
|
4
|
-
"version": "19.0.
|
|
4
|
+
"version": "19.0.6",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react"
|
|
7
7
|
],
|
|
@@ -78,8 +78,8 @@
|
|
|
78
78
|
"node": ">=0.10.0"
|
|
79
79
|
},
|
|
80
80
|
"peerDependencies": {
|
|
81
|
-
"react": "^19.0.
|
|
82
|
-
"react-dom": "^19.0.
|
|
81
|
+
"react": "^19.0.6",
|
|
82
|
+
"react-dom": "^19.0.6"
|
|
83
83
|
},
|
|
84
84
|
"dependencies": {
|
|
85
85
|
"acorn-loose": "^8.3.0",
|