Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
ai committed Aug 8, 2024
1 parent 3f7dda3 commit 5b17493
Show file tree
Hide file tree
Showing 10 changed files with 1,313 additions and 1,303 deletions.
21 changes: 9 additions & 12 deletions core/import.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ const processFeed = async (
[feedUrl]: false
})
return feed
} catch (error) {
} catch {
let currentLoadingFeeds = { ...$importLoadingFeeds.get() }
delete currentLoadingFeeds[feedUrl]
$importLoadingFeeds.set(currentLoadingFeeds)
Expand Down Expand Up @@ -157,7 +157,7 @@ export const handleImportFile = (file: File): Promise<void> => {
importMessages.get().invalidJSONError
])
}
} catch (jsonError) {
} catch {
$importErrors.set([importMessages.get().failedParseJSONError])
}
} else if (fileExtension === 'opml') {
Expand Down Expand Up @@ -193,15 +193,12 @@ export const handleImportFile = (file: File): Promise<void> => {
let categoryTitle = outline.getAttribute('text')!
let categoryId

switch (categoryTitle) {
case generalCategory.title:
categoryId = generalCategory.id
break
case brokenCategory.title:
categoryId = brokenCategory.id
break
default:
categoryId = nanoid()
if (categoryTitle === brokenCategory.title) {
categoryId = brokenCategory.id
} else if (categoryTitle === generalCategory.title) {
categoryId = generalCategory.id
} else {
categoryId = nanoid()
}

if (categoryId === 'general') {
Expand Down Expand Up @@ -273,7 +270,7 @@ export const handleImportFile = (file: File): Promise<void> => {
} else {
$importErrors.set([importMessages.get().OPMLError])
}
} catch (xmlError) {
} catch {
$importErrors.set([importMessages.get().OPMLError])
}
} else {
Expand Down
14 changes: 7 additions & 7 deletions core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,23 +16,23 @@
"./package.json": "./package.json"
},
"dependencies": {
"@logux/client": "github:logux/client#next",
"@logux/core": "0.8.5",
"@nanostores/i18n": "0.12.1",
"@nanostores/persistent": "0.10.1",
"@logux/client": "0.21.1",
"@logux/core": "0.9.0",
"@nanostores/i18n": "0.12.2",
"@nanostores/persistent": "0.10.2",
"@slowreader/api": "link:../api",
"dompurify": "3.1.6",
"just-debounce-it": "3.2.0",
"nanoid": "5.0.7",
"nanostores": "0.10.3"
"nanostores": "0.11.2"
},
"devDependencies": {
"@logux/actions": "0.3.1",
"@logux/actions": "0.4.0",
"@types/dompurify": "3.0.5",
"@types/jsdom": "21.1.7",
"better-node-test": "0.5.1",
"c8": "10.1.2",
"jsdom": "24.1.0",
"jsdom": "24.1.1",
"nanospy": "1.0.0"
}
}
2 changes: 1 addition & 1 deletion core/preview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ export async function addLink(url: string, deep = false): Promise<void> {
let response
try {
response = await task.text(url)
} catch (error) {
} catch {
$links.setKey(url, { state: 'unloadable' })
return
}
Expand Down
8 changes: 4 additions & 4 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export default [
'perfectionist/sort-imports': [
'error',
{
'groups': [
groups: [
'side-effect',
['side-effect-style', 'style'],
['builtin-type', 'type', 'builtin', 'external', 'unknown'],
Expand All @@ -45,9 +45,9 @@ export default [
],
['object']
],
'newlines-between': 'always',
'order': 'asc',
'type': 'alphabetical'
newlinesBetween: 'always',
order: 'asc',
type: 'alphabetical'
}
]
}
Expand Down
8 changes: 4 additions & 4 deletions loader-tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
},
"devDependencies": {
"@slowreader/core": "link:../core",
"jsdom": "24.1.0",
"nanostores": "0.10.3",
"tsx": "4.16.2",
"yaml": "2.4.5"
"jsdom": "24.1.1",
"nanostores": "0.11.2",
"tsx": "4.16.5",
"yaml": "2.5.0"
}
}
20 changes: 10 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,13 @@
"proxy"
],
"devDependencies": {
"@logux/eslint-config": "53.2.1",
"@types/node": "20.14.11",
"@types/ws": "8.5.11",
"@logux/eslint-config": "53.3.0",
"@types/node": "22.1.0",
"@types/ws": "8.5.12",
"better-node-test": "0.5.1",
"eslint": "9.7.0",
"eslint": "9.8.0",
"eslint-plugin-svelte": "^2.43.0",
"husky": "^9.1.1",
"husky": "^9.1.4",
"nano-staged": "0.8.0",
"postcss-html": "1.7.0",
"prettier": "3.3.3",
Expand All @@ -53,18 +53,18 @@
"remark-lint-code-block-split-list": "^1.0.0",
"remark-lint-fenced-code-flag": "^4.0.0",
"remark-lint-first-heading-level": "^4.0.0",
"remark-lint-heading-capitalization": "^1.1.0",
"remark-lint-heading-capitalization": "^1.2.0",
"remark-lint-heading-increment": "^4.0.0",
"remark-lint-match-punctuation": "^0.2.1",
"remark-lint-no-dead-urls": "^1.1.0",
"remark-lint-no-shell-dollars": "^4.0.0",
"remark-lint-smarty-pants-typography": "^1.1.0",
"remark-validate-links": "^13.0.1",
"stylelint": "16.7.0",
"stylelint": "16.8.1",
"svelte": "4.2.18",
"svelte-check": "3.8.4",
"svelte-check": "3.8.5",
"svgo": "3.3.2",
"tsx": "4.16.2",
"typescript": "5.5.3"
"tsx": "4.16.5",
"typescript": "5.5.4"
}
}
Loading

0 comments on commit 5b17493

Please sign in to comment.