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

2ex

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

2ex - npm Package Compare versions

Comparing version 1.0.0-2 to 1.0.0-3

14

index.js

@@ -24,13 +24,7 @@ 'use strict'

// Create the express app
const app = opts.express()
// Set default options
app.set('2exDefaultOptions', opts)
// Bind run method to these options
return runApp.bind(null, main, app, opts)
return runApp.bind(null, main, opts)
}
function runApp (main, app, defaultOptions, options) {
function runApp (main, defaultOptions, options) {
return new Promise((resolve, reject) => {

@@ -40,2 +34,5 @@ // Merge the provided options over the default options

// Create the express app
const app = opts.express()
// Set the process title

@@ -78,2 +75,3 @@ process.title = opts.title

app.set('2exOptions', opts)
app.set('2exDefaultOptions', defaultOptions)

@@ -80,0 +78,0 @@ // Add common middleware

{
"name": "2ex",
"version": "1.0.0-2",
"version": "1.0.0-3",
"description": "An opinionated express application framework",

@@ -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