diff --git a/lib/utils/object.js b/lib/utils/object.js index f9daf9357274..10f5d238f973 100644 --- a/lib/utils/object.js +++ b/lib/utils/object.js @@ -1,9 +1,8 @@ -import vals from 'object-values'; - const valsCache = new WeakMap(); + export function values(imm) { if (!valsCache.has(imm)) { - valsCache.set(imm, vals(imm)); + valsCache.set(imm, Object.values(imm)); } return valsCache.get(imm); } diff --git a/package.json b/package.json index d43b654a54ba..c31cf98c6ec8 100644 --- a/package.json +++ b/package.json @@ -120,7 +120,6 @@ "json-loader": "0.5.4", "mousetrap": "1.6.0", "ms": "0.7.2", - "object-values": "1.0.0", "php-escape-shell": "1.0.0", "react": "15.3.2", "react-addons-pure-render-mixin": "15.3.2", @@ -136,7 +135,7 @@ "uuid": "3.0.0" }, "devDependencies": { - "asar":"0.13.0", + "asar": "0.13.0", "ava": "0.17.0", "babel-cli": "6.24.1", "babel-core": "6.24.1", diff --git a/yarn.lock b/yarn.lock index b672245abcbd..269e2d061b26 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4198,10 +4198,6 @@ object-keys@~0.4.0: version "0.4.0" resolved "https://registry.yarnpkg.com/object-keys/-/object-keys-0.4.0.tgz#28a6aae7428dd2c3a92f3d95f21335dd204e0336" -object-values@1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/object-values/-/object-values-1.0.0.tgz#72af839630119e5b98c3b02bb8c27e3237158105" - object.omit@^2.0.0: version "2.0.1" resolved "https://registry.yarnpkg.com/object.omit/-/object.omit-2.0.1.tgz#1a9c744829f39dbb858c76ca3579ae2a54ebd1fa"