feathers-mailer
Advanced tools
Comparing version 1.0.5 to 1.0.6
@@ -1,4 +0,4 @@ | ||
import mandrill from 'nodemailer-mandrill-transport' | ||
import Mailer from '../src' | ||
import feathers from 'feathers' | ||
import mandrill from 'nodemailer-mandrill-transport'; | ||
import Mailer from '../src'; | ||
import feathers from 'feathers'; | ||
import rest from 'feathers-rest'; | ||
@@ -24,3 +24,3 @@ import bodyParser from 'body-parser'; | ||
// A basic error handler, just like Express | ||
app.use(function(error, req, res, next){ | ||
app.use(function (error, req, res, next) { | ||
res.json(error); | ||
@@ -27,0 +27,0 @@ }); |
@@ -27,3 +27,3 @@ 'use strict'; | ||
//import errors from 'feathers-errors'; | ||
// import errors from 'feathers-errors'; | ||
@@ -59,4 +59,4 @@ var debug = (0, _debug2.default)('feathers-mailer'); | ||
// https://github.com/nodemailer/nodemailer#set-up-smtp says: | ||
// If callback argument is not set then the method returns a Promise object. | ||
return this.transporter.sendMail(body, cb); | ||
// If callback argument is not set then the method returns a Promise object. | ||
return this.transporter.sendMail(body); | ||
} | ||
@@ -63,0 +63,0 @@ }]); |
{ | ||
"name": "feathers-mailer", | ||
"description": "Feathers mailer service", | ||
"version": "1.0.5", | ||
"version": "1.0.6", | ||
"homepage": "https://github.com/feathersjs/feathers-mailer", | ||
@@ -30,3 +30,3 @@ "main": "lib/", | ||
"engines": { | ||
"node": ">= 0.12.0" | ||
"node": ">= 4" | ||
}, | ||
@@ -39,9 +39,18 @@ "scripts": { | ||
"release:major": "npm version major && npm publish", | ||
"compile": "rm -rf lib/ && babel -d lib/ src/", | ||
"compile": "rimraf lib/ && babel -d lib/ src/", | ||
"watch": "babel --watch -d lib/ src/", | ||
"jshint": "jshint src/. test/. --config", | ||
"mocha": "mocha test/ --compilers js:babel-core/register", | ||
"test": "npm run compile && npm run jshint && npm run mocha", | ||
"example": "babel-node examples/app" | ||
"lint": "eslint-if-supported semistandard --fix", | ||
"mocha": "mocha --opts mocha.opts", | ||
"test": "npm run compile && npm run lint && npm run coverage", | ||
"example": "babel-node examples/app", | ||
"coverage": "istanbul cover node_modules/mocha/bin/_mocha -- --opts mocha.opts" | ||
}, | ||
"semistandard": { | ||
"env": [ | ||
"mocha" | ||
], | ||
"ignore": [ | ||
"/lib" | ||
] | ||
}, | ||
"directories": { | ||
@@ -62,9 +71,12 @@ "lib": "lib" | ||
"body-parser": "^1.15.0", | ||
"eslint-if-supported": "^1.0.1", | ||
"feathers": "^2.0.0", | ||
"feathers-rest": "^1.2.3", | ||
"jshint": "^2.9.1", | ||
"istanbul": "^1.1.0-alpha.1", | ||
"mocha": "^2.4.5", | ||
"nodemailer-mandrill-transport": "^1.1.0", | ||
"nodemailer-stub-transport": "^1.0.0" | ||
"nodemailer-stub-transport": "^1.0.0", | ||
"rimraf": "^2.5.4", | ||
"semistandard": "^9.1.0" | ||
} | ||
} |
# feathers-mailer | ||
[![Build Status](https://travis-ci.org/feathersjs/feathers-mailer.png?branch=master)](https://travis-ci.org/feathersjs/feathers-mailer) | ||
[![Code Climate](https://codeclimate.com/github/feathersjs/feathers-mailer.png)](https://codeclimate.com/github/feathersjs/feathers-mailer) | ||
[![Test Coverage](https://codeclimate.com/github/feathersjs/feathers-mailer/badges/coverage.svg)](https://codeclimate.com/github/feathersjs/feathers-mailer/coverage) | ||
[![Dependency Status](https://img.shields.io/david/feathersjs/feathers-mailer.svg?style=flat-square)](https://david-dm.org/feathersjs/feathers-mailer) | ||
[![Download Status](https://img.shields.io/npm/dm/feathers-mailer.svg?style=flat-square)](https://www.npmjs.com/package/feathers-mailer) | ||
[![Slack Status](http://slack.feathersjs.com/badge.svg)](http://slack.feathersjs.com) | ||
@@ -5,0 +10,0 @@ > Feathers mailer service using [`nodemailer`](https://github.com/nodemailer/nodemailer) |
Sorry, the diff of this file is not supported yet
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
9127
7
77
0
15