react-server-dom-webpack 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-webpack-client.browser.development.js +3 -3
- package/cjs/react-server-dom-webpack-client.browser.production.js +1 -1
- package/cjs/react-server-dom-webpack-client.edge.development.js +1 -1
- package/cjs/react-server-dom-webpack-client.edge.production.js +1 -1
- package/cjs/react-server-dom-webpack-client.node.development.js +1 -1
- package/cjs/react-server-dom-webpack-client.node.production.js +1 -1
- package/cjs/react-server-dom-webpack-server.browser.development.js +37 -27
- package/cjs/react-server-dom-webpack-server.browser.production.js +35 -27
- package/cjs/react-server-dom-webpack-server.edge.development.js +47 -29
- package/cjs/react-server-dom-webpack-server.edge.production.js +45 -29
- package/cjs/react-server-dom-webpack-server.node.development.js +62 -41
- package/cjs/react-server-dom-webpack-server.node.production.js +60 -41
- package/package.json +3 -3
|
@@ -565,7 +565,7 @@
|
|
|
565
565
|
null === formData && (formData = new FormData());
|
|
566
566
|
var _data3 = formData;
|
|
567
567
|
key = nextPartId++;
|
|
568
|
-
var prefix = formFieldPrefix + key + "_";
|
|
568
|
+
var prefix = formFieldPrefix + "_" + key + "_";
|
|
569
569
|
value.forEach(function (originalValue, originalKey) {
|
|
570
570
|
_data3.append(prefix + originalKey, originalValue);
|
|
571
571
|
});
|
|
@@ -2745,10 +2745,10 @@
|
|
|
2745
2745
|
return hook.checkDCE ? !0 : !1;
|
|
2746
2746
|
})({
|
|
2747
2747
|
bundleType: 1,
|
|
2748
|
-
version: "19.1.
|
|
2748
|
+
version: "19.1.7",
|
|
2749
2749
|
rendererPackageName: "react-server-dom-webpack",
|
|
2750
2750
|
currentDispatcherRef: ReactSharedInternals,
|
|
2751
|
-
reconcilerVersion: "19.1.
|
|
2751
|
+
reconcilerVersion: "19.1.7",
|
|
2752
2752
|
getCurrentComponentInfo: function () {
|
|
2753
2753
|
return currentOwnerInDEV;
|
|
2754
2754
|
}
|
|
@@ -346,7 +346,7 @@ function processReply(
|
|
|
346
346
|
null === formData && (formData = new FormData());
|
|
347
347
|
var data$32 = formData;
|
|
348
348
|
key = nextPartId++;
|
|
349
|
-
var prefix = formFieldPrefix + key + "_";
|
|
349
|
+
var prefix = formFieldPrefix + "_" + key + "_";
|
|
350
350
|
value.forEach(function (originalValue, originalKey) {
|
|
351
351
|
data$32.append(prefix + originalKey, originalValue);
|
|
352
352
|
});
|
|
@@ -586,7 +586,7 @@
|
|
|
586
586
|
null === formData && (formData = new FormData());
|
|
587
587
|
var _data3 = formData;
|
|
588
588
|
key = nextPartId++;
|
|
589
|
-
var prefix = formFieldPrefix + key + "_";
|
|
589
|
+
var prefix = formFieldPrefix + "_" + key + "_";
|
|
590
590
|
value.forEach(function (originalValue, originalKey) {
|
|
591
591
|
_data3.append(prefix + originalKey, originalValue);
|
|
592
592
|
});
|
|
@@ -358,7 +358,7 @@ function processReply(
|
|
|
358
358
|
null === formData && (formData = new FormData());
|
|
359
359
|
var data$32 = formData;
|
|
360
360
|
key = nextPartId++;
|
|
361
|
-
var prefix = formFieldPrefix + key + "_";
|
|
361
|
+
var prefix = formFieldPrefix + "_" + key + "_";
|
|
362
362
|
value.forEach(function (originalValue, originalKey) {
|
|
363
363
|
data$32.append(prefix + originalKey, originalValue);
|
|
364
364
|
});
|
|
@@ -586,7 +586,7 @@
|
|
|
586
586
|
null === formData && (formData = new FormData());
|
|
587
587
|
var _data3 = formData;
|
|
588
588
|
key = nextPartId++;
|
|
589
|
-
var prefix = formFieldPrefix + key + "_";
|
|
589
|
+
var prefix = formFieldPrefix + "_" + key + "_";
|
|
590
590
|
value.forEach(function (originalValue, originalKey) {
|
|
591
591
|
_data3.append(prefix + originalKey, originalValue);
|
|
592
592
|
});
|
|
@@ -359,7 +359,7 @@ function processReply(
|
|
|
359
359
|
null === formData && (formData = new FormData());
|
|
360
360
|
var data$32 = formData;
|
|
361
361
|
key = nextPartId++;
|
|
362
|
-
var prefix = formFieldPrefix + key + "_";
|
|
362
|
+
var prefix = formFieldPrefix + "_" + key + "_";
|
|
363
363
|
value.forEach(function (originalValue, originalKey) {
|
|
364
364
|
data$32.append(prefix + originalKey, originalValue);
|
|
365
365
|
});
|
|
@@ -3071,7 +3071,7 @@
|
|
|
3071
3071
|
var chunks = response._chunks,
|
|
3072
3072
|
chunk = chunks.get(id);
|
|
3073
3073
|
chunk ||
|
|
3074
|
-
((chunk = response._formData.get(response._prefix + id)),
|
|
3074
|
+
((chunk = response._formData.data.get(response._prefix + id)),
|
|
3075
3075
|
(chunk =
|
|
3076
3076
|
"string" === typeof chunk
|
|
3077
3077
|
? new ReactPromise(
|
|
@@ -3183,6 +3183,10 @@
|
|
|
3183
3183
|
case "fulfilled":
|
|
3184
3184
|
id = chunk.value;
|
|
3185
3185
|
chunk = chunk.reason;
|
|
3186
|
+
if (null !== chunk && "error" in chunk)
|
|
3187
|
+
throw Error(
|
|
3188
|
+
"Expected an initialized chunk but got an initialized stream chunk instead. This payload may have been submitted by an older version of React."
|
|
3189
|
+
);
|
|
3186
3190
|
for (
|
|
3187
3191
|
var localLength = 0,
|
|
3188
3192
|
rootArrayContexts = response._rootArrayContexts,
|
|
@@ -3274,23 +3278,20 @@
|
|
|
3274
3278
|
function createMap(response, model) {
|
|
3275
3279
|
if (!isArrayImpl(model)) throw Error("Invalid Map initializer.");
|
|
3276
3280
|
if (!0 === model.$$consumed) throw Error("Already initialized Map.");
|
|
3277
|
-
response = new Map(model);
|
|
3278
3281
|
model.$$consumed = !0;
|
|
3279
|
-
return
|
|
3282
|
+
return new Map(model);
|
|
3280
3283
|
}
|
|
3281
3284
|
function createSet(response, model) {
|
|
3282
3285
|
if (!isArrayImpl(model)) throw Error("Invalid Set initializer.");
|
|
3283
3286
|
if (!0 === model.$$consumed) throw Error("Already initialized Set.");
|
|
3284
|
-
response = new Set(model);
|
|
3285
3287
|
model.$$consumed = !0;
|
|
3286
|
-
return
|
|
3288
|
+
return new Set(model);
|
|
3287
3289
|
}
|
|
3288
3290
|
function extractIterator(response, model) {
|
|
3289
3291
|
if (!isArrayImpl(model)) throw Error("Invalid Iterator initializer.");
|
|
3290
3292
|
if (!0 === model.$$consumed) throw Error("Already initialized Iterator.");
|
|
3291
|
-
response = model[Symbol.iterator]();
|
|
3292
3293
|
model.$$consumed = !0;
|
|
3293
|
-
return
|
|
3294
|
+
return model[Symbol.iterator]();
|
|
3294
3295
|
}
|
|
3295
3296
|
function createModel(response, model, parentObject, key) {
|
|
3296
3297
|
return "then" === key && "function" === typeof model ? null : model;
|
|
@@ -3328,7 +3329,7 @@
|
|
|
3328
3329
|
Error("Already initialized typed array.")
|
|
3329
3330
|
)
|
|
3330
3331
|
);
|
|
3331
|
-
reference = response._formData.get(key).arrayBuffer();
|
|
3332
|
+
reference = response._formData.data.get(key).arrayBuffer();
|
|
3332
3333
|
if (initializingHandler) {
|
|
3333
3334
|
var handler = initializingHandler;
|
|
3334
3335
|
handler.deps++;
|
|
@@ -3372,7 +3373,7 @@
|
|
|
3372
3373
|
var chunks = response._chunks;
|
|
3373
3374
|
stream = new ReactPromise("fulfilled", stream, controller);
|
|
3374
3375
|
chunks.set(id, stream);
|
|
3375
|
-
response = response._formData.getAll(response._prefix + id);
|
|
3376
|
+
response = response._formData.data.getAll(response._prefix + id);
|
|
3376
3377
|
for (id = 0; id < response.length; id++)
|
|
3377
3378
|
(chunks = response[id]),
|
|
3378
3379
|
"string" === typeof chunks &&
|
|
@@ -3592,24 +3593,33 @@
|
|
|
3592
3593
|
getOutlinedModel(response, arrayRoot, obj, key, null, createSet)
|
|
3593
3594
|
);
|
|
3594
3595
|
case "K":
|
|
3595
|
-
|
|
3596
|
-
obj = response._prefix +
|
|
3597
|
-
key =
|
|
3598
|
-
|
|
3599
|
-
|
|
3600
|
-
|
|
3601
|
-
|
|
3596
|
+
key = value.slice(2);
|
|
3597
|
+
obj = response._prefix + "_";
|
|
3598
|
+
key = obj + key + "_";
|
|
3599
|
+
arrayRoot = new FormData();
|
|
3600
|
+
for (response = response._formData; ; ) {
|
|
3601
|
+
value = response;
|
|
3602
|
+
reference = value.keys;
|
|
3603
|
+
null === reference &&
|
|
3604
|
+
((reference = value.keys = Array.from(value.data.keys())),
|
|
3605
|
+
(value.keyPointer = 0));
|
|
3606
|
+
value = reference[value.keyPointer];
|
|
3607
|
+
if (void 0 === value) break;
|
|
3608
|
+
if (value.startsWith(key)) {
|
|
3609
|
+
reference = response.data.getAll(value);
|
|
3602
3610
|
for (
|
|
3603
|
-
var
|
|
3604
|
-
|
|
3605
|
-
|
|
3606
|
-
j < entries.length;
|
|
3607
|
-
j++
|
|
3611
|
+
var referencedFormDataKey = value.slice(key.length), i = 0;
|
|
3612
|
+
i < reference.length;
|
|
3613
|
+
i++
|
|
3608
3614
|
)
|
|
3609
|
-
|
|
3610
|
-
response
|
|
3611
|
-
|
|
3612
|
-
|
|
3615
|
+
arrayRoot.append(referencedFormDataKey, reference[i]);
|
|
3616
|
+
reference = response;
|
|
3617
|
+
reference.data.delete(value);
|
|
3618
|
+
reference.keyPointer++;
|
|
3619
|
+
} else if (value.startsWith(obj)) break;
|
|
3620
|
+
else response.keyPointer++;
|
|
3621
|
+
}
|
|
3622
|
+
return arrayRoot;
|
|
3613
3623
|
case "i":
|
|
3614
3624
|
return (
|
|
3615
3625
|
(arrayRoot = value.slice(2)),
|
|
@@ -3778,7 +3788,7 @@
|
|
|
3778
3788
|
case "B":
|
|
3779
3789
|
return (
|
|
3780
3790
|
(obj = parseInt(value.slice(2), 16)),
|
|
3781
|
-
response._formData.get(response._prefix + obj)
|
|
3791
|
+
response._formData.data.get(response._prefix + obj)
|
|
3782
3792
|
);
|
|
3783
3793
|
case "R":
|
|
3784
3794
|
return parseReadableStream(response, value, void 0);
|
|
@@ -3817,7 +3827,7 @@
|
|
|
3817
3827
|
return {
|
|
3818
3828
|
_bundlerConfig: bundlerConfig,
|
|
3819
3829
|
_prefix: formFieldPrefix,
|
|
3820
|
-
_formData: backingFormData,
|
|
3830
|
+
_formData: { data: backingFormData, keyPointer: -1, keys: null },
|
|
3821
3831
|
_chunks: chunks,
|
|
3822
3832
|
_closed: !1,
|
|
3823
3833
|
_closedReason: null,
|
|
@@ -2368,7 +2368,7 @@ function getChunk(response, id) {
|
|
|
2368
2368
|
var chunks = response._chunks,
|
|
2369
2369
|
chunk = chunks.get(id);
|
|
2370
2370
|
chunk ||
|
|
2371
|
-
((chunk = response._formData.get(response._prefix + id)),
|
|
2371
|
+
((chunk = response._formData.data.get(response._prefix + id)),
|
|
2372
2372
|
(chunk =
|
|
2373
2373
|
"string" === typeof chunk
|
|
2374
2374
|
? createResolvedModelChunk(response, chunk, id)
|
|
@@ -2469,6 +2469,10 @@ function getOutlinedModel(
|
|
|
2469
2469
|
case "fulfilled":
|
|
2470
2470
|
id = chunk.value;
|
|
2471
2471
|
chunk = chunk.reason;
|
|
2472
|
+
if (null !== chunk && "error" in chunk)
|
|
2473
|
+
throw Error(
|
|
2474
|
+
"Expected an initialized chunk but got an initialized stream chunk instead. This payload may have been submitted by an older version of React."
|
|
2475
|
+
);
|
|
2472
2476
|
for (
|
|
2473
2477
|
var localLength = 0,
|
|
2474
2478
|
rootArrayContexts = response._rootArrayContexts,
|
|
@@ -2551,23 +2555,20 @@ function getOutlinedModel(
|
|
|
2551
2555
|
function createMap(response, model) {
|
|
2552
2556
|
if (!isArrayImpl(model)) throw Error("Invalid Map initializer.");
|
|
2553
2557
|
if (!0 === model.$$consumed) throw Error("Already initialized Map.");
|
|
2554
|
-
response = new Map(model);
|
|
2555
2558
|
model.$$consumed = !0;
|
|
2556
|
-
return
|
|
2559
|
+
return new Map(model);
|
|
2557
2560
|
}
|
|
2558
2561
|
function createSet(response, model) {
|
|
2559
2562
|
if (!isArrayImpl(model)) throw Error("Invalid Set initializer.");
|
|
2560
2563
|
if (!0 === model.$$consumed) throw Error("Already initialized Set.");
|
|
2561
|
-
response = new Set(model);
|
|
2562
2564
|
model.$$consumed = !0;
|
|
2563
|
-
return
|
|
2565
|
+
return new Set(model);
|
|
2564
2566
|
}
|
|
2565
2567
|
function extractIterator(response, model) {
|
|
2566
2568
|
if (!isArrayImpl(model)) throw Error("Invalid Iterator initializer.");
|
|
2567
2569
|
if (!0 === model.$$consumed) throw Error("Already initialized Iterator.");
|
|
2568
|
-
response = model[Symbol.iterator]();
|
|
2569
2570
|
model.$$consumed = !0;
|
|
2570
|
-
return
|
|
2571
|
+
return model[Symbol.iterator]();
|
|
2571
2572
|
}
|
|
2572
2573
|
function createModel(response, model, parentObject, key) {
|
|
2573
2574
|
return "then" === key && "function" === typeof model ? null : model;
|
|
@@ -2605,7 +2606,7 @@ function parseTypedArray(
|
|
|
2605
2606
|
Error("Already initialized typed array.")
|
|
2606
2607
|
)
|
|
2607
2608
|
);
|
|
2608
|
-
reference = response._formData.get(key).arrayBuffer();
|
|
2609
|
+
reference = response._formData.data.get(key).arrayBuffer();
|
|
2609
2610
|
if (initializingHandler) {
|
|
2610
2611
|
var handler = initializingHandler;
|
|
2611
2612
|
handler.deps++;
|
|
@@ -2649,7 +2650,7 @@ function resolveStream(response, id, stream, controller) {
|
|
|
2649
2650
|
var chunks = response._chunks;
|
|
2650
2651
|
stream = new ReactPromise("fulfilled", stream, controller);
|
|
2651
2652
|
chunks.set(id, stream);
|
|
2652
|
-
response = response._formData.getAll(response._prefix + id);
|
|
2653
|
+
response = response._formData.data.getAll(response._prefix + id);
|
|
2653
2654
|
for (id = 0; id < response.length; id++)
|
|
2654
2655
|
(chunks = response[id]),
|
|
2655
2656
|
"string" === typeof chunks &&
|
|
@@ -2864,24 +2865,31 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
|
|
|
2864
2865
|
getOutlinedModel(response, arrayRoot, obj, key, null, createSet)
|
|
2865
2866
|
);
|
|
2866
2867
|
case "K":
|
|
2867
|
-
|
|
2868
|
-
obj = response._prefix +
|
|
2869
|
-
key =
|
|
2870
|
-
|
|
2871
|
-
|
|
2872
|
-
|
|
2873
|
-
|
|
2868
|
+
key = value.slice(2);
|
|
2869
|
+
obj = response._prefix + "_";
|
|
2870
|
+
key = obj + key + "_";
|
|
2871
|
+
arrayRoot = new FormData();
|
|
2872
|
+
for (response = response._formData; ; ) {
|
|
2873
|
+
value = response.keys;
|
|
2874
|
+
null === value &&
|
|
2875
|
+
((value = response.keys = Array.from(response.data.keys())),
|
|
2876
|
+
(response.keyPointer = 0));
|
|
2877
|
+
value = value[response.keyPointer];
|
|
2878
|
+
if (void 0 === value) break;
|
|
2879
|
+
if (value.startsWith(key)) {
|
|
2880
|
+
reference = response.data.getAll(value);
|
|
2874
2881
|
for (
|
|
2875
|
-
var
|
|
2876
|
-
|
|
2877
|
-
|
|
2878
|
-
j < entries.length;
|
|
2879
|
-
j++
|
|
2882
|
+
var referencedFormDataKey = value.slice(key.length), i = 0;
|
|
2883
|
+
i < reference.length;
|
|
2884
|
+
i++
|
|
2880
2885
|
)
|
|
2881
|
-
|
|
2882
|
-
response.delete(
|
|
2883
|
-
|
|
2884
|
-
|
|
2886
|
+
arrayRoot.append(referencedFormDataKey, reference[i]);
|
|
2887
|
+
response.data.delete(value);
|
|
2888
|
+
response.keyPointer++;
|
|
2889
|
+
} else if (value.startsWith(obj)) break;
|
|
2890
|
+
else response.keyPointer++;
|
|
2891
|
+
}
|
|
2892
|
+
return arrayRoot;
|
|
2885
2893
|
case "i":
|
|
2886
2894
|
return (
|
|
2887
2895
|
(arrayRoot = value.slice(2)),
|
|
@@ -3040,7 +3048,7 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
|
|
|
3040
3048
|
case "B":
|
|
3041
3049
|
return (
|
|
3042
3050
|
(obj = parseInt(value.slice(2), 16)),
|
|
3043
|
-
response._formData.get(response._prefix + obj)
|
|
3051
|
+
response._formData.data.get(response._prefix + obj)
|
|
3044
3052
|
);
|
|
3045
3053
|
case "R":
|
|
3046
3054
|
return parseReadableStream(response, value, void 0);
|
|
@@ -3068,7 +3076,7 @@ function createResponse(bundlerConfig, formFieldPrefix, temporaryReferences) {
|
|
|
3068
3076
|
return {
|
|
3069
3077
|
_bundlerConfig: bundlerConfig,
|
|
3070
3078
|
_prefix: formFieldPrefix,
|
|
3071
|
-
_formData: backingFormData,
|
|
3079
|
+
_formData: { data: backingFormData, keyPointer: -1, keys: null },
|
|
3072
3080
|
_chunks: chunks,
|
|
3073
3081
|
_closed: !1,
|
|
3074
3082
|
_closedReason: null,
|
|
@@ -2833,6 +2833,14 @@
|
|
|
2833
2833
|
if (hasOwnProperty.call(moduleExports, metadata[2]))
|
|
2834
2834
|
return moduleExports[metadata[2]];
|
|
2835
2835
|
}
|
|
2836
|
+
function appendBackingEntry(backingStore, key, value) {
|
|
2837
|
+
backingStore.data.append(key, value);
|
|
2838
|
+
value = backingStore.keys;
|
|
2839
|
+
null === value
|
|
2840
|
+
? ((backingStore.keys = Array.from(backingStore.data.keys())),
|
|
2841
|
+
(backingStore.keyPointer = 0))
|
|
2842
|
+
: value.push(key);
|
|
2843
|
+
}
|
|
2836
2844
|
function ReactPromise(status, value, reason) {
|
|
2837
2845
|
this.status = status;
|
|
2838
2846
|
this.value = value;
|
|
@@ -3145,7 +3153,7 @@
|
|
|
3145
3153
|
var chunks = response._chunks,
|
|
3146
3154
|
chunk = chunks.get(id);
|
|
3147
3155
|
chunk ||
|
|
3148
|
-
((chunk = response._formData.get(response._prefix + id)),
|
|
3156
|
+
((chunk = response._formData.data.get(response._prefix + id)),
|
|
3149
3157
|
(chunk =
|
|
3150
3158
|
"string" === typeof chunk
|
|
3151
3159
|
? new ReactPromise(
|
|
@@ -3257,6 +3265,10 @@
|
|
|
3257
3265
|
case "fulfilled":
|
|
3258
3266
|
id = chunk.value;
|
|
3259
3267
|
chunk = chunk.reason;
|
|
3268
|
+
if (null !== chunk && "error" in chunk)
|
|
3269
|
+
throw Error(
|
|
3270
|
+
"Expected an initialized chunk but got an initialized stream chunk instead. This payload may have been submitted by an older version of React."
|
|
3271
|
+
);
|
|
3260
3272
|
for (
|
|
3261
3273
|
var localLength = 0,
|
|
3262
3274
|
rootArrayContexts = response._rootArrayContexts,
|
|
@@ -3348,23 +3360,20 @@
|
|
|
3348
3360
|
function createMap(response, model) {
|
|
3349
3361
|
if (!isArrayImpl(model)) throw Error("Invalid Map initializer.");
|
|
3350
3362
|
if (!0 === model.$$consumed) throw Error("Already initialized Map.");
|
|
3351
|
-
response = new Map(model);
|
|
3352
3363
|
model.$$consumed = !0;
|
|
3353
|
-
return
|
|
3364
|
+
return new Map(model);
|
|
3354
3365
|
}
|
|
3355
3366
|
function createSet(response, model) {
|
|
3356
3367
|
if (!isArrayImpl(model)) throw Error("Invalid Set initializer.");
|
|
3357
3368
|
if (!0 === model.$$consumed) throw Error("Already initialized Set.");
|
|
3358
|
-
response = new Set(model);
|
|
3359
3369
|
model.$$consumed = !0;
|
|
3360
|
-
return
|
|
3370
|
+
return new Set(model);
|
|
3361
3371
|
}
|
|
3362
3372
|
function extractIterator(response, model) {
|
|
3363
3373
|
if (!isArrayImpl(model)) throw Error("Invalid Iterator initializer.");
|
|
3364
3374
|
if (!0 === model.$$consumed) throw Error("Already initialized Iterator.");
|
|
3365
|
-
response = model[Symbol.iterator]();
|
|
3366
3375
|
model.$$consumed = !0;
|
|
3367
|
-
return
|
|
3376
|
+
return model[Symbol.iterator]();
|
|
3368
3377
|
}
|
|
3369
3378
|
function createModel(response, model, parentObject, key) {
|
|
3370
3379
|
return "then" === key && "function" === typeof model ? null : model;
|
|
@@ -3402,7 +3411,7 @@
|
|
|
3402
3411
|
Error("Already initialized typed array.")
|
|
3403
3412
|
)
|
|
3404
3413
|
);
|
|
3405
|
-
reference = response._formData.get(key).arrayBuffer();
|
|
3414
|
+
reference = response._formData.data.get(key).arrayBuffer();
|
|
3406
3415
|
if (initializingHandler) {
|
|
3407
3416
|
var handler = initializingHandler;
|
|
3408
3417
|
handler.deps++;
|
|
@@ -3446,7 +3455,7 @@
|
|
|
3446
3455
|
var chunks = response._chunks;
|
|
3447
3456
|
stream = new ReactPromise("fulfilled", stream, controller);
|
|
3448
3457
|
chunks.set(id, stream);
|
|
3449
|
-
response = response._formData.getAll(response._prefix + id);
|
|
3458
|
+
response = response._formData.data.getAll(response._prefix + id);
|
|
3450
3459
|
for (id = 0; id < response.length; id++)
|
|
3451
3460
|
(chunks = response[id]),
|
|
3452
3461
|
"string" === typeof chunks &&
|
|
@@ -3666,24 +3675,33 @@
|
|
|
3666
3675
|
getOutlinedModel(response, arrayRoot, obj, key, null, createSet)
|
|
3667
3676
|
);
|
|
3668
3677
|
case "K":
|
|
3669
|
-
|
|
3670
|
-
obj = response._prefix +
|
|
3671
|
-
key =
|
|
3672
|
-
|
|
3673
|
-
|
|
3674
|
-
|
|
3675
|
-
|
|
3678
|
+
key = value.slice(2);
|
|
3679
|
+
obj = response._prefix + "_";
|
|
3680
|
+
key = obj + key + "_";
|
|
3681
|
+
arrayRoot = new FormData();
|
|
3682
|
+
for (response = response._formData; ; ) {
|
|
3683
|
+
value = response;
|
|
3684
|
+
reference = value.keys;
|
|
3685
|
+
null === reference &&
|
|
3686
|
+
((reference = value.keys = Array.from(value.data.keys())),
|
|
3687
|
+
(value.keyPointer = 0));
|
|
3688
|
+
value = reference[value.keyPointer];
|
|
3689
|
+
if (void 0 === value) break;
|
|
3690
|
+
if (value.startsWith(key)) {
|
|
3691
|
+
reference = response.data.getAll(value);
|
|
3676
3692
|
for (
|
|
3677
|
-
var
|
|
3678
|
-
|
|
3679
|
-
|
|
3680
|
-
j < entries.length;
|
|
3681
|
-
j++
|
|
3693
|
+
var referencedFormDataKey = value.slice(key.length), i = 0;
|
|
3694
|
+
i < reference.length;
|
|
3695
|
+
i++
|
|
3682
3696
|
)
|
|
3683
|
-
|
|
3684
|
-
response
|
|
3685
|
-
|
|
3686
|
-
|
|
3697
|
+
arrayRoot.append(referencedFormDataKey, reference[i]);
|
|
3698
|
+
reference = response;
|
|
3699
|
+
reference.data.delete(value);
|
|
3700
|
+
reference.keyPointer++;
|
|
3701
|
+
} else if (value.startsWith(obj)) break;
|
|
3702
|
+
else response.keyPointer++;
|
|
3703
|
+
}
|
|
3704
|
+
return arrayRoot;
|
|
3687
3705
|
case "i":
|
|
3688
3706
|
return (
|
|
3689
3707
|
(arrayRoot = value.slice(2)),
|
|
@@ -3852,7 +3870,7 @@
|
|
|
3852
3870
|
case "B":
|
|
3853
3871
|
return (
|
|
3854
3872
|
(obj = parseInt(value.slice(2), 16)),
|
|
3855
|
-
response._formData.get(response._prefix + obj)
|
|
3873
|
+
response._formData.data.get(response._prefix + obj)
|
|
3856
3874
|
);
|
|
3857
3875
|
case "R":
|
|
3858
3876
|
return parseReadableStream(response, value, void 0);
|
|
@@ -3891,7 +3909,7 @@
|
|
|
3891
3909
|
return {
|
|
3892
3910
|
_bundlerConfig: bundlerConfig,
|
|
3893
3911
|
_prefix: formFieldPrefix,
|
|
3894
|
-
_formData: backingFormData,
|
|
3912
|
+
_formData: { data: backingFormData, keyPointer: -1, keys: null },
|
|
3895
3913
|
_chunks: chunks,
|
|
3896
3914
|
_closed: !1,
|
|
3897
3915
|
_closedReason: null,
|
|
@@ -4549,7 +4567,7 @@
|
|
|
4549
4567
|
entry = entry[1];
|
|
4550
4568
|
if ("string" === typeof entry) {
|
|
4551
4569
|
var response = response$jscomp$0;
|
|
4552
|
-
response._formData
|
|
4570
|
+
appendBackingEntry(response._formData, name, entry);
|
|
4553
4571
|
var prefix = response._prefix;
|
|
4554
4572
|
if (name.startsWith(prefix)) {
|
|
4555
4573
|
var chunks = response._chunks;
|
|
@@ -4557,7 +4575,7 @@
|
|
|
4557
4575
|
(chunks = chunks.get(name)) &&
|
|
4558
4576
|
resolveModelChunk(response, chunks, entry, name);
|
|
4559
4577
|
}
|
|
4560
|
-
} else response$jscomp$0._formData
|
|
4578
|
+
} else appendBackingEntry(response$jscomp$0._formData, name, entry);
|
|
4561
4579
|
iterator.next().then(progress, error);
|
|
4562
4580
|
}
|
|
4563
4581
|
}
|
|
@@ -1998,6 +1998,14 @@ function requireModule(metadata) {
|
|
|
1998
1998
|
if (hasOwnProperty.call(moduleExports, metadata[2]))
|
|
1999
1999
|
return moduleExports[metadata[2]];
|
|
2000
2000
|
}
|
|
2001
|
+
function appendBackingEntry(backingStore, key, value) {
|
|
2002
|
+
backingStore.data.append(key, value);
|
|
2003
|
+
value = backingStore.keys;
|
|
2004
|
+
null === value
|
|
2005
|
+
? ((backingStore.keys = Array.from(backingStore.data.keys())),
|
|
2006
|
+
(backingStore.keyPointer = 0))
|
|
2007
|
+
: value.push(key);
|
|
2008
|
+
}
|
|
2001
2009
|
var RESPONSE_SYMBOL = Symbol();
|
|
2002
2010
|
function ReactPromise(status, value, reason) {
|
|
2003
2011
|
this.status = status;
|
|
@@ -2370,7 +2378,7 @@ function getChunk(response, id) {
|
|
|
2370
2378
|
var chunks = response._chunks,
|
|
2371
2379
|
chunk = chunks.get(id);
|
|
2372
2380
|
chunk ||
|
|
2373
|
-
((chunk = response._formData.get(response._prefix + id)),
|
|
2381
|
+
((chunk = response._formData.data.get(response._prefix + id)),
|
|
2374
2382
|
(chunk =
|
|
2375
2383
|
"string" === typeof chunk
|
|
2376
2384
|
? createResolvedModelChunk(response, chunk, id)
|
|
@@ -2471,6 +2479,10 @@ function getOutlinedModel(
|
|
|
2471
2479
|
case "fulfilled":
|
|
2472
2480
|
id = chunk.value;
|
|
2473
2481
|
chunk = chunk.reason;
|
|
2482
|
+
if (null !== chunk && "error" in chunk)
|
|
2483
|
+
throw Error(
|
|
2484
|
+
"Expected an initialized chunk but got an initialized stream chunk instead. This payload may have been submitted by an older version of React."
|
|
2485
|
+
);
|
|
2474
2486
|
for (
|
|
2475
2487
|
var localLength = 0,
|
|
2476
2488
|
rootArrayContexts = response._rootArrayContexts,
|
|
@@ -2553,23 +2565,20 @@ function getOutlinedModel(
|
|
|
2553
2565
|
function createMap(response, model) {
|
|
2554
2566
|
if (!isArrayImpl(model)) throw Error("Invalid Map initializer.");
|
|
2555
2567
|
if (!0 === model.$$consumed) throw Error("Already initialized Map.");
|
|
2556
|
-
response = new Map(model);
|
|
2557
2568
|
model.$$consumed = !0;
|
|
2558
|
-
return
|
|
2569
|
+
return new Map(model);
|
|
2559
2570
|
}
|
|
2560
2571
|
function createSet(response, model) {
|
|
2561
2572
|
if (!isArrayImpl(model)) throw Error("Invalid Set initializer.");
|
|
2562
2573
|
if (!0 === model.$$consumed) throw Error("Already initialized Set.");
|
|
2563
|
-
response = new Set(model);
|
|
2564
2574
|
model.$$consumed = !0;
|
|
2565
|
-
return
|
|
2575
|
+
return new Set(model);
|
|
2566
2576
|
}
|
|
2567
2577
|
function extractIterator(response, model) {
|
|
2568
2578
|
if (!isArrayImpl(model)) throw Error("Invalid Iterator initializer.");
|
|
2569
2579
|
if (!0 === model.$$consumed) throw Error("Already initialized Iterator.");
|
|
2570
|
-
response = model[Symbol.iterator]();
|
|
2571
2580
|
model.$$consumed = !0;
|
|
2572
|
-
return
|
|
2581
|
+
return model[Symbol.iterator]();
|
|
2573
2582
|
}
|
|
2574
2583
|
function createModel(response, model, parentObject, key) {
|
|
2575
2584
|
return "then" === key && "function" === typeof model ? null : model;
|
|
@@ -2607,7 +2616,7 @@ function parseTypedArray(
|
|
|
2607
2616
|
Error("Already initialized typed array.")
|
|
2608
2617
|
)
|
|
2609
2618
|
);
|
|
2610
|
-
reference = response._formData.get(key).arrayBuffer();
|
|
2619
|
+
reference = response._formData.data.get(key).arrayBuffer();
|
|
2611
2620
|
if (initializingHandler) {
|
|
2612
2621
|
var handler = initializingHandler;
|
|
2613
2622
|
handler.deps++;
|
|
@@ -2651,7 +2660,7 @@ function resolveStream(response, id, stream, controller) {
|
|
|
2651
2660
|
var chunks = response._chunks;
|
|
2652
2661
|
stream = new ReactPromise("fulfilled", stream, controller);
|
|
2653
2662
|
chunks.set(id, stream);
|
|
2654
|
-
response = response._formData.getAll(response._prefix + id);
|
|
2663
|
+
response = response._formData.data.getAll(response._prefix + id);
|
|
2655
2664
|
for (id = 0; id < response.length; id++)
|
|
2656
2665
|
(chunks = response[id]),
|
|
2657
2666
|
"string" === typeof chunks &&
|
|
@@ -2866,24 +2875,31 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
|
|
|
2866
2875
|
getOutlinedModel(response, arrayRoot, obj, key, null, createSet)
|
|
2867
2876
|
);
|
|
2868
2877
|
case "K":
|
|
2869
|
-
|
|
2870
|
-
obj = response._prefix +
|
|
2871
|
-
key =
|
|
2872
|
-
|
|
2873
|
-
|
|
2874
|
-
|
|
2875
|
-
|
|
2878
|
+
key = value.slice(2);
|
|
2879
|
+
obj = response._prefix + "_";
|
|
2880
|
+
key = obj + key + "_";
|
|
2881
|
+
arrayRoot = new FormData();
|
|
2882
|
+
for (response = response._formData; ; ) {
|
|
2883
|
+
value = response.keys;
|
|
2884
|
+
null === value &&
|
|
2885
|
+
((value = response.keys = Array.from(response.data.keys())),
|
|
2886
|
+
(response.keyPointer = 0));
|
|
2887
|
+
value = value[response.keyPointer];
|
|
2888
|
+
if (void 0 === value) break;
|
|
2889
|
+
if (value.startsWith(key)) {
|
|
2890
|
+
reference = response.data.getAll(value);
|
|
2876
2891
|
for (
|
|
2877
|
-
var
|
|
2878
|
-
|
|
2879
|
-
|
|
2880
|
-
j < entries.length;
|
|
2881
|
-
j++
|
|
2892
|
+
var referencedFormDataKey = value.slice(key.length), i = 0;
|
|
2893
|
+
i < reference.length;
|
|
2894
|
+
i++
|
|
2882
2895
|
)
|
|
2883
|
-
|
|
2884
|
-
response.delete(
|
|
2885
|
-
|
|
2886
|
-
|
|
2896
|
+
arrayRoot.append(referencedFormDataKey, reference[i]);
|
|
2897
|
+
response.data.delete(value);
|
|
2898
|
+
response.keyPointer++;
|
|
2899
|
+
} else if (value.startsWith(obj)) break;
|
|
2900
|
+
else response.keyPointer++;
|
|
2901
|
+
}
|
|
2902
|
+
return arrayRoot;
|
|
2887
2903
|
case "i":
|
|
2888
2904
|
return (
|
|
2889
2905
|
(arrayRoot = value.slice(2)),
|
|
@@ -3042,7 +3058,7 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
|
|
|
3042
3058
|
case "B":
|
|
3043
3059
|
return (
|
|
3044
3060
|
(obj = parseInt(value.slice(2), 16)),
|
|
3045
|
-
response._formData.get(response._prefix + obj)
|
|
3061
|
+
response._formData.data.get(response._prefix + obj)
|
|
3046
3062
|
);
|
|
3047
3063
|
case "R":
|
|
3048
3064
|
return parseReadableStream(response, value, void 0);
|
|
@@ -3070,7 +3086,7 @@ function createResponse(bundlerConfig, formFieldPrefix, temporaryReferences) {
|
|
|
3070
3086
|
return {
|
|
3071
3087
|
_bundlerConfig: bundlerConfig,
|
|
3072
3088
|
_prefix: formFieldPrefix,
|
|
3073
|
-
_formData: backingFormData,
|
|
3089
|
+
_formData: { data: backingFormData, keyPointer: -1, keys: null },
|
|
3074
3090
|
_chunks: chunks,
|
|
3075
3091
|
_closed: !1,
|
|
3076
3092
|
_closedReason: null,
|
|
@@ -3206,7 +3222,7 @@ exports.decodeReplyFromAsyncIterable = function (
|
|
|
3206
3222
|
var name = entry[0];
|
|
3207
3223
|
entry = entry[1];
|
|
3208
3224
|
if ("string" === typeof entry) {
|
|
3209
|
-
response._formData
|
|
3225
|
+
appendBackingEntry(response._formData, name, entry);
|
|
3210
3226
|
var prefix = response._prefix;
|
|
3211
3227
|
if (name.startsWith(prefix)) {
|
|
3212
3228
|
var chunks = response._chunks;
|
|
@@ -3214,7 +3230,7 @@ exports.decodeReplyFromAsyncIterable = function (
|
|
|
3214
3230
|
(chunks = chunks.get(name)) &&
|
|
3215
3231
|
resolveModelChunk(response, chunks, entry, name);
|
|
3216
3232
|
}
|
|
3217
|
-
} else response._formData
|
|
3233
|
+
} else appendBackingEntry(response._formData, name, entry);
|
|
3218
3234
|
iterator.next().then(progress, error);
|
|
3219
3235
|
}
|
|
3220
3236
|
}
|
|
@@ -3123,7 +3123,7 @@
|
|
|
3123
3123
|
var chunks = response._chunks,
|
|
3124
3124
|
chunk = chunks.get(id);
|
|
3125
3125
|
chunk ||
|
|
3126
|
-
((chunk = response._formData.get(response._prefix + id)),
|
|
3126
|
+
((chunk = response._formData.data.get(response._prefix + id)),
|
|
3127
3127
|
(chunk =
|
|
3128
3128
|
"string" === typeof chunk
|
|
3129
3129
|
? new ReactPromise(
|
|
@@ -3235,6 +3235,10 @@
|
|
|
3235
3235
|
case "fulfilled":
|
|
3236
3236
|
id = chunk.value;
|
|
3237
3237
|
chunk = chunk.reason;
|
|
3238
|
+
if (null !== chunk && "error" in chunk)
|
|
3239
|
+
throw Error(
|
|
3240
|
+
"Expected an initialized chunk but got an initialized stream chunk instead. This payload may have been submitted by an older version of React."
|
|
3241
|
+
);
|
|
3238
3242
|
for (
|
|
3239
3243
|
var localLength = 0,
|
|
3240
3244
|
rootArrayContexts = response._rootArrayContexts,
|
|
@@ -3326,23 +3330,20 @@
|
|
|
3326
3330
|
function createMap(response, model) {
|
|
3327
3331
|
if (!isArrayImpl(model)) throw Error("Invalid Map initializer.");
|
|
3328
3332
|
if (!0 === model.$$consumed) throw Error("Already initialized Map.");
|
|
3329
|
-
response = new Map(model);
|
|
3330
3333
|
model.$$consumed = !0;
|
|
3331
|
-
return
|
|
3334
|
+
return new Map(model);
|
|
3332
3335
|
}
|
|
3333
3336
|
function createSet(response, model) {
|
|
3334
3337
|
if (!isArrayImpl(model)) throw Error("Invalid Set initializer.");
|
|
3335
3338
|
if (!0 === model.$$consumed) throw Error("Already initialized Set.");
|
|
3336
|
-
response = new Set(model);
|
|
3337
3339
|
model.$$consumed = !0;
|
|
3338
|
-
return
|
|
3340
|
+
return new Set(model);
|
|
3339
3341
|
}
|
|
3340
3342
|
function extractIterator(response, model) {
|
|
3341
3343
|
if (!isArrayImpl(model)) throw Error("Invalid Iterator initializer.");
|
|
3342
3344
|
if (!0 === model.$$consumed) throw Error("Already initialized Iterator.");
|
|
3343
|
-
response = model[Symbol.iterator]();
|
|
3344
3345
|
model.$$consumed = !0;
|
|
3345
|
-
return
|
|
3346
|
+
return model[Symbol.iterator]();
|
|
3346
3347
|
}
|
|
3347
3348
|
function createModel(response, model, parentObject, key) {
|
|
3348
3349
|
return "then" === key && "function" === typeof model ? null : model;
|
|
@@ -3380,7 +3381,7 @@
|
|
|
3380
3381
|
Error("Already initialized typed array.")
|
|
3381
3382
|
)
|
|
3382
3383
|
);
|
|
3383
|
-
reference = response._formData.get(key).arrayBuffer();
|
|
3384
|
+
reference = response._formData.data.get(key).arrayBuffer();
|
|
3384
3385
|
if (initializingHandler) {
|
|
3385
3386
|
var handler = initializingHandler;
|
|
3386
3387
|
handler.deps++;
|
|
@@ -3424,7 +3425,7 @@
|
|
|
3424
3425
|
var chunks = response._chunks;
|
|
3425
3426
|
stream = new ReactPromise("fulfilled", stream, controller);
|
|
3426
3427
|
chunks.set(id, stream);
|
|
3427
|
-
response = response._formData.getAll(response._prefix + id);
|
|
3428
|
+
response = response._formData.data.getAll(response._prefix + id);
|
|
3428
3429
|
for (id = 0; id < response.length; id++)
|
|
3429
3430
|
(chunks = response[id]),
|
|
3430
3431
|
"string" === typeof chunks &&
|
|
@@ -3644,24 +3645,33 @@
|
|
|
3644
3645
|
getOutlinedModel(response, arrayRoot, obj, key, null, createSet)
|
|
3645
3646
|
);
|
|
3646
3647
|
case "K":
|
|
3647
|
-
|
|
3648
|
-
obj = response._prefix +
|
|
3649
|
-
key =
|
|
3650
|
-
|
|
3651
|
-
|
|
3652
|
-
|
|
3653
|
-
|
|
3648
|
+
key = value.slice(2);
|
|
3649
|
+
obj = response._prefix + "_";
|
|
3650
|
+
key = obj + key + "_";
|
|
3651
|
+
arrayRoot = new FormData();
|
|
3652
|
+
for (response = response._formData; ; ) {
|
|
3653
|
+
value = response;
|
|
3654
|
+
reference = value.keys;
|
|
3655
|
+
null === reference &&
|
|
3656
|
+
((reference = value.keys = Array.from(value.data.keys())),
|
|
3657
|
+
(value.keyPointer = 0));
|
|
3658
|
+
value = reference[value.keyPointer];
|
|
3659
|
+
if (void 0 === value) break;
|
|
3660
|
+
if (value.startsWith(key)) {
|
|
3661
|
+
reference = response.data.getAll(value);
|
|
3654
3662
|
for (
|
|
3655
|
-
var
|
|
3656
|
-
|
|
3657
|
-
|
|
3658
|
-
j < entries.length;
|
|
3659
|
-
j++
|
|
3663
|
+
var referencedFormDataKey = value.slice(key.length), i = 0;
|
|
3664
|
+
i < reference.length;
|
|
3665
|
+
i++
|
|
3660
3666
|
)
|
|
3661
|
-
|
|
3662
|
-
response
|
|
3663
|
-
|
|
3664
|
-
|
|
3667
|
+
arrayRoot.append(referencedFormDataKey, reference[i]);
|
|
3668
|
+
reference = response;
|
|
3669
|
+
reference.data.delete(value);
|
|
3670
|
+
reference.keyPointer++;
|
|
3671
|
+
} else if (value.startsWith(obj)) break;
|
|
3672
|
+
else response.keyPointer++;
|
|
3673
|
+
}
|
|
3674
|
+
return arrayRoot;
|
|
3665
3675
|
case "i":
|
|
3666
3676
|
return (
|
|
3667
3677
|
(arrayRoot = value.slice(2)),
|
|
@@ -3830,7 +3840,7 @@
|
|
|
3830
3840
|
case "B":
|
|
3831
3841
|
return (
|
|
3832
3842
|
(obj = parseInt(value.slice(2), 16)),
|
|
3833
|
-
response._formData.get(response._prefix + obj)
|
|
3843
|
+
response._formData.data.get(response._prefix + obj)
|
|
3834
3844
|
);
|
|
3835
3845
|
case "R":
|
|
3836
3846
|
return parseReadableStream(response, value, void 0);
|
|
@@ -3869,7 +3879,7 @@
|
|
|
3869
3879
|
return {
|
|
3870
3880
|
_bundlerConfig: bundlerConfig,
|
|
3871
3881
|
_prefix: formFieldPrefix,
|
|
3872
|
-
_formData: backingFormData,
|
|
3882
|
+
_formData: { data: backingFormData, keyPointer: -1, keys: null },
|
|
3873
3883
|
_chunks: chunks,
|
|
3874
3884
|
_closed: !1,
|
|
3875
3885
|
_closedReason: null,
|
|
@@ -3879,14 +3889,19 @@
|
|
|
3879
3889
|
};
|
|
3880
3890
|
}
|
|
3881
3891
|
function resolveField(response, key, value) {
|
|
3882
|
-
response._formData
|
|
3883
|
-
|
|
3884
|
-
|
|
3885
|
-
|
|
3886
|
-
|
|
3887
|
-
|
|
3888
|
-
|
|
3889
|
-
|
|
3892
|
+
var backingStore = response._formData;
|
|
3893
|
+
backingStore.data.append(key, value);
|
|
3894
|
+
var keys = backingStore.keys;
|
|
3895
|
+
null === keys
|
|
3896
|
+
? ((backingStore.keys = Array.from(backingStore.data.keys())),
|
|
3897
|
+
(backingStore.keyPointer = 0))
|
|
3898
|
+
: keys.push(key);
|
|
3899
|
+
keys = response._prefix;
|
|
3900
|
+
key.startsWith(keys) &&
|
|
3901
|
+
((backingStore = response._chunks),
|
|
3902
|
+
(key = +key.slice(keys.length)),
|
|
3903
|
+
(backingStore = backingStore.get(key)) &&
|
|
3904
|
+
resolveModelChunk(response, backingStore, value, key));
|
|
3890
3905
|
}
|
|
3891
3906
|
function close(response) {
|
|
3892
3907
|
reportGlobalError(response, Error("Connection closed."));
|
|
@@ -4569,16 +4584,22 @@
|
|
|
4569
4584
|
);
|
|
4570
4585
|
else {
|
|
4571
4586
|
pendingFiles++;
|
|
4572
|
-
var
|
|
4587
|
+
var JSCompiler_object_inline_chunks_174 = [];
|
|
4573
4588
|
value.on("data", function (chunk) {
|
|
4574
|
-
|
|
4589
|
+
JSCompiler_object_inline_chunks_174.push(chunk);
|
|
4575
4590
|
});
|
|
4576
4591
|
value.on("end", function () {
|
|
4577
4592
|
try {
|
|
4578
|
-
var blob = new Blob(
|
|
4579
|
-
|
|
4580
|
-
|
|
4581
|
-
|
|
4593
|
+
var blob = new Blob(JSCompiler_object_inline_chunks_174, {
|
|
4594
|
+
type: mimeType
|
|
4595
|
+
}),
|
|
4596
|
+
backingStore = response._formData;
|
|
4597
|
+
backingStore.data.append(name, blob, filename);
|
|
4598
|
+
var keys = backingStore.keys;
|
|
4599
|
+
null === keys
|
|
4600
|
+
? ((backingStore.keys = Array.from(backingStore.data.keys())),
|
|
4601
|
+
(backingStore.keyPointer = 0))
|
|
4602
|
+
: keys.push(name);
|
|
4582
4603
|
pendingFiles--;
|
|
4583
4604
|
if (0 === pendingFiles) {
|
|
4584
4605
|
for (blob = 0; blob < queuedFields.length; blob += 2)
|
|
@@ -2395,7 +2395,7 @@ function getChunk(response, id) {
|
|
|
2395
2395
|
var chunks = response._chunks,
|
|
2396
2396
|
chunk = chunks.get(id);
|
|
2397
2397
|
chunk ||
|
|
2398
|
-
((chunk = response._formData.get(response._prefix + id)),
|
|
2398
|
+
((chunk = response._formData.data.get(response._prefix + id)),
|
|
2399
2399
|
(chunk =
|
|
2400
2400
|
"string" === typeof chunk
|
|
2401
2401
|
? createResolvedModelChunk(response, chunk, id)
|
|
@@ -2496,6 +2496,10 @@ function getOutlinedModel(
|
|
|
2496
2496
|
case "fulfilled":
|
|
2497
2497
|
id = chunk.value;
|
|
2498
2498
|
chunk = chunk.reason;
|
|
2499
|
+
if (null !== chunk && "error" in chunk)
|
|
2500
|
+
throw Error(
|
|
2501
|
+
"Expected an initialized chunk but got an initialized stream chunk instead. This payload may have been submitted by an older version of React."
|
|
2502
|
+
);
|
|
2499
2503
|
for (
|
|
2500
2504
|
var localLength = 0,
|
|
2501
2505
|
rootArrayContexts = response._rootArrayContexts,
|
|
@@ -2578,23 +2582,20 @@ function getOutlinedModel(
|
|
|
2578
2582
|
function createMap(response, model) {
|
|
2579
2583
|
if (!isArrayImpl(model)) throw Error("Invalid Map initializer.");
|
|
2580
2584
|
if (!0 === model.$$consumed) throw Error("Already initialized Map.");
|
|
2581
|
-
response = new Map(model);
|
|
2582
2585
|
model.$$consumed = !0;
|
|
2583
|
-
return
|
|
2586
|
+
return new Map(model);
|
|
2584
2587
|
}
|
|
2585
2588
|
function createSet(response, model) {
|
|
2586
2589
|
if (!isArrayImpl(model)) throw Error("Invalid Set initializer.");
|
|
2587
2590
|
if (!0 === model.$$consumed) throw Error("Already initialized Set.");
|
|
2588
|
-
response = new Set(model);
|
|
2589
2591
|
model.$$consumed = !0;
|
|
2590
|
-
return
|
|
2592
|
+
return new Set(model);
|
|
2591
2593
|
}
|
|
2592
2594
|
function extractIterator(response, model) {
|
|
2593
2595
|
if (!isArrayImpl(model)) throw Error("Invalid Iterator initializer.");
|
|
2594
2596
|
if (!0 === model.$$consumed) throw Error("Already initialized Iterator.");
|
|
2595
|
-
response = model[Symbol.iterator]();
|
|
2596
2597
|
model.$$consumed = !0;
|
|
2597
|
-
return
|
|
2598
|
+
return model[Symbol.iterator]();
|
|
2598
2599
|
}
|
|
2599
2600
|
function createModel(response, model, parentObject, key) {
|
|
2600
2601
|
return "then" === key && "function" === typeof model ? null : model;
|
|
@@ -2632,7 +2633,7 @@ function parseTypedArray(
|
|
|
2632
2633
|
Error("Already initialized typed array.")
|
|
2633
2634
|
)
|
|
2634
2635
|
);
|
|
2635
|
-
reference = response._formData.get(key).arrayBuffer();
|
|
2636
|
+
reference = response._formData.data.get(key).arrayBuffer();
|
|
2636
2637
|
if (initializingHandler) {
|
|
2637
2638
|
var handler = initializingHandler;
|
|
2638
2639
|
handler.deps++;
|
|
@@ -2676,7 +2677,7 @@ function resolveStream(response, id, stream, controller) {
|
|
|
2676
2677
|
var chunks = response._chunks;
|
|
2677
2678
|
stream = new ReactPromise("fulfilled", stream, controller);
|
|
2678
2679
|
chunks.set(id, stream);
|
|
2679
|
-
response = response._formData.getAll(response._prefix + id);
|
|
2680
|
+
response = response._formData.data.getAll(response._prefix + id);
|
|
2680
2681
|
for (id = 0; id < response.length; id++)
|
|
2681
2682
|
(chunks = response[id]),
|
|
2682
2683
|
"string" === typeof chunks &&
|
|
@@ -2891,24 +2892,31 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
|
|
|
2891
2892
|
getOutlinedModel(response, arrayRoot, obj, key, null, createSet)
|
|
2892
2893
|
);
|
|
2893
2894
|
case "K":
|
|
2894
|
-
|
|
2895
|
-
obj = response._prefix +
|
|
2896
|
-
key =
|
|
2897
|
-
|
|
2898
|
-
|
|
2899
|
-
|
|
2900
|
-
|
|
2895
|
+
key = value.slice(2);
|
|
2896
|
+
obj = response._prefix + "_";
|
|
2897
|
+
key = obj + key + "_";
|
|
2898
|
+
arrayRoot = new FormData();
|
|
2899
|
+
for (response = response._formData; ; ) {
|
|
2900
|
+
value = response.keys;
|
|
2901
|
+
null === value &&
|
|
2902
|
+
((value = response.keys = Array.from(response.data.keys())),
|
|
2903
|
+
(response.keyPointer = 0));
|
|
2904
|
+
value = value[response.keyPointer];
|
|
2905
|
+
if (void 0 === value) break;
|
|
2906
|
+
if (value.startsWith(key)) {
|
|
2907
|
+
reference = response.data.getAll(value);
|
|
2901
2908
|
for (
|
|
2902
|
-
var
|
|
2903
|
-
|
|
2904
|
-
|
|
2905
|
-
j < entries.length;
|
|
2906
|
-
j++
|
|
2909
|
+
var referencedFormDataKey = value.slice(key.length), i = 0;
|
|
2910
|
+
i < reference.length;
|
|
2911
|
+
i++
|
|
2907
2912
|
)
|
|
2908
|
-
|
|
2909
|
-
response.delete(
|
|
2910
|
-
|
|
2911
|
-
|
|
2913
|
+
arrayRoot.append(referencedFormDataKey, reference[i]);
|
|
2914
|
+
response.data.delete(value);
|
|
2915
|
+
response.keyPointer++;
|
|
2916
|
+
} else if (value.startsWith(obj)) break;
|
|
2917
|
+
else response.keyPointer++;
|
|
2918
|
+
}
|
|
2919
|
+
return arrayRoot;
|
|
2912
2920
|
case "i":
|
|
2913
2921
|
return (
|
|
2914
2922
|
(arrayRoot = value.slice(2)),
|
|
@@ -3067,7 +3075,7 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
|
|
|
3067
3075
|
case "B":
|
|
3068
3076
|
return (
|
|
3069
3077
|
(obj = parseInt(value.slice(2), 16)),
|
|
3070
|
-
response._formData.get(response._prefix + obj)
|
|
3078
|
+
response._formData.data.get(response._prefix + obj)
|
|
3071
3079
|
);
|
|
3072
3080
|
case "R":
|
|
3073
3081
|
return parseReadableStream(response, value, void 0);
|
|
@@ -3095,7 +3103,7 @@ function createResponse(bundlerConfig, formFieldPrefix, temporaryReferences) {
|
|
|
3095
3103
|
return {
|
|
3096
3104
|
_bundlerConfig: bundlerConfig,
|
|
3097
3105
|
_prefix: formFieldPrefix,
|
|
3098
|
-
_formData: backingFormData,
|
|
3106
|
+
_formData: { data: backingFormData, keyPointer: -1, keys: null },
|
|
3099
3107
|
_chunks: chunks,
|
|
3100
3108
|
_closed: !1,
|
|
3101
3109
|
_closedReason: null,
|
|
@@ -3105,14 +3113,19 @@ function createResponse(bundlerConfig, formFieldPrefix, temporaryReferences) {
|
|
|
3105
3113
|
};
|
|
3106
3114
|
}
|
|
3107
3115
|
function resolveField(response, key, value) {
|
|
3108
|
-
response._formData
|
|
3109
|
-
|
|
3110
|
-
|
|
3111
|
-
|
|
3112
|
-
|
|
3113
|
-
|
|
3114
|
-
|
|
3115
|
-
|
|
3116
|
+
var backingStore = response._formData;
|
|
3117
|
+
backingStore.data.append(key, value);
|
|
3118
|
+
var keys = backingStore.keys;
|
|
3119
|
+
null === keys
|
|
3120
|
+
? ((backingStore.keys = Array.from(backingStore.data.keys())),
|
|
3121
|
+
(backingStore.keyPointer = 0))
|
|
3122
|
+
: keys.push(key);
|
|
3123
|
+
keys = response._prefix;
|
|
3124
|
+
key.startsWith(keys) &&
|
|
3125
|
+
((backingStore = response._chunks),
|
|
3126
|
+
(key = +key.slice(keys.length)),
|
|
3127
|
+
(backingStore = backingStore.get(key)) &&
|
|
3128
|
+
resolveModelChunk(response, backingStore, value, key));
|
|
3116
3129
|
}
|
|
3117
3130
|
function close(response) {
|
|
3118
3131
|
reportGlobalError(response, Error("Connection closed."));
|
|
@@ -3283,16 +3296,22 @@ exports.decodeReplyFromBusboy = function (busboyStream, webpackMap, options) {
|
|
|
3283
3296
|
);
|
|
3284
3297
|
else {
|
|
3285
3298
|
pendingFiles++;
|
|
3286
|
-
var
|
|
3299
|
+
var JSCompiler_object_inline_chunks_254 = [];
|
|
3287
3300
|
value.on("data", function (chunk) {
|
|
3288
|
-
|
|
3301
|
+
JSCompiler_object_inline_chunks_254.push(chunk);
|
|
3289
3302
|
});
|
|
3290
3303
|
value.on("end", function () {
|
|
3291
3304
|
try {
|
|
3292
|
-
var blob = new Blob(
|
|
3293
|
-
|
|
3294
|
-
|
|
3295
|
-
|
|
3305
|
+
var blob = new Blob(JSCompiler_object_inline_chunks_254, {
|
|
3306
|
+
type: mimeType
|
|
3307
|
+
}),
|
|
3308
|
+
backingStore = response._formData;
|
|
3309
|
+
backingStore.data.append(name, blob, filename);
|
|
3310
|
+
var keys = backingStore.keys;
|
|
3311
|
+
null === keys
|
|
3312
|
+
? ((backingStore.keys = Array.from(backingStore.data.keys())),
|
|
3313
|
+
(backingStore.keyPointer = 0))
|
|
3314
|
+
: keys.push(name);
|
|
3296
3315
|
pendingFiles--;
|
|
3297
3316
|
if (0 === pendingFiles) {
|
|
3298
3317
|
for (blob = 0; blob < queuedFields.length; blob += 2)
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-server-dom-webpack",
|
|
3
3
|
"description": "React Server Components bindings for DOM using Webpack. This is intended to be integrated into meta-frameworks. It is not intended to be imported directly.",
|
|
4
|
-
"version": "19.1.
|
|
4
|
+
"version": "19.1.7",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react"
|
|
7
7
|
],
|
|
@@ -84,8 +84,8 @@
|
|
|
84
84
|
"node": ">=0.10.0"
|
|
85
85
|
},
|
|
86
86
|
"peerDependencies": {
|
|
87
|
-
"react": "^19.1.
|
|
88
|
-
"react-dom": "^19.1.
|
|
87
|
+
"react": "^19.1.7",
|
|
88
|
+
"react-dom": "^19.1.7",
|
|
89
89
|
"webpack": "^5.59.0"
|
|
90
90
|
},
|
|
91
91
|
"dependencies": {
|