Browse Source

upgrade deps.. fix test

master
Lloyd Brookes 7 years ago
parent
commit
e206fb555f
  1. 1
      .travis.yml
  2. 223
      package-lock.json
  3. 6
      package.json
  4. 2
      test/cli.js

1
.travis.yml

@ -2,3 +2,4 @@ language: node_js
node_js:
- 7
- 8
- 9

223
package-lock.json

@ -10,9 +10,9 @@
"integrity": "sha512-jy8eFnMm3EMkAsCd7B7Csz8AW2TmV3zapXbJB6Z8Pr8AWNaudm+MdBCfoUStE1i/PcpdkutnwZqmr12LJbbVdg=="
},
"JSONStream": {
"version": "1.3.1",
"resolved": "https://registry.npmjs.org/JSONStream/-/JSONStream-1.3.1.tgz",
"integrity": "sha1-cH92HgHa6eFvG8+TcDt4xwlmV5o=",
"version": "1.3.2",
"resolved": "https://registry.npmjs.org/JSONStream/-/JSONStream-1.3.2.tgz",
"integrity": "sha1-wQI3G27Dp887hHygDCC7D85Mbeo=",
"requires": {
"jsonparse": "1.3.1",
"through": "2.3.8"
@ -28,9 +28,9 @@
}
},
"ajv": {
"version": "5.3.0",
"resolved": "https://registry.npmjs.org/ajv/-/ajv-5.3.0.tgz",
"integrity": "sha1-RBT/dKUIecII7l/cgm4ywwNUnto=",
"version": "5.5.2",
"resolved": "https://registry.npmjs.org/ajv/-/ajv-5.5.2.tgz",
"integrity": "sha1-c7Xuyj+rZT49P5Qis0GtQiBdyWU=",
"dev": true,
"requires": {
"co": "4.6.0",
@ -61,6 +61,35 @@
"sprintf-js": "1.0.3"
}
},
"argv-tools": {
"version": "0.1.1",
"resolved": "https://registry.npmjs.org/argv-tools/-/argv-tools-0.1.1.tgz",
"integrity": "sha512-Cc0dBvx4dvrjjKpyDA6w8RlNAw8Su30NvZbWl/Tv9ZALEVlLVkWQiHMi84Q0xNfpVuSaiQbYkdmWK8g1PLGhKw==",
"requires": {
"array-back": "2.0.0",
"find-replace": "2.0.1"
},
"dependencies": {
"find-replace": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/find-replace/-/find-replace-2.0.1.tgz",
"integrity": "sha512-LzDo3Fpa30FLIBsh6DCDnMN1KW2g4QKkqKmejlImgWY67dDFPX/x9Kh/op/GK522DchQXEvDi/wD48HKW49XOQ==",
"requires": {
"array-back": "2.0.0",
"test-value": "3.0.0"
}
},
"test-value": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/test-value/-/test-value-3.0.0.tgz",
"integrity": "sha512-sVACdAWcZkSU9x7AOmJo5TqE+GyNJknHaHsMrR6ZnhjVlVN9Yx6FjHrsKZ3BjIpPCT68zYesPWkakrNupwfOTQ==",
"requires": {
"array-back": "2.0.0",
"typical": "2.6.1"
}
}
}
},
"array-back": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/array-back/-/array-back-2.0.0.tgz",
@ -166,12 +195,24 @@
"dev": true
},
"cli-commands": {
"version": "0.3.2",
"resolved": "https://registry.npmjs.org/cli-commands/-/cli-commands-0.3.2.tgz",
"integrity": "sha512-84bP4ahXbpr8q4X+DeicMA34nME35JEgIGYGwbASe5SbyO9MMtPsyminLKxq8vHW4SOfByXlyKswU5lehoqq3Q==",
"version": "0.3.3",
"resolved": "https://registry.npmjs.org/cli-commands/-/cli-commands-0.3.3.tgz",
"integrity": "sha512-4QUHfe3+KoeeL/D8cjLEl8CSBvFy0Ov712ynqHPVFXt2FheYlZTJyCarKsOCGYqtRPMJYTlktJj9T9XagRcYkg==",
"requires": {
"command-line-args": "4.0.7",
"command-line-commands": "2.0.1"
},
"dependencies": {
"command-line-args": {
"version": "4.0.7",
"resolved": "https://registry.npmjs.org/command-line-args/-/command-line-args-4.0.7.tgz",
"integrity": "sha512-aUdPvQRAyBvQd2n7jXcsMDz68ckBJELXNzBybCHOibUWEg0mWTnaYCSRU8h9R+aNRSvDihJtssSRCiDRpLaezA==",
"requires": {
"array-back": "2.0.0",
"find-replace": "1.0.3",
"typical": "2.6.1"
}
}
}
},
"co": {
@ -200,13 +241,35 @@
}
},
"command-line-args": {
"version": "4.0.7",
"resolved": "https://registry.npmjs.org/command-line-args/-/command-line-args-4.0.7.tgz",
"integrity": "sha512-aUdPvQRAyBvQd2n7jXcsMDz68ckBJELXNzBybCHOibUWEg0mWTnaYCSRU8h9R+aNRSvDihJtssSRCiDRpLaezA==",
"version": "5.0.0",
"resolved": "https://registry.npmjs.org/command-line-args/-/command-line-args-5.0.0.tgz",
"integrity": "sha512-jp5PY9xA7pff6TaLS5y10zRqD5Xwsk/kODoIZy+FIKyHwcKFBsMAL3OMwL88VfrpAN706WFWZaPEjDaY5u2/xA==",
"requires": {
"argv-tools": "0.1.1",
"array-back": "2.0.0",
"find-replace": "1.0.3",
"find-replace": "2.0.1",
"lodash.camelcase": "4.3.0",
"typical": "2.6.1"
},
"dependencies": {
"find-replace": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/find-replace/-/find-replace-2.0.1.tgz",
"integrity": "sha512-LzDo3Fpa30FLIBsh6DCDnMN1KW2g4QKkqKmejlImgWY67dDFPX/x9Kh/op/GK522DchQXEvDi/wD48HKW49XOQ==",
"requires": {
"array-back": "2.0.0",
"test-value": "3.0.0"
}
},
"test-value": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/test-value/-/test-value-3.0.0.tgz",
"integrity": "sha512-sVACdAWcZkSU9x7AOmJo5TqE+GyNJknHaHsMrR6ZnhjVlVN9Yx6FjHrsKZ3BjIpPCT68zYesPWkakrNupwfOTQ==",
"requires": {
"array-back": "2.0.0",
"typical": "2.6.1"
}
}
}
},
"command-line-commands": {
@ -218,9 +281,9 @@
}
},
"command-line-usage": {
"version": "4.1.0-1",
"resolved": "https://registry.npmjs.org/command-line-usage/-/command-line-usage-4.1.0-1.tgz",
"integrity": "sha512-kCTDYySnYpZrQwzURoIytc5NH16jCsQIwAkrsq2BFllxFUpueVVJLPSBubvtgs37ys2o52qhKbRLDnodSZzlvQ==",
"version": "4.1.0",
"resolved": "https://registry.npmjs.org/command-line-usage/-/command-line-usage-4.1.0.tgz",
"integrity": "sha512-MxS8Ad995KpdAC0Jopo/ovGIroV/m0KHwzKfXxKag6FHOkGsH8/lv5yjgablcRxCJJC0oJeUMuO/gmaq+Wq46g==",
"requires": {
"ansi-escape-sequences": "4.0.0",
"array-back": "2.0.0",
@ -262,7 +325,7 @@
"resolved": "https://registry.npmjs.org/cookies/-/cookies-0.7.1.tgz",
"integrity": "sha1-fIphX1SBxhq58WyDNzG8uPZjuZs=",
"requires": {
"depd": "1.1.1",
"depd": "1.1.2",
"keygrip": "1.0.2"
}
},
@ -353,9 +416,9 @@
"integrity": "sha1-hMbhWbgZBP3KWaDvRM2HDTElD5o="
},
"depd": {
"version": "1.1.1",
"resolved": "https://registry.npmjs.org/depd/-/depd-1.1.1.tgz",
"integrity": "sha1-V4O04cRZ8G+lyif5kfPQbnoxA1k="
"version": "1.1.2",
"resolved": "https://registry.npmjs.org/depd/-/depd-1.1.2.tgz",
"integrity": "sha1-m81S4UwJd2PnSbJ0xDRu0uVgtak="
},
"destroy": {
"version": "1.0.4",
@ -525,7 +588,7 @@
"integrity": "sha1-ukAsJmGU8VlW7xXg/PJCmT9qff0=",
"dev": true,
"requires": {
"ajv": "5.3.0",
"ajv": "5.5.2",
"har-schema": "2.0.0"
}
},
@ -570,6 +633,13 @@
"inherits": "2.0.3",
"setprototypeof": "1.0.3",
"statuses": "1.4.0"
},
"dependencies": {
"depd": {
"version": "1.1.1",
"resolved": "https://registry.npmjs.org/depd/-/depd-1.1.1.tgz",
"integrity": "sha1-V4O04cRZ8G+lyif5kfPQbnoxA1k="
}
}
},
"http-signature": {
@ -609,9 +679,9 @@
"integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4="
},
"is-generator-function": {
"version": "1.0.6",
"resolved": "https://registry.npmjs.org/is-generator-function/-/is-generator-function-1.0.6.tgz",
"integrity": "sha1-nnFlPNFf/zQcecQVFGChMdMen8Q="
"version": "1.0.7",
"resolved": "https://registry.npmjs.org/is-generator-function/-/is-generator-function-1.0.7.tgz",
"integrity": "sha512-YZc5EwyO4f2kWCax7oegfuSr9mFz1ZvieNYBEjmukLxgXfBUbxAWGVF7GZf0zidYtoBl3WvC07YK0wT76a+Rtw=="
},
"is-typedarray": {
"version": "1.0.0",
@ -687,9 +757,9 @@
"integrity": "sha1-rTKXxVcGneqLz+ek+kkbdcXd65E="
},
"koa": {
"version": "2.3.0",
"resolved": "https://registry.npmjs.org/koa/-/koa-2.3.0.tgz",
"integrity": "sha1-nh6OTaQBg5xXuFJ+rcV/dhJ1Vac=",
"version": "2.4.1",
"resolved": "https://registry.npmjs.org/koa/-/koa-2.4.1.tgz",
"integrity": "sha512-3caQ9OyLDYSL3wAhVfv2s9k3tLNgW18QxnKIPaRjzG9uXyDhp4tOo+U+XtbY+xbzEiCW5smjxMCegpZqCjmjMw==",
"requires": {
"accepts": "1.3.4",
"content-disposition": "0.5.2",
@ -697,14 +767,14 @@
"cookies": "0.7.1",
"debug": "3.1.0",
"delegates": "1.0.0",
"depd": "1.1.1",
"depd": "1.1.2",
"destroy": "1.0.4",
"error-inject": "1.0.0",
"escape-html": "1.0.3",
"fresh": "0.5.2",
"http-assert": "1.3.0",
"http-errors": "1.6.2",
"is-generator-function": "1.0.6",
"is-generator-function": "1.0.7",
"koa-compose": "4.0.0",
"koa-convert": "1.2.0",
"koa-is-json": "1.0.0",
@ -833,9 +903,9 @@
}
},
"koa-send": {
"version": "4.1.1",
"resolved": "https://registry.npmjs.org/koa-send/-/koa-send-4.1.1.tgz",
"integrity": "sha512-Cqm4wRs+4FXJl7YNxYQccIy6Is5zaU99Tfy3hUBSWARqzgCsU/OdJy/W4VhdPQGip9qilDwB3C6kGkquTzXkIg==",
"version": "4.1.2",
"resolved": "https://registry.npmjs.org/koa-send/-/koa-send-4.1.2.tgz",
"integrity": "sha512-tUQnfUco9p8XWHfMHFq8YPJi5xMZSRefeBt2M60ilbWWhbexQ7XlZpmsNixhT36AB+EBVbKYfwDXEEvECsgKCw==",
"requires": {
"debug": "2.6.9",
"http-errors": "1.6.2",
@ -854,12 +924,12 @@
}
},
"koa-static": {
"version": "4.0.1",
"resolved": "https://registry.npmjs.org/koa-static/-/koa-static-4.0.1.tgz",
"integrity": "sha512-Nq3II4+woYnz7d0IyEOsy7vEFe6YWkdt3RpofL7X+yS8PlANEwP3C1F44IkyiudX7V0hwGh3sUFvbpqxWY4yCg==",
"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.9",
"koa-send": "4.1.1"
"koa-send": "4.1.2"
},
"dependencies": {
"debug": {
@ -918,26 +988,25 @@
"dev": true
},
"lws": {
"version": "1.1.4",
"resolved": "https://registry.npmjs.org/lws/-/lws-1.1.4.tgz",
"integrity": "sha512-jE2kkiXRNCUylUi+7rTPD3gT3RweZR/C6M62S4Zf1/BIR0f2hEvXCkzyngWbAyo4d+L9Gy6YotyfPRNTJa25Bg==",
"version": "1.1.7",
"resolved": "https://registry.npmjs.org/lws/-/lws-1.1.7.tgz",
"integrity": "sha512-CnTpXekbPxCya63P5ntF1UCi2SMEQIAV6kvwaTQmQUXtFx32FLOyJ+fbJtm9yB2TtpsXeLaqSGO5Os+3OM0HtQ==",
"requires": {
"ansi-escape-sequences": "4.0.0",
"array-back": "2.0.0",
"byte-size": "4.0.2",
"cli-commands": "0.3.2",
"command-line-args": "4.0.7",
"command-line-usage": "4.1.0-1",
"koa": "2.3.0",
"cli-commands": "0.3.3",
"command-line-args": "5.0.0",
"command-line-usage": "4.1.0",
"koa": "2.4.1",
"load-module": "0.2.4",
"lodash.assignwith": "4.2.0",
"lodash.camelcase": "4.3.0",
"reduce-flatten": "1.0.1",
"semver": "5.4.1",
"semver": "5.5.0",
"typical": "2.6.1",
"usage-stats": "0.9.4",
"walk-back": "3.0.0",
"ws": "3.2.0"
"ws": "3.3.3"
}
},
"lws-basic-auth": {
@ -1059,7 +1128,7 @@
"integrity": "sha512-hAwJkVcEoat9zYRfsEWgT8GpG955TlLKfLebih34AHcejbz/UybbpwvXlpdRq7Y7L6bIq57mE+ydr9IiSNSZHQ==",
"requires": {
"koa-route": "3.2.0",
"koa-send": "4.1.1"
"koa-send": "4.1.2"
}
},
"lws-static": {
@ -1067,7 +1136,7 @@
"resolved": "https://registry.npmjs.org/lws-static/-/lws-static-0.4.1.tgz",
"integrity": "sha512-PWOmhdtaliqw4ZaUs13P/ly690Xaz3xi7xEFnHBQ5XShslLBZ+TSv8xd+ZTNVqsyNA5nY8dY1d5cS7YKVF7bww==",
"requires": {
"koa-static": "4.0.1"
"koa-static": "4.0.2"
}
},
"media-typer": {
@ -1120,7 +1189,7 @@
"requires": {
"basic-auth": "2.0.0",
"debug": "2.6.9",
"depd": "1.1.1",
"depd": "1.1.2",
"on-finished": "2.3.0",
"on-headers": "1.0.1"
},
@ -1317,7 +1386,7 @@
"stringstream": "0.0.5",
"tough-cookie": "2.3.3",
"tunnel-agent": "0.6.0",
"uuid": "3.1.0"
"uuid": "3.2.1"
}
},
"resolve-path": {
@ -1352,9 +1421,9 @@
"integrity": "sha512-kKvNJn6Mm93gAczWVJg7wH+wGYWNrDHdWvpUmHyEsgCtIwwo3bqPtV4tR5tuPaUhTOo/kvhVwd8XwwOllGYkbg=="
},
"semver": {
"version": "5.4.1",
"resolved": "https://registry.npmjs.org/semver/-/semver-5.4.1.tgz",
"integrity": "sha512-WfG/X9+oATh81XtllIo/I8gOiY9EXRdv1cQdyykeXK17YcUW3EXUAi2To4pcH6nZtJPr7ZOpM5OMyWJZm+8Rsg=="
"version": "5.5.0",
"resolved": "https://registry.npmjs.org/semver/-/semver-5.5.0.tgz",
"integrity": "sha512-4SJ3dm0WAwWy/NVeioZh5AntkdJoWKxHxcmyP622fOkgHa4z3R0TdBJICINyaSDE6uNwVc8gZr+ZinwZAH4xIA=="
},
"serve-index-75lb": {
"version": "2.0.0",
@ -1426,7 +1495,7 @@
"resolved": "https://registry.npmjs.org/stream-log-stats/-/stream-log-stats-2.0.2.tgz",
"integrity": "sha512-b1LccxXhMlOQQrzSqapQHyZ3UI00QTAv+8VecFgsJz//sGB5LFl/+mkFeWBVVI2/E4DlCT4sGgvLExB/VTVFfA==",
"requires": {
"JSONStream": "1.3.1",
"JSONStream": "1.3.2",
"ansi-escape-sequences": "3.0.0",
"byte-size": "3.0.0",
"common-log-format": "0.1.3",
@ -1504,31 +1573,17 @@
}
},
"test-runner": {
"version": "0.4.1",
"resolved": "https://registry.npmjs.org/test-runner/-/test-runner-0.4.1.tgz",
"integrity": "sha512-7Lk3XX7PsV3bZEBEciwxXzcUc4jzMIMomnxhrZ20uetlWUMFr4IJHAna1+82yzhOrdk5z2zFVlmISLp/oM1Gew==",
"version": "0.5.0",
"resolved": "https://registry.npmjs.org/test-runner/-/test-runner-0.5.0.tgz",
"integrity": "sha512-YJ8BUBqktN6gA5YZKp5xgGbgzx7D67eoGp1rRa2//O11f/Emoq7vm2oacm1DSGRUqjbV8nuvnHaMRca1Qw3BNA==",
"dev": true,
"requires": {
"ansi-escape-sequences": "4.0.0",
"array-back": "2.0.0",
"command-line-args": "4.0.7",
"command-line-usage": "4.0.1",
"command-line-args": "5.0.0",
"command-line-usage": "4.1.0",
"file-set": "1.1.1",
"reduce-flatten": "1.0.1"
},
"dependencies": {
"command-line-usage": {
"version": "4.0.1",
"resolved": "https://registry.npmjs.org/command-line-usage/-/command-line-usage-4.0.1.tgz",
"integrity": "sha512-IqYzZuXizukrdhnbdUj2hh4iceycow+Jn10mER4lwU4IapYvl5ZzoRPsj5Yraew5oRk4yfFKMuULGvAfb5o29w==",
"dev": true,
"requires": {
"ansi-escape-sequences": "4.0.0",
"array-back": "2.0.0",
"table-layout": "0.4.2",
"typical": "2.6.1"
}
}
}
},
"test-value": {
@ -1611,9 +1666,9 @@
"integrity": "sha1-XAgOXWYcu+OCWdLnCjxyU+hziB0="
},
"ultron": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/ultron/-/ultron-1.1.0.tgz",
"integrity": "sha1-sHoualQagV/Go0zNRTO67DB8qGQ="
"version": "1.1.1",
"resolved": "https://registry.npmjs.org/ultron/-/ultron-1.1.1.tgz",
"integrity": "sha512-UIEXBNeYmKptWH6z8ZnqTeS8fV74zG0/eRU9VGkpzz+LIJNs8W/zM/L+7ctCkRrgbNnnR0xxw4bKOr0cW0N0Og=="
},
"unpipe": {
"version": "1.0.0",
@ -1630,7 +1685,7 @@
"mkdirp2": "1.0.3",
"req-then": "0.6.4",
"typical": "2.6.1",
"uuid": "3.1.0"
"uuid": "3.2.1"
}
},
"util-deprecate": {
@ -1639,9 +1694,9 @@
"integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8="
},
"uuid": {
"version": "3.1.0",
"resolved": "https://registry.npmjs.org/uuid/-/uuid-3.1.0.tgz",
"integrity": "sha512-DIWtzUkw04M4k3bf1IcpS2tngXEL26YUD2M0tMDUpnUrz2hgzUBlD55a4FjdLGPvfHxS6uluGWvaVEqgBcVa+g=="
"version": "3.2.1",
"resolved": "https://registry.npmjs.org/uuid/-/uuid-3.2.1.tgz",
"integrity": "sha512-jZnMwlb9Iku/O3smGWvZhauCf6cvvpKi4BKRiliS3cxnI+Gz9j5MEpTz2UFuXiKPJocb7gnsLHwiS05ige5BEA=="
},
"vary": {
"version": "1.1.2",
@ -1680,13 +1735,13 @@
"dev": true
},
"ws": {
"version": "3.2.0",
"resolved": "https://registry.npmjs.org/ws/-/ws-3.2.0.tgz",
"integrity": "sha512-hTS3mkXm/j85jTQOIcwVz3yK3up9xHgPtgEhDBOH3G18LDOZmSAG1omJeXejLKJakx+okv8vS1sopgs7rw0kVw==",
"version": "3.3.3",
"resolved": "https://registry.npmjs.org/ws/-/ws-3.3.3.tgz",
"integrity": "sha512-nnWLa/NwZSt4KQJu51MYlCcSQ5g7INpOrOMt4XV8j4dqTXdmlUmSHQ8/oLC069ckre0fRsgfvsKwbTdtKLCDkA==",
"requires": {
"async-limiter": "1.0.0",
"safe-buffer": "5.1.1",
"ultron": "1.1.0"
"ultron": "1.1.1"
}
}
}

6
package.json

@ -32,7 +32,7 @@
"repository": "https://github.com/lwsjs/local-web-server",
"author": "Lloyd Brookes <75pound@gmail.com>",
"dependencies": {
"lws": "^1.1.4",
"lws": "^1.1.7",
"lws-basic-auth": "^0.1.1",
"lws-blacklist": "^0.2.3",
"lws-body-parser": "^0.2.4",
@ -48,11 +48,11 @@
"lws-rewrite": "^0.3.7",
"lws-spa": "^0.2.4",
"lws-static": "^0.4.1",
"semver": "^5.4.1"
"semver": "^5.5.0"
},
"devDependencies": {
"coveralls": "^3.0.0",
"req-then": "^0.6.4",
"test-runner": "^0.4.1"
"test-runner": "^0.5.0"
}
}

2
test/cli.js

@ -22,7 +22,9 @@ runner.test('cli.run: bad option', async function () {
const port = 7500 + this.index
const origArgv = process.argv.slice()
process.argv = [ 'node', 'something', '--should-fail' ]
const exitCode = process.exitCode
const server = CliApp.run()
if (!exitCode) process.exitCode = 0
process.argv = origArgv
a.strictEqual(server, undefined)
})

Loading…
Cancel
Save