Skip to content

Commit

Permalink
fix: raf v4 (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
ThaUnknown authored Jan 27, 2023
1 parent dfbb24a commit cd4524a
Showing 1 changed file with 2 additions and 2 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

0 comments on commit cd4524a

Please sign in to comment.