express-joi-simple
Advanced tools
Comparing version 1.0.0 to 1.0.1
{ | ||
"name": "express-joi-simple", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "", | ||
"main": "index.js", | ||
"main": "dist/index.js", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
"test": "echo \"Error: no test specified\" && exit 1", | ||
"build": "tsc" | ||
}, | ||
@@ -9,0 +10,0 @@ "keywords": [ |
@@ -14,3 +14,3 @@ import * as express from 'express'; | ||
app.post('register',factory.validateJoiSchema(schema), (req, res) => { | ||
app.post('register',factory.validateJoiSchema(schema), (req: any, res: any) => { | ||
res.json({ | ||
@@ -17,0 +17,0 @@ message: 'register' |
@@ -5,3 +5,3 @@ import { Router } from 'express'; | ||
export const router = Router(); | ||
export const router: any = Router(); | ||
@@ -14,4 +14,4 @@ const schema = { | ||
router.post('/test', factory.validateJoiSchema(schema), (req, res) => { | ||
router.post('/test', factory.validateJoiSchema(schema), (req: any, res: any) => { | ||
res.json({ message: 'test' }); | ||
}) |
@@ -10,3 +10,3 @@ { | ||
// "jsx": "preserve", /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */ | ||
// "declaration": true, /* Generates corresponding '.d.ts' file. */ | ||
"declaration": true, /* Generates corresponding '.d.ts' file. */ | ||
"sourceMap": true, /* Generates corresponding '.map' file. */ | ||
@@ -13,0 +13,0 @@ // "outFile": "./", /* Concatenate and emit output to single file. */ |
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
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
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
15908
23
218
2