svgtofont
Advanced tools
Comparing version 4.1.2 to 4.2.0
@@ -78,2 +78,6 @@ /// <reference types="node" /> | ||
fileName?: string; | ||
/** | ||
* Ad hoc template variables. | ||
*/ | ||
templateVars?: Record<string, any>; | ||
}; | ||
@@ -80,0 +84,0 @@ /** |
@@ -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
157838
2052
819
+ Addedfs-extra@11.2.0(transitive)
+ Addedsvgo@3.2.0(transitive)
- Removedfs-extra@11.1.1(transitive)
- Removedsvgo@3.0.5(transitive)
Updatedfs-extra@~11.2.0
Updatedsvgo@~3.2.0