Comparing version 1.2.5 to 1.2.6
@@ -17,5 +17,10 @@ var gulp = require('gulp'); | ||
babel({ | ||
babelrc: false, | ||
runtimeHelpers: true, | ||
externalHelpers: false, | ||
exclude: 'node_modules/**' | ||
exclude: 'node_modules/**', | ||
presets: [["es2015", {"modules": false}]], | ||
plugins: [ | ||
"transform-object-assign" | ||
] | ||
}) | ||
@@ -22,0 +27,0 @@ ] |
{ | ||
"name": "vue-ls", | ||
"version": "1.2.5", | ||
"version": "1.2.6", | ||
"description": "Vue plugin for work with LocalStorage from Vue context", | ||
@@ -9,3 +9,6 @@ "main": "dist/vue-ls.js", | ||
"build": "node_modules/.bin/gulp", | ||
"test": "node_modules/.bin/ava" | ||
"test": "node_modules/.bin/nyc node_modules/.bin/ava --esnext", | ||
"lint": "node_modules/.bin/eslint ./", | ||
"hint": "node_modules/.bin/jshint", | ||
"report": "npm test && node_modules/.bin/nyc report --reporter=html" | ||
}, | ||
@@ -38,3 +41,7 @@ "dependencies": {}, | ||
"babel-plugin-transform-object-assign": "^6.22.0", | ||
"babel-polyfill": "^6.23.0", | ||
"babel-preset-es2015": "^6.22.0", | ||
"babel-register": "^6.23.0", | ||
"coveralls": "^2.11.16", | ||
"eslint": "^3.16.1", | ||
"gulp": "github:gulpjs/gulp#4.0", | ||
@@ -45,3 +52,5 @@ "gulp-rename": "^1.2.2", | ||
"gulp-uglify": "^2.0.1", | ||
"jshint": "^2.9.4", | ||
"mock-browser": "^0.92.12", | ||
"nyc": "^10.1.2", | ||
"rollup-plugin-babel": "^2.7.1", | ||
@@ -58,2 +67,5 @@ "vue": "^2.1.10" | ||
"ava": { | ||
"babel": { | ||
"babelrc": true | ||
}, | ||
"files": [ | ||
@@ -63,2 +75,4 @@ "./test/*.js" | ||
"require": [ | ||
"babel-core/register", | ||
"babel-polyfill", | ||
"./test/mock/browser.js" | ||
@@ -65,0 +79,0 @@ ] |
@@ -16,6 +16,3 @@ import Shim from './shim'; | ||
function getStorage () { | ||
return typeof window !== 'undefined' && 'localStorage' in window | ||
? window.localStorage | ||
: Shim | ||
; | ||
return typeof window !== 'undefined' && 'localStorage' in window ? window.localStorage : Shim; | ||
} | ||
@@ -22,0 +19,0 @@ |
import test from 'ava'; | ||
import Ls from '../dist/vue-ls'; | ||
import Ls from '../src/index'; | ||
import Vue from 'vue'; | ||
@@ -4,0 +4,0 @@ |
Sorry, the diff of this file is not supported yet
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
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
227953
18
447
17