react-markup 0.0.0-experimental-0ff1d13b-20250507 → 0.0.0-experimental-38ef6550-20250508
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.
|
@@ -145,7 +145,7 @@
|
|
|
145
145
|
var callSite = structuredStackTrace[i],
|
|
146
146
|
_name = callSite.getFunctionName() || "<anonymous>";
|
|
147
147
|
if ("react-stack-bottom-frame" === _name) break;
|
|
148
|
-
else if (callSite.isNative()) result.push([_name, "", 0, 0]);
|
|
148
|
+
else if (callSite.isNative()) result.push([_name, "", 0, 0, 0, 0]);
|
|
149
149
|
else {
|
|
150
150
|
if (callSite.isConstructor()) _name = "new " + _name;
|
|
151
151
|
else if (!callSite.isToplevel()) {
|
|
@@ -179,8 +179,23 @@
|
|
|
179
179
|
(callSite$jscomp$0 = callSite.getEvalOrigin()) &&
|
|
180
180
|
(methodName = callSite$jscomp$0.toString() + ", <anonymous>");
|
|
181
181
|
callSite$jscomp$0 = callSite.getLineNumber() || 0;
|
|
182
|
-
|
|
183
|
-
|
|
182
|
+
result$jscomp$0 = callSite.getColumnNumber() || 0;
|
|
183
|
+
var enclosingLine =
|
|
184
|
+
"function" === typeof callSite.getEnclosingLineNumber
|
|
185
|
+
? callSite.getEnclosingLineNumber() || 0
|
|
186
|
+
: 0;
|
|
187
|
+
callSite =
|
|
188
|
+
"function" === typeof callSite.getEnclosingColumnNumber
|
|
189
|
+
? callSite.getEnclosingColumnNumber() || 0
|
|
190
|
+
: 0;
|
|
191
|
+
result.push([
|
|
192
|
+
_name,
|
|
193
|
+
methodName,
|
|
194
|
+
callSite$jscomp$0,
|
|
195
|
+
result$jscomp$0,
|
|
196
|
+
enclosingLine,
|
|
197
|
+
callSite
|
|
198
|
+
]);
|
|
184
199
|
}
|
|
185
200
|
}
|
|
186
201
|
error = (error.name || "Error") + ": " + (error.message || "");
|
|
@@ -778,7 +793,9 @@
|
|
|
778
793
|
name,
|
|
779
794
|
filename,
|
|
780
795
|
+(parsed[3] || parsed[6]),
|
|
781
|
-
+(parsed[4] || parsed[7])
|
|
796
|
+
+(parsed[4] || parsed[7]),
|
|
797
|
+
0,
|
|
798
|
+
0
|
|
782
799
|
]);
|
|
783
800
|
}
|
|
784
801
|
}
|
|
@@ -4497,41 +4514,90 @@
|
|
|
4497
4514
|
sourceMap,
|
|
4498
4515
|
line,
|
|
4499
4516
|
col,
|
|
4517
|
+
enclosingLine,
|
|
4518
|
+
enclosingCol,
|
|
4500
4519
|
environmentName
|
|
4501
4520
|
) {
|
|
4502
4521
|
name || (name = "<anonymous>");
|
|
4503
4522
|
var encodedName = JSON.stringify(name);
|
|
4504
|
-
1
|
|
4505
|
-
|
|
4506
|
-
|
|
4507
|
-
|
|
4508
|
-
|
|
4509
|
-
|
|
4510
|
-
|
|
4511
|
-
|
|
4512
|
-
|
|
4513
|
-
|
|
4514
|
-
|
|
4523
|
+
1 > enclosingLine ? (enclosingLine = 0) : enclosingLine--;
|
|
4524
|
+
1 > enclosingCol ? (enclosingCol = 0) : enclosingCol--;
|
|
4525
|
+
1 > line ? (line = 0) : line--;
|
|
4526
|
+
1 > col ? (col = 0) : col--;
|
|
4527
|
+
if (
|
|
4528
|
+
line < enclosingLine ||
|
|
4529
|
+
(line === enclosingLine && col < enclosingCol)
|
|
4530
|
+
)
|
|
4531
|
+
enclosingCol = enclosingLine = 0;
|
|
4532
|
+
1 > line
|
|
4533
|
+
? ((line = encodedName.length + 3),
|
|
4534
|
+
(enclosingCol -= line),
|
|
4535
|
+
0 > enclosingCol && (enclosingCol = 0),
|
|
4536
|
+
(col = col - enclosingCol - line - 3),
|
|
4537
|
+
0 > col && (col = 0),
|
|
4538
|
+
(encodedName =
|
|
4515
4539
|
"({" +
|
|
4516
4540
|
encodedName +
|
|
4517
|
-
":
|
|
4518
|
-
" ".repeat(
|
|
4519
|
-
"_
|
|
4541
|
+
":" +
|
|
4542
|
+
" ".repeat(enclosingCol) +
|
|
4543
|
+
"_=>" +
|
|
4544
|
+
" ".repeat(col) +
|
|
4545
|
+
"_()})"))
|
|
4546
|
+
: 1 > enclosingLine
|
|
4547
|
+
? ((enclosingCol -= encodedName.length + 3),
|
|
4548
|
+
0 > enclosingCol && (enclosingCol = 0),
|
|
4549
|
+
(encodedName =
|
|
4550
|
+
"({" +
|
|
4551
|
+
encodedName +
|
|
4552
|
+
":" +
|
|
4553
|
+
" ".repeat(enclosingCol) +
|
|
4554
|
+
"_=>" +
|
|
4555
|
+
"\n".repeat(line - enclosingLine) +
|
|
4556
|
+
" ".repeat(col) +
|
|
4557
|
+
"_()})"))
|
|
4558
|
+
: enclosingLine === line
|
|
4559
|
+
? ((col = col - enclosingCol - 3),
|
|
4560
|
+
0 > col && (col = 0),
|
|
4561
|
+
(encodedName =
|
|
4562
|
+
"\n".repeat(enclosingLine - 1) +
|
|
4563
|
+
"({" +
|
|
4564
|
+
encodedName +
|
|
4565
|
+
":\n" +
|
|
4566
|
+
" ".repeat(enclosingCol) +
|
|
4567
|
+
"_=>" +
|
|
4568
|
+
" ".repeat(col) +
|
|
4569
|
+
"_()})"))
|
|
4570
|
+
: (encodedName =
|
|
4571
|
+
"\n".repeat(enclosingLine - 1) +
|
|
4572
|
+
"({" +
|
|
4573
|
+
encodedName +
|
|
4574
|
+
":\n" +
|
|
4575
|
+
" ".repeat(enclosingCol) +
|
|
4576
|
+
"_=>" +
|
|
4577
|
+
"\n".repeat(line - enclosingLine) +
|
|
4578
|
+
" ".repeat(col) +
|
|
4579
|
+
"_()})");
|
|
4580
|
+
encodedName =
|
|
4581
|
+
1 > enclosingLine
|
|
4582
|
+
? encodedName +
|
|
4583
|
+
"\n/* This module was rendered by a Server Component. Turn on Source Maps to see the server source. */"
|
|
4584
|
+
: "/* This module was rendered by a Server Component. Turn on Source Maps to see the server source. */" +
|
|
4585
|
+
encodedName;
|
|
4520
4586
|
filename.startsWith("/") && (filename = "file://" + filename);
|
|
4521
4587
|
sourceMap
|
|
4522
|
-
? ((
|
|
4588
|
+
? ((encodedName +=
|
|
4523
4589
|
"\n//# sourceURL=rsc://React/" +
|
|
4524
4590
|
encodeURIComponent(environmentName) +
|
|
4525
4591
|
"/" +
|
|
4526
4592
|
encodeURI(filename) +
|
|
4527
4593
|
"?" +
|
|
4528
4594
|
fakeFunctionIdx++),
|
|
4529
|
-
(
|
|
4530
|
-
: (
|
|
4531
|
-
?
|
|
4532
|
-
:
|
|
4595
|
+
(encodedName += "\n//# sourceMappingURL=" + sourceMap))
|
|
4596
|
+
: (encodedName = filename
|
|
4597
|
+
? encodedName + ("\n//# sourceURL=" + encodeURI(filename))
|
|
4598
|
+
: encodedName + "\n//# sourceURL=<anonymous>");
|
|
4533
4599
|
try {
|
|
4534
|
-
var fn = (0, eval)(
|
|
4600
|
+
var fn = (0, eval)(encodedName)[name];
|
|
4535
4601
|
} catch (x) {
|
|
4536
4602
|
fn = function (_) {
|
|
4537
4603
|
return _();
|
|
@@ -4547,8 +4613,10 @@
|
|
|
4547
4613
|
if (void 0 === fn) {
|
|
4548
4614
|
fn = frame[0];
|
|
4549
4615
|
var filename = frame[1],
|
|
4550
|
-
line = frame[2]
|
|
4551
|
-
|
|
4616
|
+
line = frame[2],
|
|
4617
|
+
col = frame[3],
|
|
4618
|
+
enclosingLine = frame[4];
|
|
4619
|
+
frame = frame[5];
|
|
4552
4620
|
var findSourceMapURL = response._debugFindSourceMapURL;
|
|
4553
4621
|
findSourceMapURL = findSourceMapURL
|
|
4554
4622
|
? findSourceMapURL(filename, environmentName)
|
|
@@ -4558,6 +4626,8 @@
|
|
|
4558
4626
|
filename,
|
|
4559
4627
|
findSourceMapURL,
|
|
4560
4628
|
line,
|
|
4629
|
+
col,
|
|
4630
|
+
enclosingLine,
|
|
4561
4631
|
frame,
|
|
4562
4632
|
environmentName
|
|
4563
4633
|
);
|
|
@@ -13951,5 +14021,5 @@
|
|
|
13951
14021
|
});
|
|
13952
14022
|
});
|
|
13953
14023
|
};
|
|
13954
|
-
exports.version = "19.2.0-experimental-
|
|
14024
|
+
exports.version = "19.2.0-experimental-38ef6550-20250508";
|
|
13955
14025
|
})();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-markup",
|
|
3
|
-
"version": "0.0.0-experimental-
|
|
3
|
+
"version": "0.0.0-experimental-38ef6550-20250508",
|
|
4
4
|
"description": "React package generating embedded markup such as e-mails with support for Server Components.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"repository": {
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
},
|
|
18
18
|
"homepage": "https://react.dev/",
|
|
19
19
|
"peerDependencies": {
|
|
20
|
-
"react": "0.0.0-experimental-
|
|
20
|
+
"react": "0.0.0-experimental-38ef6550-20250508"
|
|
21
21
|
},
|
|
22
22
|
"files": [
|
|
23
23
|
"LICENSE",
|