fela-utils
Advanced tools
Comparing version 11.1.2 to 11.2.0
@@ -5,3 +5,3 @@ function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } } | ||
import objectReduce from 'fast-loops/lib/objectReduce'; | ||
import findIndex from './findIndex'; | ||
import insertAtIndex from './insertAtIndex'; | ||
@@ -12,3 +12,3 @@ | ||
var sortedKeys = objectReduce(obj, function (resultSortedKeys, value, key) { | ||
var index = resultSortedKeys.findIndex(function (el) { | ||
var index = findIndex(resultSortedKeys, function (el) { | ||
return getScore(obj[el], el) > getScore(value, key); | ||
@@ -15,0 +15,0 @@ }); |
@@ -16,2 +16,6 @@ 'use strict'; | ||
var _findIndex = require('./findIndex'); | ||
var _findIndex2 = _interopRequireDefault(_findIndex); | ||
var _insertAtIndex = require('./insertAtIndex'); | ||
@@ -28,3 +32,3 @@ | ||
var sortedKeys = (0, _objectReduce2.default)(obj, function (resultSortedKeys, value, key) { | ||
var index = resultSortedKeys.findIndex(function (el) { | ||
var index = (0, _findIndex2.default)(resultSortedKeys, function (el) { | ||
return getScore(obj[el], el) > getScore(value, key); | ||
@@ -31,0 +35,0 @@ }); |
{ | ||
"name": "fela-utils", | ||
"version": "11.1.2", | ||
"version": "11.2.0", | ||
"description": "Internal utilities for Fela", | ||
@@ -27,3 +27,3 @@ "main": "lib/index.js", | ||
}, | ||
"gitHead": "a4f6498c8842873285a80ed1c9eb8dcde4b3370b" | ||
"gitHead": "180a1819c65d52f8f83d70fa717deeb6bb52389e" | ||
} |
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
27715
47
567