Skip to content

Commit

Permalink
Forked as smtp-connection-mit project. Do not use Grunt. Use smtp-ser…
Browse files Browse the repository at this point in the history
…ver-mit and nyc for tests.
  • Loading branch information
dex4er committed Mar 22, 2017
1 parent 4d52e7d commit a2e3681
Show file tree
Hide file tree
Showing 10 changed files with 55 additions and 138 deletions.
70 changes: 0 additions & 70 deletions .eslintrc.js

This file was deleted.

7 changes: 5 additions & 2 deletions .gitignore
@@ -1,3 +1,6 @@
node_modules
/coverage/
/node_modules/

/.nyc_output/

.DS_Store
examples
3 changes: 0 additions & 3 deletions .npmignore

This file was deleted.

26 changes: 14 additions & 12 deletions .travis.yml
@@ -1,13 +1,15 @@
language: node_js
sudo: false
node_js:
- 6
notifications:
email:
- andris@kreata.ee
webhooks:
urls:
- https://webhooks.gitter.im/e/0ed18fd9b3e529b3c2cc
on_success: change # options: [always|never|change] default: always
on_failure: always # options: [always|never|change] default: always
on_start: false # default: false
language: node_js
matrix:
include:
- node_js: "7"
env: NPM_RUN_SCRIPT=test-coverage
- node_js: "6"
install:
- npm install
- if [ -n "$NPM_INSTALL_PACKAGES" ]; then npm install $NPM_INSTALL_PACKAGES; fi
script:
- npm run ${NPM_RUN_SCRIPT:-test}
after_script:
- npm install coveralls
- "test -f ./coverage/lcov.info && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js"
5 changes: 5 additions & 0 deletions CHANGELOG.md
@@ -1,5 +1,10 @@
# Changelog

## v3.2.1 2017-03-22

* Do not use grunt.
* Requires smtp-server-mit.

## v3.1.0 2016-12-21

* use setKeepAlive(true) on newly created sockets
Expand Down
27 changes: 0 additions & 27 deletions Gruntfile.js

This file was deleted.

11 changes: 8 additions & 3 deletions README.md
@@ -1,4 +1,9 @@
# smtp-connection
# smtp-connection-mit

[![Build Status](https://secure.travis-ci.org/dex4er/js-smtp-connection-mit.svg)](http://travis-ci.org/dex4er/js-smtp-connection-mit) [![Coverage Status](https://coveralls.io/repos/github/dex4er/js-smtp-connection-mit/badge.svg)](https://coveralls.io/github/dex4er/js-smtp-connection-mit) [![npm](https://img.shields.io/npm/v/smtp-connection-mit.svg)](https://www.npmjs.com/package/smtp-connection-mit)

This is a fork of [smtp-connection](https://www.npmjs.com/package/smtp-connection) module
just before it changed a license from MIT to EUPL-v1.1.

SMTP client module. Connect to SMTP servers and send mail with it.

Expand All @@ -17,13 +22,13 @@ This module is the successor for the client part of the (now deprecated) SMTP mo
Install with npm

```
npm install smtp-connection
npm install smtp-connection-mit
```

Require in your script

```javascript
const SMTPConnection = require('smtp-connection');
const SMTPConnection = require('smtp-connection-mit');
```

### Create SMTPConnection instance
Expand Down
1 change: 1 addition & 0 deletions lib/smtp-connection-mit.js
@@ -0,0 +1 @@
module.exports = require('./smtp-connection')
39 changes: 20 additions & 19 deletions package.json
@@ -1,45 +1,46 @@
{
"name": "smtp-connection",
"version": "3.2.0",
"version": "3.2.1",
"description": "Connect to SMTP servers",
"main": "lib/smtp-connection.js",
"main": "lib/smtp-connection-mit.js",
"directories": {
"test": "test"
},
"scripts": {
"test": "grunt mochaTest"
},
"repository": {
"type": "git",
"url": "git://github.com/andris9/smtp-connection.git"
"url": "git://github.com/dex4er/js-smtp-connection-mit.git"
},
"keywords": [
"SMTP"
],
"author": "Andris Reinman",
"author": "Piotr Roszatycki",
"license": "MIT",
"bugs": {
"url": "https://github.com/andris9/smtp-connection/issues"
"url": "https://github.com/dex4er/js-smtp-connection-mit/issues"
},
"homepage": "http://github.com/dex4er/js-smtp-connection-mit",
"engines": {
"node": ">=6.0.0"
},
"dependencies": {
"httpntlm": "1.7.3",
"nodemailer-shared": "2.0.0"
},
"homepage": "https://github.com/andris9/smtp-connection",
"devDependencies": {
"bunyan": "^1.8.5",
"chai": "^3.5.0",
"grunt": "^1.0.1",
"grunt-cli": "^1.2.0",
"grunt-eslint": "^19.0.0",
"grunt-mocha-test": "^0.13.2",
"mocha": "^3.2.0",
"nyc": "^10.1.2",
"proxy-test-server": "^1.0.0",
"sinon": "^1.17.6",
"smtp-server": "^1.17.0",
"smtp-server-mit": "^1.17.1",
"xoauth2": "^1.2.0"
},
"dependencies": {
"httpntlm": "1.7.3",
"nodemailer-shared": "2.0.0"
"scripts": {
"test": "mocha",
"test-coverage": "nyc -r text -r lcov mocha"
},
"engines": {
"node": ">=6.0.0"
"nyc": {
"exclude": []
}
}
4 changes: 2 additions & 2 deletions test/smtp-connection-test.js
Expand Up @@ -8,9 +8,9 @@ process.env.NODE_TLS_REJECT_UNAUTHORIZED = '0';
var fs = require('fs');
var chai = require('chai');
var expect = chai.expect;
var SMTPConnection = require('../lib/smtp-connection');
var SMTPConnection = require('../lib/smtp-connection-mit');
var packageData = require('../package.json');
var SMTPServer = require('smtp-server').SMTPServer;
var SMTPServer = require('smtp-server-mit').SMTPServer;
var HttpConnectProxy = require('proxy-test-server');
var net = require('net');
var xoauth2Server = require('./xoauth2-mock-server');
Expand Down

0 comments on commit a2e3681

Please sign in to comment.