react-server-dom-rspack 0.0.2 → 19.3.0-canary-0280004e-20260417
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-rspack-client.browser.development.js +182 -134
- package/cjs/react-server-dom-rspack-client.browser.production.js +67 -55
- package/cjs/react-server-dom-rspack-client.edge.development.js +277 -174
- package/cjs/react-server-dom-rspack-client.edge.production.js +156 -99
- package/cjs/react-server-dom-rspack-client.node.development.js +344 -187
- package/cjs/react-server-dom-rspack-client.node.production.js +187 -100
- package/cjs/react-server-dom-rspack-server.browser.development.js +633 -349
- package/cjs/react-server-dom-rspack-server.browser.production.js +650 -331
- package/cjs/react-server-dom-rspack-server.edge.development.js +633 -349
- package/cjs/react-server-dom-rspack-server.edge.production.js +650 -331
- package/cjs/react-server-dom-rspack-server.node.development.js +658 -365
- package/cjs/react-server-dom-rspack-server.node.production.js +667 -340
- package/package.json +8 -1
|
@@ -11,6 +11,18 @@
|
|
|
11
11
|
"use strict";
|
|
12
12
|
"production" !== process.env.NODE_ENV &&
|
|
13
13
|
(function () {
|
|
14
|
+
function checkEvalAvailabilityOnceDev() {
|
|
15
|
+
if (!hasConfirmedEval) {
|
|
16
|
+
hasConfirmedEval = !0;
|
|
17
|
+
try {
|
|
18
|
+
(0, eval)("null");
|
|
19
|
+
} catch ($jscomp$unused$catch) {
|
|
20
|
+
console.error(
|
|
21
|
+
"eval() is not supported in this environment. If this page was served with a `Content-Security-Policy` header, make sure that `unsafe-eval` is included. React requires eval() in development mode for various debugging features like reconstructing callstacks from a different environment.\nReact will never use eval() in production mode"
|
|
22
|
+
);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
14
26
|
function resolveClientReference(bundlerConfig, metadata) {
|
|
15
27
|
if (bundlerConfig) {
|
|
16
28
|
var moduleExports = bundlerConfig[metadata[0]];
|
|
@@ -426,6 +438,11 @@
|
|
|
426
438
|
return "$" + (iterable ? "x" : "X") + streamId.toString(16);
|
|
427
439
|
}
|
|
428
440
|
function resolveToJSON(key, value) {
|
|
441
|
+
"__proto__" === key &&
|
|
442
|
+
console.error(
|
|
443
|
+
"Expected not to serialize an object with own property `__proto__`. When parsed this property will be omitted.%s",
|
|
444
|
+
describeObjectForErrorMessage(this, key)
|
|
445
|
+
);
|
|
429
446
|
var originalValue = this[key];
|
|
430
447
|
"object" !== typeof originalValue ||
|
|
431
448
|
originalValue === value ||
|
|
@@ -670,17 +687,20 @@
|
|
|
670
687
|
if ("undefined" === typeof value) return "$undefined";
|
|
671
688
|
if ("function" === typeof value) {
|
|
672
689
|
parentReference = knownServerReferences.get(value);
|
|
673
|
-
if (void 0 !== parentReference)
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
null === formData && (formData = new FormData()),
|
|
680
|
-
(parentReference = nextPartId++),
|
|
681
|
-
formData.set(formFieldPrefix + parentReference, key),
|
|
682
|
-
"$h" + parentReference.toString(16)
|
|
690
|
+
if (void 0 !== parentReference) {
|
|
691
|
+
key = writtenObjects.get(value);
|
|
692
|
+
if (void 0 !== key) return key;
|
|
693
|
+
key = JSON.stringify(
|
|
694
|
+
{ id: parentReference.id, bound: parentReference.bound },
|
|
695
|
+
resolveToJSON
|
|
683
696
|
);
|
|
697
|
+
null === formData && (formData = new FormData());
|
|
698
|
+
parentReference = nextPartId++;
|
|
699
|
+
formData.set(formFieldPrefix + parentReference, key);
|
|
700
|
+
key = "$h" + parentReference.toString(16);
|
|
701
|
+
writtenObjects.set(value, key);
|
|
702
|
+
return key;
|
|
703
|
+
}
|
|
684
704
|
if (
|
|
685
705
|
void 0 !== temporaryReferences &&
|
|
686
706
|
-1 === key.indexOf(":") &&
|
|
@@ -729,8 +749,9 @@
|
|
|
729
749
|
pendingParts = 0,
|
|
730
750
|
formData = null,
|
|
731
751
|
writtenObjects = new WeakMap(),
|
|
732
|
-
modelRoot = root
|
|
733
|
-
|
|
752
|
+
modelRoot = root;
|
|
753
|
+
checkEvalAvailabilityOnceDev();
|
|
754
|
+
var json = serializeModel(root, 0);
|
|
734
755
|
null === formData
|
|
735
756
|
? resolve(json)
|
|
736
757
|
: (formData.set(formFieldPrefix + "0", json),
|
|
@@ -972,7 +993,8 @@
|
|
|
972
993
|
if (
|
|
973
994
|
"function" === typeof value ||
|
|
974
995
|
("string" === typeof value && 50 < value.length) ||
|
|
975
|
-
(0 !== kind && 2 !== kind)
|
|
996
|
+
(0 !== kind && 2 !== kind) ||
|
|
997
|
+
"bigint" === typeof value
|
|
976
998
|
)
|
|
977
999
|
return 1;
|
|
978
1000
|
kind = 2;
|
|
@@ -1165,7 +1187,11 @@
|
|
|
1165
1187
|
return;
|
|
1166
1188
|
}
|
|
1167
1189
|
case "function":
|
|
1168
|
-
value =
|
|
1190
|
+
value = value.name;
|
|
1191
|
+
value =
|
|
1192
|
+
"" === value || "string" !== typeof value
|
|
1193
|
+
? "() => {}"
|
|
1194
|
+
: value + "() {}";
|
|
1169
1195
|
break;
|
|
1170
1196
|
case "string":
|
|
1171
1197
|
value =
|
|
@@ -2072,7 +2098,14 @@
|
|
|
2072
2098
|
}
|
|
2073
2099
|
}
|
|
2074
2100
|
}
|
|
2075
|
-
|
|
2101
|
+
var name = path[i];
|
|
2102
|
+
if (
|
|
2103
|
+
"object" === typeof value &&
|
|
2104
|
+
null !== value &&
|
|
2105
|
+
hasOwnProperty.call(value, name)
|
|
2106
|
+
)
|
|
2107
|
+
value = value[name];
|
|
2108
|
+
else throw Error("Invalid reference.");
|
|
2076
2109
|
}
|
|
2077
2110
|
for (
|
|
2078
2111
|
;
|
|
@@ -2100,7 +2133,7 @@
|
|
|
2100
2133
|
}
|
|
2101
2134
|
}
|
|
2102
2135
|
var mappedValue = map(response, value, parentObject, key);
|
|
2103
|
-
parentObject[key] = mappedValue;
|
|
2136
|
+
"__proto__" !== key && (parentObject[key] = mappedValue);
|
|
2104
2137
|
"" === key && null === handler.value && (handler.value = mappedValue);
|
|
2105
2138
|
if (
|
|
2106
2139
|
parentObject[0] === REACT_ELEMENT_TYPE &&
|
|
@@ -2264,7 +2297,7 @@
|
|
|
2264
2297
|
metaData.id,
|
|
2265
2298
|
metaData.bound
|
|
2266
2299
|
);
|
|
2267
|
-
parentObject[key] = resolvedValue;
|
|
2300
|
+
"__proto__" !== key && (parentObject[key] = resolvedValue);
|
|
2268
2301
|
"" === key &&
|
|
2269
2302
|
null === handler.value &&
|
|
2270
2303
|
(handler.value = resolvedValue);
|
|
@@ -2523,20 +2556,21 @@
|
|
|
2523
2556
|
Object.setPrototypeOf(parentObject, model.prototype);
|
|
2524
2557
|
}
|
|
2525
2558
|
function defineLazyGetter(response, chunk, parentObject, key) {
|
|
2526
|
-
|
|
2527
|
-
|
|
2528
|
-
|
|
2529
|
-
|
|
2530
|
-
|
|
2531
|
-
|
|
2532
|
-
|
|
2533
|
-
|
|
2534
|
-
|
|
2535
|
-
|
|
2536
|
-
|
|
2537
|
-
|
|
2538
|
-
|
|
2539
|
-
|
|
2559
|
+
"__proto__" !== key &&
|
|
2560
|
+
Object.defineProperty(parentObject, key, {
|
|
2561
|
+
get: function () {
|
|
2562
|
+
"resolved_model" === chunk.status && initializeModelChunk(chunk);
|
|
2563
|
+
switch (chunk.status) {
|
|
2564
|
+
case "fulfilled":
|
|
2565
|
+
return chunk.value;
|
|
2566
|
+
case "rejected":
|
|
2567
|
+
throw chunk.reason;
|
|
2568
|
+
}
|
|
2569
|
+
return "This object has been omitted by React in the console log to avoid sending too much data from the server. Try logging smaller or more specific objects.";
|
|
2570
|
+
},
|
|
2571
|
+
enumerable: !0,
|
|
2572
|
+
configurable: !1
|
|
2573
|
+
});
|
|
2540
2574
|
return null;
|
|
2541
2575
|
}
|
|
2542
2576
|
function extractIterator(response, model) {
|
|
@@ -2740,13 +2774,14 @@
|
|
|
2740
2774
|
? ref.value
|
|
2741
2775
|
: defineLazyGetter(response, ref, parentObject, key);
|
|
2742
2776
|
}
|
|
2743
|
-
|
|
2744
|
-
|
|
2745
|
-
|
|
2746
|
-
|
|
2747
|
-
|
|
2748
|
-
|
|
2749
|
-
|
|
2777
|
+
"__proto__" !== key &&
|
|
2778
|
+
Object.defineProperty(parentObject, key, {
|
|
2779
|
+
get: function () {
|
|
2780
|
+
return "This object has been omitted by React in the console log to avoid sending too much data from the server. Try logging smaller or more specific objects.";
|
|
2781
|
+
},
|
|
2782
|
+
enumerable: !0,
|
|
2783
|
+
configurable: !1
|
|
2784
|
+
});
|
|
2750
2785
|
return null;
|
|
2751
2786
|
default:
|
|
2752
2787
|
return (
|
|
@@ -3316,9 +3351,10 @@
|
|
|
3316
3351
|
try {
|
|
3317
3352
|
var fn = (0, eval)(encodedName)[name];
|
|
3318
3353
|
} catch (x) {
|
|
3319
|
-
fn = function (_) {
|
|
3354
|
+
(fn = function (_) {
|
|
3320
3355
|
return _();
|
|
3321
|
-
}
|
|
3356
|
+
}),
|
|
3357
|
+
Object.defineProperty(fn, "name", { value: name });
|
|
3322
3358
|
}
|
|
3323
3359
|
return fn;
|
|
3324
3360
|
}
|
|
@@ -4574,83 +4610,85 @@
|
|
|
4574
4610
|
}
|
|
4575
4611
|
function createFromJSONCallback(response) {
|
|
4576
4612
|
return function (key, value) {
|
|
4577
|
-
if ("
|
|
4578
|
-
|
|
4579
|
-
|
|
4580
|
-
if (
|
|
4581
|
-
|
|
4582
|
-
|
|
4583
|
-
|
|
4584
|
-
|
|
4585
|
-
|
|
4586
|
-
|
|
4587
|
-
|
|
4588
|
-
|
|
4589
|
-
|
|
4590
|
-
|
|
4591
|
-
|
|
4592
|
-
|
|
4593
|
-
|
|
4594
|
-
|
|
4595
|
-
|
|
4596
|
-
|
|
4597
|
-
|
|
4598
|
-
|
|
4599
|
-
|
|
4600
|
-
|
|
4601
|
-
|
|
4602
|
-
|
|
4603
|
-
|
|
4604
|
-
|
|
4605
|
-
|
|
4606
|
-
|
|
4607
|
-
|
|
4608
|
-
|
|
4609
|
-
|
|
4610
|
-
|
|
4611
|
-
|
|
4612
|
-
|
|
4613
|
-
|
|
4614
|
-
|
|
4615
|
-
|
|
4616
|
-
|
|
4617
|
-
|
|
4618
|
-
|
|
4619
|
-
|
|
4620
|
-
|
|
4621
|
-
|
|
4622
|
-
|
|
4623
|
-
|
|
4624
|
-
|
|
4625
|
-
|
|
4626
|
-
|
|
4627
|
-
|
|
4628
|
-
|
|
4629
|
-
|
|
4630
|
-
|
|
4631
|
-
|
|
4632
|
-
|
|
4633
|
-
|
|
4634
|
-
|
|
4635
|
-
|
|
4636
|
-
|
|
4637
|
-
|
|
4638
|
-
|
|
4639
|
-
|
|
4640
|
-
|
|
4641
|
-
|
|
4642
|
-
|
|
4643
|
-
|
|
4644
|
-
|
|
4613
|
+
if ("__proto__" !== key) {
|
|
4614
|
+
if ("string" === typeof value)
|
|
4615
|
+
return parseModelString(response, this, key, value);
|
|
4616
|
+
if ("object" === typeof value && null !== value) {
|
|
4617
|
+
if (value[0] === REACT_ELEMENT_TYPE)
|
|
4618
|
+
b: {
|
|
4619
|
+
var owner = value[4],
|
|
4620
|
+
stack = value[5];
|
|
4621
|
+
key = value[6];
|
|
4622
|
+
value = {
|
|
4623
|
+
$$typeof: REACT_ELEMENT_TYPE,
|
|
4624
|
+
type: value[1],
|
|
4625
|
+
key: value[2],
|
|
4626
|
+
props: value[3],
|
|
4627
|
+
_owner: void 0 === owner ? null : owner
|
|
4628
|
+
};
|
|
4629
|
+
Object.defineProperty(value, "ref", {
|
|
4630
|
+
enumerable: !1,
|
|
4631
|
+
get: nullRefGetter
|
|
4632
|
+
});
|
|
4633
|
+
value._store = {};
|
|
4634
|
+
Object.defineProperty(value._store, "validated", {
|
|
4635
|
+
configurable: !1,
|
|
4636
|
+
enumerable: !1,
|
|
4637
|
+
writable: !0,
|
|
4638
|
+
value: key
|
|
4639
|
+
});
|
|
4640
|
+
Object.defineProperty(value, "_debugInfo", {
|
|
4641
|
+
configurable: !1,
|
|
4642
|
+
enumerable: !1,
|
|
4643
|
+
writable: !0,
|
|
4644
|
+
value: null
|
|
4645
|
+
});
|
|
4646
|
+
Object.defineProperty(value, "_debugStack", {
|
|
4647
|
+
configurable: !1,
|
|
4648
|
+
enumerable: !1,
|
|
4649
|
+
writable: !0,
|
|
4650
|
+
value: void 0 === stack ? null : stack
|
|
4651
|
+
});
|
|
4652
|
+
Object.defineProperty(value, "_debugTask", {
|
|
4653
|
+
configurable: !1,
|
|
4654
|
+
enumerable: !1,
|
|
4655
|
+
writable: !0,
|
|
4656
|
+
value: null
|
|
4657
|
+
});
|
|
4658
|
+
if (null !== initializingHandler) {
|
|
4659
|
+
owner = initializingHandler;
|
|
4660
|
+
initializingHandler = owner.parent;
|
|
4661
|
+
if (owner.errored) {
|
|
4662
|
+
stack = new ReactPromise("rejected", null, owner.reason);
|
|
4663
|
+
initializeElement(response, value, null);
|
|
4664
|
+
owner = {
|
|
4665
|
+
name: getComponentNameFromType(value.type) || "",
|
|
4666
|
+
owner: value._owner
|
|
4667
|
+
};
|
|
4668
|
+
owner.debugStack = value._debugStack;
|
|
4669
|
+
supportsCreateTask && (owner.debugTask = value._debugTask);
|
|
4670
|
+
stack._debugInfo = [owner];
|
|
4671
|
+
key = createLazyChunkWrapper(stack, key);
|
|
4672
|
+
break b;
|
|
4673
|
+
}
|
|
4674
|
+
if (0 < owner.deps) {
|
|
4675
|
+
stack = new ReactPromise("blocked", null, null);
|
|
4676
|
+
owner.value = value;
|
|
4677
|
+
owner.chunk = stack;
|
|
4678
|
+
key = createLazyChunkWrapper(stack, key);
|
|
4679
|
+
value = initializeElement.bind(null, response, value, key);
|
|
4680
|
+
stack.then(value, value);
|
|
4681
|
+
break b;
|
|
4682
|
+
}
|
|
4645
4683
|
}
|
|
4684
|
+
initializeElement(response, value, null);
|
|
4685
|
+
key = value;
|
|
4646
4686
|
}
|
|
4647
|
-
|
|
4648
|
-
|
|
4649
|
-
|
|
4650
|
-
|
|
4651
|
-
return key;
|
|
4687
|
+
else key = value;
|
|
4688
|
+
return key;
|
|
4689
|
+
}
|
|
4690
|
+
return value;
|
|
4652
4691
|
}
|
|
4653
|
-
return value;
|
|
4654
4692
|
};
|
|
4655
4693
|
}
|
|
4656
4694
|
function close(weakResponse) {
|
|
@@ -4681,17 +4719,28 @@
|
|
|
4681
4719
|
}
|
|
4682
4720
|
function createResponseFromOptions(options) {
|
|
4683
4721
|
var debugChannel =
|
|
4684
|
-
|
|
4685
|
-
|
|
4686
|
-
|
|
4687
|
-
|
|
4688
|
-
|
|
4689
|
-
|
|
4690
|
-
|
|
4691
|
-
|
|
4692
|
-
|
|
4693
|
-
|
|
4694
|
-
|
|
4722
|
+
options && void 0 !== options.debugChannel
|
|
4723
|
+
? {
|
|
4724
|
+
hasReadable: void 0 !== options.debugChannel.readable,
|
|
4725
|
+
callback:
|
|
4726
|
+
void 0 !== options.debugChannel.writable
|
|
4727
|
+
? createDebugCallbackFromWritableStream(
|
|
4728
|
+
options.debugChannel.writable
|
|
4729
|
+
)
|
|
4730
|
+
: null
|
|
4731
|
+
}
|
|
4732
|
+
: void 0,
|
|
4733
|
+
temporaryReferences =
|
|
4734
|
+
options && options.temporaryReferences
|
|
4735
|
+
? options.temporaryReferences
|
|
4736
|
+
: void 0,
|
|
4737
|
+
replayConsole = options ? !1 !== options.replayConsoleLogs : !0,
|
|
4738
|
+
environmentName =
|
|
4739
|
+
options && options.environmentName ? options.environmentName : void 0,
|
|
4740
|
+
debugStartTime =
|
|
4741
|
+
options && null != options.startTime ? options.startTime : void 0;
|
|
4742
|
+
options = options && null != options.endTime ? options.endTime : void 0;
|
|
4743
|
+
checkEvalAvailabilityOnceDev();
|
|
4695
4744
|
return new ResponseInstance(
|
|
4696
4745
|
null,
|
|
4697
4746
|
null,
|
|
@@ -4699,14 +4748,12 @@
|
|
|
4699
4748
|
callCurrentServerCallback,
|
|
4700
4749
|
void 0,
|
|
4701
4750
|
void 0,
|
|
4702
|
-
|
|
4703
|
-
? options.temporaryReferences
|
|
4704
|
-
: void 0,
|
|
4751
|
+
temporaryReferences,
|
|
4705
4752
|
callCurrentFindSourceMapURLCallback,
|
|
4706
|
-
|
|
4707
|
-
|
|
4708
|
-
|
|
4709
|
-
options
|
|
4753
|
+
replayConsole,
|
|
4754
|
+
environmentName,
|
|
4755
|
+
debugStartTime,
|
|
4756
|
+
options,
|
|
4710
4757
|
debugChannel
|
|
4711
4758
|
)._weakResponse;
|
|
4712
4759
|
}
|
|
@@ -4845,6 +4892,7 @@
|
|
|
4845
4892
|
ReactDOM = require("react-dom"),
|
|
4846
4893
|
decoderOptions = { stream: !0 },
|
|
4847
4894
|
bind = Function.prototype.bind,
|
|
4895
|
+
hasConfirmedEval = !1,
|
|
4848
4896
|
hasOwnProperty = Object.prototype.hasOwnProperty,
|
|
4849
4897
|
chunkCache = new Map(),
|
|
4850
4898
|
chunkMap = new Map(),
|
|
@@ -5063,10 +5111,10 @@
|
|
|
5063
5111
|
return hook.checkDCE ? !0 : !1;
|
|
5064
5112
|
})({
|
|
5065
5113
|
bundleType: 1,
|
|
5066
|
-
version: "19.3.0-canary-
|
|
5114
|
+
version: "19.3.0-canary-0280004e-20260417",
|
|
5067
5115
|
rendererPackageName: "react-server-dom-rspack",
|
|
5068
5116
|
currentDispatcherRef: ReactSharedInternals,
|
|
5069
|
-
reconcilerVersion: "19.3.0-canary-
|
|
5117
|
+
reconcilerVersion: "19.3.0-canary-0280004e-20260417",
|
|
5070
5118
|
getCurrentComponentInfo: function () {
|
|
5071
5119
|
return currentOwnerInDEV;
|
|
5072
5120
|
}
|
|
@@ -442,17 +442,20 @@ function processReply(
|
|
|
442
442
|
if ("undefined" === typeof value) return "$undefined";
|
|
443
443
|
if ("function" === typeof value) {
|
|
444
444
|
parentReference = knownServerReferences.get(value);
|
|
445
|
-
if (void 0 !== parentReference)
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
null === formData && (formData = new FormData()),
|
|
452
|
-
(parentReference = nextPartId++),
|
|
453
|
-
formData.set(formFieldPrefix + parentReference, key),
|
|
454
|
-
"$h" + parentReference.toString(16)
|
|
445
|
+
if (void 0 !== parentReference) {
|
|
446
|
+
key = writtenObjects.get(value);
|
|
447
|
+
if (void 0 !== key) return key;
|
|
448
|
+
key = JSON.stringify(
|
|
449
|
+
{ id: parentReference.id, bound: parentReference.bound },
|
|
450
|
+
resolveToJSON
|
|
455
451
|
);
|
|
452
|
+
null === formData && (formData = new FormData());
|
|
453
|
+
parentReference = nextPartId++;
|
|
454
|
+
formData.set(formFieldPrefix + parentReference, key);
|
|
455
|
+
key = "$h" + parentReference.toString(16);
|
|
456
|
+
writtenObjects.set(value, key);
|
|
457
|
+
return key;
|
|
458
|
+
}
|
|
456
459
|
if (
|
|
457
460
|
void 0 !== temporaryReferences &&
|
|
458
461
|
-1 === key.indexOf(":") &&
|
|
@@ -875,7 +878,14 @@ function fulfillReference(response, reference, value) {
|
|
|
875
878
|
}
|
|
876
879
|
}
|
|
877
880
|
}
|
|
878
|
-
|
|
881
|
+
var name = path[i];
|
|
882
|
+
if (
|
|
883
|
+
"object" === typeof value &&
|
|
884
|
+
null !== value &&
|
|
885
|
+
hasOwnProperty.call(value, name)
|
|
886
|
+
)
|
|
887
|
+
value = value[name];
|
|
888
|
+
else throw Error("Invalid reference.");
|
|
879
889
|
}
|
|
880
890
|
for (
|
|
881
891
|
;
|
|
@@ -884,26 +894,26 @@ function fulfillReference(response, reference, value) {
|
|
|
884
894
|
value.$$typeof === REACT_LAZY_TYPE;
|
|
885
895
|
|
|
886
896
|
) {
|
|
887
|
-
var referencedChunk$
|
|
888
|
-
if (referencedChunk$
|
|
897
|
+
var referencedChunk$44 = value._payload;
|
|
898
|
+
if (referencedChunk$44 === handler.chunk) value = handler.value;
|
|
889
899
|
else {
|
|
890
|
-
switch (referencedChunk$
|
|
900
|
+
switch (referencedChunk$44.status) {
|
|
891
901
|
case "resolved_model":
|
|
892
|
-
initializeModelChunk(referencedChunk$
|
|
902
|
+
initializeModelChunk(referencedChunk$44);
|
|
893
903
|
break;
|
|
894
904
|
case "resolved_module":
|
|
895
|
-
initializeModuleChunk(referencedChunk$
|
|
905
|
+
initializeModuleChunk(referencedChunk$44);
|
|
896
906
|
}
|
|
897
|
-
switch (referencedChunk$
|
|
907
|
+
switch (referencedChunk$44.status) {
|
|
898
908
|
case "fulfilled":
|
|
899
|
-
value = referencedChunk$
|
|
909
|
+
value = referencedChunk$44.value;
|
|
900
910
|
continue;
|
|
901
911
|
}
|
|
902
912
|
break;
|
|
903
913
|
}
|
|
904
914
|
}
|
|
905
915
|
var mappedValue = map(response, value, parentObject, key);
|
|
906
|
-
parentObject[key] = mappedValue;
|
|
916
|
+
"__proto__" !== key && (parentObject[key] = mappedValue);
|
|
907
917
|
"" === key && null === handler.value && (handler.value = mappedValue);
|
|
908
918
|
if (
|
|
909
919
|
parentObject[0] === REACT_ELEMENT_TYPE &&
|
|
@@ -1014,7 +1024,7 @@ function loadServerReference(response, metaData, parentObject, key) {
|
|
|
1014
1024
|
resolvedValue = resolvedValue.bind.apply(resolvedValue, boundArgs);
|
|
1015
1025
|
}
|
|
1016
1026
|
registerBoundServerReference(resolvedValue, metaData.id, metaData.bound);
|
|
1017
|
-
parentObject[key] = resolvedValue;
|
|
1027
|
+
"__proto__" !== key && (parentObject[key] = resolvedValue);
|
|
1018
1028
|
"" === key && null === handler.value && (handler.value = resolvedValue);
|
|
1019
1029
|
if (
|
|
1020
1030
|
parentObject[0] === REACT_ELEMENT_TYPE &&
|
|
@@ -1419,8 +1429,8 @@ function startReadableStream(response, id, type) {
|
|
|
1419
1429
|
(previousBlockedChunk = chunk));
|
|
1420
1430
|
} else {
|
|
1421
1431
|
chunk = previousBlockedChunk;
|
|
1422
|
-
var chunk$
|
|
1423
|
-
chunk$
|
|
1432
|
+
var chunk$55 = new ReactPromise("pending", null, null);
|
|
1433
|
+
chunk$55.then(
|
|
1424
1434
|
function (v) {
|
|
1425
1435
|
return controller.enqueue(v);
|
|
1426
1436
|
},
|
|
@@ -1428,10 +1438,10 @@ function startReadableStream(response, id, type) {
|
|
|
1428
1438
|
return controller.error(e);
|
|
1429
1439
|
}
|
|
1430
1440
|
);
|
|
1431
|
-
previousBlockedChunk = chunk$
|
|
1441
|
+
previousBlockedChunk = chunk$55;
|
|
1432
1442
|
chunk.then(function () {
|
|
1433
|
-
previousBlockedChunk === chunk$
|
|
1434
|
-
resolveModelChunk(response, chunk$
|
|
1443
|
+
previousBlockedChunk === chunk$55 && (previousBlockedChunk = null);
|
|
1444
|
+
resolveModelChunk(response, chunk$55, json);
|
|
1435
1445
|
});
|
|
1436
1446
|
}
|
|
1437
1447
|
},
|
|
@@ -1592,8 +1602,8 @@ function mergeBuffer(buffer, lastChunk) {
|
|
|
1592
1602
|
for (var l = buffer.length, byteLength = lastChunk.length, i = 0; i < l; i++)
|
|
1593
1603
|
byteLength += buffer[i].byteLength;
|
|
1594
1604
|
byteLength = new Uint8Array(byteLength);
|
|
1595
|
-
for (var i$
|
|
1596
|
-
var chunk = buffer[i$
|
|
1605
|
+
for (var i$56 = (i = 0); i$56 < l; i$56++) {
|
|
1606
|
+
var chunk = buffer[i$56];
|
|
1597
1607
|
byteLength.set(chunk, i);
|
|
1598
1608
|
i += chunk.byteLength;
|
|
1599
1609
|
}
|
|
@@ -1771,37 +1781,39 @@ function processFullBinaryRow(response, streamState, id, tag, buffer, chunk) {
|
|
|
1771
1781
|
}
|
|
1772
1782
|
function createFromJSONCallback(response) {
|
|
1773
1783
|
return function (key, value) {
|
|
1774
|
-
if ("
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
if (
|
|
1778
|
-
if (
|
|
1779
|
-
((key = {
|
|
1780
|
-
$$typeof: REACT_ELEMENT_TYPE,
|
|
1781
|
-
type: value[1],
|
|
1782
|
-
key: value[2],
|
|
1783
|
-
ref: null,
|
|
1784
|
-
props: value[3]
|
|
1785
|
-
}),
|
|
1786
|
-
null !== initializingHandler)
|
|
1787
|
-
)
|
|
1784
|
+
if ("__proto__" !== key) {
|
|
1785
|
+
if ("string" === typeof value)
|
|
1786
|
+
return parseModelString(response, this, key, value);
|
|
1787
|
+
if ("object" === typeof value && null !== value) {
|
|
1788
|
+
if (value[0] === REACT_ELEMENT_TYPE) {
|
|
1788
1789
|
if (
|
|
1789
|
-
((
|
|
1790
|
-
|
|
1791
|
-
|
|
1790
|
+
((key = {
|
|
1791
|
+
$$typeof: REACT_ELEMENT_TYPE,
|
|
1792
|
+
type: value[1],
|
|
1793
|
+
key: value[2],
|
|
1794
|
+
ref: null,
|
|
1795
|
+
props: value[3]
|
|
1796
|
+
}),
|
|
1797
|
+
null !== initializingHandler)
|
|
1792
1798
|
)
|
|
1793
|
-
|
|
1794
|
-
(
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1799
|
+
if (
|
|
1800
|
+
((value = initializingHandler),
|
|
1801
|
+
(initializingHandler = value.parent),
|
|
1802
|
+
value.errored)
|
|
1803
|
+
)
|
|
1804
|
+
(key = new ReactPromise("rejected", null, value.reason)),
|
|
1805
|
+
(key = createLazyChunkWrapper(key));
|
|
1806
|
+
else if (0 < value.deps) {
|
|
1807
|
+
var blockedChunk = new ReactPromise("blocked", null, null);
|
|
1808
|
+
value.value = key;
|
|
1809
|
+
value.chunk = blockedChunk;
|
|
1810
|
+
key = createLazyChunkWrapper(blockedChunk);
|
|
1811
|
+
}
|
|
1812
|
+
} else key = value;
|
|
1813
|
+
return key;
|
|
1814
|
+
}
|
|
1815
|
+
return value;
|
|
1803
1816
|
}
|
|
1804
|
-
return value;
|
|
1805
1817
|
};
|
|
1806
1818
|
}
|
|
1807
1819
|
function close(weakResponse) {
|