custom-fonts-in-emails
Advanced tools
Comparing version 4.0.2 to 5.0.0
114
package.json
{ | ||
"name": "custom-fonts-in-emails", | ||
"description": "An extremely easy way to use custom fonts in emails without having to use art software. Made for Lad.", | ||
"version": "4.0.2", | ||
"version": "5.0.0", | ||
"author": "Nick Baugh <niftylettuce@gmail.com>", | ||
"bugs": "https://github.com/ladjs/custom-fonts-in-emails/issues", | ||
"commitlint": { | ||
"extends": [ | ||
"@commitlint/config-conventional" | ||
] | ||
}, | ||
"contributors": [ | ||
@@ -16,45 +11,42 @@ "Nick Baugh <niftylettuce@gmail.com>" | ||
"dependencies": { | ||
"cheerio": "^1.0.0-rc.3", | ||
"debug": "^4.1.1", | ||
"fast-levenshtein": "^2.0.6", | ||
"fast-safe-stringify": "^2.0.7", | ||
"cheerio": "^1.0.0-rc.12", | ||
"debug": "^4.3.4", | ||
"fast-levenshtein": "^3.0.0", | ||
"fast-safe-stringify": "^2.1.1", | ||
"is-string-and-not-blank": "^0.0.2", | ||
"lipo": "^1.0.1", | ||
"lodash": "^4.17.19", | ||
"lodash": "^4.17.21", | ||
"os-fonts": "^0.5.0", | ||
"pkg-dir": "^4.2.0", | ||
"rev-hash": "^3.0.0", | ||
"pkg-dir": "5", | ||
"rev-hash": "3", | ||
"sharp": "^0.30.7", | ||
"text-to-svg": "^3.1.5", | ||
"universalify": "^0.1.2" | ||
"universalify": "^2.0.0" | ||
}, | ||
"devDependencies": { | ||
"@babel/cli": "^7.10.4", | ||
"@babel/core": "^7.10.4", | ||
"@babel/preset-env": "^7.10.4", | ||
"@commitlint/cli": "^9.0.1", | ||
"@commitlint/config-conventional": "^9.0.1", | ||
"ava": "^3.10.1", | ||
"@babel/cli": "^7.18.6", | ||
"@babel/core": "^7.18.6", | ||
"@babel/preset-env": "^7.18.6", | ||
"@commitlint/cli": "^17.0.3", | ||
"@commitlint/config-conventional": "^17.0.3", | ||
"ava": "^4.3.0", | ||
"bitter-font": "^0.0.1", | ||
"codecov": "^3.7.0", | ||
"cross-env": "^7.0.2", | ||
"eslint": "^7.4.0", | ||
"eslint-config-xo-lass": "^1.0.3", | ||
"fixpack": "^3.0.6", | ||
"husky": "^4.2.5", | ||
"lint-staged": "^10.2.11", | ||
"cross-env": "^7.0.3", | ||
"detect-libc": "^2.0.1", | ||
"eslint": "^8.19.0", | ||
"eslint-config-xo-lass": "^2.0.1", | ||
"fixpack": "^4.0.0", | ||
"husky": "^8.0.1", | ||
"lint-staged": "^13.0.3", | ||
"nyc": "^15.1.0", | ||
"remark-cli": "^8.0.0", | ||
"remark-preset-github": "^2.0.2", | ||
"xo": "^0.32.1" | ||
"remark-cli": "^11.0.0", | ||
"remark-preset-github": "^4.0.4", | ||
"xo": "^0.50.0" | ||
}, | ||
"engines": { | ||
"node": ">= 8.x" | ||
"node": ">= 14" | ||
}, | ||
"files": [ | ||
"index.js" | ||
], | ||
"homepage": "https://github.com/ladjs/custom-fonts-in-emails", | ||
"husky": { | ||
"hooks": { | ||
"pre-commit": "lint-staged && npm test", | ||
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS" | ||
} | ||
}, | ||
"keywords": [ | ||
@@ -88,46 +80,10 @@ "awesome", | ||
"license": "MIT", | ||
"lint-staged": { | ||
"*.js": [ | ||
"xo --fix", | ||
"git add" | ||
], | ||
"*.md": [ | ||
"remark . -qfo", | ||
"git add" | ||
], | ||
"package.json": [ | ||
"fixpack", | ||
"git add" | ||
] | ||
}, | ||
"main": "lib/index.js", | ||
"prettier": { | ||
"singleQuote": true, | ||
"bracketSpacing": true, | ||
"trailingComma": "none" | ||
}, | ||
"remarkConfig": { | ||
"plugins": [ | ||
"preset-github" | ||
] | ||
}, | ||
"main": "index.js", | ||
"repository": "ladjs/custom-fonts-in-emails", | ||
"scripts": { | ||
"ava": "cross-env NODE_ENV=test ava", | ||
"build": "node_modules/.bin/babel src --out-dir lib", | ||
"coverage": "nyc report --reporter=text-lcov > coverage.lcov && codecov", | ||
"lint": "xo && remark . -qfo", | ||
"nyc": "cross-env NODE_ENV=test nyc ava", | ||
"precommit": "lint-staged && npm test", | ||
"test": "npm run build && npm run lint && npm run ava", | ||
"test-coverage": "npm run build && npm run lint && npm run nyc", | ||
"watch": "node_modules/.bin/babel src --watch --out-dir lib" | ||
}, | ||
"xo": { | ||
"prettier": true, | ||
"space": true, | ||
"extends": [ | ||
"xo-lass" | ||
] | ||
"lint": "xo --fix && remark . -qfo && fixpack", | ||
"prepare": "husky install", | ||
"pretest": "npm run lint", | ||
"test": "cross-env NODE_ENV=test nyc ava" | ||
} | ||
} |
# custom-fonts-in-emails | ||
[![build status](https://img.shields.io/travis/ladjs/custom-fonts-in-emails.svg)](https://travis-ci.org/ladjs/custom-fonts-in-emails) | ||
[![code coverage](https://img.shields.io/codecov/c/github/ladjs/custom-fonts-in-emails.svg)](https://codecov.io/gh/ladjs/custom-fonts-in-emails) | ||
[![build status](https://github.com/ladjs/custom-fonts-in-emails/actions/workflows/ci.yml/badge.svg)](https://github.com/ladjs/custom-fonts-in-emails/actions/workflows/ci.yml) | ||
[![code style](https://img.shields.io/badge/code_style-XO-5ed9c7.svg)](https://github.com/sindresorhus/xo) | ||
@@ -14,7 +13,7 @@ [![styled with prettier](https://img.shields.io/badge/styled_with-prettier-ff69b4.svg)](https://github.com/prettier/prettier) | ||
* :bulb: Automatic smart-detection of font names spelled incorrectly (or with the wrong extension) with 50% accuracy (uses [fast-levenshtein][fast-levenshtein] and checks for at least 50% distance match). | ||
* :crystal_ball: Detects user, local, network, system fonts, and `node_modules` folder fonts using [os-fonts][os-fonts] and [pkg-up][pkg-up] (e.g. you don't need to write `Arial.ttf`, you can just write `Arial`). | ||
* :crystal\_ball: Detects user, local, network, system fonts, and `node_modules` folder fonts using [os-fonts][os-fonts] and [pkg-up][pkg-up] (e.g. you don't need to write `Arial.ttf`, you can just write `Arial`). | ||
* :tada: Supports all WOFF, OTF, and TTF fonts (both with TrueType `glyf` and PostScript `cff` outlines). | ||
* :sparkles: Use with recommended packages [nodemailer][nodemailer] and [nodemailer-base64-to-s3][nodemailer-base64-to-s3], or simply use [Lad][lad-url] (has this built-in). | ||
* :pear: Pairs great with [font-awesome-assets][font-awesome-assets] and [juice][juice] (see [Lad's][lad-url] usage as an example). | ||
* :white_check_mark: Supports offline and missing image support by automatically adding `alt`, `title`, and `style` attributes of `color` and `font-size` based upon the options passed. | ||
* :white\_check\_mark: Supports offline and missing image support by automatically adding `alt`, `title`, and `style` attributes of `color` and `font-size` based upon the options passed. | ||
@@ -223,9 +222,9 @@ | ||
* [ ] [svg/svgo#620](https://github.com/svg/svgo/issues/620) | ||
* [ ] [svg/svgo#619](https://github.com/svg/svgo/issues/619) | ||
* [ ] [nodebox/opentype.js#238](https://github.com/nodebox/opentype.js/issues/238) | ||
* [ ] [jergason/recursive-readdir#35](https://github.com/jergason/recursive-readdir/pull/35) | ||
* [ ] [shrhdk/text-to-svg#20](https://github.com/shrhdk/text-to-svg/issues/20) | ||
* [ ] [shrhdk/text-to-svg#19](https://github.com/shrhdk/text-to-svg/issues/19) | ||
* [ ] [shrhdk/text-to-svg#18](https://github.com/shrhdk/text-to-svg/issues/18) | ||
* \[ ] [svg/svgo#620](https://github.com/svg/svgo/issues/620) | ||
* \[ ] [svg/svgo#619](https://github.com/svg/svgo/issues/619) | ||
* \[ ] [nodebox/opentype.js#238](https://github.com/nodebox/opentype.js/issues/238) | ||
* \[ ] [jergason/recursive-readdir#35](https://github.com/jergason/recursive-readdir/pull/35) | ||
* \[ ] [shrhdk/text-to-svg#20](https://github.com/shrhdk/text-to-svg/issues/20) | ||
* \[ ] [shrhdk/text-to-svg#19](https://github.com/shrhdk/text-to-svg/issues/19) | ||
* \[ ] [shrhdk/text-to-svg#18](https://github.com/shrhdk/text-to-svg/issues/18) | ||
@@ -243,3 +242,3 @@ | ||
## | ||
## | ||
@@ -246,0 +245,0 @@ [lad-url]: https://lad.js.org |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
0
2
69035
4
402
273
2
+ Addedsharp@^0.30.7
+ Addedbase64-js@1.5.1(transitive)
+ Addedbl@4.1.0(transitive)
+ Addedbuffer@5.7.1(transitive)
+ Addedchownr@1.1.4(transitive)
+ Addedcolor@4.2.3(transitive)
+ Addedcolor-convert@2.0.1(transitive)
+ Addedcolor-name@1.1.4(transitive)
+ Addedcolor-string@1.9.1(transitive)
+ Addeddecompress-response@6.0.0(transitive)
+ Addeddeep-extend@0.6.0(transitive)
+ Addeddetect-libc@2.0.3(transitive)
+ Addedend-of-stream@1.4.4(transitive)
+ Addedexpand-template@2.0.3(transitive)
+ Addedfast-levenshtein@3.0.0(transitive)
+ Addedfastest-levenshtein@1.0.16(transitive)
+ Addedfind-up@5.0.0(transitive)
+ Addedfs-constants@1.0.0(transitive)
+ Addedgithub-from-package@0.0.0(transitive)
+ Addedieee754@1.2.1(transitive)
+ Addedinherits@2.0.4(transitive)
+ Addedini@1.3.8(transitive)
+ Addedis-arrayish@0.3.2(transitive)
+ Addedlocate-path@6.0.0(transitive)
+ Addedmimic-response@3.1.0(transitive)
+ Addedminimist@1.2.8(transitive)
+ Addedmkdirp-classic@0.5.3(transitive)
+ Addednapi-build-utils@1.0.2(transitive)
+ Addednode-abi@3.68.0(transitive)
+ Addednode-addon-api@5.1.0(transitive)
+ Addedonce@1.4.0(transitive)
+ Addedp-limit@3.1.0(transitive)
+ Addedp-locate@5.0.0(transitive)
+ Addedpkg-dir@5.0.0(transitive)
+ Addedprebuild-install@7.1.2(transitive)
+ Addedpump@3.0.2(transitive)
+ Addedrc@1.2.8(transitive)
+ Addedreadable-stream@3.6.2(transitive)
+ Addedsafe-buffer@5.2.1(transitive)
+ Addedsemver@7.6.3(transitive)
+ Addedsharp@0.30.7(transitive)
+ Addedsimple-concat@1.0.1(transitive)
+ Addedsimple-get@4.0.1(transitive)
+ Addedsimple-swizzle@0.2.2(transitive)
+ Addedstring_decoder@1.3.0(transitive)
+ Addedstrip-json-comments@2.0.1(transitive)
+ Addedtar-fs@2.1.1(transitive)
+ Addedtar-stream@2.2.0(transitive)
+ Addedtunnel-agent@0.6.0(transitive)
+ Addeduniversalify@2.0.1(transitive)
+ Addedutil-deprecate@1.0.2(transitive)
+ Addedwrappy@1.0.2(transitive)
+ Addedyocto-queue@0.1.0(transitive)
- Removedlipo@^1.0.1
- Removed@babel/runtime@7.25.6(transitive)
- Removedabortcontroller-polyfill@1.7.5(transitive)
- Removedasynckit@0.4.0(transitive)
- Removedboolean@3.2.0(transitive)
- Removedcaseless@0.12.0(transitive)
- Removedcombined-stream@1.0.8(transitive)
- Removedcommon-tags@1.8.2(transitive)
- Removedcross-fetch@3.1.8(transitive)
- Removeddelayed-stream@1.0.0(transitive)
- Removedfast-levenshtein@2.0.6(transitive)
- Removedfind-up@4.1.0(transitive)
- Removedform-data@3.0.0(transitive)
- Removedfrisbee@3.1.4(transitive)
- Removedlipo@1.0.1(transitive)
- Removedlocate-path@5.0.0(transitive)
- Removedmime-db@1.52.0(transitive)
- Removedmime-types@2.1.35(transitive)
- Removednode-fetch@2.7.0(transitive)
- Removedp-limit@2.3.0(transitive)
- Removedp-locate@4.1.0(transitive)
- Removedp-try@2.2.0(transitive)
- Removedpkg-dir@4.2.0(transitive)
- Removedqs@6.9.4(transitive)
- Removedquerystringify@2.2.0(transitive)
- Removedregenerator-runtime@0.14.1(transitive)
- Removedrequires-port@1.0.0(transitive)
- Removedtr46@0.0.3(transitive)
- Removeduniversalify@0.1.2(transitive)
- Removedurl-join@4.0.1(transitive)
- Removedurl-parse@1.5.10(transitive)
- Removedwebidl-conversions@3.0.1(transitive)
- Removedwhatwg-url@5.0.0(transitive)
Updatedcheerio@^1.0.0-rc.12
Updateddebug@^4.3.4
Updatedfast-levenshtein@^3.0.0
Updatedfast-safe-stringify@^2.1.1
Updatedlodash@^4.17.21
Updatedpkg-dir@5
Updatedrev-hash@3
Updateduniversalify@^2.0.0