Socket
Socket
Sign inDemoInstall

@dicebear/converter

Package Overview
Dependencies
Maintainers
1
Versions
95
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dicebear/converter - npm Package Compare versions

Comparing version 6.0.3 to 6.0.4

4

lib/node/core.js

@@ -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 }) => {

8

package.json
{
"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"
}
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