Skip to content

Commit 72d81e4

Browse files
committed
chore: quarto build-js
1 parent cc92c8a commit 72d81e4

File tree

4 files changed

+63
-33
lines changed

4 files changed

+63
-33
lines changed

src/resources/editor/tools/vs-code.mjs

Lines changed: 29 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -16059,7 +16059,7 @@ var require_yaml_intelligence_resources = __commonJS({
1605916059
schema: "string",
1606016060
description: {
1606116061
short: "A regular expression that can be used to determine whether a link is an internal link.",
16062-
long: "A regular expression that can be used to determine whether a link is an internal link. For example, \nthe following will treat links that start with http://www.quarto.org as internal links (and others\nwill be considered external):\n\n```\n^(?:http:|https:)\\/\\/www\\.quarto\\.org\\/custom\n```\n"
16062+
long: "A regular expression that can be used to determine whether a link is an internal link. For example, \nthe following will treat links that start with `http://www.quarto.org/custom` or `https://www.quarto.org/custom`\nas internal links (and others will be considered external):\n\n```\n^(?:http:|https:)\\/\\/www\\.quarto\\.org\\/custom\n```\n"
1606316063
}
1606416064
},
1606516065
{
@@ -21651,7 +21651,7 @@ var require_yaml_intelligence_resources = __commonJS({
2165121651
"Short/abbreviated form of container-title;",
2165221652
"A minor contributor to the item; typically cited using \u201Cwith\u201D before\nthe name when listed in a bibliography.",
2165321653
"Curator of an exhibit or collection (e.g. in a museum).",
21654-
"Physical (e.g. size) or temporal (e.g.\uFFFD\uFFFDrunning time) dimensions of\nthe item.",
21654+
"Physical (e.g. size) or temporal (e.g. running time) dimensions of\nthe item.",
2165521655
"Director (e.g. of a film).",
2165621656
"Minor subdivision of a court with a <code>jurisdiction</code> for a\nlegal item",
2165721657
"(Container) edition holding the item (e.g.&nbsp;\u201C3\u201D when citing a chapter\nin the third edition of a book).",
@@ -24817,8 +24817,8 @@ function mappedIndexToLineCol(eitherText) {
2481724817
};
2481824818
}
2481924819
function mappedLines(str2, keepNewLines = false) {
24820-
const lines3 = rangedLines(str2.value, keepNewLines);
24821-
return lines3.map((v) => mappedString(str2, [v.range]));
24820+
const lines2 = rangedLines(str2.value, keepNewLines);
24821+
return lines2.map((v) => mappedString(str2, [v.range]));
2482224822
}
2482324823

2482424824
// parsing.ts
@@ -30795,6 +30795,27 @@ function createLocalizedError(obj) {
3079530795
};
3079630796
}
3079730797

30798+
// ../is-circular.ts
30799+
var isCircular = (obj) => {
30800+
const objectSet = /* @__PURE__ */ new WeakSet();
30801+
const detect = (obj2) => {
30802+
if (obj2 && typeof obj2 === "object") {
30803+
if (objectSet.has(obj2)) {
30804+
return true;
30805+
}
30806+
objectSet.add(obj2);
30807+
for (const key in obj2) {
30808+
if (Object.hasOwn(obj2, key) && detect(obj2[key])) {
30809+
return true;
30810+
}
30811+
}
30812+
objectSet.delete(obj2);
30813+
}
30814+
return false;
30815+
};
30816+
return detect(obj);
30817+
};
30818+
3079830819
// annotated-yaml.ts
3079930820
function postProcessAnnotation(parse) {
3080030821
if (parse.components.length === 1 && parse.start === parse.components[0].start && parse.end === parse.components[0].end) {
@@ -30945,16 +30966,10 @@ function buildJsYamlAnnotation(mappedYaml) {
3094530966
`Expected a single result, got ${results.length} instead`
3094630967
);
3094730968
}
30948-
try {
30949-
JSON.stringify(results[0]);
30950-
} catch (e) {
30951-
if (e.message.match("invalid string length")) {
30952-
} else if (e.message.match(/circular structure/)) {
30953-
throw new InternalError(
30954-
`Circular structure detected in parsed yaml: ${e.message}`
30955-
);
30956-
} else {
30957-
}
30969+
if (isCircular(results[0])) {
30970+
throw new InternalError(
30971+
`Circular structure detected in yaml`
30972+
);
3095830973
}
3095930974
return postProcessAnnotation(results[0]);
3096030975
}

src/resources/editor/tools/yaml/web-worker.js

Lines changed: 29 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/resources/editor/tools/yaml/yaml-intelligence-resources.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9031,7 +9031,7 @@
90319031
"schema": "string",
90329032
"description": {
90339033
"short": "A regular expression that can be used to determine whether a link is an internal link.",
9034-
"long": "A regular expression that can be used to determine whether a link is an internal link. For example, \nthe following will treat links that start with http://www.quarto.org as internal links (and others\nwill be considered external):\n\n```\n^(?:http:|https:)\\/\\/www\\.quarto\\.org\\/custom\n```\n"
9034+
"long": "A regular expression that can be used to determine whether a link is an internal link. For example, \nthe following will treat links that start with `http://www.quarto.org/custom` or `https://www.quarto.org/custom`\nas internal links (and others will be considered external):\n\n```\n^(?:http:|https:)\\/\\/www\\.quarto\\.org\\/custom\n```\n"
90359035
}
90369036
},
90379037
{
@@ -14623,7 +14623,7 @@
1462314623
"Short/abbreviated form of container-title;",
1462414624
"A minor contributor to the item; typically cited using “with” before\nthe name when listed in a bibliography.",
1462514625
"Curator of an exhibit or collection (e.g.&nbsp;in a museum).",
14626-
"Physical (e.g.&nbsp;size) or temporal (e.g.��running time) dimensions of\nthe item.",
14626+
"Physical (e.g.&nbsp;size) or temporal (e.g.&nbsp;running time) dimensions of\nthe item.",
1462714627
"Director (e.g.&nbsp;of a film).",
1462814628
"Minor subdivision of a court with a <code>jurisdiction</code> for a\nlegal item",
1462914629
"(Container) edition holding the item (e.g.&nbsp;“3” when citing a chapter\nin the third edition of a book).",

src/resources/formats/html/esbuild-analysis-cache.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"quarto.js": {
33
"inputs": {
44
"quarto.js": {
5-
"bytes": 26327,
5+
"bytes": 26396,
66
"imports": [],
77
"format": "esm"
88
}
@@ -20,10 +20,10 @@
2020
"entryPoint": "quarto.js",
2121
"inputs": {
2222
"quarto.js": {
23-
"bytesInOutput": 21890
23+
"bytesInOutput": 21946
2424
}
2525
},
26-
"bytes": 21890
26+
"bytes": 21946
2727
}
2828
}
2929
}

0 commit comments

Comments
 (0)