3box-shared-cache
Advanced tools
Comparing version 0.3.0 to 0.3.1
{ | ||
"name": "3box-shared-cache", | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"description": "The shared cache module that 3box uses to share cache across domains using an iframe", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -19,8 +19,10 @@ const { caller } = require('postmsg-rpc') | ||
const createIpfsStorageProxy = ({ postMessage }) => (path, opts) => { | ||
const db = (path, opts) => { | ||
const levelDownProxy = new Store(path, Object.assign(opts,{ postMessage }) ) | ||
return LevelUp(levelDownProxy) | ||
const createIpfsStorageProxy = ({ postMessage }) => { | ||
return function store(path, opts) { | ||
const db = (path, opts) => { | ||
const levelDownProxy = new Store(path, Object.assign(opts,{ postMessage }) ) | ||
return LevelUp(levelDownProxy) | ||
} | ||
return new LevelStore(path, { db }) | ||
} | ||
return new LevelStore(path, { db }) | ||
} | ||
@@ -27,0 +29,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
29866
602