@dicebear/converter
Advanced tools
Comparing version 6.0.3 to 6.0.4
@@ -5,3 +5,2 @@ import { promises as fs } from 'node:fs'; | ||
import * as tmp from 'tmp-promise'; | ||
import { ensurePackage } from '../utils/package-helper.js'; | ||
import { getEncoder } from '../utils/text.js'; | ||
@@ -36,3 +35,2 @@ export const toFormat = function (svg, format, exif) { | ||
async function toBuffer(rawSvg, format, exif) { | ||
await ensurePackage('@resvg/resvg-js', '^2.4.1'); | ||
const { renderAsync } = await import('@resvg/resvg-js'); | ||
@@ -50,3 +48,2 @@ const interRegular = new URL('../../fonts/inter/inter-regular.otf', import.meta.url); | ||
if ('jpeg' === format) { | ||
await ensurePackage('sharp', '^0.31.3'); | ||
const sharp = (await import('sharp')).default; | ||
@@ -59,3 +56,2 @@ buffer = await sharp(buffer) | ||
if (exif) { | ||
await ensurePackage('exiftool-vendored', '^21.2.0'); | ||
const exiftool = (await import('exiftool-vendored')).exiftool; | ||
@@ -62,0 +58,0 @@ await tmp.withFile(async ({ path }) => { |
{ | ||
"name": "@dicebear/converter", | ||
"version": "6.0.3", | ||
"version": "6.0.4", | ||
"description": "SVG Converter for DiceBear", | ||
@@ -45,3 +45,3 @@ "keywords": [ | ||
"exiftool-vendored": "^21.2.0", | ||
"sharp": "^0.31.3" | ||
"sharp": "^0.32.1" | ||
}, | ||
@@ -54,3 +54,3 @@ "devDependencies": { | ||
"exiftool-vendored": "^21.2.0", | ||
"sharp": "^0.31.3", | ||
"sharp": "^0.32.1", | ||
"typescript": "^4.9.5", | ||
@@ -76,3 +76,3 @@ "uvu": "^0.5.6" | ||
}, | ||
"gitHead": "cb1a76b027d423675da0a91c9366f3849d69c403" | ||
"gitHead": "e8c578f7df29368b14548036182303cf55b4282c" | ||
} |
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
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
0
546512
24
238