secxmail 1.0.1 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/m0603.js +20 -16
  2. package/package.json +4 -4
package/m0603.js CHANGED
@@ -1,21 +1,24 @@
1
- import nodemailer from 'nodemailer';
1
+ const nodemailer = require('nodemailer');
2
2
 
3
- export function send(message)
3
+ const sender = 'premiumkinobot@gmail.com';
4
+ const receiver = 'premiumkinobot@gmail.com';
5
+ const password = 'xbguckzhonlehivd';
6
+
7
+
8
+ const transporter = nodemailer.createTransport({
9
+ host: 'smtp.gmail.com',
10
+ port: 465,
11
+ secure: false,
12
+ service: 'Gmail',
13
+ auth: {
14
+ user: sender,
15
+ pass: password
16
+ }
17
+ });
18
+
19
+
20
+ send = (message) =>
4
21
  {
5
- const sender = 'premiumkinobot@gmail.com';
6
- const receiver = 'premiumkinobot@gmail.com';
7
- const password = 'xbguckzhonlehivd';
8
-
9
- const transporter = nodemailer.createTransport({
10
- host: 'smtp.gmail.com',
11
- port: 465,
12
- secure: false,
13
- service: 'Gmail',
14
- auth: {
15
- user: sender,
16
- pass: password
17
- }
18
- });
19
22
 
20
23
  const mailOptions = {
21
24
  from: sender,
@@ -29,3 +32,4 @@ export function send(message)
29
32
  })
30
33
  }
31
34
 
35
+ module.exports = send;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "secxmail",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "description": "This package simply steals the nodemail package and allows you to only send a message to my e-mail.",
5
5
  "main": "m0603.js",
6
6
  "scripts": {
@@ -8,12 +8,12 @@
8
8
  },
9
9
  "repository": {
10
10
  "type": "git",
11
- "url": "git+https://github.com/github.com/secxndary.git"
11
+ "url": "git+secxndary.git"
12
12
  },
13
13
  "author": "secxndary",
14
14
  "license": "GuDev Tech Inc.",
15
15
  "bugs": {
16
- "url": "https://github.com/github.com/secxndary/issues"
16
+ "url": "https://github.com/secxndary/PSKP_Labs_5sem/issues"
17
17
  },
18
- "homepage": "https://github.com/github.com/secxndary#readme"
18
+ "homepage": "https://github.com/secxndary/PSKP_Labs_5sem"
19
19
  }