Comparing version 1.1.0 to 1.1.1
@@ -9,4 +9,6 @@ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); } | ||
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 _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } | ||
@@ -697,3 +699,3 @@ | ||
var hsl = pick(input, HSL); | ||
return _objectSpread({}, this.hsl, hsl); | ||
return _objectSpread({}, this.hsl, {}, hsl); | ||
} // Not HSL so it must be RGB | ||
@@ -703,3 +705,3 @@ | ||
var rgb = pick(input, RGB); | ||
return _objectSpread({}, this.rgb, rgb); | ||
return _objectSpread({}, this.rgb, {}, rgb); | ||
} | ||
@@ -706,0 +708,0 @@ /** |
@@ -18,4 +18,6 @@ "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 _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } | ||
@@ -704,3 +706,3 @@ | ||
var hsl = (0, _utils.pick)(input, HSL); | ||
return _objectSpread({}, this.hsl, hsl); | ||
return _objectSpread({}, this.hsl, {}, hsl); | ||
} // Not HSL so it must be RGB | ||
@@ -710,3 +712,3 @@ | ||
var rgb = (0, _utils.pick)(input, RGB); | ||
return _objectSpread({}, this.rgb, rgb); | ||
return _objectSpread({}, this.rgb, {}, rgb); | ||
} | ||
@@ -713,0 +715,0 @@ /** |
{ | ||
"name": "colorizr", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "Manipulate colors like a boss", | ||
@@ -27,38 +27,39 @@ "author": "Gil Barbara <gilbarbara@gmail.com>", | ||
"devDependencies": { | ||
"@babel/cli": "^7.2.0", | ||
"@babel/core": "^7.2.0", | ||
"@babel/plugin-proposal-class-properties": "^7.2.1", | ||
"@babel/plugin-proposal-decorators": "^7.2.0", | ||
"@babel/plugin-proposal-do-expressions": "^7.2.0", | ||
"@babel/plugin-proposal-export-default-from": "^7.2.0", | ||
"@babel/plugin-proposal-export-namespace-from": "^7.2.0", | ||
"@babel/plugin-proposal-function-sent": "^7.2.0", | ||
"@babel/cli": "^7.5.0", | ||
"@babel/core": "^7.5.4", | ||
"@babel/plugin-proposal-class-properties": "^7.5.0", | ||
"@babel/plugin-proposal-decorators": "^7.4.4", | ||
"@babel/plugin-proposal-do-expressions": "^7.5.0", | ||
"@babel/plugin-proposal-export-default-from": "^7.5.2", | ||
"@babel/plugin-proposal-export-namespace-from": "^7.5.2", | ||
"@babel/plugin-proposal-function-sent": "^7.5.0", | ||
"@babel/plugin-proposal-json-strings": "^7.2.0", | ||
"@babel/plugin-proposal-logical-assignment-operators": "^7.2.0", | ||
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.2.0", | ||
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.4.4", | ||
"@babel/plugin-proposal-numeric-separator": "^7.2.0", | ||
"@babel/plugin-proposal-optional-chaining": "^7.2.0", | ||
"@babel/plugin-proposal-pipeline-operator": "^7.2.0", | ||
"@babel/plugin-proposal-pipeline-operator": "^7.5.0", | ||
"@babel/plugin-proposal-throw-expressions": "^7.2.0", | ||
"@babel/plugin-syntax-dynamic-import": "^7.2.0", | ||
"@babel/plugin-syntax-import-meta": "^7.2.0", | ||
"@babel/plugin-transform-flow-strip-types": "^7.2.0", | ||
"@babel/preset-env": "^7.2.0", | ||
"@babel/plugin-transform-flow-strip-types": "^7.4.4", | ||
"@babel/preset-env": "^7.5.4", | ||
"@babel/preset-flow": "^7.0.0", | ||
"babel-core": "^7.0.0-bridge.0", | ||
"babel-eslint": "^10.0.1", | ||
"babel-jest": "^23.6.0", | ||
"babel-eslint": "^10.0.2", | ||
"babel-jest": "^24.8.0", | ||
"babel-plugin-array-includes": "^2.0.3", | ||
"bundlesize": "^0.17.0", | ||
"bundlesize": "^0.18.0", | ||
"core-js": "^3.1.4", | ||
"cross-env": "^5.2.0", | ||
"eslint": "^5.10.0", | ||
"eslint-config-airbnb-base": "^13.1.0", | ||
"eslint": "^5.16.0", | ||
"eslint-config-airbnb-base": "^13.2.0", | ||
"eslint-plugin-babel": "^5.3.0", | ||
"eslint-plugin-flowtype": "^3.2.0", | ||
"eslint-plugin-import": "^2.14.0", | ||
"eslint-plugin-jsx-a11y": "^6.1.2", | ||
"flow-bin": "^0.87.0", | ||
"husky": "^1.2.0", | ||
"jest": "^23.6.0", | ||
"rimraf": "^2.6.2", | ||
"eslint-plugin-flowtype": "^3.11.1", | ||
"eslint-plugin-import": "^2.18.0", | ||
"eslint-plugin-jsx-a11y": "^6.2.3", | ||
"flow-bin": "^0.102.0", | ||
"husky": "^3.0.0", | ||
"jest": "^24.8.0", | ||
"rimraf": "^2.6.3", | ||
"watch-run": "^1.2.5" | ||
@@ -77,3 +78,3 @@ }, | ||
"validate": "npm run lint && npm test && flow && npm run build && bundlesize", | ||
"prepublishOnly": "npm run build" | ||
"prepublishOnly": "npm run validate" | ||
}, | ||
@@ -87,7 +88,7 @@ "browserslist": [ | ||
"path": "./es/index.js", | ||
"maxSize": "5 kB" | ||
"maxSize": "6 kB" | ||
}, | ||
{ | ||
"path": "./lib/index.js", | ||
"maxSize": "5 kB" | ||
"maxSize": "6 kB" | ||
} | ||
@@ -94,0 +95,0 @@ ], |
2654
83040
38
9