@ampify/dev-server
Advanced tools
Comparing version 1.0.4 to 1.0.5
10
index.js
@@ -8,3 +8,7 @@ #!/usr/bin/env node | ||
const fs = require('fs').promises; | ||
const debug = require('debug'); | ||
const log = debug('ampify:dev-server'); | ||
debug.enable('ampify:dev-server'); | ||
const app = express(); | ||
@@ -15,3 +19,3 @@ const port = process.env.PORT || 2310; | ||
app.use(morgan('short')); | ||
app.use(morgan('short', { stream: { write: (msg) => log(msg.trim()) } })); | ||
app.use(text({ limit: '50mb' })); | ||
@@ -31,4 +35,2 @@ app.use( | ||
console.log(file); | ||
res.set('Content-Type', 'text/javascript'); | ||
@@ -53,3 +55,3 @@ res.send(file); | ||
app.listen(port, () => { | ||
console.log('server started on port %s', port); | ||
log('server started on port %s', port); | ||
}); |
{ | ||
"name": "@ampify/dev-server", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"main": "index.js", | ||
@@ -12,2 +12,3 @@ "bin": "index.js", | ||
"body-parser": "^1.19.0", | ||
"debug": "^4.1.1", | ||
"express": "^4.17.1", | ||
@@ -19,3 +20,3 @@ "morgan": "^1.9.1" | ||
}, | ||
"gitHead": "3821f2fb3f4a16212ffe5040ac1c39b27ffc4cba" | ||
"gitHead": "37517e57f6fa88eb99fd259268188e487a415060" | ||
} |
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
1608
43
4
+ Addeddebug@^4.1.1
+ Addeddebug@4.4.0(transitive)