@fortawesome/fontawesome-svg-core
Advanced tools
Comparing version 6.6.0 to 6.7.0
const { createMacro, MacroError } = require('babel-plugin-macros') | ||
const { addNamed } = require('@babel/helper-module-imports') | ||
const { FAFamilyIds } = require('@fortawesome-internal-tools/fontawesome-icons/canonical') | ||
const { FAFamilyIds, FAFamilyClassicId, FAFamilyDuotoneId } = require('@fortawesome-internal-tools/fontawesome-icons/canonical') | ||
const { FALegacyStyleIds } = require('@fortawesome-internal-tools/fontawesome-icons/legacy') | ||
@@ -152,7 +152,7 @@ | ||
if ('duotone' === style && family && 'classic' !== family) { | ||
if (FAFamilyDuotoneId === style && family && FAFamilyClassicId !== family) { | ||
throw parentPath.buildCodeFrameError(`duotone cannot be used as a style name with any family other than classic`, MacroError) | ||
} | ||
if ('brands' === style && family && 'classic' !== family) { | ||
if ('brands' === style && family && FAFamilyClassicId !== family) { | ||
throw parentPath.buildCodeFrameError(`brands cannot be used as a style name with any family other than classic`, MacroError) | ||
@@ -165,5 +165,5 @@ } | ||
if ('duotone' === style || 'duotone' === family) { | ||
if (FAFamilyDuotoneId === style || FAFamilyDuotoneId === family) { | ||
family = undefined | ||
style = 'duotone' | ||
style = FAFamilyDuotoneId | ||
} | ||
@@ -180,3 +180,3 @@ | ||
if ('classic' === family) { | ||
if (FAFamilyClassicId === family) { | ||
family = undefined | ||
@@ -183,0 +183,0 @@ } |
@@ -24,5 +24,5 @@ { | ||
"dependencies": { | ||
"@fortawesome/fontawesome-common-types": "6.6.0" | ||
"@fortawesome/fontawesome-common-types": "6.7.0" | ||
}, | ||
"version": "6.6.0", | ||
"version": "6.7.0", | ||
"name": "@fortawesome/fontawesome-svg-core", | ||
@@ -29,0 +29,0 @@ "main": "index.js", |
@@ -21,5 +21,5 @@ # @fortawesome/fontawesome-svg-core - SVG with JavaScript version | ||
Get started [here](https://fontawesome.com/how-to-use/on-the-web/setup/getting-started). Continue your journey [here](https://fontawesome.com/how-to-use/on-the-web/advanced). | ||
Get started [here](https://docs.fontawesome.com/web/setup/get-started). Continue your journey [here](https://docs.fontawesome.com/web/setup/packages). | ||
Or go straight to the [API documentation](https://fontawesome.com/how-to-use/with-the-api). | ||
Or go straight to the [API documentation](https://docs.fontawesome.com/apis/javascript/get-started). | ||
@@ -26,0 +26,0 @@ ## Issues and support |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
348024
9738
+ Added@fortawesome/fontawesome-common-types@6.7.0(transitive)
- Removed@fortawesome/fontawesome-common-types@6.6.0(transitive)