Skip to content
This repository has been archived by the owner on Jun 2, 2022. It is now read-only.

Commit

Permalink
Merge pull request #99 from snyk/chore/bumps
Browse files Browse the repository at this point in the history
chore: bump some deps
  • Loading branch information
FauxFaux committed Aug 29, 2019
2 parents 4b9407e + 8ef98c8 commit 435f878
Show file tree
Hide file tree
Showing 6 changed files with 3,066 additions and 3,364 deletions.
6 changes: 4 additions & 2 deletions demo/index.js
Expand Up @@ -21,7 +21,8 @@ if (process.env.SNYK_TRIGGER_EXTRA_VULN) {
// create a server with a known vulnerability
const http = require('http');
const st = require('st');
const PORT = process.env.PORT || 3000;
const ENV_PORT = process.env.PORT;
const PORT = ENV_PORT !== undefined ? ENV_PORT : 3000;

const server = http.createServer(
st({
Expand All @@ -31,6 +32,7 @@ const server = http.createServer(
})
);

server.listen(PORT, () => console.log(`Demo server started, hit http://localhost:${PORT}/hello.txt to try it`));
server.listen(PORT, () => console.log(
`Demo server started, hit http://localhost:${server.address().port}/hello.txt to try it`));

module.exports = server;

0 comments on commit 435f878

Please sign in to comment.