Skip to content

Commit

Permalink
upated lodash due to vulnerability
Browse files Browse the repository at this point in the history
  • Loading branch information
alexfoxy committed Jul 13, 2019
1 parent 8c30e09 commit b061707
Show file tree
Hide file tree
Showing 5 changed files with 192 additions and 129 deletions.
6 changes: 4 additions & 2 deletions lib/juicr.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
"use strict";

function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; }
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { keys.push.apply(keys, Object.getOwnPropertySymbols(object)); } if (enumerableOnly) keys = keys.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); return keys; }

function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(source, true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(source).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

Expand Down Expand Up @@ -74,7 +76,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
value: function updateState(changedState) {
var _this2 = this;

this._state = _objectSpread({}, this._state, changedState);
this._state = _objectSpread({}, this._state, {}, changedState);
var changedKeys = Object.keys(changedState);
this.listeners.forEach(function (_ref) {
var props = _ref.props,
Expand Down
2 changes: 1 addition & 1 deletion lib/juicr.min.js

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

Binary file modified lib/juicr.min.js.gz
Binary file not shown.
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"name": "juicr.js",
"version": "1.1.0",
"version": "1.1.1",
"scripts": {
"test": "mocha",
"build": "babel src -d lib; uglifyjs lib/juicr.js -o lib/juicr.min.js -c -m; gzip < lib/juicr.min.js > lib/juicr.min.js.gz;"
},
"devDependencies": {
"@babel/cli": "^7.2.3",
"@babel/core": "^7.3.4",
"@babel/preset-env": "^7.3.4",
"@babel/cli": "^7.5.0",
"@babel/core": "^7.5.4",
"@babel/preset-env": "^7.5.4",
"chai": "^4.2.0",
"mocha": "^6.1.4"
},
Expand Down
Loading

0 comments on commit b061707

Please sign in to comment.