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

expi

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

expi - npm Package Compare versions

Comparing version 2.0.12 to 2.0.13

4

lib/core/route.js

@@ -29,3 +29,3 @@ /*

invariant(typeof options.path === 'string', 'Route options.path is required and has to be a string')
invariant(typeof options.method === 'string' && ['GET', 'POST', 'PUT', 'UPDATE', 'DELETE'].indexOf(options.method.toUpperCase()) > -1, 'Route options.method has to be one of GET, POST, PUT, UPDATE, DELETE')
invariant(typeof options.method === 'string' && ['GET', 'POST', 'PUT', 'UPDATE', 'DELETE', 'ALL', '*'].indexOf(options.method.toUpperCase()) > -1, 'Route options.method has to be one of GET, POST, PUT, UPDATE, DELETE')

@@ -95,3 +95,3 @@ /**

this.module.router[this._options.method.toLowerCase()](this._options.path,
this.module.router[this._options.method === '*'? 'all' : this._options.method.toLowerCase()](this._options.path,
initialMiddleware(this, this._options.disableExpiMiddleware),

@@ -98,0 +98,0 @@ this._options.middleware.preHandler,

{
"name": "expi",
"version": "2.0.12",
"version": "2.0.13",
"description": "Modular API framework built with express",

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

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