react-server-dom-turbopack 19.1.5 → 19.1.7
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 +47 -29
- package/cjs/react-server-dom-turbopack-server.edge.production.js +45 -29
- 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
|
@@ -558,7 +558,7 @@
|
|
|
558
558
|
null === formData && (formData = new FormData());
|
|
559
559
|
var _data3 = formData;
|
|
560
560
|
key = nextPartId++;
|
|
561
|
-
var prefix = formFieldPrefix + key + "_";
|
|
561
|
+
var prefix = formFieldPrefix + "_" + key + "_";
|
|
562
562
|
value.forEach(function (originalValue, originalKey) {
|
|
563
563
|
_data3.append(prefix + originalKey, originalValue);
|
|
564
564
|
});
|
|
@@ -2730,10 +2730,10 @@
|
|
|
2730
2730
|
return hook.checkDCE ? !0 : !1;
|
|
2731
2731
|
})({
|
|
2732
2732
|
bundleType: 1,
|
|
2733
|
-
version: "19.1.
|
|
2733
|
+
version: "19.1.7",
|
|
2734
2734
|
rendererPackageName: "react-server-dom-turbopack",
|
|
2735
2735
|
currentDispatcherRef: ReactSharedInternals,
|
|
2736
|
-
reconcilerVersion: "19.1.
|
|
2736
|
+
reconcilerVersion: "19.1.7",
|
|
2737
2737
|
getCurrentComponentInfo: function () {
|
|
2738
2738
|
return currentOwnerInDEV;
|
|
2739
2739
|
}
|
|
@@ -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
|
});
|
|
@@ -583,7 +583,7 @@
|
|
|
583
583
|
null === formData && (formData = new FormData());
|
|
584
584
|
var _data3 = formData;
|
|
585
585
|
key = nextPartId++;
|
|
586
|
-
var prefix = formFieldPrefix + key + "_";
|
|
586
|
+
var prefix = formFieldPrefix + "_" + key + "_";
|
|
587
587
|
value.forEach(function (originalValue, originalKey) {
|
|
588
588
|
_data3.append(prefix + originalKey, originalValue);
|
|
589
589
|
});
|
|
@@ -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
|
});
|
|
@@ -583,7 +583,7 @@
|
|
|
583
583
|
null === formData && (formData = new FormData());
|
|
584
584
|
var _data3 = formData;
|
|
585
585
|
key = nextPartId++;
|
|
586
|
-
var prefix = formFieldPrefix + key + "_";
|
|
586
|
+
var prefix = formFieldPrefix + "_" + key + "_";
|
|
587
587
|
value.forEach(function (originalValue, originalKey) {
|
|
588
588
|
_data3.append(prefix + originalKey, originalValue);
|
|
589
589
|
});
|
|
@@ -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
|
});
|
|
@@ -3064,7 +3064,7 @@
|
|
|
3064
3064
|
var chunks = response._chunks,
|
|
3065
3065
|
chunk = chunks.get(id);
|
|
3066
3066
|
chunk ||
|
|
3067
|
-
((chunk = response._formData.get(response._prefix + id)),
|
|
3067
|
+
((chunk = response._formData.data.get(response._prefix + id)),
|
|
3068
3068
|
(chunk =
|
|
3069
3069
|
"string" === typeof chunk
|
|
3070
3070
|
? new ReactPromise(
|
|
@@ -3176,6 +3176,10 @@
|
|
|
3176
3176
|
case "fulfilled":
|
|
3177
3177
|
id = chunk.value;
|
|
3178
3178
|
chunk = chunk.reason;
|
|
3179
|
+
if (null !== chunk && "error" in chunk)
|
|
3180
|
+
throw Error(
|
|
3181
|
+
"Expected an initialized chunk but got an initialized stream chunk instead. This payload may have been submitted by an older version of React."
|
|
3182
|
+
);
|
|
3179
3183
|
for (
|
|
3180
3184
|
var localLength = 0,
|
|
3181
3185
|
rootArrayContexts = response._rootArrayContexts,
|
|
@@ -3267,23 +3271,20 @@
|
|
|
3267
3271
|
function createMap(response, model) {
|
|
3268
3272
|
if (!isArrayImpl(model)) throw Error("Invalid Map initializer.");
|
|
3269
3273
|
if (!0 === model.$$consumed) throw Error("Already initialized Map.");
|
|
3270
|
-
response = new Map(model);
|
|
3271
3274
|
model.$$consumed = !0;
|
|
3272
|
-
return
|
|
3275
|
+
return new Map(model);
|
|
3273
3276
|
}
|
|
3274
3277
|
function createSet(response, model) {
|
|
3275
3278
|
if (!isArrayImpl(model)) throw Error("Invalid Set initializer.");
|
|
3276
3279
|
if (!0 === model.$$consumed) throw Error("Already initialized Set.");
|
|
3277
|
-
response = new Set(model);
|
|
3278
3280
|
model.$$consumed = !0;
|
|
3279
|
-
return
|
|
3281
|
+
return new Set(model);
|
|
3280
3282
|
}
|
|
3281
3283
|
function extractIterator(response, model) {
|
|
3282
3284
|
if (!isArrayImpl(model)) throw Error("Invalid Iterator initializer.");
|
|
3283
3285
|
if (!0 === model.$$consumed) throw Error("Already initialized Iterator.");
|
|
3284
|
-
response = model[Symbol.iterator]();
|
|
3285
3286
|
model.$$consumed = !0;
|
|
3286
|
-
return
|
|
3287
|
+
return model[Symbol.iterator]();
|
|
3287
3288
|
}
|
|
3288
3289
|
function createModel(response, model, parentObject, key) {
|
|
3289
3290
|
return "then" === key && "function" === typeof model ? null : model;
|
|
@@ -3321,7 +3322,7 @@
|
|
|
3321
3322
|
Error("Already initialized typed array.")
|
|
3322
3323
|
)
|
|
3323
3324
|
);
|
|
3324
|
-
reference = response._formData.get(key).arrayBuffer();
|
|
3325
|
+
reference = response._formData.data.get(key).arrayBuffer();
|
|
3325
3326
|
if (initializingHandler) {
|
|
3326
3327
|
var handler = initializingHandler;
|
|
3327
3328
|
handler.deps++;
|
|
@@ -3365,7 +3366,7 @@
|
|
|
3365
3366
|
var chunks = response._chunks;
|
|
3366
3367
|
stream = new ReactPromise("fulfilled", stream, controller);
|
|
3367
3368
|
chunks.set(id, stream);
|
|
3368
|
-
response = response._formData.getAll(response._prefix + id);
|
|
3369
|
+
response = response._formData.data.getAll(response._prefix + id);
|
|
3369
3370
|
for (id = 0; id < response.length; id++)
|
|
3370
3371
|
(chunks = response[id]),
|
|
3371
3372
|
"string" === typeof chunks &&
|
|
@@ -3585,24 +3586,33 @@
|
|
|
3585
3586
|
getOutlinedModel(response, arrayRoot, obj, key, null, createSet)
|
|
3586
3587
|
);
|
|
3587
3588
|
case "K":
|
|
3588
|
-
|
|
3589
|
-
obj = response._prefix +
|
|
3590
|
-
key =
|
|
3591
|
-
|
|
3592
|
-
|
|
3593
|
-
|
|
3594
|
-
|
|
3589
|
+
key = value.slice(2);
|
|
3590
|
+
obj = response._prefix + "_";
|
|
3591
|
+
key = obj + key + "_";
|
|
3592
|
+
arrayRoot = new FormData();
|
|
3593
|
+
for (response = response._formData; ; ) {
|
|
3594
|
+
value = response;
|
|
3595
|
+
reference = value.keys;
|
|
3596
|
+
null === reference &&
|
|
3597
|
+
((reference = value.keys = Array.from(value.data.keys())),
|
|
3598
|
+
(value.keyPointer = 0));
|
|
3599
|
+
value = reference[value.keyPointer];
|
|
3600
|
+
if (void 0 === value) break;
|
|
3601
|
+
if (value.startsWith(key)) {
|
|
3602
|
+
reference = response.data.getAll(value);
|
|
3595
3603
|
for (
|
|
3596
|
-
var
|
|
3597
|
-
|
|
3598
|
-
|
|
3599
|
-
j < entries.length;
|
|
3600
|
-
j++
|
|
3604
|
+
var referencedFormDataKey = value.slice(key.length), i = 0;
|
|
3605
|
+
i < reference.length;
|
|
3606
|
+
i++
|
|
3601
3607
|
)
|
|
3602
|
-
|
|
3603
|
-
response
|
|
3604
|
-
|
|
3605
|
-
|
|
3608
|
+
arrayRoot.append(referencedFormDataKey, reference[i]);
|
|
3609
|
+
reference = response;
|
|
3610
|
+
reference.data.delete(value);
|
|
3611
|
+
reference.keyPointer++;
|
|
3612
|
+
} else if (value.startsWith(obj)) break;
|
|
3613
|
+
else response.keyPointer++;
|
|
3614
|
+
}
|
|
3615
|
+
return arrayRoot;
|
|
3606
3616
|
case "i":
|
|
3607
3617
|
return (
|
|
3608
3618
|
(arrayRoot = value.slice(2)),
|
|
@@ -3771,7 +3781,7 @@
|
|
|
3771
3781
|
case "B":
|
|
3772
3782
|
return (
|
|
3773
3783
|
(obj = parseInt(value.slice(2), 16)),
|
|
3774
|
-
response._formData.get(response._prefix + obj)
|
|
3784
|
+
response._formData.data.get(response._prefix + obj)
|
|
3775
3785
|
);
|
|
3776
3786
|
case "R":
|
|
3777
3787
|
return parseReadableStream(response, value, void 0);
|
|
@@ -3810,7 +3820,7 @@
|
|
|
3810
3820
|
return {
|
|
3811
3821
|
_bundlerConfig: bundlerConfig,
|
|
3812
3822
|
_prefix: formFieldPrefix,
|
|
3813
|
-
_formData: backingFormData,
|
|
3823
|
+
_formData: { data: backingFormData, keyPointer: -1, keys: null },
|
|
3814
3824
|
_chunks: chunks,
|
|
3815
3825
|
_closed: !1,
|
|
3816
3826
|
_closedReason: null,
|
|
@@ -2356,7 +2356,7 @@ function getChunk(response, id) {
|
|
|
2356
2356
|
var chunks = response._chunks,
|
|
2357
2357
|
chunk = chunks.get(id);
|
|
2358
2358
|
chunk ||
|
|
2359
|
-
((chunk = response._formData.get(response._prefix + id)),
|
|
2359
|
+
((chunk = response._formData.data.get(response._prefix + id)),
|
|
2360
2360
|
(chunk =
|
|
2361
2361
|
"string" === typeof chunk
|
|
2362
2362
|
? createResolvedModelChunk(response, chunk, id)
|
|
@@ -2457,6 +2457,10 @@ function getOutlinedModel(
|
|
|
2457
2457
|
case "fulfilled":
|
|
2458
2458
|
id = chunk.value;
|
|
2459
2459
|
chunk = chunk.reason;
|
|
2460
|
+
if (null !== chunk && "error" in chunk)
|
|
2461
|
+
throw Error(
|
|
2462
|
+
"Expected an initialized chunk but got an initialized stream chunk instead. This payload may have been submitted by an older version of React."
|
|
2463
|
+
);
|
|
2460
2464
|
for (
|
|
2461
2465
|
var localLength = 0,
|
|
2462
2466
|
rootArrayContexts = response._rootArrayContexts,
|
|
@@ -2539,23 +2543,20 @@ function getOutlinedModel(
|
|
|
2539
2543
|
function createMap(response, model) {
|
|
2540
2544
|
if (!isArrayImpl(model)) throw Error("Invalid Map initializer.");
|
|
2541
2545
|
if (!0 === model.$$consumed) throw Error("Already initialized Map.");
|
|
2542
|
-
response = new Map(model);
|
|
2543
2546
|
model.$$consumed = !0;
|
|
2544
|
-
return
|
|
2547
|
+
return new Map(model);
|
|
2545
2548
|
}
|
|
2546
2549
|
function createSet(response, model) {
|
|
2547
2550
|
if (!isArrayImpl(model)) throw Error("Invalid Set initializer.");
|
|
2548
2551
|
if (!0 === model.$$consumed) throw Error("Already initialized Set.");
|
|
2549
|
-
response = new Set(model);
|
|
2550
2552
|
model.$$consumed = !0;
|
|
2551
|
-
return
|
|
2553
|
+
return new Set(model);
|
|
2552
2554
|
}
|
|
2553
2555
|
function extractIterator(response, model) {
|
|
2554
2556
|
if (!isArrayImpl(model)) throw Error("Invalid Iterator initializer.");
|
|
2555
2557
|
if (!0 === model.$$consumed) throw Error("Already initialized Iterator.");
|
|
2556
|
-
response = model[Symbol.iterator]();
|
|
2557
2558
|
model.$$consumed = !0;
|
|
2558
|
-
return
|
|
2559
|
+
return model[Symbol.iterator]();
|
|
2559
2560
|
}
|
|
2560
2561
|
function createModel(response, model, parentObject, key) {
|
|
2561
2562
|
return "then" === key && "function" === typeof model ? null : model;
|
|
@@ -2593,7 +2594,7 @@ function parseTypedArray(
|
|
|
2593
2594
|
Error("Already initialized typed array.")
|
|
2594
2595
|
)
|
|
2595
2596
|
);
|
|
2596
|
-
reference = response._formData.get(key).arrayBuffer();
|
|
2597
|
+
reference = response._formData.data.get(key).arrayBuffer();
|
|
2597
2598
|
if (initializingHandler) {
|
|
2598
2599
|
var handler = initializingHandler;
|
|
2599
2600
|
handler.deps++;
|
|
@@ -2637,7 +2638,7 @@ function resolveStream(response, id, stream, controller) {
|
|
|
2637
2638
|
var chunks = response._chunks;
|
|
2638
2639
|
stream = new ReactPromise("fulfilled", stream, controller);
|
|
2639
2640
|
chunks.set(id, stream);
|
|
2640
|
-
response = response._formData.getAll(response._prefix + id);
|
|
2641
|
+
response = response._formData.data.getAll(response._prefix + id);
|
|
2641
2642
|
for (id = 0; id < response.length; id++)
|
|
2642
2643
|
(chunks = response[id]),
|
|
2643
2644
|
"string" === typeof chunks &&
|
|
@@ -2852,24 +2853,31 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
|
|
|
2852
2853
|
getOutlinedModel(response, arrayRoot, obj, key, null, createSet)
|
|
2853
2854
|
);
|
|
2854
2855
|
case "K":
|
|
2855
|
-
|
|
2856
|
-
obj = response._prefix +
|
|
2857
|
-
key =
|
|
2858
|
-
|
|
2859
|
-
|
|
2860
|
-
|
|
2861
|
-
|
|
2856
|
+
key = value.slice(2);
|
|
2857
|
+
obj = response._prefix + "_";
|
|
2858
|
+
key = obj + key + "_";
|
|
2859
|
+
arrayRoot = new FormData();
|
|
2860
|
+
for (response = response._formData; ; ) {
|
|
2861
|
+
value = response.keys;
|
|
2862
|
+
null === value &&
|
|
2863
|
+
((value = response.keys = Array.from(response.data.keys())),
|
|
2864
|
+
(response.keyPointer = 0));
|
|
2865
|
+
value = value[response.keyPointer];
|
|
2866
|
+
if (void 0 === value) break;
|
|
2867
|
+
if (value.startsWith(key)) {
|
|
2868
|
+
reference = response.data.getAll(value);
|
|
2862
2869
|
for (
|
|
2863
|
-
var
|
|
2864
|
-
|
|
2865
|
-
|
|
2866
|
-
j < entries.length;
|
|
2867
|
-
j++
|
|
2870
|
+
var referencedFormDataKey = value.slice(key.length), i = 0;
|
|
2871
|
+
i < reference.length;
|
|
2872
|
+
i++
|
|
2868
2873
|
)
|
|
2869
|
-
|
|
2870
|
-
response.delete(
|
|
2871
|
-
|
|
2872
|
-
|
|
2874
|
+
arrayRoot.append(referencedFormDataKey, reference[i]);
|
|
2875
|
+
response.data.delete(value);
|
|
2876
|
+
response.keyPointer++;
|
|
2877
|
+
} else if (value.startsWith(obj)) break;
|
|
2878
|
+
else response.keyPointer++;
|
|
2879
|
+
}
|
|
2880
|
+
return arrayRoot;
|
|
2873
2881
|
case "i":
|
|
2874
2882
|
return (
|
|
2875
2883
|
(arrayRoot = value.slice(2)),
|
|
@@ -3028,7 +3036,7 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
|
|
|
3028
3036
|
case "B":
|
|
3029
3037
|
return (
|
|
3030
3038
|
(obj = parseInt(value.slice(2), 16)),
|
|
3031
|
-
response._formData.get(response._prefix + obj)
|
|
3039
|
+
response._formData.data.get(response._prefix + obj)
|
|
3032
3040
|
);
|
|
3033
3041
|
case "R":
|
|
3034
3042
|
return parseReadableStream(response, value, void 0);
|
|
@@ -3056,7 +3064,7 @@ function createResponse(bundlerConfig, formFieldPrefix, temporaryReferences) {
|
|
|
3056
3064
|
return {
|
|
3057
3065
|
_bundlerConfig: bundlerConfig,
|
|
3058
3066
|
_prefix: formFieldPrefix,
|
|
3059
|
-
_formData: backingFormData,
|
|
3067
|
+
_formData: { data: backingFormData, keyPointer: -1, keys: null },
|
|
3060
3068
|
_chunks: chunks,
|
|
3061
3069
|
_closed: !1,
|
|
3062
3070
|
_closedReason: null,
|
|
@@ -2830,6 +2830,14 @@
|
|
|
2830
2830
|
if (hasOwnProperty.call(moduleExports, metadata[2]))
|
|
2831
2831
|
return moduleExports[metadata[2]];
|
|
2832
2832
|
}
|
|
2833
|
+
function appendBackingEntry(backingStore, key, value) {
|
|
2834
|
+
backingStore.data.append(key, value);
|
|
2835
|
+
value = backingStore.keys;
|
|
2836
|
+
null === value
|
|
2837
|
+
? ((backingStore.keys = Array.from(backingStore.data.keys())),
|
|
2838
|
+
(backingStore.keyPointer = 0))
|
|
2839
|
+
: value.push(key);
|
|
2840
|
+
}
|
|
2833
2841
|
function ReactPromise(status, value, reason) {
|
|
2834
2842
|
this.status = status;
|
|
2835
2843
|
this.value = value;
|
|
@@ -3142,7 +3150,7 @@
|
|
|
3142
3150
|
var chunks = response._chunks,
|
|
3143
3151
|
chunk = chunks.get(id);
|
|
3144
3152
|
chunk ||
|
|
3145
|
-
((chunk = response._formData.get(response._prefix + id)),
|
|
3153
|
+
((chunk = response._formData.data.get(response._prefix + id)),
|
|
3146
3154
|
(chunk =
|
|
3147
3155
|
"string" === typeof chunk
|
|
3148
3156
|
? new ReactPromise(
|
|
@@ -3254,6 +3262,10 @@
|
|
|
3254
3262
|
case "fulfilled":
|
|
3255
3263
|
id = chunk.value;
|
|
3256
3264
|
chunk = chunk.reason;
|
|
3265
|
+
if (null !== chunk && "error" in chunk)
|
|
3266
|
+
throw Error(
|
|
3267
|
+
"Expected an initialized chunk but got an initialized stream chunk instead. This payload may have been submitted by an older version of React."
|
|
3268
|
+
);
|
|
3257
3269
|
for (
|
|
3258
3270
|
var localLength = 0,
|
|
3259
3271
|
rootArrayContexts = response._rootArrayContexts,
|
|
@@ -3345,23 +3357,20 @@
|
|
|
3345
3357
|
function createMap(response, model) {
|
|
3346
3358
|
if (!isArrayImpl(model)) throw Error("Invalid Map initializer.");
|
|
3347
3359
|
if (!0 === model.$$consumed) throw Error("Already initialized Map.");
|
|
3348
|
-
response = new Map(model);
|
|
3349
3360
|
model.$$consumed = !0;
|
|
3350
|
-
return
|
|
3361
|
+
return new Map(model);
|
|
3351
3362
|
}
|
|
3352
3363
|
function createSet(response, model) {
|
|
3353
3364
|
if (!isArrayImpl(model)) throw Error("Invalid Set initializer.");
|
|
3354
3365
|
if (!0 === model.$$consumed) throw Error("Already initialized Set.");
|
|
3355
|
-
response = new Set(model);
|
|
3356
3366
|
model.$$consumed = !0;
|
|
3357
|
-
return
|
|
3367
|
+
return new Set(model);
|
|
3358
3368
|
}
|
|
3359
3369
|
function extractIterator(response, model) {
|
|
3360
3370
|
if (!isArrayImpl(model)) throw Error("Invalid Iterator initializer.");
|
|
3361
3371
|
if (!0 === model.$$consumed) throw Error("Already initialized Iterator.");
|
|
3362
|
-
response = model[Symbol.iterator]();
|
|
3363
3372
|
model.$$consumed = !0;
|
|
3364
|
-
return
|
|
3373
|
+
return model[Symbol.iterator]();
|
|
3365
3374
|
}
|
|
3366
3375
|
function createModel(response, model, parentObject, key) {
|
|
3367
3376
|
return "then" === key && "function" === typeof model ? null : model;
|
|
@@ -3399,7 +3408,7 @@
|
|
|
3399
3408
|
Error("Already initialized typed array.")
|
|
3400
3409
|
)
|
|
3401
3410
|
);
|
|
3402
|
-
reference = response._formData.get(key).arrayBuffer();
|
|
3411
|
+
reference = response._formData.data.get(key).arrayBuffer();
|
|
3403
3412
|
if (initializingHandler) {
|
|
3404
3413
|
var handler = initializingHandler;
|
|
3405
3414
|
handler.deps++;
|
|
@@ -3443,7 +3452,7 @@
|
|
|
3443
3452
|
var chunks = response._chunks;
|
|
3444
3453
|
stream = new ReactPromise("fulfilled", stream, controller);
|
|
3445
3454
|
chunks.set(id, stream);
|
|
3446
|
-
response = response._formData.getAll(response._prefix + id);
|
|
3455
|
+
response = response._formData.data.getAll(response._prefix + id);
|
|
3447
3456
|
for (id = 0; id < response.length; id++)
|
|
3448
3457
|
(chunks = response[id]),
|
|
3449
3458
|
"string" === typeof chunks &&
|
|
@@ -3663,24 +3672,33 @@
|
|
|
3663
3672
|
getOutlinedModel(response, arrayRoot, obj, key, null, createSet)
|
|
3664
3673
|
);
|
|
3665
3674
|
case "K":
|
|
3666
|
-
|
|
3667
|
-
obj = response._prefix +
|
|
3668
|
-
key =
|
|
3669
|
-
|
|
3670
|
-
|
|
3671
|
-
|
|
3672
|
-
|
|
3675
|
+
key = value.slice(2);
|
|
3676
|
+
obj = response._prefix + "_";
|
|
3677
|
+
key = obj + key + "_";
|
|
3678
|
+
arrayRoot = new FormData();
|
|
3679
|
+
for (response = response._formData; ; ) {
|
|
3680
|
+
value = response;
|
|
3681
|
+
reference = value.keys;
|
|
3682
|
+
null === reference &&
|
|
3683
|
+
((reference = value.keys = Array.from(value.data.keys())),
|
|
3684
|
+
(value.keyPointer = 0));
|
|
3685
|
+
value = reference[value.keyPointer];
|
|
3686
|
+
if (void 0 === value) break;
|
|
3687
|
+
if (value.startsWith(key)) {
|
|
3688
|
+
reference = response.data.getAll(value);
|
|
3673
3689
|
for (
|
|
3674
|
-
var
|
|
3675
|
-
|
|
3676
|
-
|
|
3677
|
-
j < entries.length;
|
|
3678
|
-
j++
|
|
3690
|
+
var referencedFormDataKey = value.slice(key.length), i = 0;
|
|
3691
|
+
i < reference.length;
|
|
3692
|
+
i++
|
|
3679
3693
|
)
|
|
3680
|
-
|
|
3681
|
-
response
|
|
3682
|
-
|
|
3683
|
-
|
|
3694
|
+
arrayRoot.append(referencedFormDataKey, reference[i]);
|
|
3695
|
+
reference = response;
|
|
3696
|
+
reference.data.delete(value);
|
|
3697
|
+
reference.keyPointer++;
|
|
3698
|
+
} else if (value.startsWith(obj)) break;
|
|
3699
|
+
else response.keyPointer++;
|
|
3700
|
+
}
|
|
3701
|
+
return arrayRoot;
|
|
3684
3702
|
case "i":
|
|
3685
3703
|
return (
|
|
3686
3704
|
(arrayRoot = value.slice(2)),
|
|
@@ -3849,7 +3867,7 @@
|
|
|
3849
3867
|
case "B":
|
|
3850
3868
|
return (
|
|
3851
3869
|
(obj = parseInt(value.slice(2), 16)),
|
|
3852
|
-
response._formData.get(response._prefix + obj)
|
|
3870
|
+
response._formData.data.get(response._prefix + obj)
|
|
3853
3871
|
);
|
|
3854
3872
|
case "R":
|
|
3855
3873
|
return parseReadableStream(response, value, void 0);
|
|
@@ -3888,7 +3906,7 @@
|
|
|
3888
3906
|
return {
|
|
3889
3907
|
_bundlerConfig: bundlerConfig,
|
|
3890
3908
|
_prefix: formFieldPrefix,
|
|
3891
|
-
_formData: backingFormData,
|
|
3909
|
+
_formData: { data: backingFormData, keyPointer: -1, keys: null },
|
|
3892
3910
|
_chunks: chunks,
|
|
3893
3911
|
_closed: !1,
|
|
3894
3912
|
_closedReason: null,
|
|
@@ -4546,7 +4564,7 @@
|
|
|
4546
4564
|
entry = entry[1];
|
|
4547
4565
|
if ("string" === typeof entry) {
|
|
4548
4566
|
var response = response$jscomp$0;
|
|
4549
|
-
response._formData
|
|
4567
|
+
appendBackingEntry(response._formData, name, entry);
|
|
4550
4568
|
var prefix = response._prefix;
|
|
4551
4569
|
if (name.startsWith(prefix)) {
|
|
4552
4570
|
var chunks = response._chunks;
|
|
@@ -4554,7 +4572,7 @@
|
|
|
4554
4572
|
(chunks = chunks.get(name)) &&
|
|
4555
4573
|
resolveModelChunk(response, chunks, entry, name);
|
|
4556
4574
|
}
|
|
4557
|
-
} else response$jscomp$0._formData
|
|
4575
|
+
} else appendBackingEntry(response$jscomp$0._formData, name, entry);
|
|
4558
4576
|
iterator.next().then(progress, error);
|
|
4559
4577
|
}
|
|
4560
4578
|
}
|
|
@@ -1995,6 +1995,14 @@ function requireModule(metadata) {
|
|
|
1995
1995
|
if (hasOwnProperty.call(moduleExports, metadata[2]))
|
|
1996
1996
|
return moduleExports[metadata[2]];
|
|
1997
1997
|
}
|
|
1998
|
+
function appendBackingEntry(backingStore, key, value) {
|
|
1999
|
+
backingStore.data.append(key, value);
|
|
2000
|
+
value = backingStore.keys;
|
|
2001
|
+
null === value
|
|
2002
|
+
? ((backingStore.keys = Array.from(backingStore.data.keys())),
|
|
2003
|
+
(backingStore.keyPointer = 0))
|
|
2004
|
+
: value.push(key);
|
|
2005
|
+
}
|
|
1998
2006
|
var RESPONSE_SYMBOL = Symbol();
|
|
1999
2007
|
function ReactPromise(status, value, reason) {
|
|
2000
2008
|
this.status = status;
|
|
@@ -2367,7 +2375,7 @@ function getChunk(response, id) {
|
|
|
2367
2375
|
var chunks = response._chunks,
|
|
2368
2376
|
chunk = chunks.get(id);
|
|
2369
2377
|
chunk ||
|
|
2370
|
-
((chunk = response._formData.get(response._prefix + id)),
|
|
2378
|
+
((chunk = response._formData.data.get(response._prefix + id)),
|
|
2371
2379
|
(chunk =
|
|
2372
2380
|
"string" === typeof chunk
|
|
2373
2381
|
? createResolvedModelChunk(response, chunk, id)
|
|
@@ -2468,6 +2476,10 @@ function getOutlinedModel(
|
|
|
2468
2476
|
case "fulfilled":
|
|
2469
2477
|
id = chunk.value;
|
|
2470
2478
|
chunk = chunk.reason;
|
|
2479
|
+
if (null !== chunk && "error" in chunk)
|
|
2480
|
+
throw Error(
|
|
2481
|
+
"Expected an initialized chunk but got an initialized stream chunk instead. This payload may have been submitted by an older version of React."
|
|
2482
|
+
);
|
|
2471
2483
|
for (
|
|
2472
2484
|
var localLength = 0,
|
|
2473
2485
|
rootArrayContexts = response._rootArrayContexts,
|
|
@@ -2550,23 +2562,20 @@ function getOutlinedModel(
|
|
|
2550
2562
|
function createMap(response, model) {
|
|
2551
2563
|
if (!isArrayImpl(model)) throw Error("Invalid Map initializer.");
|
|
2552
2564
|
if (!0 === model.$$consumed) throw Error("Already initialized Map.");
|
|
2553
|
-
response = new Map(model);
|
|
2554
2565
|
model.$$consumed = !0;
|
|
2555
|
-
return
|
|
2566
|
+
return new Map(model);
|
|
2556
2567
|
}
|
|
2557
2568
|
function createSet(response, model) {
|
|
2558
2569
|
if (!isArrayImpl(model)) throw Error("Invalid Set initializer.");
|
|
2559
2570
|
if (!0 === model.$$consumed) throw Error("Already initialized Set.");
|
|
2560
|
-
response = new Set(model);
|
|
2561
2571
|
model.$$consumed = !0;
|
|
2562
|
-
return
|
|
2572
|
+
return new Set(model);
|
|
2563
2573
|
}
|
|
2564
2574
|
function extractIterator(response, model) {
|
|
2565
2575
|
if (!isArrayImpl(model)) throw Error("Invalid Iterator initializer.");
|
|
2566
2576
|
if (!0 === model.$$consumed) throw Error("Already initialized Iterator.");
|
|
2567
|
-
response = model[Symbol.iterator]();
|
|
2568
2577
|
model.$$consumed = !0;
|
|
2569
|
-
return
|
|
2578
|
+
return model[Symbol.iterator]();
|
|
2570
2579
|
}
|
|
2571
2580
|
function createModel(response, model, parentObject, key) {
|
|
2572
2581
|
return "then" === key && "function" === typeof model ? null : model;
|
|
@@ -2604,7 +2613,7 @@ function parseTypedArray(
|
|
|
2604
2613
|
Error("Already initialized typed array.")
|
|
2605
2614
|
)
|
|
2606
2615
|
);
|
|
2607
|
-
reference = response._formData.get(key).arrayBuffer();
|
|
2616
|
+
reference = response._formData.data.get(key).arrayBuffer();
|
|
2608
2617
|
if (initializingHandler) {
|
|
2609
2618
|
var handler = initializingHandler;
|
|
2610
2619
|
handler.deps++;
|
|
@@ -2648,7 +2657,7 @@ function resolveStream(response, id, stream, controller) {
|
|
|
2648
2657
|
var chunks = response._chunks;
|
|
2649
2658
|
stream = new ReactPromise("fulfilled", stream, controller);
|
|
2650
2659
|
chunks.set(id, stream);
|
|
2651
|
-
response = response._formData.getAll(response._prefix + id);
|
|
2660
|
+
response = response._formData.data.getAll(response._prefix + id);
|
|
2652
2661
|
for (id = 0; id < response.length; id++)
|
|
2653
2662
|
(chunks = response[id]),
|
|
2654
2663
|
"string" === typeof chunks &&
|
|
@@ -2863,24 +2872,31 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
|
|
|
2863
2872
|
getOutlinedModel(response, arrayRoot, obj, key, null, createSet)
|
|
2864
2873
|
);
|
|
2865
2874
|
case "K":
|
|
2866
|
-
|
|
2867
|
-
obj = response._prefix +
|
|
2868
|
-
key =
|
|
2869
|
-
|
|
2870
|
-
|
|
2871
|
-
|
|
2872
|
-
|
|
2875
|
+
key = value.slice(2);
|
|
2876
|
+
obj = response._prefix + "_";
|
|
2877
|
+
key = obj + key + "_";
|
|
2878
|
+
arrayRoot = new FormData();
|
|
2879
|
+
for (response = response._formData; ; ) {
|
|
2880
|
+
value = response.keys;
|
|
2881
|
+
null === value &&
|
|
2882
|
+
((value = response.keys = Array.from(response.data.keys())),
|
|
2883
|
+
(response.keyPointer = 0));
|
|
2884
|
+
value = value[response.keyPointer];
|
|
2885
|
+
if (void 0 === value) break;
|
|
2886
|
+
if (value.startsWith(key)) {
|
|
2887
|
+
reference = response.data.getAll(value);
|
|
2873
2888
|
for (
|
|
2874
|
-
var
|
|
2875
|
-
|
|
2876
|
-
|
|
2877
|
-
j < entries.length;
|
|
2878
|
-
j++
|
|
2889
|
+
var referencedFormDataKey = value.slice(key.length), i = 0;
|
|
2890
|
+
i < reference.length;
|
|
2891
|
+
i++
|
|
2879
2892
|
)
|
|
2880
|
-
|
|
2881
|
-
response.delete(
|
|
2882
|
-
|
|
2883
|
-
|
|
2893
|
+
arrayRoot.append(referencedFormDataKey, reference[i]);
|
|
2894
|
+
response.data.delete(value);
|
|
2895
|
+
response.keyPointer++;
|
|
2896
|
+
} else if (value.startsWith(obj)) break;
|
|
2897
|
+
else response.keyPointer++;
|
|
2898
|
+
}
|
|
2899
|
+
return arrayRoot;
|
|
2884
2900
|
case "i":
|
|
2885
2901
|
return (
|
|
2886
2902
|
(arrayRoot = value.slice(2)),
|
|
@@ -3039,7 +3055,7 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
|
|
|
3039
3055
|
case "B":
|
|
3040
3056
|
return (
|
|
3041
3057
|
(obj = parseInt(value.slice(2), 16)),
|
|
3042
|
-
response._formData.get(response._prefix + obj)
|
|
3058
|
+
response._formData.data.get(response._prefix + obj)
|
|
3043
3059
|
);
|
|
3044
3060
|
case "R":
|
|
3045
3061
|
return parseReadableStream(response, value, void 0);
|
|
@@ -3067,7 +3083,7 @@ function createResponse(bundlerConfig, formFieldPrefix, temporaryReferences) {
|
|
|
3067
3083
|
return {
|
|
3068
3084
|
_bundlerConfig: bundlerConfig,
|
|
3069
3085
|
_prefix: formFieldPrefix,
|
|
3070
|
-
_formData: backingFormData,
|
|
3086
|
+
_formData: { data: backingFormData, keyPointer: -1, keys: null },
|
|
3071
3087
|
_chunks: chunks,
|
|
3072
3088
|
_closed: !1,
|
|
3073
3089
|
_closedReason: null,
|
|
@@ -3203,7 +3219,7 @@ exports.decodeReplyFromAsyncIterable = function (
|
|
|
3203
3219
|
var name = entry[0];
|
|
3204
3220
|
entry = entry[1];
|
|
3205
3221
|
if ("string" === typeof entry) {
|
|
3206
|
-
response._formData
|
|
3222
|
+
appendBackingEntry(response._formData, name, entry);
|
|
3207
3223
|
var prefix = response._prefix;
|
|
3208
3224
|
if (name.startsWith(prefix)) {
|
|
3209
3225
|
var chunks = response._chunks;
|
|
@@ -3211,7 +3227,7 @@ exports.decodeReplyFromAsyncIterable = function (
|
|
|
3211
3227
|
(chunks = chunks.get(name)) &&
|
|
3212
3228
|
resolveModelChunk(response, chunks, entry, name);
|
|
3213
3229
|
}
|
|
3214
|
-
} else response._formData
|
|
3230
|
+
} else appendBackingEntry(response._formData, name, entry);
|
|
3215
3231
|
iterator.next().then(progress, error);
|
|
3216
3232
|
}
|
|
3217
3233
|
}
|
|
@@ -3120,7 +3120,7 @@
|
|
|
3120
3120
|
var chunks = response._chunks,
|
|
3121
3121
|
chunk = chunks.get(id);
|
|
3122
3122
|
chunk ||
|
|
3123
|
-
((chunk = response._formData.get(response._prefix + id)),
|
|
3123
|
+
((chunk = response._formData.data.get(response._prefix + id)),
|
|
3124
3124
|
(chunk =
|
|
3125
3125
|
"string" === typeof chunk
|
|
3126
3126
|
? new ReactPromise(
|
|
@@ -3232,6 +3232,10 @@
|
|
|
3232
3232
|
case "fulfilled":
|
|
3233
3233
|
id = chunk.value;
|
|
3234
3234
|
chunk = chunk.reason;
|
|
3235
|
+
if (null !== chunk && "error" in chunk)
|
|
3236
|
+
throw Error(
|
|
3237
|
+
"Expected an initialized chunk but got an initialized stream chunk instead. This payload may have been submitted by an older version of React."
|
|
3238
|
+
);
|
|
3235
3239
|
for (
|
|
3236
3240
|
var localLength = 0,
|
|
3237
3241
|
rootArrayContexts = response._rootArrayContexts,
|
|
@@ -3323,23 +3327,20 @@
|
|
|
3323
3327
|
function createMap(response, model) {
|
|
3324
3328
|
if (!isArrayImpl(model)) throw Error("Invalid Map initializer.");
|
|
3325
3329
|
if (!0 === model.$$consumed) throw Error("Already initialized Map.");
|
|
3326
|
-
response = new Map(model);
|
|
3327
3330
|
model.$$consumed = !0;
|
|
3328
|
-
return
|
|
3331
|
+
return new Map(model);
|
|
3329
3332
|
}
|
|
3330
3333
|
function createSet(response, model) {
|
|
3331
3334
|
if (!isArrayImpl(model)) throw Error("Invalid Set initializer.");
|
|
3332
3335
|
if (!0 === model.$$consumed) throw Error("Already initialized Set.");
|
|
3333
|
-
response = new Set(model);
|
|
3334
3336
|
model.$$consumed = !0;
|
|
3335
|
-
return
|
|
3337
|
+
return new Set(model);
|
|
3336
3338
|
}
|
|
3337
3339
|
function extractIterator(response, model) {
|
|
3338
3340
|
if (!isArrayImpl(model)) throw Error("Invalid Iterator initializer.");
|
|
3339
3341
|
if (!0 === model.$$consumed) throw Error("Already initialized Iterator.");
|
|
3340
|
-
response = model[Symbol.iterator]();
|
|
3341
3342
|
model.$$consumed = !0;
|
|
3342
|
-
return
|
|
3343
|
+
return model[Symbol.iterator]();
|
|
3343
3344
|
}
|
|
3344
3345
|
function createModel(response, model, parentObject, key) {
|
|
3345
3346
|
return "then" === key && "function" === typeof model ? null : model;
|
|
@@ -3377,7 +3378,7 @@
|
|
|
3377
3378
|
Error("Already initialized typed array.")
|
|
3378
3379
|
)
|
|
3379
3380
|
);
|
|
3380
|
-
reference = response._formData.get(key).arrayBuffer();
|
|
3381
|
+
reference = response._formData.data.get(key).arrayBuffer();
|
|
3381
3382
|
if (initializingHandler) {
|
|
3382
3383
|
var handler = initializingHandler;
|
|
3383
3384
|
handler.deps++;
|
|
@@ -3421,7 +3422,7 @@
|
|
|
3421
3422
|
var chunks = response._chunks;
|
|
3422
3423
|
stream = new ReactPromise("fulfilled", stream, controller);
|
|
3423
3424
|
chunks.set(id, stream);
|
|
3424
|
-
response = response._formData.getAll(response._prefix + id);
|
|
3425
|
+
response = response._formData.data.getAll(response._prefix + id);
|
|
3425
3426
|
for (id = 0; id < response.length; id++)
|
|
3426
3427
|
(chunks = response[id]),
|
|
3427
3428
|
"string" === typeof chunks &&
|
|
@@ -3641,24 +3642,33 @@
|
|
|
3641
3642
|
getOutlinedModel(response, arrayRoot, obj, key, null, createSet)
|
|
3642
3643
|
);
|
|
3643
3644
|
case "K":
|
|
3644
|
-
|
|
3645
|
-
obj = response._prefix +
|
|
3646
|
-
key =
|
|
3647
|
-
|
|
3648
|
-
|
|
3649
|
-
|
|
3650
|
-
|
|
3645
|
+
key = value.slice(2);
|
|
3646
|
+
obj = response._prefix + "_";
|
|
3647
|
+
key = obj + key + "_";
|
|
3648
|
+
arrayRoot = new FormData();
|
|
3649
|
+
for (response = response._formData; ; ) {
|
|
3650
|
+
value = response;
|
|
3651
|
+
reference = value.keys;
|
|
3652
|
+
null === reference &&
|
|
3653
|
+
((reference = value.keys = Array.from(value.data.keys())),
|
|
3654
|
+
(value.keyPointer = 0));
|
|
3655
|
+
value = reference[value.keyPointer];
|
|
3656
|
+
if (void 0 === value) break;
|
|
3657
|
+
if (value.startsWith(key)) {
|
|
3658
|
+
reference = response.data.getAll(value);
|
|
3651
3659
|
for (
|
|
3652
|
-
var
|
|
3653
|
-
|
|
3654
|
-
|
|
3655
|
-
j < entries.length;
|
|
3656
|
-
j++
|
|
3660
|
+
var referencedFormDataKey = value.slice(key.length), i = 0;
|
|
3661
|
+
i < reference.length;
|
|
3662
|
+
i++
|
|
3657
3663
|
)
|
|
3658
|
-
|
|
3659
|
-
response
|
|
3660
|
-
|
|
3661
|
-
|
|
3664
|
+
arrayRoot.append(referencedFormDataKey, reference[i]);
|
|
3665
|
+
reference = response;
|
|
3666
|
+
reference.data.delete(value);
|
|
3667
|
+
reference.keyPointer++;
|
|
3668
|
+
} else if (value.startsWith(obj)) break;
|
|
3669
|
+
else response.keyPointer++;
|
|
3670
|
+
}
|
|
3671
|
+
return arrayRoot;
|
|
3662
3672
|
case "i":
|
|
3663
3673
|
return (
|
|
3664
3674
|
(arrayRoot = value.slice(2)),
|
|
@@ -3827,7 +3837,7 @@
|
|
|
3827
3837
|
case "B":
|
|
3828
3838
|
return (
|
|
3829
3839
|
(obj = parseInt(value.slice(2), 16)),
|
|
3830
|
-
response._formData.get(response._prefix + obj)
|
|
3840
|
+
response._formData.data.get(response._prefix + obj)
|
|
3831
3841
|
);
|
|
3832
3842
|
case "R":
|
|
3833
3843
|
return parseReadableStream(response, value, void 0);
|
|
@@ -3866,7 +3876,7 @@
|
|
|
3866
3876
|
return {
|
|
3867
3877
|
_bundlerConfig: bundlerConfig,
|
|
3868
3878
|
_prefix: formFieldPrefix,
|
|
3869
|
-
_formData: backingFormData,
|
|
3879
|
+
_formData: { data: backingFormData, keyPointer: -1, keys: null },
|
|
3870
3880
|
_chunks: chunks,
|
|
3871
3881
|
_closed: !1,
|
|
3872
3882
|
_closedReason: null,
|
|
@@ -3876,14 +3886,19 @@
|
|
|
3876
3886
|
};
|
|
3877
3887
|
}
|
|
3878
3888
|
function resolveField(response, key, value) {
|
|
3879
|
-
response._formData
|
|
3880
|
-
|
|
3881
|
-
|
|
3882
|
-
|
|
3883
|
-
|
|
3884
|
-
|
|
3885
|
-
|
|
3886
|
-
|
|
3889
|
+
var backingStore = response._formData;
|
|
3890
|
+
backingStore.data.append(key, value);
|
|
3891
|
+
var keys = backingStore.keys;
|
|
3892
|
+
null === keys
|
|
3893
|
+
? ((backingStore.keys = Array.from(backingStore.data.keys())),
|
|
3894
|
+
(backingStore.keyPointer = 0))
|
|
3895
|
+
: keys.push(key);
|
|
3896
|
+
keys = response._prefix;
|
|
3897
|
+
key.startsWith(keys) &&
|
|
3898
|
+
((backingStore = response._chunks),
|
|
3899
|
+
(key = +key.slice(keys.length)),
|
|
3900
|
+
(backingStore = backingStore.get(key)) &&
|
|
3901
|
+
resolveModelChunk(response, backingStore, value, key));
|
|
3887
3902
|
}
|
|
3888
3903
|
function close(response) {
|
|
3889
3904
|
reportGlobalError(response, Error("Connection closed."));
|
|
@@ -4566,16 +4581,22 @@
|
|
|
4566
4581
|
);
|
|
4567
4582
|
else {
|
|
4568
4583
|
pendingFiles++;
|
|
4569
|
-
var
|
|
4584
|
+
var JSCompiler_object_inline_chunks_174 = [];
|
|
4570
4585
|
value.on("data", function (chunk) {
|
|
4571
|
-
|
|
4586
|
+
JSCompiler_object_inline_chunks_174.push(chunk);
|
|
4572
4587
|
});
|
|
4573
4588
|
value.on("end", function () {
|
|
4574
4589
|
try {
|
|
4575
|
-
var blob = new Blob(
|
|
4576
|
-
|
|
4577
|
-
|
|
4578
|
-
|
|
4590
|
+
var blob = new Blob(JSCompiler_object_inline_chunks_174, {
|
|
4591
|
+
type: mimeType
|
|
4592
|
+
}),
|
|
4593
|
+
backingStore = response._formData;
|
|
4594
|
+
backingStore.data.append(name, blob, filename);
|
|
4595
|
+
var keys = backingStore.keys;
|
|
4596
|
+
null === keys
|
|
4597
|
+
? ((backingStore.keys = Array.from(backingStore.data.keys())),
|
|
4598
|
+
(backingStore.keyPointer = 0))
|
|
4599
|
+
: keys.push(name);
|
|
4579
4600
|
pendingFiles--;
|
|
4580
4601
|
if (0 === pendingFiles) {
|
|
4581
4602
|
for (blob = 0; blob < queuedFields.length; blob += 2)
|
|
@@ -2392,7 +2392,7 @@ function getChunk(response, id) {
|
|
|
2392
2392
|
var chunks = response._chunks,
|
|
2393
2393
|
chunk = chunks.get(id);
|
|
2394
2394
|
chunk ||
|
|
2395
|
-
((chunk = response._formData.get(response._prefix + id)),
|
|
2395
|
+
((chunk = response._formData.data.get(response._prefix + id)),
|
|
2396
2396
|
(chunk =
|
|
2397
2397
|
"string" === typeof chunk
|
|
2398
2398
|
? createResolvedModelChunk(response, chunk, id)
|
|
@@ -2493,6 +2493,10 @@ function getOutlinedModel(
|
|
|
2493
2493
|
case "fulfilled":
|
|
2494
2494
|
id = chunk.value;
|
|
2495
2495
|
chunk = chunk.reason;
|
|
2496
|
+
if (null !== chunk && "error" in chunk)
|
|
2497
|
+
throw Error(
|
|
2498
|
+
"Expected an initialized chunk but got an initialized stream chunk instead. This payload may have been submitted by an older version of React."
|
|
2499
|
+
);
|
|
2496
2500
|
for (
|
|
2497
2501
|
var localLength = 0,
|
|
2498
2502
|
rootArrayContexts = response._rootArrayContexts,
|
|
@@ -2575,23 +2579,20 @@ function getOutlinedModel(
|
|
|
2575
2579
|
function createMap(response, model) {
|
|
2576
2580
|
if (!isArrayImpl(model)) throw Error("Invalid Map initializer.");
|
|
2577
2581
|
if (!0 === model.$$consumed) throw Error("Already initialized Map.");
|
|
2578
|
-
response = new Map(model);
|
|
2579
2582
|
model.$$consumed = !0;
|
|
2580
|
-
return
|
|
2583
|
+
return new Map(model);
|
|
2581
2584
|
}
|
|
2582
2585
|
function createSet(response, model) {
|
|
2583
2586
|
if (!isArrayImpl(model)) throw Error("Invalid Set initializer.");
|
|
2584
2587
|
if (!0 === model.$$consumed) throw Error("Already initialized Set.");
|
|
2585
|
-
response = new Set(model);
|
|
2586
2588
|
model.$$consumed = !0;
|
|
2587
|
-
return
|
|
2589
|
+
return new Set(model);
|
|
2588
2590
|
}
|
|
2589
2591
|
function extractIterator(response, model) {
|
|
2590
2592
|
if (!isArrayImpl(model)) throw Error("Invalid Iterator initializer.");
|
|
2591
2593
|
if (!0 === model.$$consumed) throw Error("Already initialized Iterator.");
|
|
2592
|
-
response = model[Symbol.iterator]();
|
|
2593
2594
|
model.$$consumed = !0;
|
|
2594
|
-
return
|
|
2595
|
+
return model[Symbol.iterator]();
|
|
2595
2596
|
}
|
|
2596
2597
|
function createModel(response, model, parentObject, key) {
|
|
2597
2598
|
return "then" === key && "function" === typeof model ? null : model;
|
|
@@ -2629,7 +2630,7 @@ function parseTypedArray(
|
|
|
2629
2630
|
Error("Already initialized typed array.")
|
|
2630
2631
|
)
|
|
2631
2632
|
);
|
|
2632
|
-
reference = response._formData.get(key).arrayBuffer();
|
|
2633
|
+
reference = response._formData.data.get(key).arrayBuffer();
|
|
2633
2634
|
if (initializingHandler) {
|
|
2634
2635
|
var handler = initializingHandler;
|
|
2635
2636
|
handler.deps++;
|
|
@@ -2673,7 +2674,7 @@ function resolveStream(response, id, stream, controller) {
|
|
|
2673
2674
|
var chunks = response._chunks;
|
|
2674
2675
|
stream = new ReactPromise("fulfilled", stream, controller);
|
|
2675
2676
|
chunks.set(id, stream);
|
|
2676
|
-
response = response._formData.getAll(response._prefix + id);
|
|
2677
|
+
response = response._formData.data.getAll(response._prefix + id);
|
|
2677
2678
|
for (id = 0; id < response.length; id++)
|
|
2678
2679
|
(chunks = response[id]),
|
|
2679
2680
|
"string" === typeof chunks &&
|
|
@@ -2888,24 +2889,31 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
|
|
|
2888
2889
|
getOutlinedModel(response, arrayRoot, obj, key, null, createSet)
|
|
2889
2890
|
);
|
|
2890
2891
|
case "K":
|
|
2891
|
-
|
|
2892
|
-
obj = response._prefix +
|
|
2893
|
-
key =
|
|
2894
|
-
|
|
2895
|
-
|
|
2896
|
-
|
|
2897
|
-
|
|
2892
|
+
key = value.slice(2);
|
|
2893
|
+
obj = response._prefix + "_";
|
|
2894
|
+
key = obj + key + "_";
|
|
2895
|
+
arrayRoot = new FormData();
|
|
2896
|
+
for (response = response._formData; ; ) {
|
|
2897
|
+
value = response.keys;
|
|
2898
|
+
null === value &&
|
|
2899
|
+
((value = response.keys = Array.from(response.data.keys())),
|
|
2900
|
+
(response.keyPointer = 0));
|
|
2901
|
+
value = value[response.keyPointer];
|
|
2902
|
+
if (void 0 === value) break;
|
|
2903
|
+
if (value.startsWith(key)) {
|
|
2904
|
+
reference = response.data.getAll(value);
|
|
2898
2905
|
for (
|
|
2899
|
-
var
|
|
2900
|
-
|
|
2901
|
-
|
|
2902
|
-
j < entries.length;
|
|
2903
|
-
j++
|
|
2906
|
+
var referencedFormDataKey = value.slice(key.length), i = 0;
|
|
2907
|
+
i < reference.length;
|
|
2908
|
+
i++
|
|
2904
2909
|
)
|
|
2905
|
-
|
|
2906
|
-
response.delete(
|
|
2907
|
-
|
|
2908
|
-
|
|
2910
|
+
arrayRoot.append(referencedFormDataKey, reference[i]);
|
|
2911
|
+
response.data.delete(value);
|
|
2912
|
+
response.keyPointer++;
|
|
2913
|
+
} else if (value.startsWith(obj)) break;
|
|
2914
|
+
else response.keyPointer++;
|
|
2915
|
+
}
|
|
2916
|
+
return arrayRoot;
|
|
2909
2917
|
case "i":
|
|
2910
2918
|
return (
|
|
2911
2919
|
(arrayRoot = value.slice(2)),
|
|
@@ -3064,7 +3072,7 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
|
|
|
3064
3072
|
case "B":
|
|
3065
3073
|
return (
|
|
3066
3074
|
(obj = parseInt(value.slice(2), 16)),
|
|
3067
|
-
response._formData.get(response._prefix + obj)
|
|
3075
|
+
response._formData.data.get(response._prefix + obj)
|
|
3068
3076
|
);
|
|
3069
3077
|
case "R":
|
|
3070
3078
|
return parseReadableStream(response, value, void 0);
|
|
@@ -3092,7 +3100,7 @@ function createResponse(bundlerConfig, formFieldPrefix, temporaryReferences) {
|
|
|
3092
3100
|
return {
|
|
3093
3101
|
_bundlerConfig: bundlerConfig,
|
|
3094
3102
|
_prefix: formFieldPrefix,
|
|
3095
|
-
_formData: backingFormData,
|
|
3103
|
+
_formData: { data: backingFormData, keyPointer: -1, keys: null },
|
|
3096
3104
|
_chunks: chunks,
|
|
3097
3105
|
_closed: !1,
|
|
3098
3106
|
_closedReason: null,
|
|
@@ -3102,14 +3110,19 @@ function createResponse(bundlerConfig, formFieldPrefix, temporaryReferences) {
|
|
|
3102
3110
|
};
|
|
3103
3111
|
}
|
|
3104
3112
|
function resolveField(response, key, value) {
|
|
3105
|
-
response._formData
|
|
3106
|
-
|
|
3107
|
-
|
|
3108
|
-
|
|
3109
|
-
|
|
3110
|
-
|
|
3111
|
-
|
|
3112
|
-
|
|
3113
|
+
var backingStore = response._formData;
|
|
3114
|
+
backingStore.data.append(key, value);
|
|
3115
|
+
var keys = backingStore.keys;
|
|
3116
|
+
null === keys
|
|
3117
|
+
? ((backingStore.keys = Array.from(backingStore.data.keys())),
|
|
3118
|
+
(backingStore.keyPointer = 0))
|
|
3119
|
+
: keys.push(key);
|
|
3120
|
+
keys = response._prefix;
|
|
3121
|
+
key.startsWith(keys) &&
|
|
3122
|
+
((backingStore = response._chunks),
|
|
3123
|
+
(key = +key.slice(keys.length)),
|
|
3124
|
+
(backingStore = backingStore.get(key)) &&
|
|
3125
|
+
resolveModelChunk(response, backingStore, value, key));
|
|
3113
3126
|
}
|
|
3114
3127
|
function close(response) {
|
|
3115
3128
|
reportGlobalError(response, Error("Connection closed."));
|
|
@@ -3280,16 +3293,22 @@ exports.decodeReplyFromBusboy = function (busboyStream, turbopackMap, options) {
|
|
|
3280
3293
|
);
|
|
3281
3294
|
else {
|
|
3282
3295
|
pendingFiles++;
|
|
3283
|
-
var
|
|
3296
|
+
var JSCompiler_object_inline_chunks_254 = [];
|
|
3284
3297
|
value.on("data", function (chunk) {
|
|
3285
|
-
|
|
3298
|
+
JSCompiler_object_inline_chunks_254.push(chunk);
|
|
3286
3299
|
});
|
|
3287
3300
|
value.on("end", function () {
|
|
3288
3301
|
try {
|
|
3289
|
-
var blob = new Blob(
|
|
3290
|
-
|
|
3291
|
-
|
|
3292
|
-
|
|
3302
|
+
var blob = new Blob(JSCompiler_object_inline_chunks_254, {
|
|
3303
|
+
type: mimeType
|
|
3304
|
+
}),
|
|
3305
|
+
backingStore = response._formData;
|
|
3306
|
+
backingStore.data.append(name, blob, filename);
|
|
3307
|
+
var keys = backingStore.keys;
|
|
3308
|
+
null === keys
|
|
3309
|
+
? ((backingStore.keys = Array.from(backingStore.data.keys())),
|
|
3310
|
+
(backingStore.keyPointer = 0))
|
|
3311
|
+
: keys.push(name);
|
|
3293
3312
|
pendingFiles--;
|
|
3294
3313
|
if (0 === pendingFiles) {
|
|
3295
3314
|
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.1.
|
|
4
|
+
"version": "19.1.7",
|
|
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.1.
|
|
82
|
-
"react-dom": "^19.1.
|
|
81
|
+
"react": "^19.1.7",
|
|
82
|
+
"react-dom": "^19.1.7"
|
|
83
83
|
},
|
|
84
84
|
"dependencies": {
|
|
85
85
|
"acorn-loose": "^8.3.0",
|