Skip to content

Commit

Permalink
Upgrade lowdb
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilmielnik committed Apr 5, 2023
1 parent 6d0ddbd commit 61eba9b
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 52 deletions.
65 changes: 17 additions & 48 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"dependencies": {
"classnames": "^2.3.2",
"fingerprintjs2": "^2.1.2",
"lowdb": "^3.0.0",
"lowdb": "^5.1.0",
"next": "^13.2.4",
"normalize.css": "^8.0.1",
"puppeteer": "^19.8.3",
Expand All @@ -47,7 +47,6 @@
"devDependencies": {
"@types/fingerprintjs2": "^2.0.0",
"@types/jest": "^29.5.0",
"@types/lowdb": "^1.0.11",
"@types/node": "^18.15.11",
"@types/react": "^18.0.33",
"@typescript-eslint/eslint-plugin": "^5.57.1",
Expand Down
3 changes: 3 additions & 0 deletions src/@types/lowdb.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
declare module 'lowdb/node' {
export * from 'lowdb/lib/node';
}
3 changes: 2 additions & 1 deletion src/api/trackingDb.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Low, JSONFile } from 'lowdb';
import { Low } from 'lowdb';
import { JSONFile } from 'lowdb/node';

import { TrackingData } from 'types';

Expand Down
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@
"node_modules"
],
"files": [
"./src/@types/icons.d.ts"
"./src/@types/icons.d.ts",
"./src/@types/lowdb.d.ts"
],
"include": [
"next-env.d.ts",
Expand Down

0 comments on commit 61eba9b

Please sign in to comment.