Skip to content

Commit

Permalink
Fix: add Node v6 support with object.values shim
Browse files Browse the repository at this point in the history
  • Loading branch information
JPeer264 committed Jul 23, 2018
1 parent 0e7c830 commit 70163aa
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/stats.js
@@ -1,7 +1,9 @@
import values from 'object.values';

import selectorLibrary from './selectorLibrary';

const stats = () => {
const selectors = Object.values(selectorLibrary.selectors);
const selectors = values(selectorLibrary.selectors);

const unusedClasses = selectors
.filter(v => v.typeChar === '.' && v.appearanceCount === 0)
Expand Down
1 change: 1 addition & 0 deletions package.json
Expand Up @@ -48,6 +48,7 @@
"json-extra": "^0.5.0",
"lodash.merge": "^4.6.1",
"object.entries": "^1.0.4",
"object.values": "^1.0.4",
"parse5": "^5.0.0",
"parse5-traverse": "^1.0.2",
"postcss": "^6.0.17",
Expand Down
9 changes: 9 additions & 0 deletions yarn.lock
Expand Up @@ -3097,6 +3097,15 @@ object.omit@^2.0.0:
for-own "^0.1.4"
is-extendable "^0.1.1"

object.values@^1.0.4:
version "1.0.4"
resolved "https://registry.yarnpkg.com/object.values/-/object.values-1.0.4.tgz#e524da09b4f66ff05df457546ec72ac99f13069a"
dependencies:
define-properties "^1.1.2"
es-abstract "^1.6.1"
function-bind "^1.1.0"
has "^1.0.1"

observable-to-promise@^0.5.0:
version "0.5.0"
resolved "https://registry.yarnpkg.com/observable-to-promise/-/observable-to-promise-0.5.0.tgz#c828f0f0dc47e9f86af8a4977c5d55076ce7a91f"
Expand Down

0 comments on commit 70163aa

Please sign in to comment.