3box-shared-cache
Advanced tools
Comparing version 0.3.1 to 1.1.0
{ | ||
"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, |
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
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
62591
25
1512
21