Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(deps): update dependency random-access-file to v4 #41

Merged
merged 2 commits into from
Jan 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import os from 'os'
import parallel from 'run-parallel'
import path from 'path'
import queueMicrotask from 'queue-microtask'
import raf from 'random-access-file'
import RAF from 'random-access-file'
import randombytes from 'randombytes'
import thunky from 'thunky'

Expand Down Expand Up @@ -67,7 +67,7 @@ export default class Storage {
fs.mkdir(path.dirname(file.path), { recursive: true }, err => {
if (err) return cb(err)
if (this.closed) return cb(new Error('Storage is closed'))
cb(null, raf(file.path))
cb(null, new RAF(file.path))
})
})
})
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"type": "module",
"dependencies": {
"queue-microtask": "^1.2.2",
"random-access-file": "^2.0.1",
"random-access-file": "^4.0.0",
"randombytes": "^2.0.3",
"run-parallel": "^1.1.2",
"thunky": "^1.0.1"
Expand Down