Socket
Socket
Sign inDemoInstall

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.1 to 1.1.0

lib/client.js

23

package.json
{
"name": "3box-shared-cache",
"version": "0.3.1",
"version": "1.1.0",
"description": "The shared cache module that 3box uses to share cache across domains using an iframe",
"main": "src/index.js",
"main": "lib/index.js",
"scripts": {
"lint": "./node_modules/.bin/standard --verbose src/**",
"test": "jest",
"build:es5": "./node_modules/.bin/babel src --out-dir lib",
"build": "./node_modules/.bin/webpack-cli --config webpack.config.js",
"build:watch": "./node_modules/.bin/webpack-cli --config webpack.config.js --mode=development --watch",
"server:start": "http-server -c-1 -p 30002 public",
"prepublishOnly": "npm run build:es5",
"start": "npm run build:watch & npm run server:start"

@@ -37,6 +39,10 @@ },

"devDependencies": {
"@babel/core": "^7.8.7",
"@babel/plugin-transform-runtime": "^7.9.0",
"@babel/preset-env": "^7.8.7",
"@babel/preset-react": "^7.10.1",
"@babel/cli": "^7.4.4",
"@babel/core": "^7.4.5",
"@babel/plugin-proposal-object-rest-spread": "^7.4.4",
"@babel/plugin-transform-modules-commonjs": "^7.4.4",
"@babel/plugin-transform-runtime": "^7.4.4",
"@babel/preset-env": "^7.4.5",
"@babel/preset-react": "^7.0.0",
"babel-core": "7.0.0-bridge.0",
"babel-loader": "^8.0.6",

@@ -64,3 +70,8 @@ "express": "^4.17.1",

"postmsg-rpc": "^2.4.0"
},
"standard": {
"ignore": [
"/src/modernizr.js"
]
}
}

@@ -9,6 +9,6 @@ const { caller } = require('postmsg-rpc')

const db = (path, opts) => {
const levelDownProxy = new Store(path, Object.assign(opts,{ postMessage }) )
const levelDownProxy = new Store(path, Object.assign(opts, { postMessage }))
return LevelUp(levelDownProxy)
}
const storage = OrbitDbStorageAdapter( db, {})
const storage = OrbitDbStorageAdapter(db, {})

@@ -21,5 +21,5 @@ return storage.createStore(path)

const createIpfsStorageProxy = ({ postMessage }) => {
return function store(path, opts) {
return function store (path, opts) {
const db = (path, opts) => {
const levelDownProxy = new Store(path, Object.assign(opts,{ postMessage }) )
const levelDownProxy = new Store(path, Object.assign(opts, { postMessage }))
return LevelUp(levelDownProxy)

@@ -26,0 +26,0 @@ }

@@ -1,2 +0,2 @@

const deserialize = (v) => {
const deserialize = (v) => {
const r = JSON.parse(v)

@@ -13,3 +13,2 @@

export {

@@ -16,0 +15,0 @@ serialize,

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