@coolgk/email
Advanced tools
Comparing version 2.0.3 to 2.0.4
/*! | ||
* @package @coolgk/utils | ||
* @version 2.0.3 | ||
* @version 2.1.1 | ||
* @link https://www.npmjs.com/package/@coolgk/utils | ||
@@ -8,3 +8,3 @@ * @license MIT | ||
import mimeTypes = require('mime-types'); | ||
import { lookup } from 'mime-types'; | ||
import { stripTags } from '@coolgk/string'; | ||
@@ -14,3 +14,3 @@ export interface IEmailConfig { | ||
readonly stripTags?: typeof stripTags; | ||
readonly getMimeType?: typeof mimeTypes.lookup; | ||
readonly getMimeType?: typeof lookup; | ||
readonly user?: string; | ||
@@ -30,3 +30,3 @@ readonly password?: string; | ||
readonly stripTags?: typeof stripTags; | ||
readonly getMimeType?: typeof mimeTypes.lookup; | ||
readonly getMimeType?: typeof lookup; | ||
} | ||
@@ -33,0 +33,0 @@ export interface IEmailAddress { |
/*! | ||
* @package @coolgk/utils | ||
* @version 2.0.3 | ||
* @version 2.1.1 | ||
* @link https://www.npmjs.com/package/@coolgk/utils | ||
@@ -11,3 +11,3 @@ * @license MIT | ||
const emailjs = require("emailjs"); | ||
const mimeTypes = require("mime-types"); | ||
const mime_types_1 = require("mime-types"); | ||
const path_1 = require("path"); | ||
@@ -20,3 +20,3 @@ const string_1 = require("@coolgk/string"); | ||
this._stripTags = options.stripTags || string_1.stripTags; | ||
this._getMimeType = options.getMimeType || mimeTypes.lookup; | ||
this._getMimeType = options.getMimeType || mime_types_1.lookup; | ||
} | ||
@@ -23,0 +23,0 @@ send(options) { |
@@ -1,1 +0,1 @@ | ||
{"name":"@coolgk/email","version":"2.0.3","author":"Daniel Gong <daniel.k.gong@gmail.com>","homepage":"https://www.npmjs.com/package/@coolgk/utils","bugs":{"url":"https://github.com/coolgk/node-utils/issues"},"repository":{"type":"git","url":"https://github.com/coolgk/node-utils.git"},"description":"a email sender wrapper class","keywords":["email","smtp sender","typescript"],"dependencies":{"mime-types":"^2.1.17","emailjs":"^1.0.12","@coolgk/string":"^2"},"pre-commit":{"silent":false,"run":["tslint","test:precommit"]},"main":"./email.js","types":"./email.d.ts","license":"MIT"} | ||
{"name":"@coolgk/email","version":"2.0.4","author":"Daniel Gong <daniel.k.gong@gmail.com>","homepage":"https://www.npmjs.com/package/@coolgk/utils","bugs":{"url":"https://github.com/coolgk/node-utils/issues"},"repository":{"type":"git","url":"https://github.com/coolgk/node-utils.git"},"description":"a email sender wrapper class","keywords":["email","smtp sender","typescript"],"dependencies":{"mime-types":"^2.1.17","emailjs":"^1.0.12","@coolgk/string":"^2","@types/mime-types":"^2.1.0"},"main":"./email.js","types":"./email.d.ts","license":"MIT"} |
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
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
8149
4
+ Added@types/mime-types@^2.1.0
+ Added@types/mime-types@2.1.4(transitive)