@next/font
Advanced tools
Comparing version 13.0.3-canary.2 to 13.0.3-canary.3
@@ -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) |
{ | ||
"name": "@next/font", | ||
"version": "13.0.3-canary.2", | ||
"version": "13.0.3-canary.3", | ||
"repository": { | ||
@@ -5,0 +5,0 @@ "url": "vercel/next.js", |
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
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
2238760
52159
8