preview-email
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -5,4 +5,8 @@ "use strict"; | ||
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread")); | ||
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty")); | ||
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } | ||
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(source, true).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(source).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } | ||
const fs = require('fs'); | ||
@@ -16,3 +20,3 @@ | ||
const moment = require('moment'); | ||
const dayjs = require('dayjs'); | ||
@@ -37,3 +41,3 @@ const nodemailer = require('nodemailer'); | ||
const previewEmail = async (message, options) => { | ||
options = (0, _objectSpread2.default)({ | ||
options = _objectSpread({ | ||
dir: os.tmpdir(), | ||
@@ -53,3 +57,3 @@ id: uuid.v4(), | ||
pretty: true, | ||
moment | ||
dayjs | ||
})); | ||
@@ -64,2 +68,2 @@ const filePath = `${options.dir}/${options.id}.html`; | ||
module.exports = previewEmail; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9pbmRleC5qcyJdLCJuYW1lcyI6WyJmcyIsInJlcXVpcmUiLCJvcyIsInBhdGgiLCJkZWJ1ZyIsIm1vbWVudCIsIm5vZGVtYWlsZXIiLCJvcGVuIiwicGlmeSIsInB1ZyIsInV1aWQiLCJ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9LyR7b3B0aW9ucy5pZH0uaHRtbGA7XG4gIGRlYnVnKCdmaWxlUGF0aCcsIGZpbGVQYXRoKTtcbiAgYXdhaXQgd3JpdGVGaWxlKGZpbGVQYXRoLCBodG1sKTtcblxuICBpZiAob3B0aW9ucy5vcGVuKSBhd2FpdCBvcGVuKGZpbGVQYXRoLCBvcHRpb25zLm9wZW4pO1xuXG4gIHJldHVybiBgZmlsZTovLyR7ZmlsZVBhdGh9YDtcbn07XG5cbm1vZHVsZS5leHBvcnRzID0gcHJldmlld0VtYWlsO1xuIl19 |
{ | ||
"name": "preview-email", | ||
"description": "Automatically opens your browser to preview Node.js email messages sent with Nodemailer. Made for Lad!", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"author": "Nick Baugh <niftylettuce@gmail.com> (http://niftylettuce.com/)", | ||
@@ -23,32 +23,32 @@ "ava": { | ||
"dependencies": { | ||
"@babel/runtime": "^7.4.5", | ||
"@babel/runtime": "^7.6.3", | ||
"dayjs": "^1.8.16", | ||
"debug": "^4.1.1", | ||
"moment": "^2.24.0", | ||
"nodemailer": "^6.2.1", | ||
"open": "^6.3.0", | ||
"nodemailer": "^6.3.1", | ||
"open": "^6.4.0", | ||
"pify": "^4.0.1", | ||
"pug": "^2.0.4", | ||
"uuid": "^3.3.2" | ||
"uuid": "^3.3.3" | ||
}, | ||
"devDependencies": { | ||
"@babel/cli": "^7.4.4", | ||
"@babel/core": "^7.4.5", | ||
"@babel/plugin-transform-runtime": "^7.4.4", | ||
"@babel/preset-env": "^7.4.5", | ||
"@commitlint/cli": "^8.0.0", | ||
"@commitlint/config-conventional": "^8.0.0", | ||
"auto-bind": "^2.1.0", | ||
"ava": "^2.1.0", | ||
"codecov": "^3.5.0", | ||
"cross-env": "^5.2.0", | ||
"eslint": "^6.0.0", | ||
"@babel/cli": "^7.6.4", | ||
"@babel/core": "^7.6.4", | ||
"@babel/plugin-transform-runtime": "^7.6.2", | ||
"@babel/preset-env": "^7.6.3", | ||
"@commitlint/cli": "^8.2.0", | ||
"@commitlint/config-conventional": "^8.2.0", | ||
"auto-bind": "^2.1.1", | ||
"ava": "^2.4.0", | ||
"codecov": "^3.6.1", | ||
"cross-env": "^6.0.3", | ||
"eslint": "^6.5.1", | ||
"eslint-config-xo-lass": "^1.0.3", | ||
"eslint-plugin-node": "^9.1.0", | ||
"husky": "^2.4.1", | ||
"lint-staged": "^8.2.1", | ||
"eslint-plugin-node": "^10.0.0", | ||
"husky": "^3.0.8", | ||
"lint-staged": "^9.4.2", | ||
"nyc": "^14.1.1", | ||
"remark-cli": "^6.0.1", | ||
"remark-preset-github": "^0.0.14", | ||
"rimraf": "^2.6.3", | ||
"xo": "^0.24.0" | ||
"remark-cli": "^7.0.0", | ||
"remark-preset-github": "^0.0.16", | ||
"rimraf": "^3.0.0", | ||
"xo": "^0.25.3" | ||
}, | ||
@@ -55,0 +55,0 @@ "engines": { |
Sorry, the diff of this file is not supported yet
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
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
20992
48
0
+ Addeddayjs@^1.8.16
+ Addeddayjs@1.11.13(transitive)
- Removedmoment@^2.24.0
- Removedmoment@2.30.1(transitive)
Updated@babel/runtime@^7.6.3
Updatednodemailer@^6.3.1
Updatedopen@^6.4.0
Updateduuid@^3.3.3