Browse Source

remove usage stats, upgrade deps

master
Lloyd Brookes 7 years ago
parent
commit
2256a7b78e
  1. 5
      index.js
  2. 5
      lib/command/serve.js
  3. 332
      package-lock.json
  4. 6
      package.json
  5. 2
      test/cli.js
  6. 2
      test/test.js

5
index.js

@ -42,11 +42,6 @@ class LocalWebServer extends Lws {
* @returns {Server} * @returns {Server}
*/ */
listen (options) { listen (options) {
const usage = require('lws/lib/usage')
usage.defaults
.set('an', 'ws')
.set('av', require('./package').version)
.set('cd4', 'api')
options = Object.assign({ options = Object.assign({
moduleDir: path.resolve(__dirname, `./node_modules`), moduleDir: path.resolve(__dirname, `./node_modules`),
modulePrefix: 'lws-', modulePrefix: 'lws-',

5
lib/command/serve.js

@ -3,11 +3,6 @@ const path = require('path')
class WsServe extends ServeCommand { class WsServe extends ServeCommand {
execute (options, argv) { execute (options, argv) {
const usage = require('lws/lib/usage')
usage.defaults
.set('an', 'ws')
.set('av', require('../../package').version)
.set('cd4', 'cli')
options = { options = {
stack: require('../default-stack'), stack: require('../default-stack'),
moduleDir: path.resolve(__dirname, `../../node_modules`), moduleDir: path.resolve(__dirname, `../../node_modules`),

332
package-lock.json

@ -10,9 +10,9 @@
"integrity": "sha512-jy8eFnMm3EMkAsCd7B7Csz8AW2TmV3zapXbJB6Z8Pr8AWNaudm+MdBCfoUStE1i/PcpdkutnwZqmr12LJbbVdg==" "integrity": "sha512-jy8eFnMm3EMkAsCd7B7Csz8AW2TmV3zapXbJB6Z8Pr8AWNaudm+MdBCfoUStE1i/PcpdkutnwZqmr12LJbbVdg=="
}, },
"JSONStream": { "JSONStream": {
"version": "1.3.2",
"resolved": "https://registry.npmjs.org/JSONStream/-/JSONStream-1.3.2.tgz",
"integrity": "sha1-wQI3G27Dp887hHygDCC7D85Mbeo=",
"version": "1.3.3",
"resolved": "https://registry.npmjs.org/JSONStream/-/JSONStream-1.3.3.tgz",
"integrity": "sha512-3Sp6WZZ/lXl+nTDoGpGWHEpTnnC6X5fnkolYZR6nwIfzbxxvA8utPWe1gCt7i0m9uVGsSz2IS8K8mJ7HmlduMg==",
"requires": { "requires": {
"jsonparse": "^1.2.0", "jsonparse": "^1.2.0",
"through": ">=2.2.7 <3" "through": ">=2.2.7 <3"
@ -167,9 +167,9 @@
"integrity": "sha1-3DQxT05nkxgJP8dgJyUl+UvyXBY=" "integrity": "sha1-3DQxT05nkxgJP8dgJyUl+UvyXBY="
}, },
"bcrypt-pbkdf": { "bcrypt-pbkdf": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.1.tgz",
"integrity": "sha1-Y7xdy2EzG5K8Bf1SiVPDNGKgb40=",
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.2.tgz",
"integrity": "sha1-pDAdOJtqQ/m2f/PKEaP2Y342Dp4=",
"dev": true, "dev": true,
"optional": true, "optional": true,
"requires": { "requires": {
@ -182,15 +182,6 @@
"integrity": "sha512-MKiLiV+I1AA596t9w1sQJ8jkiSr5+ZKi0WKrYGUn6d1Fx+Ij4tIj+m2WMQSGczs5jZVxV339chE8iwk6F64wjA==", "integrity": "sha512-MKiLiV+I1AA596t9w1sQJ8jkiSr5+ZKi0WKrYGUn6d1Fx+Ij4tIj+m2WMQSGczs5jZVxV339chE8iwk6F64wjA==",
"dev": true "dev": true
}, },
"boom": {
"version": "4.3.1",
"resolved": "https://registry.npmjs.org/boom/-/boom-4.3.1.tgz",
"integrity": "sha1-T4owBctKfjiJ90kDD9JbluAdLjE=",
"dev": true,
"requires": {
"hoek": "4.x.x"
}
},
"brace-expansion": { "brace-expansion": {
"version": "1.1.11", "version": "1.1.11",
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz",
@ -301,14 +292,14 @@
"integrity": "sha1-bqa989hTrlTMuOR7+gvz+QMfsYQ=" "integrity": "sha1-bqa989hTrlTMuOR7+gvz+QMfsYQ="
}, },
"co-body": { "co-body": {
"version": "5.2.0",
"resolved": "https://registry.npmjs.org/co-body/-/co-body-5.2.0.tgz",
"integrity": "sha512-sX/LQ7LqUhgyaxzbe7IqwPeTr2yfpfUIQ/dgpKo6ZI4y4lpQA0YxAomWIY+7I7rHWcG02PG+OuPREzMW/5tszQ==",
"version": "6.0.0",
"resolved": "https://registry.npmjs.org/co-body/-/co-body-6.0.0.tgz",
"integrity": "sha512-9ZIcixguuuKIptnY8yemEOuhb71L/lLf+Rl5JfJEUiDNJk0e02MBt7BPxR2GEh5mw8dPthQYR4jPI/BnS1MQgw==",
"requires": { "requires": {
"inflation": "^2.0.0", "inflation": "^2.0.0",
"qs": "^6.4.0",
"raw-body": "^2.2.0",
"type-is": "^1.6.14"
"qs": "^6.5.2",
"raw-body": "^2.3.3",
"type-is": "^1.6.16"
} }
}, },
"collect-all": { "collect-all": {
@ -322,17 +313,17 @@
} }
}, },
"color-convert": { "color-convert": {
"version": "1.9.1",
"resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.1.tgz",
"integrity": "sha512-mjGanIiwQJskCC18rPR6OmrZ6fm2Lc7PeGFYwCmy5J34wC6F1PzdGL6xeMfmgicfYcNLGuVFA3WzXtIDCQSZxQ==",
"version": "1.9.2",
"resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.2.tgz",
"integrity": "sha512-3NUJZdhMhcdPn8vJ9v2UQJoH0qqoGUkYTgFEPZaPjEtwmmKUfNV46zZmgB2M5M4DCEQHMaCfWHCxiBflLm04Tg==",
"requires": { "requires": {
"color-name": "^1.1.1"
"color-name": "1.1.1"
} }
}, },
"color-name": { "color-name": {
"version": "1.1.3",
"resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz",
"integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU="
"version": "1.1.1",
"resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.1.tgz",
"integrity": "sha1-SxQVMEz1ACjqgWQ2Q72C6gWANok="
}, },
"combined-stream": { "combined-stream": {
"version": "1.0.6", "version": "1.0.6",
@ -413,11 +404,18 @@
"dev": true "dev": true
}, },
"compressible": { "compressible": {
"version": "2.0.13",
"resolved": "https://registry.npmjs.org/compressible/-/compressible-2.0.13.tgz",
"integrity": "sha1-DRAgq5JLL9tNYnmHXH1tq6a6p6k=",
"version": "2.0.14",
"resolved": "https://registry.npmjs.org/compressible/-/compressible-2.0.14.tgz",
"integrity": "sha1-MmxfUH+7BV9UEWeCuWmoG2einac=",
"requires": { "requires": {
"mime-db": ">= 1.33.0 < 2"
"mime-db": ">= 1.34.0 < 2"
},
"dependencies": {
"mime-db": {
"version": "1.34.0",
"resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.34.0.tgz",
"integrity": "sha1-RS0Oz/XDA0am3B5kseruDTcZ/5o="
}
} }
}, },
"concat-map": { "concat-map": {
@ -473,36 +471,17 @@
"integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=" "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac="
}, },
"coveralls": { "coveralls": {
"version": "3.0.1",
"resolved": "https://registry.npmjs.org/coveralls/-/coveralls-3.0.1.tgz",
"integrity": "sha512-FAzXwiDOYLGDWH+zgoIA+8GbWv50hlx+kpEJyvzLKOdnIBv9uWoVl4DhqGgyUHpiRjAlF8KYZSipWXYtllWH6Q==",
"version": "3.0.2",
"resolved": "https://registry.npmjs.org/coveralls/-/coveralls-3.0.2.tgz",
"integrity": "sha512-Tv0LKe/MkBOilH2v7WBiTBdudg2ChfGbdXafc/s330djpF3zKOmuehTeRwjXWc7pzfj9FrDUTA7tEx6Div8NFw==",
"dev": true, "dev": true,
"requires": { "requires": {
"js-yaml": "^3.6.1",
"growl": "~> 1.10.0",
"js-yaml": "^3.11.0",
"lcov-parse": "^0.0.10", "lcov-parse": "^0.0.10",
"log-driver": "^1.2.5",
"log-driver": "^1.2.7",
"minimist": "^1.2.0", "minimist": "^1.2.0",
"request": "^2.79.0"
}
},
"cryptiles": {
"version": "3.1.2",
"resolved": "https://registry.npmjs.org/cryptiles/-/cryptiles-3.1.2.tgz",
"integrity": "sha1-qJ+7Ig9c4l7FboxKqKT9e1sNKf4=",
"dev": true,
"requires": {
"boom": "5.x.x"
},
"dependencies": {
"boom": {
"version": "5.2.0",
"resolved": "https://registry.npmjs.org/boom/-/boom-5.2.0.tgz",
"integrity": "sha512-Z5BTk6ZRe4tXXQlkqftmsAUANpXmuwlsF5Oov8ThoMbQRzdGTA1ngYRW160GexgOgjsFOKJz0LYhoNi+2AMBUw==",
"dev": true,
"requires": {
"hoek": "4.x.x"
}
}
"request": "^2.85.0"
} }
}, },
"dashdash": { "dashdash": {
@ -535,9 +514,9 @@
"integrity": "sha1-9dJgKStmDghO/0zbyfCK0yR0SLU=" "integrity": "sha1-9dJgKStmDghO/0zbyfCK0yR0SLU="
}, },
"deep-extend": { "deep-extend": {
"version": "0.5.1",
"resolved": "https://registry.npmjs.org/deep-extend/-/deep-extend-0.5.1.tgz",
"integrity": "sha512-N8vBdOa+DF7zkRrDCsaOXoCs/E2fJfx9B9MrKnnSiHNh4ws7eSys6YQE4KvT1cecKmOASYQBhbKjeuDD9lT81w=="
"version": "0.6.0",
"resolved": "https://registry.npmjs.org/deep-extend/-/deep-extend-0.6.0.tgz",
"integrity": "sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA=="
}, },
"defer-promise": { "defer-promise": {
"version": "1.0.1", "version": "1.0.1",
@ -583,6 +562,14 @@
"reduce-without": "^1.0.1", "reduce-without": "^1.0.1",
"test-value": "^3.0.0", "test-value": "^3.0.0",
"walk-back": "^3.0.0" "walk-back": "^3.0.0"
},
"dependencies": {
"reduce-flatten": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/reduce-flatten/-/reduce-flatten-1.0.1.tgz",
"integrity": "sha1-JYx479FT3fk8tWEjf2EYTzaW4yc=",
"dev": true
}
} }
}, },
"ecc-jsbn": { "ecc-jsbn": {
@ -732,6 +719,12 @@
"integrity": "sha1-Dovf5NHduIVNZOBOp8AOKgJuVlg=", "integrity": "sha1-Dovf5NHduIVNZOBOp8AOKgJuVlg=",
"dev": true "dev": true
}, },
"growl": {
"version": "1.10.5",
"resolved": "https://registry.npmjs.org/growl/-/growl-1.10.5.tgz",
"integrity": "sha512-qBr4OuELkhPenW6goKVXiv47US3clb3/IbuWF9KNKEijAy9oeHxU9IgzjvJhHkUzhaj7rOUD7+YGWqUjLp5oSA==",
"dev": true
},
"handlebars": { "handlebars": {
"version": "4.0.11", "version": "4.0.11",
"resolved": "https://registry.npmjs.org/handlebars/-/handlebars-4.0.11.tgz", "resolved": "https://registry.npmjs.org/handlebars/-/handlebars-4.0.11.tgz",
@ -765,29 +758,6 @@
"resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz",
"integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=" "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0="
}, },
"hawk": {
"version": "6.0.2",
"resolved": "https://registry.npmjs.org/hawk/-/hawk-6.0.2.tgz",
"integrity": "sha512-miowhl2+U7Qle4vdLqDdPt9m09K6yZhkLDTWGoUiUzrQCn+mHHSmfJgAyGaLRZbPmTqfFFjRV1QWCW0VWUJBbQ==",
"dev": true,
"requires": {
"boom": "4.x.x",
"cryptiles": "3.x.x",
"hoek": "4.x.x",
"sntp": "2.x.x"
}
},
"hoek": {
"version": "4.2.1",
"resolved": "https://registry.npmjs.org/hoek/-/hoek-4.2.1.tgz",
"integrity": "sha512-QLg82fGkfnJ/4iy1xZ81/9SIJiq1NGFUMGs6ParyjBZr6jW2Ufj/snDqTHixNlHdPNwN2RLVD0Pi3igeK9+JfA==",
"dev": true
},
"home-path": {
"version": "1.0.6",
"resolved": "https://registry.npmjs.org/home-path/-/home-path-1.0.6.tgz",
"integrity": "sha512-wo+yjrdAtoXt43Vy92a+0IPCYViiyLAHyp0QVS4xL/tfvVz5sXIW1ubLZk3nhVkD92fQpUMKX+fzMjr5F489vw=="
},
"http-assert": { "http-assert": {
"version": "1.3.0", "version": "1.3.0",
"resolved": "https://registry.npmjs.org/http-assert/-/http-assert-1.3.0.tgz", "resolved": "https://registry.npmjs.org/http-assert/-/http-assert-1.3.0.tgz",
@ -876,9 +846,9 @@
"dev": true "dev": true
}, },
"js-yaml": { "js-yaml": {
"version": "3.11.0",
"resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.11.0.tgz",
"integrity": "sha512-saJstZWv7oNeOyBh3+Dx1qWzhW0+e6/8eDzo7p5rDFqxntSztloLtuKu+Ejhtq82jsilwOIZYsCz+lIjthg1Hw==",
"version": "3.12.0",
"resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.12.0.tgz",
"integrity": "sha512-PIt2cnwmPfL4hKNwqeiuz4bKfnzHTBv6HyVgjahA6mPLwPDzjDWrplJBMjHUFxku/N3FlmrbyPclad+I+4mJ3A==",
"dev": true, "dev": true,
"requires": { "requires": {
"argparse": "^1.0.7", "argparse": "^1.0.7",
@ -1056,18 +1026,18 @@
} }
}, },
"koa-bodyparser": { "koa-bodyparser": {
"version": "4.2.0",
"resolved": "https://registry.npmjs.org/koa-bodyparser/-/koa-bodyparser-4.2.0.tgz",
"integrity": "sha1-vObgi8Zfhwm20fqpQRx/DYk4qlQ=",
"version": "4.2.1",
"resolved": "https://registry.npmjs.org/koa-bodyparser/-/koa-bodyparser-4.2.1.tgz",
"integrity": "sha512-UIjPAlMZfNYDDe+4zBaOAUKYqkwAGcIU6r2ARf1UOXPAlfennQys5IiShaVeNf7KkVBlf88f2LeLvBFvKylttw==",
"requires": { "requires": {
"co-body": "^5.1.0",
"co-body": "^6.0.0",
"copy-to": "^2.0.1" "copy-to": "^2.0.1"
} }
}, },
"koa-compose": { "koa-compose": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/koa-compose/-/koa-compose-4.0.0.tgz",
"integrity": "sha1-KAClE9nDYe8NY4UrA45Pby1adzw="
"version": "4.1.0",
"resolved": "https://registry.npmjs.org/koa-compose/-/koa-compose-4.1.0.tgz",
"integrity": "sha512-8ODW8TrDuMYvXRwra/Kh7/rJo9BtOfPc6qO8eAfC80CnCvSjSl0bkRM24X6/XBBEyj0v1nRUQ1LyOy3dbqOWXw=="
}, },
"koa-compress": { "koa-compress": {
"version": "2.0.0", "version": "2.0.0",
@ -1245,22 +1215,12 @@
} }
}, },
"koa-static": { "koa-static": {
"version": "4.0.2",
"resolved": "https://registry.npmjs.org/koa-static/-/koa-static-4.0.2.tgz",
"integrity": "sha512-tKaDVRz3lgPfdFhiYe3jNQnlSVf0AnOv7ZJqQYHkT4/kPan6b59HSmotNm2Qjl2JDlCli4xKVOMHui+fZLwNRg==",
"requires": {
"debug": "^2.6.8",
"koa-send": "^4.1.0"
},
"dependencies": {
"debug": {
"version": "2.6.9",
"resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz",
"integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==",
"version": "4.0.3",
"resolved": "https://registry.npmjs.org/koa-static/-/koa-static-4.0.3.tgz",
"integrity": "sha512-JGmxTuPWy4bH7bt6gD/OMWkhprawvRmzJSr8TWKmTL4N7+IMv3s0SedeQi5S4ilxM9Bo6ptkCyXj/7wf+VS5tg==",
"requires": { "requires": {
"ms": "2.0.0"
}
}
"debug": "^3.1.0",
"koa-send": "^4.1.3"
} }
}, },
"lazy-cache": { "lazy-cache": {
@ -1277,9 +1237,9 @@
"dev": true "dev": true
}, },
"load-module": { "load-module": {
"version": "0.2.4",
"resolved": "https://registry.npmjs.org/load-module/-/load-module-0.2.4.tgz",
"integrity": "sha512-RTY30ogEKI8gCMDxg7ZvXh6YYsMLNZAWUmKVJUOyJRroZaqmQQhMj93LKfdEc4JuwxaXyh6NITEWr0BVFfUFEg==",
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/load-module/-/load-module-1.0.0.tgz",
"integrity": "sha512-FmoAJI/RM4vmvIRk65g/SFCnGQC9BbALY3zy38Z0cMllNnra1+iCdxAf051LVymzE60/FweOo9or9XJiGgFshg==",
"requires": { "requires": {
"array-back": "^2.0.0" "array-back": "^2.0.0"
} }
@ -1328,25 +1288,24 @@
"dev": true "dev": true
}, },
"lws": { "lws": {
"version": "1.2.3",
"resolved": "https://registry.npmjs.org/lws/-/lws-1.2.3.tgz",
"integrity": "sha512-q/ySQqmcx6KqDfeviu1/3VORTWSLbbrLFYtYvxb7n01+Yv6r9U9f1wgjvA+W1OLHW9cBFlXLAvp98mPxXhrR7Q==",
"version": "1.2.8",
"resolved": "https://registry.npmjs.org/lws/-/lws-1.2.8.tgz",
"integrity": "sha512-ZxIa2AZ2a7CdjTgbByLHwSLOjn8cck/hd4mEkjfr7dJn2zADC8jUzRPtImDoasFzSAQt4NLW/lcLhU6ygddYdg==",
"requires": { "requires": {
"ansi-escape-sequences": "^4.0.0", "ansi-escape-sequences": "^4.0.0",
"array-back": "^2.0.0", "array-back": "^2.0.0",
"byte-size": "^4.0.2",
"byte-size": "^4.0.3",
"cli-commands": "^0.4.0", "cli-commands": "^0.4.0",
"command-line-args": "^5.0.2", "command-line-args": "^5.0.2",
"command-line-usage": "^5.0.4",
"koa": "^2.5.0",
"load-module": "^0.2.4",
"command-line-usage": "^5.0.5",
"koa": "^2.5.1",
"load-module": "^1.0.0",
"lodash.assignwith": "^4.2.0", "lodash.assignwith": "^4.2.0",
"reduce-flatten": "^1.0.1",
"semver": "^5.5.0",
"node-version-matches": "^1.0.0",
"reduce-flatten": "^2.0.0",
"typical": "^2.6.1", "typical": "^2.6.1",
"usage-stats": "^0.9.4",
"walk-back": "^3.0.0", "walk-back": "^3.0.0",
"ws": "^5.1.1"
"ws": "^5.2.1"
} }
}, },
"lws-basic-auth": { "lws-basic-auth": {
@ -1438,6 +1397,21 @@
"koa-mock-response": "0.2.0", "koa-mock-response": "0.2.0",
"load-module": "^0.2.4", "load-module": "^0.2.4",
"reduce-flatten": "^1.0.1" "reduce-flatten": "^1.0.1"
},
"dependencies": {
"load-module": {
"version": "0.2.5",
"resolved": "https://registry.npmjs.org/load-module/-/load-module-0.2.5.tgz",
"integrity": "sha512-acXlurP0P0BK05VWvKWXZf1qtE35sMLv0q2vp7PVXALULM2n0j6OLg9+9G8HzUadHEBBoYJuQa6M9nVhjKnWbg==",
"requires": {
"array-back": "^2.0.0"
}
},
"reduce-flatten": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/reduce-flatten/-/reduce-flatten-1.0.1.tgz",
"integrity": "sha1-JYx479FT3fk8tWEjf2EYTzaW4yc="
}
} }
}, },
"lws-range": { "lws-range": {
@ -1564,9 +1538,10 @@
} }
}, },
"mkdirp2": { "mkdirp2": {
"version": "1.0.3",
"resolved": "https://registry.npmjs.org/mkdirp2/-/mkdirp2-1.0.3.tgz",
"integrity": "sha1-zI3YJl8fBuLY9bELblL04FC+0hs="
"version": "1.0.4",
"resolved": "https://registry.npmjs.org/mkdirp2/-/mkdirp2-1.0.4.tgz",
"integrity": "sha512-Q2PKB4ZR4UPtjLl76JfzlgSCUZhSV1AXQgAZa1qt5RiaALFjP/CDrGvFBrOz7Ck6McPcwMAxTsJvWOUjOU8XMw==",
"dev": true
}, },
"morgan": { "morgan": {
"version": "1.9.0", "version": "1.9.0",
@ -1792,9 +1767,9 @@
} }
}, },
"reduce-flatten": { "reduce-flatten": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/reduce-flatten/-/reduce-flatten-1.0.1.tgz",
"integrity": "sha1-JYx479FT3fk8tWEjf2EYTzaW4yc="
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/reduce-flatten/-/reduce-flatten-2.0.0.tgz",
"integrity": "sha512-EJ4UNY/U1t2P/2k6oqotuX2Cc3T6nxJwsM0N0asT7dhrtH1ltUxDn4NalSYmPE2rCkVpcf/X6R0wDwcFpzhd4w=="
}, },
"reduce-unique": { "reduce-unique": {
"version": "1.0.0", "version": "1.0.0",
@ -1851,9 +1826,9 @@
} }
}, },
"request": { "request": {
"version": "2.85.0",
"resolved": "https://registry.npmjs.org/request/-/request-2.85.0.tgz",
"integrity": "sha512-8H7Ehijd4js+s6wuVPLjwORxD4zeuyjYugprdOXlPSqaApmL/QOy+EB/beICHVCHkGMKNh5rvihb5ov+IDw4mg==",
"version": "2.87.0",
"resolved": "https://registry.npmjs.org/request/-/request-2.87.0.tgz",
"integrity": "sha512-fcogkm7Az5bsS6Sl0sibkbhcKsnyon/jV1kF3ajGmF0c8HrttdKTPRT9hieOaQHA5HEq6r8OyWOo/o781C1tNw==",
"dev": true, "dev": true,
"requires": { "requires": {
"aws-sign2": "~0.7.0", "aws-sign2": "~0.7.0",
@ -1864,7 +1839,6 @@
"forever-agent": "~0.6.1", "forever-agent": "~0.6.1",
"form-data": "~2.3.1", "form-data": "~2.3.1",
"har-validator": "~5.0.3", "har-validator": "~5.0.3",
"hawk": "~6.0.2",
"http-signature": "~1.2.0", "http-signature": "~1.2.0",
"is-typedarray": "~1.0.0", "is-typedarray": "~1.0.0",
"isstream": "~0.1.2", "isstream": "~0.1.2",
@ -1874,7 +1848,6 @@
"performance-now": "^2.1.0", "performance-now": "^2.1.0",
"qs": "~6.5.1", "qs": "~6.5.1",
"safe-buffer": "^5.1.1", "safe-buffer": "^5.1.1",
"stringstream": "~0.0.5",
"tough-cookie": "~2.3.3", "tough-cookie": "~2.3.3",
"tunnel-agent": "^0.6.0", "tunnel-agent": "^0.6.0",
"uuid": "^3.1.0" "uuid": "^3.1.0"
@ -1932,23 +1905,23 @@
"integrity": "sha512-4SJ3dm0WAwWy/NVeioZh5AntkdJoWKxHxcmyP622fOkgHa4z3R0TdBJICINyaSDE6uNwVc8gZr+ZinwZAH4xIA==" "integrity": "sha512-4SJ3dm0WAwWy/NVeioZh5AntkdJoWKxHxcmyP622fOkgHa4z3R0TdBJICINyaSDE6uNwVc8gZr+ZinwZAH4xIA=="
}, },
"serve-index-75lb": { "serve-index-75lb": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/serve-index-75lb/-/serve-index-75lb-2.0.0.tgz",
"integrity": "sha512-aFF4iz4Dp/YejhfzzxOKKi4/Q57sp1ecYJKQTXT9TzIq3yYcR/33Oyl3oekt4oI5pHKcGOuWnDSTOHbwnEaHpQ==",
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/serve-index-75lb/-/serve-index-75lb-2.0.1.tgz",
"integrity": "sha512-/d9r8bqJlFQcwy0a0nb1KnWAA+Mno+V+VaoKocdkbW5aXKRQd/+4bfnRhQRQr6uEoYwTRJ4xgztOyCJvWcpBpQ==",
"requires": { "requires": {
"accepts": "~1.3.3",
"accepts": "~1.3.4",
"batch": "0.6.1", "batch": "0.6.1",
"debug": "2.6.8",
"debug": "2.6.9",
"escape-html": "~1.0.3", "escape-html": "~1.0.3",
"http-errors": "~1.6.1",
"mime-types": "~2.1.15",
"parseurl": "~1.3.1"
"http-errors": "~1.6.2",
"mime-types": "~2.1.18",
"parseurl": "~1.3.2"
}, },
"dependencies": { "dependencies": {
"debug": { "debug": {
"version": "2.6.8",
"resolved": "https://registry.npmjs.org/debug/-/debug-2.6.8.tgz",
"integrity": "sha1-5zFTHKLt4n0YgiJCfaF4IdaP9Pw=",
"version": "2.6.9",
"resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz",
"integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==",
"requires": { "requires": {
"ms": "2.0.0" "ms": "2.0.0"
} }
@ -1960,15 +1933,6 @@
"resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.1.0.tgz", "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.1.0.tgz",
"integrity": "sha512-BvE/TwpZX4FXExxOxZyRGQQv651MSwmWKZGqvmPcRIjDqWub67kTKuIMx43cZZrS/cBBzwBcNDWoFxt2XEFIpQ==" "integrity": "sha512-BvE/TwpZX4FXExxOxZyRGQQv651MSwmWKZGqvmPcRIjDqWub67kTKuIMx43cZZrS/cBBzwBcNDWoFxt2XEFIpQ=="
}, },
"sntp": {
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/sntp/-/sntp-2.1.0.tgz",
"integrity": "sha512-FL1b58BDrqS3A11lJ0zEdnJ3UOKqVxawAkF3k7F0CVN7VQ34aZrV+G8BZ1WC9ZL7NyrwsW0oviwsWDgRuVYtJg==",
"dev": true,
"requires": {
"hoek": "4.x.x"
}
},
"sort-array": { "sort-array": {
"version": "2.0.0", "version": "2.0.0",
"resolved": "https://registry.npmjs.org/sort-array/-/sort-array-2.0.0.tgz", "resolved": "https://registry.npmjs.org/sort-array/-/sort-array-2.0.0.tgz",
@ -2007,9 +1971,9 @@
"dev": true "dev": true
}, },
"sshpk": { "sshpk": {
"version": "1.14.1",
"resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.14.1.tgz",
"integrity": "sha1-Ew9Zde3a2WPx1W+SuaxsUfqfg+s=",
"version": "1.14.2",
"resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.14.2.tgz",
"integrity": "sha1-xvxhZIo9nE52T9P8306hBeSSupg=",
"dev": true, "dev": true,
"requires": { "requires": {
"asn1": "~0.2.3", "asn1": "~0.2.3",
@ -2019,6 +1983,7 @@
"ecc-jsbn": "~0.1.1", "ecc-jsbn": "~0.1.1",
"getpass": "^0.1.1", "getpass": "^0.1.1",
"jsbn": "~0.1.0", "jsbn": "~0.1.0",
"safer-buffer": "^2.0.2",
"tweetnacl": "~0.14.0" "tweetnacl": "~0.14.0"
} }
}, },
@ -2116,12 +2081,6 @@
"safe-buffer": "~5.1.0" "safe-buffer": "~5.1.0"
} }
}, },
"stringstream": {
"version": "0.0.5",
"resolved": "https://registry.npmjs.org/stringstream/-/stringstream-0.0.5.tgz",
"integrity": "sha1-TkhM1N5aC7vuGORjB3EKioFiGHg=",
"dev": true
},
"strip-json-comments": { "strip-json-comments": {
"version": "2.0.1", "version": "2.0.1",
"resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz",
@ -2137,12 +2096,12 @@
} }
}, },
"table-layout": { "table-layout": {
"version": "0.4.3",
"resolved": "https://registry.npmjs.org/table-layout/-/table-layout-0.4.3.tgz",
"integrity": "sha512-MIhflPM38ejKrFwWwC3P9x3eHvMo5G5AmNo29Qtz2HpBl5KD2GCcmOErjgNtUQLv/qaqVDagfJY3rJLPDvEgLg==",
"version": "0.4.4",
"resolved": "https://registry.npmjs.org/table-layout/-/table-layout-0.4.4.tgz",
"integrity": "sha512-uNaR3SRMJwfdp9OUr36eyEi6LLsbcTqTO/hfTsNviKsNeyMBPICJCC7QXRF3+07bAP6FRwA8rczJPBqXDc0CkQ==",
"requires": { "requires": {
"array-back": "^2.0.0", "array-back": "^2.0.0",
"deep-extend": "~0.5.0",
"deep-extend": "~0.6.0",
"lodash.padend": "^4.6.1", "lodash.padend": "^4.6.1",
"typical": "^2.6.1", "typical": "^2.6.1",
"wordwrapjs": "^3.0.0" "wordwrapjs": "^3.0.0"
@ -2206,6 +2165,12 @@
} }
} }
} }
},
"reduce-flatten": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/reduce-flatten/-/reduce-flatten-1.0.1.tgz",
"integrity": "sha1-JYx479FT3fk8tWEjf2EYTzaW4yc=",
"dev": true
} }
} }
}, },
@ -2334,28 +2299,16 @@
"resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz", "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz",
"integrity": "sha1-sr9O6FFKrmFltIF4KdIbLvSZBOw=" "integrity": "sha1-sr9O6FFKrmFltIF4KdIbLvSZBOw="
}, },
"usage-stats": {
"version": "0.9.4",
"resolved": "https://registry.npmjs.org/usage-stats/-/usage-stats-0.9.4.tgz",
"integrity": "sha512-u94pT+UDv+ZcjA5PT4KuMR67JL6VqeaQU6RN83Gf7yTqGrD/WqgCwhaj1DAKETR/KrteWXL0XZwlkDJuLJdtkg==",
"requires": {
"array-back": "^2.0.0",
"home-path": "^1.0.5",
"mkdirp2": "^1.0.3",
"req-then": "^0.6.4",
"typical": "^2.6.1",
"uuid": "^3.1.0"
}
},
"util-deprecate": { "util-deprecate": {
"version": "1.0.2", "version": "1.0.2",
"resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz",
"integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=" "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8="
}, },
"uuid": { "uuid": {
"version": "3.2.1",
"resolved": "https://registry.npmjs.org/uuid/-/uuid-3.2.1.tgz",
"integrity": "sha512-jZnMwlb9Iku/O3smGWvZhauCf6cvvpKi4BKRiliS3cxnI+Gz9j5MEpTz2UFuXiKPJocb7gnsLHwiS05ige5BEA=="
"version": "3.3.2",
"resolved": "https://registry.npmjs.org/uuid/-/uuid-3.3.2.tgz",
"integrity": "sha512-yXJmeNaw3DnnKAOKJE51sL/ZaYfWJRl1pK9dr19YFCu0ObS231AB1/LbqTKRAQ5kw8A90rA6fr4riOUpTZvQZA==",
"dev": true
}, },
"vary": { "vary": {
"version": "1.1.2", "version": "1.1.2",
@ -2398,6 +2351,13 @@
"requires": { "requires": {
"reduce-flatten": "^1.0.1", "reduce-flatten": "^1.0.1",
"typical": "^2.6.1" "typical": "^2.6.1"
},
"dependencies": {
"reduce-flatten": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/reduce-flatten/-/reduce-flatten-1.0.1.tgz",
"integrity": "sha1-JYx479FT3fk8tWEjf2EYTzaW4yc="
}
} }
}, },
"wrappy": { "wrappy": {
@ -2407,9 +2367,9 @@
"dev": true "dev": true
}, },
"ws": { "ws": {
"version": "5.1.1",
"resolved": "https://registry.npmjs.org/ws/-/ws-5.1.1.tgz",
"integrity": "sha512-bOusvpCb09TOBLbpMKszd45WKC2KPtxiyiHanv+H2DE3Az+1db5a/L7sVJZVDPUC1Br8f0SKRr1KjLpD1U/IAw==",
"version": "5.2.1",
"resolved": "https://registry.npmjs.org/ws/-/ws-5.2.1.tgz",
"integrity": "sha512-2NkHdPKjDBj3CHdnAGNpmlliryKqF+n9MYXX7/wsVC4yqYocKreKNjydPDvT3wShAZnndlM0RytEfTALCDvz7A==",
"requires": { "requires": {
"async-limiter": "~1.0.0" "async-limiter": "~1.0.0"
} }

6
package.json

@ -36,7 +36,7 @@
"index.js" "index.js"
], ],
"dependencies": { "dependencies": {
"lws": "^1.2.3",
"lws": "^1.2.8",
"lws-basic-auth": "^0.1.1", "lws-basic-auth": "^0.1.1",
"lws-blacklist": "^0.3.0", "lws-blacklist": "^0.3.0",
"lws-body-parser": "^0.2.4", "lws-body-parser": "^0.2.4",
@ -50,13 +50,13 @@
"lws-mock-response": "^0.5.0", "lws-mock-response": "^0.5.0",
"lws-range": "^1.1.0", "lws-range": "^1.1.0",
"lws-request-monitor": "^0.1.5", "lws-request-monitor": "^0.1.5",
"lws-rewrite": "^0.4.0",
"lws-rewrite": "^0.4.1",
"lws-spa": "^0.3.0", "lws-spa": "^0.3.0",
"lws-static": "^0.5.0", "lws-static": "^0.5.0",
"node-version-matches": "^1.0.0" "node-version-matches": "^1.0.0"
}, },
"devDependencies": { "devDependencies": {
"coveralls": "^3.0.0",
"coveralls": "^3.0.2",
"jsdoc-to-markdown": "^4.0.1", "jsdoc-to-markdown": "^4.0.1",
"req-then": "^0.6.4", "req-then": "^0.6.4",
"test-runner": "^0.5.0" "test-runner": "^0.5.0"

2
test/cli.js

@ -2,8 +2,6 @@ const TestRunner = require('test-runner')
const a = require('assert') const a = require('assert')
const CliApp = require('../lib/cli-app') const CliApp = require('../lib/cli-app')
const request = require('req-then') const request = require('req-then')
const usage = require('lws/lib/usage')
usage.disable()
const runner = new TestRunner() const runner = new TestRunner()

2
test/test.js

@ -3,8 +3,6 @@ const TestRunner = require('test-runner')
const request = require('req-then') const request = require('req-then')
const LocalWebServer = require('../') const LocalWebServer = require('../')
const a = require('assert') const a = require('assert')
const usage = require('lws/lib/usage')
usage.disable()
const runner = new TestRunner() const runner = new TestRunner()

Loading…
Cancel
Save