Socket
Socket
Sign inDemoInstall

google-font-installer

Package Overview
Dependencies
25
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.3 to 1.0.4

8

cli.js

@@ -78,2 +78,6 @@ #!/usr/bin/env node

fontList.getFontByName(searchedTerm, function(err, filteredList){
if (err){
printError(err);
return;
}
if (filteredList.data.length === 1) {

@@ -90,2 +94,6 @@ filteredList.getFirst().saveAt(variants, path, printResult);

fontList.getFontByName(searchedTerm, function(err, filteredList){
if (err){
printError(err);
return;
}
if (filteredList.data.length === 1) {

@@ -92,0 +100,0 @@ filteredList.getFirst().install(variants, printResult);

2

lib/request.js

@@ -38,4 +38,4 @@ 'use strict'

req.setTimeout(5000, function(){
// req.abort();
self.emit('error', new Error('Request timeout.'));
req.abort();
})

@@ -42,0 +42,0 @@

@@ -90,3 +90,3 @@ 'use strict'

if (err) {
callback('Error while creating folder ' + destFolder);
callback('Error while creating folder ' + folder);
return;

@@ -99,3 +99,3 @@ }

if (err) {
callback(new Error('No write permission in destination folder: ' + destFolder), null);
callback(new Error('No write permission in destination folder: ' + folder), null);
return;

@@ -102,0 +102,0 @@ }

{
"name": "google-font-installer",
"version": "1.0.3",
"version": "1.0.4",
"description": "Download and install Google Web Fonts on your local machine",

@@ -5,0 +5,0 @@ "author": "Lorenzo Zottar <lordgiotto@gmail.com>",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc