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 8.1.0 to 8.1.1

es/insertAtIndex.js

17

es/clusterCache.js

@@ -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"
}
}
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