react-server-dom-webpack 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-webpack-client.browser.development.js +2 -2
- package/cjs/react-server-dom-webpack-server.browser.development.js +29 -29
- package/cjs/react-server-dom-webpack-server.browser.production.js +26 -29
- package/cjs/react-server-dom-webpack-server.edge.development.js +37 -36
- package/cjs/react-server-dom-webpack-server.edge.production.js +34 -36
- package/cjs/react-server-dom-webpack-server.node.development.js +99 -62
- package/cjs/react-server-dom-webpack-server.node.production.js +95 -58
- package/package.json +5 -5
|
@@ -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.9",
|
|
2749
2749
|
rendererPackageName: "react-server-dom-webpack",
|
|
2750
2750
|
currentDispatcherRef: ReactSharedInternals,
|
|
2751
|
-
reconcilerVersion: "19.1.
|
|
2751
|
+
reconcilerVersion: "19.1.9",
|
|
2752
2752
|
getCurrentComponentInfo: function () {
|
|
2753
2753
|
return currentOwnerInDEV;
|
|
2754
2754
|
}
|
|
@@ -918,7 +918,7 @@
|
|
|
918
918
|
erroredTask(request, streamTask, reason),
|
|
919
919
|
enqueueFlush(request),
|
|
920
920
|
"function" === typeof iterator.throw &&
|
|
921
|
-
iterator.throw(reason).then(
|
|
921
|
+
iterator.throw(reason).then(noop, noop));
|
|
922
922
|
}
|
|
923
923
|
function abortIterable(reason) {
|
|
924
924
|
aborted ||
|
|
@@ -927,7 +927,7 @@
|
|
|
927
927
|
erroredTask(request, streamTask, reason),
|
|
928
928
|
enqueueFlush(request),
|
|
929
929
|
"function" === typeof iterator.throw &&
|
|
930
|
-
iterator.throw(reason).then(
|
|
930
|
+
iterator.throw(reason).then(noop, noop));
|
|
931
931
|
}
|
|
932
932
|
var isIterator = iterable === iterator,
|
|
933
933
|
streamTask = createTask(
|
|
@@ -4416,44 +4416,44 @@
|
|
|
4416
4416
|
};
|
|
4417
4417
|
exports.decodeAction = function (body, serverManifest) {
|
|
4418
4418
|
var formData = new FormData(),
|
|
4419
|
-
|
|
4420
|
-
seenActions = new Set();
|
|
4419
|
+
maybeActionKey = null;
|
|
4421
4420
|
body.forEach(function (value, key) {
|
|
4422
4421
|
key.startsWith("$ACTION_")
|
|
4423
4422
|
? key.startsWith("$ACTION_REF_")
|
|
4424
|
-
?
|
|
4425
|
-
|
|
4426
|
-
(value = "$ACTION_" + key.slice(12) + ":"),
|
|
4427
|
-
(value = decodeBoundActionMetaData(body, serverManifest, value)),
|
|
4428
|
-
(action = loadServerReference(serverManifest, value)))
|
|
4429
|
-
: key.startsWith("$ACTION_ID_") &&
|
|
4430
|
-
!seenActions.has(key) &&
|
|
4431
|
-
(seenActions.add(key),
|
|
4432
|
-
(value = key.slice(11)),
|
|
4433
|
-
(action = loadServerReference(serverManifest, {
|
|
4434
|
-
id: value,
|
|
4435
|
-
bound: null
|
|
4436
|
-
})))
|
|
4423
|
+
? (maybeActionKey = key)
|
|
4424
|
+
: key.startsWith("$ACTION_ID_") && (maybeActionKey = key)
|
|
4437
4425
|
: formData.append(key, value);
|
|
4438
4426
|
});
|
|
4439
|
-
|
|
4440
|
-
|
|
4441
|
-
|
|
4442
|
-
|
|
4443
|
-
|
|
4427
|
+
if (null === maybeActionKey) return null;
|
|
4428
|
+
var actionKey = maybeActionKey,
|
|
4429
|
+
action = null;
|
|
4430
|
+
if (actionKey.startsWith("$ACTION_REF_"))
|
|
4431
|
+
(actionKey = "$ACTION_" + actionKey.slice(12) + ":"),
|
|
4432
|
+
(body = decodeBoundActionMetaData(body, serverManifest, actionKey)),
|
|
4433
|
+
(action = loadServerReference(serverManifest, body));
|
|
4434
|
+
else if (actionKey.startsWith("$ACTION_ID_"))
|
|
4435
|
+
(body = actionKey.slice(11)),
|
|
4436
|
+
(action = loadServerReference(serverManifest, {
|
|
4437
|
+
id: body,
|
|
4438
|
+
bound: null
|
|
4439
|
+
}));
|
|
4440
|
+
else throw Error("Cannot handle action key. This is a bug in React.");
|
|
4441
|
+
return action.then(function (fn) {
|
|
4442
|
+
return fn.bind(null, formData);
|
|
4443
|
+
});
|
|
4444
4444
|
};
|
|
4445
4445
|
exports.decodeFormState = function (actionResult, body, serverManifest) {
|
|
4446
4446
|
var keyPath = body.get("$ACTION_KEY");
|
|
4447
4447
|
if ("string" !== typeof keyPath) return Promise.resolve(null);
|
|
4448
|
-
var
|
|
4448
|
+
var actionKey = null;
|
|
4449
4449
|
body.forEach(function (value, key) {
|
|
4450
|
-
key.startsWith("$ACTION_REF_") &&
|
|
4451
|
-
((value = "$ACTION_" + key.slice(12) + ":"),
|
|
4452
|
-
(metaData = decodeBoundActionMetaData(body, serverManifest, value)));
|
|
4450
|
+
key.startsWith("$ACTION_REF_") && (actionKey = key);
|
|
4453
4451
|
});
|
|
4454
|
-
if (null ===
|
|
4455
|
-
var
|
|
4456
|
-
|
|
4452
|
+
if (null === actionKey) return Promise.resolve(null);
|
|
4453
|
+
var formFieldPrefix = "$ACTION_" + actionKey.slice(12) + ":";
|
|
4454
|
+
body = decodeBoundActionMetaData(body, serverManifest, formFieldPrefix);
|
|
4455
|
+
var referenceId = body.id;
|
|
4456
|
+
return Promise.resolve(body.bound).then(function (bound) {
|
|
4457
4457
|
return null === bound
|
|
4458
4458
|
? null
|
|
4459
4459
|
: [actionResult, keyPath, referenceId, bound.length - 1];
|
|
@@ -924,7 +924,7 @@ function serializeAsyncIterable(request, task, iterable, iterator) {
|
|
|
924
924
|
erroredTask(request, streamTask, reason),
|
|
925
925
|
enqueueFlush(request),
|
|
926
926
|
"function" === typeof iterator.throw &&
|
|
927
|
-
iterator.throw(reason).then(
|
|
927
|
+
iterator.throw(reason).then(noop, noop));
|
|
928
928
|
}
|
|
929
929
|
function abortIterable(reason) {
|
|
930
930
|
aborted ||
|
|
@@ -933,7 +933,7 @@ function serializeAsyncIterable(request, task, iterable, iterator) {
|
|
|
933
933
|
erroredTask(request, streamTask, reason),
|
|
934
934
|
enqueueFlush(request),
|
|
935
935
|
"function" === typeof iterator.throw &&
|
|
936
|
-
iterator.throw(reason).then(
|
|
936
|
+
iterator.throw(reason).then(noop, noop));
|
|
937
937
|
}
|
|
938
938
|
iterable = iterable === iterator;
|
|
939
939
|
var streamTask = createTask(
|
|
@@ -3140,44 +3140,41 @@ exports.createTemporaryReferenceSet = function () {
|
|
|
3140
3140
|
};
|
|
3141
3141
|
exports.decodeAction = function (body, serverManifest) {
|
|
3142
3142
|
var formData = new FormData(),
|
|
3143
|
-
|
|
3144
|
-
seenActions = new Set();
|
|
3143
|
+
maybeActionKey = null;
|
|
3145
3144
|
body.forEach(function (value, key) {
|
|
3146
3145
|
key.startsWith("$ACTION_")
|
|
3147
3146
|
? key.startsWith("$ACTION_REF_")
|
|
3148
|
-
?
|
|
3149
|
-
|
|
3150
|
-
(value = "$ACTION_" + key.slice(12) + ":"),
|
|
3151
|
-
(value = decodeBoundActionMetaData(body, serverManifest, value)),
|
|
3152
|
-
(action = loadServerReference(serverManifest, value)))
|
|
3153
|
-
: key.startsWith("$ACTION_ID_") &&
|
|
3154
|
-
!seenActions.has(key) &&
|
|
3155
|
-
(seenActions.add(key),
|
|
3156
|
-
(value = key.slice(11)),
|
|
3157
|
-
(action = loadServerReference(serverManifest, {
|
|
3158
|
-
id: value,
|
|
3159
|
-
bound: null
|
|
3160
|
-
})))
|
|
3147
|
+
? (maybeActionKey = key)
|
|
3148
|
+
: key.startsWith("$ACTION_ID_") && (maybeActionKey = key)
|
|
3161
3149
|
: formData.append(key, value);
|
|
3162
3150
|
});
|
|
3163
|
-
|
|
3164
|
-
|
|
3165
|
-
|
|
3166
|
-
|
|
3167
|
-
|
|
3151
|
+
if (null === maybeActionKey) return null;
|
|
3152
|
+
var actionKey = maybeActionKey,
|
|
3153
|
+
action = null;
|
|
3154
|
+
if (actionKey.startsWith("$ACTION_REF_"))
|
|
3155
|
+
(actionKey = "$ACTION_" + actionKey.slice(12) + ":"),
|
|
3156
|
+
(body = decodeBoundActionMetaData(body, serverManifest, actionKey)),
|
|
3157
|
+
(action = loadServerReference(serverManifest, body));
|
|
3158
|
+
else if (actionKey.startsWith("$ACTION_ID_"))
|
|
3159
|
+
(body = actionKey.slice(11)),
|
|
3160
|
+
(action = loadServerReference(serverManifest, { id: body, bound: null }));
|
|
3161
|
+
else throw Error("Cannot handle action key. This is a bug in React.");
|
|
3162
|
+
return action.then(function (fn) {
|
|
3163
|
+
return fn.bind(null, formData);
|
|
3164
|
+
});
|
|
3168
3165
|
};
|
|
3169
3166
|
exports.decodeFormState = function (actionResult, body, serverManifest) {
|
|
3170
3167
|
var keyPath = body.get("$ACTION_KEY");
|
|
3171
3168
|
if ("string" !== typeof keyPath) return Promise.resolve(null);
|
|
3172
|
-
var
|
|
3169
|
+
var actionKey = null;
|
|
3173
3170
|
body.forEach(function (value, key) {
|
|
3174
|
-
key.startsWith("$ACTION_REF_") &&
|
|
3175
|
-
((value = "$ACTION_" + key.slice(12) + ":"),
|
|
3176
|
-
(metaData = decodeBoundActionMetaData(body, serverManifest, value)));
|
|
3171
|
+
key.startsWith("$ACTION_REF_") && (actionKey = key);
|
|
3177
3172
|
});
|
|
3178
|
-
if (null ===
|
|
3179
|
-
var
|
|
3180
|
-
|
|
3173
|
+
if (null === actionKey) return Promise.resolve(null);
|
|
3174
|
+
var formFieldPrefix = "$ACTION_" + actionKey.slice(12) + ":";
|
|
3175
|
+
body = decodeBoundActionMetaData(body, serverManifest, formFieldPrefix);
|
|
3176
|
+
var referenceId = body.id;
|
|
3177
|
+
return Promise.resolve(body.bound).then(function (bound) {
|
|
3181
3178
|
return null === bound
|
|
3182
3179
|
? null
|
|
3183
3180
|
: [actionResult, keyPath, referenceId, bound.length - 1];
|
|
@@ -253,13 +253,13 @@
|
|
|
253
253
|
temporaryReferences.set(reference, id);
|
|
254
254
|
return reference;
|
|
255
255
|
}
|
|
256
|
-
function noop$
|
|
256
|
+
function noop$2() {}
|
|
257
257
|
function trackUsedThenable(thenableState, thenable, index) {
|
|
258
258
|
index = thenableState[index];
|
|
259
259
|
void 0 === index
|
|
260
260
|
? thenableState.push(thenable)
|
|
261
261
|
: index !== thenable &&
|
|
262
|
-
(thenable.then(noop$
|
|
262
|
+
(thenable.then(noop$2, noop$2), (thenable = index));
|
|
263
263
|
switch (thenable.status) {
|
|
264
264
|
case "fulfilled":
|
|
265
265
|
return thenable.value;
|
|
@@ -267,7 +267,7 @@
|
|
|
267
267
|
throw thenable.reason;
|
|
268
268
|
default:
|
|
269
269
|
"string" === typeof thenable.status
|
|
270
|
-
? thenable.then(noop$
|
|
270
|
+
? thenable.then(noop$2, noop$2)
|
|
271
271
|
: ((thenableState = thenable),
|
|
272
272
|
(thenableState.status = "pending"),
|
|
273
273
|
thenableState.then(
|
|
@@ -711,7 +711,7 @@
|
|
|
711
711
|
type = createTask(this, model, null, !1, abortSet, null, null, null);
|
|
712
712
|
pingedTasks.push(type);
|
|
713
713
|
}
|
|
714
|
-
function noop() {}
|
|
714
|
+
function noop$1() {}
|
|
715
715
|
function createRequest(
|
|
716
716
|
model,
|
|
717
717
|
bundlerConfig,
|
|
@@ -733,8 +733,8 @@
|
|
|
733
733
|
temporaryReferences,
|
|
734
734
|
environmentName,
|
|
735
735
|
filterStackFrame,
|
|
736
|
-
noop,
|
|
737
|
-
noop
|
|
736
|
+
noop$1,
|
|
737
|
+
noop$1
|
|
738
738
|
);
|
|
739
739
|
}
|
|
740
740
|
function createPrerenderRequest(
|
|
@@ -933,7 +933,7 @@
|
|
|
933
933
|
erroredTask(request, streamTask, reason),
|
|
934
934
|
enqueueFlush(request),
|
|
935
935
|
"function" === typeof iterator.throw &&
|
|
936
|
-
iterator.throw(reason).then(
|
|
936
|
+
iterator.throw(reason).then(noop$1, noop$1));
|
|
937
937
|
}
|
|
938
938
|
function abortIterable(reason) {
|
|
939
939
|
aborted ||
|
|
@@ -942,7 +942,7 @@
|
|
|
942
942
|
erroredTask(request, streamTask, reason),
|
|
943
943
|
enqueueFlush(request),
|
|
944
944
|
"function" === typeof iterator.throw &&
|
|
945
|
-
iterator.throw(reason).then(
|
|
945
|
+
iterator.throw(reason).then(noop$1, noop$1));
|
|
946
946
|
}
|
|
947
947
|
var isIterator = iterable === iterator,
|
|
948
948
|
streamTask = createTask(
|
|
@@ -3966,6 +3966,7 @@
|
|
|
3966
3966
|
if ("fulfilled" !== body.status) throw body.reason;
|
|
3967
3967
|
return body.value;
|
|
3968
3968
|
}
|
|
3969
|
+
function noop() {}
|
|
3969
3970
|
var ReactDOM = require("react-dom"),
|
|
3970
3971
|
React = require("react"),
|
|
3971
3972
|
REACT_LEGACY_ELEMENT_TYPE = Symbol.for("react.element"),
|
|
@@ -4494,44 +4495,44 @@
|
|
|
4494
4495
|
};
|
|
4495
4496
|
exports.decodeAction = function (body, serverManifest) {
|
|
4496
4497
|
var formData = new FormData(),
|
|
4497
|
-
|
|
4498
|
-
seenActions = new Set();
|
|
4498
|
+
maybeActionKey = null;
|
|
4499
4499
|
body.forEach(function (value, key) {
|
|
4500
4500
|
key.startsWith("$ACTION_")
|
|
4501
4501
|
? key.startsWith("$ACTION_REF_")
|
|
4502
|
-
?
|
|
4503
|
-
|
|
4504
|
-
(value = "$ACTION_" + key.slice(12) + ":"),
|
|
4505
|
-
(value = decodeBoundActionMetaData(body, serverManifest, value)),
|
|
4506
|
-
(action = loadServerReference(serverManifest, value)))
|
|
4507
|
-
: key.startsWith("$ACTION_ID_") &&
|
|
4508
|
-
!seenActions.has(key) &&
|
|
4509
|
-
(seenActions.add(key),
|
|
4510
|
-
(value = key.slice(11)),
|
|
4511
|
-
(action = loadServerReference(serverManifest, {
|
|
4512
|
-
id: value,
|
|
4513
|
-
bound: null
|
|
4514
|
-
})))
|
|
4502
|
+
? (maybeActionKey = key)
|
|
4503
|
+
: key.startsWith("$ACTION_ID_") && (maybeActionKey = key)
|
|
4515
4504
|
: formData.append(key, value);
|
|
4516
4505
|
});
|
|
4517
|
-
|
|
4518
|
-
|
|
4519
|
-
|
|
4520
|
-
|
|
4521
|
-
|
|
4506
|
+
if (null === maybeActionKey) return null;
|
|
4507
|
+
var actionKey = maybeActionKey,
|
|
4508
|
+
action = null;
|
|
4509
|
+
if (actionKey.startsWith("$ACTION_REF_"))
|
|
4510
|
+
(actionKey = "$ACTION_" + actionKey.slice(12) + ":"),
|
|
4511
|
+
(body = decodeBoundActionMetaData(body, serverManifest, actionKey)),
|
|
4512
|
+
(action = loadServerReference(serverManifest, body));
|
|
4513
|
+
else if (actionKey.startsWith("$ACTION_ID_"))
|
|
4514
|
+
(body = actionKey.slice(11)),
|
|
4515
|
+
(action = loadServerReference(serverManifest, {
|
|
4516
|
+
id: body,
|
|
4517
|
+
bound: null
|
|
4518
|
+
}));
|
|
4519
|
+
else throw Error("Cannot handle action key. This is a bug in React.");
|
|
4520
|
+
return action.then(function (fn) {
|
|
4521
|
+
return fn.bind(null, formData);
|
|
4522
|
+
});
|
|
4522
4523
|
};
|
|
4523
4524
|
exports.decodeFormState = function (actionResult, body, serverManifest) {
|
|
4524
4525
|
var keyPath = body.get("$ACTION_KEY");
|
|
4525
4526
|
if ("string" !== typeof keyPath) return Promise.resolve(null);
|
|
4526
|
-
var
|
|
4527
|
+
var actionKey = null;
|
|
4527
4528
|
body.forEach(function (value, key) {
|
|
4528
|
-
key.startsWith("$ACTION_REF_") &&
|
|
4529
|
-
((value = "$ACTION_" + key.slice(12) + ":"),
|
|
4530
|
-
(metaData = decodeBoundActionMetaData(body, serverManifest, value)));
|
|
4529
|
+
key.startsWith("$ACTION_REF_") && (actionKey = key);
|
|
4531
4530
|
});
|
|
4532
|
-
if (null ===
|
|
4533
|
-
var
|
|
4534
|
-
|
|
4531
|
+
if (null === actionKey) return Promise.resolve(null);
|
|
4532
|
+
var formFieldPrefix = "$ACTION_" + actionKey.slice(12) + ":";
|
|
4533
|
+
body = decodeBoundActionMetaData(body, serverManifest, formFieldPrefix);
|
|
4534
|
+
var referenceId = body.id;
|
|
4535
|
+
return Promise.resolve(body.bound).then(function (bound) {
|
|
4535
4536
|
return null === bound
|
|
4536
4537
|
? null
|
|
4537
4538
|
: [actionResult, keyPath, referenceId, bound.length - 1];
|
|
@@ -4582,7 +4583,7 @@
|
|
|
4582
4583
|
function error(reason) {
|
|
4583
4584
|
reportGlobalError(response$jscomp$0, reason);
|
|
4584
4585
|
"function" === typeof iterator.throw &&
|
|
4585
|
-
iterator.throw(reason).then(
|
|
4586
|
+
iterator.throw(reason).then(noop, noop);
|
|
4586
4587
|
}
|
|
4587
4588
|
var iterator = iterable[ASYNC_ITERATOR](),
|
|
4588
4589
|
response$jscomp$0 = createResponse(
|
|
@@ -451,12 +451,12 @@ function createTemporaryReference(temporaryReferences, id) {
|
|
|
451
451
|
var SuspenseException = Error(
|
|
452
452
|
"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`."
|
|
453
453
|
);
|
|
454
|
-
function noop$
|
|
454
|
+
function noop$2() {}
|
|
455
455
|
function trackUsedThenable(thenableState, thenable, index) {
|
|
456
456
|
index = thenableState[index];
|
|
457
457
|
void 0 === index
|
|
458
458
|
? thenableState.push(thenable)
|
|
459
|
-
: index !== thenable && (thenable.then(noop$
|
|
459
|
+
: index !== thenable && (thenable.then(noop$2, noop$2), (thenable = index));
|
|
460
460
|
switch (thenable.status) {
|
|
461
461
|
case "fulfilled":
|
|
462
462
|
return thenable.value;
|
|
@@ -464,7 +464,7 @@ function trackUsedThenable(thenableState, thenable, index) {
|
|
|
464
464
|
throw thenable.reason;
|
|
465
465
|
default:
|
|
466
466
|
"string" === typeof thenable.status
|
|
467
|
-
? thenable.then(noop$
|
|
467
|
+
? thenable.then(noop$2, noop$2)
|
|
468
468
|
: ((thenableState = thenable),
|
|
469
469
|
(thenableState.status = "pending"),
|
|
470
470
|
thenableState.then(
|
|
@@ -769,7 +769,7 @@ function RequestInstance(
|
|
|
769
769
|
type = createTask(this, model, null, !1, filterStackFrame);
|
|
770
770
|
environmentName.push(type);
|
|
771
771
|
}
|
|
772
|
-
function noop() {}
|
|
772
|
+
function noop$1() {}
|
|
773
773
|
var currentRequest = null;
|
|
774
774
|
function resolveRequest() {
|
|
775
775
|
if (currentRequest) return currentRequest;
|
|
@@ -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$1, noop$1));
|
|
933
933
|
}
|
|
934
934
|
function abortIterable(reason) {
|
|
935
935
|
aborted ||
|
|
@@ -938,7 +938,7 @@ function serializeAsyncIterable(request, task, iterable, iterator) {
|
|
|
938
938
|
erroredTask(request, streamTask, reason),
|
|
939
939
|
enqueueFlush(request),
|
|
940
940
|
"function" === typeof iterator.throw &&
|
|
941
|
-
iterator.throw(reason).then(
|
|
941
|
+
iterator.throw(reason).then(noop$1, noop$1));
|
|
942
942
|
}
|
|
943
943
|
iterable = iterable === iterator;
|
|
944
944
|
var streamTask = createTask(
|
|
@@ -3141,6 +3141,7 @@ function decodeBoundActionMetaData(
|
|
|
3141
3141
|
if ("fulfilled" !== body.status) throw body.reason;
|
|
3142
3142
|
return body.value;
|
|
3143
3143
|
}
|
|
3144
|
+
function noop() {}
|
|
3144
3145
|
exports.createClientModuleProxy = function (moduleId) {
|
|
3145
3146
|
moduleId = registerClientReferenceImpl({}, moduleId, !1);
|
|
3146
3147
|
return new Proxy(moduleId, proxyHandlers$1);
|
|
@@ -3150,44 +3151,41 @@ exports.createTemporaryReferenceSet = function () {
|
|
|
3150
3151
|
};
|
|
3151
3152
|
exports.decodeAction = function (body, serverManifest) {
|
|
3152
3153
|
var formData = new FormData(),
|
|
3153
|
-
|
|
3154
|
-
seenActions = new Set();
|
|
3154
|
+
maybeActionKey = null;
|
|
3155
3155
|
body.forEach(function (value, key) {
|
|
3156
3156
|
key.startsWith("$ACTION_")
|
|
3157
3157
|
? key.startsWith("$ACTION_REF_")
|
|
3158
|
-
?
|
|
3159
|
-
|
|
3160
|
-
(value = "$ACTION_" + key.slice(12) + ":"),
|
|
3161
|
-
(value = decodeBoundActionMetaData(body, serverManifest, value)),
|
|
3162
|
-
(action = loadServerReference(serverManifest, value)))
|
|
3163
|
-
: key.startsWith("$ACTION_ID_") &&
|
|
3164
|
-
!seenActions.has(key) &&
|
|
3165
|
-
(seenActions.add(key),
|
|
3166
|
-
(value = key.slice(11)),
|
|
3167
|
-
(action = loadServerReference(serverManifest, {
|
|
3168
|
-
id: value,
|
|
3169
|
-
bound: null
|
|
3170
|
-
})))
|
|
3158
|
+
? (maybeActionKey = key)
|
|
3159
|
+
: key.startsWith("$ACTION_ID_") && (maybeActionKey = key)
|
|
3171
3160
|
: formData.append(key, value);
|
|
3172
3161
|
});
|
|
3173
|
-
|
|
3174
|
-
|
|
3175
|
-
|
|
3176
|
-
|
|
3177
|
-
|
|
3162
|
+
if (null === maybeActionKey) return null;
|
|
3163
|
+
var actionKey = maybeActionKey,
|
|
3164
|
+
action = null;
|
|
3165
|
+
if (actionKey.startsWith("$ACTION_REF_"))
|
|
3166
|
+
(actionKey = "$ACTION_" + actionKey.slice(12) + ":"),
|
|
3167
|
+
(body = decodeBoundActionMetaData(body, serverManifest, actionKey)),
|
|
3168
|
+
(action = loadServerReference(serverManifest, body));
|
|
3169
|
+
else if (actionKey.startsWith("$ACTION_ID_"))
|
|
3170
|
+
(body = actionKey.slice(11)),
|
|
3171
|
+
(action = loadServerReference(serverManifest, { id: body, bound: null }));
|
|
3172
|
+
else throw Error("Cannot handle action key. This is a bug in React.");
|
|
3173
|
+
return action.then(function (fn) {
|
|
3174
|
+
return fn.bind(null, formData);
|
|
3175
|
+
});
|
|
3178
3176
|
};
|
|
3179
3177
|
exports.decodeFormState = function (actionResult, body, serverManifest) {
|
|
3180
3178
|
var keyPath = body.get("$ACTION_KEY");
|
|
3181
3179
|
if ("string" !== typeof keyPath) return Promise.resolve(null);
|
|
3182
|
-
var
|
|
3180
|
+
var actionKey = null;
|
|
3183
3181
|
body.forEach(function (value, key) {
|
|
3184
|
-
key.startsWith("$ACTION_REF_") &&
|
|
3185
|
-
((value = "$ACTION_" + key.slice(12) + ":"),
|
|
3186
|
-
(metaData = decodeBoundActionMetaData(body, serverManifest, value)));
|
|
3182
|
+
key.startsWith("$ACTION_REF_") && (actionKey = key);
|
|
3187
3183
|
});
|
|
3188
|
-
if (null ===
|
|
3189
|
-
var
|
|
3190
|
-
|
|
3184
|
+
if (null === actionKey) return Promise.resolve(null);
|
|
3185
|
+
var formFieldPrefix = "$ACTION_" + actionKey.slice(12) + ":";
|
|
3186
|
+
body = decodeBoundActionMetaData(body, serverManifest, formFieldPrefix);
|
|
3187
|
+
var referenceId = body.id;
|
|
3188
|
+
return Promise.resolve(body.bound).then(function (bound) {
|
|
3191
3189
|
return null === bound
|
|
3192
3190
|
? null
|
|
3193
3191
|
: [actionResult, keyPath, referenceId, bound.length - 1];
|
|
@@ -3237,7 +3235,7 @@ exports.decodeReplyFromAsyncIterable = function (
|
|
|
3237
3235
|
function error(reason) {
|
|
3238
3236
|
reportGlobalError(response, reason);
|
|
3239
3237
|
"function" === typeof iterator.throw &&
|
|
3240
|
-
iterator.throw(reason).then(
|
|
3238
|
+
iterator.throw(reason).then(noop, noop);
|
|
3241
3239
|
}
|
|
3242
3240
|
var iterator = iterable[ASYNC_ITERATOR](),
|
|
3243
3241
|
response = createResponse(
|
|
@@ -3284,8 +3282,8 @@ exports.renderToReadableStream = function (model, webpackMap, options) {
|
|
|
3284
3282
|
options ? options.temporaryReferences : void 0,
|
|
3285
3283
|
void 0,
|
|
3286
3284
|
void 0,
|
|
3287
|
-
noop,
|
|
3288
|
-
noop
|
|
3285
|
+
noop$1,
|
|
3286
|
+
noop$1
|
|
3289
3287
|
);
|
|
3290
3288
|
if (options && options.signal) {
|
|
3291
3289
|
var signal = options.signal;
|
|
@@ -954,7 +954,7 @@
|
|
|
954
954
|
erroredTask(request, streamTask, reason),
|
|
955
955
|
enqueueFlush(request),
|
|
956
956
|
"function" === typeof iterator.throw &&
|
|
957
|
-
iterator.throw(reason).then(
|
|
957
|
+
iterator.throw(reason).then(noop, noop));
|
|
958
958
|
}
|
|
959
959
|
function abortIterable(reason) {
|
|
960
960
|
aborted ||
|
|
@@ -963,7 +963,7 @@
|
|
|
963
963
|
erroredTask(request, streamTask, reason),
|
|
964
964
|
enqueueFlush(request),
|
|
965
965
|
"function" === typeof iterator.throw &&
|
|
966
|
-
iterator.throw(reason).then(
|
|
966
|
+
iterator.throw(reason).then(noop, noop));
|
|
967
967
|
}
|
|
968
968
|
var isIterator = iterable === iterator,
|
|
969
969
|
streamTask = createTask(
|
|
@@ -4490,44 +4490,44 @@
|
|
|
4490
4490
|
};
|
|
4491
4491
|
exports.decodeAction = function (body, serverManifest) {
|
|
4492
4492
|
var formData = new FormData(),
|
|
4493
|
-
|
|
4494
|
-
seenActions = new Set();
|
|
4493
|
+
maybeActionKey = null;
|
|
4495
4494
|
body.forEach(function (value, key) {
|
|
4496
4495
|
key.startsWith("$ACTION_")
|
|
4497
4496
|
? key.startsWith("$ACTION_REF_")
|
|
4498
|
-
?
|
|
4499
|
-
|
|
4500
|
-
(value = "$ACTION_" + key.slice(12) + ":"),
|
|
4501
|
-
(value = decodeBoundActionMetaData(body, serverManifest, value)),
|
|
4502
|
-
(action = loadServerReference(serverManifest, value)))
|
|
4503
|
-
: key.startsWith("$ACTION_ID_") &&
|
|
4504
|
-
!seenActions.has(key) &&
|
|
4505
|
-
(seenActions.add(key),
|
|
4506
|
-
(value = key.slice(11)),
|
|
4507
|
-
(action = loadServerReference(serverManifest, {
|
|
4508
|
-
id: value,
|
|
4509
|
-
bound: null
|
|
4510
|
-
})))
|
|
4497
|
+
? (maybeActionKey = key)
|
|
4498
|
+
: key.startsWith("$ACTION_ID_") && (maybeActionKey = key)
|
|
4511
4499
|
: formData.append(key, value);
|
|
4512
4500
|
});
|
|
4513
|
-
|
|
4514
|
-
|
|
4515
|
-
|
|
4516
|
-
|
|
4517
|
-
|
|
4501
|
+
if (null === maybeActionKey) return null;
|
|
4502
|
+
var actionKey = maybeActionKey,
|
|
4503
|
+
action = null;
|
|
4504
|
+
if (actionKey.startsWith("$ACTION_REF_"))
|
|
4505
|
+
(actionKey = "$ACTION_" + actionKey.slice(12) + ":"),
|
|
4506
|
+
(body = decodeBoundActionMetaData(body, serverManifest, actionKey)),
|
|
4507
|
+
(action = loadServerReference(serverManifest, body));
|
|
4508
|
+
else if (actionKey.startsWith("$ACTION_ID_"))
|
|
4509
|
+
(body = actionKey.slice(11)),
|
|
4510
|
+
(action = loadServerReference(serverManifest, {
|
|
4511
|
+
id: body,
|
|
4512
|
+
bound: null
|
|
4513
|
+
}));
|
|
4514
|
+
else throw Error("Cannot handle action key. This is a bug in React.");
|
|
4515
|
+
return action.then(function (fn) {
|
|
4516
|
+
return fn.bind(null, formData);
|
|
4517
|
+
});
|
|
4518
4518
|
};
|
|
4519
4519
|
exports.decodeFormState = function (actionResult, body, serverManifest) {
|
|
4520
4520
|
var keyPath = body.get("$ACTION_KEY");
|
|
4521
4521
|
if ("string" !== typeof keyPath) return Promise.resolve(null);
|
|
4522
|
-
var
|
|
4522
|
+
var actionKey = null;
|
|
4523
4523
|
body.forEach(function (value, key) {
|
|
4524
|
-
key.startsWith("$ACTION_REF_") &&
|
|
4525
|
-
((value = "$ACTION_" + key.slice(12) + ":"),
|
|
4526
|
-
(metaData = decodeBoundActionMetaData(body, serverManifest, value)));
|
|
4524
|
+
key.startsWith("$ACTION_REF_") && (actionKey = key);
|
|
4527
4525
|
});
|
|
4528
|
-
if (null ===
|
|
4529
|
-
var
|
|
4530
|
-
|
|
4526
|
+
if (null === actionKey) return Promise.resolve(null);
|
|
4527
|
+
var formFieldPrefix = "$ACTION_" + actionKey.slice(12) + ":";
|
|
4528
|
+
body = decodeBoundActionMetaData(body, serverManifest, formFieldPrefix);
|
|
4529
|
+
var referenceId = body.id;
|
|
4530
|
+
return Promise.resolve(body.bound).then(function (bound) {
|
|
4531
4531
|
return null === bound
|
|
4532
4532
|
? null
|
|
4533
4533
|
: [actionResult, keyPath, referenceId, bound.length - 1];
|
|
@@ -4555,20 +4555,58 @@
|
|
|
4555
4555
|
webpackMap,
|
|
4556
4556
|
options
|
|
4557
4557
|
) {
|
|
4558
|
-
|
|
4558
|
+
function flush() {
|
|
4559
|
+
for (; null !== head; ) {
|
|
4560
|
+
var current = head;
|
|
4561
|
+
if (!current.complete) return;
|
|
4562
|
+
try {
|
|
4563
|
+
var response = response$jscomp$0,
|
|
4564
|
+
key = current.name,
|
|
4565
|
+
handle = current.file,
|
|
4566
|
+
blob = new Blob(handle.chunks, { type: handle.mime }),
|
|
4567
|
+
backingStore = response._formData;
|
|
4568
|
+
response = key;
|
|
4569
|
+
backingStore.data.append(response, blob, handle.filename);
|
|
4570
|
+
var keys = backingStore.keys;
|
|
4571
|
+
null === keys
|
|
4572
|
+
? ((backingStore.keys = Array.from(backingStore.data.keys())),
|
|
4573
|
+
(backingStore.keyPointer = 0))
|
|
4574
|
+
: keys.push(response);
|
|
4575
|
+
var queuedFields = current.queuedFields;
|
|
4576
|
+
if (null !== queuedFields)
|
|
4577
|
+
for (response = 0; response < queuedFields.length; response += 2)
|
|
4578
|
+
resolveField(
|
|
4579
|
+
response$jscomp$0,
|
|
4580
|
+
queuedFields[response],
|
|
4581
|
+
queuedFields[response + 1]
|
|
4582
|
+
);
|
|
4583
|
+
} catch (error) {
|
|
4584
|
+
busboyStream.destroy(error);
|
|
4585
|
+
return;
|
|
4586
|
+
}
|
|
4587
|
+
head = current.next;
|
|
4588
|
+
}
|
|
4589
|
+
tail = null;
|
|
4590
|
+
bodyFinished && !closed && ((closed = !0), close(response$jscomp$0));
|
|
4591
|
+
}
|
|
4592
|
+
var response$jscomp$0 = createResponse(
|
|
4559
4593
|
webpackMap,
|
|
4560
4594
|
"",
|
|
4561
4595
|
options ? options.temporaryReferences : void 0,
|
|
4562
4596
|
void 0,
|
|
4563
4597
|
options ? options.arraySizeLimit : void 0
|
|
4564
4598
|
),
|
|
4565
|
-
|
|
4566
|
-
|
|
4599
|
+
head = null,
|
|
4600
|
+
tail = null,
|
|
4601
|
+
bodyFinished = !1,
|
|
4602
|
+
closed = !1;
|
|
4567
4603
|
busboyStream.on("field", function (name, value) {
|
|
4568
|
-
if (
|
|
4604
|
+
if (null !== tail)
|
|
4605
|
+
null === tail.queuedFields && (tail.queuedFields = []),
|
|
4606
|
+
tail.queuedFields.push(name, value);
|
|
4569
4607
|
else
|
|
4570
4608
|
try {
|
|
4571
|
-
resolveField(response, name, value);
|
|
4609
|
+
resolveField(response$jscomp$0, name, value);
|
|
4572
4610
|
} catch (error) {
|
|
4573
4611
|
busboyStream.destroy(error);
|
|
4574
4612
|
}
|
|
@@ -4583,46 +4621,45 @@
|
|
|
4583
4621
|
)
|
|
4584
4622
|
);
|
|
4585
4623
|
else {
|
|
4586
|
-
|
|
4587
|
-
|
|
4624
|
+
var file = { chunks: [], filename: filename, mime: mimeType },
|
|
4625
|
+
pendingFile = {
|
|
4626
|
+
name: name,
|
|
4627
|
+
file: file,
|
|
4628
|
+
complete: !1,
|
|
4629
|
+
queuedFields: null,
|
|
4630
|
+
next: null
|
|
4631
|
+
};
|
|
4632
|
+
null === tail ? (head = pendingFile) : (tail.next = pendingFile);
|
|
4633
|
+
tail = pendingFile;
|
|
4588
4634
|
value.on("data", function (chunk) {
|
|
4589
|
-
JSCompiler_object_inline_chunks_174.push(chunk);
|
|
4590
|
-
});
|
|
4591
|
-
value.on("end", function () {
|
|
4592
4635
|
try {
|
|
4593
|
-
|
|
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);
|
|
4603
|
-
pendingFiles--;
|
|
4604
|
-
if (0 === pendingFiles) {
|
|
4605
|
-
for (blob = 0; blob < queuedFields.length; blob += 2)
|
|
4606
|
-
resolveField(
|
|
4607
|
-
response,
|
|
4608
|
-
queuedFields[blob],
|
|
4609
|
-
queuedFields[blob + 1]
|
|
4610
|
-
);
|
|
4611
|
-
queuedFields.length = 0;
|
|
4612
|
-
}
|
|
4636
|
+
file.chunks.push(chunk);
|
|
4613
4637
|
} catch (error) {
|
|
4614
4638
|
busboyStream.destroy(error);
|
|
4615
4639
|
}
|
|
4616
4640
|
});
|
|
4641
|
+
value.on("error", function (error) {
|
|
4642
|
+
busboyStream.destroy(error);
|
|
4643
|
+
});
|
|
4644
|
+
value.on("end", function () {
|
|
4645
|
+
pendingFile.complete = !0;
|
|
4646
|
+
flush();
|
|
4647
|
+
});
|
|
4617
4648
|
}
|
|
4618
4649
|
});
|
|
4619
4650
|
busboyStream.on("finish", function () {
|
|
4620
|
-
|
|
4651
|
+
bodyFinished = !0;
|
|
4652
|
+
flush();
|
|
4653
|
+
closed ||
|
|
4654
|
+
reportGlobalError(
|
|
4655
|
+
response$jscomp$0,
|
|
4656
|
+
Error("Reply finished with incomplete file part.")
|
|
4657
|
+
);
|
|
4621
4658
|
});
|
|
4622
4659
|
busboyStream.on("error", function (err) {
|
|
4623
|
-
reportGlobalError(response, err);
|
|
4660
|
+
reportGlobalError(response$jscomp$0, err);
|
|
4624
4661
|
});
|
|
4625
|
-
return getChunk(response, 0);
|
|
4662
|
+
return getChunk(response$jscomp$0, 0);
|
|
4626
4663
|
};
|
|
4627
4664
|
exports.registerClientReference = function (
|
|
4628
4665
|
proxyImplementation,
|
|
@@ -946,7 +946,7 @@ function serializeAsyncIterable(request, task, iterable, iterator) {
|
|
|
946
946
|
erroredTask(request, streamTask, reason),
|
|
947
947
|
enqueueFlush(request),
|
|
948
948
|
"function" === typeof iterator.throw &&
|
|
949
|
-
iterator.throw(reason).then(
|
|
949
|
+
iterator.throw(reason).then(noop, noop));
|
|
950
950
|
}
|
|
951
951
|
function abortIterable(reason) {
|
|
952
952
|
aborted ||
|
|
@@ -955,7 +955,7 @@ function serializeAsyncIterable(request, task, iterable, iterator) {
|
|
|
955
955
|
erroredTask(request, streamTask, reason),
|
|
956
956
|
enqueueFlush(request),
|
|
957
957
|
"function" === typeof iterator.throw &&
|
|
958
|
-
iterator.throw(reason).then(
|
|
958
|
+
iterator.throw(reason).then(noop, noop));
|
|
959
959
|
}
|
|
960
960
|
iterable = iterable === iterator;
|
|
961
961
|
var streamTask = createTask(
|
|
@@ -3206,44 +3206,41 @@ exports.createTemporaryReferenceSet = function () {
|
|
|
3206
3206
|
};
|
|
3207
3207
|
exports.decodeAction = function (body, serverManifest) {
|
|
3208
3208
|
var formData = new FormData(),
|
|
3209
|
-
|
|
3210
|
-
seenActions = new Set();
|
|
3209
|
+
maybeActionKey = null;
|
|
3211
3210
|
body.forEach(function (value, key) {
|
|
3212
3211
|
key.startsWith("$ACTION_")
|
|
3213
3212
|
? key.startsWith("$ACTION_REF_")
|
|
3214
|
-
?
|
|
3215
|
-
|
|
3216
|
-
(value = "$ACTION_" + key.slice(12) + ":"),
|
|
3217
|
-
(value = decodeBoundActionMetaData(body, serverManifest, value)),
|
|
3218
|
-
(action = loadServerReference(serverManifest, value)))
|
|
3219
|
-
: key.startsWith("$ACTION_ID_") &&
|
|
3220
|
-
!seenActions.has(key) &&
|
|
3221
|
-
(seenActions.add(key),
|
|
3222
|
-
(value = key.slice(11)),
|
|
3223
|
-
(action = loadServerReference(serverManifest, {
|
|
3224
|
-
id: value,
|
|
3225
|
-
bound: null
|
|
3226
|
-
})))
|
|
3213
|
+
? (maybeActionKey = key)
|
|
3214
|
+
: key.startsWith("$ACTION_ID_") && (maybeActionKey = key)
|
|
3227
3215
|
: formData.append(key, value);
|
|
3228
3216
|
});
|
|
3229
|
-
|
|
3230
|
-
|
|
3231
|
-
|
|
3232
|
-
|
|
3233
|
-
|
|
3217
|
+
if (null === maybeActionKey) return null;
|
|
3218
|
+
var actionKey = maybeActionKey,
|
|
3219
|
+
action = null;
|
|
3220
|
+
if (actionKey.startsWith("$ACTION_REF_"))
|
|
3221
|
+
(actionKey = "$ACTION_" + actionKey.slice(12) + ":"),
|
|
3222
|
+
(body = decodeBoundActionMetaData(body, serverManifest, actionKey)),
|
|
3223
|
+
(action = loadServerReference(serverManifest, body));
|
|
3224
|
+
else if (actionKey.startsWith("$ACTION_ID_"))
|
|
3225
|
+
(body = actionKey.slice(11)),
|
|
3226
|
+
(action = loadServerReference(serverManifest, { id: body, bound: null }));
|
|
3227
|
+
else throw Error("Cannot handle action key. This is a bug in React.");
|
|
3228
|
+
return action.then(function (fn) {
|
|
3229
|
+
return fn.bind(null, formData);
|
|
3230
|
+
});
|
|
3234
3231
|
};
|
|
3235
3232
|
exports.decodeFormState = function (actionResult, body, serverManifest) {
|
|
3236
3233
|
var keyPath = body.get("$ACTION_KEY");
|
|
3237
3234
|
if ("string" !== typeof keyPath) return Promise.resolve(null);
|
|
3238
|
-
var
|
|
3235
|
+
var actionKey = null;
|
|
3239
3236
|
body.forEach(function (value, key) {
|
|
3240
|
-
key.startsWith("$ACTION_REF_") &&
|
|
3241
|
-
((value = "$ACTION_" + key.slice(12) + ":"),
|
|
3242
|
-
(metaData = decodeBoundActionMetaData(body, serverManifest, value)));
|
|
3237
|
+
key.startsWith("$ACTION_REF_") && (actionKey = key);
|
|
3243
3238
|
});
|
|
3244
|
-
if (null ===
|
|
3245
|
-
var
|
|
3246
|
-
|
|
3239
|
+
if (null === actionKey) return Promise.resolve(null);
|
|
3240
|
+
var formFieldPrefix = "$ACTION_" + actionKey.slice(12) + ":";
|
|
3241
|
+
body = decodeBoundActionMetaData(body, serverManifest, formFieldPrefix);
|
|
3242
|
+
var referenceId = body.id;
|
|
3243
|
+
return Promise.resolve(body.bound).then(function (bound) {
|
|
3247
3244
|
return null === bound
|
|
3248
3245
|
? null
|
|
3249
3246
|
: [actionResult, keyPath, referenceId, bound.length - 1];
|
|
@@ -3267,6 +3264,43 @@ exports.decodeReply = function (body, webpackMap, options) {
|
|
|
3267
3264
|
return webpackMap;
|
|
3268
3265
|
};
|
|
3269
3266
|
exports.decodeReplyFromBusboy = function (busboyStream, webpackMap, options) {
|
|
3267
|
+
function flush() {
|
|
3268
|
+
for (; null !== head; ) {
|
|
3269
|
+
var current = head;
|
|
3270
|
+
if (!current.complete) return;
|
|
3271
|
+
try {
|
|
3272
|
+
var key = current.name,
|
|
3273
|
+
handle = current.file,
|
|
3274
|
+
blob = new Blob(handle.chunks, { type: handle.mime }),
|
|
3275
|
+
backingStore = response._formData,
|
|
3276
|
+
key$jscomp$0 = key;
|
|
3277
|
+
backingStore.data.append(key$jscomp$0, blob, handle.filename);
|
|
3278
|
+
var keys = backingStore.keys;
|
|
3279
|
+
null === keys
|
|
3280
|
+
? ((backingStore.keys = Array.from(backingStore.data.keys())),
|
|
3281
|
+
(backingStore.keyPointer = 0))
|
|
3282
|
+
: keys.push(key$jscomp$0);
|
|
3283
|
+
var queuedFields = current.queuedFields;
|
|
3284
|
+
if (null !== queuedFields)
|
|
3285
|
+
for (
|
|
3286
|
+
key$jscomp$0 = 0;
|
|
3287
|
+
key$jscomp$0 < queuedFields.length;
|
|
3288
|
+
key$jscomp$0 += 2
|
|
3289
|
+
)
|
|
3290
|
+
resolveField(
|
|
3291
|
+
response,
|
|
3292
|
+
queuedFields[key$jscomp$0],
|
|
3293
|
+
queuedFields[key$jscomp$0 + 1]
|
|
3294
|
+
);
|
|
3295
|
+
} catch (error) {
|
|
3296
|
+
busboyStream.destroy(error);
|
|
3297
|
+
return;
|
|
3298
|
+
}
|
|
3299
|
+
head = current.next;
|
|
3300
|
+
}
|
|
3301
|
+
tail = null;
|
|
3302
|
+
bodyFinished && !closed && ((closed = !0), close(response));
|
|
3303
|
+
}
|
|
3270
3304
|
var response = createResponse(
|
|
3271
3305
|
webpackMap,
|
|
3272
3306
|
"",
|
|
@@ -3274,10 +3308,14 @@ exports.decodeReplyFromBusboy = function (busboyStream, webpackMap, options) {
|
|
|
3274
3308
|
void 0,
|
|
3275
3309
|
options ? options.arraySizeLimit : void 0
|
|
3276
3310
|
),
|
|
3277
|
-
|
|
3278
|
-
|
|
3311
|
+
head = null,
|
|
3312
|
+
tail = null,
|
|
3313
|
+
bodyFinished = !1,
|
|
3314
|
+
closed = !1;
|
|
3279
3315
|
busboyStream.on("field", function (name, value) {
|
|
3280
|
-
if (
|
|
3316
|
+
if (null !== tail)
|
|
3317
|
+
null === tail.queuedFields && (tail.queuedFields = []),
|
|
3318
|
+
tail.queuedFields.push(name, value);
|
|
3281
3319
|
else
|
|
3282
3320
|
try {
|
|
3283
3321
|
resolveField(response, name, value);
|
|
@@ -3295,41 +3333,40 @@ exports.decodeReplyFromBusboy = function (busboyStream, webpackMap, options) {
|
|
|
3295
3333
|
)
|
|
3296
3334
|
);
|
|
3297
3335
|
else {
|
|
3298
|
-
|
|
3299
|
-
|
|
3336
|
+
var file = { chunks: [], filename: filename, mime: mimeType },
|
|
3337
|
+
pendingFile = {
|
|
3338
|
+
name: name,
|
|
3339
|
+
file: file,
|
|
3340
|
+
complete: !1,
|
|
3341
|
+
queuedFields: null,
|
|
3342
|
+
next: null
|
|
3343
|
+
};
|
|
3344
|
+
null === tail ? (head = pendingFile) : (tail.next = pendingFile);
|
|
3345
|
+
tail = pendingFile;
|
|
3300
3346
|
value.on("data", function (chunk) {
|
|
3301
|
-
JSCompiler_object_inline_chunks_254.push(chunk);
|
|
3302
|
-
});
|
|
3303
|
-
value.on("end", function () {
|
|
3304
3347
|
try {
|
|
3305
|
-
|
|
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);
|
|
3315
|
-
pendingFiles--;
|
|
3316
|
-
if (0 === pendingFiles) {
|
|
3317
|
-
for (blob = 0; blob < queuedFields.length; blob += 2)
|
|
3318
|
-
resolveField(
|
|
3319
|
-
response,
|
|
3320
|
-
queuedFields[blob],
|
|
3321
|
-
queuedFields[blob + 1]
|
|
3322
|
-
);
|
|
3323
|
-
queuedFields.length = 0;
|
|
3324
|
-
}
|
|
3348
|
+
file.chunks.push(chunk);
|
|
3325
3349
|
} catch (error) {
|
|
3326
3350
|
busboyStream.destroy(error);
|
|
3327
3351
|
}
|
|
3328
3352
|
});
|
|
3353
|
+
value.on("error", function (error) {
|
|
3354
|
+
busboyStream.destroy(error);
|
|
3355
|
+
});
|
|
3356
|
+
value.on("end", function () {
|
|
3357
|
+
pendingFile.complete = !0;
|
|
3358
|
+
flush();
|
|
3359
|
+
});
|
|
3329
3360
|
}
|
|
3330
3361
|
});
|
|
3331
3362
|
busboyStream.on("finish", function () {
|
|
3332
|
-
|
|
3363
|
+
bodyFinished = !0;
|
|
3364
|
+
flush();
|
|
3365
|
+
closed ||
|
|
3366
|
+
reportGlobalError(
|
|
3367
|
+
response,
|
|
3368
|
+
Error("Reply finished with incomplete file part.")
|
|
3369
|
+
);
|
|
3333
3370
|
});
|
|
3334
3371
|
busboyStream.on("error", function (err) {
|
|
3335
3372
|
reportGlobalError(response, err);
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
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.9",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react"
|
|
7
7
|
],
|
|
8
8
|
"homepage": "https://react.dev/",
|
|
9
|
-
"bugs": "https://github.com/
|
|
9
|
+
"bugs": "https://github.com/react/react/issues",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"files": [
|
|
12
12
|
"LICENSE",
|
|
@@ -77,15 +77,15 @@
|
|
|
77
77
|
"main": "index.js",
|
|
78
78
|
"repository": {
|
|
79
79
|
"type": "git",
|
|
80
|
-
"url": "https://github.com/
|
|
80
|
+
"url": "https://github.com/react/react.git",
|
|
81
81
|
"directory": "packages/react-server-dom-webpack"
|
|
82
82
|
},
|
|
83
83
|
"engines": {
|
|
84
84
|
"node": ">=0.10.0"
|
|
85
85
|
},
|
|
86
86
|
"peerDependencies": {
|
|
87
|
-
"react": "^19.1.
|
|
88
|
-
"react-dom": "^19.1.
|
|
87
|
+
"react": "^19.1.9",
|
|
88
|
+
"react-dom": "^19.1.9",
|
|
89
89
|
"webpack": "^5.59.0"
|
|
90
90
|
},
|
|
91
91
|
"dependencies": {
|