Comparing version 11.3.2 to 12.0.0
@@ -80,2 +80,4 @@ #!/usr/bin/env node | ||
-p Specify custom port | ||
-d, --debug Show debugging information | ||
@@ -87,3 +89,3 @@ | ||
-C, --cors Enable CORS, sets \`Access-Control-Allow-Origin\` to \`*\` | ||
-C, --cors Enable CORS, sets \`Access-Control-Allow-Origin\` to \`*\` | ||
@@ -102,2 +104,4 @@ -n, --no-clipboard Do not copy the local address to the clipboard | ||
--no-port-switching Do not open a port other than the one specified when it\'s taken. | ||
{bold ENDPOINTS} | ||
@@ -210,3 +214,3 @@ | ||
server.on('error', (err) => { | ||
if (err.code === 'EADDRINUSE' && endpoint.length === 1 && !isNaN(endpoint[0])) { | ||
if (err.code === 'EADDRINUSE' && endpoint.length === 1 && !isNaN(endpoint[0]) && args['--no-port-switching'] !== true) { | ||
startEndpoint([0], config, args, endpoint[0]); | ||
@@ -234,3 +238,3 @@ return; | ||
localAddress = `${httpMode}://${address}:${details.port}`; | ||
networkAddress = `${httpMode}://${ip}:${details.port}`; | ||
networkAddress = networkAddress ? `${httpMode}://${ip}:${details.port}` : null; | ||
} | ||
@@ -380,2 +384,3 @@ | ||
'--cors': Boolean, | ||
'--no-port-switching': Boolean, | ||
'--ssl-cert': String, | ||
@@ -382,0 +387,0 @@ '--ssl-key': String, |
{ | ||
"name": "serve", | ||
"version": "11.3.2", | ||
"version": "12.0.0", | ||
"description": "Static file serving and directory listing", | ||
@@ -13,3 +13,3 @@ "scripts": { | ||
], | ||
"repository": "zeit/serve", | ||
"repository": "vercel/serve", | ||
"bin": { | ||
@@ -41,7 +41,7 @@ "serve": "./bin/serve.js" | ||
"@zeit/schemas": "2.6.0", | ||
"ajv": "6.5.3", | ||
"ajv": "6.12.6", | ||
"arg": "2.0.0", | ||
"boxen": "1.3.0", | ||
"chalk": "2.4.1", | ||
"clipboardy": "1.2.3", | ||
"clipboardy": "2.3.0", | ||
"compression": "1.7.3", | ||
@@ -48,0 +48,0 @@ "serve-handler": "6.1.3", |
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
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the 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
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
17495
354
3
+ Addedajv@6.12.6(transitive)
+ Addedclipboardy@2.3.0(transitive)
+ Addedcross-spawn@6.0.5(transitive)
+ Addedend-of-stream@1.4.4(transitive)
+ Addedexeca@1.0.0(transitive)
+ Addedfast-deep-equal@3.1.3(transitive)
+ Addedget-stream@4.1.0(transitive)
+ Addedis-docker@2.2.1(transitive)
+ Addedis-wsl@2.2.0(transitive)
+ Addednice-try@1.0.5(transitive)
+ Addedonce@1.4.0(transitive)
+ Addedpump@3.0.0(transitive)
+ Addedsemver@5.7.2(transitive)
+ Addedwrappy@1.0.2(transitive)
- Removedajv@6.5.3(transitive)
- Removedclipboardy@1.2.3(transitive)
- Removedexeca@0.8.0(transitive)
- Removedfast-deep-equal@2.0.1(transitive)
Updatedajv@6.12.6
Updatedclipboardy@2.3.0