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.14

6

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

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

"dependencies": {
"sharp": "^0.32.4",
"to-ico": "^1.0.1"
"ico-endec": "^0.1.6",
"sharp": "^0.32.4"
},

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

@@ -1,4 +0,4 @@

const fsp = require("fs/promises");
const fs = require("fs");
const sharp = require("sharp");
const to_icon = require("to-ico");
const { encode } = require("ico-endec");

@@ -30,11 +30,6 @@ /**

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

@@ -41,0 +36,0 @@ });

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.