@rexfng/send
Advanced tools
Comparing version 1.0.0 to 1.0.1
{ | ||
"name": "@rexfng/send", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "send email with restful api", | ||
@@ -12,2 +12,3 @@ "main": "index.js", | ||
"dependencies": { | ||
"body-parser": "^1.18.3", | ||
"express": "^4.16.4", | ||
@@ -14,0 +15,0 @@ "express-throttle": "^2.0.0", |
const express = require('express') | ||
const router = express.Router() | ||
const throttle = require("express-throttle"); | ||
const bodyParser = require('body-parser') | ||
const jsonParser = bodyParser.json() | ||
const email = require('../../helpers/email') | ||
router.post('/email', throttle({ "rate": "10/s" }), function(req,res){ | ||
router.post('/email', jsonParser, function(req,res){ | ||
(async function(){ | ||
@@ -8,0 +9,0 @@ try{ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
2830
5
58
1
32
4
+ Addedbody-parser@^1.18.3