Comparing version 10.4.1 to 10.5.0
@@ -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" | ||
} |
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
66368
42
1185
Updatedfela-utils@^10.5.0