Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

fela-utils

Package Overview
Dependencies
Maintainers
2
Versions
80
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fela-utils - npm Package Compare versions

Comparing version 11.1.2 to 11.2.0

es/findIndex.js

4

es/objectSortByScore.js

@@ -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"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc