react-server-dom-parcel 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-parcel-client.browser.development.js +3 -3
- package/cjs/react-server-dom-parcel-client.browser.production.js +1 -1
- package/cjs/react-server-dom-parcel-client.edge.development.js +1 -1
- package/cjs/react-server-dom-parcel-client.edge.production.js +1 -1
- package/cjs/react-server-dom-parcel-client.node.development.js +1 -1
- package/cjs/react-server-dom-parcel-client.node.production.js +1 -1
- package/cjs/react-server-dom-parcel-server.browser.development.js +37 -27
- package/cjs/react-server-dom-parcel-server.browser.production.js +35 -27
- package/cjs/react-server-dom-parcel-server.edge.development.js +47 -29
- package/cjs/react-server-dom-parcel-server.edge.production.js +45 -29
- package/cjs/react-server-dom-parcel-server.node.development.js +59 -35
- package/cjs/react-server-dom-parcel-server.node.production.js +57 -35
- package/package.json +3 -3
|
@@ -463,7 +463,7 @@
|
|
|
463
463
|
null === formData && (formData = new FormData());
|
|
464
464
|
var _data3 = formData;
|
|
465
465
|
key = nextPartId++;
|
|
466
|
-
var prefix = formFieldPrefix + key + "_";
|
|
466
|
+
var prefix = formFieldPrefix + "_" + key + "_";
|
|
467
467
|
value.forEach(function (originalValue, originalKey) {
|
|
468
468
|
_data3.append(prefix + originalKey, originalValue);
|
|
469
469
|
});
|
|
@@ -4800,10 +4800,10 @@
|
|
|
4800
4800
|
return hook.checkDCE ? !0 : !1;
|
|
4801
4801
|
})({
|
|
4802
4802
|
bundleType: 1,
|
|
4803
|
-
version: "19.2.
|
|
4803
|
+
version: "19.2.6",
|
|
4804
4804
|
rendererPackageName: "react-server-dom-parcel",
|
|
4805
4805
|
currentDispatcherRef: ReactSharedInternals,
|
|
4806
|
-
reconcilerVersion: "19.2.
|
|
4806
|
+
reconcilerVersion: "19.2.6",
|
|
4807
4807
|
getCurrentComponentInfo: function () {
|
|
4808
4808
|
return currentOwnerInDEV;
|
|
4809
4809
|
}
|
|
@@ -266,7 +266,7 @@ function processReply(
|
|
|
266
266
|
null === formData && (formData = new FormData());
|
|
267
267
|
var data$31 = formData;
|
|
268
268
|
key = nextPartId++;
|
|
269
|
-
var prefix = formFieldPrefix + key + "_";
|
|
269
|
+
var prefix = formFieldPrefix + "_" + key + "_";
|
|
270
270
|
value.forEach(function (originalValue, originalKey) {
|
|
271
271
|
data$31.append(prefix + originalKey, originalValue);
|
|
272
272
|
});
|
|
@@ -473,7 +473,7 @@
|
|
|
473
473
|
null === formData && (formData = new FormData());
|
|
474
474
|
var _data3 = formData;
|
|
475
475
|
key = nextPartId++;
|
|
476
|
-
var prefix = formFieldPrefix + key + "_";
|
|
476
|
+
var prefix = formFieldPrefix + "_" + key + "_";
|
|
477
477
|
value.forEach(function (originalValue, originalKey) {
|
|
478
478
|
_data3.append(prefix + originalKey, originalValue);
|
|
479
479
|
});
|
|
@@ -276,7 +276,7 @@ function processReply(
|
|
|
276
276
|
null === formData && (formData = new FormData());
|
|
277
277
|
var data$31 = formData;
|
|
278
278
|
key = nextPartId++;
|
|
279
|
-
var prefix = formFieldPrefix + key + "_";
|
|
279
|
+
var prefix = formFieldPrefix + "_" + key + "_";
|
|
280
280
|
value.forEach(function (originalValue, originalKey) {
|
|
281
281
|
data$31.append(prefix + originalKey, originalValue);
|
|
282
282
|
});
|
|
@@ -473,7 +473,7 @@
|
|
|
473
473
|
null === formData && (formData = new FormData());
|
|
474
474
|
var _data3 = formData;
|
|
475
475
|
key = nextPartId++;
|
|
476
|
-
var prefix = formFieldPrefix + key + "_";
|
|
476
|
+
var prefix = formFieldPrefix + "_" + key + "_";
|
|
477
477
|
value.forEach(function (originalValue, originalKey) {
|
|
478
478
|
_data3.append(prefix + originalKey, originalValue);
|
|
479
479
|
});
|
|
@@ -277,7 +277,7 @@ function processReply(
|
|
|
277
277
|
null === formData && (formData = new FormData());
|
|
278
278
|
var data$31 = formData;
|
|
279
279
|
key = nextPartId++;
|
|
280
|
-
var prefix = formFieldPrefix + key + "_";
|
|
280
|
+
var prefix = formFieldPrefix + "_" + key + "_";
|
|
281
281
|
value.forEach(function (originalValue, originalKey) {
|
|
282
282
|
data$31.append(prefix + originalKey, originalValue);
|
|
283
283
|
});
|
|
@@ -4034,7 +4034,7 @@
|
|
|
4034
4034
|
var chunks = response._chunks,
|
|
4035
4035
|
chunk = chunks.get(id);
|
|
4036
4036
|
chunk ||
|
|
4037
|
-
((chunk = response._formData.get(response._prefix + id)),
|
|
4037
|
+
((chunk = response._formData.data.get(response._prefix + id)),
|
|
4038
4038
|
(chunk =
|
|
4039
4039
|
"string" === typeof chunk
|
|
4040
4040
|
? new ReactPromise(
|
|
@@ -4146,6 +4146,10 @@
|
|
|
4146
4146
|
case "fulfilled":
|
|
4147
4147
|
id = chunk.value;
|
|
4148
4148
|
chunk = chunk.reason;
|
|
4149
|
+
if (null !== chunk && "error" in chunk)
|
|
4150
|
+
throw Error(
|
|
4151
|
+
"Expected an initialized chunk but got an initialized stream chunk instead. This payload may have been submitted by an older version of React."
|
|
4152
|
+
);
|
|
4149
4153
|
for (
|
|
4150
4154
|
var localLength = 0,
|
|
4151
4155
|
rootArrayContexts = response._rootArrayContexts,
|
|
@@ -4237,23 +4241,20 @@
|
|
|
4237
4241
|
function createMap(response, model) {
|
|
4238
4242
|
if (!isArrayImpl(model)) throw Error("Invalid Map initializer.");
|
|
4239
4243
|
if (!0 === model.$$consumed) throw Error("Already initialized Map.");
|
|
4240
|
-
response = new Map(model);
|
|
4241
4244
|
model.$$consumed = !0;
|
|
4242
|
-
return
|
|
4245
|
+
return new Map(model);
|
|
4243
4246
|
}
|
|
4244
4247
|
function createSet(response, model) {
|
|
4245
4248
|
if (!isArrayImpl(model)) throw Error("Invalid Set initializer.");
|
|
4246
4249
|
if (!0 === model.$$consumed) throw Error("Already initialized Set.");
|
|
4247
|
-
response = new Set(model);
|
|
4248
4250
|
model.$$consumed = !0;
|
|
4249
|
-
return
|
|
4251
|
+
return new Set(model);
|
|
4250
4252
|
}
|
|
4251
4253
|
function extractIterator(response, model) {
|
|
4252
4254
|
if (!isArrayImpl(model)) throw Error("Invalid Iterator initializer.");
|
|
4253
4255
|
if (!0 === model.$$consumed) throw Error("Already initialized Iterator.");
|
|
4254
|
-
response = model[Symbol.iterator]();
|
|
4255
4256
|
model.$$consumed = !0;
|
|
4256
|
-
return
|
|
4257
|
+
return model[Symbol.iterator]();
|
|
4257
4258
|
}
|
|
4258
4259
|
function createModel(response, model, parentObject, key) {
|
|
4259
4260
|
return "then" === key && "function" === typeof model ? null : model;
|
|
@@ -4291,7 +4292,7 @@
|
|
|
4291
4292
|
Error("Already initialized typed array.")
|
|
4292
4293
|
)
|
|
4293
4294
|
);
|
|
4294
|
-
reference = response._formData.get(key).arrayBuffer();
|
|
4295
|
+
reference = response._formData.data.get(key).arrayBuffer();
|
|
4295
4296
|
if (initializingHandler) {
|
|
4296
4297
|
var handler = initializingHandler;
|
|
4297
4298
|
handler.deps++;
|
|
@@ -4335,7 +4336,7 @@
|
|
|
4335
4336
|
var chunks = response._chunks;
|
|
4336
4337
|
stream = new ReactPromise("fulfilled", stream, controller);
|
|
4337
4338
|
chunks.set(id, stream);
|
|
4338
|
-
response = response._formData.getAll(response._prefix + id);
|
|
4339
|
+
response = response._formData.data.getAll(response._prefix + id);
|
|
4339
4340
|
for (id = 0; id < response.length; id++)
|
|
4340
4341
|
(chunks = response[id]),
|
|
4341
4342
|
"string" === typeof chunks &&
|
|
@@ -4555,24 +4556,33 @@
|
|
|
4555
4556
|
getOutlinedModel(response, arrayRoot, obj, key, null, createSet)
|
|
4556
4557
|
);
|
|
4557
4558
|
case "K":
|
|
4558
|
-
|
|
4559
|
-
obj = response._prefix +
|
|
4560
|
-
key =
|
|
4561
|
-
|
|
4562
|
-
|
|
4563
|
-
|
|
4564
|
-
|
|
4559
|
+
key = value.slice(2);
|
|
4560
|
+
obj = response._prefix + "_";
|
|
4561
|
+
key = obj + key + "_";
|
|
4562
|
+
arrayRoot = new FormData();
|
|
4563
|
+
for (response = response._formData; ; ) {
|
|
4564
|
+
value = response;
|
|
4565
|
+
reference = value.keys;
|
|
4566
|
+
null === reference &&
|
|
4567
|
+
((reference = value.keys = Array.from(value.data.keys())),
|
|
4568
|
+
(value.keyPointer = 0));
|
|
4569
|
+
value = reference[value.keyPointer];
|
|
4570
|
+
if (void 0 === value) break;
|
|
4571
|
+
if (value.startsWith(key)) {
|
|
4572
|
+
reference = response.data.getAll(value);
|
|
4565
4573
|
for (
|
|
4566
|
-
var
|
|
4567
|
-
|
|
4568
|
-
|
|
4569
|
-
j < entries.length;
|
|
4570
|
-
j++
|
|
4574
|
+
var referencedFormDataKey = value.slice(key.length), i = 0;
|
|
4575
|
+
i < reference.length;
|
|
4576
|
+
i++
|
|
4571
4577
|
)
|
|
4572
|
-
|
|
4573
|
-
response
|
|
4574
|
-
|
|
4575
|
-
|
|
4578
|
+
arrayRoot.append(referencedFormDataKey, reference[i]);
|
|
4579
|
+
reference = response;
|
|
4580
|
+
reference.data.delete(value);
|
|
4581
|
+
reference.keyPointer++;
|
|
4582
|
+
} else if (value.startsWith(obj)) break;
|
|
4583
|
+
else response.keyPointer++;
|
|
4584
|
+
}
|
|
4585
|
+
return arrayRoot;
|
|
4576
4586
|
case "i":
|
|
4577
4587
|
return (
|
|
4578
4588
|
(arrayRoot = value.slice(2)),
|
|
@@ -4741,7 +4751,7 @@
|
|
|
4741
4751
|
case "B":
|
|
4742
4752
|
return (
|
|
4743
4753
|
(obj = parseInt(value.slice(2), 16)),
|
|
4744
|
-
response._formData.get(response._prefix + obj)
|
|
4754
|
+
response._formData.data.get(response._prefix + obj)
|
|
4745
4755
|
);
|
|
4746
4756
|
case "R":
|
|
4747
4757
|
return parseReadableStream(response, value, void 0);
|
|
@@ -4780,7 +4790,7 @@
|
|
|
4780
4790
|
return {
|
|
4781
4791
|
_bundlerConfig: bundlerConfig,
|
|
4782
4792
|
_prefix: formFieldPrefix,
|
|
4783
|
-
_formData: backingFormData,
|
|
4793
|
+
_formData: { data: backingFormData, keyPointer: -1, keys: null },
|
|
4784
4794
|
_chunks: chunks,
|
|
4785
4795
|
_closed: !1,
|
|
4786
4796
|
_closedReason: null,
|
|
@@ -2402,7 +2402,7 @@ function getChunk(response, id) {
|
|
|
2402
2402
|
var chunks = response._chunks,
|
|
2403
2403
|
chunk = chunks.get(id);
|
|
2404
2404
|
chunk ||
|
|
2405
|
-
((chunk = response._formData.get(response._prefix + id)),
|
|
2405
|
+
((chunk = response._formData.data.get(response._prefix + id)),
|
|
2406
2406
|
(chunk =
|
|
2407
2407
|
"string" === typeof chunk
|
|
2408
2408
|
? createResolvedModelChunk(response, chunk, id)
|
|
@@ -2503,6 +2503,10 @@ function getOutlinedModel(
|
|
|
2503
2503
|
case "fulfilled":
|
|
2504
2504
|
id = chunk.value;
|
|
2505
2505
|
chunk = chunk.reason;
|
|
2506
|
+
if (null !== chunk && "error" in chunk)
|
|
2507
|
+
throw Error(
|
|
2508
|
+
"Expected an initialized chunk but got an initialized stream chunk instead. This payload may have been submitted by an older version of React."
|
|
2509
|
+
);
|
|
2506
2510
|
for (
|
|
2507
2511
|
var localLength = 0,
|
|
2508
2512
|
rootArrayContexts = response._rootArrayContexts,
|
|
@@ -2585,23 +2589,20 @@ function getOutlinedModel(
|
|
|
2585
2589
|
function createMap(response, model) {
|
|
2586
2590
|
if (!isArrayImpl(model)) throw Error("Invalid Map initializer.");
|
|
2587
2591
|
if (!0 === model.$$consumed) throw Error("Already initialized Map.");
|
|
2588
|
-
response = new Map(model);
|
|
2589
2592
|
model.$$consumed = !0;
|
|
2590
|
-
return
|
|
2593
|
+
return new Map(model);
|
|
2591
2594
|
}
|
|
2592
2595
|
function createSet(response, model) {
|
|
2593
2596
|
if (!isArrayImpl(model)) throw Error("Invalid Set initializer.");
|
|
2594
2597
|
if (!0 === model.$$consumed) throw Error("Already initialized Set.");
|
|
2595
|
-
response = new Set(model);
|
|
2596
2598
|
model.$$consumed = !0;
|
|
2597
|
-
return
|
|
2599
|
+
return new Set(model);
|
|
2598
2600
|
}
|
|
2599
2601
|
function extractIterator(response, model) {
|
|
2600
2602
|
if (!isArrayImpl(model)) throw Error("Invalid Iterator initializer.");
|
|
2601
2603
|
if (!0 === model.$$consumed) throw Error("Already initialized Iterator.");
|
|
2602
|
-
response = model[Symbol.iterator]();
|
|
2603
2604
|
model.$$consumed = !0;
|
|
2604
|
-
return
|
|
2605
|
+
return model[Symbol.iterator]();
|
|
2605
2606
|
}
|
|
2606
2607
|
function createModel(response, model, parentObject, key) {
|
|
2607
2608
|
return "then" === key && "function" === typeof model ? null : model;
|
|
@@ -2639,7 +2640,7 @@ function parseTypedArray(
|
|
|
2639
2640
|
Error("Already initialized typed array.")
|
|
2640
2641
|
)
|
|
2641
2642
|
);
|
|
2642
|
-
reference = response._formData.get(key).arrayBuffer();
|
|
2643
|
+
reference = response._formData.data.get(key).arrayBuffer();
|
|
2643
2644
|
if (initializingHandler) {
|
|
2644
2645
|
var handler = initializingHandler;
|
|
2645
2646
|
handler.deps++;
|
|
@@ -2683,7 +2684,7 @@ function resolveStream(response, id, stream, controller) {
|
|
|
2683
2684
|
var chunks = response._chunks;
|
|
2684
2685
|
stream = new ReactPromise("fulfilled", stream, controller);
|
|
2685
2686
|
chunks.set(id, stream);
|
|
2686
|
-
response = response._formData.getAll(response._prefix + id);
|
|
2687
|
+
response = response._formData.data.getAll(response._prefix + id);
|
|
2687
2688
|
for (id = 0; id < response.length; id++)
|
|
2688
2689
|
(chunks = response[id]),
|
|
2689
2690
|
"string" === typeof chunks &&
|
|
@@ -2898,24 +2899,31 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
|
|
|
2898
2899
|
getOutlinedModel(response, arrayRoot, obj, key, null, createSet)
|
|
2899
2900
|
);
|
|
2900
2901
|
case "K":
|
|
2901
|
-
|
|
2902
|
-
obj = response._prefix +
|
|
2903
|
-
key =
|
|
2904
|
-
|
|
2905
|
-
|
|
2906
|
-
|
|
2907
|
-
|
|
2902
|
+
key = value.slice(2);
|
|
2903
|
+
obj = response._prefix + "_";
|
|
2904
|
+
key = obj + key + "_";
|
|
2905
|
+
arrayRoot = new FormData();
|
|
2906
|
+
for (response = response._formData; ; ) {
|
|
2907
|
+
value = response.keys;
|
|
2908
|
+
null === value &&
|
|
2909
|
+
((value = response.keys = Array.from(response.data.keys())),
|
|
2910
|
+
(response.keyPointer = 0));
|
|
2911
|
+
value = value[response.keyPointer];
|
|
2912
|
+
if (void 0 === value) break;
|
|
2913
|
+
if (value.startsWith(key)) {
|
|
2914
|
+
reference = response.data.getAll(value);
|
|
2908
2915
|
for (
|
|
2909
|
-
var
|
|
2910
|
-
|
|
2911
|
-
|
|
2912
|
-
j < entries.length;
|
|
2913
|
-
j++
|
|
2916
|
+
var referencedFormDataKey = value.slice(key.length), i = 0;
|
|
2917
|
+
i < reference.length;
|
|
2918
|
+
i++
|
|
2914
2919
|
)
|
|
2915
|
-
|
|
2916
|
-
response.delete(
|
|
2917
|
-
|
|
2918
|
-
|
|
2920
|
+
arrayRoot.append(referencedFormDataKey, reference[i]);
|
|
2921
|
+
response.data.delete(value);
|
|
2922
|
+
response.keyPointer++;
|
|
2923
|
+
} else if (value.startsWith(obj)) break;
|
|
2924
|
+
else response.keyPointer++;
|
|
2925
|
+
}
|
|
2926
|
+
return arrayRoot;
|
|
2919
2927
|
case "i":
|
|
2920
2928
|
return (
|
|
2921
2929
|
(arrayRoot = value.slice(2)),
|
|
@@ -3074,7 +3082,7 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
|
|
|
3074
3082
|
case "B":
|
|
3075
3083
|
return (
|
|
3076
3084
|
(obj = parseInt(value.slice(2), 16)),
|
|
3077
|
-
response._formData.get(response._prefix + obj)
|
|
3085
|
+
response._formData.data.get(response._prefix + obj)
|
|
3078
3086
|
);
|
|
3079
3087
|
case "R":
|
|
3080
3088
|
return parseReadableStream(response, value, void 0);
|
|
@@ -3102,7 +3110,7 @@ function createResponse(bundlerConfig, formFieldPrefix, temporaryReferences) {
|
|
|
3102
3110
|
return {
|
|
3103
3111
|
_bundlerConfig: bundlerConfig,
|
|
3104
3112
|
_prefix: formFieldPrefix,
|
|
3105
|
-
_formData: backingFormData,
|
|
3113
|
+
_formData: { data: backingFormData, keyPointer: -1, keys: null },
|
|
3106
3114
|
_chunks: chunks,
|
|
3107
3115
|
_closed: !1,
|
|
3108
3116
|
_closedReason: null,
|
|
@@ -3797,6 +3797,14 @@
|
|
|
3797
3797
|
});
|
|
3798
3798
|
enqueueFlush(request);
|
|
3799
3799
|
}
|
|
3800
|
+
function appendBackingEntry(backingStore, key, value) {
|
|
3801
|
+
backingStore.data.append(key, value);
|
|
3802
|
+
value = backingStore.keys;
|
|
3803
|
+
null === value
|
|
3804
|
+
? ((backingStore.keys = Array.from(backingStore.data.keys())),
|
|
3805
|
+
(backingStore.keyPointer = 0))
|
|
3806
|
+
: value.push(key);
|
|
3807
|
+
}
|
|
3800
3808
|
function ReactPromise(status, value, reason) {
|
|
3801
3809
|
this.status = status;
|
|
3802
3810
|
this.value = value;
|
|
@@ -4109,7 +4117,7 @@
|
|
|
4109
4117
|
var chunks = response._chunks,
|
|
4110
4118
|
chunk = chunks.get(id);
|
|
4111
4119
|
chunk ||
|
|
4112
|
-
((chunk = response._formData.get(response._prefix + id)),
|
|
4120
|
+
((chunk = response._formData.data.get(response._prefix + id)),
|
|
4113
4121
|
(chunk =
|
|
4114
4122
|
"string" === typeof chunk
|
|
4115
4123
|
? new ReactPromise(
|
|
@@ -4221,6 +4229,10 @@
|
|
|
4221
4229
|
case "fulfilled":
|
|
4222
4230
|
id = chunk.value;
|
|
4223
4231
|
chunk = chunk.reason;
|
|
4232
|
+
if (null !== chunk && "error" in chunk)
|
|
4233
|
+
throw Error(
|
|
4234
|
+
"Expected an initialized chunk but got an initialized stream chunk instead. This payload may have been submitted by an older version of React."
|
|
4235
|
+
);
|
|
4224
4236
|
for (
|
|
4225
4237
|
var localLength = 0,
|
|
4226
4238
|
rootArrayContexts = response._rootArrayContexts,
|
|
@@ -4312,23 +4324,20 @@
|
|
|
4312
4324
|
function createMap(response, model) {
|
|
4313
4325
|
if (!isArrayImpl(model)) throw Error("Invalid Map initializer.");
|
|
4314
4326
|
if (!0 === model.$$consumed) throw Error("Already initialized Map.");
|
|
4315
|
-
response = new Map(model);
|
|
4316
4327
|
model.$$consumed = !0;
|
|
4317
|
-
return
|
|
4328
|
+
return new Map(model);
|
|
4318
4329
|
}
|
|
4319
4330
|
function createSet(response, model) {
|
|
4320
4331
|
if (!isArrayImpl(model)) throw Error("Invalid Set initializer.");
|
|
4321
4332
|
if (!0 === model.$$consumed) throw Error("Already initialized Set.");
|
|
4322
|
-
response = new Set(model);
|
|
4323
4333
|
model.$$consumed = !0;
|
|
4324
|
-
return
|
|
4334
|
+
return new Set(model);
|
|
4325
4335
|
}
|
|
4326
4336
|
function extractIterator(response, model) {
|
|
4327
4337
|
if (!isArrayImpl(model)) throw Error("Invalid Iterator initializer.");
|
|
4328
4338
|
if (!0 === model.$$consumed) throw Error("Already initialized Iterator.");
|
|
4329
|
-
response = model[Symbol.iterator]();
|
|
4330
4339
|
model.$$consumed = !0;
|
|
4331
|
-
return
|
|
4340
|
+
return model[Symbol.iterator]();
|
|
4332
4341
|
}
|
|
4333
4342
|
function createModel(response, model, parentObject, key) {
|
|
4334
4343
|
return "then" === key && "function" === typeof model ? null : model;
|
|
@@ -4366,7 +4375,7 @@
|
|
|
4366
4375
|
Error("Already initialized typed array.")
|
|
4367
4376
|
)
|
|
4368
4377
|
);
|
|
4369
|
-
reference = response._formData.get(key).arrayBuffer();
|
|
4378
|
+
reference = response._formData.data.get(key).arrayBuffer();
|
|
4370
4379
|
if (initializingHandler) {
|
|
4371
4380
|
var handler = initializingHandler;
|
|
4372
4381
|
handler.deps++;
|
|
@@ -4410,7 +4419,7 @@
|
|
|
4410
4419
|
var chunks = response._chunks;
|
|
4411
4420
|
stream = new ReactPromise("fulfilled", stream, controller);
|
|
4412
4421
|
chunks.set(id, stream);
|
|
4413
|
-
response = response._formData.getAll(response._prefix + id);
|
|
4422
|
+
response = response._formData.data.getAll(response._prefix + id);
|
|
4414
4423
|
for (id = 0; id < response.length; id++)
|
|
4415
4424
|
(chunks = response[id]),
|
|
4416
4425
|
"string" === typeof chunks &&
|
|
@@ -4630,24 +4639,33 @@
|
|
|
4630
4639
|
getOutlinedModel(response, arrayRoot, obj, key, null, createSet)
|
|
4631
4640
|
);
|
|
4632
4641
|
case "K":
|
|
4633
|
-
|
|
4634
|
-
obj = response._prefix +
|
|
4635
|
-
key =
|
|
4636
|
-
|
|
4637
|
-
|
|
4638
|
-
|
|
4639
|
-
|
|
4642
|
+
key = value.slice(2);
|
|
4643
|
+
obj = response._prefix + "_";
|
|
4644
|
+
key = obj + key + "_";
|
|
4645
|
+
arrayRoot = new FormData();
|
|
4646
|
+
for (response = response._formData; ; ) {
|
|
4647
|
+
value = response;
|
|
4648
|
+
reference = value.keys;
|
|
4649
|
+
null === reference &&
|
|
4650
|
+
((reference = value.keys = Array.from(value.data.keys())),
|
|
4651
|
+
(value.keyPointer = 0));
|
|
4652
|
+
value = reference[value.keyPointer];
|
|
4653
|
+
if (void 0 === value) break;
|
|
4654
|
+
if (value.startsWith(key)) {
|
|
4655
|
+
reference = response.data.getAll(value);
|
|
4640
4656
|
for (
|
|
4641
|
-
var
|
|
4642
|
-
|
|
4643
|
-
|
|
4644
|
-
j < entries.length;
|
|
4645
|
-
j++
|
|
4657
|
+
var referencedFormDataKey = value.slice(key.length), i = 0;
|
|
4658
|
+
i < reference.length;
|
|
4659
|
+
i++
|
|
4646
4660
|
)
|
|
4647
|
-
|
|
4648
|
-
response
|
|
4649
|
-
|
|
4650
|
-
|
|
4661
|
+
arrayRoot.append(referencedFormDataKey, reference[i]);
|
|
4662
|
+
reference = response;
|
|
4663
|
+
reference.data.delete(value);
|
|
4664
|
+
reference.keyPointer++;
|
|
4665
|
+
} else if (value.startsWith(obj)) break;
|
|
4666
|
+
else response.keyPointer++;
|
|
4667
|
+
}
|
|
4668
|
+
return arrayRoot;
|
|
4651
4669
|
case "i":
|
|
4652
4670
|
return (
|
|
4653
4671
|
(arrayRoot = value.slice(2)),
|
|
@@ -4816,7 +4834,7 @@
|
|
|
4816
4834
|
case "B":
|
|
4817
4835
|
return (
|
|
4818
4836
|
(obj = parseInt(value.slice(2), 16)),
|
|
4819
|
-
response._formData.get(response._prefix + obj)
|
|
4837
|
+
response._formData.data.get(response._prefix + obj)
|
|
4820
4838
|
);
|
|
4821
4839
|
case "R":
|
|
4822
4840
|
return parseReadableStream(response, value, void 0);
|
|
@@ -4855,7 +4873,7 @@
|
|
|
4855
4873
|
return {
|
|
4856
4874
|
_bundlerConfig: bundlerConfig,
|
|
4857
4875
|
_prefix: formFieldPrefix,
|
|
4858
|
-
_formData: backingFormData,
|
|
4876
|
+
_formData: { data: backingFormData, keyPointer: -1, keys: null },
|
|
4859
4877
|
_chunks: chunks,
|
|
4860
4878
|
_closed: !1,
|
|
4861
4879
|
_closedReason: null,
|
|
@@ -5516,7 +5534,7 @@
|
|
|
5516
5534
|
entry = entry[1];
|
|
5517
5535
|
if ("string" === typeof entry) {
|
|
5518
5536
|
var response = response$jscomp$0;
|
|
5519
|
-
response._formData
|
|
5537
|
+
appendBackingEntry(response._formData, name, entry);
|
|
5520
5538
|
var prefix = response._prefix;
|
|
5521
5539
|
if (name.startsWith(prefix)) {
|
|
5522
5540
|
var chunks = response._chunks;
|
|
@@ -5524,7 +5542,7 @@
|
|
|
5524
5542
|
(chunks = chunks.get(name)) &&
|
|
5525
5543
|
resolveModelChunk(response, chunks, entry, name);
|
|
5526
5544
|
}
|
|
5527
|
-
} else response$jscomp$0._formData
|
|
5545
|
+
} else appendBackingEntry(response$jscomp$0._formData, name, entry);
|
|
5528
5546
|
iterator.next().then(progress, error);
|
|
5529
5547
|
}
|
|
5530
5548
|
}
|
|
@@ -2035,6 +2035,14 @@ function abort(request, reason) {
|
|
|
2035
2035
|
fatalError(request, error$26);
|
|
2036
2036
|
}
|
|
2037
2037
|
}
|
|
2038
|
+
function appendBackingEntry(backingStore, key, value) {
|
|
2039
|
+
backingStore.data.append(key, value);
|
|
2040
|
+
value = backingStore.keys;
|
|
2041
|
+
null === value
|
|
2042
|
+
? ((backingStore.keys = Array.from(backingStore.data.keys())),
|
|
2043
|
+
(backingStore.keyPointer = 0))
|
|
2044
|
+
: value.push(key);
|
|
2045
|
+
}
|
|
2038
2046
|
var RESPONSE_SYMBOL = Symbol();
|
|
2039
2047
|
function ReactPromise(status, value, reason) {
|
|
2040
2048
|
this.status = status;
|
|
@@ -2407,7 +2415,7 @@ function getChunk(response, id) {
|
|
|
2407
2415
|
var chunks = response._chunks,
|
|
2408
2416
|
chunk = chunks.get(id);
|
|
2409
2417
|
chunk ||
|
|
2410
|
-
((chunk = response._formData.get(response._prefix + id)),
|
|
2418
|
+
((chunk = response._formData.data.get(response._prefix + id)),
|
|
2411
2419
|
(chunk =
|
|
2412
2420
|
"string" === typeof chunk
|
|
2413
2421
|
? createResolvedModelChunk(response, chunk, id)
|
|
@@ -2508,6 +2516,10 @@ function getOutlinedModel(
|
|
|
2508
2516
|
case "fulfilled":
|
|
2509
2517
|
id = chunk.value;
|
|
2510
2518
|
chunk = chunk.reason;
|
|
2519
|
+
if (null !== chunk && "error" in chunk)
|
|
2520
|
+
throw Error(
|
|
2521
|
+
"Expected an initialized chunk but got an initialized stream chunk instead. This payload may have been submitted by an older version of React."
|
|
2522
|
+
);
|
|
2511
2523
|
for (
|
|
2512
2524
|
var localLength = 0,
|
|
2513
2525
|
rootArrayContexts = response._rootArrayContexts,
|
|
@@ -2590,23 +2602,20 @@ function getOutlinedModel(
|
|
|
2590
2602
|
function createMap(response, model) {
|
|
2591
2603
|
if (!isArrayImpl(model)) throw Error("Invalid Map initializer.");
|
|
2592
2604
|
if (!0 === model.$$consumed) throw Error("Already initialized Map.");
|
|
2593
|
-
response = new Map(model);
|
|
2594
2605
|
model.$$consumed = !0;
|
|
2595
|
-
return
|
|
2606
|
+
return new Map(model);
|
|
2596
2607
|
}
|
|
2597
2608
|
function createSet(response, model) {
|
|
2598
2609
|
if (!isArrayImpl(model)) throw Error("Invalid Set initializer.");
|
|
2599
2610
|
if (!0 === model.$$consumed) throw Error("Already initialized Set.");
|
|
2600
|
-
response = new Set(model);
|
|
2601
2611
|
model.$$consumed = !0;
|
|
2602
|
-
return
|
|
2612
|
+
return new Set(model);
|
|
2603
2613
|
}
|
|
2604
2614
|
function extractIterator(response, model) {
|
|
2605
2615
|
if (!isArrayImpl(model)) throw Error("Invalid Iterator initializer.");
|
|
2606
2616
|
if (!0 === model.$$consumed) throw Error("Already initialized Iterator.");
|
|
2607
|
-
response = model[Symbol.iterator]();
|
|
2608
2617
|
model.$$consumed = !0;
|
|
2609
|
-
return
|
|
2618
|
+
return model[Symbol.iterator]();
|
|
2610
2619
|
}
|
|
2611
2620
|
function createModel(response, model, parentObject, key) {
|
|
2612
2621
|
return "then" === key && "function" === typeof model ? null : model;
|
|
@@ -2644,7 +2653,7 @@ function parseTypedArray(
|
|
|
2644
2653
|
Error("Already initialized typed array.")
|
|
2645
2654
|
)
|
|
2646
2655
|
);
|
|
2647
|
-
reference = response._formData.get(key).arrayBuffer();
|
|
2656
|
+
reference = response._formData.data.get(key).arrayBuffer();
|
|
2648
2657
|
if (initializingHandler) {
|
|
2649
2658
|
var handler = initializingHandler;
|
|
2650
2659
|
handler.deps++;
|
|
@@ -2688,7 +2697,7 @@ function resolveStream(response, id, stream, controller) {
|
|
|
2688
2697
|
var chunks = response._chunks;
|
|
2689
2698
|
stream = new ReactPromise("fulfilled", stream, controller);
|
|
2690
2699
|
chunks.set(id, stream);
|
|
2691
|
-
response = response._formData.getAll(response._prefix + id);
|
|
2700
|
+
response = response._formData.data.getAll(response._prefix + id);
|
|
2692
2701
|
for (id = 0; id < response.length; id++)
|
|
2693
2702
|
(chunks = response[id]),
|
|
2694
2703
|
"string" === typeof chunks &&
|
|
@@ -2903,24 +2912,31 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
|
|
|
2903
2912
|
getOutlinedModel(response, arrayRoot, obj, key, null, createSet)
|
|
2904
2913
|
);
|
|
2905
2914
|
case "K":
|
|
2906
|
-
|
|
2907
|
-
obj = response._prefix +
|
|
2908
|
-
key =
|
|
2909
|
-
|
|
2910
|
-
|
|
2911
|
-
|
|
2912
|
-
|
|
2915
|
+
key = value.slice(2);
|
|
2916
|
+
obj = response._prefix + "_";
|
|
2917
|
+
key = obj + key + "_";
|
|
2918
|
+
arrayRoot = new FormData();
|
|
2919
|
+
for (response = response._formData; ; ) {
|
|
2920
|
+
value = response.keys;
|
|
2921
|
+
null === value &&
|
|
2922
|
+
((value = response.keys = Array.from(response.data.keys())),
|
|
2923
|
+
(response.keyPointer = 0));
|
|
2924
|
+
value = value[response.keyPointer];
|
|
2925
|
+
if (void 0 === value) break;
|
|
2926
|
+
if (value.startsWith(key)) {
|
|
2927
|
+
reference = response.data.getAll(value);
|
|
2913
2928
|
for (
|
|
2914
|
-
var
|
|
2915
|
-
|
|
2916
|
-
|
|
2917
|
-
j < entries.length;
|
|
2918
|
-
j++
|
|
2929
|
+
var referencedFormDataKey = value.slice(key.length), i = 0;
|
|
2930
|
+
i < reference.length;
|
|
2931
|
+
i++
|
|
2919
2932
|
)
|
|
2920
|
-
|
|
2921
|
-
response.delete(
|
|
2922
|
-
|
|
2923
|
-
|
|
2933
|
+
arrayRoot.append(referencedFormDataKey, reference[i]);
|
|
2934
|
+
response.data.delete(value);
|
|
2935
|
+
response.keyPointer++;
|
|
2936
|
+
} else if (value.startsWith(obj)) break;
|
|
2937
|
+
else response.keyPointer++;
|
|
2938
|
+
}
|
|
2939
|
+
return arrayRoot;
|
|
2924
2940
|
case "i":
|
|
2925
2941
|
return (
|
|
2926
2942
|
(arrayRoot = value.slice(2)),
|
|
@@ -3079,7 +3095,7 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
|
|
|
3079
3095
|
case "B":
|
|
3080
3096
|
return (
|
|
3081
3097
|
(obj = parseInt(value.slice(2), 16)),
|
|
3082
|
-
response._formData.get(response._prefix + obj)
|
|
3098
|
+
response._formData.data.get(response._prefix + obj)
|
|
3083
3099
|
);
|
|
3084
3100
|
case "R":
|
|
3085
3101
|
return parseReadableStream(response, value, void 0);
|
|
@@ -3107,7 +3123,7 @@ function createResponse(bundlerConfig, formFieldPrefix, temporaryReferences) {
|
|
|
3107
3123
|
return {
|
|
3108
3124
|
_bundlerConfig: bundlerConfig,
|
|
3109
3125
|
_prefix: formFieldPrefix,
|
|
3110
|
-
_formData: backingFormData,
|
|
3126
|
+
_formData: { data: backingFormData, keyPointer: -1, keys: null },
|
|
3111
3127
|
_chunks: chunks,
|
|
3112
3128
|
_closed: !1,
|
|
3113
3129
|
_closedReason: null,
|
|
@@ -3251,7 +3267,7 @@ exports.decodeReplyFromAsyncIterable = function (iterable, options) {
|
|
|
3251
3267
|
var name = entry[0];
|
|
3252
3268
|
entry = entry[1];
|
|
3253
3269
|
if ("string" === typeof entry) {
|
|
3254
|
-
response._formData
|
|
3270
|
+
appendBackingEntry(response._formData, name, entry);
|
|
3255
3271
|
var prefix = response._prefix;
|
|
3256
3272
|
if (name.startsWith(prefix)) {
|
|
3257
3273
|
var chunks = response._chunks;
|
|
@@ -3259,7 +3275,7 @@ exports.decodeReplyFromAsyncIterable = function (iterable, options) {
|
|
|
3259
3275
|
(chunks = chunks.get(name)) &&
|
|
3260
3276
|
resolveModelChunk(response, chunks, entry, name);
|
|
3261
3277
|
}
|
|
3262
|
-
} else response._formData
|
|
3278
|
+
} else appendBackingEntry(response._formData, name, entry);
|
|
3263
3279
|
iterator.next().then(progress, error);
|
|
3264
3280
|
}
|
|
3265
3281
|
}
|
|
@@ -4200,6 +4200,14 @@
|
|
|
4200
4200
|
if (hasOwnProperty.call(moduleExports, metadata[1]))
|
|
4201
4201
|
return moduleExports[metadata[1]];
|
|
4202
4202
|
}
|
|
4203
|
+
function appendBackingEntry(backingStore, key, value) {
|
|
4204
|
+
backingStore.data.append(key, value);
|
|
4205
|
+
value = backingStore.keys;
|
|
4206
|
+
null === value
|
|
4207
|
+
? ((backingStore.keys = Array.from(backingStore.data.keys())),
|
|
4208
|
+
(backingStore.keyPointer = 0))
|
|
4209
|
+
: value.push(key);
|
|
4210
|
+
}
|
|
4203
4211
|
function ReactPromise(status, value, reason) {
|
|
4204
4212
|
this.status = status;
|
|
4205
4213
|
this.value = value;
|
|
@@ -4512,7 +4520,7 @@
|
|
|
4512
4520
|
var chunks = response._chunks,
|
|
4513
4521
|
chunk = chunks.get(id);
|
|
4514
4522
|
chunk ||
|
|
4515
|
-
((chunk = response._formData.get(response._prefix + id)),
|
|
4523
|
+
((chunk = response._formData.data.get(response._prefix + id)),
|
|
4516
4524
|
(chunk =
|
|
4517
4525
|
"string" === typeof chunk
|
|
4518
4526
|
? new ReactPromise(
|
|
@@ -4624,6 +4632,10 @@
|
|
|
4624
4632
|
case "fulfilled":
|
|
4625
4633
|
id = chunk.value;
|
|
4626
4634
|
chunk = chunk.reason;
|
|
4635
|
+
if (null !== chunk && "error" in chunk)
|
|
4636
|
+
throw Error(
|
|
4637
|
+
"Expected an initialized chunk but got an initialized stream chunk instead. This payload may have been submitted by an older version of React."
|
|
4638
|
+
);
|
|
4627
4639
|
for (
|
|
4628
4640
|
var localLength = 0,
|
|
4629
4641
|
rootArrayContexts = response._rootArrayContexts,
|
|
@@ -4715,23 +4727,20 @@
|
|
|
4715
4727
|
function createMap(response, model) {
|
|
4716
4728
|
if (!isArrayImpl(model)) throw Error("Invalid Map initializer.");
|
|
4717
4729
|
if (!0 === model.$$consumed) throw Error("Already initialized Map.");
|
|
4718
|
-
response = new Map(model);
|
|
4719
4730
|
model.$$consumed = !0;
|
|
4720
|
-
return
|
|
4731
|
+
return new Map(model);
|
|
4721
4732
|
}
|
|
4722
4733
|
function createSet(response, model) {
|
|
4723
4734
|
if (!isArrayImpl(model)) throw Error("Invalid Set initializer.");
|
|
4724
4735
|
if (!0 === model.$$consumed) throw Error("Already initialized Set.");
|
|
4725
|
-
response = new Set(model);
|
|
4726
4736
|
model.$$consumed = !0;
|
|
4727
|
-
return
|
|
4737
|
+
return new Set(model);
|
|
4728
4738
|
}
|
|
4729
4739
|
function extractIterator(response, model) {
|
|
4730
4740
|
if (!isArrayImpl(model)) throw Error("Invalid Iterator initializer.");
|
|
4731
4741
|
if (!0 === model.$$consumed) throw Error("Already initialized Iterator.");
|
|
4732
|
-
response = model[Symbol.iterator]();
|
|
4733
4742
|
model.$$consumed = !0;
|
|
4734
|
-
return
|
|
4743
|
+
return model[Symbol.iterator]();
|
|
4735
4744
|
}
|
|
4736
4745
|
function createModel(response, model, parentObject, key) {
|
|
4737
4746
|
return "then" === key && "function" === typeof model ? null : model;
|
|
@@ -4769,7 +4778,7 @@
|
|
|
4769
4778
|
Error("Already initialized typed array.")
|
|
4770
4779
|
)
|
|
4771
4780
|
);
|
|
4772
|
-
reference = response._formData.get(key).arrayBuffer();
|
|
4781
|
+
reference = response._formData.data.get(key).arrayBuffer();
|
|
4773
4782
|
if (initializingHandler) {
|
|
4774
4783
|
var handler = initializingHandler;
|
|
4775
4784
|
handler.deps++;
|
|
@@ -4813,7 +4822,7 @@
|
|
|
4813
4822
|
var chunks = response._chunks;
|
|
4814
4823
|
stream = new ReactPromise("fulfilled", stream, controller);
|
|
4815
4824
|
chunks.set(id, stream);
|
|
4816
|
-
response = response._formData.getAll(response._prefix + id);
|
|
4825
|
+
response = response._formData.data.getAll(response._prefix + id);
|
|
4817
4826
|
for (id = 0; id < response.length; id++)
|
|
4818
4827
|
(chunks = response[id]),
|
|
4819
4828
|
"string" === typeof chunks &&
|
|
@@ -5033,24 +5042,33 @@
|
|
|
5033
5042
|
getOutlinedModel(response, arrayRoot, obj, key, null, createSet)
|
|
5034
5043
|
);
|
|
5035
5044
|
case "K":
|
|
5036
|
-
|
|
5037
|
-
obj = response._prefix +
|
|
5038
|
-
key =
|
|
5039
|
-
|
|
5040
|
-
|
|
5041
|
-
|
|
5042
|
-
|
|
5045
|
+
key = value.slice(2);
|
|
5046
|
+
obj = response._prefix + "_";
|
|
5047
|
+
key = obj + key + "_";
|
|
5048
|
+
arrayRoot = new FormData();
|
|
5049
|
+
for (response = response._formData; ; ) {
|
|
5050
|
+
value = response;
|
|
5051
|
+
reference = value.keys;
|
|
5052
|
+
null === reference &&
|
|
5053
|
+
((reference = value.keys = Array.from(value.data.keys())),
|
|
5054
|
+
(value.keyPointer = 0));
|
|
5055
|
+
value = reference[value.keyPointer];
|
|
5056
|
+
if (void 0 === value) break;
|
|
5057
|
+
if (value.startsWith(key)) {
|
|
5058
|
+
reference = response.data.getAll(value);
|
|
5043
5059
|
for (
|
|
5044
|
-
var
|
|
5045
|
-
|
|
5046
|
-
|
|
5047
|
-
j < entries.length;
|
|
5048
|
-
j++
|
|
5060
|
+
var referencedFormDataKey = value.slice(key.length), i = 0;
|
|
5061
|
+
i < reference.length;
|
|
5062
|
+
i++
|
|
5049
5063
|
)
|
|
5050
|
-
|
|
5051
|
-
response
|
|
5052
|
-
|
|
5053
|
-
|
|
5064
|
+
arrayRoot.append(referencedFormDataKey, reference[i]);
|
|
5065
|
+
reference = response;
|
|
5066
|
+
reference.data.delete(value);
|
|
5067
|
+
reference.keyPointer++;
|
|
5068
|
+
} else if (value.startsWith(obj)) break;
|
|
5069
|
+
else response.keyPointer++;
|
|
5070
|
+
}
|
|
5071
|
+
return arrayRoot;
|
|
5054
5072
|
case "i":
|
|
5055
5073
|
return (
|
|
5056
5074
|
(arrayRoot = value.slice(2)),
|
|
@@ -5219,7 +5237,7 @@
|
|
|
5219
5237
|
case "B":
|
|
5220
5238
|
return (
|
|
5221
5239
|
(obj = parseInt(value.slice(2), 16)),
|
|
5222
|
-
response._formData.get(response._prefix + obj)
|
|
5240
|
+
response._formData.data.get(response._prefix + obj)
|
|
5223
5241
|
);
|
|
5224
5242
|
case "R":
|
|
5225
5243
|
return parseReadableStream(response, value, void 0);
|
|
@@ -5258,7 +5276,7 @@
|
|
|
5258
5276
|
return {
|
|
5259
5277
|
_bundlerConfig: bundlerConfig,
|
|
5260
5278
|
_prefix: formFieldPrefix,
|
|
5261
|
-
_formData: backingFormData,
|
|
5279
|
+
_formData: { data: backingFormData, keyPointer: -1, keys: null },
|
|
5262
5280
|
_chunks: chunks,
|
|
5263
5281
|
_closed: !1,
|
|
5264
5282
|
_closedReason: null,
|
|
@@ -5268,7 +5286,7 @@
|
|
|
5268
5286
|
};
|
|
5269
5287
|
}
|
|
5270
5288
|
function resolveField(response, key, value) {
|
|
5271
|
-
response._formData
|
|
5289
|
+
appendBackingEntry(response._formData, key, value);
|
|
5272
5290
|
var prefix = response._prefix;
|
|
5273
5291
|
if (key.startsWith(prefix)) {
|
|
5274
5292
|
var chunks = response._chunks;
|
|
@@ -6142,7 +6160,7 @@
|
|
|
6142
6160
|
_entry$value = _entry$value[1];
|
|
6143
6161
|
"string" === typeof _entry$value
|
|
6144
6162
|
? resolveField(response, entry, _entry$value)
|
|
6145
|
-
: response._formData
|
|
6163
|
+
: appendBackingEntry(response._formData, entry, _entry$value);
|
|
6146
6164
|
iterator.next().then(progress, error);
|
|
6147
6165
|
}
|
|
6148
6166
|
}
|
|
@@ -6192,16 +6210,22 @@
|
|
|
6192
6210
|
);
|
|
6193
6211
|
else {
|
|
6194
6212
|
pendingFiles++;
|
|
6195
|
-
var
|
|
6213
|
+
var JSCompiler_object_inline_chunks_266 = [];
|
|
6196
6214
|
value.on("data", function (chunk) {
|
|
6197
|
-
|
|
6215
|
+
JSCompiler_object_inline_chunks_266.push(chunk);
|
|
6198
6216
|
});
|
|
6199
6217
|
value.on("end", function () {
|
|
6200
6218
|
try {
|
|
6201
|
-
var blob = new Blob(
|
|
6202
|
-
|
|
6203
|
-
|
|
6204
|
-
|
|
6219
|
+
var blob = new Blob(JSCompiler_object_inline_chunks_266, {
|
|
6220
|
+
type: mimeType
|
|
6221
|
+
}),
|
|
6222
|
+
backingStore = response._formData;
|
|
6223
|
+
backingStore.data.append(name, blob, filename);
|
|
6224
|
+
var keys = backingStore.keys;
|
|
6225
|
+
null === keys
|
|
6226
|
+
? ((backingStore.keys = Array.from(backingStore.data.keys())),
|
|
6227
|
+
(backingStore.keyPointer = 0))
|
|
6228
|
+
: keys.push(name);
|
|
6205
6229
|
pendingFiles--;
|
|
6206
6230
|
if (0 === pendingFiles) {
|
|
6207
6231
|
for (blob = 0; blob < queuedFields.length; blob += 2)
|
|
@@ -2064,6 +2064,14 @@ function requireModule(metadata) {
|
|
|
2064
2064
|
if (hasOwnProperty.call(moduleExports, metadata[1]))
|
|
2065
2065
|
return moduleExports[metadata[1]];
|
|
2066
2066
|
}
|
|
2067
|
+
function appendBackingEntry(backingStore, key, value) {
|
|
2068
|
+
backingStore.data.append(key, value);
|
|
2069
|
+
value = backingStore.keys;
|
|
2070
|
+
null === value
|
|
2071
|
+
? ((backingStore.keys = Array.from(backingStore.data.keys())),
|
|
2072
|
+
(backingStore.keyPointer = 0))
|
|
2073
|
+
: value.push(key);
|
|
2074
|
+
}
|
|
2067
2075
|
var RESPONSE_SYMBOL = Symbol();
|
|
2068
2076
|
function ReactPromise(status, value, reason) {
|
|
2069
2077
|
this.status = status;
|
|
@@ -2436,7 +2444,7 @@ function getChunk(response, id) {
|
|
|
2436
2444
|
var chunks = response._chunks,
|
|
2437
2445
|
chunk = chunks.get(id);
|
|
2438
2446
|
chunk ||
|
|
2439
|
-
((chunk = response._formData.get(response._prefix + id)),
|
|
2447
|
+
((chunk = response._formData.data.get(response._prefix + id)),
|
|
2440
2448
|
(chunk =
|
|
2441
2449
|
"string" === typeof chunk
|
|
2442
2450
|
? createResolvedModelChunk(response, chunk, id)
|
|
@@ -2537,6 +2545,10 @@ function getOutlinedModel(
|
|
|
2537
2545
|
case "fulfilled":
|
|
2538
2546
|
id = chunk.value;
|
|
2539
2547
|
chunk = chunk.reason;
|
|
2548
|
+
if (null !== chunk && "error" in chunk)
|
|
2549
|
+
throw Error(
|
|
2550
|
+
"Expected an initialized chunk but got an initialized stream chunk instead. This payload may have been submitted by an older version of React."
|
|
2551
|
+
);
|
|
2540
2552
|
for (
|
|
2541
2553
|
var localLength = 0,
|
|
2542
2554
|
rootArrayContexts = response._rootArrayContexts,
|
|
@@ -2619,23 +2631,20 @@ function getOutlinedModel(
|
|
|
2619
2631
|
function createMap(response, model) {
|
|
2620
2632
|
if (!isArrayImpl(model)) throw Error("Invalid Map initializer.");
|
|
2621
2633
|
if (!0 === model.$$consumed) throw Error("Already initialized Map.");
|
|
2622
|
-
response = new Map(model);
|
|
2623
2634
|
model.$$consumed = !0;
|
|
2624
|
-
return
|
|
2635
|
+
return new Map(model);
|
|
2625
2636
|
}
|
|
2626
2637
|
function createSet(response, model) {
|
|
2627
2638
|
if (!isArrayImpl(model)) throw Error("Invalid Set initializer.");
|
|
2628
2639
|
if (!0 === model.$$consumed) throw Error("Already initialized Set.");
|
|
2629
|
-
response = new Set(model);
|
|
2630
2640
|
model.$$consumed = !0;
|
|
2631
|
-
return
|
|
2641
|
+
return new Set(model);
|
|
2632
2642
|
}
|
|
2633
2643
|
function extractIterator(response, model) {
|
|
2634
2644
|
if (!isArrayImpl(model)) throw Error("Invalid Iterator initializer.");
|
|
2635
2645
|
if (!0 === model.$$consumed) throw Error("Already initialized Iterator.");
|
|
2636
|
-
response = model[Symbol.iterator]();
|
|
2637
2646
|
model.$$consumed = !0;
|
|
2638
|
-
return
|
|
2647
|
+
return model[Symbol.iterator]();
|
|
2639
2648
|
}
|
|
2640
2649
|
function createModel(response, model, parentObject, key) {
|
|
2641
2650
|
return "then" === key && "function" === typeof model ? null : model;
|
|
@@ -2673,7 +2682,7 @@ function parseTypedArray(
|
|
|
2673
2682
|
Error("Already initialized typed array.")
|
|
2674
2683
|
)
|
|
2675
2684
|
);
|
|
2676
|
-
reference = response._formData.get(key).arrayBuffer();
|
|
2685
|
+
reference = response._formData.data.get(key).arrayBuffer();
|
|
2677
2686
|
if (initializingHandler) {
|
|
2678
2687
|
var handler = initializingHandler;
|
|
2679
2688
|
handler.deps++;
|
|
@@ -2717,7 +2726,7 @@ function resolveStream(response, id, stream, controller) {
|
|
|
2717
2726
|
var chunks = response._chunks;
|
|
2718
2727
|
stream = new ReactPromise("fulfilled", stream, controller);
|
|
2719
2728
|
chunks.set(id, stream);
|
|
2720
|
-
response = response._formData.getAll(response._prefix + id);
|
|
2729
|
+
response = response._formData.data.getAll(response._prefix + id);
|
|
2721
2730
|
for (id = 0; id < response.length; id++)
|
|
2722
2731
|
(chunks = response[id]),
|
|
2723
2732
|
"string" === typeof chunks &&
|
|
@@ -2932,24 +2941,31 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
|
|
|
2932
2941
|
getOutlinedModel(response, arrayRoot, obj, key, null, createSet)
|
|
2933
2942
|
);
|
|
2934
2943
|
case "K":
|
|
2935
|
-
|
|
2936
|
-
obj = response._prefix +
|
|
2937
|
-
key =
|
|
2938
|
-
|
|
2939
|
-
|
|
2940
|
-
|
|
2941
|
-
|
|
2944
|
+
key = value.slice(2);
|
|
2945
|
+
obj = response._prefix + "_";
|
|
2946
|
+
key = obj + key + "_";
|
|
2947
|
+
arrayRoot = new FormData();
|
|
2948
|
+
for (response = response._formData; ; ) {
|
|
2949
|
+
value = response.keys;
|
|
2950
|
+
null === value &&
|
|
2951
|
+
((value = response.keys = Array.from(response.data.keys())),
|
|
2952
|
+
(response.keyPointer = 0));
|
|
2953
|
+
value = value[response.keyPointer];
|
|
2954
|
+
if (void 0 === value) break;
|
|
2955
|
+
if (value.startsWith(key)) {
|
|
2956
|
+
reference = response.data.getAll(value);
|
|
2942
2957
|
for (
|
|
2943
|
-
var
|
|
2944
|
-
|
|
2945
|
-
|
|
2946
|
-
j < entries.length;
|
|
2947
|
-
j++
|
|
2958
|
+
var referencedFormDataKey = value.slice(key.length), i = 0;
|
|
2959
|
+
i < reference.length;
|
|
2960
|
+
i++
|
|
2948
2961
|
)
|
|
2949
|
-
|
|
2950
|
-
response.delete(
|
|
2951
|
-
|
|
2952
|
-
|
|
2962
|
+
arrayRoot.append(referencedFormDataKey, reference[i]);
|
|
2963
|
+
response.data.delete(value);
|
|
2964
|
+
response.keyPointer++;
|
|
2965
|
+
} else if (value.startsWith(obj)) break;
|
|
2966
|
+
else response.keyPointer++;
|
|
2967
|
+
}
|
|
2968
|
+
return arrayRoot;
|
|
2953
2969
|
case "i":
|
|
2954
2970
|
return (
|
|
2955
2971
|
(arrayRoot = value.slice(2)),
|
|
@@ -3108,7 +3124,7 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
|
|
|
3108
3124
|
case "B":
|
|
3109
3125
|
return (
|
|
3110
3126
|
(obj = parseInt(value.slice(2), 16)),
|
|
3111
|
-
response._formData.get(response._prefix + obj)
|
|
3127
|
+
response._formData.data.get(response._prefix + obj)
|
|
3112
3128
|
);
|
|
3113
3129
|
case "R":
|
|
3114
3130
|
return parseReadableStream(response, value, void 0);
|
|
@@ -3136,7 +3152,7 @@ function createResponse(bundlerConfig, formFieldPrefix, temporaryReferences) {
|
|
|
3136
3152
|
return {
|
|
3137
3153
|
_bundlerConfig: bundlerConfig,
|
|
3138
3154
|
_prefix: formFieldPrefix,
|
|
3139
|
-
_formData: backingFormData,
|
|
3155
|
+
_formData: { data: backingFormData, keyPointer: -1, keys: null },
|
|
3140
3156
|
_chunks: chunks,
|
|
3141
3157
|
_closed: !1,
|
|
3142
3158
|
_closedReason: null,
|
|
@@ -3146,7 +3162,7 @@ function createResponse(bundlerConfig, formFieldPrefix, temporaryReferences) {
|
|
|
3146
3162
|
};
|
|
3147
3163
|
}
|
|
3148
3164
|
function resolveField(response, key, value) {
|
|
3149
|
-
response._formData
|
|
3165
|
+
appendBackingEntry(response._formData, key, value);
|
|
3150
3166
|
var prefix = response._prefix;
|
|
3151
3167
|
if (key.startsWith(prefix)) {
|
|
3152
3168
|
var chunks = response._chunks;
|
|
@@ -3332,7 +3348,7 @@ exports.decodeReplyFromAsyncIterable = function (iterable, options) {
|
|
|
3332
3348
|
_entry$value = _entry$value[1];
|
|
3333
3349
|
"string" === typeof _entry$value
|
|
3334
3350
|
? resolveField(response, entry, _entry$value)
|
|
3335
|
-
: response._formData
|
|
3351
|
+
: appendBackingEntry(response._formData, entry, _entry$value);
|
|
3336
3352
|
iterator.next().then(progress, error);
|
|
3337
3353
|
}
|
|
3338
3354
|
}
|
|
@@ -3382,16 +3398,22 @@ exports.decodeReplyFromBusboy = function (busboyStream, options) {
|
|
|
3382
3398
|
);
|
|
3383
3399
|
else {
|
|
3384
3400
|
pendingFiles++;
|
|
3385
|
-
var
|
|
3401
|
+
var JSCompiler_object_inline_chunks_292 = [];
|
|
3386
3402
|
value.on("data", function (chunk) {
|
|
3387
|
-
|
|
3403
|
+
JSCompiler_object_inline_chunks_292.push(chunk);
|
|
3388
3404
|
});
|
|
3389
3405
|
value.on("end", function () {
|
|
3390
3406
|
try {
|
|
3391
|
-
var blob = new Blob(
|
|
3392
|
-
|
|
3393
|
-
|
|
3394
|
-
|
|
3407
|
+
var blob = new Blob(JSCompiler_object_inline_chunks_292, {
|
|
3408
|
+
type: mimeType
|
|
3409
|
+
}),
|
|
3410
|
+
backingStore = response._formData;
|
|
3411
|
+
backingStore.data.append(name, blob, filename);
|
|
3412
|
+
var keys = backingStore.keys;
|
|
3413
|
+
null === keys
|
|
3414
|
+
? ((backingStore.keys = Array.from(backingStore.data.keys())),
|
|
3415
|
+
(backingStore.keyPointer = 0))
|
|
3416
|
+
: keys.push(name);
|
|
3395
3417
|
pendingFiles--;
|
|
3396
3418
|
if (0 === pendingFiles) {
|
|
3397
3419
|
for (blob = 0; blob < queuedFields.length; blob += 2)
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-server-dom-parcel",
|
|
3
3
|
"description": "React Server Components bindings for DOM using Parcel. 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,7 +78,7 @@
|
|
|
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
|
}
|