Skip to content

Commit

Permalink
chore: bump unist- utilities
Browse files Browse the repository at this point in the history
  • Loading branch information
agoose77 committed Oct 25, 2024
1 parent 78aa759 commit fbc1df8
Show file tree
Hide file tree
Showing 16 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion packages/jats-to-myst/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"myst-transforms": "^1.3.26",
"unified": "^10.0.0",
"unist-builder": "^3.0.0",
"unist-util-select": "^4.0.3",
"unist-util-select": "^5.0.0",
"unist-util-remove": "^3.1.0",
"vfile": "^5.0.0",
"vfile-reporter": "^7.0.4"
Expand Down
2 changes: 1 addition & 1 deletion packages/myst-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@
"unified": "^10.1.2",
"unist-util-filter": "^4.0.0",
"unist-util-remove": "^3.1.0",
"unist-util-select": "^4.0.3",
"unist-util-select": "^5.0.0",
"unist-util-visit": "^4.0.0",
"uuid": "^8.3.2",
"vfile": "^5.3.5",
Expand Down
2 changes: 1 addition & 1 deletion packages/myst-common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"nanoid": "^4.0.0",
"unified": "^10.1.2",
"unist-util-remove": "^3.1.0",
"unist-util-select": "^4.0.3",
"unist-util-select": "^5.0.0",
"unist-util-visit": "^4.1.2",
"vfile": "^5.0.0",
"vfile-message": "^3.0.0"
Expand Down
2 changes: 1 addition & 1 deletion packages/myst-common/src/extractParts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ function coercePart(part?: string | string[]): string[] {
export function selectBlockParts(tree: GenericParent, part?: string | string[]): Block[] {
const parts = coercePart(part);
if (parts.length === 0) return [];
const blockParts = selectAll('block', tree).filter((block) => {
const blockParts = (selectAll('block', tree) as Block[]).filter((block) => {
const blockTags: string[] = (
block.data?.tags && Array.isArray(block.data.tags) ? block.data.tags : []
).map((tag) => tag?.toLowerCase());
Expand Down
2 changes: 1 addition & 1 deletion packages/myst-directives/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"myst-common": "^1.7.2",
"myst-spec-ext": "^1.7.2",
"nanoid": "^4.0.2",
"unist-util-select": "^4.0.3",
"unist-util-select": "^5.0.0",
"vfile": "^5.3.7"
}
}
2 changes: 1 addition & 1 deletion packages/myst-execute/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"myst-cli-utils": "^2.0.11",
"myst-common": "^1.7.2",
"node-fetch": "^3.3.0",
"unist-util-select": "^4.0.3",
"unist-util-select": "^5.0.0",
"vfile": "^5.3.7",
"which": "^4.0.0"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/myst-parser/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
"unified": "^10.1.1",
"unist-builder": "^3.0.0",
"unist-util-remove": "^3.1.0",
"unist-util-select": "^4.0.3",
"unist-util-select": "^5.0.0",
"unist-util-visit": "^4.1.0",
"vfile": "^5.3.7"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/myst-to-docx/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,6 @@
"myst-frontmatter": "^1.7.2",
"myst-spec": "^0.0.5",
"myst-spec-ext": "^1.7.2",
"unist-util-select": "^4.0.3"
"unist-util-select": "^5.0.0"
}
}
2 changes: 1 addition & 1 deletion packages/myst-to-html/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
"unified": "^10.1.2",
"unist-builder": "^3.0.0",
"unist-util-remove": "^3.1.0",
"unist-util-select": "^4.0.3",
"unist-util-select": "^5.0.0",
"unist-util-visit": "^4.1.0",
"unist-util-find-after": "^4.0.0"
}
Expand Down
2 changes: 1 addition & 1 deletion packages/myst-to-jats/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"nbtx": "^0.2.3",
"unified": "^10.1.2",
"unist-util-remove": "^3.1.0",
"unist-util-select": "^4.0.3",
"unist-util-select": "^5.0.0",
"vfile": "^5.0.0",
"vfile-reporter": "^7.0.4",
"xml-js": "^1.6.11"
Expand Down
2 changes: 1 addition & 1 deletion packages/myst-to-md/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"mdast-util-to-markdown": "^1.5.0",
"myst-common": "^1.7.2",
"myst-frontmatter": "^1.7.2",
"unist-util-select": "^4.0.3",
"unist-util-select": "^5.0.0",
"vfile": "^5.3.7",
"vfile-reporter": "^7.0.4"
}
Expand Down
8 changes: 4 additions & 4 deletions packages/myst-to-md/src/directives.ts
Original file line number Diff line number Diff line change
Expand Up @@ -195,8 +195,8 @@ const TABLE_KEYS = ['headerRows', 'label', 'class', 'width', 'align'];
* kind "table" with table/caption children.
*/
function container(node: any, _: Parent, state: NestedState, info: Info): string {
const captionNode: GenericNode | null = select('caption', node);
const legendNode: GenericNode | null = select('legend', node);
const captionNode: GenericNode | undefined = select('caption', node);
const legendNode: GenericNode | undefined = select('legend', node);
const children = [...(captionNode?.children || []), ...(legendNode?.children || [])];
if (node.kind === 'figure') {
const imageNodes: GenericNode[] = selectAll('image', node);
Expand All @@ -220,7 +220,7 @@ function container(node: any, _: Parent, state: NestedState, info: Info): string
const args = argsFromNode(combinedNode, options);
return writeFlowDirective('figure', args, options)(combinedNode, _, state, info);
} else if (node.kind === 'table') {
const tableNode: GenericNode | null = select('table', node);
const tableNode: GenericNode | undefined = select('table', node);
if (!tableNode) return '';
let headerRows = 0;
let inHeader = true;
Expand Down Expand Up @@ -264,7 +264,7 @@ function container(node: any, _: Parent, state: NestedState, info: Info): string
};
return writeFlowDirective('list-table', args, options)(combinedNode, _, state, info);
} else if (node.kind === 'code') {
const codeNode: GenericNode | null = select('code', node);
const codeNode: GenericNode | undefined = select('code', node);
if (!codeNode) return '';
const combinedNode: Record<string, any> = { ...codeNode };
CODE_BLOCK_KEYS.forEach((key) => {
Expand Down
2 changes: 1 addition & 1 deletion packages/myst-to-tex/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"myst-spec-ext": "^1.7.2",
"myst-ext-proof": "^1.0.11",
"unist-util-remove": "^3.1.0",
"unist-util-select": "^4.0.3",
"unist-util-select": "^5.0.0",
"vfile-reporter": "^7.0.4"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/myst-to-typst/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"myst-frontmatter": "^1.7.3",
"myst-spec-ext": "^1.7.3",
"tex-to-typst": "^0.0.7",
"unist-util-select": "^4.0.3",
"unist-util-select": "^5.0.0",
"vfile-reporter": "^7.0.4"
}
}
2 changes: 1 addition & 1 deletion packages/myst-transforms/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"unist-util-modify-children": "^3.1.0",
"unist-util-map": "^3.0.0",
"unist-util-remove": "^3.1.0",
"unist-util-select": "^4.0.3",
"unist-util-select": "^5.0.0",
"unist-util-visit": "^4.1.0",
"vfile": "^5.0.0",
"vfile-message": "^3.1.2"
Expand Down
2 changes: 1 addition & 1 deletion packages/tex-to-myst/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"myst-spec-ext": "^1.7.2",
"unist-builder": "^3.0.0",
"unist-util-remove": "^3.1.0",
"unist-util-select": "^4.0.3",
"unist-util-select": "^5.0.0",
"vfile-reporter": "^7.0.4"
}
}

0 comments on commit fbc1df8

Please sign in to comment.