react-server-dom-parcel 19.2.6 → 19.2.8
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 +31 -31
- package/cjs/react-server-dom-parcel-server.edge.production.js +28 -31
- package/cjs/react-server-dom-parcel-server.node.development.js +101 -64
- package/cjs/react-server-dom-parcel-server.node.production.js +99 -62
- package/package.json +5 -5
|
@@ -4800,10 +4800,10 @@
|
|
|
4800
4800
|
return hook.checkDCE ? !0 : !1;
|
|
4801
4801
|
})({
|
|
4802
4802
|
bundleType: 1,
|
|
4803
|
-
version: "19.2.
|
|
4803
|
+
version: "19.2.8",
|
|
4804
4804
|
rendererPackageName: "react-server-dom-parcel",
|
|
4805
4805
|
currentDispatcherRef: ReactSharedInternals,
|
|
4806
|
-
reconcilerVersion: "19.2.
|
|
4806
|
+
reconcilerVersion: "19.2.8",
|
|
4807
4807
|
getCurrentComponentInfo: function () {
|
|
4808
4808
|
return currentOwnerInDEV;
|
|
4809
4809
|
}
|
|
@@ -1321,7 +1321,7 @@
|
|
|
1321
1321
|
erroredTask(request, streamTask, reason),
|
|
1322
1322
|
enqueueFlush(request),
|
|
1323
1323
|
"function" === typeof iterator.throw &&
|
|
1324
|
-
iterator.throw(reason).then(
|
|
1324
|
+
iterator.throw(reason).then(noop, noop));
|
|
1325
1325
|
}
|
|
1326
1326
|
function abortIterable() {
|
|
1327
1327
|
if (0 === streamTask.status) {
|
|
@@ -1335,7 +1335,7 @@
|
|
|
1335
1335
|
: (erroredTask(request, streamTask, signal.reason),
|
|
1336
1336
|
enqueueFlush(request));
|
|
1337
1337
|
"function" === typeof iterator.throw &&
|
|
1338
|
-
iterator.throw(reason).then(
|
|
1338
|
+
iterator.throw(reason).then(noop, noop);
|
|
1339
1339
|
}
|
|
1340
1340
|
}
|
|
1341
1341
|
var isIterator = iterable === iterator,
|
|
@@ -4849,44 +4849,44 @@
|
|
|
4849
4849
|
}
|
|
4850
4850
|
function decodeAction$1(body, serverManifest) {
|
|
4851
4851
|
var formData = new FormData(),
|
|
4852
|
-
|
|
4853
|
-
seenActions = new Set();
|
|
4852
|
+
maybeActionKey = null;
|
|
4854
4853
|
body.forEach(function (value, key) {
|
|
4855
4854
|
key.startsWith("$ACTION_")
|
|
4856
4855
|
? key.startsWith("$ACTION_REF_")
|
|
4857
|
-
?
|
|
4858
|
-
|
|
4859
|
-
(value = "$ACTION_" + key.slice(12) + ":"),
|
|
4860
|
-
(value = decodeBoundActionMetaData(body, serverManifest, value)),
|
|
4861
|
-
(action = loadServerReference(serverManifest, value)))
|
|
4862
|
-
: key.startsWith("$ACTION_ID_") &&
|
|
4863
|
-
!seenActions.has(key) &&
|
|
4864
|
-
(seenActions.add(key),
|
|
4865
|
-
(value = key.slice(11)),
|
|
4866
|
-
(action = loadServerReference(serverManifest, {
|
|
4867
|
-
id: value,
|
|
4868
|
-
bound: null
|
|
4869
|
-
})))
|
|
4856
|
+
? (maybeActionKey = key)
|
|
4857
|
+
: key.startsWith("$ACTION_ID_") && (maybeActionKey = key)
|
|
4870
4858
|
: formData.append(key, value);
|
|
4871
4859
|
});
|
|
4872
|
-
|
|
4873
|
-
|
|
4874
|
-
|
|
4875
|
-
|
|
4876
|
-
|
|
4860
|
+
if (null === maybeActionKey) return null;
|
|
4861
|
+
var actionKey = maybeActionKey,
|
|
4862
|
+
action = null;
|
|
4863
|
+
if (actionKey.startsWith("$ACTION_REF_"))
|
|
4864
|
+
(actionKey = "$ACTION_" + actionKey.slice(12) + ":"),
|
|
4865
|
+
(body = decodeBoundActionMetaData(body, serverManifest, actionKey)),
|
|
4866
|
+
(action = loadServerReference(serverManifest, body));
|
|
4867
|
+
else if (actionKey.startsWith("$ACTION_ID_"))
|
|
4868
|
+
(body = actionKey.slice(11)),
|
|
4869
|
+
(action = loadServerReference(serverManifest, {
|
|
4870
|
+
id: body,
|
|
4871
|
+
bound: null
|
|
4872
|
+
}));
|
|
4873
|
+
else throw Error("Cannot handle action key. This is a bug in React.");
|
|
4874
|
+
return action.then(function (fn) {
|
|
4875
|
+
return fn.bind(null, formData);
|
|
4876
|
+
});
|
|
4877
4877
|
}
|
|
4878
4878
|
function decodeFormState$1(actionResult, body, serverManifest) {
|
|
4879
4879
|
var keyPath = body.get("$ACTION_KEY");
|
|
4880
4880
|
if ("string" !== typeof keyPath) return Promise.resolve(null);
|
|
4881
|
-
var
|
|
4881
|
+
var actionKey = null;
|
|
4882
4882
|
body.forEach(function (value, key) {
|
|
4883
|
-
key.startsWith("$ACTION_REF_") &&
|
|
4884
|
-
((value = "$ACTION_" + key.slice(12) + ":"),
|
|
4885
|
-
(metaData = decodeBoundActionMetaData(body, serverManifest, value)));
|
|
4883
|
+
key.startsWith("$ACTION_REF_") && (actionKey = key);
|
|
4886
4884
|
});
|
|
4887
|
-
if (null ===
|
|
4888
|
-
var
|
|
4889
|
-
|
|
4885
|
+
if (null === actionKey) return Promise.resolve(null);
|
|
4886
|
+
var formFieldPrefix = "$ACTION_" + actionKey.slice(12) + ":";
|
|
4887
|
+
body = decodeBoundActionMetaData(body, serverManifest, formFieldPrefix);
|
|
4888
|
+
var referenceId = body.id;
|
|
4889
|
+
return Promise.resolve(body.bound).then(function (bound) {
|
|
4890
4890
|
return null === bound
|
|
4891
4891
|
? null
|
|
4892
4892
|
: [actionResult, keyPath, referenceId, bound.length - 1];
|
|
@@ -929,7 +929,7 @@ function serializeAsyncIterable(request, task, iterable, iterator) {
|
|
|
929
929
|
erroredTask(request, streamTask, reason),
|
|
930
930
|
enqueueFlush(request),
|
|
931
931
|
"function" === typeof iterator.throw &&
|
|
932
|
-
iterator.throw(reason).then(
|
|
932
|
+
iterator.throw(reason).then(noop, noop));
|
|
933
933
|
}
|
|
934
934
|
function abortIterable() {
|
|
935
935
|
if (0 === streamTask.status) {
|
|
@@ -943,7 +943,7 @@ function serializeAsyncIterable(request, task, iterable, iterator) {
|
|
|
943
943
|
: (erroredTask(request, streamTask, signal.reason),
|
|
944
944
|
enqueueFlush(request));
|
|
945
945
|
"function" === typeof iterator.throw &&
|
|
946
|
-
iterator.throw(reason).then(
|
|
946
|
+
iterator.throw(reason).then(noop, noop);
|
|
947
947
|
}
|
|
948
948
|
}
|
|
949
949
|
iterable = iterable === iterator;
|
|
@@ -3167,44 +3167,41 @@ function decodeBoundActionMetaData(
|
|
|
3167
3167
|
}
|
|
3168
3168
|
function decodeAction$1(body, serverManifest) {
|
|
3169
3169
|
var formData = new FormData(),
|
|
3170
|
-
|
|
3171
|
-
seenActions = new Set();
|
|
3170
|
+
maybeActionKey = null;
|
|
3172
3171
|
body.forEach(function (value, key) {
|
|
3173
3172
|
key.startsWith("$ACTION_")
|
|
3174
3173
|
? key.startsWith("$ACTION_REF_")
|
|
3175
|
-
?
|
|
3176
|
-
|
|
3177
|
-
(value = "$ACTION_" + key.slice(12) + ":"),
|
|
3178
|
-
(value = decodeBoundActionMetaData(body, serverManifest, value)),
|
|
3179
|
-
(action = loadServerReference(serverManifest, value)))
|
|
3180
|
-
: key.startsWith("$ACTION_ID_") &&
|
|
3181
|
-
!seenActions.has(key) &&
|
|
3182
|
-
(seenActions.add(key),
|
|
3183
|
-
(value = key.slice(11)),
|
|
3184
|
-
(action = loadServerReference(serverManifest, {
|
|
3185
|
-
id: value,
|
|
3186
|
-
bound: null
|
|
3187
|
-
})))
|
|
3174
|
+
? (maybeActionKey = key)
|
|
3175
|
+
: key.startsWith("$ACTION_ID_") && (maybeActionKey = key)
|
|
3188
3176
|
: formData.append(key, value);
|
|
3189
3177
|
});
|
|
3190
|
-
|
|
3191
|
-
|
|
3192
|
-
|
|
3193
|
-
|
|
3194
|
-
|
|
3178
|
+
if (null === maybeActionKey) return null;
|
|
3179
|
+
var actionKey = maybeActionKey,
|
|
3180
|
+
action = null;
|
|
3181
|
+
if (actionKey.startsWith("$ACTION_REF_"))
|
|
3182
|
+
(actionKey = "$ACTION_" + actionKey.slice(12) + ":"),
|
|
3183
|
+
(body = decodeBoundActionMetaData(body, serverManifest, actionKey)),
|
|
3184
|
+
(action = loadServerReference(serverManifest, body));
|
|
3185
|
+
else if (actionKey.startsWith("$ACTION_ID_"))
|
|
3186
|
+
(body = actionKey.slice(11)),
|
|
3187
|
+
(action = loadServerReference(serverManifest, { id: body, bound: null }));
|
|
3188
|
+
else throw Error("Cannot handle action key. This is a bug in React.");
|
|
3189
|
+
return action.then(function (fn) {
|
|
3190
|
+
return fn.bind(null, formData);
|
|
3191
|
+
});
|
|
3195
3192
|
}
|
|
3196
3193
|
function decodeFormState$1(actionResult, body, serverManifest) {
|
|
3197
3194
|
var keyPath = body.get("$ACTION_KEY");
|
|
3198
3195
|
if ("string" !== typeof keyPath) return Promise.resolve(null);
|
|
3199
|
-
var
|
|
3196
|
+
var actionKey = null;
|
|
3200
3197
|
body.forEach(function (value, key) {
|
|
3201
|
-
key.startsWith("$ACTION_REF_") &&
|
|
3202
|
-
((value = "$ACTION_" + key.slice(12) + ":"),
|
|
3203
|
-
(metaData = decodeBoundActionMetaData(body, serverManifest, value)));
|
|
3198
|
+
key.startsWith("$ACTION_REF_") && (actionKey = key);
|
|
3204
3199
|
});
|
|
3205
|
-
if (null ===
|
|
3206
|
-
var
|
|
3207
|
-
|
|
3200
|
+
if (null === actionKey) return Promise.resolve(null);
|
|
3201
|
+
var formFieldPrefix = "$ACTION_" + actionKey.slice(12) + ":";
|
|
3202
|
+
body = decodeBoundActionMetaData(body, serverManifest, formFieldPrefix);
|
|
3203
|
+
var referenceId = body.id;
|
|
3204
|
+
return Promise.resolve(body.bound).then(function (bound) {
|
|
3208
3205
|
return null === bound
|
|
3209
3206
|
? null
|
|
3210
3207
|
: [actionResult, keyPath, referenceId, bound.length - 1];
|
|
@@ -35,6 +35,7 @@
|
|
|
35
35
|
if (hasOwnProperty.call(moduleExports, metadata[1]))
|
|
36
36
|
return moduleExports[metadata[1]];
|
|
37
37
|
}
|
|
38
|
+
function noop() {}
|
|
38
39
|
function getIteratorFn(maybeIterable) {
|
|
39
40
|
if (null === maybeIterable || "object" !== typeof maybeIterable)
|
|
40
41
|
return null;
|
|
@@ -440,7 +441,6 @@
|
|
|
440
441
|
temporaryReferences.set(reference, id);
|
|
441
442
|
return reference;
|
|
442
443
|
}
|
|
443
|
-
function noop() {}
|
|
444
444
|
function trackUsedThenable(thenableState, thenable, index) {
|
|
445
445
|
index = thenableState[index];
|
|
446
446
|
void 0 === index
|
|
@@ -1333,7 +1333,7 @@
|
|
|
1333
1333
|
erroredTask(request, streamTask, reason),
|
|
1334
1334
|
enqueueFlush(request),
|
|
1335
1335
|
"function" === typeof iterator.throw &&
|
|
1336
|
-
iterator.throw(reason).then(
|
|
1336
|
+
iterator.throw(reason).then(noop, noop));
|
|
1337
1337
|
}
|
|
1338
1338
|
function abortIterable() {
|
|
1339
1339
|
if (0 === streamTask.status) {
|
|
@@ -1347,7 +1347,7 @@
|
|
|
1347
1347
|
: (erroredTask(request, streamTask, signal.reason),
|
|
1348
1348
|
enqueueFlush(request));
|
|
1349
1349
|
"function" === typeof iterator.throw &&
|
|
1350
|
-
iterator.throw(reason).then(
|
|
1350
|
+
iterator.throw(reason).then(noop, noop);
|
|
1351
1351
|
}
|
|
1352
1352
|
}
|
|
1353
1353
|
var isIterator = iterable === iterator,
|
|
@@ -4932,44 +4932,44 @@
|
|
|
4932
4932
|
}
|
|
4933
4933
|
function decodeAction$1(body, serverManifest) {
|
|
4934
4934
|
var formData = new FormData(),
|
|
4935
|
-
|
|
4936
|
-
seenActions = new Set();
|
|
4935
|
+
maybeActionKey = null;
|
|
4937
4936
|
body.forEach(function (value, key) {
|
|
4938
4937
|
key.startsWith("$ACTION_")
|
|
4939
4938
|
? key.startsWith("$ACTION_REF_")
|
|
4940
|
-
?
|
|
4941
|
-
|
|
4942
|
-
(value = "$ACTION_" + key.slice(12) + ":"),
|
|
4943
|
-
(value = decodeBoundActionMetaData(body, serverManifest, value)),
|
|
4944
|
-
(action = loadServerReference(serverManifest, value)))
|
|
4945
|
-
: key.startsWith("$ACTION_ID_") &&
|
|
4946
|
-
!seenActions.has(key) &&
|
|
4947
|
-
(seenActions.add(key),
|
|
4948
|
-
(value = key.slice(11)),
|
|
4949
|
-
(action = loadServerReference(serverManifest, {
|
|
4950
|
-
id: value,
|
|
4951
|
-
bound: null
|
|
4952
|
-
})))
|
|
4939
|
+
? (maybeActionKey = key)
|
|
4940
|
+
: key.startsWith("$ACTION_ID_") && (maybeActionKey = key)
|
|
4953
4941
|
: formData.append(key, value);
|
|
4954
4942
|
});
|
|
4955
|
-
|
|
4956
|
-
|
|
4957
|
-
|
|
4958
|
-
|
|
4959
|
-
|
|
4943
|
+
if (null === maybeActionKey) return null;
|
|
4944
|
+
var actionKey = maybeActionKey,
|
|
4945
|
+
action = null;
|
|
4946
|
+
if (actionKey.startsWith("$ACTION_REF_"))
|
|
4947
|
+
(actionKey = "$ACTION_" + actionKey.slice(12) + ":"),
|
|
4948
|
+
(body = decodeBoundActionMetaData(body, serverManifest, actionKey)),
|
|
4949
|
+
(action = loadServerReference(serverManifest, body));
|
|
4950
|
+
else if (actionKey.startsWith("$ACTION_ID_"))
|
|
4951
|
+
(body = actionKey.slice(11)),
|
|
4952
|
+
(action = loadServerReference(serverManifest, {
|
|
4953
|
+
id: body,
|
|
4954
|
+
bound: null
|
|
4955
|
+
}));
|
|
4956
|
+
else throw Error("Cannot handle action key. This is a bug in React.");
|
|
4957
|
+
return action.then(function (fn) {
|
|
4958
|
+
return fn.bind(null, formData);
|
|
4959
|
+
});
|
|
4960
4960
|
}
|
|
4961
4961
|
function decodeFormState$1(actionResult, body, serverManifest) {
|
|
4962
4962
|
var keyPath = body.get("$ACTION_KEY");
|
|
4963
4963
|
if ("string" !== typeof keyPath) return Promise.resolve(null);
|
|
4964
|
-
var
|
|
4964
|
+
var actionKey = null;
|
|
4965
4965
|
body.forEach(function (value, key) {
|
|
4966
|
-
key.startsWith("$ACTION_REF_") &&
|
|
4967
|
-
((value = "$ACTION_" + key.slice(12) + ":"),
|
|
4968
|
-
(metaData = decodeBoundActionMetaData(body, serverManifest, value)));
|
|
4966
|
+
key.startsWith("$ACTION_REF_") && (actionKey = key);
|
|
4969
4967
|
});
|
|
4970
|
-
if (null ===
|
|
4971
|
-
var
|
|
4972
|
-
|
|
4968
|
+
if (null === actionKey) return Promise.resolve(null);
|
|
4969
|
+
var formFieldPrefix = "$ACTION_" + actionKey.slice(12) + ":";
|
|
4970
|
+
body = decodeBoundActionMetaData(body, serverManifest, formFieldPrefix);
|
|
4971
|
+
var referenceId = body.id;
|
|
4972
|
+
return Promise.resolve(body.bound).then(function (bound) {
|
|
4973
4973
|
return null === bound
|
|
4974
4974
|
? null
|
|
4975
4975
|
: [actionResult, keyPath, referenceId, bound.length - 1];
|
|
@@ -5549,7 +5549,7 @@
|
|
|
5549
5549
|
function error(reason) {
|
|
5550
5550
|
reportGlobalError(response$jscomp$0, reason);
|
|
5551
5551
|
"function" === typeof iterator.throw &&
|
|
5552
|
-
iterator.throw(reason).then(
|
|
5552
|
+
iterator.throw(reason).then(noop, noop);
|
|
5553
5553
|
}
|
|
5554
5554
|
var iterator = iterable[ASYNC_ITERATOR](),
|
|
5555
5555
|
response$jscomp$0 = createResponse(
|
|
@@ -37,6 +37,7 @@ function requireModule(metadata) {
|
|
|
37
37
|
if (hasOwnProperty.call(moduleExports, metadata[1]))
|
|
38
38
|
return moduleExports[metadata[1]];
|
|
39
39
|
}
|
|
40
|
+
function noop() {}
|
|
40
41
|
var REACT_LEGACY_ELEMENT_TYPE = Symbol.for("react.element"),
|
|
41
42
|
REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
|
|
42
43
|
REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"),
|
|
@@ -427,7 +428,6 @@ function createTemporaryReference(temporaryReferences, id) {
|
|
|
427
428
|
temporaryReferences.set(reference, id);
|
|
428
429
|
return reference;
|
|
429
430
|
}
|
|
430
|
-
function noop() {}
|
|
431
431
|
var SuspenseException = Error(
|
|
432
432
|
"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`."
|
|
433
433
|
);
|
|
@@ -928,7 +928,7 @@ function serializeAsyncIterable(request, task, iterable, iterator) {
|
|
|
928
928
|
erroredTask(request, streamTask, reason),
|
|
929
929
|
enqueueFlush(request),
|
|
930
930
|
"function" === typeof iterator.throw &&
|
|
931
|
-
iterator.throw(reason).then(
|
|
931
|
+
iterator.throw(reason).then(noop, noop));
|
|
932
932
|
}
|
|
933
933
|
function abortIterable() {
|
|
934
934
|
if (0 === streamTask.status) {
|
|
@@ -942,7 +942,7 @@ function serializeAsyncIterable(request, task, iterable, iterator) {
|
|
|
942
942
|
: (erroredTask(request, streamTask, signal.reason),
|
|
943
943
|
enqueueFlush(request));
|
|
944
944
|
"function" === typeof iterator.throw &&
|
|
945
|
-
iterator.throw(reason).then(
|
|
945
|
+
iterator.throw(reason).then(noop, noop);
|
|
946
946
|
}
|
|
947
947
|
}
|
|
948
948
|
iterable = iterable === iterator;
|
|
@@ -3180,44 +3180,41 @@ function decodeBoundActionMetaData(
|
|
|
3180
3180
|
}
|
|
3181
3181
|
function decodeAction$1(body, serverManifest) {
|
|
3182
3182
|
var formData = new FormData(),
|
|
3183
|
-
|
|
3184
|
-
seenActions = new Set();
|
|
3183
|
+
maybeActionKey = null;
|
|
3185
3184
|
body.forEach(function (value, key) {
|
|
3186
3185
|
key.startsWith("$ACTION_")
|
|
3187
3186
|
? key.startsWith("$ACTION_REF_")
|
|
3188
|
-
?
|
|
3189
|
-
|
|
3190
|
-
(value = "$ACTION_" + key.slice(12) + ":"),
|
|
3191
|
-
(value = decodeBoundActionMetaData(body, serverManifest, value)),
|
|
3192
|
-
(action = loadServerReference(serverManifest, value)))
|
|
3193
|
-
: key.startsWith("$ACTION_ID_") &&
|
|
3194
|
-
!seenActions.has(key) &&
|
|
3195
|
-
(seenActions.add(key),
|
|
3196
|
-
(value = key.slice(11)),
|
|
3197
|
-
(action = loadServerReference(serverManifest, {
|
|
3198
|
-
id: value,
|
|
3199
|
-
bound: null
|
|
3200
|
-
})))
|
|
3187
|
+
? (maybeActionKey = key)
|
|
3188
|
+
: key.startsWith("$ACTION_ID_") && (maybeActionKey = key)
|
|
3201
3189
|
: formData.append(key, value);
|
|
3202
3190
|
});
|
|
3203
|
-
|
|
3204
|
-
|
|
3205
|
-
|
|
3206
|
-
|
|
3207
|
-
|
|
3191
|
+
if (null === maybeActionKey) return null;
|
|
3192
|
+
var actionKey = maybeActionKey,
|
|
3193
|
+
action = null;
|
|
3194
|
+
if (actionKey.startsWith("$ACTION_REF_"))
|
|
3195
|
+
(actionKey = "$ACTION_" + actionKey.slice(12) + ":"),
|
|
3196
|
+
(body = decodeBoundActionMetaData(body, serverManifest, actionKey)),
|
|
3197
|
+
(action = loadServerReference(serverManifest, body));
|
|
3198
|
+
else if (actionKey.startsWith("$ACTION_ID_"))
|
|
3199
|
+
(body = actionKey.slice(11)),
|
|
3200
|
+
(action = loadServerReference(serverManifest, { id: body, bound: null }));
|
|
3201
|
+
else throw Error("Cannot handle action key. This is a bug in React.");
|
|
3202
|
+
return action.then(function (fn) {
|
|
3203
|
+
return fn.bind(null, formData);
|
|
3204
|
+
});
|
|
3208
3205
|
}
|
|
3209
3206
|
function decodeFormState$1(actionResult, body, serverManifest) {
|
|
3210
3207
|
var keyPath = body.get("$ACTION_KEY");
|
|
3211
3208
|
if ("string" !== typeof keyPath) return Promise.resolve(null);
|
|
3212
|
-
var
|
|
3209
|
+
var actionKey = null;
|
|
3213
3210
|
body.forEach(function (value, key) {
|
|
3214
|
-
key.startsWith("$ACTION_REF_") &&
|
|
3215
|
-
((value = "$ACTION_" + key.slice(12) + ":"),
|
|
3216
|
-
(metaData = decodeBoundActionMetaData(body, serverManifest, value)));
|
|
3211
|
+
key.startsWith("$ACTION_REF_") && (actionKey = key);
|
|
3217
3212
|
});
|
|
3218
|
-
if (null ===
|
|
3219
|
-
var
|
|
3220
|
-
|
|
3213
|
+
if (null === actionKey) return Promise.resolve(null);
|
|
3214
|
+
var formFieldPrefix = "$ACTION_" + actionKey.slice(12) + ":";
|
|
3215
|
+
body = decodeBoundActionMetaData(body, serverManifest, formFieldPrefix);
|
|
3216
|
+
var referenceId = body.id;
|
|
3217
|
+
return Promise.resolve(body.bound).then(function (bound) {
|
|
3221
3218
|
return null === bound
|
|
3222
3219
|
? null
|
|
3223
3220
|
: [actionResult, keyPath, referenceId, bound.length - 1];
|
|
@@ -3282,7 +3279,7 @@ exports.decodeReplyFromAsyncIterable = function (iterable, options) {
|
|
|
3282
3279
|
function error(reason) {
|
|
3283
3280
|
reportGlobalError(response, reason);
|
|
3284
3281
|
"function" === typeof iterator.throw &&
|
|
3285
|
-
iterator.throw(reason).then(
|
|
3282
|
+
iterator.throw(reason).then(noop, noop);
|
|
3286
3283
|
}
|
|
3287
3284
|
var iterator = iterable[ASYNC_ITERATOR](),
|
|
3288
3285
|
response = createResponse(
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
"production" !== process.env.NODE_ENV &&
|
|
13
13
|
(function () {
|
|
14
14
|
function voidHandler() {}
|
|
15
|
+
function noop() {}
|
|
15
16
|
function getIteratorFn(maybeIterable) {
|
|
16
17
|
if (null === maybeIterable || "object" !== typeof maybeIterable)
|
|
17
18
|
return null;
|
|
@@ -476,7 +477,6 @@
|
|
|
476
477
|
temporaryReferences.set(reference, id);
|
|
477
478
|
return reference;
|
|
478
479
|
}
|
|
479
|
-
function noop() {}
|
|
480
480
|
function trackUsedThenable(thenableState, thenable, index) {
|
|
481
481
|
index = thenableState[index];
|
|
482
482
|
void 0 === index
|
|
@@ -1404,7 +1404,7 @@
|
|
|
1404
1404
|
erroredTask(request, streamTask, reason),
|
|
1405
1405
|
enqueueFlush(request),
|
|
1406
1406
|
"function" === typeof iterator.throw &&
|
|
1407
|
-
iterator.throw(reason).then(
|
|
1407
|
+
iterator.throw(reason).then(noop, noop));
|
|
1408
1408
|
}
|
|
1409
1409
|
function abortIterable() {
|
|
1410
1410
|
if (0 === streamTask.status) {
|
|
@@ -1418,7 +1418,7 @@
|
|
|
1418
1418
|
: (erroredTask(request, streamTask, signal.reason),
|
|
1419
1419
|
enqueueFlush(request));
|
|
1420
1420
|
"function" === typeof iterator.throw &&
|
|
1421
|
-
iterator.throw(reason).then(
|
|
1421
|
+
iterator.throw(reason).then(noop, noop);
|
|
1422
1422
|
}
|
|
1423
1423
|
}
|
|
1424
1424
|
var isIterator = iterable === iterator,
|
|
@@ -5345,44 +5345,44 @@
|
|
|
5345
5345
|
}
|
|
5346
5346
|
function decodeAction$1(body, serverManifest) {
|
|
5347
5347
|
var formData = new FormData(),
|
|
5348
|
-
|
|
5349
|
-
seenActions = new Set();
|
|
5348
|
+
maybeActionKey = null;
|
|
5350
5349
|
body.forEach(function (value, key) {
|
|
5351
5350
|
key.startsWith("$ACTION_")
|
|
5352
5351
|
? key.startsWith("$ACTION_REF_")
|
|
5353
|
-
?
|
|
5354
|
-
|
|
5355
|
-
(value = "$ACTION_" + key.slice(12) + ":"),
|
|
5356
|
-
(value = decodeBoundActionMetaData(body, serverManifest, value)),
|
|
5357
|
-
(action = loadServerReference(serverManifest, value)))
|
|
5358
|
-
: key.startsWith("$ACTION_ID_") &&
|
|
5359
|
-
!seenActions.has(key) &&
|
|
5360
|
-
(seenActions.add(key),
|
|
5361
|
-
(value = key.slice(11)),
|
|
5362
|
-
(action = loadServerReference(serverManifest, {
|
|
5363
|
-
id: value,
|
|
5364
|
-
bound: null
|
|
5365
|
-
})))
|
|
5352
|
+
? (maybeActionKey = key)
|
|
5353
|
+
: key.startsWith("$ACTION_ID_") && (maybeActionKey = key)
|
|
5366
5354
|
: formData.append(key, value);
|
|
5367
5355
|
});
|
|
5368
|
-
|
|
5369
|
-
|
|
5370
|
-
|
|
5371
|
-
|
|
5372
|
-
|
|
5356
|
+
if (null === maybeActionKey) return null;
|
|
5357
|
+
var actionKey = maybeActionKey,
|
|
5358
|
+
action = null;
|
|
5359
|
+
if (actionKey.startsWith("$ACTION_REF_"))
|
|
5360
|
+
(actionKey = "$ACTION_" + actionKey.slice(12) + ":"),
|
|
5361
|
+
(body = decodeBoundActionMetaData(body, serverManifest, actionKey)),
|
|
5362
|
+
(action = loadServerReference(serverManifest, body));
|
|
5363
|
+
else if (actionKey.startsWith("$ACTION_ID_"))
|
|
5364
|
+
(body = actionKey.slice(11)),
|
|
5365
|
+
(action = loadServerReference(serverManifest, {
|
|
5366
|
+
id: body,
|
|
5367
|
+
bound: null
|
|
5368
|
+
}));
|
|
5369
|
+
else throw Error("Cannot handle action key. This is a bug in React.");
|
|
5370
|
+
return action.then(function (fn) {
|
|
5371
|
+
return fn.bind(null, formData);
|
|
5372
|
+
});
|
|
5373
5373
|
}
|
|
5374
5374
|
function decodeFormState$1(actionResult, body, serverManifest) {
|
|
5375
5375
|
var keyPath = body.get("$ACTION_KEY");
|
|
5376
5376
|
if ("string" !== typeof keyPath) return Promise.resolve(null);
|
|
5377
|
-
var
|
|
5377
|
+
var actionKey = null;
|
|
5378
5378
|
body.forEach(function (value, key) {
|
|
5379
|
-
key.startsWith("$ACTION_REF_") &&
|
|
5380
|
-
((value = "$ACTION_" + key.slice(12) + ":"),
|
|
5381
|
-
(metaData = decodeBoundActionMetaData(body, serverManifest, value)));
|
|
5379
|
+
key.startsWith("$ACTION_REF_") && (actionKey = key);
|
|
5382
5380
|
});
|
|
5383
|
-
if (null ===
|
|
5384
|
-
var
|
|
5385
|
-
|
|
5381
|
+
if (null === actionKey) return Promise.resolve(null);
|
|
5382
|
+
var formFieldPrefix = "$ACTION_" + actionKey.slice(12) + ":";
|
|
5383
|
+
body = decodeBoundActionMetaData(body, serverManifest, formFieldPrefix);
|
|
5384
|
+
var referenceId = body.id;
|
|
5385
|
+
return Promise.resolve(body.bound).then(function (bound) {
|
|
5386
5386
|
return null === bound
|
|
5387
5387
|
? null
|
|
5388
5388
|
: [actionResult, keyPath, referenceId, bound.length - 1];
|
|
@@ -6167,7 +6167,7 @@
|
|
|
6167
6167
|
function error(reason) {
|
|
6168
6168
|
reportGlobalError(response, reason);
|
|
6169
6169
|
"function" === typeof iterator.throw &&
|
|
6170
|
-
iterator.throw(reason).then(
|
|
6170
|
+
iterator.throw(reason).then(noop, noop);
|
|
6171
6171
|
}
|
|
6172
6172
|
var iterator = iterable[ASYNC_ITERATOR](),
|
|
6173
6173
|
response = createResponse(
|
|
@@ -6181,20 +6181,58 @@
|
|
|
6181
6181
|
return getChunk(response, 0);
|
|
6182
6182
|
};
|
|
6183
6183
|
exports.decodeReplyFromBusboy = function (busboyStream, options) {
|
|
6184
|
-
|
|
6184
|
+
function flush() {
|
|
6185
|
+
for (; null !== head; ) {
|
|
6186
|
+
var current = head;
|
|
6187
|
+
if (!current.complete) return;
|
|
6188
|
+
try {
|
|
6189
|
+
var response = response$jscomp$0,
|
|
6190
|
+
key = current.name,
|
|
6191
|
+
handle = current.file,
|
|
6192
|
+
blob = new Blob(handle.chunks, { type: handle.mime }),
|
|
6193
|
+
backingStore = response._formData;
|
|
6194
|
+
response = key;
|
|
6195
|
+
backingStore.data.append(response, blob, handle.filename);
|
|
6196
|
+
var keys = backingStore.keys;
|
|
6197
|
+
null === keys
|
|
6198
|
+
? ((backingStore.keys = Array.from(backingStore.data.keys())),
|
|
6199
|
+
(backingStore.keyPointer = 0))
|
|
6200
|
+
: keys.push(response);
|
|
6201
|
+
var queuedFields = current.queuedFields;
|
|
6202
|
+
if (null !== queuedFields)
|
|
6203
|
+
for (response = 0; response < queuedFields.length; response += 2)
|
|
6204
|
+
resolveField(
|
|
6205
|
+
response$jscomp$0,
|
|
6206
|
+
queuedFields[response],
|
|
6207
|
+
queuedFields[response + 1]
|
|
6208
|
+
);
|
|
6209
|
+
} catch (error) {
|
|
6210
|
+
busboyStream.destroy(error);
|
|
6211
|
+
return;
|
|
6212
|
+
}
|
|
6213
|
+
head = current.next;
|
|
6214
|
+
}
|
|
6215
|
+
tail = null;
|
|
6216
|
+
bodyFinished && !closed && ((closed = !0), close(response$jscomp$0));
|
|
6217
|
+
}
|
|
6218
|
+
var response$jscomp$0 = createResponse(
|
|
6185
6219
|
serverManifest,
|
|
6186
6220
|
"",
|
|
6187
6221
|
options ? options.temporaryReferences : void 0,
|
|
6188
6222
|
void 0,
|
|
6189
6223
|
options ? options.arraySizeLimit : void 0
|
|
6190
6224
|
),
|
|
6191
|
-
|
|
6192
|
-
|
|
6225
|
+
head = null,
|
|
6226
|
+
tail = null,
|
|
6227
|
+
bodyFinished = !1,
|
|
6228
|
+
closed = !1;
|
|
6193
6229
|
busboyStream.on("field", function (name, value) {
|
|
6194
|
-
if (
|
|
6230
|
+
if (null !== tail)
|
|
6231
|
+
null === tail.queuedFields && (tail.queuedFields = []),
|
|
6232
|
+
tail.queuedFields.push(name, value);
|
|
6195
6233
|
else
|
|
6196
6234
|
try {
|
|
6197
|
-
resolveField(response, name, value);
|
|
6235
|
+
resolveField(response$jscomp$0, name, value);
|
|
6198
6236
|
} catch (error) {
|
|
6199
6237
|
busboyStream.destroy(error);
|
|
6200
6238
|
}
|
|
@@ -6209,46 +6247,45 @@
|
|
|
6209
6247
|
)
|
|
6210
6248
|
);
|
|
6211
6249
|
else {
|
|
6212
|
-
|
|
6213
|
-
|
|
6250
|
+
var file = { chunks: [], filename: filename, mime: mimeType },
|
|
6251
|
+
pendingFile = {
|
|
6252
|
+
name: name,
|
|
6253
|
+
file: file,
|
|
6254
|
+
complete: !1,
|
|
6255
|
+
queuedFields: null,
|
|
6256
|
+
next: null
|
|
6257
|
+
};
|
|
6258
|
+
null === tail ? (head = pendingFile) : (tail.next = pendingFile);
|
|
6259
|
+
tail = pendingFile;
|
|
6214
6260
|
value.on("data", function (chunk) {
|
|
6215
|
-
JSCompiler_object_inline_chunks_266.push(chunk);
|
|
6216
|
-
});
|
|
6217
|
-
value.on("end", function () {
|
|
6218
6261
|
try {
|
|
6219
|
-
|
|
6220
|
-
type: mimeType
|
|
6221
|
-
}),
|
|
6222
|
-
backingStore = response._formData;
|
|
6223
|
-
backingStore.data.append(name, blob, filename);
|
|
6224
|
-
var keys = backingStore.keys;
|
|
6225
|
-
null === keys
|
|
6226
|
-
? ((backingStore.keys = Array.from(backingStore.data.keys())),
|
|
6227
|
-
(backingStore.keyPointer = 0))
|
|
6228
|
-
: keys.push(name);
|
|
6229
|
-
pendingFiles--;
|
|
6230
|
-
if (0 === pendingFiles) {
|
|
6231
|
-
for (blob = 0; blob < queuedFields.length; blob += 2)
|
|
6232
|
-
resolveField(
|
|
6233
|
-
response,
|
|
6234
|
-
queuedFields[blob],
|
|
6235
|
-
queuedFields[blob + 1]
|
|
6236
|
-
);
|
|
6237
|
-
queuedFields.length = 0;
|
|
6238
|
-
}
|
|
6262
|
+
file.chunks.push(chunk);
|
|
6239
6263
|
} catch (error) {
|
|
6240
6264
|
busboyStream.destroy(error);
|
|
6241
6265
|
}
|
|
6242
6266
|
});
|
|
6267
|
+
value.on("error", function (error) {
|
|
6268
|
+
busboyStream.destroy(error);
|
|
6269
|
+
});
|
|
6270
|
+
value.on("end", function () {
|
|
6271
|
+
pendingFile.complete = !0;
|
|
6272
|
+
flush();
|
|
6273
|
+
});
|
|
6243
6274
|
}
|
|
6244
6275
|
});
|
|
6245
6276
|
busboyStream.on("finish", function () {
|
|
6246
|
-
|
|
6277
|
+
bodyFinished = !0;
|
|
6278
|
+
flush();
|
|
6279
|
+
closed ||
|
|
6280
|
+
reportGlobalError(
|
|
6281
|
+
response$jscomp$0,
|
|
6282
|
+
Error("Reply finished with incomplete file part.")
|
|
6283
|
+
);
|
|
6247
6284
|
});
|
|
6248
6285
|
busboyStream.on("error", function (err) {
|
|
6249
|
-
reportGlobalError(response, err);
|
|
6286
|
+
reportGlobalError(response$jscomp$0, err);
|
|
6250
6287
|
});
|
|
6251
|
-
return getChunk(response, 0);
|
|
6288
|
+
return getChunk(response$jscomp$0, 0);
|
|
6252
6289
|
};
|
|
6253
6290
|
exports.loadServerAction = function (id) {
|
|
6254
6291
|
var reference = resolveServerReference(serverManifest, id);
|
|
@@ -14,8 +14,9 @@ var stream = require("stream"),
|
|
|
14
14
|
require("crypto");
|
|
15
15
|
var async_hooks = require("async_hooks"),
|
|
16
16
|
ReactDOM = require("react-dom"),
|
|
17
|
-
React = require("react")
|
|
18
|
-
|
|
17
|
+
React = require("react");
|
|
18
|
+
function noop() {}
|
|
19
|
+
var REACT_LEGACY_ELEMENT_TYPE = Symbol.for("react.element"),
|
|
19
20
|
REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
|
|
20
21
|
REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"),
|
|
21
22
|
REACT_CONTEXT_TYPE = Symbol.for("react.context"),
|
|
@@ -429,7 +430,6 @@ function createTemporaryReference(temporaryReferences, id) {
|
|
|
429
430
|
temporaryReferences.set(reference, id);
|
|
430
431
|
return reference;
|
|
431
432
|
}
|
|
432
|
-
function noop() {}
|
|
433
433
|
var SuspenseException = Error(
|
|
434
434
|
"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`."
|
|
435
435
|
);
|
|
@@ -928,7 +928,7 @@ function serializeAsyncIterable(request, task, iterable, iterator) {
|
|
|
928
928
|
erroredTask(request, streamTask, reason),
|
|
929
929
|
enqueueFlush(request),
|
|
930
930
|
"function" === typeof iterator.throw &&
|
|
931
|
-
iterator.throw(reason).then(
|
|
931
|
+
iterator.throw(reason).then(noop, noop));
|
|
932
932
|
}
|
|
933
933
|
function abortIterable() {
|
|
934
934
|
if (0 === streamTask.status) {
|
|
@@ -942,7 +942,7 @@ function serializeAsyncIterable(request, task, iterable, iterator) {
|
|
|
942
942
|
: (erroredTask(request, streamTask, signal.reason),
|
|
943
943
|
enqueueFlush(request));
|
|
944
944
|
"function" === typeof iterator.throw &&
|
|
945
|
-
iterator.throw(reason).then(
|
|
945
|
+
iterator.throw(reason).then(noop, noop);
|
|
946
946
|
}
|
|
947
947
|
}
|
|
948
948
|
iterable = iterable === iterator;
|
|
@@ -3219,44 +3219,41 @@ function decodeBoundActionMetaData(
|
|
|
3219
3219
|
}
|
|
3220
3220
|
function decodeAction$1(body, serverManifest) {
|
|
3221
3221
|
var formData = new FormData(),
|
|
3222
|
-
|
|
3223
|
-
seenActions = new Set();
|
|
3222
|
+
maybeActionKey = null;
|
|
3224
3223
|
body.forEach(function (value, key) {
|
|
3225
3224
|
key.startsWith("$ACTION_")
|
|
3226
3225
|
? key.startsWith("$ACTION_REF_")
|
|
3227
|
-
?
|
|
3228
|
-
|
|
3229
|
-
(value = "$ACTION_" + key.slice(12) + ":"),
|
|
3230
|
-
(value = decodeBoundActionMetaData(body, serverManifest, value)),
|
|
3231
|
-
(action = loadServerReference(serverManifest, value)))
|
|
3232
|
-
: key.startsWith("$ACTION_ID_") &&
|
|
3233
|
-
!seenActions.has(key) &&
|
|
3234
|
-
(seenActions.add(key),
|
|
3235
|
-
(value = key.slice(11)),
|
|
3236
|
-
(action = loadServerReference(serverManifest, {
|
|
3237
|
-
id: value,
|
|
3238
|
-
bound: null
|
|
3239
|
-
})))
|
|
3226
|
+
? (maybeActionKey = key)
|
|
3227
|
+
: key.startsWith("$ACTION_ID_") && (maybeActionKey = key)
|
|
3240
3228
|
: formData.append(key, value);
|
|
3241
3229
|
});
|
|
3242
|
-
|
|
3243
|
-
|
|
3244
|
-
|
|
3245
|
-
|
|
3246
|
-
|
|
3230
|
+
if (null === maybeActionKey) return null;
|
|
3231
|
+
var actionKey = maybeActionKey,
|
|
3232
|
+
action = null;
|
|
3233
|
+
if (actionKey.startsWith("$ACTION_REF_"))
|
|
3234
|
+
(actionKey = "$ACTION_" + actionKey.slice(12) + ":"),
|
|
3235
|
+
(body = decodeBoundActionMetaData(body, serverManifest, actionKey)),
|
|
3236
|
+
(action = loadServerReference(serverManifest, body));
|
|
3237
|
+
else if (actionKey.startsWith("$ACTION_ID_"))
|
|
3238
|
+
(body = actionKey.slice(11)),
|
|
3239
|
+
(action = loadServerReference(serverManifest, { id: body, bound: null }));
|
|
3240
|
+
else throw Error("Cannot handle action key. This is a bug in React.");
|
|
3241
|
+
return action.then(function (fn) {
|
|
3242
|
+
return fn.bind(null, formData);
|
|
3243
|
+
});
|
|
3247
3244
|
}
|
|
3248
3245
|
function decodeFormState$1(actionResult, body, serverManifest) {
|
|
3249
3246
|
var keyPath = body.get("$ACTION_KEY");
|
|
3250
3247
|
if ("string" !== typeof keyPath) return Promise.resolve(null);
|
|
3251
|
-
var
|
|
3248
|
+
var actionKey = null;
|
|
3252
3249
|
body.forEach(function (value, key) {
|
|
3253
|
-
key.startsWith("$ACTION_REF_") &&
|
|
3254
|
-
((value = "$ACTION_" + key.slice(12) + ":"),
|
|
3255
|
-
(metaData = decodeBoundActionMetaData(body, serverManifest, value)));
|
|
3250
|
+
key.startsWith("$ACTION_REF_") && (actionKey = key);
|
|
3256
3251
|
});
|
|
3257
|
-
if (null ===
|
|
3258
|
-
var
|
|
3259
|
-
|
|
3252
|
+
if (null === actionKey) return Promise.resolve(null);
|
|
3253
|
+
var formFieldPrefix = "$ACTION_" + actionKey.slice(12) + ":";
|
|
3254
|
+
body = decodeBoundActionMetaData(body, serverManifest, formFieldPrefix);
|
|
3255
|
+
var referenceId = body.id;
|
|
3256
|
+
return Promise.resolve(body.bound).then(function (bound) {
|
|
3260
3257
|
return null === bound
|
|
3261
3258
|
? null
|
|
3262
3259
|
: [actionResult, keyPath, referenceId, bound.length - 1];
|
|
@@ -3355,7 +3352,7 @@ exports.decodeReplyFromAsyncIterable = function (iterable, options) {
|
|
|
3355
3352
|
function error(reason) {
|
|
3356
3353
|
reportGlobalError(response, reason);
|
|
3357
3354
|
"function" === typeof iterator.throw &&
|
|
3358
|
-
iterator.throw(reason).then(
|
|
3355
|
+
iterator.throw(reason).then(noop, noop);
|
|
3359
3356
|
}
|
|
3360
3357
|
var iterator = iterable[ASYNC_ITERATOR](),
|
|
3361
3358
|
response = createResponse(
|
|
@@ -3369,6 +3366,43 @@ exports.decodeReplyFromAsyncIterable = function (iterable, options) {
|
|
|
3369
3366
|
return getChunk(response, 0);
|
|
3370
3367
|
};
|
|
3371
3368
|
exports.decodeReplyFromBusboy = function (busboyStream, options) {
|
|
3369
|
+
function flush() {
|
|
3370
|
+
for (; null !== head; ) {
|
|
3371
|
+
var current = head;
|
|
3372
|
+
if (!current.complete) return;
|
|
3373
|
+
try {
|
|
3374
|
+
var key = current.name,
|
|
3375
|
+
handle = current.file,
|
|
3376
|
+
blob = new Blob(handle.chunks, { type: handle.mime }),
|
|
3377
|
+
backingStore = response._formData,
|
|
3378
|
+
key$jscomp$0 = key;
|
|
3379
|
+
backingStore.data.append(key$jscomp$0, blob, handle.filename);
|
|
3380
|
+
var keys = backingStore.keys;
|
|
3381
|
+
null === keys
|
|
3382
|
+
? ((backingStore.keys = Array.from(backingStore.data.keys())),
|
|
3383
|
+
(backingStore.keyPointer = 0))
|
|
3384
|
+
: keys.push(key$jscomp$0);
|
|
3385
|
+
var queuedFields = current.queuedFields;
|
|
3386
|
+
if (null !== queuedFields)
|
|
3387
|
+
for (
|
|
3388
|
+
key$jscomp$0 = 0;
|
|
3389
|
+
key$jscomp$0 < queuedFields.length;
|
|
3390
|
+
key$jscomp$0 += 2
|
|
3391
|
+
)
|
|
3392
|
+
resolveField(
|
|
3393
|
+
response,
|
|
3394
|
+
queuedFields[key$jscomp$0],
|
|
3395
|
+
queuedFields[key$jscomp$0 + 1]
|
|
3396
|
+
);
|
|
3397
|
+
} catch (error) {
|
|
3398
|
+
busboyStream.destroy(error);
|
|
3399
|
+
return;
|
|
3400
|
+
}
|
|
3401
|
+
head = current.next;
|
|
3402
|
+
}
|
|
3403
|
+
tail = null;
|
|
3404
|
+
bodyFinished && !closed && ((closed = !0), close(response));
|
|
3405
|
+
}
|
|
3372
3406
|
var response = createResponse(
|
|
3373
3407
|
serverManifest,
|
|
3374
3408
|
"",
|
|
@@ -3376,10 +3410,14 @@ exports.decodeReplyFromBusboy = function (busboyStream, options) {
|
|
|
3376
3410
|
void 0,
|
|
3377
3411
|
options ? options.arraySizeLimit : void 0
|
|
3378
3412
|
),
|
|
3379
|
-
|
|
3380
|
-
|
|
3413
|
+
head = null,
|
|
3414
|
+
tail = null,
|
|
3415
|
+
bodyFinished = !1,
|
|
3416
|
+
closed = !1;
|
|
3381
3417
|
busboyStream.on("field", function (name, value) {
|
|
3382
|
-
if (
|
|
3418
|
+
if (null !== tail)
|
|
3419
|
+
null === tail.queuedFields && (tail.queuedFields = []),
|
|
3420
|
+
tail.queuedFields.push(name, value);
|
|
3383
3421
|
else
|
|
3384
3422
|
try {
|
|
3385
3423
|
resolveField(response, name, value);
|
|
@@ -3397,41 +3435,40 @@ exports.decodeReplyFromBusboy = function (busboyStream, options) {
|
|
|
3397
3435
|
)
|
|
3398
3436
|
);
|
|
3399
3437
|
else {
|
|
3400
|
-
|
|
3401
|
-
|
|
3438
|
+
var file = { chunks: [], filename: filename, mime: mimeType },
|
|
3439
|
+
pendingFile = {
|
|
3440
|
+
name: name,
|
|
3441
|
+
file: file,
|
|
3442
|
+
complete: !1,
|
|
3443
|
+
queuedFields: null,
|
|
3444
|
+
next: null
|
|
3445
|
+
};
|
|
3446
|
+
null === tail ? (head = pendingFile) : (tail.next = pendingFile);
|
|
3447
|
+
tail = pendingFile;
|
|
3402
3448
|
value.on("data", function (chunk) {
|
|
3403
|
-
JSCompiler_object_inline_chunks_292.push(chunk);
|
|
3404
|
-
});
|
|
3405
|
-
value.on("end", function () {
|
|
3406
3449
|
try {
|
|
3407
|
-
|
|
3408
|
-
type: mimeType
|
|
3409
|
-
}),
|
|
3410
|
-
backingStore = response._formData;
|
|
3411
|
-
backingStore.data.append(name, blob, filename);
|
|
3412
|
-
var keys = backingStore.keys;
|
|
3413
|
-
null === keys
|
|
3414
|
-
? ((backingStore.keys = Array.from(backingStore.data.keys())),
|
|
3415
|
-
(backingStore.keyPointer = 0))
|
|
3416
|
-
: keys.push(name);
|
|
3417
|
-
pendingFiles--;
|
|
3418
|
-
if (0 === pendingFiles) {
|
|
3419
|
-
for (blob = 0; blob < queuedFields.length; blob += 2)
|
|
3420
|
-
resolveField(
|
|
3421
|
-
response,
|
|
3422
|
-
queuedFields[blob],
|
|
3423
|
-
queuedFields[blob + 1]
|
|
3424
|
-
);
|
|
3425
|
-
queuedFields.length = 0;
|
|
3426
|
-
}
|
|
3450
|
+
file.chunks.push(chunk);
|
|
3427
3451
|
} catch (error) {
|
|
3428
3452
|
busboyStream.destroy(error);
|
|
3429
3453
|
}
|
|
3430
3454
|
});
|
|
3455
|
+
value.on("error", function (error) {
|
|
3456
|
+
busboyStream.destroy(error);
|
|
3457
|
+
});
|
|
3458
|
+
value.on("end", function () {
|
|
3459
|
+
pendingFile.complete = !0;
|
|
3460
|
+
flush();
|
|
3461
|
+
});
|
|
3431
3462
|
}
|
|
3432
3463
|
});
|
|
3433
3464
|
busboyStream.on("finish", function () {
|
|
3434
|
-
|
|
3465
|
+
bodyFinished = !0;
|
|
3466
|
+
flush();
|
|
3467
|
+
closed ||
|
|
3468
|
+
reportGlobalError(
|
|
3469
|
+
response,
|
|
3470
|
+
Error("Reply finished with incomplete file part.")
|
|
3471
|
+
);
|
|
3435
3472
|
});
|
|
3436
3473
|
busboyStream.on("error", function (err) {
|
|
3437
3474
|
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.2.
|
|
4
|
+
"version": "19.2.8",
|
|
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.2.
|
|
82
|
-
"react-dom": "^19.2.
|
|
81
|
+
"react": "^19.2.8",
|
|
82
|
+
"react-dom": "^19.2.8"
|
|
83
83
|
}
|
|
84
84
|
}
|