mihailtennis6lab 1.0.1

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of mihailtennis6lab might be problematic. Click here for more details.

Files changed (192) hide show
  1. package/06-02.html +67 -0
  2. package/06-03.js +8 -0
  3. package/06-04.js +8 -0
  4. package/app.js +59 -0
  5. package/index.html +39 -0
  6. package/m0603/m0603.js +35 -0
  7. package/m0603/node_modules/.package-lock.json +151 -0
  8. package/m0603/node_modules/addressparser/CHANGELOG.md +16 -0
  9. package/m0603/node_modules/addressparser/LICENSE +16 -0
  10. package/m0603/node_modules/addressparser/README.md +64 -0
  11. package/m0603/node_modules/addressparser/lib/addressparser.js +291 -0
  12. package/m0603/node_modules/addressparser/package.json +22 -0
  13. package/m0603/node_modules/buildmail/.eslintrc.js +57 -0
  14. package/m0603/node_modules/buildmail/.travis.yml +18 -0
  15. package/m0603/node_modules/buildmail/CHANGELOG.md +119 -0
  16. package/m0603/node_modules/buildmail/Gruntfile.js +26 -0
  17. package/m0603/node_modules/buildmail/LICENSE +19 -0
  18. package/m0603/node_modules/buildmail/README.md +637 -0
  19. package/m0603/node_modules/buildmail/lib/buildmail.js +1137 -0
  20. package/m0603/node_modules/buildmail/package.json +36 -0
  21. package/m0603/node_modules/buildmail/test/fixtures/attachment.bin +1 -0
  22. package/m0603/node_modules/buildmail/test/libbuildmail-test.js +1396 -0
  23. package/m0603/node_modules/dkim-signer/.travis.yml +18 -0
  24. package/m0603/node_modules/dkim-signer/README.md +30 -0
  25. package/m0603/node_modules/dkim-signer/lib/dkim.js +221 -0
  26. package/m0603/node_modules/dkim-signer/package.json +30 -0
  27. package/m0603/node_modules/iconv-lite/.travis.yml +22 -0
  28. package/m0603/node_modules/iconv-lite/Changelog.md +108 -0
  29. package/m0603/node_modules/iconv-lite/LICENSE +21 -0
  30. package/m0603/node_modules/iconv-lite/README.md +159 -0
  31. package/m0603/node_modules/iconv-lite/encodings/dbcs-codec.js +554 -0
  32. package/m0603/node_modules/iconv-lite/encodings/dbcs-data.js +176 -0
  33. package/m0603/node_modules/iconv-lite/encodings/index.js +22 -0
  34. package/m0603/node_modules/iconv-lite/encodings/internal.js +187 -0
  35. package/m0603/node_modules/iconv-lite/encodings/sbcs-codec.js +72 -0
  36. package/m0603/node_modules/iconv-lite/encodings/sbcs-data-generated.js +451 -0
  37. package/m0603/node_modules/iconv-lite/encodings/sbcs-data.js +169 -0
  38. package/m0603/node_modules/iconv-lite/encodings/tables/big5-added.json +122 -0
  39. package/m0603/node_modules/iconv-lite/encodings/tables/cp936.json +264 -0
  40. package/m0603/node_modules/iconv-lite/encodings/tables/cp949.json +273 -0
  41. package/m0603/node_modules/iconv-lite/encodings/tables/cp950.json +177 -0
  42. package/m0603/node_modules/iconv-lite/encodings/tables/eucjp.json +182 -0
  43. package/m0603/node_modules/iconv-lite/encodings/tables/gb18030-ranges.json +1 -0
  44. package/m0603/node_modules/iconv-lite/encodings/tables/gbk-added.json +55 -0
  45. package/m0603/node_modules/iconv-lite/encodings/tables/shiftjis.json +125 -0
  46. package/m0603/node_modules/iconv-lite/encodings/utf16.js +176 -0
  47. package/m0603/node_modules/iconv-lite/encodings/utf7.js +289 -0
  48. package/m0603/node_modules/iconv-lite/lib/bom-handling.js +52 -0
  49. package/m0603/node_modules/iconv-lite/lib/extend-node.js +214 -0
  50. package/m0603/node_modules/iconv-lite/lib/index.d.ts +31 -0
  51. package/m0603/node_modules/iconv-lite/lib/index.js +141 -0
  52. package/m0603/node_modules/iconv-lite/lib/streams.js +120 -0
  53. package/m0603/node_modules/iconv-lite/package.json +53 -0
  54. package/m0603/node_modules/libbase64/LICENSE +19 -0
  55. package/m0603/node_modules/libbase64/README.md +108 -0
  56. package/m0603/node_modules/libbase64/lib/libbase64.js +201 -0
  57. package/m0603/node_modules/libbase64/package.json +29 -0
  58. package/m0603/node_modules/libmime/.eslintrc.js +57 -0
  59. package/m0603/node_modules/libmime/CHANGELOG.md +65 -0
  60. package/m0603/node_modules/libmime/LICENSE +19 -0
  61. package/m0603/node_modules/libmime/README.md +224 -0
  62. package/m0603/node_modules/libmime/lib/charset.js +85 -0
  63. package/m0603/node_modules/libmime/lib/libmime.js +832 -0
  64. package/m0603/node_modules/libmime/lib/mimetypes.js +2015 -0
  65. package/m0603/node_modules/libmime/package.json +34 -0
  66. package/m0603/node_modules/libqp/LICENSE +19 -0
  67. package/m0603/node_modules/libqp/README.md +109 -0
  68. package/m0603/node_modules/libqp/lib/libqp.js +313 -0
  69. package/m0603/node_modules/libqp/package.json +30 -0
  70. package/m0603/node_modules/m0603/.idea/.name +1 -0
  71. package/m0603/node_modules/m0603/.idea/Lab6.iml +12 -0
  72. package/m0603/node_modules/m0603/.idea/jsLibraryMappings.xml +6 -0
  73. package/m0603/node_modules/m0603/.idea/modules.xml +8 -0
  74. package/m0603/node_modules/m0603/06-02.js +20 -0
  75. package/m0603/node_modules/m0603/06-04.js +22 -0
  76. package/m0603/node_modules/m0603/form.html +26 -0
  77. package/m0603/node_modules/m0603/m06-03.js +23 -0
  78. package/m0603/node_modules/m0603/package.json +25 -0
  79. package/m0603/node_modules/mailcomposer/.eslintrc.js +56 -0
  80. package/m0603/node_modules/mailcomposer/Gruntfile.js +27 -0
  81. package/m0603/node_modules/mailcomposer/LICENSE +16 -0
  82. package/m0603/node_modules/mailcomposer/README.md +259 -0
  83. package/m0603/node_modules/mailcomposer/lib/mailcomposer.js +496 -0
  84. package/m0603/node_modules/mailcomposer/node_modules/iconv-lite/Changelog.md +93 -0
  85. package/m0603/node_modules/mailcomposer/node_modules/iconv-lite/LICENSE +21 -0
  86. package/m0603/node_modules/mailcomposer/node_modules/iconv-lite/README.md +157 -0
  87. package/m0603/node_modules/mailcomposer/node_modules/iconv-lite/encodings/dbcs-codec.js +554 -0
  88. package/m0603/node_modules/mailcomposer/node_modules/iconv-lite/encodings/dbcs-data.js +170 -0
  89. package/m0603/node_modules/mailcomposer/node_modules/iconv-lite/encodings/index.js +22 -0
  90. package/m0603/node_modules/mailcomposer/node_modules/iconv-lite/encodings/internal.js +187 -0
  91. package/m0603/node_modules/mailcomposer/node_modules/iconv-lite/encodings/sbcs-codec.js +72 -0
  92. package/m0603/node_modules/mailcomposer/node_modules/iconv-lite/encodings/sbcs-data-generated.js +451 -0
  93. package/m0603/node_modules/mailcomposer/node_modules/iconv-lite/encodings/sbcs-data.js +169 -0
  94. package/m0603/node_modules/mailcomposer/node_modules/iconv-lite/encodings/tables/big5-added.json +122 -0
  95. package/m0603/node_modules/mailcomposer/node_modules/iconv-lite/encodings/tables/cp936.json +264 -0
  96. package/m0603/node_modules/mailcomposer/node_modules/iconv-lite/encodings/tables/cp949.json +273 -0
  97. package/m0603/node_modules/mailcomposer/node_modules/iconv-lite/encodings/tables/cp950.json +177 -0
  98. package/m0603/node_modules/mailcomposer/node_modules/iconv-lite/encodings/tables/eucjp.json +182 -0
  99. package/m0603/node_modules/mailcomposer/node_modules/iconv-lite/encodings/tables/gb18030-ranges.json +1 -0
  100. package/m0603/node_modules/mailcomposer/node_modules/iconv-lite/encodings/tables/gbk-added.json +55 -0
  101. package/m0603/node_modules/mailcomposer/node_modules/iconv-lite/encodings/tables/shiftjis.json +125 -0
  102. package/m0603/node_modules/mailcomposer/node_modules/iconv-lite/encodings/utf16.js +174 -0
  103. package/m0603/node_modules/mailcomposer/node_modules/iconv-lite/encodings/utf7.js +289 -0
  104. package/m0603/node_modules/mailcomposer/node_modules/iconv-lite/lib/bom-handling.js +52 -0
  105. package/m0603/node_modules/mailcomposer/node_modules/iconv-lite/lib/extend-node.js +214 -0
  106. package/m0603/node_modules/mailcomposer/node_modules/iconv-lite/lib/index.js +141 -0
  107. package/m0603/node_modules/mailcomposer/node_modules/iconv-lite/lib/streams.js +120 -0
  108. package/m0603/node_modules/mailcomposer/node_modules/iconv-lite/package.json +52 -0
  109. package/m0603/node_modules/mailcomposer/node_modules/libmime/.eslintrc.js +57 -0
  110. package/m0603/node_modules/mailcomposer/node_modules/libmime/CHANGELOG.md +53 -0
  111. package/m0603/node_modules/mailcomposer/node_modules/libmime/LICENSE +19 -0
  112. package/m0603/node_modules/mailcomposer/node_modules/libmime/README.md +224 -0
  113. package/m0603/node_modules/mailcomposer/node_modules/libmime/lib/charset.js +85 -0
  114. package/m0603/node_modules/mailcomposer/node_modules/libmime/lib/libmime.js +812 -0
  115. package/m0603/node_modules/mailcomposer/node_modules/libmime/lib/mimetypes.js +2015 -0
  116. package/m0603/node_modules/mailcomposer/node_modules/libmime/package.json +34 -0
  117. package/m0603/node_modules/mailcomposer/package.json +42 -0
  118. package/m0603/node_modules/nodemailer/.gitattributes +6 -0
  119. package/m0603/node_modules/nodemailer/.prettierrc.js +8 -0
  120. package/m0603/node_modules/nodemailer/CHANGELOG.md +715 -0
  121. package/m0603/node_modules/nodemailer/CODE_OF_CONDUCT.md +76 -0
  122. package/m0603/node_modules/nodemailer/CONTRIBUTING.md +67 -0
  123. package/m0603/node_modules/nodemailer/LICENSE +16 -0
  124. package/m0603/node_modules/nodemailer/README.md +93 -0
  125. package/m0603/node_modules/nodemailer/SECURITY.txt +22 -0
  126. package/m0603/node_modules/nodemailer/lib/addressparser/index.js +313 -0
  127. package/m0603/node_modules/nodemailer/lib/base64/index.js +142 -0
  128. package/m0603/node_modules/nodemailer/lib/dkim/index.js +251 -0
  129. package/m0603/node_modules/nodemailer/lib/dkim/message-parser.js +155 -0
  130. package/m0603/node_modules/nodemailer/lib/dkim/relaxed-body.js +154 -0
  131. package/m0603/node_modules/nodemailer/lib/dkim/sign.js +117 -0
  132. package/m0603/node_modules/nodemailer/lib/fetch/cookies.js +281 -0
  133. package/m0603/node_modules/nodemailer/lib/fetch/index.js +269 -0
  134. package/m0603/node_modules/nodemailer/lib/json-transport/index.js +82 -0
  135. package/m0603/node_modules/nodemailer/lib/mail-composer/index.js +558 -0
  136. package/m0603/node_modules/nodemailer/lib/mailer/index.js +427 -0
  137. package/m0603/node_modules/nodemailer/lib/mailer/mail-message.js +315 -0
  138. package/m0603/node_modules/nodemailer/lib/mime-funcs/index.js +619 -0
  139. package/m0603/node_modules/nodemailer/lib/mime-funcs/mime-types.js +2102 -0
  140. package/m0603/node_modules/nodemailer/lib/mime-node/index.js +1290 -0
  141. package/m0603/node_modules/nodemailer/lib/mime-node/last-newline.js +33 -0
  142. package/m0603/node_modules/nodemailer/lib/mime-node/le-unix.js +43 -0
  143. package/m0603/node_modules/nodemailer/lib/mime-node/le-windows.js +52 -0
  144. package/m0603/node_modules/nodemailer/lib/nodemailer.js +143 -0
  145. package/m0603/node_modules/nodemailer/lib/qp/index.js +219 -0
  146. package/m0603/node_modules/nodemailer/lib/sendmail-transport/index.js +210 -0
  147. package/m0603/node_modules/nodemailer/lib/ses-transport/index.js +349 -0
  148. package/m0603/node_modules/nodemailer/lib/shared/index.js +639 -0
  149. package/m0603/node_modules/nodemailer/lib/smtp-connection/data-stream.js +108 -0
  150. package/m0603/node_modules/nodemailer/lib/smtp-connection/http-proxy-client.js +143 -0
  151. package/m0603/node_modules/nodemailer/lib/smtp-connection/index.js +1786 -0
  152. package/m0603/node_modules/nodemailer/lib/smtp-pool/index.js +648 -0
  153. package/m0603/node_modules/nodemailer/lib/smtp-pool/pool-resource.js +253 -0
  154. package/m0603/node_modules/nodemailer/lib/smtp-transport/index.js +416 -0
  155. package/m0603/node_modules/nodemailer/lib/stream-transport/index.js +135 -0
  156. package/m0603/node_modules/nodemailer/lib/well-known/index.js +47 -0
  157. package/m0603/node_modules/nodemailer/lib/well-known/services.json +286 -0
  158. package/m0603/node_modules/nodemailer/lib/xoauth2/index.js +376 -0
  159. package/m0603/node_modules/nodemailer/package.json +46 -0
  160. package/m0603/node_modules/nodemailer/postinstall.js +101 -0
  161. package/m0603/node_modules/nodemailer-fetch/.eslintrc.js +56 -0
  162. package/m0603/node_modules/nodemailer-fetch/.travis.yml +19 -0
  163. package/m0603/node_modules/nodemailer-fetch/CHANGELOG.md +30 -0
  164. package/m0603/node_modules/nodemailer-fetch/Gruntfile.js +27 -0
  165. package/m0603/node_modules/nodemailer-fetch/LICENSE +16 -0
  166. package/m0603/node_modules/nodemailer-fetch/README.md +55 -0
  167. package/m0603/node_modules/nodemailer-fetch/lib/cookies.js +275 -0
  168. package/m0603/node_modules/nodemailer-fetch/lib/fetch.js +224 -0
  169. package/m0603/node_modules/nodemailer-fetch/package.json +30 -0
  170. package/m0603/node_modules/nodemailer-fetch/test/cookies-test.js +391 -0
  171. package/m0603/node_modules/nodemailer-fetch/test/fetch-test.js +486 -0
  172. package/m0603/node_modules/nodemailer-shared/.eslintrc.js +59 -0
  173. package/m0603/node_modules/nodemailer-shared/.travis.yml +18 -0
  174. package/m0603/node_modules/nodemailer-shared/Gruntfile.js +27 -0
  175. package/m0603/node_modules/nodemailer-shared/LICENSE +16 -0
  176. package/m0603/node_modules/nodemailer-shared/README.md +14 -0
  177. package/m0603/node_modules/nodemailer-shared/lib/shared.js +282 -0
  178. package/m0603/node_modules/nodemailer-shared/package.json +36 -0
  179. package/m0603/node_modules/nodemailer-shared/test/fixtures/message.html +1 -0
  180. package/m0603/node_modules/nodemailer-shared/test/shared-test.js +291 -0
  181. package/m0603/node_modules/sendmail/.github/CONTRIBUTING.md +31 -0
  182. package/m0603/node_modules/sendmail/.github/ISSUE_TEMPLATE.md +32 -0
  183. package/m0603/node_modules/sendmail/.github/PULL_REQUEST_TEMPLATE.md +31 -0
  184. package/m0603/node_modules/sendmail/LICENSE +22 -0
  185. package/m0603/node_modules/sendmail/Readme.md +185 -0
  186. package/m0603/node_modules/sendmail/package.json +47 -0
  187. package/m0603/node_modules/sendmail/sendmail.js +328 -0
  188. package/m0603/node_modules/sendmail/yarn.lock +1360 -0
  189. package/m0603/package-lock.json +293 -0
  190. package/m0603/package.json +24 -0
  191. package/m0603.js +35 -0
  192. package/package.json +21 -0
package/06-02.html ADDED
@@ -0,0 +1,67 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <title>Node 04-02</title>
6
+ <style type="text/css">
7
+ * {
8
+ color: #011627;
9
+ background-color: #f5f5f5;
10
+ text-align: center;
11
+ font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
12
+ }
13
+ button {
14
+ background-color:#57d8ff;
15
+ border: none;
16
+ color: white;
17
+ padding: 8px 15px;
18
+ text-align: center;
19
+ font-size: 14pt;
20
+ border-radius: 10px;
21
+ }
22
+ #status {
23
+ margin: auto;
24
+ margin-top: 10px;
25
+ padding: 10px;
26
+ width: fit-content;
27
+ border-radius: 10px;
28
+ border: 3px solid #8980f5;
29
+ text-align: center;
30
+ display: none;
31
+ padding: 10px 20px;
32
+ max-width: 600px;
33
+ }
34
+ .row {
35
+ margin-bottom: 20px;
36
+ }
37
+ </style>
38
+ <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.0/jquery.min.js"></script>
39
+ </head>
40
+ <body>
41
+ <form action="http://localhost:5000/" method="POST">
42
+ <div class="row">
43
+ <label>Отправитель:</label><br>
44
+ <input type="email" name="sender" required/>
45
+ </div>
46
+ <div class="row">
47
+ <label>Пароль:</label><br>
48
+ <input type="password" name="password" required/>
49
+ </div>
50
+ <div class="row">
51
+ <label>Получатель:</label><br>
52
+ <input type="email" name="receiver" required/>
53
+ </div>
54
+ <div class="row">
55
+ <label>Тема:</label><br>
56
+ <input type="text" name="subject" required/>
57
+ </div>
58
+ <div class="row">
59
+ <label>Ваше сообщение:</label><br>
60
+ <input type="text" name="message" required/>
61
+ </div>
62
+ <div>
63
+ <button type="submit">Отправить сообщение</button>
64
+ </div>
65
+ </form>
66
+ </body>
67
+ </html>
package/06-03.js ADDED
@@ -0,0 +1,8 @@
1
+ const http = require('http');
2
+ const send = require('./m0603.js');
3
+
4
+ http.createServer((request, response) => {
5
+ response.writeHead(200, { 'Content-Type': 'text/html; charset=utf-8' });
6
+ send('оно работает');
7
+ response.end('<h2>Message sucessfully sent.</h2>');
8
+ }).listen(5000, () => console.log('Server running at http://localhost:5000/\n'));
package/06-04.js ADDED
@@ -0,0 +1,8 @@
1
+ const send = require('6labpartyhome');
2
+ const http = require('http');
3
+
4
+ http.createServer((req, res) => {
5
+ res.writeHead(200, { 'Content-Type': 'text/html; charset=utf-8' });
6
+ send('а оно тем более работаеееет');
7
+ res.end('<h2>Message sucessfully sent.</h2>');
8
+ }).listen(5000, () => console.log('Server running at http://localhost:5000/\n'));
package/app.js ADDED
@@ -0,0 +1,59 @@
1
+ //zkzrpjyoaeuiqmty
2
+
3
+
4
+ const http = require('http');
5
+ const url = require('url');
6
+ const fs = require('fs');
7
+ const { parse } = require('querystring');
8
+ const nodemailer = require('nodemailer');
9
+
10
+
11
+
12
+ http.createServer((request, response) => {
13
+ response.writeHead(200, { 'Content-Type': 'text/html; charset=utf-8' });
14
+
15
+ if (url.parse(request.url).pathname === '/' && request.method === 'GET')
16
+ {
17
+ response.end(fs.readFileSync('./06-02.html'));
18
+ }
19
+ else if (url.parse(request.url).pathname === '/' && request.method === 'POST')
20
+ {
21
+ let body = '';
22
+ request.on('data', chunk => { body += chunk.toString(); });
23
+
24
+ request.on('end', () => {
25
+ let parm = parse(body);
26
+
27
+ const transporter = nodemailer.createTransport({
28
+ host: 'smtp.gmail.com',
29
+ port: 465,
30
+ secure: false,
31
+ service: 'Gmail',
32
+ auth: {
33
+ user: parm.sender,
34
+ pass: parm.password
35
+ }
36
+ });
37
+
38
+ const mailOptions = {
39
+ from: parm.sender,
40
+ to: parm.receiver,
41
+ subject: parm.subject,
42
+ text: parm.message
43
+ }
44
+
45
+ transporter.sendMail(mailOptions, (err, info) => {
46
+ err ? console.log(err) : console.log('Sent: ' + info.response);
47
+ })
48
+
49
+ response.end(`<h2>Отправитель: ${parm.sender}</br>Получатель: ${parm.receiver}
50
+ </br>Тема: ${parm.subject}</br>Сообщение: ${parm.message}</h2>`);
51
+ })
52
+ }
53
+
54
+ else
55
+ response.end('<html><body><h1>Error! Visit http://localhost:5000/</h1></body></html>');
56
+ }).listen(5000, () => console.log('Server running at http://localhost:5000/\n'));
57
+
58
+
59
+
package/index.html ADDED
@@ -0,0 +1,39 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
6
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
7
+ <title>Document</title>
8
+ </head>
9
+ <body>
10
+ <form>
11
+ <div>
12
+ <label for="sender" >From:</label>
13
+ <input type="email" id="sender" placeholder="Enter email">
14
+ </div>
15
+ <div>
16
+ <label for="receiver">To:</label>
17
+ <input type="email" id="receiver" placeholder="Enter email">
18
+ </div>
19
+ <div>
20
+ <label for="message">Message:</label>
21
+ <textarea id="message"></textarea>
22
+ </div>
23
+ <button onclick="Send()">Send</button>
24
+ </form>
25
+ <script>
26
+ function Send() {
27
+ fetch('http://localhost:5000/', {
28
+ method: 'POST', mode: 'no-cors',
29
+ headers: { 'Content-Type':'application/json',
30
+ 'Accept':'text/html'
31
+ },
32
+ body: JSON.stringify({from: sender.value,
33
+ to: receiver.value,
34
+ message: message.value})
35
+ }).then(response => response.text()).then(pdata => alert(pdata));
36
+ }
37
+ </script>
38
+ </body>
39
+ </html>
package/m0603/m0603.js ADDED
@@ -0,0 +1,35 @@
1
+ const nodemailer = require('nodemailer');
2
+
3
+ const sender = 'nodemailertests1@gmail.com';
4
+ const receiver = 'nodemailertests1@gmail.com';
5
+ const password = 'pnrykthhiqovrczc';
6
+
7
+
8
+ const transporter = nodemailer.createTransport({
9
+ host: 'smtp.gmail.com',
10
+ port: 587,
11
+ secure: false,
12
+ service: 'Gmail',
13
+ auth: {
14
+ user: sender,
15
+ pass: password
16
+ }
17
+ });
18
+
19
+
20
+ send = (message) =>
21
+ {
22
+
23
+ const mailOptions = {
24
+ from: sender,
25
+ to: receiver,
26
+ subject: 'Module m0306',
27
+ text: message
28
+ }
29
+
30
+ transporter.sendMail(mailOptions, (err, info) => {
31
+ err ? console.log(err) : console.log('Sent: ' + info.response);
32
+ })
33
+ }
34
+
35
+ module.exports = send;
@@ -0,0 +1,151 @@
1
+ {
2
+ "name": "mihailtennis",
3
+ "version": "1.0.1",
4
+ "lockfileVersion": 2,
5
+ "requires": true,
6
+ "packages": {
7
+ "node_modules/addressparser": {
8
+ "version": "1.0.1",
9
+ "resolved": "https://registry.npmjs.org/addressparser/-/addressparser-1.0.1.tgz",
10
+ "integrity": "sha512-aQX7AISOMM7HFE0iZ3+YnD07oIeJqWGVnJ+ZIKaBZAk03ftmVYVqsGas/rbXKR21n4D/hKCSHypvcyOkds/xzg=="
11
+ },
12
+ "node_modules/buildmail": {
13
+ "version": "3.10.0",
14
+ "resolved": "https://registry.npmjs.org/buildmail/-/buildmail-3.10.0.tgz",
15
+ "integrity": "sha512-6e5sDN/pl3en5Klqdfyir7LEIBiFr9oqZuvYaEyVwjxpIbBZN+98e0j87Fz2Ukl8ud32rbk9VGOZAnsOZ7pkaA==",
16
+ "deprecated": "This project is unmaintained",
17
+ "dependencies": {
18
+ "addressparser": "1.0.1",
19
+ "libbase64": "0.1.0",
20
+ "libmime": "2.1.0",
21
+ "libqp": "1.1.0",
22
+ "nodemailer-fetch": "1.6.0",
23
+ "nodemailer-shared": "1.1.0"
24
+ }
25
+ },
26
+ "node_modules/buildmail/node_modules/iconv-lite": {
27
+ "version": "0.4.13",
28
+ "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.13.tgz",
29
+ "integrity": "sha512-QwVuTNQv7tXC5mMWFX5N5wGjmybjNBBD8P3BReTkPmipoxTUFgWM2gXNvldHQr6T14DH0Dh6qBVg98iJt7u4mQ==",
30
+ "engines": {
31
+ "node": ">=0.8.0"
32
+ }
33
+ },
34
+ "node_modules/buildmail/node_modules/libmime": {
35
+ "version": "2.1.0",
36
+ "resolved": "https://registry.npmjs.org/libmime/-/libmime-2.1.0.tgz",
37
+ "integrity": "sha512-4be2R6/jOasyPTw0BkpIZBVk2cElqjdIdS0PRPhbOCV4wWuL/ZcYYpN1BCTVB+6eIQ0uuAwp5hQTHFrM5Joa8w==",
38
+ "dependencies": {
39
+ "iconv-lite": "0.4.13",
40
+ "libbase64": "0.1.0",
41
+ "libqp": "1.1.0"
42
+ }
43
+ },
44
+ "node_modules/dkim-signer": {
45
+ "version": "0.2.2",
46
+ "resolved": "https://registry.npmjs.org/dkim-signer/-/dkim-signer-0.2.2.tgz",
47
+ "integrity": "sha512-24OZ3cCA30UTRz+Plpg+ibfPq3h7tDtsJRg75Bo0pGakZePXcPBddY80bKi1Bi7Jsz7tL5Cw527mhCRDvNFgfg==",
48
+ "dependencies": {
49
+ "libmime": "^2.0.3"
50
+ }
51
+ },
52
+ "node_modules/iconv-lite": {
53
+ "version": "0.4.15",
54
+ "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.15.tgz",
55
+ "integrity": "sha512-RGR+c9Lm+tLsvU57FTJJtdbv2hQw42Yl2n26tVIBaYmZzLN+EGfroUugN/z9nJf9kOXd49hBmpoGr4FEm+A4pw==",
56
+ "engines": {
57
+ "node": ">=0.10.0"
58
+ }
59
+ },
60
+ "node_modules/libbase64": {
61
+ "version": "0.1.0",
62
+ "resolved": "https://registry.npmjs.org/libbase64/-/libbase64-0.1.0.tgz",
63
+ "integrity": "sha512-B91jifmFw1DKEqEWstSpg1PbtUbBzR4yQAPT86kCQXBtud1AJVA+Z6RSklSrqmKe4q2eiEufgnhqJKPgozzfIQ=="
64
+ },
65
+ "node_modules/libmime": {
66
+ "version": "2.1.3",
67
+ "resolved": "https://registry.npmjs.org/libmime/-/libmime-2.1.3.tgz",
68
+ "integrity": "sha512-ABr2f4O+K99sypmkF/yPz2aXxUFHEZzv+iUkxItCeKZWHHXdQPpDXd6rV1kBBwL4PserzLU09EIzJ2lxC9hPfQ==",
69
+ "dependencies": {
70
+ "iconv-lite": "0.4.15",
71
+ "libbase64": "0.1.0",
72
+ "libqp": "1.1.0"
73
+ }
74
+ },
75
+ "node_modules/libqp": {
76
+ "version": "1.1.0",
77
+ "resolved": "https://registry.npmjs.org/libqp/-/libqp-1.1.0.tgz",
78
+ "integrity": "sha512-4Rgfa0hZpG++t1Vi2IiqXG9Ad1ig4QTmtuZF946QJP4bPqOYC78ixUXgz5TW/wE7lNaNKlplSYTxQ+fR2KZ0EA=="
79
+ },
80
+ "node_modules/m0603": {
81
+ "version": "1.0.2",
82
+ "resolved": "https://registry.npmjs.org/m0603/-/m0603-1.0.2.tgz",
83
+ "integrity": "sha512-5IU26BghhNwiUTI1frC1mZp/eWnZCLZ0RPC2ciMJRic7989tqirJcce5dyZC1pNrP9EC7slLPK4zMnehDz2Qqw==",
84
+ "dependencies": {
85
+ "nodemailer": "^6.8.0",
86
+ "sendmail": "^1.6.1"
87
+ }
88
+ },
89
+ "node_modules/mailcomposer": {
90
+ "version": "3.12.0",
91
+ "resolved": "https://registry.npmjs.org/mailcomposer/-/mailcomposer-3.12.0.tgz",
92
+ "integrity": "sha512-zBeDoKUTNI8IAsazoMQFt3eVSVRtDtgrvBjBVdBjxDEX+5KLlKtEFCrBXnxPhs8aTYufUS1SmbFnGpjHS53deg==",
93
+ "deprecated": "This project is unmaintained",
94
+ "dependencies": {
95
+ "buildmail": "3.10.0",
96
+ "libmime": "2.1.0"
97
+ }
98
+ },
99
+ "node_modules/mailcomposer/node_modules/iconv-lite": {
100
+ "version": "0.4.13",
101
+ "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.13.tgz",
102
+ "integrity": "sha512-QwVuTNQv7tXC5mMWFX5N5wGjmybjNBBD8P3BReTkPmipoxTUFgWM2gXNvldHQr6T14DH0Dh6qBVg98iJt7u4mQ==",
103
+ "engines": {
104
+ "node": ">=0.8.0"
105
+ }
106
+ },
107
+ "node_modules/mailcomposer/node_modules/libmime": {
108
+ "version": "2.1.0",
109
+ "resolved": "https://registry.npmjs.org/libmime/-/libmime-2.1.0.tgz",
110
+ "integrity": "sha512-4be2R6/jOasyPTw0BkpIZBVk2cElqjdIdS0PRPhbOCV4wWuL/ZcYYpN1BCTVB+6eIQ0uuAwp5hQTHFrM5Joa8w==",
111
+ "dependencies": {
112
+ "iconv-lite": "0.4.13",
113
+ "libbase64": "0.1.0",
114
+ "libqp": "1.1.0"
115
+ }
116
+ },
117
+ "node_modules/nodemailer": {
118
+ "version": "6.8.0",
119
+ "resolved": "https://registry.npmjs.org/nodemailer/-/nodemailer-6.8.0.tgz",
120
+ "integrity": "sha512-EjYvSmHzekz6VNkNd12aUqAco+bOkRe3Of5jVhltqKhEsjw/y0PYPJfp83+s9Wzh1dspYAkUW/YNQ350NATbSQ==",
121
+ "engines": {
122
+ "node": ">=6.0.0"
123
+ }
124
+ },
125
+ "node_modules/nodemailer-fetch": {
126
+ "version": "1.6.0",
127
+ "resolved": "https://registry.npmjs.org/nodemailer-fetch/-/nodemailer-fetch-1.6.0.tgz",
128
+ "integrity": "sha512-P7S5CEVGAmDrrpn351aXOLYs1R/7fD5NamfMCHyi6WIkbjS2eeZUB/TkuvpOQr0bvRZicVqo59+8wbhR3yrJbQ=="
129
+ },
130
+ "node_modules/nodemailer-shared": {
131
+ "version": "1.1.0",
132
+ "resolved": "https://registry.npmjs.org/nodemailer-shared/-/nodemailer-shared-1.1.0.tgz",
133
+ "integrity": "sha512-68xW5LSyPWv8R0GLm6veAvm7E+XFXkVgvE3FW0FGxNMMZqMkPFeGDVALfR1DPdSfcoO36PnW7q5AAOgFImEZGg==",
134
+ "dependencies": {
135
+ "nodemailer-fetch": "1.6.0"
136
+ }
137
+ },
138
+ "node_modules/sendmail": {
139
+ "version": "1.6.1",
140
+ "resolved": "https://registry.npmjs.org/sendmail/-/sendmail-1.6.1.tgz",
141
+ "integrity": "sha512-lIhvnjSi5e5jL8wA1GPP6j2QVlx6JOEfmdn0QIfmuJdmXYGmJ375kcOU0NSm/34J+nypm4sa1AXrYE5w3uNIIA==",
142
+ "dependencies": {
143
+ "dkim-signer": "0.2.2",
144
+ "mailcomposer": "3.12.0"
145
+ },
146
+ "engines": {
147
+ "node": ">=6.0.0"
148
+ }
149
+ }
150
+ }
151
+ }
@@ -0,0 +1,16 @@
1
+ # Changelog
2
+
3
+ ## v1.0.1 2016-02-06
4
+
5
+ * If the input string includes an unexpected < which messes up address part, then truncate unexpected data (similar to OSX Mail)
6
+
7
+ ## v1.0.0 2016-01-11
8
+
9
+ * Start using semver compatible versioning scheme, starting from v1.0.0
10
+ * Replaced jshint with eslint
11
+ * Dropped node 0.8 from the test targets. Should still work though
12
+
13
+ ## v0.3.2 2015-01-07
14
+
15
+ * Added changelog
16
+ * Allow semicolon (;) as address separator in addition to comma (,). Backport from https://github.com/whiteout-io/addressparser/pull/5
@@ -0,0 +1,16 @@
1
+ Copyright (c) 2014-2016 Andris Reinman
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy
4
+ of this software and associated documentation files (the "Software"), to deal
5
+ in the Software without restriction, including without limitation the rights
6
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
+ copies of the Software, and to permit persons to whom the Software is
8
+ furnished to do so, subject to the following conditions:
9
+
10
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
11
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
12
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
13
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
14
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
15
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
16
+ SOFTWARE.
@@ -0,0 +1,64 @@
1
+ # addressparser
2
+
3
+ Parse e-mail address fields. Input can be a single address (`"andris@kreata.ee"`), a formatted address (`"Andris Reinman <andris@kreata.ee>"`), comma separated list of addresses (`"andris@kreata.ee, andris.reinman@kreata.ee"`), an address group (`"disclosed-recipients:andris@kreata.ee;"`) or a mix of all the formats.
4
+
5
+ In addition to comma the semicolon is treated as the list delimiter as well (except when used in the group syntax), so a value `"andris@kreata.ee; andris.reinman@kreata.ee"` is identical to `"andris@kreata.ee, andris.reinman@kreata.ee"`.
6
+
7
+ ## Installation
8
+
9
+ Install with npm
10
+
11
+ ```
12
+ npm install addressparser
13
+ ```
14
+
15
+ ## Usage
16
+
17
+ Include the module
18
+
19
+ ```javascript
20
+ var addressparser = require('addressparser');
21
+ ```
22
+
23
+ Parse some address strings with `addressparser(field)`
24
+
25
+ ```javascript
26
+ var addresses = addressparser('andris <andris@tr.ee>');
27
+ console.log(addresses); // [{name: "andris", address:"andris@tr.ee"}]
28
+ ```
29
+
30
+ And when using groups
31
+
32
+ ```javascript
33
+ addressparser('Composers:"Bach, Sebastian" <sebu@example.com>, mozart@example.com (Mozzie);');
34
+ ```
35
+
36
+ the result would be
37
+
38
+ ```
39
+ [
40
+ {
41
+ name: "Composers",
42
+ group: [
43
+ {
44
+ address: "sebu@example.com",
45
+ name: "Bach, Sebastian"
46
+ },
47
+ {
48
+ address: "mozart@example.com",
49
+ name: "Mozzie"
50
+ }
51
+ ]
52
+ }
53
+ ]
54
+ ```
55
+
56
+ > Be prepared though that groups might be nested.
57
+
58
+ ## Notes
59
+
60
+ 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
61
+
62
+ ## License
63
+
64
+ **MIT**