@next/font
Advanced tools
Comparing version 13.4.12 to 13.5.3
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.getGoogleFontsUrl = void 0; | ||
const sort_fonts_variant_values_1 = require("./sort-fonts-variant-values"); | ||
/** | ||
@@ -49,3 +50,3 @@ * Generate the Google Fonts URL given the requested weight(s), style(s) and additional variable axes | ||
.map((variant) => variant.map(([, val]) => val).join(',')) | ||
.sort() | ||
.sort(sort_fonts_variant_values_1.sortFontsVariantValues) | ||
.join(';')}`; | ||
@@ -52,0 +53,0 @@ } |
@@ -141,3 +141,3 @@ "use strict"; | ||
if (isServer) { | ||
Log.error(`Failed to download \`${fontFamily}\` from Google Fonts. Using fallback font instead.`); | ||
Log.error(`Failed to download \`${fontFamily}\` from Google Fonts. Using fallback font instead.\n\n${err.message}}`); | ||
} | ||
@@ -144,0 +144,0 @@ // In dev we should return the fallback font instead of throwing an error |
@@ -32,10 +32,10 @@ "use strict"; | ||
[ | ||
'Source_Sans_Pro', | ||
'Source_Sans_3', | ||
{ weight: '900', display: 'auto' }, | ||
'https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@900&display=auto', | ||
'https://fonts.googleapis.com/css2?family=Source+Sans+3:wght@900&display=auto', | ||
], | ||
[ | ||
'Source_Sans_Pro', | ||
'Source_Sans_3', | ||
{ weight: '200', style: 'italic' }, | ||
'https://fonts.googleapis.com/css2?family=Source+Sans+Pro:ital,wght@1,200&display=swap', | ||
'https://fonts.googleapis.com/css2?family=Source+Sans+3:ital,wght@1,200&display=swap', | ||
], | ||
@@ -42,0 +42,0 @@ [ |
@@ -9,3 +9,3 @@ "use strict"; | ||
* Convert the weight string to a number so it can be used for comparison. | ||
* Weights can be defined as a number, 'normal' or 'bold'. https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-weight | ||
* Weights can be defined as a number, 'normal' or 'bold'. https://developer.mozilla.org/docs/Web/CSS/@font-face/font-weight | ||
*/ | ||
@@ -12,0 +12,0 @@ function getWeightNumber(weight) { |
{ | ||
"name": "@next/font", | ||
"version": "13.4.12", | ||
"version": "13.5.3", | ||
"repository": { | ||
@@ -5,0 +5,0 @@ "url": "vercel/next.js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
2591220
72
58258