Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

3box-shared-cache

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

3box-shared-cache - npm Package Compare versions

Comparing version 0.3.0 to 0.3.1

2

package.json
{
"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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc