git ssb

0+

Dominic / polyraf



Commit cab74c817d6eca627e7ace39d164e880fd1b450a

pass options along, not just filename!

Dominic Tarr committed on 6/1/2019, 4:04:33 PM
Parent: a2172d034f077c16371a9e4f909056509aaf7816

Files changed

browser.jschanged
index.jschanged
browser.jsView
@@ -1,9 +1,9 @@
11 const RAF = require('random-access-web')({name: 'raw', storeName: 'raw'})
22
3-module.exports = function (filename) {
3 +module.exports = function (filename, opts) {
44 if('string' === typeof filename) {
5- const raf = RAF(filename)
5 + const raf = RAF(filename, opts)
66 raf.filename = filename
77 return raf
88 }
99 if('function' === typeof filename) throw new Error('expected a filename or a random-access-storage instance')
index.jsView
@@ -1,9 +1,9 @@
11 const RAF = require('random-access-file')
22
3-module.exports = function (filename) {
3 +module.exports = function (filename, opts) {
44 if('string' === typeof filename) {
5- const raf = RAF(filename)
5 + const raf = RAF(filename, opts)
66 raf.filename = filename
77 return raf
88 }
99 return filename

Built with git-ssb-web