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", |
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
7038
117