react-server-dom-webpack 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-webpack-client.browser.development.js +3 -3
- package/cjs/react-server-dom-webpack-client.browser.production.js +1 -1
- package/cjs/react-server-dom-webpack-client.edge.development.js +1 -1
- package/cjs/react-server-dom-webpack-client.edge.production.js +1 -1
- package/cjs/react-server-dom-webpack-client.node.development.js +1 -1
- package/cjs/react-server-dom-webpack-client.node.production.js +1 -1
- package/cjs/react-server-dom-webpack-server.browser.development.js +37 -27
- package/cjs/react-server-dom-webpack-server.browser.production.js +35 -27
- package/cjs/react-server-dom-webpack-server.edge.development.js +47 -29
- package/cjs/react-server-dom-webpack-server.edge.production.js +45 -29
- package/cjs/react-server-dom-webpack-server.node.development.js +59 -35
- package/cjs/react-server-dom-webpack-server.node.production.js +57 -35
- package/package.json +3 -3
|
@@ -541,7 +541,7 @@
|
|
|
541
541
|
null === formData && (formData = new FormData());
|
|
542
542
|
var _data3 = formData;
|
|
543
543
|
key = nextPartId++;
|
|
544
|
-
var prefix = formFieldPrefix + key + "_";
|
|
544
|
+
var prefix = formFieldPrefix + "_" + key + "_";
|
|
545
545
|
value.forEach(function (originalValue, originalKey) {
|
|
546
546
|
_data3.append(prefix + originalKey, originalValue);
|
|
547
547
|
});
|
|
@@ -4901,10 +4901,10 @@
|
|
|
4901
4901
|
return hook.checkDCE ? !0 : !1;
|
|
4902
4902
|
})({
|
|
4903
4903
|
bundleType: 1,
|
|
4904
|
-
version: "19.2.
|
|
4904
|
+
version: "19.2.6",
|
|
4905
4905
|
rendererPackageName: "react-server-dom-webpack",
|
|
4906
4906
|
currentDispatcherRef: ReactSharedInternals,
|
|
4907
|
-
reconcilerVersion: "19.2.
|
|
4907
|
+
reconcilerVersion: "19.2.6",
|
|
4908
4908
|
getCurrentComponentInfo: function () {
|
|
4909
4909
|
return currentOwnerInDEV;
|
|
4910
4910
|
}
|
|
@@ -346,7 +346,7 @@ function processReply(
|
|
|
346
346
|
null === formData && (formData = new FormData());
|
|
347
347
|
var data$31 = formData;
|
|
348
348
|
key = nextPartId++;
|
|
349
|
-
var prefix = formFieldPrefix + key + "_";
|
|
349
|
+
var prefix = formFieldPrefix + "_" + key + "_";
|
|
350
350
|
value.forEach(function (originalValue, originalKey) {
|
|
351
351
|
data$31.append(prefix + originalKey, originalValue);
|
|
352
352
|
});
|
|
@@ -562,7 +562,7 @@
|
|
|
562
562
|
null === formData && (formData = new FormData());
|
|
563
563
|
var _data3 = formData;
|
|
564
564
|
key = nextPartId++;
|
|
565
|
-
var prefix = formFieldPrefix + key + "_";
|
|
565
|
+
var prefix = formFieldPrefix + "_" + key + "_";
|
|
566
566
|
value.forEach(function (originalValue, originalKey) {
|
|
567
567
|
_data3.append(prefix + originalKey, originalValue);
|
|
568
568
|
});
|
|
@@ -358,7 +358,7 @@ function processReply(
|
|
|
358
358
|
null === formData && (formData = new FormData());
|
|
359
359
|
var data$31 = formData;
|
|
360
360
|
key = nextPartId++;
|
|
361
|
-
var prefix = formFieldPrefix + key + "_";
|
|
361
|
+
var prefix = formFieldPrefix + "_" + key + "_";
|
|
362
362
|
value.forEach(function (originalValue, originalKey) {
|
|
363
363
|
data$31.append(prefix + originalKey, originalValue);
|
|
364
364
|
});
|
|
@@ -562,7 +562,7 @@
|
|
|
562
562
|
null === formData && (formData = new FormData());
|
|
563
563
|
var _data3 = formData;
|
|
564
564
|
key = nextPartId++;
|
|
565
|
-
var prefix = formFieldPrefix + key + "_";
|
|
565
|
+
var prefix = formFieldPrefix + "_" + key + "_";
|
|
566
566
|
value.forEach(function (originalValue, originalKey) {
|
|
567
567
|
_data3.append(prefix + originalKey, originalValue);
|
|
568
568
|
});
|
|
@@ -359,7 +359,7 @@ function processReply(
|
|
|
359
359
|
null === formData && (formData = new FormData());
|
|
360
360
|
var data$31 = formData;
|
|
361
361
|
key = nextPartId++;
|
|
362
|
-
var prefix = formFieldPrefix + key + "_";
|
|
362
|
+
var prefix = formFieldPrefix + "_" + key + "_";
|
|
363
363
|
value.forEach(function (originalValue, originalKey) {
|
|
364
364
|
data$31.append(prefix + originalKey, originalValue);
|
|
365
365
|
});
|
|
@@ -4191,7 +4191,7 @@
|
|
|
4191
4191
|
var chunks = response._chunks,
|
|
4192
4192
|
chunk = chunks.get(id);
|
|
4193
4193
|
chunk ||
|
|
4194
|
-
((chunk = response._formData.get(response._prefix + id)),
|
|
4194
|
+
((chunk = response._formData.data.get(response._prefix + id)),
|
|
4195
4195
|
(chunk =
|
|
4196
4196
|
"string" === typeof chunk
|
|
4197
4197
|
? new ReactPromise(
|
|
@@ -4303,6 +4303,10 @@
|
|
|
4303
4303
|
case "fulfilled":
|
|
4304
4304
|
id = chunk.value;
|
|
4305
4305
|
chunk = chunk.reason;
|
|
4306
|
+
if (null !== chunk && "error" in chunk)
|
|
4307
|
+
throw Error(
|
|
4308
|
+
"Expected an initialized chunk but got an initialized stream chunk instead. This payload may have been submitted by an older version of React."
|
|
4309
|
+
);
|
|
4306
4310
|
for (
|
|
4307
4311
|
var localLength = 0,
|
|
4308
4312
|
rootArrayContexts = response._rootArrayContexts,
|
|
@@ -4394,23 +4398,20 @@
|
|
|
4394
4398
|
function createMap(response, model) {
|
|
4395
4399
|
if (!isArrayImpl(model)) throw Error("Invalid Map initializer.");
|
|
4396
4400
|
if (!0 === model.$$consumed) throw Error("Already initialized Map.");
|
|
4397
|
-
response = new Map(model);
|
|
4398
4401
|
model.$$consumed = !0;
|
|
4399
|
-
return
|
|
4402
|
+
return new Map(model);
|
|
4400
4403
|
}
|
|
4401
4404
|
function createSet(response, model) {
|
|
4402
4405
|
if (!isArrayImpl(model)) throw Error("Invalid Set initializer.");
|
|
4403
4406
|
if (!0 === model.$$consumed) throw Error("Already initialized Set.");
|
|
4404
|
-
response = new Set(model);
|
|
4405
4407
|
model.$$consumed = !0;
|
|
4406
|
-
return
|
|
4408
|
+
return new Set(model);
|
|
4407
4409
|
}
|
|
4408
4410
|
function extractIterator(response, model) {
|
|
4409
4411
|
if (!isArrayImpl(model)) throw Error("Invalid Iterator initializer.");
|
|
4410
4412
|
if (!0 === model.$$consumed) throw Error("Already initialized Iterator.");
|
|
4411
|
-
response = model[Symbol.iterator]();
|
|
4412
4413
|
model.$$consumed = !0;
|
|
4413
|
-
return
|
|
4414
|
+
return model[Symbol.iterator]();
|
|
4414
4415
|
}
|
|
4415
4416
|
function createModel(response, model, parentObject, key) {
|
|
4416
4417
|
return "then" === key && "function" === typeof model ? null : model;
|
|
@@ -4448,7 +4449,7 @@
|
|
|
4448
4449
|
Error("Already initialized typed array.")
|
|
4449
4450
|
)
|
|
4450
4451
|
);
|
|
4451
|
-
reference = response._formData.get(key).arrayBuffer();
|
|
4452
|
+
reference = response._formData.data.get(key).arrayBuffer();
|
|
4452
4453
|
if (initializingHandler) {
|
|
4453
4454
|
var handler = initializingHandler;
|
|
4454
4455
|
handler.deps++;
|
|
@@ -4492,7 +4493,7 @@
|
|
|
4492
4493
|
var chunks = response._chunks;
|
|
4493
4494
|
stream = new ReactPromise("fulfilled", stream, controller);
|
|
4494
4495
|
chunks.set(id, stream);
|
|
4495
|
-
response = response._formData.getAll(response._prefix + id);
|
|
4496
|
+
response = response._formData.data.getAll(response._prefix + id);
|
|
4496
4497
|
for (id = 0; id < response.length; id++)
|
|
4497
4498
|
(chunks = response[id]),
|
|
4498
4499
|
"string" === typeof chunks &&
|
|
@@ -4712,24 +4713,33 @@
|
|
|
4712
4713
|
getOutlinedModel(response, arrayRoot, obj, key, null, createSet)
|
|
4713
4714
|
);
|
|
4714
4715
|
case "K":
|
|
4715
|
-
|
|
4716
|
-
obj = response._prefix +
|
|
4717
|
-
key =
|
|
4718
|
-
|
|
4719
|
-
|
|
4720
|
-
|
|
4721
|
-
|
|
4716
|
+
key = value.slice(2);
|
|
4717
|
+
obj = response._prefix + "_";
|
|
4718
|
+
key = obj + key + "_";
|
|
4719
|
+
arrayRoot = new FormData();
|
|
4720
|
+
for (response = response._formData; ; ) {
|
|
4721
|
+
value = response;
|
|
4722
|
+
reference = value.keys;
|
|
4723
|
+
null === reference &&
|
|
4724
|
+
((reference = value.keys = Array.from(value.data.keys())),
|
|
4725
|
+
(value.keyPointer = 0));
|
|
4726
|
+
value = reference[value.keyPointer];
|
|
4727
|
+
if (void 0 === value) break;
|
|
4728
|
+
if (value.startsWith(key)) {
|
|
4729
|
+
reference = response.data.getAll(value);
|
|
4722
4730
|
for (
|
|
4723
|
-
var
|
|
4724
|
-
|
|
4725
|
-
|
|
4726
|
-
j < entries.length;
|
|
4727
|
-
j++
|
|
4731
|
+
var referencedFormDataKey = value.slice(key.length), i = 0;
|
|
4732
|
+
i < reference.length;
|
|
4733
|
+
i++
|
|
4728
4734
|
)
|
|
4729
|
-
|
|
4730
|
-
response
|
|
4731
|
-
|
|
4732
|
-
|
|
4735
|
+
arrayRoot.append(referencedFormDataKey, reference[i]);
|
|
4736
|
+
reference = response;
|
|
4737
|
+
reference.data.delete(value);
|
|
4738
|
+
reference.keyPointer++;
|
|
4739
|
+
} else if (value.startsWith(obj)) break;
|
|
4740
|
+
else response.keyPointer++;
|
|
4741
|
+
}
|
|
4742
|
+
return arrayRoot;
|
|
4733
4743
|
case "i":
|
|
4734
4744
|
return (
|
|
4735
4745
|
(arrayRoot = value.slice(2)),
|
|
@@ -4898,7 +4908,7 @@
|
|
|
4898
4908
|
case "B":
|
|
4899
4909
|
return (
|
|
4900
4910
|
(obj = parseInt(value.slice(2), 16)),
|
|
4901
|
-
response._formData.get(response._prefix + obj)
|
|
4911
|
+
response._formData.data.get(response._prefix + obj)
|
|
4902
4912
|
);
|
|
4903
4913
|
case "R":
|
|
4904
4914
|
return parseReadableStream(response, value, void 0);
|
|
@@ -4937,7 +4947,7 @@
|
|
|
4937
4947
|
return {
|
|
4938
4948
|
_bundlerConfig: bundlerConfig,
|
|
4939
4949
|
_prefix: formFieldPrefix,
|
|
4940
|
-
_formData: backingFormData,
|
|
4950
|
+
_formData: { data: backingFormData, keyPointer: -1, keys: null },
|
|
4941
4951
|
_chunks: chunks,
|
|
4942
4952
|
_closed: !1,
|
|
4943
4953
|
_closedReason: null,
|
|
@@ -2624,7 +2624,7 @@ function getChunk(response, id) {
|
|
|
2624
2624
|
var chunks = response._chunks,
|
|
2625
2625
|
chunk = chunks.get(id);
|
|
2626
2626
|
chunk ||
|
|
2627
|
-
((chunk = response._formData.get(response._prefix + id)),
|
|
2627
|
+
((chunk = response._formData.data.get(response._prefix + id)),
|
|
2628
2628
|
(chunk =
|
|
2629
2629
|
"string" === typeof chunk
|
|
2630
2630
|
? createResolvedModelChunk(response, chunk, id)
|
|
@@ -2725,6 +2725,10 @@ function getOutlinedModel(
|
|
|
2725
2725
|
case "fulfilled":
|
|
2726
2726
|
id = chunk.value;
|
|
2727
2727
|
chunk = chunk.reason;
|
|
2728
|
+
if (null !== chunk && "error" in chunk)
|
|
2729
|
+
throw Error(
|
|
2730
|
+
"Expected an initialized chunk but got an initialized stream chunk instead. This payload may have been submitted by an older version of React."
|
|
2731
|
+
);
|
|
2728
2732
|
for (
|
|
2729
2733
|
var localLength = 0,
|
|
2730
2734
|
rootArrayContexts = response._rootArrayContexts,
|
|
@@ -2807,23 +2811,20 @@ function getOutlinedModel(
|
|
|
2807
2811
|
function createMap(response, model) {
|
|
2808
2812
|
if (!isArrayImpl(model)) throw Error("Invalid Map initializer.");
|
|
2809
2813
|
if (!0 === model.$$consumed) throw Error("Already initialized Map.");
|
|
2810
|
-
response = new Map(model);
|
|
2811
2814
|
model.$$consumed = !0;
|
|
2812
|
-
return
|
|
2815
|
+
return new Map(model);
|
|
2813
2816
|
}
|
|
2814
2817
|
function createSet(response, model) {
|
|
2815
2818
|
if (!isArrayImpl(model)) throw Error("Invalid Set initializer.");
|
|
2816
2819
|
if (!0 === model.$$consumed) throw Error("Already initialized Set.");
|
|
2817
|
-
response = new Set(model);
|
|
2818
2820
|
model.$$consumed = !0;
|
|
2819
|
-
return
|
|
2821
|
+
return new Set(model);
|
|
2820
2822
|
}
|
|
2821
2823
|
function extractIterator(response, model) {
|
|
2822
2824
|
if (!isArrayImpl(model)) throw Error("Invalid Iterator initializer.");
|
|
2823
2825
|
if (!0 === model.$$consumed) throw Error("Already initialized Iterator.");
|
|
2824
|
-
response = model[Symbol.iterator]();
|
|
2825
2826
|
model.$$consumed = !0;
|
|
2826
|
-
return
|
|
2827
|
+
return model[Symbol.iterator]();
|
|
2827
2828
|
}
|
|
2828
2829
|
function createModel(response, model, parentObject, key) {
|
|
2829
2830
|
return "then" === key && "function" === typeof model ? null : model;
|
|
@@ -2861,7 +2862,7 @@ function parseTypedArray(
|
|
|
2861
2862
|
Error("Already initialized typed array.")
|
|
2862
2863
|
)
|
|
2863
2864
|
);
|
|
2864
|
-
reference = response._formData.get(key).arrayBuffer();
|
|
2865
|
+
reference = response._formData.data.get(key).arrayBuffer();
|
|
2865
2866
|
if (initializingHandler) {
|
|
2866
2867
|
var handler = initializingHandler;
|
|
2867
2868
|
handler.deps++;
|
|
@@ -2905,7 +2906,7 @@ function resolveStream(response, id, stream, controller) {
|
|
|
2905
2906
|
var chunks = response._chunks;
|
|
2906
2907
|
stream = new ReactPromise("fulfilled", stream, controller);
|
|
2907
2908
|
chunks.set(id, stream);
|
|
2908
|
-
response = response._formData.getAll(response._prefix + id);
|
|
2909
|
+
response = response._formData.data.getAll(response._prefix + id);
|
|
2909
2910
|
for (id = 0; id < response.length; id++)
|
|
2910
2911
|
(chunks = response[id]),
|
|
2911
2912
|
"string" === typeof chunks &&
|
|
@@ -3120,24 +3121,31 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
|
|
|
3120
3121
|
getOutlinedModel(response, arrayRoot, obj, key, null, createSet)
|
|
3121
3122
|
);
|
|
3122
3123
|
case "K":
|
|
3123
|
-
|
|
3124
|
-
obj = response._prefix +
|
|
3125
|
-
key =
|
|
3126
|
-
|
|
3127
|
-
|
|
3128
|
-
|
|
3129
|
-
|
|
3124
|
+
key = value.slice(2);
|
|
3125
|
+
obj = response._prefix + "_";
|
|
3126
|
+
key = obj + key + "_";
|
|
3127
|
+
arrayRoot = new FormData();
|
|
3128
|
+
for (response = response._formData; ; ) {
|
|
3129
|
+
value = response.keys;
|
|
3130
|
+
null === value &&
|
|
3131
|
+
((value = response.keys = Array.from(response.data.keys())),
|
|
3132
|
+
(response.keyPointer = 0));
|
|
3133
|
+
value = value[response.keyPointer];
|
|
3134
|
+
if (void 0 === value) break;
|
|
3135
|
+
if (value.startsWith(key)) {
|
|
3136
|
+
reference = response.data.getAll(value);
|
|
3130
3137
|
for (
|
|
3131
|
-
var
|
|
3132
|
-
|
|
3133
|
-
|
|
3134
|
-
j < entries.length;
|
|
3135
|
-
j++
|
|
3138
|
+
var referencedFormDataKey = value.slice(key.length), i = 0;
|
|
3139
|
+
i < reference.length;
|
|
3140
|
+
i++
|
|
3136
3141
|
)
|
|
3137
|
-
|
|
3138
|
-
response.delete(
|
|
3139
|
-
|
|
3140
|
-
|
|
3142
|
+
arrayRoot.append(referencedFormDataKey, reference[i]);
|
|
3143
|
+
response.data.delete(value);
|
|
3144
|
+
response.keyPointer++;
|
|
3145
|
+
} else if (value.startsWith(obj)) break;
|
|
3146
|
+
else response.keyPointer++;
|
|
3147
|
+
}
|
|
3148
|
+
return arrayRoot;
|
|
3141
3149
|
case "i":
|
|
3142
3150
|
return (
|
|
3143
3151
|
(arrayRoot = value.slice(2)),
|
|
@@ -3296,7 +3304,7 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
|
|
|
3296
3304
|
case "B":
|
|
3297
3305
|
return (
|
|
3298
3306
|
(obj = parseInt(value.slice(2), 16)),
|
|
3299
|
-
response._formData.get(response._prefix + obj)
|
|
3307
|
+
response._formData.data.get(response._prefix + obj)
|
|
3300
3308
|
);
|
|
3301
3309
|
case "R":
|
|
3302
3310
|
return parseReadableStream(response, value, void 0);
|
|
@@ -3324,7 +3332,7 @@ function createResponse(bundlerConfig, formFieldPrefix, temporaryReferences) {
|
|
|
3324
3332
|
return {
|
|
3325
3333
|
_bundlerConfig: bundlerConfig,
|
|
3326
3334
|
_prefix: formFieldPrefix,
|
|
3327
|
-
_formData: backingFormData,
|
|
3335
|
+
_formData: { data: backingFormData, keyPointer: -1, keys: null },
|
|
3328
3336
|
_chunks: chunks,
|
|
3329
3337
|
_closed: !1,
|
|
3330
3338
|
_closedReason: null,
|
|
@@ -3950,6 +3950,14 @@
|
|
|
3950
3950
|
if (hasOwnProperty.call(moduleExports, metadata[2]))
|
|
3951
3951
|
return moduleExports[metadata[2]];
|
|
3952
3952
|
}
|
|
3953
|
+
function appendBackingEntry(backingStore, key, value) {
|
|
3954
|
+
backingStore.data.append(key, value);
|
|
3955
|
+
value = backingStore.keys;
|
|
3956
|
+
null === value
|
|
3957
|
+
? ((backingStore.keys = Array.from(backingStore.data.keys())),
|
|
3958
|
+
(backingStore.keyPointer = 0))
|
|
3959
|
+
: value.push(key);
|
|
3960
|
+
}
|
|
3953
3961
|
function ReactPromise(status, value, reason) {
|
|
3954
3962
|
this.status = status;
|
|
3955
3963
|
this.value = value;
|
|
@@ -4262,7 +4270,7 @@
|
|
|
4262
4270
|
var chunks = response._chunks,
|
|
4263
4271
|
chunk = chunks.get(id);
|
|
4264
4272
|
chunk ||
|
|
4265
|
-
((chunk = response._formData.get(response._prefix + id)),
|
|
4273
|
+
((chunk = response._formData.data.get(response._prefix + id)),
|
|
4266
4274
|
(chunk =
|
|
4267
4275
|
"string" === typeof chunk
|
|
4268
4276
|
? new ReactPromise(
|
|
@@ -4374,6 +4382,10 @@
|
|
|
4374
4382
|
case "fulfilled":
|
|
4375
4383
|
id = chunk.value;
|
|
4376
4384
|
chunk = chunk.reason;
|
|
4385
|
+
if (null !== chunk && "error" in chunk)
|
|
4386
|
+
throw Error(
|
|
4387
|
+
"Expected an initialized chunk but got an initialized stream chunk instead. This payload may have been submitted by an older version of React."
|
|
4388
|
+
);
|
|
4377
4389
|
for (
|
|
4378
4390
|
var localLength = 0,
|
|
4379
4391
|
rootArrayContexts = response._rootArrayContexts,
|
|
@@ -4465,23 +4477,20 @@
|
|
|
4465
4477
|
function createMap(response, model) {
|
|
4466
4478
|
if (!isArrayImpl(model)) throw Error("Invalid Map initializer.");
|
|
4467
4479
|
if (!0 === model.$$consumed) throw Error("Already initialized Map.");
|
|
4468
|
-
response = new Map(model);
|
|
4469
4480
|
model.$$consumed = !0;
|
|
4470
|
-
return
|
|
4481
|
+
return new Map(model);
|
|
4471
4482
|
}
|
|
4472
4483
|
function createSet(response, model) {
|
|
4473
4484
|
if (!isArrayImpl(model)) throw Error("Invalid Set initializer.");
|
|
4474
4485
|
if (!0 === model.$$consumed) throw Error("Already initialized Set.");
|
|
4475
|
-
response = new Set(model);
|
|
4476
4486
|
model.$$consumed = !0;
|
|
4477
|
-
return
|
|
4487
|
+
return new Set(model);
|
|
4478
4488
|
}
|
|
4479
4489
|
function extractIterator(response, model) {
|
|
4480
4490
|
if (!isArrayImpl(model)) throw Error("Invalid Iterator initializer.");
|
|
4481
4491
|
if (!0 === model.$$consumed) throw Error("Already initialized Iterator.");
|
|
4482
|
-
response = model[Symbol.iterator]();
|
|
4483
4492
|
model.$$consumed = !0;
|
|
4484
|
-
return
|
|
4493
|
+
return model[Symbol.iterator]();
|
|
4485
4494
|
}
|
|
4486
4495
|
function createModel(response, model, parentObject, key) {
|
|
4487
4496
|
return "then" === key && "function" === typeof model ? null : model;
|
|
@@ -4519,7 +4528,7 @@
|
|
|
4519
4528
|
Error("Already initialized typed array.")
|
|
4520
4529
|
)
|
|
4521
4530
|
);
|
|
4522
|
-
reference = response._formData.get(key).arrayBuffer();
|
|
4531
|
+
reference = response._formData.data.get(key).arrayBuffer();
|
|
4523
4532
|
if (initializingHandler) {
|
|
4524
4533
|
var handler = initializingHandler;
|
|
4525
4534
|
handler.deps++;
|
|
@@ -4563,7 +4572,7 @@
|
|
|
4563
4572
|
var chunks = response._chunks;
|
|
4564
4573
|
stream = new ReactPromise("fulfilled", stream, controller);
|
|
4565
4574
|
chunks.set(id, stream);
|
|
4566
|
-
response = response._formData.getAll(response._prefix + id);
|
|
4575
|
+
response = response._formData.data.getAll(response._prefix + id);
|
|
4567
4576
|
for (id = 0; id < response.length; id++)
|
|
4568
4577
|
(chunks = response[id]),
|
|
4569
4578
|
"string" === typeof chunks &&
|
|
@@ -4783,24 +4792,33 @@
|
|
|
4783
4792
|
getOutlinedModel(response, arrayRoot, obj, key, null, createSet)
|
|
4784
4793
|
);
|
|
4785
4794
|
case "K":
|
|
4786
|
-
|
|
4787
|
-
obj = response._prefix +
|
|
4788
|
-
key =
|
|
4789
|
-
|
|
4790
|
-
|
|
4791
|
-
|
|
4792
|
-
|
|
4795
|
+
key = value.slice(2);
|
|
4796
|
+
obj = response._prefix + "_";
|
|
4797
|
+
key = obj + key + "_";
|
|
4798
|
+
arrayRoot = new FormData();
|
|
4799
|
+
for (response = response._formData; ; ) {
|
|
4800
|
+
value = response;
|
|
4801
|
+
reference = value.keys;
|
|
4802
|
+
null === reference &&
|
|
4803
|
+
((reference = value.keys = Array.from(value.data.keys())),
|
|
4804
|
+
(value.keyPointer = 0));
|
|
4805
|
+
value = reference[value.keyPointer];
|
|
4806
|
+
if (void 0 === value) break;
|
|
4807
|
+
if (value.startsWith(key)) {
|
|
4808
|
+
reference = response.data.getAll(value);
|
|
4793
4809
|
for (
|
|
4794
|
-
var
|
|
4795
|
-
|
|
4796
|
-
|
|
4797
|
-
j < entries.length;
|
|
4798
|
-
j++
|
|
4810
|
+
var referencedFormDataKey = value.slice(key.length), i = 0;
|
|
4811
|
+
i < reference.length;
|
|
4812
|
+
i++
|
|
4799
4813
|
)
|
|
4800
|
-
|
|
4801
|
-
response
|
|
4802
|
-
|
|
4803
|
-
|
|
4814
|
+
arrayRoot.append(referencedFormDataKey, reference[i]);
|
|
4815
|
+
reference = response;
|
|
4816
|
+
reference.data.delete(value);
|
|
4817
|
+
reference.keyPointer++;
|
|
4818
|
+
} else if (value.startsWith(obj)) break;
|
|
4819
|
+
else response.keyPointer++;
|
|
4820
|
+
}
|
|
4821
|
+
return arrayRoot;
|
|
4804
4822
|
case "i":
|
|
4805
4823
|
return (
|
|
4806
4824
|
(arrayRoot = value.slice(2)),
|
|
@@ -4969,7 +4987,7 @@
|
|
|
4969
4987
|
case "B":
|
|
4970
4988
|
return (
|
|
4971
4989
|
(obj = parseInt(value.slice(2), 16)),
|
|
4972
|
-
response._formData.get(response._prefix + obj)
|
|
4990
|
+
response._formData.data.get(response._prefix + obj)
|
|
4973
4991
|
);
|
|
4974
4992
|
case "R":
|
|
4975
4993
|
return parseReadableStream(response, value, void 0);
|
|
@@ -5008,7 +5026,7 @@
|
|
|
5008
5026
|
return {
|
|
5009
5027
|
_bundlerConfig: bundlerConfig,
|
|
5010
5028
|
_prefix: formFieldPrefix,
|
|
5011
|
-
_formData: backingFormData,
|
|
5029
|
+
_formData: { data: backingFormData, keyPointer: -1, keys: null },
|
|
5012
5030
|
_chunks: chunks,
|
|
5013
5031
|
_closed: !1,
|
|
5014
5032
|
_closedReason: null,
|
|
@@ -5723,7 +5741,7 @@
|
|
|
5723
5741
|
entry = entry[1];
|
|
5724
5742
|
if ("string" === typeof entry) {
|
|
5725
5743
|
var response = response$jscomp$0;
|
|
5726
|
-
response._formData
|
|
5744
|
+
appendBackingEntry(response._formData, name, entry);
|
|
5727
5745
|
var prefix = response._prefix;
|
|
5728
5746
|
if (name.startsWith(prefix)) {
|
|
5729
5747
|
var chunks = response._chunks;
|
|
@@ -5731,7 +5749,7 @@
|
|
|
5731
5749
|
(chunks = chunks.get(name)) &&
|
|
5732
5750
|
resolveModelChunk(response, chunks, entry, name);
|
|
5733
5751
|
}
|
|
5734
|
-
} else response$jscomp$0._formData
|
|
5752
|
+
} else appendBackingEntry(response$jscomp$0._formData, name, entry);
|
|
5735
5753
|
iterator.next().then(progress, error);
|
|
5736
5754
|
}
|
|
5737
5755
|
}
|
|
@@ -2248,6 +2248,14 @@ function requireModule(metadata) {
|
|
|
2248
2248
|
if (hasOwnProperty.call(moduleExports, metadata[2]))
|
|
2249
2249
|
return moduleExports[metadata[2]];
|
|
2250
2250
|
}
|
|
2251
|
+
function appendBackingEntry(backingStore, key, value) {
|
|
2252
|
+
backingStore.data.append(key, value);
|
|
2253
|
+
value = backingStore.keys;
|
|
2254
|
+
null === value
|
|
2255
|
+
? ((backingStore.keys = Array.from(backingStore.data.keys())),
|
|
2256
|
+
(backingStore.keyPointer = 0))
|
|
2257
|
+
: value.push(key);
|
|
2258
|
+
}
|
|
2251
2259
|
var RESPONSE_SYMBOL = Symbol();
|
|
2252
2260
|
function ReactPromise(status, value, reason) {
|
|
2253
2261
|
this.status = status;
|
|
@@ -2620,7 +2628,7 @@ function getChunk(response, id) {
|
|
|
2620
2628
|
var chunks = response._chunks,
|
|
2621
2629
|
chunk = chunks.get(id);
|
|
2622
2630
|
chunk ||
|
|
2623
|
-
((chunk = response._formData.get(response._prefix + id)),
|
|
2631
|
+
((chunk = response._formData.data.get(response._prefix + id)),
|
|
2624
2632
|
(chunk =
|
|
2625
2633
|
"string" === typeof chunk
|
|
2626
2634
|
? createResolvedModelChunk(response, chunk, id)
|
|
@@ -2721,6 +2729,10 @@ function getOutlinedModel(
|
|
|
2721
2729
|
case "fulfilled":
|
|
2722
2730
|
id = chunk.value;
|
|
2723
2731
|
chunk = chunk.reason;
|
|
2732
|
+
if (null !== chunk && "error" in chunk)
|
|
2733
|
+
throw Error(
|
|
2734
|
+
"Expected an initialized chunk but got an initialized stream chunk instead. This payload may have been submitted by an older version of React."
|
|
2735
|
+
);
|
|
2724
2736
|
for (
|
|
2725
2737
|
var localLength = 0,
|
|
2726
2738
|
rootArrayContexts = response._rootArrayContexts,
|
|
@@ -2803,23 +2815,20 @@ function getOutlinedModel(
|
|
|
2803
2815
|
function createMap(response, model) {
|
|
2804
2816
|
if (!isArrayImpl(model)) throw Error("Invalid Map initializer.");
|
|
2805
2817
|
if (!0 === model.$$consumed) throw Error("Already initialized Map.");
|
|
2806
|
-
response = new Map(model);
|
|
2807
2818
|
model.$$consumed = !0;
|
|
2808
|
-
return
|
|
2819
|
+
return new Map(model);
|
|
2809
2820
|
}
|
|
2810
2821
|
function createSet(response, model) {
|
|
2811
2822
|
if (!isArrayImpl(model)) throw Error("Invalid Set initializer.");
|
|
2812
2823
|
if (!0 === model.$$consumed) throw Error("Already initialized Set.");
|
|
2813
|
-
response = new Set(model);
|
|
2814
2824
|
model.$$consumed = !0;
|
|
2815
|
-
return
|
|
2825
|
+
return new Set(model);
|
|
2816
2826
|
}
|
|
2817
2827
|
function extractIterator(response, model) {
|
|
2818
2828
|
if (!isArrayImpl(model)) throw Error("Invalid Iterator initializer.");
|
|
2819
2829
|
if (!0 === model.$$consumed) throw Error("Already initialized Iterator.");
|
|
2820
|
-
response = model[Symbol.iterator]();
|
|
2821
2830
|
model.$$consumed = !0;
|
|
2822
|
-
return
|
|
2831
|
+
return model[Symbol.iterator]();
|
|
2823
2832
|
}
|
|
2824
2833
|
function createModel(response, model, parentObject, key) {
|
|
2825
2834
|
return "then" === key && "function" === typeof model ? null : model;
|
|
@@ -2857,7 +2866,7 @@ function parseTypedArray(
|
|
|
2857
2866
|
Error("Already initialized typed array.")
|
|
2858
2867
|
)
|
|
2859
2868
|
);
|
|
2860
|
-
reference = response._formData.get(key).arrayBuffer();
|
|
2869
|
+
reference = response._formData.data.get(key).arrayBuffer();
|
|
2861
2870
|
if (initializingHandler) {
|
|
2862
2871
|
var handler = initializingHandler;
|
|
2863
2872
|
handler.deps++;
|
|
@@ -2901,7 +2910,7 @@ function resolveStream(response, id, stream, controller) {
|
|
|
2901
2910
|
var chunks = response._chunks;
|
|
2902
2911
|
stream = new ReactPromise("fulfilled", stream, controller);
|
|
2903
2912
|
chunks.set(id, stream);
|
|
2904
|
-
response = response._formData.getAll(response._prefix + id);
|
|
2913
|
+
response = response._formData.data.getAll(response._prefix + id);
|
|
2905
2914
|
for (id = 0; id < response.length; id++)
|
|
2906
2915
|
(chunks = response[id]),
|
|
2907
2916
|
"string" === typeof chunks &&
|
|
@@ -3116,24 +3125,31 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
|
|
|
3116
3125
|
getOutlinedModel(response, arrayRoot, obj, key, null, createSet)
|
|
3117
3126
|
);
|
|
3118
3127
|
case "K":
|
|
3119
|
-
|
|
3120
|
-
obj = response._prefix +
|
|
3121
|
-
key =
|
|
3122
|
-
|
|
3123
|
-
|
|
3124
|
-
|
|
3125
|
-
|
|
3128
|
+
key = value.slice(2);
|
|
3129
|
+
obj = response._prefix + "_";
|
|
3130
|
+
key = obj + key + "_";
|
|
3131
|
+
arrayRoot = new FormData();
|
|
3132
|
+
for (response = response._formData; ; ) {
|
|
3133
|
+
value = response.keys;
|
|
3134
|
+
null === value &&
|
|
3135
|
+
((value = response.keys = Array.from(response.data.keys())),
|
|
3136
|
+
(response.keyPointer = 0));
|
|
3137
|
+
value = value[response.keyPointer];
|
|
3138
|
+
if (void 0 === value) break;
|
|
3139
|
+
if (value.startsWith(key)) {
|
|
3140
|
+
reference = response.data.getAll(value);
|
|
3126
3141
|
for (
|
|
3127
|
-
var
|
|
3128
|
-
|
|
3129
|
-
|
|
3130
|
-
j < entries.length;
|
|
3131
|
-
j++
|
|
3142
|
+
var referencedFormDataKey = value.slice(key.length), i = 0;
|
|
3143
|
+
i < reference.length;
|
|
3144
|
+
i++
|
|
3132
3145
|
)
|
|
3133
|
-
|
|
3134
|
-
response.delete(
|
|
3135
|
-
|
|
3136
|
-
|
|
3146
|
+
arrayRoot.append(referencedFormDataKey, reference[i]);
|
|
3147
|
+
response.data.delete(value);
|
|
3148
|
+
response.keyPointer++;
|
|
3149
|
+
} else if (value.startsWith(obj)) break;
|
|
3150
|
+
else response.keyPointer++;
|
|
3151
|
+
}
|
|
3152
|
+
return arrayRoot;
|
|
3137
3153
|
case "i":
|
|
3138
3154
|
return (
|
|
3139
3155
|
(arrayRoot = value.slice(2)),
|
|
@@ -3292,7 +3308,7 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
|
|
|
3292
3308
|
case "B":
|
|
3293
3309
|
return (
|
|
3294
3310
|
(obj = parseInt(value.slice(2), 16)),
|
|
3295
|
-
response._formData.get(response._prefix + obj)
|
|
3311
|
+
response._formData.data.get(response._prefix + obj)
|
|
3296
3312
|
);
|
|
3297
3313
|
case "R":
|
|
3298
3314
|
return parseReadableStream(response, value, void 0);
|
|
@@ -3320,7 +3336,7 @@ function createResponse(bundlerConfig, formFieldPrefix, temporaryReferences) {
|
|
|
3320
3336
|
return {
|
|
3321
3337
|
_bundlerConfig: bundlerConfig,
|
|
3322
3338
|
_prefix: formFieldPrefix,
|
|
3323
|
-
_formData: backingFormData,
|
|
3339
|
+
_formData: { data: backingFormData, keyPointer: -1, keys: null },
|
|
3324
3340
|
_chunks: chunks,
|
|
3325
3341
|
_closed: !1,
|
|
3326
3342
|
_closedReason: null,
|
|
@@ -3456,7 +3472,7 @@ exports.decodeReplyFromAsyncIterable = function (
|
|
|
3456
3472
|
var name = entry[0];
|
|
3457
3473
|
entry = entry[1];
|
|
3458
3474
|
if ("string" === typeof entry) {
|
|
3459
|
-
response._formData
|
|
3475
|
+
appendBackingEntry(response._formData, name, entry);
|
|
3460
3476
|
var prefix = response._prefix;
|
|
3461
3477
|
if (name.startsWith(prefix)) {
|
|
3462
3478
|
var chunks = response._chunks;
|
|
@@ -3464,7 +3480,7 @@ exports.decodeReplyFromAsyncIterable = function (
|
|
|
3464
3480
|
(chunks = chunks.get(name)) &&
|
|
3465
3481
|
resolveModelChunk(response, chunks, entry, name);
|
|
3466
3482
|
}
|
|
3467
|
-
} else response._formData
|
|
3483
|
+
} else appendBackingEntry(response._formData, name, entry);
|
|
3468
3484
|
iterator.next().then(progress, error);
|
|
3469
3485
|
}
|
|
3470
3486
|
}
|
|
@@ -4353,6 +4353,14 @@
|
|
|
4353
4353
|
if (hasOwnProperty.call(moduleExports, metadata[2]))
|
|
4354
4354
|
return moduleExports[metadata[2]];
|
|
4355
4355
|
}
|
|
4356
|
+
function appendBackingEntry(backingStore, key, value) {
|
|
4357
|
+
backingStore.data.append(key, value);
|
|
4358
|
+
value = backingStore.keys;
|
|
4359
|
+
null === value
|
|
4360
|
+
? ((backingStore.keys = Array.from(backingStore.data.keys())),
|
|
4361
|
+
(backingStore.keyPointer = 0))
|
|
4362
|
+
: value.push(key);
|
|
4363
|
+
}
|
|
4356
4364
|
function ReactPromise(status, value, reason) {
|
|
4357
4365
|
this.status = status;
|
|
4358
4366
|
this.value = value;
|
|
@@ -4665,7 +4673,7 @@
|
|
|
4665
4673
|
var chunks = response._chunks,
|
|
4666
4674
|
chunk = chunks.get(id);
|
|
4667
4675
|
chunk ||
|
|
4668
|
-
((chunk = response._formData.get(response._prefix + id)),
|
|
4676
|
+
((chunk = response._formData.data.get(response._prefix + id)),
|
|
4669
4677
|
(chunk =
|
|
4670
4678
|
"string" === typeof chunk
|
|
4671
4679
|
? new ReactPromise(
|
|
@@ -4777,6 +4785,10 @@
|
|
|
4777
4785
|
case "fulfilled":
|
|
4778
4786
|
id = chunk.value;
|
|
4779
4787
|
chunk = chunk.reason;
|
|
4788
|
+
if (null !== chunk && "error" in chunk)
|
|
4789
|
+
throw Error(
|
|
4790
|
+
"Expected an initialized chunk but got an initialized stream chunk instead. This payload may have been submitted by an older version of React."
|
|
4791
|
+
);
|
|
4780
4792
|
for (
|
|
4781
4793
|
var localLength = 0,
|
|
4782
4794
|
rootArrayContexts = response._rootArrayContexts,
|
|
@@ -4868,23 +4880,20 @@
|
|
|
4868
4880
|
function createMap(response, model) {
|
|
4869
4881
|
if (!isArrayImpl(model)) throw Error("Invalid Map initializer.");
|
|
4870
4882
|
if (!0 === model.$$consumed) throw Error("Already initialized Map.");
|
|
4871
|
-
response = new Map(model);
|
|
4872
4883
|
model.$$consumed = !0;
|
|
4873
|
-
return
|
|
4884
|
+
return new Map(model);
|
|
4874
4885
|
}
|
|
4875
4886
|
function createSet(response, model) {
|
|
4876
4887
|
if (!isArrayImpl(model)) throw Error("Invalid Set initializer.");
|
|
4877
4888
|
if (!0 === model.$$consumed) throw Error("Already initialized Set.");
|
|
4878
|
-
response = new Set(model);
|
|
4879
4889
|
model.$$consumed = !0;
|
|
4880
|
-
return
|
|
4890
|
+
return new Set(model);
|
|
4881
4891
|
}
|
|
4882
4892
|
function extractIterator(response, model) {
|
|
4883
4893
|
if (!isArrayImpl(model)) throw Error("Invalid Iterator initializer.");
|
|
4884
4894
|
if (!0 === model.$$consumed) throw Error("Already initialized Iterator.");
|
|
4885
|
-
response = model[Symbol.iterator]();
|
|
4886
4895
|
model.$$consumed = !0;
|
|
4887
|
-
return
|
|
4896
|
+
return model[Symbol.iterator]();
|
|
4888
4897
|
}
|
|
4889
4898
|
function createModel(response, model, parentObject, key) {
|
|
4890
4899
|
return "then" === key && "function" === typeof model ? null : model;
|
|
@@ -4922,7 +4931,7 @@
|
|
|
4922
4931
|
Error("Already initialized typed array.")
|
|
4923
4932
|
)
|
|
4924
4933
|
);
|
|
4925
|
-
reference = response._formData.get(key).arrayBuffer();
|
|
4934
|
+
reference = response._formData.data.get(key).arrayBuffer();
|
|
4926
4935
|
if (initializingHandler) {
|
|
4927
4936
|
var handler = initializingHandler;
|
|
4928
4937
|
handler.deps++;
|
|
@@ -4966,7 +4975,7 @@
|
|
|
4966
4975
|
var chunks = response._chunks;
|
|
4967
4976
|
stream = new ReactPromise("fulfilled", stream, controller);
|
|
4968
4977
|
chunks.set(id, stream);
|
|
4969
|
-
response = response._formData.getAll(response._prefix + id);
|
|
4978
|
+
response = response._formData.data.getAll(response._prefix + id);
|
|
4970
4979
|
for (id = 0; id < response.length; id++)
|
|
4971
4980
|
(chunks = response[id]),
|
|
4972
4981
|
"string" === typeof chunks &&
|
|
@@ -5186,24 +5195,33 @@
|
|
|
5186
5195
|
getOutlinedModel(response, arrayRoot, obj, key, null, createSet)
|
|
5187
5196
|
);
|
|
5188
5197
|
case "K":
|
|
5189
|
-
|
|
5190
|
-
obj = response._prefix +
|
|
5191
|
-
key =
|
|
5192
|
-
|
|
5193
|
-
|
|
5194
|
-
|
|
5195
|
-
|
|
5198
|
+
key = value.slice(2);
|
|
5199
|
+
obj = response._prefix + "_";
|
|
5200
|
+
key = obj + key + "_";
|
|
5201
|
+
arrayRoot = new FormData();
|
|
5202
|
+
for (response = response._formData; ; ) {
|
|
5203
|
+
value = response;
|
|
5204
|
+
reference = value.keys;
|
|
5205
|
+
null === reference &&
|
|
5206
|
+
((reference = value.keys = Array.from(value.data.keys())),
|
|
5207
|
+
(value.keyPointer = 0));
|
|
5208
|
+
value = reference[value.keyPointer];
|
|
5209
|
+
if (void 0 === value) break;
|
|
5210
|
+
if (value.startsWith(key)) {
|
|
5211
|
+
reference = response.data.getAll(value);
|
|
5196
5212
|
for (
|
|
5197
|
-
var
|
|
5198
|
-
|
|
5199
|
-
|
|
5200
|
-
j < entries.length;
|
|
5201
|
-
j++
|
|
5213
|
+
var referencedFormDataKey = value.slice(key.length), i = 0;
|
|
5214
|
+
i < reference.length;
|
|
5215
|
+
i++
|
|
5202
5216
|
)
|
|
5203
|
-
|
|
5204
|
-
response
|
|
5205
|
-
|
|
5206
|
-
|
|
5217
|
+
arrayRoot.append(referencedFormDataKey, reference[i]);
|
|
5218
|
+
reference = response;
|
|
5219
|
+
reference.data.delete(value);
|
|
5220
|
+
reference.keyPointer++;
|
|
5221
|
+
} else if (value.startsWith(obj)) break;
|
|
5222
|
+
else response.keyPointer++;
|
|
5223
|
+
}
|
|
5224
|
+
return arrayRoot;
|
|
5207
5225
|
case "i":
|
|
5208
5226
|
return (
|
|
5209
5227
|
(arrayRoot = value.slice(2)),
|
|
@@ -5372,7 +5390,7 @@
|
|
|
5372
5390
|
case "B":
|
|
5373
5391
|
return (
|
|
5374
5392
|
(obj = parseInt(value.slice(2), 16)),
|
|
5375
|
-
response._formData.get(response._prefix + obj)
|
|
5393
|
+
response._formData.data.get(response._prefix + obj)
|
|
5376
5394
|
);
|
|
5377
5395
|
case "R":
|
|
5378
5396
|
return parseReadableStream(response, value, void 0);
|
|
@@ -5411,7 +5429,7 @@
|
|
|
5411
5429
|
return {
|
|
5412
5430
|
_bundlerConfig: bundlerConfig,
|
|
5413
5431
|
_prefix: formFieldPrefix,
|
|
5414
|
-
_formData: backingFormData,
|
|
5432
|
+
_formData: { data: backingFormData, keyPointer: -1, keys: null },
|
|
5415
5433
|
_chunks: chunks,
|
|
5416
5434
|
_closed: !1,
|
|
5417
5435
|
_closedReason: null,
|
|
@@ -5421,7 +5439,7 @@
|
|
|
5421
5439
|
};
|
|
5422
5440
|
}
|
|
5423
5441
|
function resolveField(response, key, value) {
|
|
5424
|
-
response._formData
|
|
5442
|
+
appendBackingEntry(response._formData, key, value);
|
|
5425
5443
|
var prefix = response._prefix;
|
|
5426
5444
|
if (key.startsWith(prefix)) {
|
|
5427
5445
|
var chunks = response._chunks;
|
|
@@ -6349,7 +6367,7 @@
|
|
|
6349
6367
|
_entry$value = _entry$value[1];
|
|
6350
6368
|
"string" === typeof _entry$value
|
|
6351
6369
|
? resolveField(response, entry, _entry$value)
|
|
6352
|
-
: response._formData
|
|
6370
|
+
: appendBackingEntry(response._formData, entry, _entry$value);
|
|
6353
6371
|
iterator.next().then(progress, error);
|
|
6354
6372
|
}
|
|
6355
6373
|
}
|
|
@@ -6403,16 +6421,22 @@
|
|
|
6403
6421
|
);
|
|
6404
6422
|
else {
|
|
6405
6423
|
pendingFiles++;
|
|
6406
|
-
var
|
|
6424
|
+
var JSCompiler_object_inline_chunks_266 = [];
|
|
6407
6425
|
value.on("data", function (chunk) {
|
|
6408
|
-
|
|
6426
|
+
JSCompiler_object_inline_chunks_266.push(chunk);
|
|
6409
6427
|
});
|
|
6410
6428
|
value.on("end", function () {
|
|
6411
6429
|
try {
|
|
6412
|
-
var blob = new Blob(
|
|
6413
|
-
|
|
6414
|
-
|
|
6415
|
-
|
|
6430
|
+
var blob = new Blob(JSCompiler_object_inline_chunks_266, {
|
|
6431
|
+
type: mimeType
|
|
6432
|
+
}),
|
|
6433
|
+
backingStore = response._formData;
|
|
6434
|
+
backingStore.data.append(name, blob, filename);
|
|
6435
|
+
var keys = backingStore.keys;
|
|
6436
|
+
null === keys
|
|
6437
|
+
? ((backingStore.keys = Array.from(backingStore.data.keys())),
|
|
6438
|
+
(backingStore.keyPointer = 0))
|
|
6439
|
+
: keys.push(name);
|
|
6416
6440
|
pendingFiles--;
|
|
6417
6441
|
if (0 === pendingFiles) {
|
|
6418
6442
|
for (blob = 0; blob < queuedFields.length; blob += 2)
|
|
@@ -2277,6 +2277,14 @@ function requireModule(metadata) {
|
|
|
2277
2277
|
if (hasOwnProperty.call(moduleExports, metadata[2]))
|
|
2278
2278
|
return moduleExports[metadata[2]];
|
|
2279
2279
|
}
|
|
2280
|
+
function appendBackingEntry(backingStore, key, value) {
|
|
2281
|
+
backingStore.data.append(key, value);
|
|
2282
|
+
value = backingStore.keys;
|
|
2283
|
+
null === value
|
|
2284
|
+
? ((backingStore.keys = Array.from(backingStore.data.keys())),
|
|
2285
|
+
(backingStore.keyPointer = 0))
|
|
2286
|
+
: value.push(key);
|
|
2287
|
+
}
|
|
2280
2288
|
var RESPONSE_SYMBOL = Symbol();
|
|
2281
2289
|
function ReactPromise(status, value, reason) {
|
|
2282
2290
|
this.status = status;
|
|
@@ -2649,7 +2657,7 @@ function getChunk(response, id) {
|
|
|
2649
2657
|
var chunks = response._chunks,
|
|
2650
2658
|
chunk = chunks.get(id);
|
|
2651
2659
|
chunk ||
|
|
2652
|
-
((chunk = response._formData.get(response._prefix + id)),
|
|
2660
|
+
((chunk = response._formData.data.get(response._prefix + id)),
|
|
2653
2661
|
(chunk =
|
|
2654
2662
|
"string" === typeof chunk
|
|
2655
2663
|
? createResolvedModelChunk(response, chunk, id)
|
|
@@ -2750,6 +2758,10 @@ function getOutlinedModel(
|
|
|
2750
2758
|
case "fulfilled":
|
|
2751
2759
|
id = chunk.value;
|
|
2752
2760
|
chunk = chunk.reason;
|
|
2761
|
+
if (null !== chunk && "error" in chunk)
|
|
2762
|
+
throw Error(
|
|
2763
|
+
"Expected an initialized chunk but got an initialized stream chunk instead. This payload may have been submitted by an older version of React."
|
|
2764
|
+
);
|
|
2753
2765
|
for (
|
|
2754
2766
|
var localLength = 0,
|
|
2755
2767
|
rootArrayContexts = response._rootArrayContexts,
|
|
@@ -2832,23 +2844,20 @@ function getOutlinedModel(
|
|
|
2832
2844
|
function createMap(response, model) {
|
|
2833
2845
|
if (!isArrayImpl(model)) throw Error("Invalid Map initializer.");
|
|
2834
2846
|
if (!0 === model.$$consumed) throw Error("Already initialized Map.");
|
|
2835
|
-
response = new Map(model);
|
|
2836
2847
|
model.$$consumed = !0;
|
|
2837
|
-
return
|
|
2848
|
+
return new Map(model);
|
|
2838
2849
|
}
|
|
2839
2850
|
function createSet(response, model) {
|
|
2840
2851
|
if (!isArrayImpl(model)) throw Error("Invalid Set initializer.");
|
|
2841
2852
|
if (!0 === model.$$consumed) throw Error("Already initialized Set.");
|
|
2842
|
-
response = new Set(model);
|
|
2843
2853
|
model.$$consumed = !0;
|
|
2844
|
-
return
|
|
2854
|
+
return new Set(model);
|
|
2845
2855
|
}
|
|
2846
2856
|
function extractIterator(response, model) {
|
|
2847
2857
|
if (!isArrayImpl(model)) throw Error("Invalid Iterator initializer.");
|
|
2848
2858
|
if (!0 === model.$$consumed) throw Error("Already initialized Iterator.");
|
|
2849
|
-
response = model[Symbol.iterator]();
|
|
2850
2859
|
model.$$consumed = !0;
|
|
2851
|
-
return
|
|
2860
|
+
return model[Symbol.iterator]();
|
|
2852
2861
|
}
|
|
2853
2862
|
function createModel(response, model, parentObject, key) {
|
|
2854
2863
|
return "then" === key && "function" === typeof model ? null : model;
|
|
@@ -2886,7 +2895,7 @@ function parseTypedArray(
|
|
|
2886
2895
|
Error("Already initialized typed array.")
|
|
2887
2896
|
)
|
|
2888
2897
|
);
|
|
2889
|
-
reference = response._formData.get(key).arrayBuffer();
|
|
2898
|
+
reference = response._formData.data.get(key).arrayBuffer();
|
|
2890
2899
|
if (initializingHandler) {
|
|
2891
2900
|
var handler = initializingHandler;
|
|
2892
2901
|
handler.deps++;
|
|
@@ -2930,7 +2939,7 @@ function resolveStream(response, id, stream, controller) {
|
|
|
2930
2939
|
var chunks = response._chunks;
|
|
2931
2940
|
stream = new ReactPromise("fulfilled", stream, controller);
|
|
2932
2941
|
chunks.set(id, stream);
|
|
2933
|
-
response = response._formData.getAll(response._prefix + id);
|
|
2942
|
+
response = response._formData.data.getAll(response._prefix + id);
|
|
2934
2943
|
for (id = 0; id < response.length; id++)
|
|
2935
2944
|
(chunks = response[id]),
|
|
2936
2945
|
"string" === typeof chunks &&
|
|
@@ -3145,24 +3154,31 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
|
|
|
3145
3154
|
getOutlinedModel(response, arrayRoot, obj, key, null, createSet)
|
|
3146
3155
|
);
|
|
3147
3156
|
case "K":
|
|
3148
|
-
|
|
3149
|
-
obj = response._prefix +
|
|
3150
|
-
key =
|
|
3151
|
-
|
|
3152
|
-
|
|
3153
|
-
|
|
3154
|
-
|
|
3157
|
+
key = value.slice(2);
|
|
3158
|
+
obj = response._prefix + "_";
|
|
3159
|
+
key = obj + key + "_";
|
|
3160
|
+
arrayRoot = new FormData();
|
|
3161
|
+
for (response = response._formData; ; ) {
|
|
3162
|
+
value = response.keys;
|
|
3163
|
+
null === value &&
|
|
3164
|
+
((value = response.keys = Array.from(response.data.keys())),
|
|
3165
|
+
(response.keyPointer = 0));
|
|
3166
|
+
value = value[response.keyPointer];
|
|
3167
|
+
if (void 0 === value) break;
|
|
3168
|
+
if (value.startsWith(key)) {
|
|
3169
|
+
reference = response.data.getAll(value);
|
|
3155
3170
|
for (
|
|
3156
|
-
var
|
|
3157
|
-
|
|
3158
|
-
|
|
3159
|
-
j < entries.length;
|
|
3160
|
-
j++
|
|
3171
|
+
var referencedFormDataKey = value.slice(key.length), i = 0;
|
|
3172
|
+
i < reference.length;
|
|
3173
|
+
i++
|
|
3161
3174
|
)
|
|
3162
|
-
|
|
3163
|
-
response.delete(
|
|
3164
|
-
|
|
3165
|
-
|
|
3175
|
+
arrayRoot.append(referencedFormDataKey, reference[i]);
|
|
3176
|
+
response.data.delete(value);
|
|
3177
|
+
response.keyPointer++;
|
|
3178
|
+
} else if (value.startsWith(obj)) break;
|
|
3179
|
+
else response.keyPointer++;
|
|
3180
|
+
}
|
|
3181
|
+
return arrayRoot;
|
|
3166
3182
|
case "i":
|
|
3167
3183
|
return (
|
|
3168
3184
|
(arrayRoot = value.slice(2)),
|
|
@@ -3321,7 +3337,7 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
|
|
|
3321
3337
|
case "B":
|
|
3322
3338
|
return (
|
|
3323
3339
|
(obj = parseInt(value.slice(2), 16)),
|
|
3324
|
-
response._formData.get(response._prefix + obj)
|
|
3340
|
+
response._formData.data.get(response._prefix + obj)
|
|
3325
3341
|
);
|
|
3326
3342
|
case "R":
|
|
3327
3343
|
return parseReadableStream(response, value, void 0);
|
|
@@ -3349,7 +3365,7 @@ function createResponse(bundlerConfig, formFieldPrefix, temporaryReferences) {
|
|
|
3349
3365
|
return {
|
|
3350
3366
|
_bundlerConfig: bundlerConfig,
|
|
3351
3367
|
_prefix: formFieldPrefix,
|
|
3352
|
-
_formData: backingFormData,
|
|
3368
|
+
_formData: { data: backingFormData, keyPointer: -1, keys: null },
|
|
3353
3369
|
_chunks: chunks,
|
|
3354
3370
|
_closed: !1,
|
|
3355
3371
|
_closedReason: null,
|
|
@@ -3359,7 +3375,7 @@ function createResponse(bundlerConfig, formFieldPrefix, temporaryReferences) {
|
|
|
3359
3375
|
};
|
|
3360
3376
|
}
|
|
3361
3377
|
function resolveField(response, key, value) {
|
|
3362
|
-
response._formData
|
|
3378
|
+
appendBackingEntry(response._formData, key, value);
|
|
3363
3379
|
var prefix = response._prefix;
|
|
3364
3380
|
if (key.startsWith(prefix)) {
|
|
3365
3381
|
var chunks = response._chunks;
|
|
@@ -3537,7 +3553,7 @@ exports.decodeReplyFromAsyncIterable = function (
|
|
|
3537
3553
|
_entry$value = _entry$value[1];
|
|
3538
3554
|
"string" === typeof _entry$value
|
|
3539
3555
|
? resolveField(response, entry, _entry$value)
|
|
3540
|
-
: response._formData
|
|
3556
|
+
: appendBackingEntry(response._formData, entry, _entry$value);
|
|
3541
3557
|
iterator.next().then(progress, error);
|
|
3542
3558
|
}
|
|
3543
3559
|
}
|
|
@@ -3587,16 +3603,22 @@ exports.decodeReplyFromBusboy = function (busboyStream, webpackMap, options) {
|
|
|
3587
3603
|
);
|
|
3588
3604
|
else {
|
|
3589
3605
|
pendingFiles++;
|
|
3590
|
-
var
|
|
3606
|
+
var JSCompiler_object_inline_chunks_296 = [];
|
|
3591
3607
|
value.on("data", function (chunk) {
|
|
3592
|
-
|
|
3608
|
+
JSCompiler_object_inline_chunks_296.push(chunk);
|
|
3593
3609
|
});
|
|
3594
3610
|
value.on("end", function () {
|
|
3595
3611
|
try {
|
|
3596
|
-
var blob = new Blob(
|
|
3597
|
-
|
|
3598
|
-
|
|
3599
|
-
|
|
3612
|
+
var blob = new Blob(JSCompiler_object_inline_chunks_296, {
|
|
3613
|
+
type: mimeType
|
|
3614
|
+
}),
|
|
3615
|
+
backingStore = response._formData;
|
|
3616
|
+
backingStore.data.append(name, blob, filename);
|
|
3617
|
+
var keys = backingStore.keys;
|
|
3618
|
+
null === keys
|
|
3619
|
+
? ((backingStore.keys = Array.from(backingStore.data.keys())),
|
|
3620
|
+
(backingStore.keyPointer = 0))
|
|
3621
|
+
: keys.push(name);
|
|
3600
3622
|
pendingFiles--;
|
|
3601
3623
|
if (0 === pendingFiles) {
|
|
3602
3624
|
for (blob = 0; blob < queuedFields.length; blob += 2)
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-server-dom-webpack",
|
|
3
3
|
"description": "React Server Components bindings for DOM using Webpack. This is intended to be integrated into meta-frameworks. It is not intended to be imported directly.",
|
|
4
|
-
"version": "19.2.
|
|
4
|
+
"version": "19.2.6",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react"
|
|
7
7
|
],
|
|
@@ -84,8 +84,8 @@
|
|
|
84
84
|
"node": ">=0.10.0"
|
|
85
85
|
},
|
|
86
86
|
"peerDependencies": {
|
|
87
|
-
"react": "^19.2.
|
|
88
|
-
"react-dom": "^19.2.
|
|
87
|
+
"react": "^19.2.6",
|
|
88
|
+
"react-dom": "^19.2.6",
|
|
89
89
|
"webpack": "^5.59.0"
|
|
90
90
|
},
|
|
91
91
|
"dependencies": {
|