Skip to content

Commit

Permalink
fix(deps): update dependency random-access-file to v4 (#41)
Browse files Browse the repository at this point in the history
* fix(deps): update dependency random-access-file to v4

* fix: raf v4 (#47)

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Cas <[email protected]>
  • Loading branch information
renovate[bot] and ThaUnknown authored Jan 27, 2023
1 parent 09a2f3d commit 33e47bd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
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

0 comments on commit 33e47bd

Please sign in to comment.