m0603va 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (117) hide show
  1. package/Laba6/file1.js +23 -0
  2. package/Laba6/file2.js +23 -0
  3. package/Laba6/index.html +63 -0
  4. package/Laba6/m0603.js +29 -0
  5. package/Laba6/node_modules/.package-lock.json +83 -0
  6. package/Laba6/node_modules/httpntlm/.jshintrc +4 -0
  7. package/Laba6/node_modules/httpntlm/LICENSE +20 -0
  8. package/Laba6/node_modules/httpntlm/README.md +148 -0
  9. package/Laba6/node_modules/httpntlm/httpntlm.js +104 -0
  10. package/Laba6/node_modules/httpntlm/ntlm.js +390 -0
  11. package/Laba6/node_modules/httpntlm/package.json +33 -0
  12. package/Laba6/node_modules/httpreq/LICENSE +19 -0
  13. package/Laba6/node_modules/httpreq/README.md +383 -0
  14. package/Laba6/node_modules/httpreq/contributors.md +26 -0
  15. package/Laba6/node_modules/httpreq/lib/httpreq.js +681 -0
  16. package/Laba6/node_modules/httpreq/package.json +102 -0
  17. package/Laba6/node_modules/m0603sol/m0603.js +29 -0
  18. package/Laba6/node_modules/m0603sol/package.json +12 -0
  19. package/Laba6/node_modules/nodemailer/.gitattributes +6 -0
  20. package/Laba6/node_modules/nodemailer/.prettierrc.js +8 -0
  21. package/Laba6/node_modules/nodemailer/CHANGELOG.md +725 -0
  22. package/Laba6/node_modules/nodemailer/CODE_OF_CONDUCT.md +76 -0
  23. package/Laba6/node_modules/nodemailer/CONTRIBUTING.md +67 -0
  24. package/Laba6/node_modules/nodemailer/LICENSE +16 -0
  25. package/Laba6/node_modules/nodemailer/README.md +97 -0
  26. package/Laba6/node_modules/nodemailer/SECURITY.txt +22 -0
  27. package/Laba6/node_modules/nodemailer/lib/addressparser/index.js +313 -0
  28. package/Laba6/node_modules/nodemailer/lib/base64/index.js +142 -0
  29. package/Laba6/node_modules/nodemailer/lib/dkim/index.js +251 -0
  30. package/Laba6/node_modules/nodemailer/lib/dkim/message-parser.js +155 -0
  31. package/Laba6/node_modules/nodemailer/lib/dkim/relaxed-body.js +154 -0
  32. package/Laba6/node_modules/nodemailer/lib/dkim/sign.js +117 -0
  33. package/Laba6/node_modules/nodemailer/lib/fetch/cookies.js +281 -0
  34. package/Laba6/node_modules/nodemailer/lib/fetch/index.js +274 -0
  35. package/Laba6/node_modules/nodemailer/lib/json-transport/index.js +82 -0
  36. package/Laba6/node_modules/nodemailer/lib/mail-composer/index.js +558 -0
  37. package/Laba6/node_modules/nodemailer/lib/mailer/index.js +427 -0
  38. package/Laba6/node_modules/nodemailer/lib/mailer/mail-message.js +315 -0
  39. package/Laba6/node_modules/nodemailer/lib/mime-funcs/index.js +625 -0
  40. package/Laba6/node_modules/nodemailer/lib/mime-funcs/mime-types.js +2102 -0
  41. package/Laba6/node_modules/nodemailer/lib/mime-node/index.js +1290 -0
  42. package/Laba6/node_modules/nodemailer/lib/mime-node/last-newline.js +33 -0
  43. package/Laba6/node_modules/nodemailer/lib/mime-node/le-unix.js +43 -0
  44. package/Laba6/node_modules/nodemailer/lib/mime-node/le-windows.js +52 -0
  45. package/Laba6/node_modules/nodemailer/lib/nodemailer.js +143 -0
  46. package/Laba6/node_modules/nodemailer/lib/qp/index.js +219 -0
  47. package/Laba6/node_modules/nodemailer/lib/sendmail-transport/index.js +210 -0
  48. package/Laba6/node_modules/nodemailer/lib/ses-transport/index.js +349 -0
  49. package/Laba6/node_modules/nodemailer/lib/shared/index.js +638 -0
  50. package/Laba6/node_modules/nodemailer/lib/smtp-connection/data-stream.js +108 -0
  51. package/Laba6/node_modules/nodemailer/lib/smtp-connection/http-proxy-client.js +143 -0
  52. package/Laba6/node_modules/nodemailer/lib/smtp-connection/index.js +1796 -0
  53. package/Laba6/node_modules/nodemailer/lib/smtp-pool/index.js +648 -0
  54. package/Laba6/node_modules/nodemailer/lib/smtp-pool/pool-resource.js +253 -0
  55. package/Laba6/node_modules/nodemailer/lib/smtp-transport/index.js +416 -0
  56. package/Laba6/node_modules/nodemailer/lib/stream-transport/index.js +135 -0
  57. package/Laba6/node_modules/nodemailer/lib/well-known/index.js +47 -0
  58. package/Laba6/node_modules/nodemailer/lib/well-known/services.json +286 -0
  59. package/Laba6/node_modules/nodemailer/lib/xoauth2/index.js +376 -0
  60. package/Laba6/node_modules/nodemailer/package.json +46 -0
  61. package/Laba6/node_modules/nodemailer/postinstall.js +101 -0
  62. package/Laba6/node_modules/nodemailer-fetch/.eslintrc.js +56 -0
  63. package/Laba6/node_modules/nodemailer-fetch/.travis.yml +19 -0
  64. package/Laba6/node_modules/nodemailer-fetch/CHANGELOG.md +30 -0
  65. package/Laba6/node_modules/nodemailer-fetch/Gruntfile.js +27 -0
  66. package/Laba6/node_modules/nodemailer-fetch/LICENSE +16 -0
  67. package/Laba6/node_modules/nodemailer-fetch/README.md +55 -0
  68. package/Laba6/node_modules/nodemailer-fetch/lib/cookies.js +275 -0
  69. package/Laba6/node_modules/nodemailer-fetch/lib/fetch.js +224 -0
  70. package/Laba6/node_modules/nodemailer-fetch/package.json +30 -0
  71. package/Laba6/node_modules/nodemailer-fetch/test/cookies-test.js +391 -0
  72. package/Laba6/node_modules/nodemailer-fetch/test/fetch-test.js +486 -0
  73. package/Laba6/node_modules/nodemailer-shared/.eslintrc.js +59 -0
  74. package/Laba6/node_modules/nodemailer-shared/.travis.yml +18 -0
  75. package/Laba6/node_modules/nodemailer-shared/Gruntfile.js +27 -0
  76. package/Laba6/node_modules/nodemailer-shared/LICENSE +16 -0
  77. package/Laba6/node_modules/nodemailer-shared/README.md +14 -0
  78. package/Laba6/node_modules/nodemailer-shared/lib/shared.js +282 -0
  79. package/Laba6/node_modules/nodemailer-shared/package.json +36 -0
  80. package/Laba6/node_modules/nodemailer-shared/test/fixtures/message.html +1 -0
  81. package/Laba6/node_modules/nodemailer-shared/test/shared-test.js +291 -0
  82. package/Laba6/node_modules/nodemailer-smtp-transport/.eslintrc.js +59 -0
  83. package/Laba6/node_modules/nodemailer-smtp-transport/Gruntfile.js +27 -0
  84. package/Laba6/node_modules/nodemailer-smtp-transport/LICENSE +19 -0
  85. package/Laba6/node_modules/nodemailer-smtp-transport/README.md +7 -0
  86. package/Laba6/node_modules/nodemailer-smtp-transport/lib/smtp-transport.js +281 -0
  87. package/Laba6/node_modules/nodemailer-smtp-transport/package.json +37 -0
  88. package/Laba6/node_modules/nodemailer-wellknown/.travis.yml +17 -0
  89. package/Laba6/node_modules/nodemailer-wellknown/LICENSE +19 -0
  90. package/Laba6/node_modules/nodemailer-wellknown/README.md +80 -0
  91. package/Laba6/node_modules/nodemailer-wellknown/index.js +47 -0
  92. package/Laba6/node_modules/nodemailer-wellknown/package.json +26 -0
  93. package/Laba6/node_modules/nodemailer-wellknown/services.json +255 -0
  94. package/Laba6/node_modules/nodemailer-wellknown/test.js +23 -0
  95. package/Laba6/node_modules/smtp-connection/.eslintrc.js +56 -0
  96. package/Laba6/node_modules/smtp-connection/CHANGELOG.md +164 -0
  97. package/Laba6/node_modules/smtp-connection/Gruntfile.js +27 -0
  98. package/Laba6/node_modules/smtp-connection/LICENSE +19 -0
  99. package/Laba6/node_modules/smtp-connection/README.md +200 -0
  100. package/Laba6/node_modules/smtp-connection/lib/data-stream.js +111 -0
  101. package/Laba6/node_modules/smtp-connection/lib/smtp-connection.js +1443 -0
  102. package/Laba6/node_modules/smtp-connection/package.json +41 -0
  103. package/Laba6/node_modules/underscore/LICENSE +23 -0
  104. package/Laba6/node_modules/underscore/README.md +22 -0
  105. package/Laba6/node_modules/underscore/package.json +41 -0
  106. package/Laba6/node_modules/underscore/underscore-min.js +6 -0
  107. package/Laba6/node_modules/underscore/underscore.js +1415 -0
  108. package/Laba6/package-lock.json +94 -0
  109. package/Laba6/package.json +17 -0
  110. package/Laba6.txt +31 -0
  111. package/file1.js +23 -0
  112. package/file2.js +23 -0
  113. package/index.html +63 -0
  114. package/m0603.js +29 -0
  115. package/m0603Sol/m0603.js +29 -0
  116. package/m0603Sol/package.json +12 -0
  117. package/package.json +17 -0
@@ -0,0 +1,255 @@
1
+ {
2
+ "1und1": {
3
+ "host": "smtp.1und1.de",
4
+ "port": 465,
5
+ "secure": true,
6
+ "authMethod": "LOGIN"
7
+ },
8
+
9
+ "AOL": {
10
+ "domains": [
11
+ "aol.com"
12
+ ],
13
+ "host": "smtp.aol.com",
14
+ "port": 587
15
+ },
16
+
17
+ "DebugMail": {
18
+ "host": "debugmail.io",
19
+ "port": 25
20
+ },
21
+
22
+ "DynectEmail": {
23
+ "aliases": ["Dynect"],
24
+ "host": "smtp.dynect.net",
25
+ "port": 25
26
+ },
27
+
28
+ "FastMail": {
29
+ "domains": [
30
+ "fastmail.fm"
31
+ ],
32
+ "host": "mail.messagingengine.com",
33
+ "port": 465,
34
+ "secure": true
35
+ },
36
+
37
+ "GandiMail": {
38
+ "aliases": [
39
+ "Gandi",
40
+ "Gandi Mail"
41
+ ],
42
+ "host": "mail.gandi.net",
43
+ "port": 587
44
+ },
45
+
46
+ "Gmail": {
47
+ "aliases": [
48
+ "Google Mail"
49
+ ],
50
+ "domains": [
51
+ "gmail.com",
52
+ "googlemail.com"
53
+ ],
54
+ "host": "smtp.gmail.com",
55
+ "port": 465,
56
+ "secure": true
57
+ },
58
+
59
+ "Godaddy": {
60
+ "host": "smtpout.secureserver.net",
61
+ "port": 25
62
+ },
63
+
64
+ "GodaddyAsia": {
65
+ "host": "smtp.asia.secureserver.net",
66
+ "port": 25
67
+ },
68
+
69
+ "GodaddyEurope": {
70
+ "host": "smtp.europe.secureserver.net",
71
+ "port": 25
72
+ },
73
+
74
+ "hot.ee": {
75
+ "host": "mail.hot.ee"
76
+ },
77
+
78
+ "Hotmail": {
79
+ "aliases": [
80
+ "Outlook",
81
+ "Outlook.com",
82
+ "Hotmail.com"
83
+ ],
84
+ "domains": [
85
+ "hotmail.com",
86
+ "outlook.com"
87
+ ],
88
+ "host": "smtp.live.com",
89
+ "port": 587,
90
+ "tls": {
91
+ "ciphers": "SSLv3"
92
+ }
93
+ },
94
+
95
+ "iCloud": {
96
+ "aliases": ["Me", "Mac"],
97
+ "domains": [
98
+ "me.com",
99
+ "mac.com"
100
+ ],
101
+ "host": "smtp.mail.me.com",
102
+ "port": 587
103
+ },
104
+
105
+ "mail.ee": {
106
+ "host": "smtp.mail.ee"
107
+ },
108
+
109
+ "Mail.ru": {
110
+ "host": "smtp.mail.ru",
111
+ "port": 465,
112
+ "secure": true
113
+ },
114
+
115
+ "Maildev": {
116
+ "port": 1025,
117
+ "ignoreTLS": true
118
+ },
119
+
120
+ "Mailgun": {
121
+ "host": "smtp.mailgun.org",
122
+ "port": 587
123
+ },
124
+
125
+ "Mailjet": {
126
+ "host": "in.mailjet.com",
127
+ "port": 587
128
+ },
129
+
130
+ "Mandrill": {
131
+ "host": "smtp.mandrillapp.com",
132
+ "port": 587
133
+ },
134
+
135
+ "Naver": {
136
+ "host": "smtp.naver.com",
137
+ "port": 587
138
+ },
139
+
140
+ "OpenMailBox": {
141
+ "aliases": [
142
+ "OMB",
143
+ "openmailbox.org"
144
+ ],
145
+ "host": "smtp.openmailbox.org",
146
+ "port": 465,
147
+ "secure": true
148
+ },
149
+
150
+ "Postmark": {
151
+ "aliases": ["PostmarkApp"],
152
+ "host": "smtp.postmarkapp.com",
153
+ "port": 2525
154
+ },
155
+
156
+ "QQ": {
157
+ "domains": [
158
+ "qq.com"
159
+ ],
160
+ "host": "smtp.qq.com",
161
+ "port": 465,
162
+ "secure": true
163
+ },
164
+
165
+ "QQex": {
166
+ "aliases": ["QQ Enterprise"],
167
+ "domains": [
168
+ "exmail.qq.com"
169
+ ],
170
+ "host": "smtp.exmail.qq.com",
171
+ "port": 465,
172
+ "secure": true
173
+ },
174
+
175
+ "SendCloud": {
176
+ "host": "smtpcloud.sohu.com",
177
+ "port": 25
178
+ },
179
+
180
+ "SendGrid": {
181
+ "host": "smtp.sendgrid.net",
182
+ "port": 587
183
+ },
184
+
185
+ "SES": {
186
+ "host": "email-smtp.us-east-1.amazonaws.com",
187
+ "port": 465,
188
+ "secure": true
189
+ },
190
+ "SES-US-EAST-1": {
191
+ "host": "email-smtp.us-east-1.amazonaws.com",
192
+ "port": 465,
193
+ "secure": true
194
+ },
195
+ "SES-US-WEST-2": {
196
+ "host": "email-smtp.us-west-2.amazonaws.com",
197
+ "port": 465,
198
+ "secure": true
199
+ },
200
+ "SES-EU-WEST-1": {
201
+ "host": "email-smtp.eu-west-1.amazonaws.com",
202
+ "port": 465,
203
+ "secure": true
204
+ },
205
+
206
+
207
+ "Sparkpost": {
208
+ "aliases": [
209
+ "SparkPost",
210
+ "SparkPost Mail"
211
+ ],
212
+ "domains": [
213
+ "sparkpost.com"
214
+ ],
215
+ "host": "smtp.sparkpostmail.com",
216
+ "port": 587,
217
+ "secure": false
218
+ },
219
+
220
+ "Yahoo": {
221
+ "domains": [
222
+ "yahoo.com"
223
+ ],
224
+ "host": "smtp.mail.yahoo.com",
225
+ "port": 465,
226
+ "secure": true
227
+ },
228
+
229
+ "Yandex": {
230
+ "domains": [
231
+ "yandex.ru"
232
+ ],
233
+ "host": "smtp.yandex.ru",
234
+ "port": 465,
235
+ "secure": true
236
+ },
237
+
238
+ "Zoho": {
239
+ "host": "smtp.zoho.com",
240
+ "port": 465,
241
+ "secure": true,
242
+ "authMethod": "LOGIN"
243
+ },
244
+ "126": {
245
+ "host": "smtp.126.com",
246
+ "port": 465,
247
+ "secure": true
248
+ },
249
+ "163": {
250
+ "host": "smtp.163.com",
251
+ "port": 465,
252
+ "secure": true
253
+ }
254
+
255
+ }
@@ -0,0 +1,23 @@
1
+ 'use strict';
2
+
3
+ var wellknown = require('./index');
4
+
5
+ module.exports['Find by key'] = function(test) {
6
+ test.ok(wellknown('Gmail'));
7
+ test.done();
8
+ };
9
+
10
+ module.exports['Find by alias'] = function(test) {
11
+ test.ok(wellknown('Google Mail'));
12
+ test.done();
13
+ };
14
+
15
+ module.exports['Find by domain'] = function(test) {
16
+ test.ok(wellknown('GoogleMail.com'));
17
+ test.done();
18
+ };
19
+
20
+ module.exports['No match'] = function(test) {
21
+ test.ok(!wellknown('zzzzzz'));
22
+ test.done();
23
+ };
@@ -0,0 +1,56 @@
1
+ 'use strict';
2
+
3
+ module.exports = {
4
+ rules: {
5
+ indent: [2, 4, {
6
+ SwitchCase: 1
7
+ }],
8
+ quotes: [2, 'single'],
9
+ 'linebreak-style': [2, 'unix'],
10
+ semi: [2, 'always'],
11
+ strict: [2, 'global'],
12
+ eqeqeq: 2,
13
+ 'dot-notation': 2,
14
+ curly: 2,
15
+ 'no-fallthrough': 2,
16
+ 'quote-props': [2, 'as-needed'],
17
+ 'no-unused-expressions': [2, {
18
+ allowShortCircuit: true
19
+ }],
20
+ 'no-unused-vars': 2,
21
+ 'no-undef': 2,
22
+ 'handle-callback-err': 2,
23
+ 'no-new': 2,
24
+ 'new-cap': 2,
25
+ 'no-eval': 2,
26
+ 'no-invalid-this': 2,
27
+ radix: [2, 'always'],
28
+ 'no-use-before-define': [2, 'nofunc'],
29
+ 'callback-return': [2, ['callback', 'cb', 'done']],
30
+ 'comma-dangle': [2, 'never'],
31
+ 'comma-style': [2, 'last'],
32
+ 'no-regex-spaces': 2,
33
+ 'no-empty': 2,
34
+ 'no-duplicate-case': 2,
35
+ 'no-empty-character-class': 2,
36
+ 'no-redeclare': [2, {
37
+ builtinGlobals: true
38
+ }],
39
+ 'block-scoped-var': 2,
40
+ 'no-sequences': 2,
41
+ 'no-throw-literal': 2,
42
+ 'no-useless-concat': 2,
43
+ 'no-void': 2,
44
+ yoda: 2,
45
+ 'no-bitwise': 2,
46
+ 'no-lonely-if': 2,
47
+ 'no-mixed-spaces-and-tabs': 2,
48
+ 'no-console': 2
49
+ },
50
+ env: {
51
+ es6: false,
52
+ node: true
53
+ },
54
+ extends: 'eslint:recommended',
55
+ fix: true
56
+ };
@@ -0,0 +1,164 @@
1
+ # Changelog
2
+
3
+ ## v2.12.0 2016-09-05
4
+
5
+ * Updated dependencies
6
+
7
+ ## v2.11.0 2016-08-04
8
+
9
+ * Added new envelope option `size` to skip sending messages that are too large
10
+
11
+ ## v2.10.0 2016-07-22
12
+
13
+ * Added new option `opportunisticTLS` to allow continuing if STARTTLS failed
14
+
15
+ ## v2.9.0 2016-07-13
16
+
17
+ * Added `reset(cb)` method to call `RSET` command
18
+ * Include failed recipients in the response error object
19
+
20
+ ## v2.8.0 2016-07-07
21
+
22
+ * Added full LMTP support. Set `lmtp` option to `true` to switch into LMTP mode
23
+ * Updated default timeout values
24
+
25
+ ## v2.7.0 2016-07-06
26
+
27
+ * Use PIPELINING for multiple RCPT TO if available
28
+
29
+ ## v2.6.0 2016-07-06
30
+
31
+ * Added support for DSN
32
+ * Added new option use8BitMime to indicate that the message might include non-ascii bytes
33
+ * Added new info property rejectedErrors that includes errors for failed recipients
34
+ * Updated errors to indicate where the error happened (SMTP command, API, CONN)
35
+
36
+ ## v2.5.0 2016-05-11
37
+
38
+ * Bumped dependencies
39
+
40
+ ## v2.4.0 2016-04-24
41
+
42
+ * Added experimental support for NTLM authentication
43
+
44
+ ## v2.3.2 2016-04-11
45
+
46
+ * Declare SMTPUTF8 usage if an address includes Unicode characters and the server indicates support for it. Fixes an issue with internationalized email addresses that were rejected by Gmail
47
+
48
+ ## v2.3.1 2016-02-20
49
+
50
+ * Fix broken requireTLS option
51
+
52
+ ## v2.3.0 2016-02-17
53
+
54
+ * Do not modify provided options object
55
+
56
+ ## v2.2.6 2016-02-16
57
+
58
+ * Added yet another socket.resume to fixed an issue with proxied sockets and TLS
59
+
60
+ ## v2.2.5 2016-02-15
61
+
62
+ * Fixed an issue with proxied sockets and TLS
63
+
64
+ ## v2.2.4 2016-02-11
65
+
66
+ * Catch errors that happen while creating a socket
67
+
68
+ ## v2.2.3 2016-02-11
69
+
70
+ * Fixed error code for STARTTLS errors
71
+
72
+ ## v2.2.2 2016-02-09
73
+
74
+ * Bumped nodemailer-shared
75
+
76
+ ## v2.2.1 2016-02-09
77
+
78
+ * Make sure socket is resumed once 'data' handler is set
79
+
80
+ ## v2.2.0 2016-02-08
81
+
82
+ * Added new option `secured` to indicate if socket provided by `connection` is already upgraded or not
83
+
84
+ ## v2.1.0 2016-01-30
85
+
86
+ * Added new option `connection` to provide an already connected plaintext socket. Useful when behind proxy.
87
+
88
+ ## v2.0.1 2016-01-04
89
+
90
+ * Bumped nodemailer-shared
91
+
92
+ ## v2.0.0 2016-01-04
93
+
94
+ * Locked dependency version
95
+
96
+ ## v2.0.0-beta.5 2016-01-03
97
+
98
+ * Fixed a bug where errors might been thrown before a handler was set
99
+
100
+ ## v2.0.0-beta.3 2016-01-03
101
+
102
+ * Use shared function to create the logger instance
103
+
104
+ ## v2.0.0-beta.2 2016-01-03
105
+
106
+ * Updated logging. Log information about transmitted message size in bytes
107
+
108
+ ## v2.0.0-beta.1 2016-01-03
109
+
110
+ * Re-added `debug` option. If set to true, then logs SMTP traffic, otherwise only transaction events
111
+ * Pass streamed message content to the logger
112
+
113
+ ## v2.0.0-beta.0 2016-01-02
114
+
115
+ * Replaced jshint with eslint
116
+ * Handle message stream errors
117
+ * Use bunyan compatible logger interface instead of emitting 'log' events
118
+
119
+ ## v1.3.8 2015-12-29
120
+
121
+ * Do not use strict isEmail function, just check that there are no newlines in addresses. Fixes a regression with lax e-mail addresses.
122
+
123
+ ## v1.3.7 2015-12-22
124
+
125
+ * Fixed an issue with Node v0.10 where too many events were cleared
126
+
127
+ ## v1.3.6 2015-12-19
128
+
129
+ * Updated isemail configuration to only allow SMTP compatible e-mail addresses for the envelope (otherwise valid addresses might include symbols that don't play well with SMTP, eg. line folding inside quoted strings)
130
+
131
+ ## v1.3.5 2015-12-19
132
+
133
+ * Validate to and from address to be valid e-mail addresses
134
+
135
+ ## v1.3.2 2015-12-16
136
+
137
+ * Added missing 'close' and 'end' event handlers for a STARTTLS-upgraded socket
138
+
139
+ ## v1.3.1 2015-06-30
140
+
141
+ * Added partial support for LMTP protocol. Works only with single recipient (does not support multiple responses for DATA command)
142
+
143
+ ## v1.2.0 2015-03-09
144
+
145
+ * Connection object has a new property `secure` that indicates if the current connection is using a secure TLS socket or not
146
+ * Fixed `requireTLS` where the connection was established insecurely if STARTTLS failed, now it returns an error as it should if STARTTLS fails
147
+
148
+ ## v1.1.0 2014-11-11
149
+
150
+ * Added additional constructor option `requireTLS` to ensure that the connection is upgraded before any credentials are passed to the server
151
+ * Added additional constructor option `socket` to use an existing socket instead of creating new one (bantu)
152
+
153
+ ## v1.0.2 2014-10-15
154
+
155
+ * Removed CleartextStream.pair.encrypted error handler. Does not seem to be supported by Node v0.11
156
+
157
+ ## v1.0.1 2014-10-15
158
+
159
+ * Added 'error' handler for CleartextStream.pair.encrypted object when connecting to TLS.
160
+
161
+ ## v1.0.0 2014-09-26
162
+
163
+ * Changed version scheme from 0.x to 1.x.
164
+ * Improved error handling for timeout on creating a connection. Caused issues with `once('error')` handler as an error might have been emitted twice
@@ -0,0 +1,27 @@
1
+ 'use strict';
2
+
3
+ module.exports = function (grunt) {
4
+
5
+ // Project configuration.
6
+ grunt.initConfig({
7
+ eslint: {
8
+ all: ['lib/*.js', 'test/*.js', 'Gruntfile.js']
9
+ },
10
+
11
+ mochaTest: {
12
+ all: {
13
+ options: {
14
+ reporter: 'spec'
15
+ },
16
+ src: ['test/*-test.js']
17
+ }
18
+ }
19
+ });
20
+
21
+ // Load the plugin(s)
22
+ grunt.loadNpmTasks('grunt-eslint');
23
+ grunt.loadNpmTasks('grunt-mocha-test');
24
+
25
+ // Tasks
26
+ grunt.registerTask('default', ['eslint', 'mochaTest']);
27
+ };
@@ -0,0 +1,19 @@
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 above copyright notice and this permission notice shall be included in
11
+ all copies or substantial portions of the Software.
12
+
13
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19
+ THE SOFTWARE.