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

@next/font

Package Overview
Dependencies
Maintainers
5
Versions
1038
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.0.3-canary.2 to 13.0.3-canary.3

8

google/index.js

@@ -0,1 +1,7 @@

// Validate next version
const semver = require('next/dist/compiled/semver')
if (semver.lt(require('next/package.json').version, '13.0.0')) {
throw new Error('`@next/font` is only available in Next.js 13 and newer.')
}
let message = '@next/font/google failed to run or is incorrectly configured.'

@@ -7,2 +13,4 @@ if (process.env.NODE_ENV === 'development') {

message += `\n\nRead more: https://nextjs.org/docs/basic-features/font-optimization`
throw new Error(message)

@@ -0,1 +1,7 @@

// Validate next version
const semver = require('next/dist/compiled/semver')
if (semver.lt(require('next/package.json').version, '13.0.0')) {
throw new Error('`@next/font` is only available in Next.js 13 and newer.')
}
let message = '@next/font/local failed to run or is incorrectly configured.'

@@ -7,2 +13,4 @@ if (process.env.NODE_ENV === 'development') {

message += `\n\nRead more: https://nextjs.org/docs/basic-features/font-optimization`
throw new Error(message)

2

package.json
{
"name": "@next/font",
"version": "13.0.3-canary.2",
"version": "13.0.3-canary.3",
"repository": {

@@ -5,0 +5,0 @@ "url": "vercel/next.js",

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