Skip to content

Commit

Permalink
Fix broken windows (#111)
Browse files Browse the repository at this point in the history
Includes:

 - Update dependencies
 - Ignore package-lock.json
 - Fix prettier import formatting
  • Loading branch information
wavded authored Mar 3, 2023
1 parent ce619da commit 40af20e
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 10,362 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ coverage
yarn.lock
dist
pnpm-lock.yaml
package-lock.json
3 changes: 2 additions & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"semi": false,
"bracketSpacing": false
"bracketSpacing": false,
"plugins": ["prettier-plugin-organize-imports"]
}
2 changes: 1 addition & 1 deletion index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class Ogre {
let router = PromiseRouter()
let upload = multer({
storage: diskStorage({
filename(req, file, cb) {
filename(_req, file, cb) {
randomBytes(16, (err, raw) =>
cb(err, raw.toString("hex") + file.originalname)
)
Expand Down
Loading

0 comments on commit 40af20e

Please sign in to comment.