react-server-dom-turbopack 19.2.4 → 19.2.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 +47 -29
- package/cjs/react-server-dom-turbopack-server.edge.production.js +45 -29
- package/cjs/react-server-dom-turbopack-server.node.development.js +59 -35
- package/cjs/react-server-dom-turbopack-server.node.production.js +57 -35
- package/package.json +3 -3
|
@@ -534,7 +534,7 @@
|
|
|
534
534
|
null === formData && (formData = new FormData());
|
|
535
535
|
var _data3 = formData;
|
|
536
536
|
key = nextPartId++;
|
|
537
|
-
var prefix = formFieldPrefix + key + "_";
|
|
537
|
+
var prefix = formFieldPrefix + "_" + key + "_";
|
|
538
538
|
value.forEach(function (originalValue, originalKey) {
|
|
539
539
|
_data3.append(prefix + originalKey, originalValue);
|
|
540
540
|
});
|
|
@@ -4885,10 +4885,10 @@
|
|
|
4885
4885
|
return hook.checkDCE ? !0 : !1;
|
|
4886
4886
|
})({
|
|
4887
4887
|
bundleType: 1,
|
|
4888
|
-
version: "19.2.
|
|
4888
|
+
version: "19.2.6",
|
|
4889
4889
|
rendererPackageName: "react-server-dom-turbopack",
|
|
4890
4890
|
currentDispatcherRef: ReactSharedInternals,
|
|
4891
|
-
reconcilerVersion: "19.2.
|
|
4891
|
+
reconcilerVersion: "19.2.6",
|
|
4892
4892
|
getCurrentComponentInfo: function () {
|
|
4893
4893
|
return currentOwnerInDEV;
|
|
4894
4894
|
}
|
|
@@ -335,7 +335,7 @@ function processReply(
|
|
|
335
335
|
null === formData && (formData = new FormData());
|
|
336
336
|
var data$31 = formData;
|
|
337
337
|
key = nextPartId++;
|
|
338
|
-
var prefix = formFieldPrefix + key + "_";
|
|
338
|
+
var prefix = formFieldPrefix + "_" + key + "_";
|
|
339
339
|
value.forEach(function (originalValue, originalKey) {
|
|
340
340
|
data$31.append(prefix + originalKey, originalValue);
|
|
341
341
|
});
|
|
@@ -559,7 +559,7 @@
|
|
|
559
559
|
null === formData && (formData = new FormData());
|
|
560
560
|
var _data3 = formData;
|
|
561
561
|
key = nextPartId++;
|
|
562
|
-
var prefix = formFieldPrefix + key + "_";
|
|
562
|
+
var prefix = formFieldPrefix + "_" + key + "_";
|
|
563
563
|
value.forEach(function (originalValue, originalKey) {
|
|
564
564
|
_data3.append(prefix + originalKey, originalValue);
|
|
565
565
|
});
|
|
@@ -356,7 +356,7 @@ function processReply(
|
|
|
356
356
|
null === formData && (formData = new FormData());
|
|
357
357
|
var data$31 = 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$31.append(prefix + originalKey, originalValue);
|
|
362
362
|
});
|
|
@@ -559,7 +559,7 @@
|
|
|
559
559
|
null === formData && (formData = new FormData());
|
|
560
560
|
var _data3 = formData;
|
|
561
561
|
key = nextPartId++;
|
|
562
|
-
var prefix = formFieldPrefix + key + "_";
|
|
562
|
+
var prefix = formFieldPrefix + "_" + key + "_";
|
|
563
563
|
value.forEach(function (originalValue, originalKey) {
|
|
564
564
|
_data3.append(prefix + originalKey, originalValue);
|
|
565
565
|
});
|
|
@@ -357,7 +357,7 @@ function processReply(
|
|
|
357
357
|
null === formData && (formData = new FormData());
|
|
358
358
|
var data$31 = formData;
|
|
359
359
|
key = nextPartId++;
|
|
360
|
-
var prefix = formFieldPrefix + key + "_";
|
|
360
|
+
var prefix = formFieldPrefix + "_" + key + "_";
|
|
361
361
|
value.forEach(function (originalValue, originalKey) {
|
|
362
362
|
data$31.append(prefix + originalKey, originalValue);
|
|
363
363
|
});
|
|
@@ -4184,7 +4184,7 @@
|
|
|
4184
4184
|
var chunks = response._chunks,
|
|
4185
4185
|
chunk = chunks.get(id);
|
|
4186
4186
|
chunk ||
|
|
4187
|
-
((chunk = response._formData.get(response._prefix + id)),
|
|
4187
|
+
((chunk = response._formData.data.get(response._prefix + id)),
|
|
4188
4188
|
(chunk =
|
|
4189
4189
|
"string" === typeof chunk
|
|
4190
4190
|
? new ReactPromise(
|
|
@@ -4296,6 +4296,10 @@
|
|
|
4296
4296
|
case "fulfilled":
|
|
4297
4297
|
id = chunk.value;
|
|
4298
4298
|
chunk = chunk.reason;
|
|
4299
|
+
if (null !== chunk && "error" in chunk)
|
|
4300
|
+
throw Error(
|
|
4301
|
+
"Expected an initialized chunk but got an initialized stream chunk instead. This payload may have been submitted by an older version of React."
|
|
4302
|
+
);
|
|
4299
4303
|
for (
|
|
4300
4304
|
var localLength = 0,
|
|
4301
4305
|
rootArrayContexts = response._rootArrayContexts,
|
|
@@ -4387,23 +4391,20 @@
|
|
|
4387
4391
|
function createMap(response, model) {
|
|
4388
4392
|
if (!isArrayImpl(model)) throw Error("Invalid Map initializer.");
|
|
4389
4393
|
if (!0 === model.$$consumed) throw Error("Already initialized Map.");
|
|
4390
|
-
response = new Map(model);
|
|
4391
4394
|
model.$$consumed = !0;
|
|
4392
|
-
return
|
|
4395
|
+
return new Map(model);
|
|
4393
4396
|
}
|
|
4394
4397
|
function createSet(response, model) {
|
|
4395
4398
|
if (!isArrayImpl(model)) throw Error("Invalid Set initializer.");
|
|
4396
4399
|
if (!0 === model.$$consumed) throw Error("Already initialized Set.");
|
|
4397
|
-
response = new Set(model);
|
|
4398
4400
|
model.$$consumed = !0;
|
|
4399
|
-
return
|
|
4401
|
+
return new Set(model);
|
|
4400
4402
|
}
|
|
4401
4403
|
function extractIterator(response, model) {
|
|
4402
4404
|
if (!isArrayImpl(model)) throw Error("Invalid Iterator initializer.");
|
|
4403
4405
|
if (!0 === model.$$consumed) throw Error("Already initialized Iterator.");
|
|
4404
|
-
response = model[Symbol.iterator]();
|
|
4405
4406
|
model.$$consumed = !0;
|
|
4406
|
-
return
|
|
4407
|
+
return model[Symbol.iterator]();
|
|
4407
4408
|
}
|
|
4408
4409
|
function createModel(response, model, parentObject, key) {
|
|
4409
4410
|
return "then" === key && "function" === typeof model ? null : model;
|
|
@@ -4441,7 +4442,7 @@
|
|
|
4441
4442
|
Error("Already initialized typed array.")
|
|
4442
4443
|
)
|
|
4443
4444
|
);
|
|
4444
|
-
reference = response._formData.get(key).arrayBuffer();
|
|
4445
|
+
reference = response._formData.data.get(key).arrayBuffer();
|
|
4445
4446
|
if (initializingHandler) {
|
|
4446
4447
|
var handler = initializingHandler;
|
|
4447
4448
|
handler.deps++;
|
|
@@ -4485,7 +4486,7 @@
|
|
|
4485
4486
|
var chunks = response._chunks;
|
|
4486
4487
|
stream = new ReactPromise("fulfilled", stream, controller);
|
|
4487
4488
|
chunks.set(id, stream);
|
|
4488
|
-
response = response._formData.getAll(response._prefix + id);
|
|
4489
|
+
response = response._formData.data.getAll(response._prefix + id);
|
|
4489
4490
|
for (id = 0; id < response.length; id++)
|
|
4490
4491
|
(chunks = response[id]),
|
|
4491
4492
|
"string" === typeof chunks &&
|
|
@@ -4705,24 +4706,33 @@
|
|
|
4705
4706
|
getOutlinedModel(response, arrayRoot, obj, key, null, createSet)
|
|
4706
4707
|
);
|
|
4707
4708
|
case "K":
|
|
4708
|
-
|
|
4709
|
-
obj = response._prefix +
|
|
4710
|
-
key =
|
|
4711
|
-
|
|
4712
|
-
|
|
4713
|
-
|
|
4714
|
-
|
|
4709
|
+
key = value.slice(2);
|
|
4710
|
+
obj = response._prefix + "_";
|
|
4711
|
+
key = obj + key + "_";
|
|
4712
|
+
arrayRoot = new FormData();
|
|
4713
|
+
for (response = response._formData; ; ) {
|
|
4714
|
+
value = response;
|
|
4715
|
+
reference = value.keys;
|
|
4716
|
+
null === reference &&
|
|
4717
|
+
((reference = value.keys = Array.from(value.data.keys())),
|
|
4718
|
+
(value.keyPointer = 0));
|
|
4719
|
+
value = reference[value.keyPointer];
|
|
4720
|
+
if (void 0 === value) break;
|
|
4721
|
+
if (value.startsWith(key)) {
|
|
4722
|
+
reference = response.data.getAll(value);
|
|
4715
4723
|
for (
|
|
4716
|
-
var
|
|
4717
|
-
|
|
4718
|
-
|
|
4719
|
-
j < entries.length;
|
|
4720
|
-
j++
|
|
4724
|
+
var referencedFormDataKey = value.slice(key.length), i = 0;
|
|
4725
|
+
i < reference.length;
|
|
4726
|
+
i++
|
|
4721
4727
|
)
|
|
4722
|
-
|
|
4723
|
-
response
|
|
4724
|
-
|
|
4725
|
-
|
|
4728
|
+
arrayRoot.append(referencedFormDataKey, reference[i]);
|
|
4729
|
+
reference = response;
|
|
4730
|
+
reference.data.delete(value);
|
|
4731
|
+
reference.keyPointer++;
|
|
4732
|
+
} else if (value.startsWith(obj)) break;
|
|
4733
|
+
else response.keyPointer++;
|
|
4734
|
+
}
|
|
4735
|
+
return arrayRoot;
|
|
4726
4736
|
case "i":
|
|
4727
4737
|
return (
|
|
4728
4738
|
(arrayRoot = value.slice(2)),
|
|
@@ -4891,7 +4901,7 @@
|
|
|
4891
4901
|
case "B":
|
|
4892
4902
|
return (
|
|
4893
4903
|
(obj = parseInt(value.slice(2), 16)),
|
|
4894
|
-
response._formData.get(response._prefix + obj)
|
|
4904
|
+
response._formData.data.get(response._prefix + obj)
|
|
4895
4905
|
);
|
|
4896
4906
|
case "R":
|
|
4897
4907
|
return parseReadableStream(response, value, void 0);
|
|
@@ -4930,7 +4940,7 @@
|
|
|
4930
4940
|
return {
|
|
4931
4941
|
_bundlerConfig: bundlerConfig,
|
|
4932
4942
|
_prefix: formFieldPrefix,
|
|
4933
|
-
_formData: backingFormData,
|
|
4943
|
+
_formData: { data: backingFormData, keyPointer: -1, keys: null },
|
|
4934
4944
|
_chunks: chunks,
|
|
4935
4945
|
_closed: !1,
|
|
4936
4946
|
_closedReason: null,
|
|
@@ -2613,7 +2613,7 @@ function getChunk(response, id) {
|
|
|
2613
2613
|
var chunks = response._chunks,
|
|
2614
2614
|
chunk = chunks.get(id);
|
|
2615
2615
|
chunk ||
|
|
2616
|
-
((chunk = response._formData.get(response._prefix + id)),
|
|
2616
|
+
((chunk = response._formData.data.get(response._prefix + id)),
|
|
2617
2617
|
(chunk =
|
|
2618
2618
|
"string" === typeof chunk
|
|
2619
2619
|
? createResolvedModelChunk(response, chunk, id)
|
|
@@ -2714,6 +2714,10 @@ function getOutlinedModel(
|
|
|
2714
2714
|
case "fulfilled":
|
|
2715
2715
|
id = chunk.value;
|
|
2716
2716
|
chunk = chunk.reason;
|
|
2717
|
+
if (null !== chunk && "error" in chunk)
|
|
2718
|
+
throw Error(
|
|
2719
|
+
"Expected an initialized chunk but got an initialized stream chunk instead. This payload may have been submitted by an older version of React."
|
|
2720
|
+
);
|
|
2717
2721
|
for (
|
|
2718
2722
|
var localLength = 0,
|
|
2719
2723
|
rootArrayContexts = response._rootArrayContexts,
|
|
@@ -2796,23 +2800,20 @@ function getOutlinedModel(
|
|
|
2796
2800
|
function createMap(response, model) {
|
|
2797
2801
|
if (!isArrayImpl(model)) throw Error("Invalid Map initializer.");
|
|
2798
2802
|
if (!0 === model.$$consumed) throw Error("Already initialized Map.");
|
|
2799
|
-
response = new Map(model);
|
|
2800
2803
|
model.$$consumed = !0;
|
|
2801
|
-
return
|
|
2804
|
+
return new Map(model);
|
|
2802
2805
|
}
|
|
2803
2806
|
function createSet(response, model) {
|
|
2804
2807
|
if (!isArrayImpl(model)) throw Error("Invalid Set initializer.");
|
|
2805
2808
|
if (!0 === model.$$consumed) throw Error("Already initialized Set.");
|
|
2806
|
-
response = new Set(model);
|
|
2807
2809
|
model.$$consumed = !0;
|
|
2808
|
-
return
|
|
2810
|
+
return new Set(model);
|
|
2809
2811
|
}
|
|
2810
2812
|
function extractIterator(response, model) {
|
|
2811
2813
|
if (!isArrayImpl(model)) throw Error("Invalid Iterator initializer.");
|
|
2812
2814
|
if (!0 === model.$$consumed) throw Error("Already initialized Iterator.");
|
|
2813
|
-
response = model[Symbol.iterator]();
|
|
2814
2815
|
model.$$consumed = !0;
|
|
2815
|
-
return
|
|
2816
|
+
return model[Symbol.iterator]();
|
|
2816
2817
|
}
|
|
2817
2818
|
function createModel(response, model, parentObject, key) {
|
|
2818
2819
|
return "then" === key && "function" === typeof model ? null : model;
|
|
@@ -2850,7 +2851,7 @@ function parseTypedArray(
|
|
|
2850
2851
|
Error("Already initialized typed array.")
|
|
2851
2852
|
)
|
|
2852
2853
|
);
|
|
2853
|
-
reference = response._formData.get(key).arrayBuffer();
|
|
2854
|
+
reference = response._formData.data.get(key).arrayBuffer();
|
|
2854
2855
|
if (initializingHandler) {
|
|
2855
2856
|
var handler = initializingHandler;
|
|
2856
2857
|
handler.deps++;
|
|
@@ -2894,7 +2895,7 @@ function resolveStream(response, id, stream, controller) {
|
|
|
2894
2895
|
var chunks = response._chunks;
|
|
2895
2896
|
stream = new ReactPromise("fulfilled", stream, controller);
|
|
2896
2897
|
chunks.set(id, stream);
|
|
2897
|
-
response = response._formData.getAll(response._prefix + id);
|
|
2898
|
+
response = response._formData.data.getAll(response._prefix + id);
|
|
2898
2899
|
for (id = 0; id < response.length; id++)
|
|
2899
2900
|
(chunks = response[id]),
|
|
2900
2901
|
"string" === typeof chunks &&
|
|
@@ -3109,24 +3110,31 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
|
|
|
3109
3110
|
getOutlinedModel(response, arrayRoot, obj, key, null, createSet)
|
|
3110
3111
|
);
|
|
3111
3112
|
case "K":
|
|
3112
|
-
|
|
3113
|
-
obj = response._prefix +
|
|
3114
|
-
key =
|
|
3115
|
-
|
|
3116
|
-
|
|
3117
|
-
|
|
3118
|
-
|
|
3113
|
+
key = value.slice(2);
|
|
3114
|
+
obj = response._prefix + "_";
|
|
3115
|
+
key = obj + key + "_";
|
|
3116
|
+
arrayRoot = new FormData();
|
|
3117
|
+
for (response = response._formData; ; ) {
|
|
3118
|
+
value = response.keys;
|
|
3119
|
+
null === value &&
|
|
3120
|
+
((value = response.keys = Array.from(response.data.keys())),
|
|
3121
|
+
(response.keyPointer = 0));
|
|
3122
|
+
value = value[response.keyPointer];
|
|
3123
|
+
if (void 0 === value) break;
|
|
3124
|
+
if (value.startsWith(key)) {
|
|
3125
|
+
reference = response.data.getAll(value);
|
|
3119
3126
|
for (
|
|
3120
|
-
var
|
|
3121
|
-
|
|
3122
|
-
|
|
3123
|
-
j < entries.length;
|
|
3124
|
-
j++
|
|
3127
|
+
var referencedFormDataKey = value.slice(key.length), i = 0;
|
|
3128
|
+
i < reference.length;
|
|
3129
|
+
i++
|
|
3125
3130
|
)
|
|
3126
|
-
|
|
3127
|
-
response.delete(
|
|
3128
|
-
|
|
3129
|
-
|
|
3131
|
+
arrayRoot.append(referencedFormDataKey, reference[i]);
|
|
3132
|
+
response.data.delete(value);
|
|
3133
|
+
response.keyPointer++;
|
|
3134
|
+
} else if (value.startsWith(obj)) break;
|
|
3135
|
+
else response.keyPointer++;
|
|
3136
|
+
}
|
|
3137
|
+
return arrayRoot;
|
|
3130
3138
|
case "i":
|
|
3131
3139
|
return (
|
|
3132
3140
|
(arrayRoot = value.slice(2)),
|
|
@@ -3285,7 +3293,7 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
|
|
|
3285
3293
|
case "B":
|
|
3286
3294
|
return (
|
|
3287
3295
|
(obj = parseInt(value.slice(2), 16)),
|
|
3288
|
-
response._formData.get(response._prefix + obj)
|
|
3296
|
+
response._formData.data.get(response._prefix + obj)
|
|
3289
3297
|
);
|
|
3290
3298
|
case "R":
|
|
3291
3299
|
return parseReadableStream(response, value, void 0);
|
|
@@ -3313,7 +3321,7 @@ function createResponse(bundlerConfig, formFieldPrefix, temporaryReferences) {
|
|
|
3313
3321
|
return {
|
|
3314
3322
|
_bundlerConfig: bundlerConfig,
|
|
3315
3323
|
_prefix: formFieldPrefix,
|
|
3316
|
-
_formData: backingFormData,
|
|
3324
|
+
_formData: { data: backingFormData, keyPointer: -1, keys: null },
|
|
3317
3325
|
_chunks: chunks,
|
|
3318
3326
|
_closed: !1,
|
|
3319
3327
|
_closedReason: null,
|
|
@@ -3947,6 +3947,14 @@
|
|
|
3947
3947
|
if (hasOwnProperty.call(moduleExports, metadata[2]))
|
|
3948
3948
|
return moduleExports[metadata[2]];
|
|
3949
3949
|
}
|
|
3950
|
+
function appendBackingEntry(backingStore, key, value) {
|
|
3951
|
+
backingStore.data.append(key, value);
|
|
3952
|
+
value = backingStore.keys;
|
|
3953
|
+
null === value
|
|
3954
|
+
? ((backingStore.keys = Array.from(backingStore.data.keys())),
|
|
3955
|
+
(backingStore.keyPointer = 0))
|
|
3956
|
+
: value.push(key);
|
|
3957
|
+
}
|
|
3950
3958
|
function ReactPromise(status, value, reason) {
|
|
3951
3959
|
this.status = status;
|
|
3952
3960
|
this.value = value;
|
|
@@ -4259,7 +4267,7 @@
|
|
|
4259
4267
|
var chunks = response._chunks,
|
|
4260
4268
|
chunk = chunks.get(id);
|
|
4261
4269
|
chunk ||
|
|
4262
|
-
((chunk = response._formData.get(response._prefix + id)),
|
|
4270
|
+
((chunk = response._formData.data.get(response._prefix + id)),
|
|
4263
4271
|
(chunk =
|
|
4264
4272
|
"string" === typeof chunk
|
|
4265
4273
|
? new ReactPromise(
|
|
@@ -4371,6 +4379,10 @@
|
|
|
4371
4379
|
case "fulfilled":
|
|
4372
4380
|
id = chunk.value;
|
|
4373
4381
|
chunk = chunk.reason;
|
|
4382
|
+
if (null !== chunk && "error" in chunk)
|
|
4383
|
+
throw Error(
|
|
4384
|
+
"Expected an initialized chunk but got an initialized stream chunk instead. This payload may have been submitted by an older version of React."
|
|
4385
|
+
);
|
|
4374
4386
|
for (
|
|
4375
4387
|
var localLength = 0,
|
|
4376
4388
|
rootArrayContexts = response._rootArrayContexts,
|
|
@@ -4462,23 +4474,20 @@
|
|
|
4462
4474
|
function createMap(response, model) {
|
|
4463
4475
|
if (!isArrayImpl(model)) throw Error("Invalid Map initializer.");
|
|
4464
4476
|
if (!0 === model.$$consumed) throw Error("Already initialized Map.");
|
|
4465
|
-
response = new Map(model);
|
|
4466
4477
|
model.$$consumed = !0;
|
|
4467
|
-
return
|
|
4478
|
+
return new Map(model);
|
|
4468
4479
|
}
|
|
4469
4480
|
function createSet(response, model) {
|
|
4470
4481
|
if (!isArrayImpl(model)) throw Error("Invalid Set initializer.");
|
|
4471
4482
|
if (!0 === model.$$consumed) throw Error("Already initialized Set.");
|
|
4472
|
-
response = new Set(model);
|
|
4473
4483
|
model.$$consumed = !0;
|
|
4474
|
-
return
|
|
4484
|
+
return new Set(model);
|
|
4475
4485
|
}
|
|
4476
4486
|
function extractIterator(response, model) {
|
|
4477
4487
|
if (!isArrayImpl(model)) throw Error("Invalid Iterator initializer.");
|
|
4478
4488
|
if (!0 === model.$$consumed) throw Error("Already initialized Iterator.");
|
|
4479
|
-
response = model[Symbol.iterator]();
|
|
4480
4489
|
model.$$consumed = !0;
|
|
4481
|
-
return
|
|
4490
|
+
return model[Symbol.iterator]();
|
|
4482
4491
|
}
|
|
4483
4492
|
function createModel(response, model, parentObject, key) {
|
|
4484
4493
|
return "then" === key && "function" === typeof model ? null : model;
|
|
@@ -4516,7 +4525,7 @@
|
|
|
4516
4525
|
Error("Already initialized typed array.")
|
|
4517
4526
|
)
|
|
4518
4527
|
);
|
|
4519
|
-
reference = response._formData.get(key).arrayBuffer();
|
|
4528
|
+
reference = response._formData.data.get(key).arrayBuffer();
|
|
4520
4529
|
if (initializingHandler) {
|
|
4521
4530
|
var handler = initializingHandler;
|
|
4522
4531
|
handler.deps++;
|
|
@@ -4560,7 +4569,7 @@
|
|
|
4560
4569
|
var chunks = response._chunks;
|
|
4561
4570
|
stream = new ReactPromise("fulfilled", stream, controller);
|
|
4562
4571
|
chunks.set(id, stream);
|
|
4563
|
-
response = response._formData.getAll(response._prefix + id);
|
|
4572
|
+
response = response._formData.data.getAll(response._prefix + id);
|
|
4564
4573
|
for (id = 0; id < response.length; id++)
|
|
4565
4574
|
(chunks = response[id]),
|
|
4566
4575
|
"string" === typeof chunks &&
|
|
@@ -4780,24 +4789,33 @@
|
|
|
4780
4789
|
getOutlinedModel(response, arrayRoot, obj, key, null, createSet)
|
|
4781
4790
|
);
|
|
4782
4791
|
case "K":
|
|
4783
|
-
|
|
4784
|
-
obj = response._prefix +
|
|
4785
|
-
key =
|
|
4786
|
-
|
|
4787
|
-
|
|
4788
|
-
|
|
4789
|
-
|
|
4792
|
+
key = value.slice(2);
|
|
4793
|
+
obj = response._prefix + "_";
|
|
4794
|
+
key = obj + key + "_";
|
|
4795
|
+
arrayRoot = new FormData();
|
|
4796
|
+
for (response = response._formData; ; ) {
|
|
4797
|
+
value = response;
|
|
4798
|
+
reference = value.keys;
|
|
4799
|
+
null === reference &&
|
|
4800
|
+
((reference = value.keys = Array.from(value.data.keys())),
|
|
4801
|
+
(value.keyPointer = 0));
|
|
4802
|
+
value = reference[value.keyPointer];
|
|
4803
|
+
if (void 0 === value) break;
|
|
4804
|
+
if (value.startsWith(key)) {
|
|
4805
|
+
reference = response.data.getAll(value);
|
|
4790
4806
|
for (
|
|
4791
|
-
var
|
|
4792
|
-
|
|
4793
|
-
|
|
4794
|
-
j < entries.length;
|
|
4795
|
-
j++
|
|
4807
|
+
var referencedFormDataKey = value.slice(key.length), i = 0;
|
|
4808
|
+
i < reference.length;
|
|
4809
|
+
i++
|
|
4796
4810
|
)
|
|
4797
|
-
|
|
4798
|
-
response
|
|
4799
|
-
|
|
4800
|
-
|
|
4811
|
+
arrayRoot.append(referencedFormDataKey, reference[i]);
|
|
4812
|
+
reference = response;
|
|
4813
|
+
reference.data.delete(value);
|
|
4814
|
+
reference.keyPointer++;
|
|
4815
|
+
} else if (value.startsWith(obj)) break;
|
|
4816
|
+
else response.keyPointer++;
|
|
4817
|
+
}
|
|
4818
|
+
return arrayRoot;
|
|
4801
4819
|
case "i":
|
|
4802
4820
|
return (
|
|
4803
4821
|
(arrayRoot = value.slice(2)),
|
|
@@ -4966,7 +4984,7 @@
|
|
|
4966
4984
|
case "B":
|
|
4967
4985
|
return (
|
|
4968
4986
|
(obj = parseInt(value.slice(2), 16)),
|
|
4969
|
-
response._formData.get(response._prefix + obj)
|
|
4987
|
+
response._formData.data.get(response._prefix + obj)
|
|
4970
4988
|
);
|
|
4971
4989
|
case "R":
|
|
4972
4990
|
return parseReadableStream(response, value, void 0);
|
|
@@ -5005,7 +5023,7 @@
|
|
|
5005
5023
|
return {
|
|
5006
5024
|
_bundlerConfig: bundlerConfig,
|
|
5007
5025
|
_prefix: formFieldPrefix,
|
|
5008
|
-
_formData: backingFormData,
|
|
5026
|
+
_formData: { data: backingFormData, keyPointer: -1, keys: null },
|
|
5009
5027
|
_chunks: chunks,
|
|
5010
5028
|
_closed: !1,
|
|
5011
5029
|
_closedReason: null,
|
|
@@ -5721,7 +5739,7 @@
|
|
|
5721
5739
|
entry = entry[1];
|
|
5722
5740
|
if ("string" === typeof entry) {
|
|
5723
5741
|
var response = response$jscomp$0;
|
|
5724
|
-
response._formData
|
|
5742
|
+
appendBackingEntry(response._formData, name, entry);
|
|
5725
5743
|
var prefix = response._prefix;
|
|
5726
5744
|
if (name.startsWith(prefix)) {
|
|
5727
5745
|
var chunks = response._chunks;
|
|
@@ -5729,7 +5747,7 @@
|
|
|
5729
5747
|
(chunks = chunks.get(name)) &&
|
|
5730
5748
|
resolveModelChunk(response, chunks, entry, name);
|
|
5731
5749
|
}
|
|
5732
|
-
} else response$jscomp$0._formData
|
|
5750
|
+
} else appendBackingEntry(response$jscomp$0._formData, name, entry);
|
|
5733
5751
|
iterator.next().then(progress, error);
|
|
5734
5752
|
}
|
|
5735
5753
|
}
|
|
@@ -2246,6 +2246,14 @@ function requireModule(metadata) {
|
|
|
2246
2246
|
if (hasOwnProperty.call(moduleExports, metadata[2]))
|
|
2247
2247
|
return moduleExports[metadata[2]];
|
|
2248
2248
|
}
|
|
2249
|
+
function appendBackingEntry(backingStore, key, value) {
|
|
2250
|
+
backingStore.data.append(key, value);
|
|
2251
|
+
value = backingStore.keys;
|
|
2252
|
+
null === value
|
|
2253
|
+
? ((backingStore.keys = Array.from(backingStore.data.keys())),
|
|
2254
|
+
(backingStore.keyPointer = 0))
|
|
2255
|
+
: value.push(key);
|
|
2256
|
+
}
|
|
2249
2257
|
var RESPONSE_SYMBOL = Symbol();
|
|
2250
2258
|
function ReactPromise(status, value, reason) {
|
|
2251
2259
|
this.status = status;
|
|
@@ -2618,7 +2626,7 @@ function getChunk(response, id) {
|
|
|
2618
2626
|
var chunks = response._chunks,
|
|
2619
2627
|
chunk = chunks.get(id);
|
|
2620
2628
|
chunk ||
|
|
2621
|
-
((chunk = response._formData.get(response._prefix + id)),
|
|
2629
|
+
((chunk = response._formData.data.get(response._prefix + id)),
|
|
2622
2630
|
(chunk =
|
|
2623
2631
|
"string" === typeof chunk
|
|
2624
2632
|
? createResolvedModelChunk(response, chunk, id)
|
|
@@ -2719,6 +2727,10 @@ function getOutlinedModel(
|
|
|
2719
2727
|
case "fulfilled":
|
|
2720
2728
|
id = chunk.value;
|
|
2721
2729
|
chunk = chunk.reason;
|
|
2730
|
+
if (null !== chunk && "error" in chunk)
|
|
2731
|
+
throw Error(
|
|
2732
|
+
"Expected an initialized chunk but got an initialized stream chunk instead. This payload may have been submitted by an older version of React."
|
|
2733
|
+
);
|
|
2722
2734
|
for (
|
|
2723
2735
|
var localLength = 0,
|
|
2724
2736
|
rootArrayContexts = response._rootArrayContexts,
|
|
@@ -2801,23 +2813,20 @@ function getOutlinedModel(
|
|
|
2801
2813
|
function createMap(response, model) {
|
|
2802
2814
|
if (!isArrayImpl(model)) throw Error("Invalid Map initializer.");
|
|
2803
2815
|
if (!0 === model.$$consumed) throw Error("Already initialized Map.");
|
|
2804
|
-
response = new Map(model);
|
|
2805
2816
|
model.$$consumed = !0;
|
|
2806
|
-
return
|
|
2817
|
+
return new Map(model);
|
|
2807
2818
|
}
|
|
2808
2819
|
function createSet(response, model) {
|
|
2809
2820
|
if (!isArrayImpl(model)) throw Error("Invalid Set initializer.");
|
|
2810
2821
|
if (!0 === model.$$consumed) throw Error("Already initialized Set.");
|
|
2811
|
-
response = new Set(model);
|
|
2812
2822
|
model.$$consumed = !0;
|
|
2813
|
-
return
|
|
2823
|
+
return new Set(model);
|
|
2814
2824
|
}
|
|
2815
2825
|
function extractIterator(response, model) {
|
|
2816
2826
|
if (!isArrayImpl(model)) throw Error("Invalid Iterator initializer.");
|
|
2817
2827
|
if (!0 === model.$$consumed) throw Error("Already initialized Iterator.");
|
|
2818
|
-
response = model[Symbol.iterator]();
|
|
2819
2828
|
model.$$consumed = !0;
|
|
2820
|
-
return
|
|
2829
|
+
return model[Symbol.iterator]();
|
|
2821
2830
|
}
|
|
2822
2831
|
function createModel(response, model, parentObject, key) {
|
|
2823
2832
|
return "then" === key && "function" === typeof model ? null : model;
|
|
@@ -2855,7 +2864,7 @@ function parseTypedArray(
|
|
|
2855
2864
|
Error("Already initialized typed array.")
|
|
2856
2865
|
)
|
|
2857
2866
|
);
|
|
2858
|
-
reference = response._formData.get(key).arrayBuffer();
|
|
2867
|
+
reference = response._formData.data.get(key).arrayBuffer();
|
|
2859
2868
|
if (initializingHandler) {
|
|
2860
2869
|
var handler = initializingHandler;
|
|
2861
2870
|
handler.deps++;
|
|
@@ -2899,7 +2908,7 @@ function resolveStream(response, id, stream, controller) {
|
|
|
2899
2908
|
var chunks = response._chunks;
|
|
2900
2909
|
stream = new ReactPromise("fulfilled", stream, controller);
|
|
2901
2910
|
chunks.set(id, stream);
|
|
2902
|
-
response = response._formData.getAll(response._prefix + id);
|
|
2911
|
+
response = response._formData.data.getAll(response._prefix + id);
|
|
2903
2912
|
for (id = 0; id < response.length; id++)
|
|
2904
2913
|
(chunks = response[id]),
|
|
2905
2914
|
"string" === typeof chunks &&
|
|
@@ -3114,24 +3123,31 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
|
|
|
3114
3123
|
getOutlinedModel(response, arrayRoot, obj, key, null, createSet)
|
|
3115
3124
|
);
|
|
3116
3125
|
case "K":
|
|
3117
|
-
|
|
3118
|
-
obj = response._prefix +
|
|
3119
|
-
key =
|
|
3120
|
-
|
|
3121
|
-
|
|
3122
|
-
|
|
3123
|
-
|
|
3126
|
+
key = value.slice(2);
|
|
3127
|
+
obj = response._prefix + "_";
|
|
3128
|
+
key = obj + key + "_";
|
|
3129
|
+
arrayRoot = new FormData();
|
|
3130
|
+
for (response = response._formData; ; ) {
|
|
3131
|
+
value = response.keys;
|
|
3132
|
+
null === value &&
|
|
3133
|
+
((value = response.keys = Array.from(response.data.keys())),
|
|
3134
|
+
(response.keyPointer = 0));
|
|
3135
|
+
value = value[response.keyPointer];
|
|
3136
|
+
if (void 0 === value) break;
|
|
3137
|
+
if (value.startsWith(key)) {
|
|
3138
|
+
reference = response.data.getAll(value);
|
|
3124
3139
|
for (
|
|
3125
|
-
var
|
|
3126
|
-
|
|
3127
|
-
|
|
3128
|
-
j < entries.length;
|
|
3129
|
-
j++
|
|
3140
|
+
var referencedFormDataKey = value.slice(key.length), i = 0;
|
|
3141
|
+
i < reference.length;
|
|
3142
|
+
i++
|
|
3130
3143
|
)
|
|
3131
|
-
|
|
3132
|
-
response.delete(
|
|
3133
|
-
|
|
3134
|
-
|
|
3144
|
+
arrayRoot.append(referencedFormDataKey, reference[i]);
|
|
3145
|
+
response.data.delete(value);
|
|
3146
|
+
response.keyPointer++;
|
|
3147
|
+
} else if (value.startsWith(obj)) break;
|
|
3148
|
+
else response.keyPointer++;
|
|
3149
|
+
}
|
|
3150
|
+
return arrayRoot;
|
|
3135
3151
|
case "i":
|
|
3136
3152
|
return (
|
|
3137
3153
|
(arrayRoot = value.slice(2)),
|
|
@@ -3290,7 +3306,7 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
|
|
|
3290
3306
|
case "B":
|
|
3291
3307
|
return (
|
|
3292
3308
|
(obj = parseInt(value.slice(2), 16)),
|
|
3293
|
-
response._formData.get(response._prefix + obj)
|
|
3309
|
+
response._formData.data.get(response._prefix + obj)
|
|
3294
3310
|
);
|
|
3295
3311
|
case "R":
|
|
3296
3312
|
return parseReadableStream(response, value, void 0);
|
|
@@ -3318,7 +3334,7 @@ function createResponse(bundlerConfig, formFieldPrefix, temporaryReferences) {
|
|
|
3318
3334
|
return {
|
|
3319
3335
|
_bundlerConfig: bundlerConfig,
|
|
3320
3336
|
_prefix: formFieldPrefix,
|
|
3321
|
-
_formData: backingFormData,
|
|
3337
|
+
_formData: { data: backingFormData, keyPointer: -1, keys: null },
|
|
3322
3338
|
_chunks: chunks,
|
|
3323
3339
|
_closed: !1,
|
|
3324
3340
|
_closedReason: null,
|
|
@@ -3454,7 +3470,7 @@ exports.decodeReplyFromAsyncIterable = function (
|
|
|
3454
3470
|
var name = entry[0];
|
|
3455
3471
|
entry = entry[1];
|
|
3456
3472
|
if ("string" === typeof entry) {
|
|
3457
|
-
response._formData
|
|
3473
|
+
appendBackingEntry(response._formData, name, entry);
|
|
3458
3474
|
var prefix = response._prefix;
|
|
3459
3475
|
if (name.startsWith(prefix)) {
|
|
3460
3476
|
var chunks = response._chunks;
|
|
@@ -3462,7 +3478,7 @@ exports.decodeReplyFromAsyncIterable = function (
|
|
|
3462
3478
|
(chunks = chunks.get(name)) &&
|
|
3463
3479
|
resolveModelChunk(response, chunks, entry, name);
|
|
3464
3480
|
}
|
|
3465
|
-
} else response._formData
|
|
3481
|
+
} else appendBackingEntry(response._formData, name, entry);
|
|
3466
3482
|
iterator.next().then(progress, error);
|
|
3467
3483
|
}
|
|
3468
3484
|
}
|
|
@@ -4350,6 +4350,14 @@
|
|
|
4350
4350
|
if (hasOwnProperty.call(moduleExports, metadata[2]))
|
|
4351
4351
|
return moduleExports[metadata[2]];
|
|
4352
4352
|
}
|
|
4353
|
+
function appendBackingEntry(backingStore, key, value) {
|
|
4354
|
+
backingStore.data.append(key, value);
|
|
4355
|
+
value = backingStore.keys;
|
|
4356
|
+
null === value
|
|
4357
|
+
? ((backingStore.keys = Array.from(backingStore.data.keys())),
|
|
4358
|
+
(backingStore.keyPointer = 0))
|
|
4359
|
+
: value.push(key);
|
|
4360
|
+
}
|
|
4353
4361
|
function ReactPromise(status, value, reason) {
|
|
4354
4362
|
this.status = status;
|
|
4355
4363
|
this.value = value;
|
|
@@ -4662,7 +4670,7 @@
|
|
|
4662
4670
|
var chunks = response._chunks,
|
|
4663
4671
|
chunk = chunks.get(id);
|
|
4664
4672
|
chunk ||
|
|
4665
|
-
((chunk = response._formData.get(response._prefix + id)),
|
|
4673
|
+
((chunk = response._formData.data.get(response._prefix + id)),
|
|
4666
4674
|
(chunk =
|
|
4667
4675
|
"string" === typeof chunk
|
|
4668
4676
|
? new ReactPromise(
|
|
@@ -4774,6 +4782,10 @@
|
|
|
4774
4782
|
case "fulfilled":
|
|
4775
4783
|
id = chunk.value;
|
|
4776
4784
|
chunk = chunk.reason;
|
|
4785
|
+
if (null !== chunk && "error" in chunk)
|
|
4786
|
+
throw Error(
|
|
4787
|
+
"Expected an initialized chunk but got an initialized stream chunk instead. This payload may have been submitted by an older version of React."
|
|
4788
|
+
);
|
|
4777
4789
|
for (
|
|
4778
4790
|
var localLength = 0,
|
|
4779
4791
|
rootArrayContexts = response._rootArrayContexts,
|
|
@@ -4865,23 +4877,20 @@
|
|
|
4865
4877
|
function createMap(response, model) {
|
|
4866
4878
|
if (!isArrayImpl(model)) throw Error("Invalid Map initializer.");
|
|
4867
4879
|
if (!0 === model.$$consumed) throw Error("Already initialized Map.");
|
|
4868
|
-
response = new Map(model);
|
|
4869
4880
|
model.$$consumed = !0;
|
|
4870
|
-
return
|
|
4881
|
+
return new Map(model);
|
|
4871
4882
|
}
|
|
4872
4883
|
function createSet(response, model) {
|
|
4873
4884
|
if (!isArrayImpl(model)) throw Error("Invalid Set initializer.");
|
|
4874
4885
|
if (!0 === model.$$consumed) throw Error("Already initialized Set.");
|
|
4875
|
-
response = new Set(model);
|
|
4876
4886
|
model.$$consumed = !0;
|
|
4877
|
-
return
|
|
4887
|
+
return new Set(model);
|
|
4878
4888
|
}
|
|
4879
4889
|
function extractIterator(response, model) {
|
|
4880
4890
|
if (!isArrayImpl(model)) throw Error("Invalid Iterator initializer.");
|
|
4881
4891
|
if (!0 === model.$$consumed) throw Error("Already initialized Iterator.");
|
|
4882
|
-
response = model[Symbol.iterator]();
|
|
4883
4892
|
model.$$consumed = !0;
|
|
4884
|
-
return
|
|
4893
|
+
return model[Symbol.iterator]();
|
|
4885
4894
|
}
|
|
4886
4895
|
function createModel(response, model, parentObject, key) {
|
|
4887
4896
|
return "then" === key && "function" === typeof model ? null : model;
|
|
@@ -4919,7 +4928,7 @@
|
|
|
4919
4928
|
Error("Already initialized typed array.")
|
|
4920
4929
|
)
|
|
4921
4930
|
);
|
|
4922
|
-
reference = response._formData.get(key).arrayBuffer();
|
|
4931
|
+
reference = response._formData.data.get(key).arrayBuffer();
|
|
4923
4932
|
if (initializingHandler) {
|
|
4924
4933
|
var handler = initializingHandler;
|
|
4925
4934
|
handler.deps++;
|
|
@@ -4963,7 +4972,7 @@
|
|
|
4963
4972
|
var chunks = response._chunks;
|
|
4964
4973
|
stream = new ReactPromise("fulfilled", stream, controller);
|
|
4965
4974
|
chunks.set(id, stream);
|
|
4966
|
-
response = response._formData.getAll(response._prefix + id);
|
|
4975
|
+
response = response._formData.data.getAll(response._prefix + id);
|
|
4967
4976
|
for (id = 0; id < response.length; id++)
|
|
4968
4977
|
(chunks = response[id]),
|
|
4969
4978
|
"string" === typeof chunks &&
|
|
@@ -5183,24 +5192,33 @@
|
|
|
5183
5192
|
getOutlinedModel(response, arrayRoot, obj, key, null, createSet)
|
|
5184
5193
|
);
|
|
5185
5194
|
case "K":
|
|
5186
|
-
|
|
5187
|
-
obj = response._prefix +
|
|
5188
|
-
key =
|
|
5189
|
-
|
|
5190
|
-
|
|
5191
|
-
|
|
5192
|
-
|
|
5195
|
+
key = value.slice(2);
|
|
5196
|
+
obj = response._prefix + "_";
|
|
5197
|
+
key = obj + key + "_";
|
|
5198
|
+
arrayRoot = new FormData();
|
|
5199
|
+
for (response = response._formData; ; ) {
|
|
5200
|
+
value = response;
|
|
5201
|
+
reference = value.keys;
|
|
5202
|
+
null === reference &&
|
|
5203
|
+
((reference = value.keys = Array.from(value.data.keys())),
|
|
5204
|
+
(value.keyPointer = 0));
|
|
5205
|
+
value = reference[value.keyPointer];
|
|
5206
|
+
if (void 0 === value) break;
|
|
5207
|
+
if (value.startsWith(key)) {
|
|
5208
|
+
reference = response.data.getAll(value);
|
|
5193
5209
|
for (
|
|
5194
|
-
var
|
|
5195
|
-
|
|
5196
|
-
|
|
5197
|
-
j < entries.length;
|
|
5198
|
-
j++
|
|
5210
|
+
var referencedFormDataKey = value.slice(key.length), i = 0;
|
|
5211
|
+
i < reference.length;
|
|
5212
|
+
i++
|
|
5199
5213
|
)
|
|
5200
|
-
|
|
5201
|
-
response
|
|
5202
|
-
|
|
5203
|
-
|
|
5214
|
+
arrayRoot.append(referencedFormDataKey, reference[i]);
|
|
5215
|
+
reference = response;
|
|
5216
|
+
reference.data.delete(value);
|
|
5217
|
+
reference.keyPointer++;
|
|
5218
|
+
} else if (value.startsWith(obj)) break;
|
|
5219
|
+
else response.keyPointer++;
|
|
5220
|
+
}
|
|
5221
|
+
return arrayRoot;
|
|
5204
5222
|
case "i":
|
|
5205
5223
|
return (
|
|
5206
5224
|
(arrayRoot = value.slice(2)),
|
|
@@ -5369,7 +5387,7 @@
|
|
|
5369
5387
|
case "B":
|
|
5370
5388
|
return (
|
|
5371
5389
|
(obj = parseInt(value.slice(2), 16)),
|
|
5372
|
-
response._formData.get(response._prefix + obj)
|
|
5390
|
+
response._formData.data.get(response._prefix + obj)
|
|
5373
5391
|
);
|
|
5374
5392
|
case "R":
|
|
5375
5393
|
return parseReadableStream(response, value, void 0);
|
|
@@ -5408,7 +5426,7 @@
|
|
|
5408
5426
|
return {
|
|
5409
5427
|
_bundlerConfig: bundlerConfig,
|
|
5410
5428
|
_prefix: formFieldPrefix,
|
|
5411
|
-
_formData: backingFormData,
|
|
5429
|
+
_formData: { data: backingFormData, keyPointer: -1, keys: null },
|
|
5412
5430
|
_chunks: chunks,
|
|
5413
5431
|
_closed: !1,
|
|
5414
5432
|
_closedReason: null,
|
|
@@ -5418,7 +5436,7 @@
|
|
|
5418
5436
|
};
|
|
5419
5437
|
}
|
|
5420
5438
|
function resolveField(response, key, value) {
|
|
5421
|
-
response._formData
|
|
5439
|
+
appendBackingEntry(response._formData, key, value);
|
|
5422
5440
|
var prefix = response._prefix;
|
|
5423
5441
|
if (key.startsWith(prefix)) {
|
|
5424
5442
|
var chunks = response._chunks;
|
|
@@ -6347,7 +6365,7 @@
|
|
|
6347
6365
|
_entry$value = _entry$value[1];
|
|
6348
6366
|
"string" === typeof _entry$value
|
|
6349
6367
|
? resolveField(response, entry, _entry$value)
|
|
6350
|
-
: response._formData
|
|
6368
|
+
: appendBackingEntry(response._formData, entry, _entry$value);
|
|
6351
6369
|
iterator.next().then(progress, error);
|
|
6352
6370
|
}
|
|
6353
6371
|
}
|
|
@@ -6401,16 +6419,22 @@
|
|
|
6401
6419
|
);
|
|
6402
6420
|
else {
|
|
6403
6421
|
pendingFiles++;
|
|
6404
|
-
var
|
|
6422
|
+
var JSCompiler_object_inline_chunks_266 = [];
|
|
6405
6423
|
value.on("data", function (chunk) {
|
|
6406
|
-
|
|
6424
|
+
JSCompiler_object_inline_chunks_266.push(chunk);
|
|
6407
6425
|
});
|
|
6408
6426
|
value.on("end", function () {
|
|
6409
6427
|
try {
|
|
6410
|
-
var blob = new Blob(
|
|
6411
|
-
|
|
6412
|
-
|
|
6413
|
-
|
|
6428
|
+
var blob = new Blob(JSCompiler_object_inline_chunks_266, {
|
|
6429
|
+
type: mimeType
|
|
6430
|
+
}),
|
|
6431
|
+
backingStore = response._formData;
|
|
6432
|
+
backingStore.data.append(name, blob, filename);
|
|
6433
|
+
var keys = backingStore.keys;
|
|
6434
|
+
null === keys
|
|
6435
|
+
? ((backingStore.keys = Array.from(backingStore.data.keys())),
|
|
6436
|
+
(backingStore.keyPointer = 0))
|
|
6437
|
+
: keys.push(name);
|
|
6414
6438
|
pendingFiles--;
|
|
6415
6439
|
if (0 === pendingFiles) {
|
|
6416
6440
|
for (blob = 0; blob < queuedFields.length; blob += 2)
|
|
@@ -2275,6 +2275,14 @@ function requireModule(metadata) {
|
|
|
2275
2275
|
if (hasOwnProperty.call(moduleExports, metadata[2]))
|
|
2276
2276
|
return moduleExports[metadata[2]];
|
|
2277
2277
|
}
|
|
2278
|
+
function appendBackingEntry(backingStore, key, value) {
|
|
2279
|
+
backingStore.data.append(key, value);
|
|
2280
|
+
value = backingStore.keys;
|
|
2281
|
+
null === value
|
|
2282
|
+
? ((backingStore.keys = Array.from(backingStore.data.keys())),
|
|
2283
|
+
(backingStore.keyPointer = 0))
|
|
2284
|
+
: value.push(key);
|
|
2285
|
+
}
|
|
2278
2286
|
var RESPONSE_SYMBOL = Symbol();
|
|
2279
2287
|
function ReactPromise(status, value, reason) {
|
|
2280
2288
|
this.status = status;
|
|
@@ -2647,7 +2655,7 @@ function getChunk(response, id) {
|
|
|
2647
2655
|
var chunks = response._chunks,
|
|
2648
2656
|
chunk = chunks.get(id);
|
|
2649
2657
|
chunk ||
|
|
2650
|
-
((chunk = response._formData.get(response._prefix + id)),
|
|
2658
|
+
((chunk = response._formData.data.get(response._prefix + id)),
|
|
2651
2659
|
(chunk =
|
|
2652
2660
|
"string" === typeof chunk
|
|
2653
2661
|
? createResolvedModelChunk(response, chunk, id)
|
|
@@ -2748,6 +2756,10 @@ function getOutlinedModel(
|
|
|
2748
2756
|
case "fulfilled":
|
|
2749
2757
|
id = chunk.value;
|
|
2750
2758
|
chunk = chunk.reason;
|
|
2759
|
+
if (null !== chunk && "error" in chunk)
|
|
2760
|
+
throw Error(
|
|
2761
|
+
"Expected an initialized chunk but got an initialized stream chunk instead. This payload may have been submitted by an older version of React."
|
|
2762
|
+
);
|
|
2751
2763
|
for (
|
|
2752
2764
|
var localLength = 0,
|
|
2753
2765
|
rootArrayContexts = response._rootArrayContexts,
|
|
@@ -2830,23 +2842,20 @@ function getOutlinedModel(
|
|
|
2830
2842
|
function createMap(response, model) {
|
|
2831
2843
|
if (!isArrayImpl(model)) throw Error("Invalid Map initializer.");
|
|
2832
2844
|
if (!0 === model.$$consumed) throw Error("Already initialized Map.");
|
|
2833
|
-
response = new Map(model);
|
|
2834
2845
|
model.$$consumed = !0;
|
|
2835
|
-
return
|
|
2846
|
+
return new Map(model);
|
|
2836
2847
|
}
|
|
2837
2848
|
function createSet(response, model) {
|
|
2838
2849
|
if (!isArrayImpl(model)) throw Error("Invalid Set initializer.");
|
|
2839
2850
|
if (!0 === model.$$consumed) throw Error("Already initialized Set.");
|
|
2840
|
-
response = new Set(model);
|
|
2841
2851
|
model.$$consumed = !0;
|
|
2842
|
-
return
|
|
2852
|
+
return new Set(model);
|
|
2843
2853
|
}
|
|
2844
2854
|
function extractIterator(response, model) {
|
|
2845
2855
|
if (!isArrayImpl(model)) throw Error("Invalid Iterator initializer.");
|
|
2846
2856
|
if (!0 === model.$$consumed) throw Error("Already initialized Iterator.");
|
|
2847
|
-
response = model[Symbol.iterator]();
|
|
2848
2857
|
model.$$consumed = !0;
|
|
2849
|
-
return
|
|
2858
|
+
return model[Symbol.iterator]();
|
|
2850
2859
|
}
|
|
2851
2860
|
function createModel(response, model, parentObject, key) {
|
|
2852
2861
|
return "then" === key && "function" === typeof model ? null : model;
|
|
@@ -2884,7 +2893,7 @@ function parseTypedArray(
|
|
|
2884
2893
|
Error("Already initialized typed array.")
|
|
2885
2894
|
)
|
|
2886
2895
|
);
|
|
2887
|
-
reference = response._formData.get(key).arrayBuffer();
|
|
2896
|
+
reference = response._formData.data.get(key).arrayBuffer();
|
|
2888
2897
|
if (initializingHandler) {
|
|
2889
2898
|
var handler = initializingHandler;
|
|
2890
2899
|
handler.deps++;
|
|
@@ -2928,7 +2937,7 @@ function resolveStream(response, id, stream, controller) {
|
|
|
2928
2937
|
var chunks = response._chunks;
|
|
2929
2938
|
stream = new ReactPromise("fulfilled", stream, controller);
|
|
2930
2939
|
chunks.set(id, stream);
|
|
2931
|
-
response = response._formData.getAll(response._prefix + id);
|
|
2940
|
+
response = response._formData.data.getAll(response._prefix + id);
|
|
2932
2941
|
for (id = 0; id < response.length; id++)
|
|
2933
2942
|
(chunks = response[id]),
|
|
2934
2943
|
"string" === typeof chunks &&
|
|
@@ -3143,24 +3152,31 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
|
|
|
3143
3152
|
getOutlinedModel(response, arrayRoot, obj, key, null, createSet)
|
|
3144
3153
|
);
|
|
3145
3154
|
case "K":
|
|
3146
|
-
|
|
3147
|
-
obj = response._prefix +
|
|
3148
|
-
key =
|
|
3149
|
-
|
|
3150
|
-
|
|
3151
|
-
|
|
3152
|
-
|
|
3155
|
+
key = value.slice(2);
|
|
3156
|
+
obj = response._prefix + "_";
|
|
3157
|
+
key = obj + key + "_";
|
|
3158
|
+
arrayRoot = new FormData();
|
|
3159
|
+
for (response = response._formData; ; ) {
|
|
3160
|
+
value = response.keys;
|
|
3161
|
+
null === value &&
|
|
3162
|
+
((value = response.keys = Array.from(response.data.keys())),
|
|
3163
|
+
(response.keyPointer = 0));
|
|
3164
|
+
value = value[response.keyPointer];
|
|
3165
|
+
if (void 0 === value) break;
|
|
3166
|
+
if (value.startsWith(key)) {
|
|
3167
|
+
reference = response.data.getAll(value);
|
|
3153
3168
|
for (
|
|
3154
|
-
var
|
|
3155
|
-
|
|
3156
|
-
|
|
3157
|
-
j < entries.length;
|
|
3158
|
-
j++
|
|
3169
|
+
var referencedFormDataKey = value.slice(key.length), i = 0;
|
|
3170
|
+
i < reference.length;
|
|
3171
|
+
i++
|
|
3159
3172
|
)
|
|
3160
|
-
|
|
3161
|
-
response.delete(
|
|
3162
|
-
|
|
3163
|
-
|
|
3173
|
+
arrayRoot.append(referencedFormDataKey, reference[i]);
|
|
3174
|
+
response.data.delete(value);
|
|
3175
|
+
response.keyPointer++;
|
|
3176
|
+
} else if (value.startsWith(obj)) break;
|
|
3177
|
+
else response.keyPointer++;
|
|
3178
|
+
}
|
|
3179
|
+
return arrayRoot;
|
|
3164
3180
|
case "i":
|
|
3165
3181
|
return (
|
|
3166
3182
|
(arrayRoot = value.slice(2)),
|
|
@@ -3319,7 +3335,7 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
|
|
|
3319
3335
|
case "B":
|
|
3320
3336
|
return (
|
|
3321
3337
|
(obj = parseInt(value.slice(2), 16)),
|
|
3322
|
-
response._formData.get(response._prefix + obj)
|
|
3338
|
+
response._formData.data.get(response._prefix + obj)
|
|
3323
3339
|
);
|
|
3324
3340
|
case "R":
|
|
3325
3341
|
return parseReadableStream(response, value, void 0);
|
|
@@ -3347,7 +3363,7 @@ function createResponse(bundlerConfig, formFieldPrefix, temporaryReferences) {
|
|
|
3347
3363
|
return {
|
|
3348
3364
|
_bundlerConfig: bundlerConfig,
|
|
3349
3365
|
_prefix: formFieldPrefix,
|
|
3350
|
-
_formData: backingFormData,
|
|
3366
|
+
_formData: { data: backingFormData, keyPointer: -1, keys: null },
|
|
3351
3367
|
_chunks: chunks,
|
|
3352
3368
|
_closed: !1,
|
|
3353
3369
|
_closedReason: null,
|
|
@@ -3357,7 +3373,7 @@ function createResponse(bundlerConfig, formFieldPrefix, temporaryReferences) {
|
|
|
3357
3373
|
};
|
|
3358
3374
|
}
|
|
3359
3375
|
function resolveField(response, key, value) {
|
|
3360
|
-
response._formData
|
|
3376
|
+
appendBackingEntry(response._formData, key, value);
|
|
3361
3377
|
var prefix = response._prefix;
|
|
3362
3378
|
if (key.startsWith(prefix)) {
|
|
3363
3379
|
var chunks = response._chunks;
|
|
@@ -3535,7 +3551,7 @@ exports.decodeReplyFromAsyncIterable = function (
|
|
|
3535
3551
|
_entry$value = _entry$value[1];
|
|
3536
3552
|
"string" === typeof _entry$value
|
|
3537
3553
|
? resolveField(response, entry, _entry$value)
|
|
3538
|
-
: response._formData
|
|
3554
|
+
: appendBackingEntry(response._formData, entry, _entry$value);
|
|
3539
3555
|
iterator.next().then(progress, error);
|
|
3540
3556
|
}
|
|
3541
3557
|
}
|
|
@@ -3585,16 +3601,22 @@ exports.decodeReplyFromBusboy = function (busboyStream, turbopackMap, options) {
|
|
|
3585
3601
|
);
|
|
3586
3602
|
else {
|
|
3587
3603
|
pendingFiles++;
|
|
3588
|
-
var
|
|
3604
|
+
var JSCompiler_object_inline_chunks_296 = [];
|
|
3589
3605
|
value.on("data", function (chunk) {
|
|
3590
|
-
|
|
3606
|
+
JSCompiler_object_inline_chunks_296.push(chunk);
|
|
3591
3607
|
});
|
|
3592
3608
|
value.on("end", function () {
|
|
3593
3609
|
try {
|
|
3594
|
-
var blob = new Blob(
|
|
3595
|
-
|
|
3596
|
-
|
|
3597
|
-
|
|
3610
|
+
var blob = new Blob(JSCompiler_object_inline_chunks_296, {
|
|
3611
|
+
type: mimeType
|
|
3612
|
+
}),
|
|
3613
|
+
backingStore = response._formData;
|
|
3614
|
+
backingStore.data.append(name, blob, filename);
|
|
3615
|
+
var keys = backingStore.keys;
|
|
3616
|
+
null === keys
|
|
3617
|
+
? ((backingStore.keys = Array.from(backingStore.data.keys())),
|
|
3618
|
+
(backingStore.keyPointer = 0))
|
|
3619
|
+
: keys.push(name);
|
|
3598
3620
|
pendingFiles--;
|
|
3599
3621
|
if (0 === pendingFiles) {
|
|
3600
3622
|
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.2.
|
|
4
|
+
"version": "19.2.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.2.
|
|
82
|
-
"react-dom": "^19.2.
|
|
81
|
+
"react": "^19.2.6",
|
|
82
|
+
"react-dom": "^19.2.6"
|
|
83
83
|
},
|
|
84
84
|
"dependencies": {
|
|
85
85
|
"acorn-loose": "^8.3.0",
|