mirror of
https://github.com/mgerb/mywebsite
synced 2026-01-12 02:42:48 +00:00
updated bunch of file paths and changed the way posts are loaded
This commit is contained in:
2
node_modules/nodemailer-wellknown/.npmignore
generated
vendored
Normal file
2
node_modules/nodemailer-wellknown/.npmignore
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
node_modules
|
||||
.DS_Store
|
||||
16
node_modules/nodemailer-wellknown/.travis.yml
generated
vendored
Normal file
16
node_modules/nodemailer-wellknown/.travis.yml
generated
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
language: node_js
|
||||
node_js:
|
||||
- "0.10"
|
||||
- 0.12
|
||||
- iojs
|
||||
before_install:
|
||||
- npm install -g grunt-cli
|
||||
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
|
||||
19
node_modules/nodemailer-wellknown/LICENSE
generated
vendored
Normal file
19
node_modules/nodemailer-wellknown/LICENSE
generated
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
Copyright (c) 2014 Andris Reinman
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
76
node_modules/nodemailer-wellknown/README.md
generated
vendored
Normal file
76
node_modules/nodemailer-wellknown/README.md
generated
vendored
Normal file
@@ -0,0 +1,76 @@
|
||||
# Nodemailer Well-Known Services
|
||||
|
||||
Returns SMTP configuration for well-known services
|
||||
|
||||
## Usage
|
||||
|
||||
Install with npm
|
||||
|
||||
npm install nodemailer-wellknown
|
||||
|
||||
Require in your script
|
||||
|
||||
```javascript
|
||||
var wellknown = require('nodemailer-wellknown');
|
||||
```
|
||||
|
||||
Resolve SMTP settings
|
||||
|
||||
```javascript
|
||||
var config = wellknown('Gmail');
|
||||
// { host: 'smtp.gmail.com',
|
||||
// port: 465,
|
||||
// secure: true }
|
||||
```
|
||||
|
||||
## Supported services
|
||||
|
||||
Service names are case insensitive
|
||||
|
||||
* **'1und1'**
|
||||
* **'AOL'**
|
||||
* **'DebugMail.io'**
|
||||
* **'DynectEmail'**
|
||||
* **'FastMail'**
|
||||
* **'GandiMail'**
|
||||
* **'Gmail'**
|
||||
* **'Godaddy'**
|
||||
* **'GodaddyAsia'**
|
||||
* **'GodaddyEurope'**
|
||||
* **'hot.ee'**
|
||||
* **'Hotmail'**
|
||||
* **'iCloud'**
|
||||
* **'mail.ee'**
|
||||
* **'Mail.ru'**
|
||||
* **'Mailgun'**
|
||||
* **'Mailjet'**
|
||||
* **'Mandrill'**
|
||||
* **'Naver'**
|
||||
* **'Postmark'**
|
||||
* **'QQ'**
|
||||
* **'QQex'**
|
||||
* **'SendCloud'**
|
||||
* **'SendGrid'**
|
||||
* **'SES'**
|
||||
* **'Sparkpost'**
|
||||
* **'Yahoo'**
|
||||
* **'Yandex'**
|
||||
* **'Zoho'**
|
||||
|
||||
### Example usage with Nodemailer
|
||||
|
||||
> **NB!** This repo might be updated more often than Nodemailer itself, so in case
|
||||
> a wellknown host is not working, check that you have the latest version of
|
||||
> nodemailer-wellknown installed in your node_modules. Otherwise the data you try
|
||||
> to use might be still missing.
|
||||
|
||||
```javascript
|
||||
var transporter = nodemailer.createTransport({
|
||||
service: 'postmark' // <- resolved as 'Postmark' from the wellknown info
|
||||
auth: {...}
|
||||
});
|
||||
```
|
||||
|
||||
## License
|
||||
|
||||
**MIT**
|
||||
47
node_modules/nodemailer-wellknown/index.js
generated
vendored
Normal file
47
node_modules/nodemailer-wellknown/index.js
generated
vendored
Normal file
@@ -0,0 +1,47 @@
|
||||
'use strict';
|
||||
|
||||
var services = require('./services.json');
|
||||
var normalized = {};
|
||||
|
||||
Object.keys(services).forEach(function(key) {
|
||||
var service = services[key];
|
||||
|
||||
normalized[normalizeKey(key)] = normalizeService(service);
|
||||
|
||||
[].concat(service.aliases || []).forEach(function(alias) {
|
||||
normalized[normalizeKey(alias)] = normalizeService(service);
|
||||
});
|
||||
|
||||
[].concat(service.domains || []).forEach(function(domain) {
|
||||
normalized[normalizeKey(domain)] = normalizeService(service);
|
||||
});
|
||||
});
|
||||
|
||||
function normalizeKey(key) {
|
||||
return key.replace(/[^a-zA-Z0-9.\-]/g, '').toLowerCase();
|
||||
}
|
||||
|
||||
function normalizeService(service) {
|
||||
var filter = ['domains', 'aliases'];
|
||||
var response = {};
|
||||
|
||||
Object.keys(service).forEach(function(key) {
|
||||
if (filter.indexOf(key) < 0) {
|
||||
response[key] = service[key];
|
||||
}
|
||||
});
|
||||
|
||||
return response;
|
||||
}
|
||||
|
||||
/**
|
||||
* Resolves SMTP config for given key. Key can be a name (like 'Gmail'), alias (like 'Google Mail') or
|
||||
* an email address (like 'test@googlemail.com').
|
||||
*
|
||||
* @param {String} key [description]
|
||||
* @returns {Object} SMTP config or false if not found
|
||||
*/
|
||||
module.exports = function(key) {
|
||||
key = normalizeKey(key.split('@').pop());
|
||||
return normalized[key] || false;
|
||||
};
|
||||
77
node_modules/nodemailer-wellknown/package.json
generated
vendored
Normal file
77
node_modules/nodemailer-wellknown/package.json
generated
vendored
Normal file
@@ -0,0 +1,77 @@
|
||||
{
|
||||
"_args": [
|
||||
[
|
||||
"nodemailer-wellknown@^0.1.7",
|
||||
"/home/mitchell/Desktop/test-mywebsite/mywebsite/node_modules/nodemailer-smtp-transport"
|
||||
]
|
||||
],
|
||||
"_from": "nodemailer-wellknown@>=0.1.7 <0.2.0",
|
||||
"_id": "nodemailer-wellknown@0.1.7",
|
||||
"_inCache": true,
|
||||
"_installable": true,
|
||||
"_location": "/nodemailer-wellknown",
|
||||
"_nodeVersion": "0.12.7",
|
||||
"_npmUser": {
|
||||
"email": "andris@kreata.ee",
|
||||
"name": "andris"
|
||||
},
|
||||
"_npmVersion": "2.11.3",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"name": "nodemailer-wellknown",
|
||||
"raw": "nodemailer-wellknown@^0.1.7",
|
||||
"rawSpec": "^0.1.7",
|
||||
"scope": null,
|
||||
"spec": ">=0.1.7 <0.2.0",
|
||||
"type": "range"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/nodemailer-smtp-transport"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/nodemailer-wellknown/-/nodemailer-wellknown-0.1.7.tgz",
|
||||
"_shasum": "aa641990a99fa80a9da8a23562905477cceee55f",
|
||||
"_shrinkwrap": null,
|
||||
"_spec": "nodemailer-wellknown@^0.1.7",
|
||||
"_where": "/home/mitchell/Desktop/test-mywebsite/mywebsite/node_modules/nodemailer-smtp-transport",
|
||||
"author": {
|
||||
"name": "Andris Reinman"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/andris9/nodemailer-wellknown/issues"
|
||||
},
|
||||
"dependencies": {},
|
||||
"description": "Well known SMTP services",
|
||||
"devDependencies": {
|
||||
"nodeunit": "^0.9.1"
|
||||
},
|
||||
"directories": {},
|
||||
"dist": {
|
||||
"shasum": "aa641990a99fa80a9da8a23562905477cceee55f",
|
||||
"tarball": "http://registry.npmjs.org/nodemailer-wellknown/-/nodemailer-wellknown-0.1.7.tgz"
|
||||
},
|
||||
"gitHead": "f2796b16c34a8672a5ce22e1bf79416f300de03d",
|
||||
"homepage": "https://github.com/andris9/nodemailer-wellknown",
|
||||
"keywords": [
|
||||
"Nodemailer",
|
||||
"SMTP"
|
||||
],
|
||||
"license": "MIT",
|
||||
"main": "index.js",
|
||||
"maintainers": [
|
||||
{
|
||||
"name": "andris",
|
||||
"email": "andris@node.ee"
|
||||
}
|
||||
],
|
||||
"name": "nodemailer-wellknown",
|
||||
"optionalDependencies": {},
|
||||
"readme": "ERROR: No README data found!",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git://github.com/andris9/nodemailer-wellknown.git"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "nodeunit test.js"
|
||||
},
|
||||
"version": "0.1.7"
|
||||
}
|
||||
225
node_modules/nodemailer-wellknown/services.json
generated
vendored
Normal file
225
node_modules/nodemailer-wellknown/services.json
generated
vendored
Normal file
@@ -0,0 +1,225 @@
|
||||
{
|
||||
"1und1": {
|
||||
"host": "smtp.1und1.de",
|
||||
"port": 465,
|
||||
"secure": true,
|
||||
"authMethod": "LOGIN"
|
||||
},
|
||||
|
||||
"AOL": {
|
||||
"domains": [
|
||||
"aol.com"
|
||||
],
|
||||
"host": "smtp.aol.com",
|
||||
"port": 587
|
||||
},
|
||||
|
||||
"DebugMail": {
|
||||
"host": "debugmail.io",
|
||||
"port": 25
|
||||
},
|
||||
|
||||
"DynectEmail": {
|
||||
"aliases": ["Dynect"],
|
||||
"host": "smtp.dynect.net",
|
||||
"port": 25
|
||||
},
|
||||
|
||||
"FastMail": {
|
||||
"domains": [
|
||||
"fastmail.fm"
|
||||
],
|
||||
"host": "mail.messagingengine.com",
|
||||
"port": 465,
|
||||
"secure": true
|
||||
},
|
||||
|
||||
"GandiMail": {
|
||||
"aliases": [
|
||||
"Gandi",
|
||||
"Gandi Mail"
|
||||
],
|
||||
"host": "mail.gandi.net",
|
||||
"port": 587
|
||||
},
|
||||
|
||||
"Gmail": {
|
||||
"aliases": [
|
||||
"Google Mail"
|
||||
],
|
||||
"domains": [
|
||||
"gmail.com",
|
||||
"googlemail.com"
|
||||
],
|
||||
"host": "smtp.gmail.com",
|
||||
"port": 465,
|
||||
"secure": true
|
||||
},
|
||||
|
||||
"Godaddy": {
|
||||
"host": "smtpout.secureserver.net",
|
||||
"port": 25
|
||||
},
|
||||
|
||||
"GodaddyAsia": {
|
||||
"host": "smtp.asia.secureserver.net",
|
||||
"port": 25
|
||||
},
|
||||
|
||||
"GodaddyEurope": {
|
||||
"host": "smtp.europe.secureserver.net",
|
||||
"port": 25
|
||||
},
|
||||
|
||||
"hot.ee": {
|
||||
"host": "mail.hot.ee"
|
||||
},
|
||||
|
||||
"Hotmail": {
|
||||
"aliases": [
|
||||
"Outlook",
|
||||
"Outlook.com",
|
||||
"Hotmail.com"
|
||||
],
|
||||
"domains": [
|
||||
"hotmail.com",
|
||||
"outlook.com"
|
||||
],
|
||||
"host": "smtp.live.com",
|
||||
"port": 587,
|
||||
"tls": {
|
||||
"ciphers": "SSLv3"
|
||||
}
|
||||
},
|
||||
|
||||
"iCloud": {
|
||||
"aliases": ["Me", "Mac"],
|
||||
"domains": [
|
||||
"me.com",
|
||||
"mac.com"
|
||||
],
|
||||
"host": "smtp.mail.me.com",
|
||||
"port": 587
|
||||
},
|
||||
|
||||
"mail.ee": {
|
||||
"host": "smtp.mail.ee"
|
||||
},
|
||||
|
||||
"Mail.ru": {
|
||||
"host": "smtp.mail.ru",
|
||||
"port": 465,
|
||||
"secure": true
|
||||
},
|
||||
|
||||
"Mailgun": {
|
||||
"host": "smtp.mailgun.org",
|
||||
"port": 587
|
||||
},
|
||||
|
||||
"Mailjet": {
|
||||
"host": "in.mailjet.com",
|
||||
"port": 587
|
||||
},
|
||||
|
||||
"Naver": {
|
||||
"host": "smtp.naver.com",
|
||||
"port": 587
|
||||
},
|
||||
|
||||
"Mandrill": {
|
||||
"host": "smtp.mandrillapp.com",
|
||||
"port": 587
|
||||
},
|
||||
|
||||
"Postmark": {
|
||||
"aliases": ["PostmarkApp"],
|
||||
"host": "smtp.postmarkapp.com",
|
||||
"port": 2525
|
||||
},
|
||||
|
||||
"QQ": {
|
||||
"domains": [
|
||||
"qq.com"
|
||||
],
|
||||
"host": "smtp.qq.com",
|
||||
"port": 465,
|
||||
"secure": true
|
||||
},
|
||||
|
||||
"QQex": {
|
||||
"aliases": ["QQ Enterprise"],
|
||||
"domains": [
|
||||
"exmail.qq.com"
|
||||
],
|
||||
"host": "smtp.exmail.qq.com",
|
||||
"port": 465,
|
||||
"secure": true
|
||||
},
|
||||
|
||||
"SendCloud": {
|
||||
"host": "smtpcloud.sohu.com",
|
||||
"port": 25
|
||||
},
|
||||
|
||||
"SendGrid": {
|
||||
"host": "smtp.sendgrid.net",
|
||||
"port": 587
|
||||
},
|
||||
|
||||
"SES": {
|
||||
"host": "email-smtp.us-east-1.amazonaws.com",
|
||||
"port": 465,
|
||||
"secure": true
|
||||
},
|
||||
|
||||
"Sparkpost": {
|
||||
"aliases": [
|
||||
"SparkPost",
|
||||
"SparkPost Mail"
|
||||
],
|
||||
"domains": [
|
||||
"sparkpost.com"
|
||||
],
|
||||
"host": "smtp.sparkpostmail.com",
|
||||
"port": 587,
|
||||
"secure": false,
|
||||
"tls": true
|
||||
},
|
||||
|
||||
"Yahoo": {
|
||||
"domains": [
|
||||
"yahoo.com"
|
||||
],
|
||||
"host": "smtp.mail.yahoo.com",
|
||||
"port": 465,
|
||||
"secure": true
|
||||
},
|
||||
|
||||
"Yandex": {
|
||||
"domains": [
|
||||
"yandex.ru"
|
||||
],
|
||||
"host": "smtp.yandex.ru",
|
||||
"port": 465,
|
||||
"secure": true
|
||||
},
|
||||
|
||||
"Zoho": {
|
||||
"host": "smtp.zoho.com",
|
||||
"port": 465,
|
||||
"secure": true,
|
||||
"authMethod": "LOGIN"
|
||||
},
|
||||
"126": {
|
||||
"host": "smtp.126.com",
|
||||
"port": 465,
|
||||
"secure": true
|
||||
},
|
||||
"163": {
|
||||
"host": "smtp.163.com",
|
||||
"port": 465,
|
||||
"secure": true
|
||||
}
|
||||
|
||||
}
|
||||
21
node_modules/nodemailer-wellknown/test.js
generated
vendored
Normal file
21
node_modules/nodemailer-wellknown/test.js
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
var wellknown = require('./index');
|
||||
|
||||
module.exports['Find by key'] = function(test) {
|
||||
test.ok(wellknown('Gmail'));
|
||||
test.done();
|
||||
};
|
||||
|
||||
module.exports['Find by alias'] = function(test) {
|
||||
test.ok(wellknown('Google Mail'));
|
||||
test.done();
|
||||
};
|
||||
|
||||
module.exports['Find by domain'] = function(test) {
|
||||
test.ok(wellknown('GoogleMail.com'));
|
||||
test.done();
|
||||
};
|
||||
|
||||
module.exports['No match'] = function(test) {
|
||||
test.ok(!wellknown('zzzzzz'));
|
||||
test.done();
|
||||
};
|
||||
Reference in New Issue
Block a user