Skip to content

Commit

Permalink
Upgraded NPM packages
Browse files Browse the repository at this point in the history
  • Loading branch information
jherax committed Aug 29, 2017
1 parent 8279a17 commit 55d943a
Show file tree
Hide file tree
Showing 7 changed files with 359 additions and 169 deletions.
4 changes: 3 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,10 @@
"one-var-declaration-per-line": [2, "initializations"],
"max-len": 0,
"no-param-reassign": 0,
"no-use-before-define": 0,
"no-underscore-dangle": 0,
"no-use-before-define": ["error", {
"functions": false
}],
"object-curly-spacing": [2, "never"],
"import/no-mutable-exports": 1,
"import/prefer-default-export": 0,
Expand Down
7 changes: 6 additions & 1 deletion dist/proxy-storage.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! [email protected].0. Jherax 2017. Visit https://github.com/jherax/proxy-storage */
/*! [email protected].1. Jherax 2017. Visit https://github.com/jherax/proxy-storage */
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory();
Expand Down Expand Up @@ -761,6 +761,11 @@ function cookieStorage() {
if (value === null) delete $cookie.data[key];
return value;
},


// TODO: Add the method getAll() to get all cookies
// https://github.com/jherax/proxy-storage/issues/6

removeItem: function removeItem(key, options) {
var metadata = Object.assign({}, $cookie.data[key], options);
metadata.expires = { days: -1 };
Expand Down
2 changes: 1 addition & 1 deletion dist/proxy-storage.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/proxy-storage.min.map

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,17 @@
},
"license": "MIT",
"devDependencies": {
"babel-core": "^6.25.0",
"babel-core": "^6.26.0",
"babel-eslint": "^7.2.3",
"babel-loader": "^7.1.1",
"babel-loader": "^7.1.2",
"babel-preset-es2015": "^6.24.1",
"babel-preset-stage-2": "^6.24.1",
"clean-webpack-plugin": "^0.1.16",
"eslint": "^4.2.0",
"eslint-config-airbnb-base": "^11.2.0",
"eslint": "^4.5.0",
"eslint-config-airbnb-base": "^11.3.2",
"eslint-loader": "^1.9.0",
"eslint-plugin-import": "^2.7.0",
"webpack": "^3.3.0"
"webpack": "^3.5.5"
},
"babel": {
"presets": [
Expand Down
3 changes: 3 additions & 0 deletions src/cookie-storage.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,9 @@ function cookieStorage() {
return value;
},

// TODO: Add the method getAll() to get all cookies
// https://github.com/jherax/proxy-storage/issues/6

removeItem(key, options) {
const metadata = Object.assign({}, $cookie.data[key], options);
metadata.expires = {days: -1};
Expand Down
Loading

0 comments on commit 55d943a

Please sign in to comment.