Skip to content

Commit

Permalink
fix(Next > npm): Decrease underused deps
Browse files Browse the repository at this point in the history
  • Loading branch information
danactive committed Jul 30, 2023
1 parent e0435f8 commit 6f3257f
Show file tree
Hide file tree
Showing 7 changed files with 5,081 additions and 5,186 deletions.
1 change: 1 addition & 0 deletions next/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
save=true
2 changes: 1 addition & 1 deletion next/.nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v18.14.1
v18.17.0
11 changes: 0 additions & 11 deletions next/__tests__/__snapshots__/snapshot.jsx.snap

This file was deleted.

8 changes: 0 additions & 8 deletions next/__tests__/snapshot.jsx

This file was deleted.

10,235 changes: 5,075 additions & 5,160 deletions next/package-lock.json

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions next/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
"release": "standard-version"
},
"dependencies": {
"app-root-path": "^3.1.0",
"boom": "^7.3.0",
"camelcase": "^6.3.0",
"color-thief-react": "^2.1.0",
Expand All @@ -37,6 +36,7 @@
"@testing-library/react": "^14.0.0",
"@types/geojson": "^7946.0.10",
"@types/jest": "^29.4.0",
"@types/node": "20.4.5",
"@types/react": "^18.0.28",
"@types/react-dom": "^18.0.11",
"@types/styled-components": "^5.1.26",
Expand All @@ -52,10 +52,10 @@
"jest-environment-jsdom": "^29.4.3",
"jest-styled-components": "^7.1.1",
"next-test-api-route-handler": "^3.1.7",
"react-test-renderer": "^18.2.0",
"snyk": "^1.1058.0",
"snyk": "^1.1196.0",
"standard-version": "^9.5.0",
"ts-jest": "^28.0.8"
"ts-jest": "^28.0.8",
"typescript": "5.1.6"
},
"license": "MIT"
}
2 changes: 0 additions & 2 deletions next/src/lib/utils.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
const appRoot = require('app-root-path')
const mime = require('mime-types')
const path = require('path')

Expand Down Expand Up @@ -108,7 +107,6 @@ const file = {

return extension.split('/')[0]
},
absolutePath: (filepath) => (path.isAbsolute(filepath) ? filepath : appRoot.resolve(filepath)),
thumbPath: (item, gallery) => rasterPath(item, gallery, 'thumb'),
photoPath: (item, gallery) => rasterPath(item, gallery, 'photo'),
getVideoPaths,
Expand Down

0 comments on commit 6f3257f

Please sign in to comment.