memory-web-storage
Advanced tools
Comparing version 0.1.0 to 1.0.0
{ | ||
"name": "memory-web-storage", | ||
"version": "0.1.0", | ||
"version": "1.0.0", | ||
"description": "Simple replacement for web storages (i.e. localStorage) with the same API", | ||
"main": "lib/index.js", | ||
"module": "es/index.js", | ||
"main": "./dist/memory-web-storage.cjs.js", | ||
"module": "./dist/memory-web-storage.esm.js", | ||
"types": "./types/index.d.ts", | ||
"files": [ | ||
"lib", | ||
"es", | ||
"dist" | ||
"dist", | ||
"types" | ||
], | ||
"scripts": { | ||
"clean": "rimraf lib es dist", | ||
"clean": "rimraf dist types", | ||
"prebuild": "npm run clean", | ||
"build:cjs": "cross-env BABEL_ENV=cjs babel src --out-dir lib", | ||
"build:es": "cross-env BABEL_ENV=es babel src --out-dir es", | ||
"build": "run-p build:**", | ||
"build": "rollup -c && tsc", | ||
"precommit": "lint-staged", | ||
"prepare": "npm run build", | ||
"prepublish": "test $(npm -v | tr . '\\n' | head -n 1) -ge '4' || exit 1", | ||
"release:patch": "npm version patch && npm publish && git push --follow-tags", | ||
"release:minor": "npm version minor && npm publish && git push --follow-tags", | ||
"release:major": "npm version major && npm publish && git push --follow-tags" | ||
"preversion": "npm run prepare" | ||
}, | ||
@@ -42,12 +37,15 @@ "repository": { | ||
"devDependencies": { | ||
"babel-cli": "^6.26.0", | ||
"babel-plugin-annotate-pure-calls": "^0.2.0", | ||
"babel-preset-env": "^1.6.1", | ||
"cross-env": "^5.1.0", | ||
"husky": "^0.14.3", | ||
"lint-staged": "^4.2.3", | ||
"npm-run-all": "^4.1.1", | ||
"prettier": "^1.7.4", | ||
"rimraf": "^2.6.2" | ||
"@babel/core": "^7.4.3", | ||
"@babel/preset-env": "^7.4.3", | ||
"@babel/preset-typescript": "^7.3.3", | ||
"babel-plugin-annotate-pure-calls": "^0.4.0", | ||
"husky": "^1.3.1", | ||
"lint-staged": "^8.1.5", | ||
"npm-run-all": "^4.1.5", | ||
"prettier": "^1.16.4", | ||
"rimraf": "^2.6.3", | ||
"rollup": "^1.9.3", | ||
"rollup-plugin-babel": "^4.3.2", | ||
"typescript": "^3.4.3" | ||
} | ||
} |
@@ -6,3 +6,4 @@ # memory-web-storage | ||
This is a library providing a singleton object with [Web Storage API](https://developer.mozilla.org/en-US/docs/Web/API/Web_Storage_API): | ||
This is a library providing a singleton object with API similar to [Web Storage](https://developer.mozilla.org/en-US/docs/Web/API/Web_Storage_API): | ||
- `getItem` | ||
@@ -12,7 +13,3 @@ - `setItem` | ||
- `clear` | ||
- `key` | ||
- `length` - read-only property | ||
At the moment it does not emit `storage` event though. | ||
## default export | ||
@@ -19,0 +16,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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
5
0
4813
12
87
24
1