Skip to content

Commit

Permalink
fix: Changed layout causing breakage.
Browse files Browse the repository at this point in the history
  • Loading branch information
vxern committed Dec 2, 2024
1 parent 97c5910 commit 66b3343
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 0.0.4

- Fixed the parser being broken after the structure of Wiktionary's layout changed.

# 0.0.3

- Fixed the etymology section not returning results if the heading had any dots in its number. (e.g. 'Etymology 1.2' instead of 'Etymology 1')
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "wiktionary-scraper",
"description": "A lightweight scraper to fetch information about words in various languages from Wiktionary.",
"license": "MIT",
"version": "0.0.3",
"version": "0.0.4",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"type": "module",
Expand Down
6 changes: 3 additions & 3 deletions src/constants/selectors.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
export default {
didYouMean: "#did-you-mean > a",
tableOfContents: {
tableOfContents: "div#toc",
tableOfContents: "div#vector-toc",
entries: {
entries: (depth: number) => `li.toclevel-${depth + 1}`,
entries: (depth: number) => `li.vector-toc-level-${depth + 1}`,
root: {
root: "a",
text: ".toctext",
text: "span:not([class])",
},
},
},
Expand Down

0 comments on commit 66b3343

Please sign in to comment.