You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

svg-to-ico

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

svg-to-ico - npm Package Compare versions

Comparing version

to
1.0.9

6

package.json
{
"name": "svg-to-ico",
"version": "1.0.8",
"version": "1.0.9",
"description": "Utility that translates an SVG Image to a .ico format",

@@ -27,4 +27,4 @@ "main": "svg-to-ico.js",

"dependencies": {
"ico-packer": "^1.0.0",
"sharp": "^0.29.0"
"sharp": "^0.29.0",
"to-ico": "^1.1.5"
},

@@ -31,0 +31,0 @@ "devDependencies": {

const fsp = require("fs/promises");
const ico_packer = require("ico-packer");
const sharp = require("sharp");
const to_icon = require("to-ico");

@@ -30,5 +30,8 @@ /**

Promise.all(output_promises).then((buffers) => {
const output_buffer = ico_packer(buffers);
fsp.writeFile(output_name, output_buffer).then(() => {
accept(output_name);
to_icon(buffers).then((output_buffer) => {
fsp.writeFile(output_name, output_buffer).then(() => {
accept(output_name);
}).catch((error) => {
reject(error);
});
}).catch((error) => {

@@ -35,0 +38,0 @@ reject(error);

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.