Skip to content

Commit

Permalink
chore: update dependencies (#290)
Browse files Browse the repository at this point in the history
  • Loading branch information
fisker authored Jan 9, 2023
1 parent 5dffe35 commit 59d3a2e
Show file tree
Hide file tree
Showing 5 changed files with 531 additions and 508 deletions.
22 changes: 11 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,25 +35,25 @@
},
"dependencies": {
"lines-and-columns": "^2.0.3",
"tslib": "^2.4.0",
"tslib": "^2.4.1",
"yaml": "^1.10.0"
},
"devDependencies": {
"@types/jest": "29.1.2",
"@types/node": "18.8.5",
"@typescript-eslint/eslint-plugin": "5.40.0",
"@typescript-eslint/parser": "5.40.0",
"eslint": "8.25.0",
"eslint-config-prettier": "8.5.0",
"@types/jest": "29.2.5",
"@types/node": "18.11.18",
"@typescript-eslint/eslint-plugin": "5.48.0",
"@typescript-eslint/parser": "5.48.0",
"eslint": "8.31.0",
"eslint-config-prettier": "8.6.0",
"eslint-plugin-import": "2.26.0",
"jest": "29.1.2",
"jest": "29.3.1",
"jest-snapshot-serializer-raw": "1.2.0",
"npm-run-all": "4.1.5",
"patch-package": "6.4.7",
"prettier": "2.7.1",
"patch-package": "6.5.1",
"prettier": "2.8.2",
"standard-version": "9.5.0",
"ts-jest": "29.0.3",
"typescript": "4.8.4"
"typescript": "4.9.4"
},
"engines": {
"node": ">= 14"
Expand Down
2 changes: 1 addition & 1 deletion src/attach.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ function initNodeTable(nodeTable: NodeTable, node: YamlUnistNode): void {
}

if ("children" in node) {
(node.children as Array<typeof node.children[number]>).forEach(child => {
(node.children as Array<(typeof node.children)[number]>).forEach(child => {
initNodeTable(nodeTable, child);
});
}
Expand Down
2 changes: 1 addition & 1 deletion src/utils/define-parents.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export function defineParents(
parent: YamlUnistNode | null = null,
): void {
if ("children" in node) {
(node.children as Array<typeof node.children[number]>).forEach(child =>
(node.children as Array<(typeof node.children)[number]>).forEach(child =>
defineParents(child, node),
);
}
Expand Down
2 changes: 1 addition & 1 deletion src/utils/update-positions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export function updatePositions(node: YamlUnistNode): void {
return;
}

const children = node.children as Array<typeof node.children[number]>;
const children = node.children as Array<(typeof node.children)[number]>;
children.forEach(updatePositions);

if (node.type === "document") {
Expand Down
Loading

0 comments on commit 59d3a2e

Please sign in to comment.