react-server-dom-parcel 19.1.5 → 19.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/react-server-dom-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 +62 -41
- package/cjs/react-server-dom-parcel-server.node.production.js +60 -41
- package/package.json +3 -3
|
@@ -487,7 +487,7 @@
|
|
|
487
487
|
null === formData && (formData = new FormData());
|
|
488
488
|
var _data3 = formData;
|
|
489
489
|
key = nextPartId++;
|
|
490
|
-
var prefix = formFieldPrefix + key + "_";
|
|
490
|
+
var prefix = formFieldPrefix + "_" + key + "_";
|
|
491
491
|
value.forEach(function (originalValue, originalKey) {
|
|
492
492
|
_data3.append(prefix + originalKey, originalValue);
|
|
493
493
|
});
|
|
@@ -2689,10 +2689,10 @@
|
|
|
2689
2689
|
return hook.checkDCE ? !0 : !1;
|
|
2690
2690
|
})({
|
|
2691
2691
|
bundleType: 1,
|
|
2692
|
-
version: "19.1.
|
|
2692
|
+
version: "19.1.7",
|
|
2693
2693
|
rendererPackageName: "react-server-dom-parcel",
|
|
2694
2694
|
currentDispatcherRef: ReactSharedInternals,
|
|
2695
|
-
reconcilerVersion: "19.1.
|
|
2695
|
+
reconcilerVersion: "19.1.7",
|
|
2696
2696
|
getCurrentComponentInfo: function () {
|
|
2697
2697
|
return currentOwnerInDEV;
|
|
2698
2698
|
}
|
|
@@ -266,7 +266,7 @@ function processReply(
|
|
|
266
266
|
null === formData && (formData = new FormData());
|
|
267
267
|
var data$32 = 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$32.append(prefix + originalKey, originalValue);
|
|
272
272
|
});
|
|
@@ -497,7 +497,7 @@
|
|
|
497
497
|
null === formData && (formData = new FormData());
|
|
498
498
|
var _data3 = formData;
|
|
499
499
|
key = nextPartId++;
|
|
500
|
-
var prefix = formFieldPrefix + key + "_";
|
|
500
|
+
var prefix = formFieldPrefix + "_" + key + "_";
|
|
501
501
|
value.forEach(function (originalValue, originalKey) {
|
|
502
502
|
_data3.append(prefix + originalKey, originalValue);
|
|
503
503
|
});
|
|
@@ -276,7 +276,7 @@ function processReply(
|
|
|
276
276
|
null === formData && (formData = new FormData());
|
|
277
277
|
var data$32 = 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$32.append(prefix + originalKey, originalValue);
|
|
282
282
|
});
|
|
@@ -497,7 +497,7 @@
|
|
|
497
497
|
null === formData && (formData = new FormData());
|
|
498
498
|
var _data3 = formData;
|
|
499
499
|
key = nextPartId++;
|
|
500
|
-
var prefix = formFieldPrefix + key + "_";
|
|
500
|
+
var prefix = formFieldPrefix + "_" + key + "_";
|
|
501
501
|
value.forEach(function (originalValue, originalKey) {
|
|
502
502
|
_data3.append(prefix + originalKey, originalValue);
|
|
503
503
|
});
|
|
@@ -277,7 +277,7 @@ function processReply(
|
|
|
277
277
|
null === formData && (formData = new FormData());
|
|
278
278
|
var data$32 = 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$32.append(prefix + originalKey, originalValue);
|
|
283
283
|
});
|
|
@@ -2916,7 +2916,7 @@
|
|
|
2916
2916
|
var chunks = response._chunks,
|
|
2917
2917
|
chunk = chunks.get(id);
|
|
2918
2918
|
chunk ||
|
|
2919
|
-
((chunk = response._formData.get(response._prefix + id)),
|
|
2919
|
+
((chunk = response._formData.data.get(response._prefix + id)),
|
|
2920
2920
|
(chunk =
|
|
2921
2921
|
"string" === typeof chunk
|
|
2922
2922
|
? new ReactPromise(
|
|
@@ -3028,6 +3028,10 @@
|
|
|
3028
3028
|
case "fulfilled":
|
|
3029
3029
|
id = chunk.value;
|
|
3030
3030
|
chunk = chunk.reason;
|
|
3031
|
+
if (null !== chunk && "error" in chunk)
|
|
3032
|
+
throw Error(
|
|
3033
|
+
"Expected an initialized chunk but got an initialized stream chunk instead. This payload may have been submitted by an older version of React."
|
|
3034
|
+
);
|
|
3031
3035
|
for (
|
|
3032
3036
|
var localLength = 0,
|
|
3033
3037
|
rootArrayContexts = response._rootArrayContexts,
|
|
@@ -3119,23 +3123,20 @@
|
|
|
3119
3123
|
function createMap(response, model) {
|
|
3120
3124
|
if (!isArrayImpl(model)) throw Error("Invalid Map initializer.");
|
|
3121
3125
|
if (!0 === model.$$consumed) throw Error("Already initialized Map.");
|
|
3122
|
-
response = new Map(model);
|
|
3123
3126
|
model.$$consumed = !0;
|
|
3124
|
-
return
|
|
3127
|
+
return new Map(model);
|
|
3125
3128
|
}
|
|
3126
3129
|
function createSet(response, model) {
|
|
3127
3130
|
if (!isArrayImpl(model)) throw Error("Invalid Set initializer.");
|
|
3128
3131
|
if (!0 === model.$$consumed) throw Error("Already initialized Set.");
|
|
3129
|
-
response = new Set(model);
|
|
3130
3132
|
model.$$consumed = !0;
|
|
3131
|
-
return
|
|
3133
|
+
return new Set(model);
|
|
3132
3134
|
}
|
|
3133
3135
|
function extractIterator(response, model) {
|
|
3134
3136
|
if (!isArrayImpl(model)) throw Error("Invalid Iterator initializer.");
|
|
3135
3137
|
if (!0 === model.$$consumed) throw Error("Already initialized Iterator.");
|
|
3136
|
-
response = model[Symbol.iterator]();
|
|
3137
3138
|
model.$$consumed = !0;
|
|
3138
|
-
return
|
|
3139
|
+
return model[Symbol.iterator]();
|
|
3139
3140
|
}
|
|
3140
3141
|
function createModel(response, model, parentObject, key) {
|
|
3141
3142
|
return "then" === key && "function" === typeof model ? null : model;
|
|
@@ -3173,7 +3174,7 @@
|
|
|
3173
3174
|
Error("Already initialized typed array.")
|
|
3174
3175
|
)
|
|
3175
3176
|
);
|
|
3176
|
-
reference = response._formData.get(key).arrayBuffer();
|
|
3177
|
+
reference = response._formData.data.get(key).arrayBuffer();
|
|
3177
3178
|
if (initializingHandler) {
|
|
3178
3179
|
var handler = initializingHandler;
|
|
3179
3180
|
handler.deps++;
|
|
@@ -3217,7 +3218,7 @@
|
|
|
3217
3218
|
var chunks = response._chunks;
|
|
3218
3219
|
stream = new ReactPromise("fulfilled", stream, controller);
|
|
3219
3220
|
chunks.set(id, stream);
|
|
3220
|
-
response = response._formData.getAll(response._prefix + id);
|
|
3221
|
+
response = response._formData.data.getAll(response._prefix + id);
|
|
3221
3222
|
for (id = 0; id < response.length; id++)
|
|
3222
3223
|
(chunks = response[id]),
|
|
3223
3224
|
"string" === typeof chunks &&
|
|
@@ -3437,24 +3438,33 @@
|
|
|
3437
3438
|
getOutlinedModel(response, arrayRoot, obj, key, null, createSet)
|
|
3438
3439
|
);
|
|
3439
3440
|
case "K":
|
|
3440
|
-
|
|
3441
|
-
obj = response._prefix +
|
|
3442
|
-
key =
|
|
3443
|
-
|
|
3444
|
-
|
|
3445
|
-
|
|
3446
|
-
|
|
3441
|
+
key = value.slice(2);
|
|
3442
|
+
obj = response._prefix + "_";
|
|
3443
|
+
key = obj + key + "_";
|
|
3444
|
+
arrayRoot = new FormData();
|
|
3445
|
+
for (response = response._formData; ; ) {
|
|
3446
|
+
value = response;
|
|
3447
|
+
reference = value.keys;
|
|
3448
|
+
null === reference &&
|
|
3449
|
+
((reference = value.keys = Array.from(value.data.keys())),
|
|
3450
|
+
(value.keyPointer = 0));
|
|
3451
|
+
value = reference[value.keyPointer];
|
|
3452
|
+
if (void 0 === value) break;
|
|
3453
|
+
if (value.startsWith(key)) {
|
|
3454
|
+
reference = response.data.getAll(value);
|
|
3447
3455
|
for (
|
|
3448
|
-
var
|
|
3449
|
-
|
|
3450
|
-
|
|
3451
|
-
j < entries.length;
|
|
3452
|
-
j++
|
|
3456
|
+
var referencedFormDataKey = value.slice(key.length), i = 0;
|
|
3457
|
+
i < reference.length;
|
|
3458
|
+
i++
|
|
3453
3459
|
)
|
|
3454
|
-
|
|
3455
|
-
response
|
|
3456
|
-
|
|
3457
|
-
|
|
3460
|
+
arrayRoot.append(referencedFormDataKey, reference[i]);
|
|
3461
|
+
reference = response;
|
|
3462
|
+
reference.data.delete(value);
|
|
3463
|
+
reference.keyPointer++;
|
|
3464
|
+
} else if (value.startsWith(obj)) break;
|
|
3465
|
+
else response.keyPointer++;
|
|
3466
|
+
}
|
|
3467
|
+
return arrayRoot;
|
|
3458
3468
|
case "i":
|
|
3459
3469
|
return (
|
|
3460
3470
|
(arrayRoot = value.slice(2)),
|
|
@@ -3623,7 +3633,7 @@
|
|
|
3623
3633
|
case "B":
|
|
3624
3634
|
return (
|
|
3625
3635
|
(obj = parseInt(value.slice(2), 16)),
|
|
3626
|
-
response._formData.get(response._prefix + obj)
|
|
3636
|
+
response._formData.data.get(response._prefix + obj)
|
|
3627
3637
|
);
|
|
3628
3638
|
case "R":
|
|
3629
3639
|
return parseReadableStream(response, value, void 0);
|
|
@@ -3662,7 +3672,7 @@
|
|
|
3662
3672
|
return {
|
|
3663
3673
|
_bundlerConfig: bundlerConfig,
|
|
3664
3674
|
_prefix: formFieldPrefix,
|
|
3665
|
-
_formData: backingFormData,
|
|
3675
|
+
_formData: { data: backingFormData, keyPointer: -1, keys: null },
|
|
3666
3676
|
_chunks: chunks,
|
|
3667
3677
|
_closed: !1,
|
|
3668
3678
|
_closedReason: null,
|
|
@@ -2150,7 +2150,7 @@ function getChunk(response, id) {
|
|
|
2150
2150
|
var chunks = response._chunks,
|
|
2151
2151
|
chunk = chunks.get(id);
|
|
2152
2152
|
chunk ||
|
|
2153
|
-
((chunk = response._formData.get(response._prefix + id)),
|
|
2153
|
+
((chunk = response._formData.data.get(response._prefix + id)),
|
|
2154
2154
|
(chunk =
|
|
2155
2155
|
"string" === typeof chunk
|
|
2156
2156
|
? createResolvedModelChunk(response, chunk, id)
|
|
@@ -2251,6 +2251,10 @@ function getOutlinedModel(
|
|
|
2251
2251
|
case "fulfilled":
|
|
2252
2252
|
id = chunk.value;
|
|
2253
2253
|
chunk = chunk.reason;
|
|
2254
|
+
if (null !== chunk && "error" in chunk)
|
|
2255
|
+
throw Error(
|
|
2256
|
+
"Expected an initialized chunk but got an initialized stream chunk instead. This payload may have been submitted by an older version of React."
|
|
2257
|
+
);
|
|
2254
2258
|
for (
|
|
2255
2259
|
var localLength = 0,
|
|
2256
2260
|
rootArrayContexts = response._rootArrayContexts,
|
|
@@ -2333,23 +2337,20 @@ function getOutlinedModel(
|
|
|
2333
2337
|
function createMap(response, model) {
|
|
2334
2338
|
if (!isArrayImpl(model)) throw Error("Invalid Map initializer.");
|
|
2335
2339
|
if (!0 === model.$$consumed) throw Error("Already initialized Map.");
|
|
2336
|
-
response = new Map(model);
|
|
2337
2340
|
model.$$consumed = !0;
|
|
2338
|
-
return
|
|
2341
|
+
return new Map(model);
|
|
2339
2342
|
}
|
|
2340
2343
|
function createSet(response, model) {
|
|
2341
2344
|
if (!isArrayImpl(model)) throw Error("Invalid Set initializer.");
|
|
2342
2345
|
if (!0 === model.$$consumed) throw Error("Already initialized Set.");
|
|
2343
|
-
response = new Set(model);
|
|
2344
2346
|
model.$$consumed = !0;
|
|
2345
|
-
return
|
|
2347
|
+
return new Set(model);
|
|
2346
2348
|
}
|
|
2347
2349
|
function extractIterator(response, model) {
|
|
2348
2350
|
if (!isArrayImpl(model)) throw Error("Invalid Iterator initializer.");
|
|
2349
2351
|
if (!0 === model.$$consumed) throw Error("Already initialized Iterator.");
|
|
2350
|
-
response = model[Symbol.iterator]();
|
|
2351
2352
|
model.$$consumed = !0;
|
|
2352
|
-
return
|
|
2353
|
+
return model[Symbol.iterator]();
|
|
2353
2354
|
}
|
|
2354
2355
|
function createModel(response, model, parentObject, key) {
|
|
2355
2356
|
return "then" === key && "function" === typeof model ? null : model;
|
|
@@ -2387,7 +2388,7 @@ function parseTypedArray(
|
|
|
2387
2388
|
Error("Already initialized typed array.")
|
|
2388
2389
|
)
|
|
2389
2390
|
);
|
|
2390
|
-
reference = response._formData.get(key).arrayBuffer();
|
|
2391
|
+
reference = response._formData.data.get(key).arrayBuffer();
|
|
2391
2392
|
if (initializingHandler) {
|
|
2392
2393
|
var handler = initializingHandler;
|
|
2393
2394
|
handler.deps++;
|
|
@@ -2431,7 +2432,7 @@ function resolveStream(response, id, stream, controller) {
|
|
|
2431
2432
|
var chunks = response._chunks;
|
|
2432
2433
|
stream = new ReactPromise("fulfilled", stream, controller);
|
|
2433
2434
|
chunks.set(id, stream);
|
|
2434
|
-
response = response._formData.getAll(response._prefix + id);
|
|
2435
|
+
response = response._formData.data.getAll(response._prefix + id);
|
|
2435
2436
|
for (id = 0; id < response.length; id++)
|
|
2436
2437
|
(chunks = response[id]),
|
|
2437
2438
|
"string" === typeof chunks &&
|
|
@@ -2646,24 +2647,31 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
|
|
|
2646
2647
|
getOutlinedModel(response, arrayRoot, obj, key, null, createSet)
|
|
2647
2648
|
);
|
|
2648
2649
|
case "K":
|
|
2649
|
-
|
|
2650
|
-
obj = response._prefix +
|
|
2651
|
-
key =
|
|
2652
|
-
|
|
2653
|
-
|
|
2654
|
-
|
|
2655
|
-
|
|
2650
|
+
key = value.slice(2);
|
|
2651
|
+
obj = response._prefix + "_";
|
|
2652
|
+
key = obj + key + "_";
|
|
2653
|
+
arrayRoot = new FormData();
|
|
2654
|
+
for (response = response._formData; ; ) {
|
|
2655
|
+
value = response.keys;
|
|
2656
|
+
null === value &&
|
|
2657
|
+
((value = response.keys = Array.from(response.data.keys())),
|
|
2658
|
+
(response.keyPointer = 0));
|
|
2659
|
+
value = value[response.keyPointer];
|
|
2660
|
+
if (void 0 === value) break;
|
|
2661
|
+
if (value.startsWith(key)) {
|
|
2662
|
+
reference = response.data.getAll(value);
|
|
2656
2663
|
for (
|
|
2657
|
-
var
|
|
2658
|
-
|
|
2659
|
-
|
|
2660
|
-
j < entries.length;
|
|
2661
|
-
j++
|
|
2664
|
+
var referencedFormDataKey = value.slice(key.length), i = 0;
|
|
2665
|
+
i < reference.length;
|
|
2666
|
+
i++
|
|
2662
2667
|
)
|
|
2663
|
-
|
|
2664
|
-
response.delete(
|
|
2665
|
-
|
|
2666
|
-
|
|
2668
|
+
arrayRoot.append(referencedFormDataKey, reference[i]);
|
|
2669
|
+
response.data.delete(value);
|
|
2670
|
+
response.keyPointer++;
|
|
2671
|
+
} else if (value.startsWith(obj)) break;
|
|
2672
|
+
else response.keyPointer++;
|
|
2673
|
+
}
|
|
2674
|
+
return arrayRoot;
|
|
2667
2675
|
case "i":
|
|
2668
2676
|
return (
|
|
2669
2677
|
(arrayRoot = value.slice(2)),
|
|
@@ -2822,7 +2830,7 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
|
|
|
2822
2830
|
case "B":
|
|
2823
2831
|
return (
|
|
2824
2832
|
(obj = parseInt(value.slice(2), 16)),
|
|
2825
|
-
response._formData.get(response._prefix + obj)
|
|
2833
|
+
response._formData.data.get(response._prefix + obj)
|
|
2826
2834
|
);
|
|
2827
2835
|
case "R":
|
|
2828
2836
|
return parseReadableStream(response, value, void 0);
|
|
@@ -2850,7 +2858,7 @@ function createResponse(bundlerConfig, formFieldPrefix, temporaryReferences) {
|
|
|
2850
2858
|
return {
|
|
2851
2859
|
_bundlerConfig: bundlerConfig,
|
|
2852
2860
|
_prefix: formFieldPrefix,
|
|
2853
|
-
_formData: backingFormData,
|
|
2861
|
+
_formData: { data: backingFormData, keyPointer: -1, keys: null },
|
|
2854
2862
|
_chunks: chunks,
|
|
2855
2863
|
_closed: !1,
|
|
2856
2864
|
_closedReason: null,
|
|
@@ -2682,6 +2682,14 @@
|
|
|
2682
2682
|
fatalError(request, error$2);
|
|
2683
2683
|
}
|
|
2684
2684
|
}
|
|
2685
|
+
function appendBackingEntry(backingStore, key, value) {
|
|
2686
|
+
backingStore.data.append(key, value);
|
|
2687
|
+
value = backingStore.keys;
|
|
2688
|
+
null === value
|
|
2689
|
+
? ((backingStore.keys = Array.from(backingStore.data.keys())),
|
|
2690
|
+
(backingStore.keyPointer = 0))
|
|
2691
|
+
: value.push(key);
|
|
2692
|
+
}
|
|
2685
2693
|
function ReactPromise(status, value, reason) {
|
|
2686
2694
|
this.status = status;
|
|
2687
2695
|
this.value = value;
|
|
@@ -2994,7 +3002,7 @@
|
|
|
2994
3002
|
var chunks = response._chunks,
|
|
2995
3003
|
chunk = chunks.get(id);
|
|
2996
3004
|
chunk ||
|
|
2997
|
-
((chunk = response._formData.get(response._prefix + id)),
|
|
3005
|
+
((chunk = response._formData.data.get(response._prefix + id)),
|
|
2998
3006
|
(chunk =
|
|
2999
3007
|
"string" === typeof chunk
|
|
3000
3008
|
? new ReactPromise(
|
|
@@ -3106,6 +3114,10 @@
|
|
|
3106
3114
|
case "fulfilled":
|
|
3107
3115
|
id = chunk.value;
|
|
3108
3116
|
chunk = chunk.reason;
|
|
3117
|
+
if (null !== chunk && "error" in chunk)
|
|
3118
|
+
throw Error(
|
|
3119
|
+
"Expected an initialized chunk but got an initialized stream chunk instead. This payload may have been submitted by an older version of React."
|
|
3120
|
+
);
|
|
3109
3121
|
for (
|
|
3110
3122
|
var localLength = 0,
|
|
3111
3123
|
rootArrayContexts = response._rootArrayContexts,
|
|
@@ -3197,23 +3209,20 @@
|
|
|
3197
3209
|
function createMap(response, model) {
|
|
3198
3210
|
if (!isArrayImpl(model)) throw Error("Invalid Map initializer.");
|
|
3199
3211
|
if (!0 === model.$$consumed) throw Error("Already initialized Map.");
|
|
3200
|
-
response = new Map(model);
|
|
3201
3212
|
model.$$consumed = !0;
|
|
3202
|
-
return
|
|
3213
|
+
return new Map(model);
|
|
3203
3214
|
}
|
|
3204
3215
|
function createSet(response, model) {
|
|
3205
3216
|
if (!isArrayImpl(model)) throw Error("Invalid Set initializer.");
|
|
3206
3217
|
if (!0 === model.$$consumed) throw Error("Already initialized Set.");
|
|
3207
|
-
response = new Set(model);
|
|
3208
3218
|
model.$$consumed = !0;
|
|
3209
|
-
return
|
|
3219
|
+
return new Set(model);
|
|
3210
3220
|
}
|
|
3211
3221
|
function extractIterator(response, model) {
|
|
3212
3222
|
if (!isArrayImpl(model)) throw Error("Invalid Iterator initializer.");
|
|
3213
3223
|
if (!0 === model.$$consumed) throw Error("Already initialized Iterator.");
|
|
3214
|
-
response = model[Symbol.iterator]();
|
|
3215
3224
|
model.$$consumed = !0;
|
|
3216
|
-
return
|
|
3225
|
+
return model[Symbol.iterator]();
|
|
3217
3226
|
}
|
|
3218
3227
|
function createModel(response, model, parentObject, key) {
|
|
3219
3228
|
return "then" === key && "function" === typeof model ? null : model;
|
|
@@ -3251,7 +3260,7 @@
|
|
|
3251
3260
|
Error("Already initialized typed array.")
|
|
3252
3261
|
)
|
|
3253
3262
|
);
|
|
3254
|
-
reference = response._formData.get(key).arrayBuffer();
|
|
3263
|
+
reference = response._formData.data.get(key).arrayBuffer();
|
|
3255
3264
|
if (initializingHandler) {
|
|
3256
3265
|
var handler = initializingHandler;
|
|
3257
3266
|
handler.deps++;
|
|
@@ -3295,7 +3304,7 @@
|
|
|
3295
3304
|
var chunks = response._chunks;
|
|
3296
3305
|
stream = new ReactPromise("fulfilled", stream, controller);
|
|
3297
3306
|
chunks.set(id, stream);
|
|
3298
|
-
response = response._formData.getAll(response._prefix + id);
|
|
3307
|
+
response = response._formData.data.getAll(response._prefix + id);
|
|
3299
3308
|
for (id = 0; id < response.length; id++)
|
|
3300
3309
|
(chunks = response[id]),
|
|
3301
3310
|
"string" === typeof chunks &&
|
|
@@ -3515,24 +3524,33 @@
|
|
|
3515
3524
|
getOutlinedModel(response, arrayRoot, obj, key, null, createSet)
|
|
3516
3525
|
);
|
|
3517
3526
|
case "K":
|
|
3518
|
-
|
|
3519
|
-
obj = response._prefix +
|
|
3520
|
-
key =
|
|
3521
|
-
|
|
3522
|
-
|
|
3523
|
-
|
|
3524
|
-
|
|
3527
|
+
key = value.slice(2);
|
|
3528
|
+
obj = response._prefix + "_";
|
|
3529
|
+
key = obj + key + "_";
|
|
3530
|
+
arrayRoot = new FormData();
|
|
3531
|
+
for (response = response._formData; ; ) {
|
|
3532
|
+
value = response;
|
|
3533
|
+
reference = value.keys;
|
|
3534
|
+
null === reference &&
|
|
3535
|
+
((reference = value.keys = Array.from(value.data.keys())),
|
|
3536
|
+
(value.keyPointer = 0));
|
|
3537
|
+
value = reference[value.keyPointer];
|
|
3538
|
+
if (void 0 === value) break;
|
|
3539
|
+
if (value.startsWith(key)) {
|
|
3540
|
+
reference = response.data.getAll(value);
|
|
3525
3541
|
for (
|
|
3526
|
-
var
|
|
3527
|
-
|
|
3528
|
-
|
|
3529
|
-
j < entries.length;
|
|
3530
|
-
j++
|
|
3542
|
+
var referencedFormDataKey = value.slice(key.length), i = 0;
|
|
3543
|
+
i < reference.length;
|
|
3544
|
+
i++
|
|
3531
3545
|
)
|
|
3532
|
-
|
|
3533
|
-
response
|
|
3534
|
-
|
|
3535
|
-
|
|
3546
|
+
arrayRoot.append(referencedFormDataKey, reference[i]);
|
|
3547
|
+
reference = response;
|
|
3548
|
+
reference.data.delete(value);
|
|
3549
|
+
reference.keyPointer++;
|
|
3550
|
+
} else if (value.startsWith(obj)) break;
|
|
3551
|
+
else response.keyPointer++;
|
|
3552
|
+
}
|
|
3553
|
+
return arrayRoot;
|
|
3536
3554
|
case "i":
|
|
3537
3555
|
return (
|
|
3538
3556
|
(arrayRoot = value.slice(2)),
|
|
@@ -3701,7 +3719,7 @@
|
|
|
3701
3719
|
case "B":
|
|
3702
3720
|
return (
|
|
3703
3721
|
(obj = parseInt(value.slice(2), 16)),
|
|
3704
|
-
response._formData.get(response._prefix + obj)
|
|
3722
|
+
response._formData.data.get(response._prefix + obj)
|
|
3705
3723
|
);
|
|
3706
3724
|
case "R":
|
|
3707
3725
|
return parseReadableStream(response, value, void 0);
|
|
@@ -3740,7 +3758,7 @@
|
|
|
3740
3758
|
return {
|
|
3741
3759
|
_bundlerConfig: bundlerConfig,
|
|
3742
3760
|
_prefix: formFieldPrefix,
|
|
3743
|
-
_formData: backingFormData,
|
|
3761
|
+
_formData: { data: backingFormData, keyPointer: -1, keys: null },
|
|
3744
3762
|
_chunks: chunks,
|
|
3745
3763
|
_closed: !1,
|
|
3746
3764
|
_closedReason: null,
|
|
@@ -4346,7 +4364,7 @@
|
|
|
4346
4364
|
entry = entry[1];
|
|
4347
4365
|
if ("string" === typeof entry) {
|
|
4348
4366
|
var response = response$jscomp$0;
|
|
4349
|
-
response._formData
|
|
4367
|
+
appendBackingEntry(response._formData, name, entry);
|
|
4350
4368
|
var prefix = response._prefix;
|
|
4351
4369
|
if (name.startsWith(prefix)) {
|
|
4352
4370
|
var chunks = response._chunks;
|
|
@@ -4354,7 +4372,7 @@
|
|
|
4354
4372
|
(chunks = chunks.get(name)) &&
|
|
4355
4373
|
resolveModelChunk(response, chunks, entry, name);
|
|
4356
4374
|
}
|
|
4357
|
-
} else response$jscomp$0._formData
|
|
4375
|
+
} else appendBackingEntry(response$jscomp$0._formData, name, entry);
|
|
4358
4376
|
iterator.next().then(progress, error);
|
|
4359
4377
|
}
|
|
4360
4378
|
}
|
|
@@ -1789,6 +1789,14 @@ function abort(request, reason) {
|
|
|
1789
1789
|
logRecoverableError(request, error$26, null), fatalError(request, error$26);
|
|
1790
1790
|
}
|
|
1791
1791
|
}
|
|
1792
|
+
function appendBackingEntry(backingStore, key, value) {
|
|
1793
|
+
backingStore.data.append(key, value);
|
|
1794
|
+
value = backingStore.keys;
|
|
1795
|
+
null === value
|
|
1796
|
+
? ((backingStore.keys = Array.from(backingStore.data.keys())),
|
|
1797
|
+
(backingStore.keyPointer = 0))
|
|
1798
|
+
: value.push(key);
|
|
1799
|
+
}
|
|
1792
1800
|
var RESPONSE_SYMBOL = Symbol();
|
|
1793
1801
|
function ReactPromise(status, value, reason) {
|
|
1794
1802
|
this.status = status;
|
|
@@ -2161,7 +2169,7 @@ function getChunk(response, id) {
|
|
|
2161
2169
|
var chunks = response._chunks,
|
|
2162
2170
|
chunk = chunks.get(id);
|
|
2163
2171
|
chunk ||
|
|
2164
|
-
((chunk = response._formData.get(response._prefix + id)),
|
|
2172
|
+
((chunk = response._formData.data.get(response._prefix + id)),
|
|
2165
2173
|
(chunk =
|
|
2166
2174
|
"string" === typeof chunk
|
|
2167
2175
|
? createResolvedModelChunk(response, chunk, id)
|
|
@@ -2262,6 +2270,10 @@ function getOutlinedModel(
|
|
|
2262
2270
|
case "fulfilled":
|
|
2263
2271
|
id = chunk.value;
|
|
2264
2272
|
chunk = chunk.reason;
|
|
2273
|
+
if (null !== chunk && "error" in chunk)
|
|
2274
|
+
throw Error(
|
|
2275
|
+
"Expected an initialized chunk but got an initialized stream chunk instead. This payload may have been submitted by an older version of React."
|
|
2276
|
+
);
|
|
2265
2277
|
for (
|
|
2266
2278
|
var localLength = 0,
|
|
2267
2279
|
rootArrayContexts = response._rootArrayContexts,
|
|
@@ -2344,23 +2356,20 @@ function getOutlinedModel(
|
|
|
2344
2356
|
function createMap(response, model) {
|
|
2345
2357
|
if (!isArrayImpl(model)) throw Error("Invalid Map initializer.");
|
|
2346
2358
|
if (!0 === model.$$consumed) throw Error("Already initialized Map.");
|
|
2347
|
-
response = new Map(model);
|
|
2348
2359
|
model.$$consumed = !0;
|
|
2349
|
-
return
|
|
2360
|
+
return new Map(model);
|
|
2350
2361
|
}
|
|
2351
2362
|
function createSet(response, model) {
|
|
2352
2363
|
if (!isArrayImpl(model)) throw Error("Invalid Set initializer.");
|
|
2353
2364
|
if (!0 === model.$$consumed) throw Error("Already initialized Set.");
|
|
2354
|
-
response = new Set(model);
|
|
2355
2365
|
model.$$consumed = !0;
|
|
2356
|
-
return
|
|
2366
|
+
return new Set(model);
|
|
2357
2367
|
}
|
|
2358
2368
|
function extractIterator(response, model) {
|
|
2359
2369
|
if (!isArrayImpl(model)) throw Error("Invalid Iterator initializer.");
|
|
2360
2370
|
if (!0 === model.$$consumed) throw Error("Already initialized Iterator.");
|
|
2361
|
-
response = model[Symbol.iterator]();
|
|
2362
2371
|
model.$$consumed = !0;
|
|
2363
|
-
return
|
|
2372
|
+
return model[Symbol.iterator]();
|
|
2364
2373
|
}
|
|
2365
2374
|
function createModel(response, model, parentObject, key) {
|
|
2366
2375
|
return "then" === key && "function" === typeof model ? null : model;
|
|
@@ -2398,7 +2407,7 @@ function parseTypedArray(
|
|
|
2398
2407
|
Error("Already initialized typed array.")
|
|
2399
2408
|
)
|
|
2400
2409
|
);
|
|
2401
|
-
reference = response._formData.get(key).arrayBuffer();
|
|
2410
|
+
reference = response._formData.data.get(key).arrayBuffer();
|
|
2402
2411
|
if (initializingHandler) {
|
|
2403
2412
|
var handler = initializingHandler;
|
|
2404
2413
|
handler.deps++;
|
|
@@ -2442,7 +2451,7 @@ function resolveStream(response, id, stream, controller) {
|
|
|
2442
2451
|
var chunks = response._chunks;
|
|
2443
2452
|
stream = new ReactPromise("fulfilled", stream, controller);
|
|
2444
2453
|
chunks.set(id, stream);
|
|
2445
|
-
response = response._formData.getAll(response._prefix + id);
|
|
2454
|
+
response = response._formData.data.getAll(response._prefix + id);
|
|
2446
2455
|
for (id = 0; id < response.length; id++)
|
|
2447
2456
|
(chunks = response[id]),
|
|
2448
2457
|
"string" === typeof chunks &&
|
|
@@ -2657,24 +2666,31 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
|
|
|
2657
2666
|
getOutlinedModel(response, arrayRoot, obj, key, null, createSet)
|
|
2658
2667
|
);
|
|
2659
2668
|
case "K":
|
|
2660
|
-
|
|
2661
|
-
obj = response._prefix +
|
|
2662
|
-
key =
|
|
2663
|
-
|
|
2664
|
-
|
|
2665
|
-
|
|
2666
|
-
|
|
2669
|
+
key = value.slice(2);
|
|
2670
|
+
obj = response._prefix + "_";
|
|
2671
|
+
key = obj + key + "_";
|
|
2672
|
+
arrayRoot = new FormData();
|
|
2673
|
+
for (response = response._formData; ; ) {
|
|
2674
|
+
value = response.keys;
|
|
2675
|
+
null === value &&
|
|
2676
|
+
((value = response.keys = Array.from(response.data.keys())),
|
|
2677
|
+
(response.keyPointer = 0));
|
|
2678
|
+
value = value[response.keyPointer];
|
|
2679
|
+
if (void 0 === value) break;
|
|
2680
|
+
if (value.startsWith(key)) {
|
|
2681
|
+
reference = response.data.getAll(value);
|
|
2667
2682
|
for (
|
|
2668
|
-
var
|
|
2669
|
-
|
|
2670
|
-
|
|
2671
|
-
j < entries.length;
|
|
2672
|
-
j++
|
|
2683
|
+
var referencedFormDataKey = value.slice(key.length), i = 0;
|
|
2684
|
+
i < reference.length;
|
|
2685
|
+
i++
|
|
2673
2686
|
)
|
|
2674
|
-
|
|
2675
|
-
response.delete(
|
|
2676
|
-
|
|
2677
|
-
|
|
2687
|
+
arrayRoot.append(referencedFormDataKey, reference[i]);
|
|
2688
|
+
response.data.delete(value);
|
|
2689
|
+
response.keyPointer++;
|
|
2690
|
+
} else if (value.startsWith(obj)) break;
|
|
2691
|
+
else response.keyPointer++;
|
|
2692
|
+
}
|
|
2693
|
+
return arrayRoot;
|
|
2678
2694
|
case "i":
|
|
2679
2695
|
return (
|
|
2680
2696
|
(arrayRoot = value.slice(2)),
|
|
@@ -2833,7 +2849,7 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
|
|
|
2833
2849
|
case "B":
|
|
2834
2850
|
return (
|
|
2835
2851
|
(obj = parseInt(value.slice(2), 16)),
|
|
2836
|
-
response._formData.get(response._prefix + obj)
|
|
2852
|
+
response._formData.data.get(response._prefix + obj)
|
|
2837
2853
|
);
|
|
2838
2854
|
case "R":
|
|
2839
2855
|
return parseReadableStream(response, value, void 0);
|
|
@@ -2861,7 +2877,7 @@ function createResponse(bundlerConfig, formFieldPrefix, temporaryReferences) {
|
|
|
2861
2877
|
return {
|
|
2862
2878
|
_bundlerConfig: bundlerConfig,
|
|
2863
2879
|
_prefix: formFieldPrefix,
|
|
2864
|
-
_formData: backingFormData,
|
|
2880
|
+
_formData: { data: backingFormData, keyPointer: -1, keys: null },
|
|
2865
2881
|
_chunks: chunks,
|
|
2866
2882
|
_closed: !1,
|
|
2867
2883
|
_closedReason: null,
|
|
@@ -3005,7 +3021,7 @@ exports.decodeReplyFromAsyncIterable = function (iterable, options) {
|
|
|
3005
3021
|
var name = entry[0];
|
|
3006
3022
|
entry = entry[1];
|
|
3007
3023
|
if ("string" === typeof entry) {
|
|
3008
|
-
response._formData
|
|
3024
|
+
appendBackingEntry(response._formData, name, entry);
|
|
3009
3025
|
var prefix = response._prefix;
|
|
3010
3026
|
if (name.startsWith(prefix)) {
|
|
3011
3027
|
var chunks = response._chunks;
|
|
@@ -3013,7 +3029,7 @@ exports.decodeReplyFromAsyncIterable = function (iterable, options) {
|
|
|
3013
3029
|
(chunks = chunks.get(name)) &&
|
|
3014
3030
|
resolveModelChunk(response, chunks, entry, name);
|
|
3015
3031
|
}
|
|
3016
|
-
} else response._formData
|
|
3032
|
+
} else appendBackingEntry(response._formData, name, entry);
|
|
3017
3033
|
iterator.next().then(progress, error);
|
|
3018
3034
|
}
|
|
3019
3035
|
}
|
|
@@ -2972,7 +2972,7 @@
|
|
|
2972
2972
|
var chunks = response._chunks,
|
|
2973
2973
|
chunk = chunks.get(id);
|
|
2974
2974
|
chunk ||
|
|
2975
|
-
((chunk = response._formData.get(response._prefix + id)),
|
|
2975
|
+
((chunk = response._formData.data.get(response._prefix + id)),
|
|
2976
2976
|
(chunk =
|
|
2977
2977
|
"string" === typeof chunk
|
|
2978
2978
|
? new ReactPromise(
|
|
@@ -3084,6 +3084,10 @@
|
|
|
3084
3084
|
case "fulfilled":
|
|
3085
3085
|
id = chunk.value;
|
|
3086
3086
|
chunk = chunk.reason;
|
|
3087
|
+
if (null !== chunk && "error" in chunk)
|
|
3088
|
+
throw Error(
|
|
3089
|
+
"Expected an initialized chunk but got an initialized stream chunk instead. This payload may have been submitted by an older version of React."
|
|
3090
|
+
);
|
|
3087
3091
|
for (
|
|
3088
3092
|
var localLength = 0,
|
|
3089
3093
|
rootArrayContexts = response._rootArrayContexts,
|
|
@@ -3175,23 +3179,20 @@
|
|
|
3175
3179
|
function createMap(response, model) {
|
|
3176
3180
|
if (!isArrayImpl(model)) throw Error("Invalid Map initializer.");
|
|
3177
3181
|
if (!0 === model.$$consumed) throw Error("Already initialized Map.");
|
|
3178
|
-
response = new Map(model);
|
|
3179
3182
|
model.$$consumed = !0;
|
|
3180
|
-
return
|
|
3183
|
+
return new Map(model);
|
|
3181
3184
|
}
|
|
3182
3185
|
function createSet(response, model) {
|
|
3183
3186
|
if (!isArrayImpl(model)) throw Error("Invalid Set initializer.");
|
|
3184
3187
|
if (!0 === model.$$consumed) throw Error("Already initialized Set.");
|
|
3185
|
-
response = new Set(model);
|
|
3186
3188
|
model.$$consumed = !0;
|
|
3187
|
-
return
|
|
3189
|
+
return new Set(model);
|
|
3188
3190
|
}
|
|
3189
3191
|
function extractIterator(response, model) {
|
|
3190
3192
|
if (!isArrayImpl(model)) throw Error("Invalid Iterator initializer.");
|
|
3191
3193
|
if (!0 === model.$$consumed) throw Error("Already initialized Iterator.");
|
|
3192
|
-
response = model[Symbol.iterator]();
|
|
3193
3194
|
model.$$consumed = !0;
|
|
3194
|
-
return
|
|
3195
|
+
return model[Symbol.iterator]();
|
|
3195
3196
|
}
|
|
3196
3197
|
function createModel(response, model, parentObject, key) {
|
|
3197
3198
|
return "then" === key && "function" === typeof model ? null : model;
|
|
@@ -3229,7 +3230,7 @@
|
|
|
3229
3230
|
Error("Already initialized typed array.")
|
|
3230
3231
|
)
|
|
3231
3232
|
);
|
|
3232
|
-
reference = response._formData.get(key).arrayBuffer();
|
|
3233
|
+
reference = response._formData.data.get(key).arrayBuffer();
|
|
3233
3234
|
if (initializingHandler) {
|
|
3234
3235
|
var handler = initializingHandler;
|
|
3235
3236
|
handler.deps++;
|
|
@@ -3273,7 +3274,7 @@
|
|
|
3273
3274
|
var chunks = response._chunks;
|
|
3274
3275
|
stream = new ReactPromise("fulfilled", stream, controller);
|
|
3275
3276
|
chunks.set(id, stream);
|
|
3276
|
-
response = response._formData.getAll(response._prefix + id);
|
|
3277
|
+
response = response._formData.data.getAll(response._prefix + id);
|
|
3277
3278
|
for (id = 0; id < response.length; id++)
|
|
3278
3279
|
(chunks = response[id]),
|
|
3279
3280
|
"string" === typeof chunks &&
|
|
@@ -3493,24 +3494,33 @@
|
|
|
3493
3494
|
getOutlinedModel(response, arrayRoot, obj, key, null, createSet)
|
|
3494
3495
|
);
|
|
3495
3496
|
case "K":
|
|
3496
|
-
|
|
3497
|
-
obj = response._prefix +
|
|
3498
|
-
key =
|
|
3499
|
-
|
|
3500
|
-
|
|
3501
|
-
|
|
3502
|
-
|
|
3497
|
+
key = value.slice(2);
|
|
3498
|
+
obj = response._prefix + "_";
|
|
3499
|
+
key = obj + key + "_";
|
|
3500
|
+
arrayRoot = new FormData();
|
|
3501
|
+
for (response = response._formData; ; ) {
|
|
3502
|
+
value = response;
|
|
3503
|
+
reference = value.keys;
|
|
3504
|
+
null === reference &&
|
|
3505
|
+
((reference = value.keys = Array.from(value.data.keys())),
|
|
3506
|
+
(value.keyPointer = 0));
|
|
3507
|
+
value = reference[value.keyPointer];
|
|
3508
|
+
if (void 0 === value) break;
|
|
3509
|
+
if (value.startsWith(key)) {
|
|
3510
|
+
reference = response.data.getAll(value);
|
|
3503
3511
|
for (
|
|
3504
|
-
var
|
|
3505
|
-
|
|
3506
|
-
|
|
3507
|
-
j < entries.length;
|
|
3508
|
-
j++
|
|
3512
|
+
var referencedFormDataKey = value.slice(key.length), i = 0;
|
|
3513
|
+
i < reference.length;
|
|
3514
|
+
i++
|
|
3509
3515
|
)
|
|
3510
|
-
|
|
3511
|
-
response
|
|
3512
|
-
|
|
3513
|
-
|
|
3516
|
+
arrayRoot.append(referencedFormDataKey, reference[i]);
|
|
3517
|
+
reference = response;
|
|
3518
|
+
reference.data.delete(value);
|
|
3519
|
+
reference.keyPointer++;
|
|
3520
|
+
} else if (value.startsWith(obj)) break;
|
|
3521
|
+
else response.keyPointer++;
|
|
3522
|
+
}
|
|
3523
|
+
return arrayRoot;
|
|
3514
3524
|
case "i":
|
|
3515
3525
|
return (
|
|
3516
3526
|
(arrayRoot = value.slice(2)),
|
|
@@ -3679,7 +3689,7 @@
|
|
|
3679
3689
|
case "B":
|
|
3680
3690
|
return (
|
|
3681
3691
|
(obj = parseInt(value.slice(2), 16)),
|
|
3682
|
-
response._formData.get(response._prefix + obj)
|
|
3692
|
+
response._formData.data.get(response._prefix + obj)
|
|
3683
3693
|
);
|
|
3684
3694
|
case "R":
|
|
3685
3695
|
return parseReadableStream(response, value, void 0);
|
|
@@ -3718,7 +3728,7 @@
|
|
|
3718
3728
|
return {
|
|
3719
3729
|
_bundlerConfig: bundlerConfig,
|
|
3720
3730
|
_prefix: formFieldPrefix,
|
|
3721
|
-
_formData: backingFormData,
|
|
3731
|
+
_formData: { data: backingFormData, keyPointer: -1, keys: null },
|
|
3722
3732
|
_chunks: chunks,
|
|
3723
3733
|
_closed: !1,
|
|
3724
3734
|
_closedReason: null,
|
|
@@ -3728,14 +3738,19 @@
|
|
|
3728
3738
|
};
|
|
3729
3739
|
}
|
|
3730
3740
|
function resolveField(response, key, value) {
|
|
3731
|
-
response._formData
|
|
3732
|
-
|
|
3733
|
-
|
|
3734
|
-
|
|
3735
|
-
|
|
3736
|
-
|
|
3737
|
-
|
|
3738
|
-
|
|
3741
|
+
var backingStore = response._formData;
|
|
3742
|
+
backingStore.data.append(key, value);
|
|
3743
|
+
var keys = backingStore.keys;
|
|
3744
|
+
null === keys
|
|
3745
|
+
? ((backingStore.keys = Array.from(backingStore.data.keys())),
|
|
3746
|
+
(backingStore.keyPointer = 0))
|
|
3747
|
+
: keys.push(key);
|
|
3748
|
+
keys = response._prefix;
|
|
3749
|
+
key.startsWith(keys) &&
|
|
3750
|
+
((backingStore = response._chunks),
|
|
3751
|
+
(key = +key.slice(keys.length)),
|
|
3752
|
+
(backingStore = backingStore.get(key)) &&
|
|
3753
|
+
resolveModelChunk(response, backingStore, value, key));
|
|
3739
3754
|
}
|
|
3740
3755
|
function close(response) {
|
|
3741
3756
|
reportGlobalError(response, Error("Connection closed."));
|
|
@@ -4366,16 +4381,22 @@
|
|
|
4366
4381
|
);
|
|
4367
4382
|
else {
|
|
4368
4383
|
pendingFiles++;
|
|
4369
|
-
var
|
|
4384
|
+
var JSCompiler_object_inline_chunks_170 = [];
|
|
4370
4385
|
value.on("data", function (chunk) {
|
|
4371
|
-
|
|
4386
|
+
JSCompiler_object_inline_chunks_170.push(chunk);
|
|
4372
4387
|
});
|
|
4373
4388
|
value.on("end", function () {
|
|
4374
4389
|
try {
|
|
4375
|
-
var blob = new Blob(
|
|
4376
|
-
|
|
4377
|
-
|
|
4378
|
-
|
|
4390
|
+
var blob = new Blob(JSCompiler_object_inline_chunks_170, {
|
|
4391
|
+
type: mimeType
|
|
4392
|
+
}),
|
|
4393
|
+
backingStore = response._formData;
|
|
4394
|
+
backingStore.data.append(name, blob, filename);
|
|
4395
|
+
var keys = backingStore.keys;
|
|
4396
|
+
null === keys
|
|
4397
|
+
? ((backingStore.keys = Array.from(backingStore.data.keys())),
|
|
4398
|
+
(backingStore.keyPointer = 0))
|
|
4399
|
+
: keys.push(name);
|
|
4379
4400
|
pendingFiles--;
|
|
4380
4401
|
if (0 === pendingFiles) {
|
|
4381
4402
|
for (blob = 0; blob < queuedFields.length; blob += 2)
|
|
@@ -2186,7 +2186,7 @@ function getChunk(response, id) {
|
|
|
2186
2186
|
var chunks = response._chunks,
|
|
2187
2187
|
chunk = chunks.get(id);
|
|
2188
2188
|
chunk ||
|
|
2189
|
-
((chunk = response._formData.get(response._prefix + id)),
|
|
2189
|
+
((chunk = response._formData.data.get(response._prefix + id)),
|
|
2190
2190
|
(chunk =
|
|
2191
2191
|
"string" === typeof chunk
|
|
2192
2192
|
? createResolvedModelChunk(response, chunk, id)
|
|
@@ -2287,6 +2287,10 @@ function getOutlinedModel(
|
|
|
2287
2287
|
case "fulfilled":
|
|
2288
2288
|
id = chunk.value;
|
|
2289
2289
|
chunk = chunk.reason;
|
|
2290
|
+
if (null !== chunk && "error" in chunk)
|
|
2291
|
+
throw Error(
|
|
2292
|
+
"Expected an initialized chunk but got an initialized stream chunk instead. This payload may have been submitted by an older version of React."
|
|
2293
|
+
);
|
|
2290
2294
|
for (
|
|
2291
2295
|
var localLength = 0,
|
|
2292
2296
|
rootArrayContexts = response._rootArrayContexts,
|
|
@@ -2369,23 +2373,20 @@ function getOutlinedModel(
|
|
|
2369
2373
|
function createMap(response, model) {
|
|
2370
2374
|
if (!isArrayImpl(model)) throw Error("Invalid Map initializer.");
|
|
2371
2375
|
if (!0 === model.$$consumed) throw Error("Already initialized Map.");
|
|
2372
|
-
response = new Map(model);
|
|
2373
2376
|
model.$$consumed = !0;
|
|
2374
|
-
return
|
|
2377
|
+
return new Map(model);
|
|
2375
2378
|
}
|
|
2376
2379
|
function createSet(response, model) {
|
|
2377
2380
|
if (!isArrayImpl(model)) throw Error("Invalid Set initializer.");
|
|
2378
2381
|
if (!0 === model.$$consumed) throw Error("Already initialized Set.");
|
|
2379
|
-
response = new Set(model);
|
|
2380
2382
|
model.$$consumed = !0;
|
|
2381
|
-
return
|
|
2383
|
+
return new Set(model);
|
|
2382
2384
|
}
|
|
2383
2385
|
function extractIterator(response, model) {
|
|
2384
2386
|
if (!isArrayImpl(model)) throw Error("Invalid Iterator initializer.");
|
|
2385
2387
|
if (!0 === model.$$consumed) throw Error("Already initialized Iterator.");
|
|
2386
|
-
response = model[Symbol.iterator]();
|
|
2387
2388
|
model.$$consumed = !0;
|
|
2388
|
-
return
|
|
2389
|
+
return model[Symbol.iterator]();
|
|
2389
2390
|
}
|
|
2390
2391
|
function createModel(response, model, parentObject, key) {
|
|
2391
2392
|
return "then" === key && "function" === typeof model ? null : model;
|
|
@@ -2423,7 +2424,7 @@ function parseTypedArray(
|
|
|
2423
2424
|
Error("Already initialized typed array.")
|
|
2424
2425
|
)
|
|
2425
2426
|
);
|
|
2426
|
-
reference = response._formData.get(key).arrayBuffer();
|
|
2427
|
+
reference = response._formData.data.get(key).arrayBuffer();
|
|
2427
2428
|
if (initializingHandler) {
|
|
2428
2429
|
var handler = initializingHandler;
|
|
2429
2430
|
handler.deps++;
|
|
@@ -2467,7 +2468,7 @@ function resolveStream(response, id, stream, controller) {
|
|
|
2467
2468
|
var chunks = response._chunks;
|
|
2468
2469
|
stream = new ReactPromise("fulfilled", stream, controller);
|
|
2469
2470
|
chunks.set(id, stream);
|
|
2470
|
-
response = response._formData.getAll(response._prefix + id);
|
|
2471
|
+
response = response._formData.data.getAll(response._prefix + id);
|
|
2471
2472
|
for (id = 0; id < response.length; id++)
|
|
2472
2473
|
(chunks = response[id]),
|
|
2473
2474
|
"string" === typeof chunks &&
|
|
@@ -2682,24 +2683,31 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
|
|
|
2682
2683
|
getOutlinedModel(response, arrayRoot, obj, key, null, createSet)
|
|
2683
2684
|
);
|
|
2684
2685
|
case "K":
|
|
2685
|
-
|
|
2686
|
-
obj = response._prefix +
|
|
2687
|
-
key =
|
|
2688
|
-
|
|
2689
|
-
|
|
2690
|
-
|
|
2691
|
-
|
|
2686
|
+
key = value.slice(2);
|
|
2687
|
+
obj = response._prefix + "_";
|
|
2688
|
+
key = obj + key + "_";
|
|
2689
|
+
arrayRoot = new FormData();
|
|
2690
|
+
for (response = response._formData; ; ) {
|
|
2691
|
+
value = response.keys;
|
|
2692
|
+
null === value &&
|
|
2693
|
+
((value = response.keys = Array.from(response.data.keys())),
|
|
2694
|
+
(response.keyPointer = 0));
|
|
2695
|
+
value = value[response.keyPointer];
|
|
2696
|
+
if (void 0 === value) break;
|
|
2697
|
+
if (value.startsWith(key)) {
|
|
2698
|
+
reference = response.data.getAll(value);
|
|
2692
2699
|
for (
|
|
2693
|
-
var
|
|
2694
|
-
|
|
2695
|
-
|
|
2696
|
-
j < entries.length;
|
|
2697
|
-
j++
|
|
2700
|
+
var referencedFormDataKey = value.slice(key.length), i = 0;
|
|
2701
|
+
i < reference.length;
|
|
2702
|
+
i++
|
|
2698
2703
|
)
|
|
2699
|
-
|
|
2700
|
-
response.delete(
|
|
2701
|
-
|
|
2702
|
-
|
|
2704
|
+
arrayRoot.append(referencedFormDataKey, reference[i]);
|
|
2705
|
+
response.data.delete(value);
|
|
2706
|
+
response.keyPointer++;
|
|
2707
|
+
} else if (value.startsWith(obj)) break;
|
|
2708
|
+
else response.keyPointer++;
|
|
2709
|
+
}
|
|
2710
|
+
return arrayRoot;
|
|
2703
2711
|
case "i":
|
|
2704
2712
|
return (
|
|
2705
2713
|
(arrayRoot = value.slice(2)),
|
|
@@ -2858,7 +2866,7 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
|
|
|
2858
2866
|
case "B":
|
|
2859
2867
|
return (
|
|
2860
2868
|
(obj = parseInt(value.slice(2), 16)),
|
|
2861
|
-
response._formData.get(response._prefix + obj)
|
|
2869
|
+
response._formData.data.get(response._prefix + obj)
|
|
2862
2870
|
);
|
|
2863
2871
|
case "R":
|
|
2864
2872
|
return parseReadableStream(response, value, void 0);
|
|
@@ -2886,7 +2894,7 @@ function createResponse(bundlerConfig, formFieldPrefix, temporaryReferences) {
|
|
|
2886
2894
|
return {
|
|
2887
2895
|
_bundlerConfig: bundlerConfig,
|
|
2888
2896
|
_prefix: formFieldPrefix,
|
|
2889
|
-
_formData: backingFormData,
|
|
2897
|
+
_formData: { data: backingFormData, keyPointer: -1, keys: null },
|
|
2890
2898
|
_chunks: chunks,
|
|
2891
2899
|
_closed: !1,
|
|
2892
2900
|
_closedReason: null,
|
|
@@ -2896,14 +2904,19 @@ function createResponse(bundlerConfig, formFieldPrefix, temporaryReferences) {
|
|
|
2896
2904
|
};
|
|
2897
2905
|
}
|
|
2898
2906
|
function resolveField(response, key, value) {
|
|
2899
|
-
response._formData
|
|
2900
|
-
|
|
2901
|
-
|
|
2902
|
-
|
|
2903
|
-
|
|
2904
|
-
|
|
2905
|
-
|
|
2906
|
-
|
|
2907
|
+
var backingStore = response._formData;
|
|
2908
|
+
backingStore.data.append(key, value);
|
|
2909
|
+
var keys = backingStore.keys;
|
|
2910
|
+
null === keys
|
|
2911
|
+
? ((backingStore.keys = Array.from(backingStore.data.keys())),
|
|
2912
|
+
(backingStore.keyPointer = 0))
|
|
2913
|
+
: keys.push(key);
|
|
2914
|
+
keys = response._prefix;
|
|
2915
|
+
key.startsWith(keys) &&
|
|
2916
|
+
((backingStore = response._chunks),
|
|
2917
|
+
(key = +key.slice(keys.length)),
|
|
2918
|
+
(backingStore = backingStore.get(key)) &&
|
|
2919
|
+
resolveModelChunk(response, backingStore, value, key));
|
|
2907
2920
|
}
|
|
2908
2921
|
function close(response) {
|
|
2909
2922
|
reportGlobalError(response, Error("Connection closed."));
|
|
@@ -3086,16 +3099,22 @@ exports.decodeReplyFromBusboy = function (busboyStream, options) {
|
|
|
3086
3099
|
);
|
|
3087
3100
|
else {
|
|
3088
3101
|
pendingFiles++;
|
|
3089
|
-
var
|
|
3102
|
+
var JSCompiler_object_inline_chunks_250 = [];
|
|
3090
3103
|
value.on("data", function (chunk) {
|
|
3091
|
-
|
|
3104
|
+
JSCompiler_object_inline_chunks_250.push(chunk);
|
|
3092
3105
|
});
|
|
3093
3106
|
value.on("end", function () {
|
|
3094
3107
|
try {
|
|
3095
|
-
var blob = new Blob(
|
|
3096
|
-
|
|
3097
|
-
|
|
3098
|
-
|
|
3108
|
+
var blob = new Blob(JSCompiler_object_inline_chunks_250, {
|
|
3109
|
+
type: mimeType
|
|
3110
|
+
}),
|
|
3111
|
+
backingStore = response._formData;
|
|
3112
|
+
backingStore.data.append(name, blob, filename);
|
|
3113
|
+
var keys = backingStore.keys;
|
|
3114
|
+
null === keys
|
|
3115
|
+
? ((backingStore.keys = Array.from(backingStore.data.keys())),
|
|
3116
|
+
(backingStore.keyPointer = 0))
|
|
3117
|
+
: keys.push(name);
|
|
3099
3118
|
pendingFiles--;
|
|
3100
3119
|
if (0 === pendingFiles) {
|
|
3101
3120
|
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.1.
|
|
4
|
+
"version": "19.1.7",
|
|
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.1.
|
|
82
|
-
"react-dom": "^19.1.
|
|
81
|
+
"react": "^19.1.7",
|
|
82
|
+
"react-dom": "^19.1.7"
|
|
83
83
|
}
|
|
84
84
|
}
|