Comparing version 11.0.2 to 11.1.0
@@ -85,3 +85,7 @@ #!/usr/bin/env node | ||
-n, --no-clipboard Do not copy the local address to the clipboard | ||
-u, --no-compression Do not compress files | ||
--no-etag Send \`Last-Modified\` header instead of \`ETag\` | ||
-S, --symlinks Resolve symlinks instead of showing 404 errors | ||
@@ -264,3 +268,3 @@ | ||
for (const file of files) { | ||
const location = path.join(entry, file); | ||
const location = path.resolve(entry, file); | ||
let content = null; | ||
@@ -316,3 +320,3 @@ | ||
const {public} = config; | ||
config.public = path.relative(cwd, (public ? path.join(entry, public) : entry)); | ||
config.public = path.relative(cwd, (public ? path.resolve(entry, public) : entry)); | ||
} | ||
@@ -333,2 +337,5 @@ | ||
// "ETag" headers are enabled by default unless `--no-etag` is provided | ||
config.etag = !args['--no-etag']; | ||
return config; | ||
@@ -350,2 +357,3 @@ }; | ||
'--no-compression': Boolean, | ||
'--no-etag': Boolean, | ||
'--symlinks': Boolean, | ||
@@ -352,0 +360,0 @@ '-h': '--help', |
{ | ||
"name": "serve", | ||
"version": "11.0.2", | ||
"version": "11.1.0", | ||
"description": "Static file serving and directory listing", | ||
@@ -46,5 +46,5 @@ "scripts": { | ||
"compression": "1.7.3", | ||
"serve-handler": "6.0.2", | ||
"serve-handler": "6.1.0", | ||
"update-check": "1.5.2" | ||
} | ||
} |
@@ -41,3 +41,3 @@ ![](https://assets.zeit.co/image/upload/v1527770721/repositories/serve/serve-repo-banner.png) | ||
To customize `serve`'s behavior, create a `serve.json` file and insert any of [these properties](https://github.com/zeit/serve-handler#options). | ||
To customize `serve`'s behavior, create a `serve.json` file in the public folder and insert any of [these properties](https://github.com/zeit/serve-handler#options). | ||
@@ -44,0 +44,0 @@ ## API |
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
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
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
16320
332
2
+ Addedserve-handler@6.1.0(transitive)
- Removedserve-handler@6.0.2(transitive)
Updatedserve-handler@6.1.0