review-toolkit-lib 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of review-toolkit-lib might be problematic. Click here for more details.
- package/dist/index.d.ts +1 -0
- package/dist/index.js +18 -0
- package/dist/index.js.map +1 -0
- package/dist/provider/email.d.ts +2 -0
- package/dist/provider/email.js +34 -0
- package/dist/provider/email.js.map +1 -0
- package/dist/provider/index.d.ts +1 -0
- package/dist/provider/index.js +6 -0
- package/dist/provider/index.js.map +1 -0
- package/package.json +28 -0
package/dist/index.d.ts
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
export * from './provider';
|
package/dist/index.js
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
|
+
if (k2 === undefined) k2 = k;
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
7
|
+
}
|
8
|
+
Object.defineProperty(o, k2, desc);
|
9
|
+
}) : (function(o, m, k, k2) {
|
10
|
+
if (k2 === undefined) k2 = k;
|
11
|
+
o[k2] = m[k];
|
12
|
+
}));
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
15
|
+
};
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
+
__exportStar(require("./provider"), exports);
|
18
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B"}
|
@@ -0,0 +1,34 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.sendmail = void 0;
|
4
|
+
const nodemailer = require("nodemailer");
|
5
|
+
const sendmail = () => {
|
6
|
+
let transporter = nodemailer.createTransport({
|
7
|
+
host: 'smtp.ethereal.email',
|
8
|
+
port: 587,
|
9
|
+
secure: false,
|
10
|
+
requireTLS: true,
|
11
|
+
auth: {
|
12
|
+
user: 'erik93@ethereal.email',
|
13
|
+
pass: '52hMrwfQxyN7svVhZP',
|
14
|
+
},
|
15
|
+
logger: true
|
16
|
+
});
|
17
|
+
let mailOptions = {
|
18
|
+
from: "Remitente",
|
19
|
+
to: "granciano_2010@hotmail.com",
|
20
|
+
subject: "Enviado desde nodemailer",
|
21
|
+
text: "Hola mundo"
|
22
|
+
};
|
23
|
+
transporter.sendmail(mailOptions, (error, info) => {
|
24
|
+
if (error) {
|
25
|
+
console.log(error.message);
|
26
|
+
}
|
27
|
+
else {
|
28
|
+
console.log("Email enviado");
|
29
|
+
}
|
30
|
+
});
|
31
|
+
return "hola mundo";
|
32
|
+
};
|
33
|
+
exports.sendmail = sendmail;
|
34
|
+
//# sourceMappingURL=email.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"email.js","sourceRoot":"","sources":["../../src/provider/email.ts"],"names":[],"mappings":";;;AAAA,yCAA0C;AAE1C,MAAM,QAAQ,GAAG,GAAY,EAAE;IAE3B,IAAI,WAAW,GAAG,UAAU,CAAC,eAAe,CAAC;QACzC,IAAI,EAAE,qBAAqB;QAC3B,IAAI,EAAE,GAAG;QACT,MAAM,EAAE,KAAK;QACb,UAAU,EAAE,IAAI;QAChB,IAAI,EAAE;YACF,IAAI,EAAE,uBAAuB;YAC7B,IAAI,EAAE,oBAAoB;SAC7B;QACD,MAAM,EAAE,IAAI;KACb,CAAC,CAAC;IAEL,IAAI,WAAW,GAAG;QACd,IAAI,EAAC,WAAW;QAChB,EAAE,EAAE,4BAA4B;QAChC,OAAO,EAAE,0BAA0B;QACnC,IAAI,EAAE,YAAY;KACrB,CAAA;IAED,WAAW,CAAC,QAAQ,CAAE,WAAW,EAAE,CAAC,KAAK,EAAG,IAAI,EAAE,EAAE;QAChD,IAAK,KAAK,EAAE;YACR,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;SAC9B;aAAI;YACD,OAAO,CAAC,GAAG,CAAC,eAAe,CAAC,CAAC;SAChC;IACL,CAAC,CAAC,CAAC;IAGH,OAAO,YAAY,CAAC;AACxB,CAAC,CAAA;AAEQ,4BAAQ"}
|
@@ -0,0 +1 @@
|
|
1
|
+
export { sendmail } from './email';
|
@@ -0,0 +1,6 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.sendmail = void 0;
|
4
|
+
var email_1 = require("./email");
|
5
|
+
Object.defineProperty(exports, "sendmail", { enumerable: true, get: function () { return email_1.sendmail; } });
|
6
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/provider/index.ts"],"names":[],"mappings":";;;AAAA,iCAAmC;AAA1B,iGAAA,QAAQ,OAAA"}
|
package/package.json
ADDED
@@ -0,0 +1,28 @@
|
|
1
|
+
{
|
2
|
+
"name": "review-toolkit-lib",
|
3
|
+
"version": "1.0.2",
|
4
|
+
"description": "",
|
5
|
+
"main": "dist/index.js",
|
6
|
+
"types": "dist/index.d.ts",
|
7
|
+
"files": [
|
8
|
+
"/dist"
|
9
|
+
],
|
10
|
+
"scripts": {
|
11
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
12
|
+
},
|
13
|
+
"repository": {
|
14
|
+
"type": "git",
|
15
|
+
"url": "git+https://github.com/ExGalicias/review-toolkit-lib.git"
|
16
|
+
},
|
17
|
+
"keywords": [],
|
18
|
+
"author": "",
|
19
|
+
"license": "ISC",
|
20
|
+
"bugs": {
|
21
|
+
"url": "https://github.com/ExGalicias/review-toolkit-lib/issues"
|
22
|
+
},
|
23
|
+
"homepage": "https://github.com/ExGalicias/review-toolkit-lib#readme",
|
24
|
+
"dependencies": {
|
25
|
+
"nodemailer": "^6.9.1",
|
26
|
+
"typescript": "^4.9.5"
|
27
|
+
}
|
28
|
+
}
|