react-server-dom-parcel 19.1.7 → 19.1.9
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 +2 -2
- package/cjs/react-server-dom-parcel-server.browser.development.js +29 -29
- package/cjs/react-server-dom-parcel-server.browser.production.js +26 -29
- package/cjs/react-server-dom-parcel-server.edge.development.js +37 -36
- package/cjs/react-server-dom-parcel-server.edge.production.js +34 -36
- package/cjs/react-server-dom-parcel-server.node.development.js +99 -62
- package/cjs/react-server-dom-parcel-server.node.production.js +95 -58
- package/package.json +5 -5
|
@@ -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.9",
|
|
2693
2693
|
rendererPackageName: "react-server-dom-parcel",
|
|
2694
2694
|
currentDispatcherRef: ReactSharedInternals,
|
|
2695
|
-
reconcilerVersion: "19.1.
|
|
2695
|
+
reconcilerVersion: "19.1.9",
|
|
2696
2696
|
getCurrentComponentInfo: function () {
|
|
2697
2697
|
return currentOwnerInDEV;
|
|
2698
2698
|
}
|
|
@@ -859,7 +859,7 @@
|
|
|
859
859
|
erroredTask(request, streamTask, reason),
|
|
860
860
|
enqueueFlush(request),
|
|
861
861
|
"function" === typeof iterator.throw &&
|
|
862
|
-
iterator.throw(reason).then(
|
|
862
|
+
iterator.throw(reason).then(noop, noop));
|
|
863
863
|
}
|
|
864
864
|
function abortIterable(reason) {
|
|
865
865
|
aborted ||
|
|
@@ -868,7 +868,7 @@
|
|
|
868
868
|
erroredTask(request, streamTask, reason),
|
|
869
869
|
enqueueFlush(request),
|
|
870
870
|
"function" === typeof iterator.throw &&
|
|
871
|
-
iterator.throw(reason).then(
|
|
871
|
+
iterator.throw(reason).then(noop, noop));
|
|
872
872
|
}
|
|
873
873
|
var isIterator = iterable === iterator,
|
|
874
874
|
streamTask = createTask(
|
|
@@ -3731,44 +3731,44 @@
|
|
|
3731
3731
|
}
|
|
3732
3732
|
function decodeAction$1(body, serverManifest) {
|
|
3733
3733
|
var formData = new FormData(),
|
|
3734
|
-
|
|
3735
|
-
seenActions = new Set();
|
|
3734
|
+
maybeActionKey = null;
|
|
3736
3735
|
body.forEach(function (value, key) {
|
|
3737
3736
|
key.startsWith("$ACTION_")
|
|
3738
3737
|
? key.startsWith("$ACTION_REF_")
|
|
3739
|
-
?
|
|
3740
|
-
|
|
3741
|
-
(value = "$ACTION_" + key.slice(12) + ":"),
|
|
3742
|
-
(value = decodeBoundActionMetaData(body, serverManifest, value)),
|
|
3743
|
-
(action = loadServerReference(serverManifest, value)))
|
|
3744
|
-
: key.startsWith("$ACTION_ID_") &&
|
|
3745
|
-
!seenActions.has(key) &&
|
|
3746
|
-
(seenActions.add(key),
|
|
3747
|
-
(value = key.slice(11)),
|
|
3748
|
-
(action = loadServerReference(serverManifest, {
|
|
3749
|
-
id: value,
|
|
3750
|
-
bound: null
|
|
3751
|
-
})))
|
|
3738
|
+
? (maybeActionKey = key)
|
|
3739
|
+
: key.startsWith("$ACTION_ID_") && (maybeActionKey = key)
|
|
3752
3740
|
: formData.append(key, value);
|
|
3753
3741
|
});
|
|
3754
|
-
|
|
3755
|
-
|
|
3756
|
-
|
|
3757
|
-
|
|
3758
|
-
|
|
3742
|
+
if (null === maybeActionKey) return null;
|
|
3743
|
+
var actionKey = maybeActionKey,
|
|
3744
|
+
action = null;
|
|
3745
|
+
if (actionKey.startsWith("$ACTION_REF_"))
|
|
3746
|
+
(actionKey = "$ACTION_" + actionKey.slice(12) + ":"),
|
|
3747
|
+
(body = decodeBoundActionMetaData(body, serverManifest, actionKey)),
|
|
3748
|
+
(action = loadServerReference(serverManifest, body));
|
|
3749
|
+
else if (actionKey.startsWith("$ACTION_ID_"))
|
|
3750
|
+
(body = actionKey.slice(11)),
|
|
3751
|
+
(action = loadServerReference(serverManifest, {
|
|
3752
|
+
id: body,
|
|
3753
|
+
bound: null
|
|
3754
|
+
}));
|
|
3755
|
+
else throw Error("Cannot handle action key. This is a bug in React.");
|
|
3756
|
+
return action.then(function (fn) {
|
|
3757
|
+
return fn.bind(null, formData);
|
|
3758
|
+
});
|
|
3759
3759
|
}
|
|
3760
3760
|
function decodeFormState$1(actionResult, body, serverManifest) {
|
|
3761
3761
|
var keyPath = body.get("$ACTION_KEY");
|
|
3762
3762
|
if ("string" !== typeof keyPath) return Promise.resolve(null);
|
|
3763
|
-
var
|
|
3763
|
+
var actionKey = null;
|
|
3764
3764
|
body.forEach(function (value, key) {
|
|
3765
|
-
key.startsWith("$ACTION_REF_") &&
|
|
3766
|
-
((value = "$ACTION_" + key.slice(12) + ":"),
|
|
3767
|
-
(metaData = decodeBoundActionMetaData(body, serverManifest, value)));
|
|
3765
|
+
key.startsWith("$ACTION_REF_") && (actionKey = key);
|
|
3768
3766
|
});
|
|
3769
|
-
if (null ===
|
|
3770
|
-
var
|
|
3771
|
-
|
|
3767
|
+
if (null === actionKey) return Promise.resolve(null);
|
|
3768
|
+
var formFieldPrefix = "$ACTION_" + actionKey.slice(12) + ":";
|
|
3769
|
+
body = decodeBoundActionMetaData(body, serverManifest, formFieldPrefix);
|
|
3770
|
+
var referenceId = body.id;
|
|
3771
|
+
return Promise.resolve(body.bound).then(function (bound) {
|
|
3772
3772
|
return null === bound
|
|
3773
3773
|
? null
|
|
3774
3774
|
: [actionResult, keyPath, referenceId, bound.length - 1];
|
|
@@ -806,7 +806,7 @@ function serializeAsyncIterable(request, task, iterable, iterator) {
|
|
|
806
806
|
erroredTask(request, streamTask, reason),
|
|
807
807
|
enqueueFlush(request),
|
|
808
808
|
"function" === typeof iterator.throw &&
|
|
809
|
-
iterator.throw(reason).then(
|
|
809
|
+
iterator.throw(reason).then(noop, noop));
|
|
810
810
|
}
|
|
811
811
|
function abortIterable(reason) {
|
|
812
812
|
aborted ||
|
|
@@ -815,7 +815,7 @@ function serializeAsyncIterable(request, task, iterable, iterator) {
|
|
|
815
815
|
erroredTask(request, streamTask, reason),
|
|
816
816
|
enqueueFlush(request),
|
|
817
817
|
"function" === typeof iterator.throw &&
|
|
818
|
-
iterator.throw(reason).then(
|
|
818
|
+
iterator.throw(reason).then(noop, noop));
|
|
819
819
|
}
|
|
820
820
|
iterable = iterable === iterator;
|
|
821
821
|
var streamTask = createTask(
|
|
@@ -2915,44 +2915,41 @@ function decodeBoundActionMetaData(
|
|
|
2915
2915
|
}
|
|
2916
2916
|
function decodeAction$1(body, serverManifest) {
|
|
2917
2917
|
var formData = new FormData(),
|
|
2918
|
-
|
|
2919
|
-
seenActions = new Set();
|
|
2918
|
+
maybeActionKey = null;
|
|
2920
2919
|
body.forEach(function (value, key) {
|
|
2921
2920
|
key.startsWith("$ACTION_")
|
|
2922
2921
|
? key.startsWith("$ACTION_REF_")
|
|
2923
|
-
?
|
|
2924
|
-
|
|
2925
|
-
(value = "$ACTION_" + key.slice(12) + ":"),
|
|
2926
|
-
(value = decodeBoundActionMetaData(body, serverManifest, value)),
|
|
2927
|
-
(action = loadServerReference(serverManifest, value)))
|
|
2928
|
-
: key.startsWith("$ACTION_ID_") &&
|
|
2929
|
-
!seenActions.has(key) &&
|
|
2930
|
-
(seenActions.add(key),
|
|
2931
|
-
(value = key.slice(11)),
|
|
2932
|
-
(action = loadServerReference(serverManifest, {
|
|
2933
|
-
id: value,
|
|
2934
|
-
bound: null
|
|
2935
|
-
})))
|
|
2922
|
+
? (maybeActionKey = key)
|
|
2923
|
+
: key.startsWith("$ACTION_ID_") && (maybeActionKey = key)
|
|
2936
2924
|
: formData.append(key, value);
|
|
2937
2925
|
});
|
|
2938
|
-
|
|
2939
|
-
|
|
2940
|
-
|
|
2941
|
-
|
|
2942
|
-
|
|
2926
|
+
if (null === maybeActionKey) return null;
|
|
2927
|
+
var actionKey = maybeActionKey,
|
|
2928
|
+
action = null;
|
|
2929
|
+
if (actionKey.startsWith("$ACTION_REF_"))
|
|
2930
|
+
(actionKey = "$ACTION_" + actionKey.slice(12) + ":"),
|
|
2931
|
+
(body = decodeBoundActionMetaData(body, serverManifest, actionKey)),
|
|
2932
|
+
(action = loadServerReference(serverManifest, body));
|
|
2933
|
+
else if (actionKey.startsWith("$ACTION_ID_"))
|
|
2934
|
+
(body = actionKey.slice(11)),
|
|
2935
|
+
(action = loadServerReference(serverManifest, { id: body, bound: null }));
|
|
2936
|
+
else throw Error("Cannot handle action key. This is a bug in React.");
|
|
2937
|
+
return action.then(function (fn) {
|
|
2938
|
+
return fn.bind(null, formData);
|
|
2939
|
+
});
|
|
2943
2940
|
}
|
|
2944
2941
|
function decodeFormState$1(actionResult, body, serverManifest) {
|
|
2945
2942
|
var keyPath = body.get("$ACTION_KEY");
|
|
2946
2943
|
if ("string" !== typeof keyPath) return Promise.resolve(null);
|
|
2947
|
-
var
|
|
2944
|
+
var actionKey = null;
|
|
2948
2945
|
body.forEach(function (value, key) {
|
|
2949
|
-
key.startsWith("$ACTION_REF_") &&
|
|
2950
|
-
((value = "$ACTION_" + key.slice(12) + ":"),
|
|
2951
|
-
(metaData = decodeBoundActionMetaData(body, serverManifest, value)));
|
|
2946
|
+
key.startsWith("$ACTION_REF_") && (actionKey = key);
|
|
2952
2947
|
});
|
|
2953
|
-
if (null ===
|
|
2954
|
-
var
|
|
2955
|
-
|
|
2948
|
+
if (null === actionKey) return Promise.resolve(null);
|
|
2949
|
+
var formFieldPrefix = "$ACTION_" + actionKey.slice(12) + ":";
|
|
2950
|
+
body = decodeBoundActionMetaData(body, serverManifest, formFieldPrefix);
|
|
2951
|
+
var referenceId = body.id;
|
|
2952
|
+
return Promise.resolve(body.bound).then(function (bound) {
|
|
2956
2953
|
return null === bound
|
|
2957
2954
|
? null
|
|
2958
2955
|
: [actionResult, keyPath, referenceId, bound.length - 1];
|
|
@@ -194,13 +194,13 @@
|
|
|
194
194
|
temporaryReferences.set(reference, id);
|
|
195
195
|
return reference;
|
|
196
196
|
}
|
|
197
|
-
function noop$
|
|
197
|
+
function noop$2() {}
|
|
198
198
|
function trackUsedThenable(thenableState, thenable, index) {
|
|
199
199
|
index = thenableState[index];
|
|
200
200
|
void 0 === index
|
|
201
201
|
? thenableState.push(thenable)
|
|
202
202
|
: index !== thenable &&
|
|
203
|
-
(thenable.then(noop$
|
|
203
|
+
(thenable.then(noop$2, noop$2), (thenable = index));
|
|
204
204
|
switch (thenable.status) {
|
|
205
205
|
case "fulfilled":
|
|
206
206
|
return thenable.value;
|
|
@@ -208,7 +208,7 @@
|
|
|
208
208
|
throw thenable.reason;
|
|
209
209
|
default:
|
|
210
210
|
"string" === typeof thenable.status
|
|
211
|
-
? thenable.then(noop$
|
|
211
|
+
? thenable.then(noop$2, noop$2)
|
|
212
212
|
: ((thenableState = thenable),
|
|
213
213
|
(thenableState.status = "pending"),
|
|
214
214
|
thenableState.then(
|
|
@@ -652,7 +652,7 @@
|
|
|
652
652
|
type = createTask(this, model, null, !1, abortSet, null, null, null);
|
|
653
653
|
pingedTasks.push(type);
|
|
654
654
|
}
|
|
655
|
-
function noop() {}
|
|
655
|
+
function noop$1() {}
|
|
656
656
|
function createRequest(
|
|
657
657
|
model,
|
|
658
658
|
bundlerConfig,
|
|
@@ -674,8 +674,8 @@
|
|
|
674
674
|
temporaryReferences,
|
|
675
675
|
environmentName,
|
|
676
676
|
filterStackFrame,
|
|
677
|
-
noop,
|
|
678
|
-
noop
|
|
677
|
+
noop$1,
|
|
678
|
+
noop$1
|
|
679
679
|
);
|
|
680
680
|
}
|
|
681
681
|
function createPrerenderRequest(
|
|
@@ -874,7 +874,7 @@
|
|
|
874
874
|
erroredTask(request, streamTask, reason),
|
|
875
875
|
enqueueFlush(request),
|
|
876
876
|
"function" === typeof iterator.throw &&
|
|
877
|
-
iterator.throw(reason).then(
|
|
877
|
+
iterator.throw(reason).then(noop$1, noop$1));
|
|
878
878
|
}
|
|
879
879
|
function abortIterable(reason) {
|
|
880
880
|
aborted ||
|
|
@@ -883,7 +883,7 @@
|
|
|
883
883
|
erroredTask(request, streamTask, reason),
|
|
884
884
|
enqueueFlush(request),
|
|
885
885
|
"function" === typeof iterator.throw &&
|
|
886
|
-
iterator.throw(reason).then(
|
|
886
|
+
iterator.throw(reason).then(noop$1, noop$1));
|
|
887
887
|
}
|
|
888
888
|
var isIterator = iterable === iterator,
|
|
889
889
|
streamTask = createTask(
|
|
@@ -3817,49 +3817,50 @@
|
|
|
3817
3817
|
}
|
|
3818
3818
|
function decodeAction$1(body, serverManifest) {
|
|
3819
3819
|
var formData = new FormData(),
|
|
3820
|
-
|
|
3821
|
-
seenActions = new Set();
|
|
3820
|
+
maybeActionKey = null;
|
|
3822
3821
|
body.forEach(function (value, key) {
|
|
3823
3822
|
key.startsWith("$ACTION_")
|
|
3824
3823
|
? key.startsWith("$ACTION_REF_")
|
|
3825
|
-
?
|
|
3826
|
-
|
|
3827
|
-
(value = "$ACTION_" + key.slice(12) + ":"),
|
|
3828
|
-
(value = decodeBoundActionMetaData(body, serverManifest, value)),
|
|
3829
|
-
(action = loadServerReference(serverManifest, value)))
|
|
3830
|
-
: key.startsWith("$ACTION_ID_") &&
|
|
3831
|
-
!seenActions.has(key) &&
|
|
3832
|
-
(seenActions.add(key),
|
|
3833
|
-
(value = key.slice(11)),
|
|
3834
|
-
(action = loadServerReference(serverManifest, {
|
|
3835
|
-
id: value,
|
|
3836
|
-
bound: null
|
|
3837
|
-
})))
|
|
3824
|
+
? (maybeActionKey = key)
|
|
3825
|
+
: key.startsWith("$ACTION_ID_") && (maybeActionKey = key)
|
|
3838
3826
|
: formData.append(key, value);
|
|
3839
3827
|
});
|
|
3840
|
-
|
|
3841
|
-
|
|
3842
|
-
|
|
3843
|
-
|
|
3844
|
-
|
|
3828
|
+
if (null === maybeActionKey) return null;
|
|
3829
|
+
var actionKey = maybeActionKey,
|
|
3830
|
+
action = null;
|
|
3831
|
+
if (actionKey.startsWith("$ACTION_REF_"))
|
|
3832
|
+
(actionKey = "$ACTION_" + actionKey.slice(12) + ":"),
|
|
3833
|
+
(body = decodeBoundActionMetaData(body, serverManifest, actionKey)),
|
|
3834
|
+
(action = loadServerReference(serverManifest, body));
|
|
3835
|
+
else if (actionKey.startsWith("$ACTION_ID_"))
|
|
3836
|
+
(body = actionKey.slice(11)),
|
|
3837
|
+
(action = loadServerReference(serverManifest, {
|
|
3838
|
+
id: body,
|
|
3839
|
+
bound: null
|
|
3840
|
+
}));
|
|
3841
|
+
else throw Error("Cannot handle action key. This is a bug in React.");
|
|
3842
|
+
return action.then(function (fn) {
|
|
3843
|
+
return fn.bind(null, formData);
|
|
3844
|
+
});
|
|
3845
3845
|
}
|
|
3846
3846
|
function decodeFormState$1(actionResult, body, serverManifest) {
|
|
3847
3847
|
var keyPath = body.get("$ACTION_KEY");
|
|
3848
3848
|
if ("string" !== typeof keyPath) return Promise.resolve(null);
|
|
3849
|
-
var
|
|
3849
|
+
var actionKey = null;
|
|
3850
3850
|
body.forEach(function (value, key) {
|
|
3851
|
-
key.startsWith("$ACTION_REF_") &&
|
|
3852
|
-
((value = "$ACTION_" + key.slice(12) + ":"),
|
|
3853
|
-
(metaData = decodeBoundActionMetaData(body, serverManifest, value)));
|
|
3851
|
+
key.startsWith("$ACTION_REF_") && (actionKey = key);
|
|
3854
3852
|
});
|
|
3855
|
-
if (null ===
|
|
3856
|
-
var
|
|
3857
|
-
|
|
3853
|
+
if (null === actionKey) return Promise.resolve(null);
|
|
3854
|
+
var formFieldPrefix = "$ACTION_" + actionKey.slice(12) + ":";
|
|
3855
|
+
body = decodeBoundActionMetaData(body, serverManifest, formFieldPrefix);
|
|
3856
|
+
var referenceId = body.id;
|
|
3857
|
+
return Promise.resolve(body.bound).then(function (bound) {
|
|
3858
3858
|
return null === bound
|
|
3859
3859
|
? null
|
|
3860
3860
|
: [actionResult, keyPath, referenceId, bound.length - 1];
|
|
3861
3861
|
});
|
|
3862
3862
|
}
|
|
3863
|
+
function noop() {}
|
|
3863
3864
|
var ReactDOM = require("react-dom"),
|
|
3864
3865
|
React = require("react"),
|
|
3865
3866
|
ReactDOMSharedInternals =
|
|
@@ -4379,7 +4380,7 @@
|
|
|
4379
4380
|
function error(reason) {
|
|
4380
4381
|
reportGlobalError(response$jscomp$0, reason);
|
|
4381
4382
|
"function" === typeof iterator.throw &&
|
|
4382
|
-
iterator.throw(reason).then(
|
|
4383
|
+
iterator.throw(reason).then(noop, noop);
|
|
4383
4384
|
}
|
|
4384
4385
|
var iterator = iterable[ASYNC_ITERATOR](),
|
|
4385
4386
|
response$jscomp$0 = createResponse(
|
|
@@ -333,12 +333,12 @@ function createTemporaryReference(temporaryReferences, id) {
|
|
|
333
333
|
var SuspenseException = Error(
|
|
334
334
|
"Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary, or call the promise's `.catch` method and pass the result to `use`."
|
|
335
335
|
);
|
|
336
|
-
function noop$
|
|
336
|
+
function noop$2() {}
|
|
337
337
|
function trackUsedThenable(thenableState, thenable, index) {
|
|
338
338
|
index = thenableState[index];
|
|
339
339
|
void 0 === index
|
|
340
340
|
? thenableState.push(thenable)
|
|
341
|
-
: index !== thenable && (thenable.then(noop$
|
|
341
|
+
: index !== thenable && (thenable.then(noop$2, noop$2), (thenable = index));
|
|
342
342
|
switch (thenable.status) {
|
|
343
343
|
case "fulfilled":
|
|
344
344
|
return thenable.value;
|
|
@@ -346,7 +346,7 @@ function trackUsedThenable(thenableState, thenable, index) {
|
|
|
346
346
|
throw thenable.reason;
|
|
347
347
|
default:
|
|
348
348
|
"string" === typeof thenable.status
|
|
349
|
-
? thenable.then(noop$
|
|
349
|
+
? thenable.then(noop$2, noop$2)
|
|
350
350
|
: ((thenableState = thenable),
|
|
351
351
|
(thenableState.status = "pending"),
|
|
352
352
|
thenableState.then(
|
|
@@ -651,7 +651,7 @@ function RequestInstance(
|
|
|
651
651
|
type = createTask(this, model, null, !1, filterStackFrame);
|
|
652
652
|
environmentName.push(type);
|
|
653
653
|
}
|
|
654
|
-
function noop() {}
|
|
654
|
+
function noop$1() {}
|
|
655
655
|
var currentRequest = null;
|
|
656
656
|
function resolveRequest() {
|
|
657
657
|
if (currentRequest) return currentRequest;
|
|
@@ -811,7 +811,7 @@ function serializeAsyncIterable(request, task, iterable, iterator) {
|
|
|
811
811
|
erroredTask(request, streamTask, reason),
|
|
812
812
|
enqueueFlush(request),
|
|
813
813
|
"function" === typeof iterator.throw &&
|
|
814
|
-
iterator.throw(reason).then(
|
|
814
|
+
iterator.throw(reason).then(noop$1, noop$1));
|
|
815
815
|
}
|
|
816
816
|
function abortIterable(reason) {
|
|
817
817
|
aborted ||
|
|
@@ -820,7 +820,7 @@ function serializeAsyncIterable(request, task, iterable, iterator) {
|
|
|
820
820
|
erroredTask(request, streamTask, reason),
|
|
821
821
|
enqueueFlush(request),
|
|
822
822
|
"function" === typeof iterator.throw &&
|
|
823
|
-
iterator.throw(reason).then(
|
|
823
|
+
iterator.throw(reason).then(noop$1, noop$1));
|
|
824
824
|
}
|
|
825
825
|
iterable = iterable === iterator;
|
|
826
826
|
var streamTask = createTask(
|
|
@@ -2934,49 +2934,47 @@ function decodeBoundActionMetaData(
|
|
|
2934
2934
|
}
|
|
2935
2935
|
function decodeAction$1(body, serverManifest) {
|
|
2936
2936
|
var formData = new FormData(),
|
|
2937
|
-
|
|
2938
|
-
seenActions = new Set();
|
|
2937
|
+
maybeActionKey = null;
|
|
2939
2938
|
body.forEach(function (value, key) {
|
|
2940
2939
|
key.startsWith("$ACTION_")
|
|
2941
2940
|
? key.startsWith("$ACTION_REF_")
|
|
2942
|
-
?
|
|
2943
|
-
|
|
2944
|
-
(value = "$ACTION_" + key.slice(12) + ":"),
|
|
2945
|
-
(value = decodeBoundActionMetaData(body, serverManifest, value)),
|
|
2946
|
-
(action = loadServerReference(serverManifest, value)))
|
|
2947
|
-
: key.startsWith("$ACTION_ID_") &&
|
|
2948
|
-
!seenActions.has(key) &&
|
|
2949
|
-
(seenActions.add(key),
|
|
2950
|
-
(value = key.slice(11)),
|
|
2951
|
-
(action = loadServerReference(serverManifest, {
|
|
2952
|
-
id: value,
|
|
2953
|
-
bound: null
|
|
2954
|
-
})))
|
|
2941
|
+
? (maybeActionKey = key)
|
|
2942
|
+
: key.startsWith("$ACTION_ID_") && (maybeActionKey = key)
|
|
2955
2943
|
: formData.append(key, value);
|
|
2956
2944
|
});
|
|
2957
|
-
|
|
2958
|
-
|
|
2959
|
-
|
|
2960
|
-
|
|
2961
|
-
|
|
2945
|
+
if (null === maybeActionKey) return null;
|
|
2946
|
+
var actionKey = maybeActionKey,
|
|
2947
|
+
action = null;
|
|
2948
|
+
if (actionKey.startsWith("$ACTION_REF_"))
|
|
2949
|
+
(actionKey = "$ACTION_" + actionKey.slice(12) + ":"),
|
|
2950
|
+
(body = decodeBoundActionMetaData(body, serverManifest, actionKey)),
|
|
2951
|
+
(action = loadServerReference(serverManifest, body));
|
|
2952
|
+
else if (actionKey.startsWith("$ACTION_ID_"))
|
|
2953
|
+
(body = actionKey.slice(11)),
|
|
2954
|
+
(action = loadServerReference(serverManifest, { id: body, bound: null }));
|
|
2955
|
+
else throw Error("Cannot handle action key. This is a bug in React.");
|
|
2956
|
+
return action.then(function (fn) {
|
|
2957
|
+
return fn.bind(null, formData);
|
|
2958
|
+
});
|
|
2962
2959
|
}
|
|
2963
2960
|
function decodeFormState$1(actionResult, body, serverManifest) {
|
|
2964
2961
|
var keyPath = body.get("$ACTION_KEY");
|
|
2965
2962
|
if ("string" !== typeof keyPath) return Promise.resolve(null);
|
|
2966
|
-
var
|
|
2963
|
+
var actionKey = null;
|
|
2967
2964
|
body.forEach(function (value, key) {
|
|
2968
|
-
key.startsWith("$ACTION_REF_") &&
|
|
2969
|
-
((value = "$ACTION_" + key.slice(12) + ":"),
|
|
2970
|
-
(metaData = decodeBoundActionMetaData(body, serverManifest, value)));
|
|
2965
|
+
key.startsWith("$ACTION_REF_") && (actionKey = key);
|
|
2971
2966
|
});
|
|
2972
|
-
if (null ===
|
|
2973
|
-
var
|
|
2974
|
-
|
|
2967
|
+
if (null === actionKey) return Promise.resolve(null);
|
|
2968
|
+
var formFieldPrefix = "$ACTION_" + actionKey.slice(12) + ":";
|
|
2969
|
+
body = decodeBoundActionMetaData(body, serverManifest, formFieldPrefix);
|
|
2970
|
+
var referenceId = body.id;
|
|
2971
|
+
return Promise.resolve(body.bound).then(function (bound) {
|
|
2975
2972
|
return null === bound
|
|
2976
2973
|
? null
|
|
2977
2974
|
: [actionResult, keyPath, referenceId, bound.length - 1];
|
|
2978
2975
|
});
|
|
2979
2976
|
}
|
|
2977
|
+
function noop() {}
|
|
2980
2978
|
var serverManifest = {};
|
|
2981
2979
|
exports.createClientReference = function (id, exportName, bundles, importMap) {
|
|
2982
2980
|
return {
|
|
@@ -3036,7 +3034,7 @@ exports.decodeReplyFromAsyncIterable = function (iterable, options) {
|
|
|
3036
3034
|
function error(reason) {
|
|
3037
3035
|
reportGlobalError(response, reason);
|
|
3038
3036
|
"function" === typeof iterator.throw &&
|
|
3039
|
-
iterator.throw(reason).then(
|
|
3037
|
+
iterator.throw(reason).then(noop, noop);
|
|
3040
3038
|
}
|
|
3041
3039
|
var iterator = iterable[ASYNC_ITERATOR](),
|
|
3042
3040
|
response = createResponse(
|
|
@@ -3083,8 +3081,8 @@ exports.renderToReadableStream = function (model, options) {
|
|
|
3083
3081
|
options ? options.temporaryReferences : void 0,
|
|
3084
3082
|
void 0,
|
|
3085
3083
|
void 0,
|
|
3086
|
-
noop,
|
|
3087
|
-
noop
|
|
3084
|
+
noop$1,
|
|
3085
|
+
noop$1
|
|
3088
3086
|
);
|
|
3089
3087
|
if (options && options.signal) {
|
|
3090
3088
|
var signal = options.signal;
|
|
@@ -872,7 +872,7 @@
|
|
|
872
872
|
erroredTask(request, streamTask, reason),
|
|
873
873
|
enqueueFlush(request),
|
|
874
874
|
"function" === typeof iterator.throw &&
|
|
875
|
-
iterator.throw(reason).then(
|
|
875
|
+
iterator.throw(reason).then(noop, noop));
|
|
876
876
|
}
|
|
877
877
|
function abortIterable(reason) {
|
|
878
878
|
aborted ||
|
|
@@ -881,7 +881,7 @@
|
|
|
881
881
|
erroredTask(request, streamTask, reason),
|
|
882
882
|
enqueueFlush(request),
|
|
883
883
|
"function" === typeof iterator.throw &&
|
|
884
|
-
iterator.throw(reason).then(
|
|
884
|
+
iterator.throw(reason).then(noop, noop));
|
|
885
885
|
}
|
|
886
886
|
var isIterator = iterable === iterator,
|
|
887
887
|
streamTask = createTask(
|
|
@@ -3802,44 +3802,44 @@
|
|
|
3802
3802
|
}
|
|
3803
3803
|
function decodeAction$1(body, serverManifest) {
|
|
3804
3804
|
var formData = new FormData(),
|
|
3805
|
-
|
|
3806
|
-
seenActions = new Set();
|
|
3805
|
+
maybeActionKey = null;
|
|
3807
3806
|
body.forEach(function (value, key) {
|
|
3808
3807
|
key.startsWith("$ACTION_")
|
|
3809
3808
|
? key.startsWith("$ACTION_REF_")
|
|
3810
|
-
?
|
|
3811
|
-
|
|
3812
|
-
(value = "$ACTION_" + key.slice(12) + ":"),
|
|
3813
|
-
(value = decodeBoundActionMetaData(body, serverManifest, value)),
|
|
3814
|
-
(action = loadServerReference(serverManifest, value)))
|
|
3815
|
-
: key.startsWith("$ACTION_ID_") &&
|
|
3816
|
-
!seenActions.has(key) &&
|
|
3817
|
-
(seenActions.add(key),
|
|
3818
|
-
(value = key.slice(11)),
|
|
3819
|
-
(action = loadServerReference(serverManifest, {
|
|
3820
|
-
id: value,
|
|
3821
|
-
bound: null
|
|
3822
|
-
})))
|
|
3809
|
+
? (maybeActionKey = key)
|
|
3810
|
+
: key.startsWith("$ACTION_ID_") && (maybeActionKey = key)
|
|
3823
3811
|
: formData.append(key, value);
|
|
3824
3812
|
});
|
|
3825
|
-
|
|
3826
|
-
|
|
3827
|
-
|
|
3828
|
-
|
|
3829
|
-
|
|
3813
|
+
if (null === maybeActionKey) return null;
|
|
3814
|
+
var actionKey = maybeActionKey,
|
|
3815
|
+
action = null;
|
|
3816
|
+
if (actionKey.startsWith("$ACTION_REF_"))
|
|
3817
|
+
(actionKey = "$ACTION_" + actionKey.slice(12) + ":"),
|
|
3818
|
+
(body = decodeBoundActionMetaData(body, serverManifest, actionKey)),
|
|
3819
|
+
(action = loadServerReference(serverManifest, body));
|
|
3820
|
+
else if (actionKey.startsWith("$ACTION_ID_"))
|
|
3821
|
+
(body = actionKey.slice(11)),
|
|
3822
|
+
(action = loadServerReference(serverManifest, {
|
|
3823
|
+
id: body,
|
|
3824
|
+
bound: null
|
|
3825
|
+
}));
|
|
3826
|
+
else throw Error("Cannot handle action key. This is a bug in React.");
|
|
3827
|
+
return action.then(function (fn) {
|
|
3828
|
+
return fn.bind(null, formData);
|
|
3829
|
+
});
|
|
3830
3830
|
}
|
|
3831
3831
|
function decodeFormState$1(actionResult, body, serverManifest) {
|
|
3832
3832
|
var keyPath = body.get("$ACTION_KEY");
|
|
3833
3833
|
if ("string" !== typeof keyPath) return Promise.resolve(null);
|
|
3834
|
-
var
|
|
3834
|
+
var actionKey = null;
|
|
3835
3835
|
body.forEach(function (value, key) {
|
|
3836
|
-
key.startsWith("$ACTION_REF_") &&
|
|
3837
|
-
((value = "$ACTION_" + key.slice(12) + ":"),
|
|
3838
|
-
(metaData = decodeBoundActionMetaData(body, serverManifest, value)));
|
|
3836
|
+
key.startsWith("$ACTION_REF_") && (actionKey = key);
|
|
3839
3837
|
});
|
|
3840
|
-
if (null ===
|
|
3841
|
-
var
|
|
3842
|
-
|
|
3838
|
+
if (null === actionKey) return Promise.resolve(null);
|
|
3839
|
+
var formFieldPrefix = "$ACTION_" + actionKey.slice(12) + ":";
|
|
3840
|
+
body = decodeBoundActionMetaData(body, serverManifest, formFieldPrefix);
|
|
3841
|
+
var referenceId = body.id;
|
|
3842
|
+
return Promise.resolve(body.bound).then(function (bound) {
|
|
3843
3843
|
return null === bound
|
|
3844
3844
|
? null
|
|
3845
3845
|
: [actionResult, keyPath, referenceId, bound.length - 1];
|
|
@@ -4352,20 +4352,58 @@
|
|
|
4352
4352
|
return options;
|
|
4353
4353
|
};
|
|
4354
4354
|
exports.decodeReplyFromBusboy = function (busboyStream, options) {
|
|
4355
|
-
|
|
4355
|
+
function flush() {
|
|
4356
|
+
for (; null !== head; ) {
|
|
4357
|
+
var current = head;
|
|
4358
|
+
if (!current.complete) return;
|
|
4359
|
+
try {
|
|
4360
|
+
var response = response$jscomp$0,
|
|
4361
|
+
key = current.name,
|
|
4362
|
+
handle = current.file,
|
|
4363
|
+
blob = new Blob(handle.chunks, { type: handle.mime }),
|
|
4364
|
+
backingStore = response._formData;
|
|
4365
|
+
response = key;
|
|
4366
|
+
backingStore.data.append(response, blob, handle.filename);
|
|
4367
|
+
var keys = backingStore.keys;
|
|
4368
|
+
null === keys
|
|
4369
|
+
? ((backingStore.keys = Array.from(backingStore.data.keys())),
|
|
4370
|
+
(backingStore.keyPointer = 0))
|
|
4371
|
+
: keys.push(response);
|
|
4372
|
+
var queuedFields = current.queuedFields;
|
|
4373
|
+
if (null !== queuedFields)
|
|
4374
|
+
for (response = 0; response < queuedFields.length; response += 2)
|
|
4375
|
+
resolveField(
|
|
4376
|
+
response$jscomp$0,
|
|
4377
|
+
queuedFields[response],
|
|
4378
|
+
queuedFields[response + 1]
|
|
4379
|
+
);
|
|
4380
|
+
} catch (error) {
|
|
4381
|
+
busboyStream.destroy(error);
|
|
4382
|
+
return;
|
|
4383
|
+
}
|
|
4384
|
+
head = current.next;
|
|
4385
|
+
}
|
|
4386
|
+
tail = null;
|
|
4387
|
+
bodyFinished && !closed && ((closed = !0), close(response$jscomp$0));
|
|
4388
|
+
}
|
|
4389
|
+
var response$jscomp$0 = createResponse(
|
|
4356
4390
|
serverManifest,
|
|
4357
4391
|
"",
|
|
4358
4392
|
options ? options.temporaryReferences : void 0,
|
|
4359
4393
|
void 0,
|
|
4360
4394
|
options ? options.arraySizeLimit : void 0
|
|
4361
4395
|
),
|
|
4362
|
-
|
|
4363
|
-
|
|
4396
|
+
head = null,
|
|
4397
|
+
tail = null,
|
|
4398
|
+
bodyFinished = !1,
|
|
4399
|
+
closed = !1;
|
|
4364
4400
|
busboyStream.on("field", function (name, value) {
|
|
4365
|
-
if (
|
|
4401
|
+
if (null !== tail)
|
|
4402
|
+
null === tail.queuedFields && (tail.queuedFields = []),
|
|
4403
|
+
tail.queuedFields.push(name, value);
|
|
4366
4404
|
else
|
|
4367
4405
|
try {
|
|
4368
|
-
resolveField(response, name, value);
|
|
4406
|
+
resolveField(response$jscomp$0, name, value);
|
|
4369
4407
|
} catch (error) {
|
|
4370
4408
|
busboyStream.destroy(error);
|
|
4371
4409
|
}
|
|
@@ -4380,46 +4418,45 @@
|
|
|
4380
4418
|
)
|
|
4381
4419
|
);
|
|
4382
4420
|
else {
|
|
4383
|
-
|
|
4384
|
-
|
|
4421
|
+
var file = { chunks: [], filename: filename, mime: mimeType },
|
|
4422
|
+
pendingFile = {
|
|
4423
|
+
name: name,
|
|
4424
|
+
file: file,
|
|
4425
|
+
complete: !1,
|
|
4426
|
+
queuedFields: null,
|
|
4427
|
+
next: null
|
|
4428
|
+
};
|
|
4429
|
+
null === tail ? (head = pendingFile) : (tail.next = pendingFile);
|
|
4430
|
+
tail = pendingFile;
|
|
4385
4431
|
value.on("data", function (chunk) {
|
|
4386
|
-
JSCompiler_object_inline_chunks_170.push(chunk);
|
|
4387
|
-
});
|
|
4388
|
-
value.on("end", function () {
|
|
4389
4432
|
try {
|
|
4390
|
-
|
|
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);
|
|
4400
|
-
pendingFiles--;
|
|
4401
|
-
if (0 === pendingFiles) {
|
|
4402
|
-
for (blob = 0; blob < queuedFields.length; blob += 2)
|
|
4403
|
-
resolveField(
|
|
4404
|
-
response,
|
|
4405
|
-
queuedFields[blob],
|
|
4406
|
-
queuedFields[blob + 1]
|
|
4407
|
-
);
|
|
4408
|
-
queuedFields.length = 0;
|
|
4409
|
-
}
|
|
4433
|
+
file.chunks.push(chunk);
|
|
4410
4434
|
} catch (error) {
|
|
4411
4435
|
busboyStream.destroy(error);
|
|
4412
4436
|
}
|
|
4413
4437
|
});
|
|
4438
|
+
value.on("error", function (error) {
|
|
4439
|
+
busboyStream.destroy(error);
|
|
4440
|
+
});
|
|
4441
|
+
value.on("end", function () {
|
|
4442
|
+
pendingFile.complete = !0;
|
|
4443
|
+
flush();
|
|
4444
|
+
});
|
|
4414
4445
|
}
|
|
4415
4446
|
});
|
|
4416
4447
|
busboyStream.on("finish", function () {
|
|
4417
|
-
|
|
4448
|
+
bodyFinished = !0;
|
|
4449
|
+
flush();
|
|
4450
|
+
closed ||
|
|
4451
|
+
reportGlobalError(
|
|
4452
|
+
response$jscomp$0,
|
|
4453
|
+
Error("Reply finished with incomplete file part.")
|
|
4454
|
+
);
|
|
4418
4455
|
});
|
|
4419
4456
|
busboyStream.on("error", function (err) {
|
|
4420
|
-
reportGlobalError(response, err);
|
|
4457
|
+
reportGlobalError(response$jscomp$0, err);
|
|
4421
4458
|
});
|
|
4422
|
-
return getChunk(response, 0);
|
|
4459
|
+
return getChunk(response$jscomp$0, 0);
|
|
4423
4460
|
};
|
|
4424
4461
|
exports.loadServerAction = function (id) {
|
|
4425
4462
|
var reference = resolveServerReference(serverManifest, id);
|
|
@@ -804,7 +804,7 @@ function serializeAsyncIterable(request, task, iterable, iterator) {
|
|
|
804
804
|
erroredTask(request, streamTask, reason),
|
|
805
805
|
enqueueFlush(request),
|
|
806
806
|
"function" === typeof iterator.throw &&
|
|
807
|
-
iterator.throw(reason).then(
|
|
807
|
+
iterator.throw(reason).then(noop, noop));
|
|
808
808
|
}
|
|
809
809
|
function abortIterable(reason) {
|
|
810
810
|
aborted ||
|
|
@@ -813,7 +813,7 @@ function serializeAsyncIterable(request, task, iterable, iterator) {
|
|
|
813
813
|
erroredTask(request, streamTask, reason),
|
|
814
814
|
enqueueFlush(request),
|
|
815
815
|
"function" === typeof iterator.throw &&
|
|
816
|
-
iterator.throw(reason).then(
|
|
816
|
+
iterator.throw(reason).then(noop, noop));
|
|
817
817
|
}
|
|
818
818
|
iterable = iterable === iterator;
|
|
819
819
|
var streamTask = createTask(
|
|
@@ -2966,44 +2966,41 @@ function decodeBoundActionMetaData(
|
|
|
2966
2966
|
}
|
|
2967
2967
|
function decodeAction$1(body, serverManifest) {
|
|
2968
2968
|
var formData = new FormData(),
|
|
2969
|
-
|
|
2970
|
-
seenActions = new Set();
|
|
2969
|
+
maybeActionKey = null;
|
|
2971
2970
|
body.forEach(function (value, key) {
|
|
2972
2971
|
key.startsWith("$ACTION_")
|
|
2973
2972
|
? key.startsWith("$ACTION_REF_")
|
|
2974
|
-
?
|
|
2975
|
-
|
|
2976
|
-
(value = "$ACTION_" + key.slice(12) + ":"),
|
|
2977
|
-
(value = decodeBoundActionMetaData(body, serverManifest, value)),
|
|
2978
|
-
(action = loadServerReference(serverManifest, value)))
|
|
2979
|
-
: key.startsWith("$ACTION_ID_") &&
|
|
2980
|
-
!seenActions.has(key) &&
|
|
2981
|
-
(seenActions.add(key),
|
|
2982
|
-
(value = key.slice(11)),
|
|
2983
|
-
(action = loadServerReference(serverManifest, {
|
|
2984
|
-
id: value,
|
|
2985
|
-
bound: null
|
|
2986
|
-
})))
|
|
2973
|
+
? (maybeActionKey = key)
|
|
2974
|
+
: key.startsWith("$ACTION_ID_") && (maybeActionKey = key)
|
|
2987
2975
|
: formData.append(key, value);
|
|
2988
2976
|
});
|
|
2989
|
-
|
|
2990
|
-
|
|
2991
|
-
|
|
2992
|
-
|
|
2993
|
-
|
|
2977
|
+
if (null === maybeActionKey) return null;
|
|
2978
|
+
var actionKey = maybeActionKey,
|
|
2979
|
+
action = null;
|
|
2980
|
+
if (actionKey.startsWith("$ACTION_REF_"))
|
|
2981
|
+
(actionKey = "$ACTION_" + actionKey.slice(12) + ":"),
|
|
2982
|
+
(body = decodeBoundActionMetaData(body, serverManifest, actionKey)),
|
|
2983
|
+
(action = loadServerReference(serverManifest, body));
|
|
2984
|
+
else if (actionKey.startsWith("$ACTION_ID_"))
|
|
2985
|
+
(body = actionKey.slice(11)),
|
|
2986
|
+
(action = loadServerReference(serverManifest, { id: body, bound: null }));
|
|
2987
|
+
else throw Error("Cannot handle action key. This is a bug in React.");
|
|
2988
|
+
return action.then(function (fn) {
|
|
2989
|
+
return fn.bind(null, formData);
|
|
2990
|
+
});
|
|
2994
2991
|
}
|
|
2995
2992
|
function decodeFormState$1(actionResult, body, serverManifest) {
|
|
2996
2993
|
var keyPath = body.get("$ACTION_KEY");
|
|
2997
2994
|
if ("string" !== typeof keyPath) return Promise.resolve(null);
|
|
2998
|
-
var
|
|
2995
|
+
var actionKey = null;
|
|
2999
2996
|
body.forEach(function (value, key) {
|
|
3000
|
-
key.startsWith("$ACTION_REF_") &&
|
|
3001
|
-
((value = "$ACTION_" + key.slice(12) + ":"),
|
|
3002
|
-
(metaData = decodeBoundActionMetaData(body, serverManifest, value)));
|
|
2997
|
+
key.startsWith("$ACTION_REF_") && (actionKey = key);
|
|
3003
2998
|
});
|
|
3004
|
-
if (null ===
|
|
3005
|
-
var
|
|
3006
|
-
|
|
2999
|
+
if (null === actionKey) return Promise.resolve(null);
|
|
3000
|
+
var formFieldPrefix = "$ACTION_" + actionKey.slice(12) + ":";
|
|
3001
|
+
body = decodeBoundActionMetaData(body, serverManifest, formFieldPrefix);
|
|
3002
|
+
var referenceId = body.id;
|
|
3003
|
+
return Promise.resolve(body.bound).then(function (bound) {
|
|
3007
3004
|
return null === bound
|
|
3008
3005
|
? null
|
|
3009
3006
|
: [actionResult, keyPath, referenceId, bound.length - 1];
|
|
@@ -3070,6 +3067,43 @@ exports.decodeReply = function (body, options) {
|
|
|
3070
3067
|
return options;
|
|
3071
3068
|
};
|
|
3072
3069
|
exports.decodeReplyFromBusboy = function (busboyStream, options) {
|
|
3070
|
+
function flush() {
|
|
3071
|
+
for (; null !== head; ) {
|
|
3072
|
+
var current = head;
|
|
3073
|
+
if (!current.complete) return;
|
|
3074
|
+
try {
|
|
3075
|
+
var key = current.name,
|
|
3076
|
+
handle = current.file,
|
|
3077
|
+
blob = new Blob(handle.chunks, { type: handle.mime }),
|
|
3078
|
+
backingStore = response._formData,
|
|
3079
|
+
key$jscomp$0 = key;
|
|
3080
|
+
backingStore.data.append(key$jscomp$0, blob, handle.filename);
|
|
3081
|
+
var keys = backingStore.keys;
|
|
3082
|
+
null === keys
|
|
3083
|
+
? ((backingStore.keys = Array.from(backingStore.data.keys())),
|
|
3084
|
+
(backingStore.keyPointer = 0))
|
|
3085
|
+
: keys.push(key$jscomp$0);
|
|
3086
|
+
var queuedFields = current.queuedFields;
|
|
3087
|
+
if (null !== queuedFields)
|
|
3088
|
+
for (
|
|
3089
|
+
key$jscomp$0 = 0;
|
|
3090
|
+
key$jscomp$0 < queuedFields.length;
|
|
3091
|
+
key$jscomp$0 += 2
|
|
3092
|
+
)
|
|
3093
|
+
resolveField(
|
|
3094
|
+
response,
|
|
3095
|
+
queuedFields[key$jscomp$0],
|
|
3096
|
+
queuedFields[key$jscomp$0 + 1]
|
|
3097
|
+
);
|
|
3098
|
+
} catch (error) {
|
|
3099
|
+
busboyStream.destroy(error);
|
|
3100
|
+
return;
|
|
3101
|
+
}
|
|
3102
|
+
head = current.next;
|
|
3103
|
+
}
|
|
3104
|
+
tail = null;
|
|
3105
|
+
bodyFinished && !closed && ((closed = !0), close(response));
|
|
3106
|
+
}
|
|
3073
3107
|
var response = createResponse(
|
|
3074
3108
|
serverManifest,
|
|
3075
3109
|
"",
|
|
@@ -3077,10 +3111,14 @@ exports.decodeReplyFromBusboy = function (busboyStream, options) {
|
|
|
3077
3111
|
void 0,
|
|
3078
3112
|
options ? options.arraySizeLimit : void 0
|
|
3079
3113
|
),
|
|
3080
|
-
|
|
3081
|
-
|
|
3114
|
+
head = null,
|
|
3115
|
+
tail = null,
|
|
3116
|
+
bodyFinished = !1,
|
|
3117
|
+
closed = !1;
|
|
3082
3118
|
busboyStream.on("field", function (name, value) {
|
|
3083
|
-
if (
|
|
3119
|
+
if (null !== tail)
|
|
3120
|
+
null === tail.queuedFields && (tail.queuedFields = []),
|
|
3121
|
+
tail.queuedFields.push(name, value);
|
|
3084
3122
|
else
|
|
3085
3123
|
try {
|
|
3086
3124
|
resolveField(response, name, value);
|
|
@@ -3098,41 +3136,40 @@ exports.decodeReplyFromBusboy = function (busboyStream, options) {
|
|
|
3098
3136
|
)
|
|
3099
3137
|
);
|
|
3100
3138
|
else {
|
|
3101
|
-
|
|
3102
|
-
|
|
3139
|
+
var file = { chunks: [], filename: filename, mime: mimeType },
|
|
3140
|
+
pendingFile = {
|
|
3141
|
+
name: name,
|
|
3142
|
+
file: file,
|
|
3143
|
+
complete: !1,
|
|
3144
|
+
queuedFields: null,
|
|
3145
|
+
next: null
|
|
3146
|
+
};
|
|
3147
|
+
null === tail ? (head = pendingFile) : (tail.next = pendingFile);
|
|
3148
|
+
tail = pendingFile;
|
|
3103
3149
|
value.on("data", function (chunk) {
|
|
3104
|
-
JSCompiler_object_inline_chunks_250.push(chunk);
|
|
3105
|
-
});
|
|
3106
|
-
value.on("end", function () {
|
|
3107
3150
|
try {
|
|
3108
|
-
|
|
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);
|
|
3118
|
-
pendingFiles--;
|
|
3119
|
-
if (0 === pendingFiles) {
|
|
3120
|
-
for (blob = 0; blob < queuedFields.length; blob += 2)
|
|
3121
|
-
resolveField(
|
|
3122
|
-
response,
|
|
3123
|
-
queuedFields[blob],
|
|
3124
|
-
queuedFields[blob + 1]
|
|
3125
|
-
);
|
|
3126
|
-
queuedFields.length = 0;
|
|
3127
|
-
}
|
|
3151
|
+
file.chunks.push(chunk);
|
|
3128
3152
|
} catch (error) {
|
|
3129
3153
|
busboyStream.destroy(error);
|
|
3130
3154
|
}
|
|
3131
3155
|
});
|
|
3156
|
+
value.on("error", function (error) {
|
|
3157
|
+
busboyStream.destroy(error);
|
|
3158
|
+
});
|
|
3159
|
+
value.on("end", function () {
|
|
3160
|
+
pendingFile.complete = !0;
|
|
3161
|
+
flush();
|
|
3162
|
+
});
|
|
3132
3163
|
}
|
|
3133
3164
|
});
|
|
3134
3165
|
busboyStream.on("finish", function () {
|
|
3135
|
-
|
|
3166
|
+
bodyFinished = !0;
|
|
3167
|
+
flush();
|
|
3168
|
+
closed ||
|
|
3169
|
+
reportGlobalError(
|
|
3170
|
+
response,
|
|
3171
|
+
Error("Reply finished with incomplete file part.")
|
|
3172
|
+
);
|
|
3136
3173
|
});
|
|
3137
3174
|
busboyStream.on("error", function (err) {
|
|
3138
3175
|
reportGlobalError(response, err);
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
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.9",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react"
|
|
7
7
|
],
|
|
8
8
|
"homepage": "https://reactjs.org/",
|
|
9
|
-
"bugs": "https://github.com/
|
|
9
|
+
"bugs": "https://github.com/react/react/issues",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"files": [
|
|
12
12
|
"LICENSE",
|
|
@@ -71,14 +71,14 @@
|
|
|
71
71
|
"main": "index.js",
|
|
72
72
|
"repository": {
|
|
73
73
|
"type": "git",
|
|
74
|
-
"url": "https://github.com/
|
|
74
|
+
"url": "https://github.com/react/react.git",
|
|
75
75
|
"directory": "packages/react-server-dom-parcel"
|
|
76
76
|
},
|
|
77
77
|
"engines": {
|
|
78
78
|
"node": ">=0.10.0"
|
|
79
79
|
},
|
|
80
80
|
"peerDependencies": {
|
|
81
|
-
"react": "^19.1.
|
|
82
|
-
"react-dom": "^19.1.
|
|
81
|
+
"react": "^19.1.9",
|
|
82
|
+
"react-dom": "^19.1.9"
|
|
83
83
|
}
|
|
84
84
|
}
|