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

fela

Package Overview
Dependencies
Maintainers
2
Versions
123
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fela - npm Package Compare versions

Comparing version 10.4.1 to 10.5.0

14

es/generateFontSource.js

@@ -10,8 +10,9 @@ import arrayReduce from 'fast-loops/lib/arrayReduce';

var localSource = arrayReduce(fontLocals, function (src, local) {
var localSource = arrayReduce(fontLocals, function (src, local, index) {
var prefix = index > 0 ? ',' : '';
var localUrl = getFontUrl(local);
return '{src} local(' + localUrl + '), ';
return '' + src + prefix + 'local(' + localUrl + ')';
}, '');
return arrayReduce(files, function (src, fileSource, index) {
var urlSource = arrayReduce(files, function (src, fileSource, index) {
var prefix = index > 0 ? ',' : '';

@@ -22,3 +23,6 @@ var fileFormat = getFontFormat(fileSource);

return '' + src + prefix + 'url(' + fileUrl + ') format(\'' + fileFormat + '\')';
}, localSource);
}, '');
var delimiter = localSource.length > 0 && urlSource.length > 0 ? ',' : '';
return '' + localSource + delimiter + urlSource;
}

@@ -26,8 +26,9 @@ 'use strict';

var localSource = (0, _arrayReduce2.default)(fontLocals, function (src, local) {
var localSource = (0, _arrayReduce2.default)(fontLocals, function (src, local, index) {
var prefix = index > 0 ? ',' : '';
var localUrl = (0, _getFontUrl2.default)(local);
return '{src} local(' + localUrl + '), ';
return '' + src + prefix + 'local(' + localUrl + ')';
}, '');
return (0, _arrayReduce2.default)(files, function (src, fileSource, index) {
var urlSource = (0, _arrayReduce2.default)(files, function (src, fileSource, index) {
var prefix = index > 0 ? ',' : '';

@@ -38,3 +39,6 @@ var fileFormat = (0, _getFontFormat2.default)(fileSource);

return '' + src + prefix + 'url(' + fileUrl + ') format(\'' + fileFormat + '\')';
}, localSource);
}, '');
var delimiter = localSource.length > 0 && urlSource.length > 0 ? ',' : '';
return '' + localSource + delimiter + urlSource;
}
{
"name": "fela",
"version": "10.4.1",
"version": "10.5.0",
"description": "State-Driven Styling in JavaScript",

@@ -38,6 +38,6 @@ "typings": "index.d.ts",

"fast-loops": "^1.0.0",
"fela-utils": "^10.4.1",
"fela-utils": "^10.5.0",
"isobject": "^3.0.1"
},
"gitHead": "2955dd7100c03c4fc9e958fc904ed9ea642100f8"
"gitHead": "7df4025165beea5f1ea0bb3d75d524e59f4a400f"
}
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