Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

express-joi-simple

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

express-joi-simple - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

src/helper.ts

2

package.json
{
"name": "express-joi-simple",
"version": "1.0.2",
"version": "1.0.3",
"description": "",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

@@ -33,3 +33,2 @@ # Express + Joi + Swagger

// Router will only work if this PR is accepted: https://github.com/expressjs/express/pull/3713#issuecomment-412275954
app.use('/login', router);

@@ -36,0 +35,0 @@

@@ -5,2 +5,3 @@

import * as fs from 'fs';
import { regexpToPath } from './helper';

@@ -28,3 +29,3 @@ export function Doc(app: any, info?: any) {

const joiSchema = routeMehtod.handle('schemaBypass');
Swagger.swaggerDoc.addNewRoute(joiSchema, middleware.prefix + path, routeMehtod.method)
Swagger.swaggerDoc.addNewRoute(joiSchema, regexpToPath(middleware.regexp) + path, routeMehtod.method)
}

@@ -31,0 +32,0 @@ })

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc