New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

svgtofont

Package Overview
Dependencies
Maintainers
1
Versions
120
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

svgtofont - npm Package Compare versions

Comparing version 4.1.2 to 4.2.0

4

lib/utils.d.ts

@@ -78,2 +78,6 @@ /// <reference types="node" />

fileName?: string;
/**
* Ad hoc template variables.
*/
templateVars?: Record<string, any>;
};

@@ -80,0 +84,0 @@ /**

2

lib/utils.js

@@ -266,3 +266,3 @@ "use strict";

return new Promise((resolve, reject) => {
(0, copy_template_dir_1.default)(inDir, outDir, Object.assign(Object.assign({}, vars), { cssPath: _opts.cssPath || '', filename: _opts.fileName || vars.fontname }), async (err, createdFiles) => {
(0, copy_template_dir_1.default)(inDir, outDir, Object.assign(Object.assign(Object.assign({}, (_opts.templateVars || {})), vars), { cssPath: _opts.cssPath || '', filename: _opts.fileName || vars.fontname }), async (err, createdFiles) => {
if (err)

@@ -269,0 +269,0 @@ reject(err);

{
"name": "svgtofont",
"version": "4.1.2",
"version": "4.2.0",
"description": "Converts SVG to TTF/EOT/WOFF/WOFF2/SVG format fonts.",

@@ -76,3 +76,3 @@ "homepage": "https://jaywcjlove.github.io/svgtofont/",

"ejs": "~3.1.6",
"fs-extra": "~11.1.0",
"fs-extra": "~11.2.0",
"image2uri": "~1.0.5",

@@ -82,3 +82,3 @@ "move-file": "~2.1.0",

"svgicons2svgfont": "~12.0.0",
"svgo": "~3.0.0",
"svgo": "~3.2.0",
"ttf2eot": "~3.1.0",

@@ -85,0 +85,0 @@ "ttf2woff": "~3.0.0",

@@ -462,2 +462,6 @@ <p align="center">

fileName?: string
/**
* Ad hoc template variables.
*/
templateVars?: Record<string, any>;
}

@@ -464,0 +468,0 @@ ```

@@ -281,2 +281,6 @@ import SVGIcons2SVGFont from 'svgicons2svgfont';

fileName?: string;
/**
* Ad hoc template variables.
*/
templateVars?: Record<string, any>;
}

@@ -291,2 +295,3 @@

copy(inDir, outDir, {
...(_opts.templateVars || {}),
...vars,

@@ -293,0 +298,0 @@ cssPath: _opts.cssPath || '',

Sorry, the diff of this file is not supported yet

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