Comparing version 3.4.1 to 4.0.0
@@ -40,3 +40,4 @@ #!/usr/bin/env node | ||
.option('auth', 'Serve behind basic auth') | ||
.option(['o', 'cors'], 'Setup * CORS headers to allow requests from any origin', false) | ||
.option('cors', 'Setup * CORS headers to allow requests from any origin', false) | ||
.option('silent', `Don't log anything to the console`) | ||
@@ -46,2 +47,7 @@ const flags = args.parse(process.argv) | ||
// Don't log anything to the console if silent mode is enabled | ||
if (flags.silent) { | ||
console.log = () => {} | ||
} | ||
process.env.ASSET_DIR = '/' + Math.random().toString(36).substr(2, 10) | ||
@@ -48,0 +54,0 @@ |
{ | ||
"name": "serve", | ||
"version": "3.4.1", | ||
"version": "4.0.0", | ||
"description": "Static file serving and directory listing", | ||
@@ -59,3 +59,3 @@ "scripts": { | ||
"detect-port": "1.1.0", | ||
"filesize": "3.5.4", | ||
"filesize": "3.5.5", | ||
"fs-promise": "2.0.0", | ||
@@ -69,5 +69,5 @@ "handlebars": "4.0.6", | ||
"path-type": "2.0.0", | ||
"send": "0.14.2", | ||
"send": "0.15.0", | ||
"update-notifier": "2.1.0" | ||
} | ||
} |
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
18772
465
+ Addeddebug@2.6.1(transitive)
+ Addedetag@1.8.1(transitive)
+ Addedfilesize@3.5.5(transitive)
+ Addedfresh@0.5.0(transitive)
+ Addedhttp-errors@1.6.3(transitive)
+ Addedsend@0.15.0(transitive)
+ Addedsetprototypeof@1.1.0(transitive)
+ Addedstatuses@1.5.0(transitive)
- Removeddebug@2.2.0(transitive)
- Removedetag@1.7.0(transitive)
- Removedfilesize@3.5.4(transitive)
- Removedfresh@0.3.0(transitive)
- Removedhttp-errors@1.5.1(transitive)
- Removedms@0.7.1(transitive)
- Removedsend@0.14.2(transitive)
- Removedsetprototypeof@1.0.2(transitive)
Updatedfilesize@3.5.5
Updatedsend@0.15.0