Socket
Socket
Sign inDemoInstall

custom-fonts-in-emails

Package Overview
Dependencies
74
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.0.0 to 2.0.1

46

index.js

@@ -135,3 +135,3 @@ const fs = require('fs');

return stats.isFile() ? filePath : false;
} catch (err) {
} catch (error) {
return false;

@@ -160,4 +160,4 @@ }

return options;
} catch (err) {
throw err;
} catch (error) {
throw error;
}

@@ -201,4 +201,4 @@ }

return $.html($svg);
} catch (err) {
throw err;
} catch (error) {
throw error;
}

@@ -229,4 +229,4 @@ }

return $.html($img);
} catch (err) {
throw err;
} catch (error) {
throw error;
}

@@ -289,4 +289,4 @@ }

return $.html($img);
} catch (err) {
throw err;
} catch (error) {
throw error;
}

@@ -299,4 +299,4 @@ }

return str;
} catch (err) {
throw err;
} catch (error) {
throw error;
}

@@ -309,4 +309,4 @@ }

return str;
} catch (err) {
throw err;
} catch (error) {
throw error;
}

@@ -341,4 +341,4 @@ }

return fontNamesByDistance[0].name;
} catch (err) {
throw err;
} catch (error) {
throw error;
}

@@ -351,4 +351,4 @@ }

return fontPathsByName[name];
} catch (err) {
throw err;
} catch (error) {
throw error;
}

@@ -362,4 +362,4 @@ }

return _.zipObject(fontNames, fontPaths);
} catch (err) {
throw err;
} catch (error) {
throw error;
}

@@ -381,4 +381,4 @@ }

return fonts;
} catch (err) {
throw err;
} catch (error) {
throw error;
}

@@ -393,4 +393,4 @@ }

);
} catch (err) {
throw err;
} catch (error) {
throw error;
}

@@ -397,0 +397,0 @@ }

{
"name": "custom-fonts-in-emails",
"description": "An extremely easy way to use custom fonts in emails without having to use art software. This package was built for @CrocodileJS.",
"version": "2.0.0",
"version": "2.0.1",
"author": "Nick Baugh <niftylettuce@gmail.com>",

@@ -53,21 +53,21 @@ "bugs": "https://github.com/crocodilejs/custom-fonts-in-emails/issues",

"fast-levenshtein": "^2.0.6",
"lipo": "^0.0.9",
"lodash": "^4.17.10",
"lipo": "^0.0.10",
"lodash": "^4.17.11",
"os-fonts": "^0.5.0",
"text-to-svg": "^3.1.3",
"underscore.string": "^3.3.4"
"text-to-svg": "^3.1.5",
"underscore.string": "^3.3.5"
},
"devDependencies": {
"chai": "^4.1.2",
"codecov": "^3.0.2",
"chai": "^4.2.0",
"codecov": "^3.3.0",
"dirty-chai": "^2.0.1",
"eslint": "^4.19.1",
"eslint": "^5.16.0",
"eslint-config-crocodile": "^1.0.0",
"eslint-config-prettier": "^2.9.0",
"eslint-plugin-mocha": "^5.0.0",
"eslint-plugin-prettier": "^2.6.0",
"eslint-config-prettier": "^4.2.0",
"eslint-plugin-mocha": "^5.3.0",
"eslint-plugin-prettier": "^3.0.1",
"istanbul": "^1.1.0-alpha.1",
"mocha": "^5.2.0",
"prettier": "^1.12.1",
"xo": "^0.21.1"
"mocha": "^6.1.4",
"prettier": "^1.17.0",
"xo": "^0.24.0"
},

@@ -74,0 +74,0 @@ "engines": {

@@ -34,4 +34,4 @@ const fs = require('fs');

});
} catch (err) {
e = err;
} catch (error) {
e = error;
} finally {

@@ -50,4 +50,4 @@ expect(e).to.be.an('error');

customFonts.setOptions(opts);
} catch (err) {
e = err;
} catch (error) {
e = error;
} finally {

@@ -115,4 +115,4 @@ expect(e).to.be.an('error');

});
} catch (err) {
e = err;
} catch (error) {
e = error;
} finally {

@@ -197,4 +197,4 @@ expect(e).to.be.an('error');

customFonts.png({ text }, 'foo');
} catch (err) {
e = err;
} catch (error) {
e = error;
} finally {

@@ -228,4 +228,4 @@ expect(e).to.be.an('error');

customFonts.getClosestFontName('Foo Bar Baz Beep');
} catch (err) {
e = err;
} catch (error) {
e = error;
} finally {

@@ -232,0 +232,0 @@ expect(e).to.be.an('error');

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc