react-server-dom-parcel 19.3.0 → 19.3.1
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 +58 -45
- package/cjs/react-server-dom-parcel-client.browser.production.js +79 -64
- package/cjs/react-server-dom-parcel-client.edge.development.js +59 -42
- package/cjs/react-server-dom-parcel-client.edge.production.js +82 -67
- package/cjs/react-server-dom-parcel-client.node.development.js +59 -42
- package/cjs/react-server-dom-parcel-client.node.production.js +82 -67
- package/cjs/react-server-dom-parcel-server.browser.development.js +187 -93
- package/cjs/react-server-dom-parcel-server.browser.production.js +178 -86
- package/cjs/react-server-dom-parcel-server.edge.development.js +218 -111
- package/cjs/react-server-dom-parcel-server.edge.production.js +207 -105
- package/cjs/react-server-dom-parcel-server.node.development.js +240 -131
- package/cjs/react-server-dom-parcel-server.node.production.js +228 -123
- package/package.json +3 -3
|
@@ -57,33 +57,44 @@
|
|
|
57
57
|
(currentView = new Uint8Array(4096)),
|
|
58
58
|
(writtenBytes = 0));
|
|
59
59
|
}
|
|
60
|
-
} else
|
|
61
|
-
|
|
62
|
-
(
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
(currentView
|
|
86
|
-
(
|
|
60
|
+
} else if (0 === chunk.byteLength)
|
|
61
|
+
if (supportsArrayBufferDetached) {
|
|
62
|
+
if (chunk.buffer.detached)
|
|
63
|
+
throw Error(
|
|
64
|
+
"Cannot transport a detached buffer. This usually happens when trying to transport multiple buffer-spanning views on the same underyling buffer. Either reuse the exact same view by identity or copy the underlying buffer manually via `view.slice()`."
|
|
65
|
+
);
|
|
66
|
+
} else
|
|
67
|
+
didWarnAboutMissingArrayBufferDetached ||
|
|
68
|
+
(console.error(
|
|
69
|
+
"React encountered an empty buffer when writing in an environment that does not support ArrayBuffer.prototype.detached. This could be a security issue if the buffer was not actually empty. Please upgrade to a Node.js version that supports ArrayBuffer.prototype.detached."
|
|
70
|
+
),
|
|
71
|
+
(didWarnAboutMissingArrayBufferDetached = !0));
|
|
72
|
+
else
|
|
73
|
+
4096 < chunk.byteLength
|
|
74
|
+
? (0 < writtenBytes &&
|
|
75
|
+
(writeToDestination(
|
|
76
|
+
destination,
|
|
77
|
+
currentView.subarray(0, writtenBytes)
|
|
78
|
+
),
|
|
79
|
+
(currentView = new Uint8Array(4096)),
|
|
80
|
+
(writtenBytes = 0)),
|
|
81
|
+
writeToDestination(destination, chunk))
|
|
82
|
+
: ((target = currentView.length - writtenBytes),
|
|
83
|
+
target < chunk.byteLength &&
|
|
84
|
+
(0 === target
|
|
85
|
+
? writeToDestination(destination, currentView)
|
|
86
|
+
: (currentView.set(chunk.subarray(0, target), writtenBytes),
|
|
87
|
+
(writtenBytes += target),
|
|
88
|
+
writeToDestination(destination, currentView),
|
|
89
|
+
(chunk = chunk.subarray(target))),
|
|
90
|
+
(currentView = new Uint8Array(4096)),
|
|
91
|
+
(writtenBytes = 0)),
|
|
92
|
+
currentView.set(chunk, writtenBytes),
|
|
93
|
+
(writtenBytes += chunk.byteLength),
|
|
94
|
+
4096 === writtenBytes &&
|
|
95
|
+
(writeToDestination(destination, currentView),
|
|
96
|
+
(currentView = new Uint8Array(4096)),
|
|
97
|
+
(writtenBytes = 0)));
|
|
87
98
|
}
|
|
88
99
|
function writeToDestination(destination, view) {
|
|
89
100
|
destination = destination.write(view);
|
|
@@ -3375,13 +3386,35 @@
|
|
|
3375
3386
|
}
|
|
3376
3387
|
function emitTypedArrayChunk(request, id, tag, typedArray, debug) {
|
|
3377
3388
|
debug ? request.pendingDebugChunks++ : request.pendingChunks++;
|
|
3378
|
-
|
|
3379
|
-
|
|
3380
|
-
|
|
3381
|
-
|
|
3382
|
-
|
|
3383
|
-
|
|
3384
|
-
|
|
3389
|
+
a: {
|
|
3390
|
+
var view = new Uint8Array(
|
|
3391
|
+
typedArray.buffer,
|
|
3392
|
+
typedArray.byteOffset,
|
|
3393
|
+
typedArray.byteLength
|
|
3394
|
+
);
|
|
3395
|
+
if (4096 < typedArray.byteLength) {
|
|
3396
|
+
if (
|
|
3397
|
+
0 !== typedArray.byteOffset ||
|
|
3398
|
+
typedArray.byteLength !== typedArray.buffer.byteLength ||
|
|
3399
|
+
typedArray.buffer.resizable
|
|
3400
|
+
) {
|
|
3401
|
+
typedArray = view.slice();
|
|
3402
|
+
break a;
|
|
3403
|
+
}
|
|
3404
|
+
if (!supportsArrayBufferDetached) {
|
|
3405
|
+
didWarnAboutMissingArrayBufferDetached ||
|
|
3406
|
+
(console.error(
|
|
3407
|
+
"React copied a partial view into a fresh buffer as a safety precaution because the environment does not implement ArrayBuffer.prototype.detached. This negatively impacts performance. Please upgrade to a modern Node.js version."
|
|
3408
|
+
),
|
|
3409
|
+
(didWarnAboutMissingArrayBufferDetached = !0));
|
|
3410
|
+
typedArray = view.slice();
|
|
3411
|
+
break a;
|
|
3412
|
+
}
|
|
3413
|
+
}
|
|
3414
|
+
typedArray = view;
|
|
3415
|
+
}
|
|
3416
|
+
view = typedArray.byteLength;
|
|
3417
|
+
id = id.toString(16) + ":" + tag + view.toString(16) + ",";
|
|
3385
3418
|
debug
|
|
3386
3419
|
? request.completedDebugChunks.push(
|
|
3387
3420
|
NEXT_TWO_CHUNKS_ARE_ATOMIC,
|
|
@@ -4591,13 +4624,38 @@
|
|
|
4591
4624
|
if (hasOwnProperty.call(moduleExports, metadata[1]))
|
|
4592
4625
|
return moduleExports[metadata[1]];
|
|
4593
4626
|
}
|
|
4594
|
-
function appendBackingEntry(backingStore,
|
|
4595
|
-
backingStore.
|
|
4596
|
-
|
|
4597
|
-
|
|
4598
|
-
|
|
4599
|
-
|
|
4600
|
-
|
|
4627
|
+
function appendBackingEntry(backingStore, value, key) {
|
|
4628
|
+
var prefix = backingStore.prefix;
|
|
4629
|
+
if (key.startsWith(prefix)) {
|
|
4630
|
+
switch (key[prefix.length]) {
|
|
4631
|
+
case "_":
|
|
4632
|
+
prefix = backingStore.referencedEntries;
|
|
4633
|
+
null === prefix && (prefix = backingStore.referencedEntries = []);
|
|
4634
|
+
prefix.push([key, value]);
|
|
4635
|
+
return;
|
|
4636
|
+
case "S":
|
|
4637
|
+
"string" === typeof value &&
|
|
4638
|
+
((prefix = backingStore.streamChunks),
|
|
4639
|
+
null === prefix &&
|
|
4640
|
+
(prefix = backingStore.streamChunks = new Map()),
|
|
4641
|
+
(backingStore = prefix.get(key)),
|
|
4642
|
+
void 0 === backingStore
|
|
4643
|
+
? prefix.set(key, [value])
|
|
4644
|
+
: backingStore.push(value));
|
|
4645
|
+
return;
|
|
4646
|
+
}
|
|
4647
|
+
"string" === typeof value
|
|
4648
|
+
? ((prefix = backingStore.stringChunks),
|
|
4649
|
+
null === prefix && (prefix = backingStore.stringChunks = new Map()),
|
|
4650
|
+
prefix.set(key, value))
|
|
4651
|
+
: ((prefix = backingStore.blobs),
|
|
4652
|
+
null === prefix && (prefix = backingStore.blobs = new Map()),
|
|
4653
|
+
prefix.set(key, value));
|
|
4654
|
+
}
|
|
4655
|
+
}
|
|
4656
|
+
function getBackingBlob(backingStore, key) {
|
|
4657
|
+
backingStore = backingStore.blobs;
|
|
4658
|
+
return null === backingStore ? void 0 : backingStore.get(key);
|
|
4601
4659
|
}
|
|
4602
4660
|
function ReactPromise(status, value, reason) {
|
|
4603
4661
|
this.status = status;
|
|
@@ -4935,15 +4993,18 @@
|
|
|
4935
4993
|
function getChunk(response, id) {
|
|
4936
4994
|
var chunks = response._chunks,
|
|
4937
4995
|
chunk = chunks.get(id);
|
|
4938
|
-
chunk
|
|
4939
|
-
|
|
4940
|
-
|
|
4996
|
+
if (!chunk) {
|
|
4997
|
+
chunk = response._prefix;
|
|
4998
|
+
var stringChunks = response._formData.stringChunks;
|
|
4999
|
+
chunk = null === stringChunks ? void 0 : stringChunks.get(chunk + id);
|
|
5000
|
+
chunk =
|
|
4941
5001
|
"string" === typeof chunk
|
|
4942
5002
|
? createResolvedModelChunk(response, chunk, id)
|
|
4943
5003
|
: response._closed
|
|
4944
5004
|
? new ReactPromise("rejected", null, response._closedReason)
|
|
4945
|
-
: new ReactPromise("pending", null, null)
|
|
4946
|
-
chunks.set(id, chunk)
|
|
5005
|
+
: new ReactPromise("pending", null, null);
|
|
5006
|
+
chunks.set(id, chunk);
|
|
5007
|
+
}
|
|
4947
5008
|
return chunk;
|
|
4948
5009
|
}
|
|
4949
5010
|
function fulfillReference(response, reference, value, arrayRoot) {
|
|
@@ -5190,7 +5251,7 @@
|
|
|
5190
5251
|
Error("Already initialized typed array.")
|
|
5191
5252
|
)
|
|
5192
5253
|
);
|
|
5193
|
-
reference = response._formData
|
|
5254
|
+
reference = getBackingBlob(response._formData, key).arrayBuffer();
|
|
5194
5255
|
if (initializingHandler) {
|
|
5195
5256
|
var handler = initializingHandler;
|
|
5196
5257
|
handler.deps++;
|
|
@@ -5234,15 +5295,17 @@
|
|
|
5234
5295
|
var chunks = response._chunks;
|
|
5235
5296
|
stream = new ReactPromise("fulfilled", stream, controller);
|
|
5236
5297
|
chunks.set(id, stream);
|
|
5237
|
-
|
|
5238
|
-
|
|
5239
|
-
|
|
5240
|
-
|
|
5241
|
-
|
|
5298
|
+
chunks = response._prefix;
|
|
5299
|
+
response = response._formData.streamChunks;
|
|
5300
|
+
id = null === response ? void 0 : response.get(chunks + "S" + id);
|
|
5301
|
+
if (void 0 !== id)
|
|
5302
|
+
for (response = 0; response < id.length; response++)
|
|
5303
|
+
(chunks = id[response]),
|
|
5304
|
+
"C" === chunks[0]
|
|
5242
5305
|
? controller.close(
|
|
5243
5306
|
"C" === chunks ? '"$undefined"' : chunks.slice(1)
|
|
5244
5307
|
)
|
|
5245
|
-
: controller.enqueueModel(chunks)
|
|
5308
|
+
: controller.enqueueModel(chunks);
|
|
5246
5309
|
}
|
|
5247
5310
|
function parseReadableStream(response, reference, type) {
|
|
5248
5311
|
function enqueue(value) {
|
|
@@ -5407,7 +5470,14 @@
|
|
|
5407
5470
|
});
|
|
5408
5471
|
return iterator;
|
|
5409
5472
|
}
|
|
5410
|
-
function parseModelString(
|
|
5473
|
+
function parseModelString(
|
|
5474
|
+
response,
|
|
5475
|
+
obj,
|
|
5476
|
+
key$jscomp$0,
|
|
5477
|
+
value,
|
|
5478
|
+
reference,
|
|
5479
|
+
arrayRoot
|
|
5480
|
+
) {
|
|
5411
5481
|
if ("$" === value[0]) {
|
|
5412
5482
|
switch (value[1]) {
|
|
5413
5483
|
case "$":
|
|
@@ -5427,7 +5497,7 @@
|
|
|
5427
5497
|
response,
|
|
5428
5498
|
arrayRoot,
|
|
5429
5499
|
obj,
|
|
5430
|
-
key,
|
|
5500
|
+
key$jscomp$0,
|
|
5431
5501
|
null,
|
|
5432
5502
|
loadServerReference$1
|
|
5433
5503
|
)
|
|
@@ -5447,41 +5517,44 @@
|
|
|
5447
5517
|
case "Q":
|
|
5448
5518
|
return (
|
|
5449
5519
|
(arrayRoot = value.slice(2)),
|
|
5450
|
-
getOutlinedModel(
|
|
5520
|
+
getOutlinedModel(
|
|
5521
|
+
response,
|
|
5522
|
+
arrayRoot,
|
|
5523
|
+
obj,
|
|
5524
|
+
key$jscomp$0,
|
|
5525
|
+
null,
|
|
5526
|
+
createMap
|
|
5527
|
+
)
|
|
5451
5528
|
);
|
|
5452
5529
|
case "W":
|
|
5453
5530
|
return (
|
|
5454
5531
|
(arrayRoot = value.slice(2)),
|
|
5455
|
-
getOutlinedModel(
|
|
5532
|
+
getOutlinedModel(
|
|
5533
|
+
response,
|
|
5534
|
+
arrayRoot,
|
|
5535
|
+
obj,
|
|
5536
|
+
key$jscomp$0,
|
|
5537
|
+
null,
|
|
5538
|
+
createSet
|
|
5539
|
+
)
|
|
5456
5540
|
);
|
|
5457
5541
|
case "K":
|
|
5458
|
-
key = value.slice(2);
|
|
5459
|
-
obj = response.
|
|
5460
|
-
|
|
5461
|
-
|
|
5462
|
-
|
|
5463
|
-
|
|
5464
|
-
|
|
5465
|
-
|
|
5466
|
-
|
|
5467
|
-
(
|
|
5468
|
-
|
|
5469
|
-
|
|
5470
|
-
|
|
5471
|
-
|
|
5472
|
-
for (
|
|
5473
|
-
var referencedFormDataKey = value.slice(key.length), i = 0;
|
|
5474
|
-
i < reference.length;
|
|
5475
|
-
i++
|
|
5476
|
-
)
|
|
5477
|
-
arrayRoot.append(referencedFormDataKey, reference[i]);
|
|
5478
|
-
reference = response;
|
|
5479
|
-
reference.data.delete(value);
|
|
5480
|
-
reference.keyPointer++;
|
|
5481
|
-
} else if (value.startsWith(obj)) break;
|
|
5482
|
-
else response.keyPointer++;
|
|
5542
|
+
key$jscomp$0 = value.slice(2);
|
|
5543
|
+
obj = response._formData;
|
|
5544
|
+
response = response._prefix + "_" + key$jscomp$0 + "_";
|
|
5545
|
+
key$jscomp$0 = new FormData();
|
|
5546
|
+
arrayRoot = obj.referencedEntries;
|
|
5547
|
+
if (null !== arrayRoot) {
|
|
5548
|
+
for (value = obj.keyPointer; value < arrayRoot.length; ) {
|
|
5549
|
+
reference = arrayRoot[value];
|
|
5550
|
+
var key = reference[0];
|
|
5551
|
+
if (!key.startsWith(response)) break;
|
|
5552
|
+
key$jscomp$0.append(key.slice(response.length), reference[1]);
|
|
5553
|
+
value++;
|
|
5554
|
+
}
|
|
5555
|
+
obj.keyPointer = value;
|
|
5483
5556
|
}
|
|
5484
|
-
return
|
|
5557
|
+
return key$jscomp$0;
|
|
5485
5558
|
case "i":
|
|
5486
5559
|
return (
|
|
5487
5560
|
(arrayRoot = value.slice(2)),
|
|
@@ -5489,7 +5562,7 @@
|
|
|
5489
5562
|
response,
|
|
5490
5563
|
arrayRoot,
|
|
5491
5564
|
obj,
|
|
5492
|
-
key,
|
|
5565
|
+
key$jscomp$0,
|
|
5493
5566
|
null,
|
|
5494
5567
|
extractIterator
|
|
5495
5568
|
)
|
|
@@ -5524,7 +5597,7 @@
|
|
|
5524
5597
|
ArrayBuffer,
|
|
5525
5598
|
1,
|
|
5526
5599
|
obj,
|
|
5527
|
-
key,
|
|
5600
|
+
key$jscomp$0,
|
|
5528
5601
|
arrayRoot
|
|
5529
5602
|
);
|
|
5530
5603
|
case "O":
|
|
@@ -5534,7 +5607,7 @@
|
|
|
5534
5607
|
Int8Array,
|
|
5535
5608
|
1,
|
|
5536
5609
|
obj,
|
|
5537
|
-
key,
|
|
5610
|
+
key$jscomp$0,
|
|
5538
5611
|
arrayRoot
|
|
5539
5612
|
);
|
|
5540
5613
|
case "o":
|
|
@@ -5544,7 +5617,7 @@
|
|
|
5544
5617
|
Uint8Array,
|
|
5545
5618
|
1,
|
|
5546
5619
|
obj,
|
|
5547
|
-
key,
|
|
5620
|
+
key$jscomp$0,
|
|
5548
5621
|
arrayRoot
|
|
5549
5622
|
);
|
|
5550
5623
|
case "U":
|
|
@@ -5554,7 +5627,7 @@
|
|
|
5554
5627
|
Uint8ClampedArray,
|
|
5555
5628
|
1,
|
|
5556
5629
|
obj,
|
|
5557
|
-
key,
|
|
5630
|
+
key$jscomp$0,
|
|
5558
5631
|
arrayRoot
|
|
5559
5632
|
);
|
|
5560
5633
|
case "S":
|
|
@@ -5564,7 +5637,7 @@
|
|
|
5564
5637
|
Int16Array,
|
|
5565
5638
|
2,
|
|
5566
5639
|
obj,
|
|
5567
|
-
key,
|
|
5640
|
+
key$jscomp$0,
|
|
5568
5641
|
arrayRoot
|
|
5569
5642
|
);
|
|
5570
5643
|
case "s":
|
|
@@ -5574,7 +5647,7 @@
|
|
|
5574
5647
|
Uint16Array,
|
|
5575
5648
|
2,
|
|
5576
5649
|
obj,
|
|
5577
|
-
key,
|
|
5650
|
+
key$jscomp$0,
|
|
5578
5651
|
arrayRoot
|
|
5579
5652
|
);
|
|
5580
5653
|
case "L":
|
|
@@ -5584,7 +5657,7 @@
|
|
|
5584
5657
|
Int32Array,
|
|
5585
5658
|
4,
|
|
5586
5659
|
obj,
|
|
5587
|
-
key,
|
|
5660
|
+
key$jscomp$0,
|
|
5588
5661
|
arrayRoot
|
|
5589
5662
|
);
|
|
5590
5663
|
case "l":
|
|
@@ -5594,7 +5667,7 @@
|
|
|
5594
5667
|
Uint32Array,
|
|
5595
5668
|
4,
|
|
5596
5669
|
obj,
|
|
5597
|
-
key,
|
|
5670
|
+
key$jscomp$0,
|
|
5598
5671
|
arrayRoot
|
|
5599
5672
|
);
|
|
5600
5673
|
case "G":
|
|
@@ -5604,7 +5677,7 @@
|
|
|
5604
5677
|
Float32Array,
|
|
5605
5678
|
4,
|
|
5606
5679
|
obj,
|
|
5607
|
-
key,
|
|
5680
|
+
key$jscomp$0,
|
|
5608
5681
|
arrayRoot
|
|
5609
5682
|
);
|
|
5610
5683
|
case "g":
|
|
@@ -5614,7 +5687,7 @@
|
|
|
5614
5687
|
Float64Array,
|
|
5615
5688
|
8,
|
|
5616
5689
|
obj,
|
|
5617
|
-
key,
|
|
5690
|
+
key$jscomp$0,
|
|
5618
5691
|
arrayRoot
|
|
5619
5692
|
);
|
|
5620
5693
|
case "M":
|
|
@@ -5624,7 +5697,7 @@
|
|
|
5624
5697
|
BigInt64Array,
|
|
5625
5698
|
8,
|
|
5626
5699
|
obj,
|
|
5627
|
-
key,
|
|
5700
|
+
key$jscomp$0,
|
|
5628
5701
|
arrayRoot
|
|
5629
5702
|
);
|
|
5630
5703
|
case "m":
|
|
@@ -5634,7 +5707,7 @@
|
|
|
5634
5707
|
BigUint64Array,
|
|
5635
5708
|
8,
|
|
5636
5709
|
obj,
|
|
5637
|
-
key,
|
|
5710
|
+
key$jscomp$0,
|
|
5638
5711
|
arrayRoot
|
|
5639
5712
|
);
|
|
5640
5713
|
case "V":
|
|
@@ -5644,12 +5717,15 @@
|
|
|
5644
5717
|
DataView,
|
|
5645
5718
|
1,
|
|
5646
5719
|
obj,
|
|
5647
|
-
key,
|
|
5720
|
+
key$jscomp$0,
|
|
5648
5721
|
arrayRoot
|
|
5649
5722
|
);
|
|
5650
5723
|
case "B":
|
|
5651
5724
|
obj = parseInt(value.slice(2), 16);
|
|
5652
|
-
response =
|
|
5725
|
+
response = getBackingBlob(
|
|
5726
|
+
response._formData,
|
|
5727
|
+
response._prefix + obj
|
|
5728
|
+
);
|
|
5653
5729
|
if (!(response instanceof Blob))
|
|
5654
5730
|
throw Error("Referenced Blob is not a Blob.");
|
|
5655
5731
|
return response;
|
|
@@ -5667,7 +5743,7 @@
|
|
|
5667
5743
|
response,
|
|
5668
5744
|
value,
|
|
5669
5745
|
obj,
|
|
5670
|
-
key,
|
|
5746
|
+
key$jscomp$0,
|
|
5671
5747
|
arrayRoot,
|
|
5672
5748
|
createModel
|
|
5673
5749
|
);
|
|
@@ -5686,11 +5762,20 @@
|
|
|
5686
5762
|
: new FormData(),
|
|
5687
5763
|
arraySizeLimit =
|
|
5688
5764
|
4 < arguments.length && void 0 !== arguments[4] ? arguments[4] : 1e6,
|
|
5689
|
-
chunks = new Map()
|
|
5765
|
+
chunks = new Map(),
|
|
5766
|
+
backingStore = {
|
|
5767
|
+
prefix: formFieldPrefix,
|
|
5768
|
+
referencedEntries: null,
|
|
5769
|
+
keyPointer: 0,
|
|
5770
|
+
stringChunks: null,
|
|
5771
|
+
streamChunks: null,
|
|
5772
|
+
blobs: null
|
|
5773
|
+
};
|
|
5774
|
+
backingFormData.forEach(appendBackingEntry.bind(null, backingStore));
|
|
5690
5775
|
return {
|
|
5691
5776
|
_bundlerConfig: bundlerConfig,
|
|
5692
5777
|
_prefix: formFieldPrefix,
|
|
5693
|
-
_formData:
|
|
5778
|
+
_formData: backingStore,
|
|
5694
5779
|
_chunks: chunks,
|
|
5695
5780
|
_closed: !1,
|
|
5696
5781
|
_closedReason: null,
|
|
@@ -5700,14 +5785,26 @@
|
|
|
5700
5785
|
};
|
|
5701
5786
|
}
|
|
5702
5787
|
function resolveField(response, key, value) {
|
|
5703
|
-
appendBackingEntry(response._formData, key, value);
|
|
5704
5788
|
var prefix = response._prefix;
|
|
5705
5789
|
if (key.startsWith(prefix)) {
|
|
5706
5790
|
var chunks = response._chunks;
|
|
5707
|
-
|
|
5708
|
-
|
|
5709
|
-
|
|
5791
|
+
if ("S" === key[prefix.length]) {
|
|
5792
|
+
if (
|
|
5793
|
+
key.length > prefix.length + 1 &&
|
|
5794
|
+
((prefix = +key.slice(prefix.length + 1)),
|
|
5795
|
+
(chunks = chunks.get(prefix)))
|
|
5796
|
+
) {
|
|
5797
|
+
resolveModelChunk(response, chunks, value, prefix);
|
|
5798
|
+
return;
|
|
5799
|
+
}
|
|
5800
|
+
} else if (
|
|
5801
|
+
((prefix = +key.slice(prefix.length)), (chunks = chunks.get(prefix)))
|
|
5802
|
+
) {
|
|
5803
|
+
resolveModelChunk(response, chunks, value, prefix);
|
|
5804
|
+
return;
|
|
5805
|
+
}
|
|
5710
5806
|
}
|
|
5807
|
+
appendBackingEntry(response._formData, value, key);
|
|
5711
5808
|
}
|
|
5712
5809
|
function close(response) {
|
|
5713
5810
|
reportGlobalError(response, Error("Connection closed."));
|
|
@@ -5961,6 +6058,12 @@
|
|
|
5961
6058
|
MAYBE_ITERATOR_SYMBOL = Symbol.iterator,
|
|
5962
6059
|
ASYNC_ITERATOR = Symbol.asyncIterator,
|
|
5963
6060
|
REACT_OPTIMISTIC_KEY = Symbol.for("react.optimistic_key"),
|
|
6061
|
+
hasOwnProperty = Object.prototype.hasOwnProperty,
|
|
6062
|
+
supportsArrayBufferDetached = hasOwnProperty.call(
|
|
6063
|
+
ArrayBuffer.prototype,
|
|
6064
|
+
"detached"
|
|
6065
|
+
),
|
|
6066
|
+
didWarnAboutMissingArrayBufferDetached = !1,
|
|
5964
6067
|
scheduleMicrotask = queueMicrotask,
|
|
5965
6068
|
currentView = null,
|
|
5966
6069
|
writtenBytes = 0,
|
|
@@ -6269,7 +6372,6 @@
|
|
|
6269
6372
|
jsxPropsParents = new WeakMap(),
|
|
6270
6373
|
jsxChildrenParents = new WeakMap(),
|
|
6271
6374
|
CLIENT_REFERENCE_TAG = Symbol.for("react.client.reference"),
|
|
6272
|
-
hasOwnProperty = Object.prototype.hasOwnProperty,
|
|
6273
6375
|
doNotLimit = new WeakSet();
|
|
6274
6376
|
(function () {
|
|
6275
6377
|
async_hooks
|
|
@@ -6601,7 +6703,7 @@
|
|
|
6601
6703
|
_entry$value = _entry$value[1];
|
|
6602
6704
|
"string" === typeof _entry$value
|
|
6603
6705
|
? resolveField(response, entry, _entry$value)
|
|
6604
|
-
: appendBackingEntry(response._formData,
|
|
6706
|
+
: appendBackingEntry(response._formData, _entry$value, entry);
|
|
6605
6707
|
iterator.next().then(progress, error);
|
|
6606
6708
|
}
|
|
6607
6709
|
}
|
|
@@ -6627,26 +6729,33 @@
|
|
|
6627
6729
|
var current = head;
|
|
6628
6730
|
if (!current.complete) return;
|
|
6629
6731
|
try {
|
|
6630
|
-
var
|
|
6631
|
-
|
|
6632
|
-
|
|
6633
|
-
|
|
6634
|
-
|
|
6635
|
-
|
|
6636
|
-
|
|
6637
|
-
|
|
6638
|
-
|
|
6639
|
-
|
|
6640
|
-
|
|
6641
|
-
|
|
6732
|
+
var key = current.name,
|
|
6733
|
+
JSCompiler_temp_const = response._formData;
|
|
6734
|
+
var handle = current.file;
|
|
6735
|
+
if ("function" === typeof File)
|
|
6736
|
+
var JSCompiler_inline_result = new File(
|
|
6737
|
+
handle.chunks,
|
|
6738
|
+
handle.filename,
|
|
6739
|
+
{ type: handle.mime }
|
|
6740
|
+
);
|
|
6741
|
+
else {
|
|
6742
|
+
var scratch = new FormData();
|
|
6743
|
+
scratch.append(
|
|
6744
|
+
"file",
|
|
6745
|
+
new Blob(handle.chunks, { type: handle.mime }),
|
|
6746
|
+
handle.filename
|
|
6747
|
+
);
|
|
6748
|
+
JSCompiler_inline_result = scratch.get("file");
|
|
6749
|
+
}
|
|
6750
|
+
appendBackingEntry(
|
|
6751
|
+
JSCompiler_temp_const,
|
|
6752
|
+
JSCompiler_inline_result,
|
|
6753
|
+
key
|
|
6754
|
+
);
|
|
6642
6755
|
var queuedFields = current.queuedFields;
|
|
6643
6756
|
if (null !== queuedFields)
|
|
6644
|
-
for (
|
|
6645
|
-
resolveField(
|
|
6646
|
-
response$jscomp$0,
|
|
6647
|
-
queuedFields[response],
|
|
6648
|
-
queuedFields[response + 1]
|
|
6649
|
-
);
|
|
6757
|
+
for (var i = 0; i < queuedFields.length; i += 2)
|
|
6758
|
+
resolveField(response, queuedFields[i], queuedFields[i + 1]);
|
|
6650
6759
|
} catch (error) {
|
|
6651
6760
|
busboyStream.destroy(error);
|
|
6652
6761
|
return;
|
|
@@ -6654,9 +6763,9 @@
|
|
|
6654
6763
|
head = current.next;
|
|
6655
6764
|
}
|
|
6656
6765
|
tail = null;
|
|
6657
|
-
bodyFinished && !closed && ((closed = !0), close(response
|
|
6766
|
+
bodyFinished && !closed && ((closed = !0), close(response));
|
|
6658
6767
|
}
|
|
6659
|
-
var response
|
|
6768
|
+
var response = createResponse(
|
|
6660
6769
|
serverManifest,
|
|
6661
6770
|
"",
|
|
6662
6771
|
options ? options.temporaryReferences : void 0,
|
|
@@ -6673,7 +6782,7 @@
|
|
|
6673
6782
|
tail.queuedFields.push(name, value);
|
|
6674
6783
|
else
|
|
6675
6784
|
try {
|
|
6676
|
-
resolveField(response
|
|
6785
|
+
resolveField(response, name, value);
|
|
6677
6786
|
} catch (error) {
|
|
6678
6787
|
busboyStream.destroy(error);
|
|
6679
6788
|
}
|
|
@@ -6719,14 +6828,14 @@
|
|
|
6719
6828
|
flush();
|
|
6720
6829
|
closed ||
|
|
6721
6830
|
reportGlobalError(
|
|
6722
|
-
response
|
|
6831
|
+
response,
|
|
6723
6832
|
Error("Reply finished with incomplete file part.")
|
|
6724
6833
|
);
|
|
6725
6834
|
});
|
|
6726
6835
|
busboyStream.on("error", function (err) {
|
|
6727
|
-
reportGlobalError(response
|
|
6836
|
+
reportGlobalError(response, err);
|
|
6728
6837
|
});
|
|
6729
|
-
return getChunk(response
|
|
6838
|
+
return getChunk(response, 0);
|
|
6730
6839
|
};
|
|
6731
6840
|
exports.loadServerAction = function (id) {
|
|
6732
6841
|
var reference = resolveServerReference(serverManifest, id);
|