@fern-api/fern-api-dev 3.51.2-17-gde0cf0dea0e → 3.51.2-19-gd70dd5d6549
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/cli.cjs +68 -7
- package/package.json +1 -1
package/cli.cjs
CHANGED
|
@@ -1503095,7 +1503095,58 @@ var String_ = class extends AstNode {
|
|
|
1503095
1503095
|
};
|
|
1503096
1503096
|
|
|
1503097
1503097
|
// ../../../generators/csharp/codegen/lib/ast/core/XmlDocWriter.js
|
|
1503098
|
-
var XmlDocWriter = class {
|
|
1503098
|
+
var XmlDocWriter = class _XmlDocWriter {
|
|
1503099
|
+
// Tags that are safe to preserve in XML documentation comments
|
|
1503100
|
+
// Reference: https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/xmldoc/recommended-tags
|
|
1503101
|
+
static SAFE_XML_DOC_TAGS = /* @__PURE__ */ new Set([
|
|
1503102
|
+
// C# XML doc standard tags (officially documented)
|
|
1503103
|
+
"c",
|
|
1503104
|
+
"code",
|
|
1503105
|
+
"description",
|
|
1503106
|
+
"example",
|
|
1503107
|
+
"exception",
|
|
1503108
|
+
"include",
|
|
1503109
|
+
"inheritdoc",
|
|
1503110
|
+
"item",
|
|
1503111
|
+
"list",
|
|
1503112
|
+
"listheader",
|
|
1503113
|
+
"para",
|
|
1503114
|
+
"param",
|
|
1503115
|
+
"paramref",
|
|
1503116
|
+
"permission",
|
|
1503117
|
+
"remarks",
|
|
1503118
|
+
"returns",
|
|
1503119
|
+
"see",
|
|
1503120
|
+
"seealso",
|
|
1503121
|
+
"summary",
|
|
1503122
|
+
"term",
|
|
1503123
|
+
"typeparam",
|
|
1503124
|
+
"typeparamref",
|
|
1503125
|
+
"value",
|
|
1503126
|
+
// HTML formatting tags explicitly mentioned in Microsoft docs
|
|
1503127
|
+
"a",
|
|
1503128
|
+
"b",
|
|
1503129
|
+
"br",
|
|
1503130
|
+
"i",
|
|
1503131
|
+
"u",
|
|
1503132
|
+
// Additional HTML tags commonly used in practice (not officially documented
|
|
1503133
|
+
// but widely supported by documentation viewers)
|
|
1503134
|
+
"em",
|
|
1503135
|
+
"strong",
|
|
1503136
|
+
"p",
|
|
1503137
|
+
"ul",
|
|
1503138
|
+
"ol",
|
|
1503139
|
+
"li",
|
|
1503140
|
+
"pre",
|
|
1503141
|
+
"div",
|
|
1503142
|
+
"span",
|
|
1503143
|
+
"table",
|
|
1503144
|
+
"tr",
|
|
1503145
|
+
"td",
|
|
1503146
|
+
"th",
|
|
1503147
|
+
"thead",
|
|
1503148
|
+
"tbody"
|
|
1503149
|
+
]);
|
|
1503099
1503150
|
writer;
|
|
1503100
1503151
|
wrotePrefixOnCurrentLine = false;
|
|
1503101
1503152
|
constructor(writer2) {
|
|
@@ -1503187,8 +1503238,18 @@ var XmlDocWriter = class {
|
|
|
1503187
1503238
|
this.writeMultiline(text9);
|
|
1503188
1503239
|
}
|
|
1503189
1503240
|
escapeXmlDocContent(text9) {
|
|
1503190
|
-
|
|
1503191
|
-
|
|
1503241
|
+
const decoded = this.decodeHtmlEntities(text9);
|
|
1503242
|
+
const tagPattern = /<\/?([a-zA-Z][a-zA-Z0-9]*)\b[^>]*\/?>/g;
|
|
1503243
|
+
const tags = [];
|
|
1503244
|
+
const withPlaceholders = decoded.replace(tagPattern, (match3, tagName) => {
|
|
1503245
|
+
if (_XmlDocWriter.SAFE_XML_DOC_TAGS.has(tagName.toLowerCase())) {
|
|
1503246
|
+
const index3 = tags.push(match3) - 1;
|
|
1503247
|
+
return `\uE000${index3}\uE000`;
|
|
1503248
|
+
}
|
|
1503249
|
+
return match3;
|
|
1503250
|
+
});
|
|
1503251
|
+
const escaped = withPlaceholders.replaceAll("<", "<").replaceAll(">", ">");
|
|
1503252
|
+
return escaped.replace(/\uE000(\d+)\uE000/g, (_15, index3) => tags[parseInt(index3, 10)] ?? "");
|
|
1503192
1503253
|
}
|
|
1503193
1503254
|
decodeHtmlEntities(text9) {
|
|
1503194
1503255
|
const entityMap = {
|
|
@@ -1662426,7 +1662487,7 @@ var AccessTokenPosthogManager = class {
|
|
|
1662426
1662487
|
properties: {
|
|
1662427
1662488
|
...event,
|
|
1662428
1662489
|
...event.properties,
|
|
1662429
|
-
version: "3.51.2-
|
|
1662490
|
+
version: "3.51.2-19-gd70dd5d6549",
|
|
1662430
1662491
|
usingAccessToken: true
|
|
1662431
1662492
|
}
|
|
1662432
1662493
|
});
|
|
@@ -1662476,7 +1662537,7 @@ var UserPosthogManager = class {
|
|
|
1662476
1662537
|
distinctId: this.userId ?? await this.getPersistedDistinctId(),
|
|
1662477
1662538
|
event: "CLI",
|
|
1662478
1662539
|
properties: {
|
|
1662479
|
-
version: "3.51.2-
|
|
1662540
|
+
version: "3.51.2-19-gd70dd5d6549",
|
|
1662480
1662541
|
...event,
|
|
1662481
1662542
|
...event.properties,
|
|
1662482
1662543
|
usingAccessToken: false,
|
|
@@ -1695618,7 +1695679,7 @@ var CliContext = class {
|
|
|
1695618
1695679
|
if (false) {
|
|
1695619
1695680
|
this.logger.error("CLI_VERSION is not defined");
|
|
1695620
1695681
|
}
|
|
1695621
|
-
return "3.51.2-
|
|
1695682
|
+
return "3.51.2-19-gd70dd5d6549";
|
|
1695622
1695683
|
}
|
|
1695623
1695684
|
getCliName() {
|
|
1695624
1695685
|
if (false) {
|
|
@@ -1698731,7 +1698792,7 @@ var import_path54 = __toESM(require("path"), 1);
|
|
|
1698731
1698792
|
var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
|
|
1698732
1698793
|
var LOGS_FOLDER_NAME = "logs";
|
|
1698733
1698794
|
function getCliSource() {
|
|
1698734
|
-
const version7 = "3.51.2-
|
|
1698795
|
+
const version7 = "3.51.2-19-gd70dd5d6549";
|
|
1698735
1698796
|
return `cli@${version7}`;
|
|
1698736
1698797
|
}
|
|
1698737
1698798
|
var DebugLogger = class {
|
package/package.json
CHANGED