Socket
Socket
Sign inDemoInstall

@dicebear/converter

Package Overview
Dependencies
Maintainers
1
Versions
96
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 9.0.0 to 9.0.1

9

lib/node/core.js

@@ -35,9 +35,8 @@ import { promises as fs } from 'node:fs';

async function toBuffer(rawSvg, format, exif, options) {
var _a;
const fonts = (_a = options.fonts) !== null && _a !== void 0 ? _a : [];
const hasFonts = Array.isArray(options.fonts);
const { svg } = ensureSize(rawSvg);
let buffer = (await renderAsync(svg, {
font: {
loadSystemFonts: fonts.length === 0,
fontFiles: fonts.length > 0 ? fonts : undefined,
loadSystemFonts: !hasFonts,
fontFiles: hasFonts ? options.fonts : undefined,
},

@@ -54,3 +53,3 @@ })).asPng();

await fs.writeFile(path, buffer);
await exiftool.write(path, exif, ['-overwrite_original']);
await exiftool.write(path, exif, { writeArgs: ['-overwrite_original'] });
return fs.readFile(path);

@@ -57,0 +56,0 @@ });

{
"name": "@dicebear/converter",
"version": "9.0.0",
"version": "9.0.1",
"description": "SVG Converter for DiceBear",

@@ -57,3 +57,3 @@ "keywords": [

},
"gitHead": "c9e66450840d4f29faee6362249348bb3d18798b"
"gitHead": "96e800ad4a1f2175f225fe1639fb91624013e01c"
}
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