bankai
Advanced tools
Comparing version 5.2.1 to 5.3.0
@@ -119,3 +119,8 @@ #!/usr/bin/env node | ||
case '/bundle.css': return assets.css(req, res).pipe(res) | ||
default: return (res.statusCode = 404 && res.end('404 not found')) | ||
default: | ||
if (req.headers['accept'].indexOf('html') > 0) { | ||
return assets.html(req, res).pipe(res) | ||
} | ||
res.statusCode = 404 | ||
res.end('404 not found') | ||
} | ||
@@ -122,0 +127,0 @@ }).listen(port, function () { |
{ | ||
"name": "bankai", | ||
"version": "5.2.1", | ||
"version": "5.3.0", | ||
"description": "DIY asset server", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
16351
258
2