fela-utils
Advanced tools
Comparing version 8.1.0 to 8.1.1
@@ -10,3 +10,3 @@ var _handlers; | ||
import generateCSSRule from './generateCSSRule'; | ||
import sortCache from './sortCache'; | ||
import objectSortByScore from './objectSortByScore'; | ||
import getRuleScore from './getRuleScore'; | ||
@@ -77,15 +77,4 @@ | ||
var sortedCache = sortCache(cache, function (left, right) { | ||
var leftScore = getRuleScore(ruleOrder, left.pseudo); | ||
var rightScore = getRuleScore(ruleOrder, right.pseudo); | ||
if (leftScore > rightScore) { | ||
return 1; | ||
} | ||
if (rightScore > leftScore) { | ||
return -1; | ||
} | ||
return 0; | ||
var sortedCache = objectSortByScore(cache, function (value) { | ||
return getRuleScore(ruleOrder, value.pseudo); | ||
}); | ||
@@ -92,0 +81,0 @@ |
@@ -27,5 +27,5 @@ 'use strict'; | ||
var _sortCache = require('./sortCache'); | ||
var _objectSortByScore = require('./objectSortByScore'); | ||
var _sortCache2 = _interopRequireDefault(_sortCache); | ||
var _objectSortByScore2 = _interopRequireDefault(_objectSortByScore); | ||
@@ -103,15 +103,4 @@ var _getRuleScore = require('./getRuleScore'); | ||
var sortedCache = (0, _sortCache2.default)(cache, function (left, right) { | ||
var leftScore = (0, _getRuleScore2.default)(ruleOrder, left.pseudo); | ||
var rightScore = (0, _getRuleScore2.default)(ruleOrder, right.pseudo); | ||
if (leftScore > rightScore) { | ||
return 1; | ||
} | ||
if (rightScore > leftScore) { | ||
return -1; | ||
} | ||
return 0; | ||
var sortedCache = (0, _objectSortByScore2.default)(cache, function (value) { | ||
return (0, _getRuleScore2.default)(ruleOrder, value.pseudo); | ||
}); | ||
@@ -118,0 +107,0 @@ |
{ | ||
"name": "fela-utils", | ||
"version": "8.1.0", | ||
"version": "8.1.1", | ||
"description": "Internal utilities for Fela", | ||
@@ -28,4 +28,4 @@ "main": "lib/index.js", | ||
"devDependencies": { | ||
"fela": "^6.2.0" | ||
"fela": "^6.2.1" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
28844
45
578