Skip to content

Commit

Permalink
Update dev-dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Oct 30, 2021
1 parent a89bd35 commit 2274603
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
7 changes: 5 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@ export default function remarkImages() {
if ((isUrl(value) || isImgPath(value)) && isImgExt(value)) {
let interactive = false
let length = parents.length
const siblings = parents[length - 1].children
const parent = parents[length - 1]
const siblings = parent.children
// @ts-expect-error: too many possible parents.
const index = siblings.indexOf(node)

// Check if we’re in interactive content.
while (length--) {
Expand Down Expand Up @@ -58,7 +61,7 @@ export default function remarkImages() {
}
}

siblings[siblings.indexOf(node)] = next
siblings[index] = next
}
})
}
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,12 @@
"prettier": "^2.0.0",
"remark": "^14.0.0",
"remark-cli": "^10.0.0",
"remark-preset-wooorm": "^8.0.0",
"remark-preset-wooorm": "^9.0.0",
"rimraf": "^3.0.0",
"tape": "^5.0.0",
"type-coverage": "^2.0.0",
"typescript": "^4.0.0",
"xo": "^0.43.0"
"xo": "^0.46.0"
},
"scripts": {
"build": "rimraf \"*.d.ts\" && tsc && type-coverage",
Expand Down

0 comments on commit 2274603

Please sign in to comment.