Skip to content

Commit 4354f54

Browse files
committed
chore: quarto build-js
1 parent bf9571a commit 4354f54

File tree

4 files changed

+66
-36
lines changed

4 files changed

+66
-36
lines changed

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

Lines changed: 30 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -19346,7 +19346,7 @@ var require_yaml_intelligence_resources = __commonJS({
1934619346
"$html-doc"
1934719347
]
1934819348
},
19349-
description: "Setting this to false prevents the `repo-actions` from appearing on this page."
19349+
description: "Setting this to false prevents the `repo-actions` from appearing on this page.\nPossible values are `none` or one or more of `edit`, `source`, and `issue`, *e.g.* `[edit, source, issue]`.\n"
1935019350
},
1935119351
{
1935219352
name: "aliases",
@@ -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).",
@@ -23251,7 +23251,7 @@ var require_yaml_intelligence_resources = __commonJS({
2325123251
"Print a list of figures in the document.",
2325223252
"Print a list of tables in the document.",
2325323253
"Setting this to false prevents this document from being included in\nsearches.",
23254-
"Setting this to false prevents the <code>repo-actions</code> from\nappearing on this page.",
23254+
"Setting this to false prevents the <code>repo-actions</code> from\nappearing on this page. Possible values are <code>none</code> or one or\nmore of <code>edit</code>, <code>source</code>, and <code>issue</code>,\n<em>e.g.</em> <code>[edit, source, issue]</code>.",
2325523255
{
2325623256
short: "Links to source repository actions",
2325723257
long: "Links to source repository actions (<code>none</code> or one or more\nof <code>edit</code>, <code>source</code>, <code>issue</code>)"
@@ -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: 30 additions & 15 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: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12318,7 +12318,7 @@
1231812318
"$html-doc"
1231912319
]
1232012320
},
12321-
"description": "Setting this to false prevents the `repo-actions` from appearing on this page."
12321+
"description": "Setting this to false prevents the `repo-actions` from appearing on this page.\nPossible values are `none` or one or more of `edit`, `source`, and `issue`, *e.g.* `[edit, source, issue]`.\n"
1232212322
},
1232312323
{
1232412324
"name": "aliases",
@@ -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).",
@@ -16223,7 +16223,7 @@
1622316223
"Print a list of figures in the document.",
1622416224
"Print a list of tables in the document.",
1622516225
"Setting this to false prevents this document from being included in\nsearches.",
16226-
"Setting this to false prevents the <code>repo-actions</code> from\nappearing on this page.",
16226+
"Setting this to false prevents the <code>repo-actions</code> from\nappearing on this page. Possible values are <code>none</code> or one or\nmore of <code>edit</code>, <code>source</code>, and <code>issue</code>,\n<em>e.g.</em> <code>[edit, source, issue]</code>.",
1622716227
{
1622816228
"short": "Links to source repository actions",
1622916229
"long": "Links to source repository actions (<code>none</code> or one or more\nof <code>edit</code>, <code>source</code>, <code>issue</code>)"

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)