vue-localstorage
Advanced tools
Comparing version 0.1.3 to 0.2.0
{ | ||
"name": "vue-localstorage", | ||
"version": "0.1.3", | ||
"version": "0.2.0", | ||
"description": "Vue.js localStorage plugin with types support", | ||
@@ -5,0 +5,0 @@ "main": "vue-localstorage.js", |
{ | ||
"name": "vue-localstorage", | ||
"version": "0.1.3", | ||
"version": "0.2.0", | ||
"description": "Vue.js localStorage plugin with types support", | ||
"main": "vue-localstorage.js", | ||
"main": "dist/vue-local-storage.js", | ||
"scripts": { | ||
"build:es": "rollup -c build/rollup.es2015.js", | ||
"build:main": "rollup -c build/rollup.config.js", | ||
"build:minify": "rollup -c build/rollup.minify.js", | ||
"build": "npm run build:es; npm run build:main; npm run build:minify", | ||
"test": "jest" | ||
}, | ||
"repository": { | ||
@@ -20,3 +27,16 @@ "type": "git", | ||
}, | ||
"homepage": "https://github.com/pinguinjkeke/vue-local-storage#readme" | ||
"homepage": "https://github.com/pinguinjkeke/vue-local-storage#readme", | ||
"devDependencies": { | ||
"babel-jest": "^19.0.0", | ||
"babel-preset-es2015": "^6.24.1", | ||
"jest": "^19.0.2", | ||
"mock-local-storage": "^1.0.2", | ||
"rollup": "^0.41.6", | ||
"rollup-plugin-buble": "^0.15.0", | ||
"rollup-plugin-commonjs": "^8.0.2", | ||
"rollup-plugin-node-resolve": "^3.0.0", | ||
"rollup-plugin-replace": "^1.1.1", | ||
"rollup-plugin-uglify": "^1.0.2", | ||
"vue": "^2.3.0" | ||
} | ||
} |
@@ -5,3 +5,3 @@ # VueLocalStorage | ||
Vue.js localStorage plugin with types support | ||
localStorage plugin with types support for Vue.js and Vue.js 2. | ||
@@ -23,2 +23,9 @@ ## Install | ||
Vue.use(VueLocalStorage) | ||
// Use localStorage from Vue object | ||
Vue.$localStorage.set('someNumber', 123) | ||
Vue.$localStorage.get('someNumber') | ||
// Fallback value if nothing found in localStorage | ||
Vue.$localStorage.get('propertyThatNotExists', 'fallbackValue') // Will return 'fallbackValue' string | ||
@@ -25,0 +32,0 @@ var vm = new Vue({ |
Sorry, the diff of this file is not supported yet
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
23581
16
620
64
11
1