Socket
Socket
Sign inDemoInstall

@next/font

Package Overview
Dependencies
Maintainers
5
Versions
1035
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@next/font - npm Package Compare versions

Comparing version 13.4.12 to 13.5.3

dist/google/sort-fonts-variant-values.d.ts

3

dist/google/get-google-fonts-url.js
"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

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