mirror of
https://github.com/atlanticbiomedical/biomedjs.git
synced 2025-07-02 00:47:26 -04:00
Updated emailjs
This commit is contained in:
6
node_modules/emailjs/node_modules/mimelib/node_modules/addressparser/package.json
generated
vendored
6
node_modules/emailjs/node_modules/mimelib/node_modules/addressparser/package.json
generated
vendored
@ -20,9 +20,5 @@
|
||||
"readme": "# addressparser\n\nParse e-mail address fields\n\n## Installation\n\nInstall with npm\n\n npm install addressparser\n\n## Usage\n\nInclude the module\n\n var addressparser = require(\"addressparser\");\n\nParse some address strings with addressparser(field)\n\n var addresses = addressparser(\"andris <andris@tr.ee>\");\n console.log(addresses); // [{name: \"andris\", address:\"andris@tr.ee\"}]\n\nAnd when using groups\n\n addressparser('Composers:\"Bach, Sebastian\" <sebu@example.com>, mozart@example.com (Mozzie);');\n\nthe result is\n\n [\n {\n name: \"Composers\",\n group: [\n {\n address: \"sebu@example.com\",\n name: \"Bach, Sebastian\"\n },\n {\n address: \"mozart@example.com\",\n name: \"Mozzie\"\n }\n ]\n }\n ]\n\n\n## Notes\n\n * **NB!** this module does not decode any mime-word or punycode encoded strings, it is only a basic parser for parsing the base data, you need to decode the encoded parts later by yourself\n\n## License\n\n**MIT**",
|
||||
"readmeFilename": "README.md",
|
||||
"_id": "addressparser@0.2.1",
|
||||
"dist": {
|
||||
"shasum": "f34ffc5926d038f57181440ab7f1e1af7a5a52db"
|
||||
},
|
||||
"_from": "addressparser@~0.2.0",
|
||||
"_resolved": "https://registry.npmjs.org/addressparser/-/addressparser-0.2.1.tgz"
|
||||
"_from": "addressparser@~0.2.0"
|
||||
}
|
||||
|
File diff suppressed because one or more lines are too long
6
node_modules/emailjs/node_modules/mimelib/node_modules/encoding/package.json
generated
vendored
6
node_modules/emailjs/node_modules/mimelib/node_modules/encoding/package.json
generated
vendored
@ -23,9 +23,5 @@
|
||||
"readme": "# Encoding\n\n**encoding** is a simple wrapper around [node-iconv](https://github.com/bnoordhuis/node-iconv) and [iconv-lite](https://github.com/ashtuchkin/iconv-lite/) to convert strings from one encoding to another. If node-iconv is not available for some reason,\niconv-lite will be used instead of it as a fallback.\n\n## Install\n\nInstall through npm\n\n npm install encoding\n\n## Usage\n\nRequire the module\n\n var encoding = require(\"encoding\");\n\nConvert with encoding.convert()\n\n var resultBuffer = encoding.convert(text, toCharset, fromCharset);\n\nWhere\n\n * **text** is either a Buffer or a String to be converted\n * **toCharset** is the characterset to convert the string\n * **fromCharset** (*optional*, defaults to UTF-8) is the source charset\n\nOutput of the conversion is always a Buffer object.\n\nExample\n\n var result = encoding.convert(\"ÕÄÖÜ\", \"Latin_1\");\n console.log(result); //<Buffer d5 c4 d6 dc>\n\n## iconv support\n\nBy default only iconv-lite is bundled. If you need node-iconv support, you need to add it\nas an additional dependency for your project:\n\n ...,\n \"dependencies\":{\n \"encoding\": \"*\",\n \"iconv\": \"*\"\n },\n ...\n\n## License\n\n**MIT**",
|
||||
"readmeFilename": "README.md",
|
||||
"_id": "encoding@0.1.8",
|
||||
"dist": {
|
||||
"shasum": "dfe6b04ae615f11cf653132d7f9674327a2ebf3c"
|
||||
},
|
||||
"_from": "encoding@~0.1",
|
||||
"_resolved": "https://registry.npmjs.org/encoding/-/encoding-0.1.8.tgz"
|
||||
"_from": "encoding@~0.1"
|
||||
}
|
||||
|
10
node_modules/emailjs/package.json
generated
vendored
10
node_modules/emailjs/package.json
generated
vendored
File diff suppressed because one or more lines are too long
6
node_modules/emailjs/smtp/message.js
generated
vendored
6
node_modules/emailjs/smtp/message.js
generated
vendored
@ -5,6 +5,7 @@ var os = require('os');
|
||||
var path = require('path');
|
||||
var moment = require('moment');
|
||||
var mimelib = require('mimelib');
|
||||
var address = require('./address');
|
||||
var CRLF = "\r\n";
|
||||
var MIMECHUNK = 76; // MIME standard wants 76 char chunks when sending out.
|
||||
var BASE64CHUNK= 24; // BASE64 bits needed before padding is used
|
||||
@ -38,7 +39,10 @@ function person2address(l)
|
||||
|
||||
// a string of comma separated emails or comma separated name+<emails>
|
||||
if(typeof l == 'string') {
|
||||
return l.replace(/([^<]+[^\s])(\s*)(<[^>]+>)/g, function(full, name, space, email) { return mimelib.encodeMimeWord(name, 'Q', 'utf-8') + space + email; });
|
||||
var addresses = address.parse(l);
|
||||
return addresses.map(function(addr) {
|
||||
return addr.label !== '' ? mimelib.encodeMimeWord(addr.label, 'Q', 'utf-8') + ' ' + '<' + addr.address + '>' : addr.address;
|
||||
}).join(', ');
|
||||
}
|
||||
|
||||
return null;
|
||||
|
Reference in New Issue
Block a user