From 38d9a76b942127bc04a2ee12fed3b83d57d25d9d Mon Sep 17 00:00:00 2001 From: Lloyd Brookes Date: Sun, 9 Feb 2020 15:34:54 +0000 Subject: [PATCH] drop support for node < v10 Upgrade deps --- .travis.yml | 3 +- LICENSE | 2 +- README.md | 2 +- index.js | 2 +- package-lock.json | 535 ++++++++++++++++++++++++---------------------- package.json | 10 +- test.js | 12 +- 7 files changed, 290 insertions(+), 276 deletions(-) diff --git a/.travis.yml b/.travis.yml index ed0f694..aed9f60 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,5 @@ language: node_js node_js: - - 8 - 10 - 12 - + - 13 diff --git a/LICENSE b/LICENSE index a777cf8..79d805f 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2016-19 Lloyd Brookes <75pound@gmail.com> +Copyright (c) 2016-20 Lloyd Brookes <75pound@gmail.com> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index d805aff..3076988 100644 --- a/README.md +++ b/README.md @@ -16,4 +16,4 @@ Adds the following options to lws. * * * -© 2016-19 Lloyd Brookes \<75pound@gmail.com\>. +© 2016-20 Lloyd Brookes \<75pound@gmail.com\>. diff --git a/index.js b/index.js index 333efda..14c125e 100644 --- a/index.js +++ b/index.js @@ -19,7 +19,7 @@ class Blacklist extends EventEmitter { const arrayify = require('array-back') const blacklist = arrayify(options.blacklist) if (blacklist.length) { - const pathToRegexp = require('path-to-regexp') + const { pathToRegexp } = require('path-to-regexp') this.emit('verbose', 'middleware.blacklist.config', { blacklist }) return function (ctx, next) { if (blacklist.some(expression => pathToRegexp(expression).test(ctx.path))) { diff --git a/package-lock.json b/package-lock.json index eaf4dae..ed43f25 100644 --- a/package-lock.json +++ b/package-lock.json @@ -5,12 +5,32 @@ "requires": true, "dependencies": { "@test-runner/default-view": { - "version": "0.2.3", - "resolved": "https://registry.npmjs.org/@test-runner/default-view/-/default-view-0.2.3.tgz", - "integrity": "sha512-vAHwr/h9WX+fZvXiyYWZIFWADOQApxOoJ+OI0t+7j47z1AMBNraV6xzVgMZZb8Dg1YY+vyTMb/l55rLd2O94Jw==", + "version": "0.5.4", + "resolved": "https://registry.npmjs.org/@test-runner/default-view/-/default-view-0.5.4.tgz", + "integrity": "sha512-RybLor4ckgGtfKFPsC6UoSt+ErCcN7WOcwOCXxtJTx3qVe3hSB4hwwkIa36ImJhLGGxT4WFY0ViLyuVWg9rDjw==", "dev": true, "requires": { - "ansi-escape-sequences": "^4.1.0" + "ansi-escape-sequences": "^5.1.2" + } + }, + "@test-runner/live-view": { + "version": "0.1.7", + "resolved": "https://registry.npmjs.org/@test-runner/live-view/-/live-view-0.1.7.tgz", + "integrity": "sha512-YuJFoZFIDPTArAGTRRLs3QLzQGhfKCHTM3YPnYumCiSKELSzFbCoqtBc9pofxWuBsxjTDV3Tg6KJljyqmJTNgQ==", + "dev": true, + "requires": { + "ansi-escape-sequences": "^5.1.2" + } + }, + "@test-runner/oneline-view": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/@test-runner/oneline-view/-/oneline-view-0.1.3.tgz", + "integrity": "sha512-SvCj4zaDsM2SWGh32J16U0Knn+OKP9rP2uMZLandyRVhoYvt9AlQqPsVu0OHiGz5j3aF8DRLBvR3yHEgrP8Duw==", + "dev": true, + "requires": { + "@test-runner/default-view": "^0.5.2", + "ansi-escape-sequences": "^5.1.2", + "string-length": "^3.1.0" } }, "accepts": { @@ -24,14 +44,20 @@ } }, "ansi-escape-sequences": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/ansi-escape-sequences/-/ansi-escape-sequences-4.1.0.tgz", - "integrity": "sha512-dzW9kHxH011uBsidTXd14JXgzye/YLb2LzeKZ4bsgl/Knwx8AtbSFkkGxagdNOoh0DlqHCmfiEjWKBaqjOanVw==", + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/ansi-escape-sequences/-/ansi-escape-sequences-5.1.2.tgz", + "integrity": "sha512-JcpoVp1W1bl1Qn4cVuiXEhD6+dyXKSOgCn2zlzE8inYgCJCBy1aPnUhlz6I4DFum8D4ovb9Qi/iAjUcGvG2lqw==", "dev": true, "requires": { - "array-back": "^3.0.1" + "array-back": "^4.0.0" } }, + "ansi-regex": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.0.tgz", + "integrity": "sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg==", + "dev": true + }, "ansi-styles": { "version": "3.2.1", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", @@ -47,19 +73,16 @@ "integrity": "sha1-q8av7tzqUugJzcA3au0845Y10X8=", "dev": true }, - "argparse": { - "version": "1.0.10", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", - "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", - "dev": true, - "requires": { - "sprintf-js": "~1.0.2" - } - }, "array-back": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/array-back/-/array-back-3.1.0.tgz", - "integrity": "sha512-TkuxA4UCOvxuDK6NZYXCalszEzj+TLszyASooky+i742l9TqsOdYCMJJupxRic61hwquNtppB3hgcuq9SVSH1Q==" + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/array-back/-/array-back-4.0.1.tgz", + "integrity": "sha512-Z/JnaVEXv+A9xabHzN43FiiiWEE7gPCRXMrVmRm00tWbjZRul1iHm7ECzlyNq1p4a4ATXz+G9FJ3GqGOkOV3fg==" + }, + "astral-regex": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/astral-regex/-/astral-regex-1.0.0.tgz", + "integrity": "sha512-+Ryf6g3BKoRc7jfp7ad8tM4TtMiaWvbF/1/sQcZPkkS7ag3D5nMBCe2UfOTONtAkaG0tO0ij3C5Lwmf1EiyjHg==", + "dev": true }, "balanced-match": { "version": "1.0.0", @@ -78,9 +101,9 @@ } }, "byte-size": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/byte-size/-/byte-size-5.0.1.tgz", - "integrity": "sha512-/XuKeqWocKsYa/cBY1YbSJSWWqTi4cFgr9S6OyM7PBaPbr9zvNGwWP33vt0uqGhwDdN+y3yhbXVILEUpnwEWGw==", + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/byte-size/-/byte-size-6.2.0.tgz", + "integrity": "sha512-6EspYUCAPMc7E2rltBgKwhG+Cmk0pDm9zDtF1Awe2dczNUL3YpZ8mTs/dueOTS1hqGWBOatqef4jYMGjln7WmA==", "dev": true }, "cache-content-type": { @@ -137,6 +160,12 @@ "typical": "^4.0.0" }, "dependencies": { + "array-back": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/array-back/-/array-back-3.1.0.tgz", + "integrity": "sha512-TkuxA4UCOvxuDK6NZYXCalszEzj+TLszyASooky+i742l9TqsOdYCMJJupxRic61hwquNtppB3hgcuq9SVSH1Q==", + "dev": true + }, "typical": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/typical/-/typical-4.0.0.tgz", @@ -146,38 +175,21 @@ } }, "command-line-usage": { - "version": "5.0.5", - "resolved": "https://registry.npmjs.org/command-line-usage/-/command-line-usage-5.0.5.tgz", - "integrity": "sha512-d8NrGylA5oCXSbGoKz05FkehDAzSmIm4K03S5VDh4d5lZAtTWfc3D1RuETtuQCn8129nYfJfDdF7P/lwcz1BlA==", + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/command-line-usage/-/command-line-usage-6.1.0.tgz", + "integrity": "sha512-Ew1clU4pkUeo6AFVDFxCbnN7GIZfXl48HIOQeFQnkO3oOqvpI7wdqtLRwv9iOCZ/7A+z4csVZeiDdEcj8g6Wiw==", "dev": true, "requires": { - "array-back": "^2.0.0", - "chalk": "^2.4.1", - "table-layout": "^0.4.3", - "typical": "^2.6.1" - }, - "dependencies": { - "array-back": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/array-back/-/array-back-2.0.0.tgz", - "integrity": "sha512-eJv4pLLufP3g5kcZry0j6WXpIbzYw9GUB4mVJZno9wfwiBxbizTnHCw3VJb07cBihbFX48Y7oSrW9y+gt4glyw==", - "dev": true, - "requires": { - "typical": "^2.6.1" - } - }, - "typical": { - "version": "2.6.1", - "resolved": "https://registry.npmjs.org/typical/-/typical-2.6.1.tgz", - "integrity": "sha1-XAgOXWYcu+OCWdLnCjxyU+hziB0=", - "dev": true - } + "array-back": "^4.0.0", + "chalk": "^2.4.2", + "table-layout": "^1.0.0", + "typical": "^5.2.0" } }, "composite-class": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/composite-class/-/composite-class-0.3.0.tgz", - "integrity": "sha512-DzKxnX8JoIxQrJTnaTjfcmpU3zdN1mExWguw/rF23ZDFpWBMInXGj04PP9TzwDXmKO0HHz+hMsYLsCD2RISc5g==", + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/composite-class/-/composite-class-2.0.1.tgz", + "integrity": "sha512-zEUaKe0wIkAMonjQPZPm4w7aylosaMjqGpHynYT2V05q02I93CWfBxp3kV2iB7anvc/aDvCJN36FzFco3c788A==", "dev": true }, "concat-map": { @@ -202,19 +214,27 @@ "dev": true }, "cookies": { - "version": "0.7.3", - "resolved": "https://registry.npmjs.org/cookies/-/cookies-0.7.3.tgz", - "integrity": "sha512-+gixgxYSgQLTaTIilDHAdlNPZDENDQernEMiIcZpYYP14zgHsCt4Ce1FEjFtcp6GefhozebB6orvhAAWx/IS0A==", + "version": "0.8.0", + "resolved": "https://registry.npmjs.org/cookies/-/cookies-0.8.0.tgz", + "integrity": "sha512-8aPsApQfebXnuI+537McwYsDtjVxGm8gTIzQI3FDW6t5t/DAhERxtnbEPN/8RX+uZthoz4eCOgloXaE5cYyNow==", "dev": true, "requires": { - "depd": "~1.1.2", - "keygrip": "~1.0.3" + "depd": "~2.0.0", + "keygrip": "~1.1.0" + }, + "dependencies": { + "depd": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz", + "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==", + "dev": true + } } }, "create-mixin": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/create-mixin/-/create-mixin-1.1.1.tgz", - "integrity": "sha512-z6QC4H0gSX81fUpvJ721IArB8rY449Oiu4bmI/AAn33AiSIerKh6d8azLb0mqgHU5aW+8rqeR4RGIu06dBFSZA==", + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/create-mixin/-/create-mixin-2.0.1.tgz", + "integrity": "sha512-r11aTk2z5x2C9ZI85oxuZ0EzgjBH0BdGacnXeuA+9d59xV2Hsy+ZpRmU+LUjJT9KdnLgzaxZoCbqrJ5qjl0bAA==", "dev": true }, "debug": { @@ -262,6 +282,12 @@ "integrity": "sha1-WQxhFWsK4vTwJVcyoViyZrxWsh0=", "dev": true }, + "encodeurl": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz", + "integrity": "sha1-rT/0yG7C0CkyL1oCw6mmBslbP1k=", + "dev": true + }, "error-inject": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/error-inject/-/error-inject-1.0.0.tgz", @@ -280,37 +306,14 @@ "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", "dev": true }, - "esprima": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", - "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", - "dev": true - }, "file-set": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/file-set/-/file-set-2.0.1.tgz", - "integrity": "sha512-XgOUUpgR6FbbfYcniLw0qm1Am7PnNYIAkd+eXxRt42LiYhjaso0WiuQ+VmrNdtwotyM+cLCfZ56AZrySP3QnKA==", + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/file-set/-/file-set-3.0.0.tgz", + "integrity": "sha512-B/SdeSIeRv7VlOgIjtH3dkxMI+tEy5m+OeCXfAUsirBoVoY+bGtsmvmmTFPm/G23TBY4RiTtjpcgePCfwXRjqA==", "dev": true, "requires": { - "array-back": "^2.0.0", - "glob": "^7.1.3" - }, - "dependencies": { - "array-back": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/array-back/-/array-back-2.0.0.tgz", - "integrity": "sha512-eJv4pLLufP3g5kcZry0j6WXpIbzYw9GUB4mVJZno9wfwiBxbizTnHCw3VJb07cBihbFX48Y7oSrW9y+gt4glyw==", - "dev": true, - "requires": { - "typical": "^2.6.1" - } - }, - "typical": { - "version": "2.6.1", - "resolved": "https://registry.npmjs.org/typical/-/typical-2.6.1.tgz", - "integrity": "sha1-XAgOXWYcu+OCWdLnCjxyU+hziB0=", - "dev": true - } + "array-back": "^4.0.0", + "glob": "^7.1.5" } }, "find-replace": { @@ -320,6 +323,14 @@ "dev": true, "requires": { "array-back": "^3.0.1" + }, + "dependencies": { + "array-back": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/array-back/-/array-back-3.1.0.tgz", + "integrity": "sha512-TkuxA4UCOvxuDK6NZYXCalszEzj+TLszyASooky+i742l9TqsOdYCMJJupxRic61hwquNtppB3hgcuq9SVSH1Q==", + "dev": true + } } }, "fresh": { @@ -335,19 +346,20 @@ "dev": true }, "fsm-base": { - "version": "0.4.4", - "resolved": "https://registry.npmjs.org/fsm-base/-/fsm-base-0.4.4.tgz", - "integrity": "sha512-l5aBuq0NG+YaAM3lMSw/ghQJTvJoip54RDPfT6XcbMZd72h4XJTLIBrvEdpE+bQfPbwfaRGHgEVdJZTv9ch1QQ==", + "version": "0.5.2", + "resolved": "https://registry.npmjs.org/fsm-base/-/fsm-base-0.5.2.tgz", + "integrity": "sha512-qgDuXQm8RtVPAOpEATHeoZmsd/4TKpojJCfVdzLMA0ljcd/OXKUwl2Yw34qF4Ac75YXuVvy435cWmqDay97tNg==", "dev": true, "requires": { - "array-back": "^3.0.1", - "obso": "^0.4.3" + "array-back": "^4.0.1", + "obso": "^0.5.1", + "reduce-flatten": "^3.0.0" } }, "glob": { - "version": "7.1.4", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.4.tgz", - "integrity": "sha512-hkLPepehmnKk41pUGm3sYxoFs/umurYfYJCerbXEyFIWcAzvpipAgVkBqqT9RBKMGjnq6kMuyYwha6csxbiM1A==", + "version": "7.1.6", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.6.tgz", + "integrity": "sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA==", "dev": true, "requires": { "fs.realpath": "^1.0.0", @@ -375,13 +387,13 @@ } }, "http-errors": { - "version": "1.7.2", - "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-1.7.2.tgz", - "integrity": "sha512-uUQBt3H/cSIVfch6i1EuPNy/YsRSOUBXTVfZ+yR7Zjez3qjBz6i9+i4zjNaoqcoFVI4lQJ5plg63TvGfRSDCRg==", + "version": "1.7.3", + "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-1.7.3.tgz", + "integrity": "sha512-ZTTX0MWrsQ2ZAhA1cejAwDLycFsd7I7nVtnkT3Ol0aqodaKW+0CTZDQ1uBv5whptCnc8e8HeRRJxRs0kmm/Qfw==", "dev": true, "requires": { "depd": "~1.1.2", - "inherits": "2.0.3", + "inherits": "2.0.4", "setprototypeof": "1.1.1", "statuses": ">= 1.5.0 < 2", "toidentifier": "1.0.0" @@ -398,9 +410,15 @@ } }, "inherits": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", - "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=", + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", + "dev": true + }, + "is-docker": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-2.0.0.tgz", + "integrity": "sha512-pJEdRugimx4fBMra5z2/5iRdZ63OhYV0vr0Dwm5+xtW4D1FvRkB8hamMIhnWfyJeDdyr/aa7BDyNbtG38VxgoQ==", "dev": true }, "is-generator-function": { @@ -410,42 +428,36 @@ "dev": true }, "is-wsl": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-1.1.0.tgz", - "integrity": "sha1-HxbkqiKwTRM2tmGIpmrzxgDDpm0=", + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-2.1.1.tgz", + "integrity": "sha512-umZHcSrwlDHo2TGMXv0DZ8dIUGunZ2Iv68YZnrmCiBPkZ4aaOhtv7pXJKeki9k3qJ3RJr0cDyitcl5wEH3AYog==", "dev": true }, - "js-yaml": { - "version": "3.13.1", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.13.1.tgz", - "integrity": "sha512-YfbcO7jXDdyj0DGxYVSlSeQNHbD7XPWvrVWeVUujrQEoZzWJIRrCPoyk6kL6IAjAG2IolMK4T0hNUe0HOUs5Jw==", + "keygrip": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/keygrip/-/keygrip-1.1.0.tgz", + "integrity": "sha512-iYSchDJ+liQ8iwbSI2QqsQOvqv58eJCEanyJPJi+Khyu8smkcKSFUCbPwzFcL7YVtZ6eONjqRX/38caJ7QjRAQ==", "dev": true, "requires": { - "argparse": "^1.0.7", - "esprima": "^4.0.0" + "tsscmp": "1.0.6" } }, - "keygrip": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/keygrip/-/keygrip-1.0.3.tgz", - "integrity": "sha512-/PpesirAIfaklxUzp4Yb7xBper9MwP6hNRA6BGGUFCgbJ+BM5CKBtsoxinNXkLHAr+GXS1/lSlF2rP7cv5Fl+g==", - "dev": true - }, "koa": { - "version": "2.7.0", - "resolved": "https://registry.npmjs.org/koa/-/koa-2.7.0.tgz", - "integrity": "sha512-7ojD05s2Q+hFudF8tDLZ1CpCdVZw8JQELWSkcfG9bdtoTDzMmkRF6BQBU7JzIzCCOY3xd3tftiy/loHBUYaY2Q==", + "version": "2.11.0", + "resolved": "https://registry.npmjs.org/koa/-/koa-2.11.0.tgz", + "integrity": "sha512-EpR9dElBTDlaDgyhDMiLkXrPwp6ZqgAIBvhhmxQ9XN4TFgW+gEz6tkcsNI6BnUbUftrKDjVFj4lW2/J2aNBMMA==", "dev": true, "requires": { "accepts": "^1.3.5", "cache-content-type": "^1.0.0", "content-disposition": "~0.5.2", "content-type": "^1.0.4", - "cookies": "~0.7.1", + "cookies": "~0.8.0", "debug": "~3.1.0", "delegates": "^1.0.0", "depd": "^1.1.2", "destroy": "^1.0.4", + "encodeurl": "^1.0.2", "error-inject": "^1.0.0", "escape-html": "^1.0.3", "fresh": "~0.5.2", @@ -454,7 +466,6 @@ "is-generator-function": "^1.0.7", "koa-compose": "^4.1.0", "koa-convert": "^1.2.0", - "koa-is-json": "^1.0.0", "on-finished": "^2.3.0", "only": "~0.0.2", "parseurl": "^1.3.2", @@ -490,19 +501,13 @@ } } }, - "koa-is-json": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/koa-is-json/-/koa-is-json-1.0.0.tgz", - "integrity": "sha1-JzwH7c3Ljfaiwat9We52SRRR7BQ=", - "dev": true - }, "load-module": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/load-module/-/load-module-2.0.1.tgz", - "integrity": "sha512-uPi6sDp/7rcX5hP8jRncyBa63++qOJxczYAoq58DpoAnQmLJ+e7zz8qmRS+zfkOGEhqj10SFwuZrZuen8Ep5zQ==", + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/load-module/-/load-module-2.0.2.tgz", + "integrity": "sha512-RHboqi6iajIZVSmW6yz/gCW0rj3xgyrlUfB/qIjVpZ92TkjqsLiAA6rSATVbshw8sRKUfMDrepl3M1TVxS4+Aw==", "dev": true, "requires": { - "array-back": "^3.1.0" + "array-back": "^4.0.0" } }, "lodash.assignwith": { @@ -517,40 +522,26 @@ "integrity": "sha1-soqmKIorn8ZRA1x3EfZathkDMaY=", "dev": true }, - "lodash.padend": { - "version": "4.6.1", - "resolved": "https://registry.npmjs.org/lodash.padend/-/lodash.padend-4.6.1.tgz", - "integrity": "sha1-U8y6BH0G4VjTEfRdpiX05J5vFm4=", - "dev": true - }, "lws": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/lws/-/lws-2.0.0.tgz", - "integrity": "sha512-OgAJ7Od6nteHv1p8QQPc28xFNZrPLBkyOu8lHsVH0Eo4qYPiY/401LHnIKwJEAQZAV8YF0lSL7/mtSxAM+mAVg==", + "version": "2.0.8", + "resolved": "https://registry.npmjs.org/lws/-/lws-2.0.8.tgz", + "integrity": "sha512-PqmyBurt/7WhId7a/u0bpWLaMASM4Md8gosnnIFXJFlu+oA2QpUHo9rdv9wezM9LzupryAugyU8silCq8CulyQ==", "dev": true, "requires": { - "ansi-escape-sequences": "^4.1.0", - "array-back": "^3.1.0", - "byte-size": "^5.0.1", + "ansi-escape-sequences": "^5.1.2", + "array-back": "^4.0.1", + "byte-size": "^6.2.0", "command-line-args": "^5.1.1", - "command-line-usage": "^5.0.5", + "command-line-usage": "^6.1.0", "create-mixin": "^2.0.1", - "koa": "^2.7.0", - "load-module": "^2.0.1", + "koa": "^2.11.0", + "load-module": "^2.0.2", "lodash.assignwith": "^4.2.0", - "node-version-matches": "^1.0.1", - "open": "^6.3.0", - "reduce-flatten": "^2.0.0", - "typical": "^5.0.0", - "walk-back": "^3.0.1" - }, - "dependencies": { - "create-mixin": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/create-mixin/-/create-mixin-2.0.1.tgz", - "integrity": "sha512-r11aTk2z5x2C9ZI85oxuZ0EzgjBH0BdGacnXeuA+9d59xV2Hsy+ZpRmU+LUjJT9KdnLgzaxZoCbqrJ5qjl0bAA==", - "dev": true - } + "node-version-matches": "^2.0.1", + "open": "^7.0.0", + "reduce-flatten": "^3.0.0", + "typical": "^5.2.0", + "walk-back": "^4.0.0" } }, "media-typer": { @@ -560,18 +551,18 @@ "dev": true }, "mime-db": { - "version": "1.40.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.40.0.tgz", - "integrity": "sha512-jYdeOMPy9vnxEqFRRo6ZvTZ8d9oPb+k18PKoYNYUe2stVEBPPwsln/qWzdbmaIvnhZ9v2P+CuecK+fpUfsV2mA==", + "version": "1.43.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.43.0.tgz", + "integrity": "sha512-+5dsGEEovYbT8UY9yD7eE4XTc4UwJ1jBYlgaQQF38ENsKR3wj/8q8RFZrF9WIZpB2V1ArTVFUva8sAul1NzRzQ==", "dev": true }, "mime-types": { - "version": "2.1.24", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.24.tgz", - "integrity": "sha512-WaFHS3MCl5fapm3oLxU4eYDw77IQM2ACcxQ9RIxfaC3ooc6PFuBMGZZsYpvoXS5D5QTWPieo1jjLdAm3TBP3cQ==", + "version": "2.1.26", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.26.tgz", + "integrity": "sha512-01paPWYgLrkqAyrlDorC1uDwl2p3qZT7yl806vW7DvDoxwXi46jsjFbg+WdwotBIk6/MbEhO/dh5aZ5sNj/dWQ==", "dev": true, "requires": { - "mime-db": "1.40.0" + "mime-db": "1.43.0" } }, "minimatch": { @@ -602,18 +593,18 @@ "dev": true }, "node-version-matches": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/node-version-matches/-/node-version-matches-1.0.1.tgz", - "integrity": "sha512-L1GRq9vkwvJkOdJynEph63N1gNdKRsThm6CkLn+8X9mFzmDv63iEMkZETVkcWVJowpqK72lNVuMZmeenhDoRhw==", + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/node-version-matches/-/node-version-matches-2.0.1.tgz", + "integrity": "sha512-oqk6+05FC0dNVY5NuXuhPEMq+m1b9ZjS9SIhVE9EjwCHZspnmjSO8npbKAEieinR8GeEgbecoQcYIvI/Kwcf6Q==", "dev": true, "requires": { - "semver": "^5.6.0" + "semver": "^6.3.0" } }, "obso": { - "version": "0.4.3", - "resolved": "https://registry.npmjs.org/obso/-/obso-0.4.3.tgz", - "integrity": "sha512-qSL6U5d3aPaCBLqWKoH16FgZk/MUvO7n7pOijyK3TQn+jJAbWLxUyemTDGfy8B8OIrvOr6ng+nzN5s86v+v7Kg==", + "version": "0.5.1", + "resolved": "https://registry.npmjs.org/obso/-/obso-0.5.1.tgz", + "integrity": "sha512-vZrAJKfqvetPds83z0OUmgYk/vSDTMCutrM7ku7LT3Rx3pGxaxhnh+5YxG88SZSDDkLIqJ55E6t5LcgNlxX77g==", "dev": true }, "on-finished": { @@ -641,12 +632,13 @@ "dev": true }, "open": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/open/-/open-6.3.0.tgz", - "integrity": "sha512-6AHdrJxPvAXIowO/aIaeHZ8CeMdDf7qCyRNq8NwJpinmCdXhz+NZR7ie1Too94lpciCDsG+qHGO9Mt0svA4OqA==", + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/open/-/open-7.0.2.tgz", + "integrity": "sha512-70E/pFTPr7nZ9nLDPNTcj3IVqnNvKuP4VsBmoKV9YGTnChe0mlS3C4qM7qKarhZ8rGaHKLfo+vBTHXDp6ZSyLQ==", "dev": true, "requires": { - "is-wsl": "^1.1.0" + "is-docker": "^2.0.0", + "is-wsl": "^2.1.1" } }, "parseurl": { @@ -662,20 +654,20 @@ "dev": true }, "path-to-regexp": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-3.0.0.tgz", - "integrity": "sha512-ZOtfhPttCrqp2M1PBBH4X13XlvnfhIwD7yCLx+GoGoXRPQyxGOTdQMpIzPSPKXAJT/JQrdfFrgdJOyAzvgpQ9A==" + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-6.1.0.tgz", + "integrity": "sha512-h9DqehX3zZZDCEm+xbfU0ZmwCGFCAAraPJWMXJ4+v32NjZJilVg3k1TcKsRgIb8IQ/izZSaydDc1OhJCZvs2Dw==" }, "race-timeout-anywhere": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/race-timeout-anywhere/-/race-timeout-anywhere-0.1.1.tgz", - "integrity": "sha512-H1wGOu9cvOnG9q4asm34wisqjrat67zFqyDAiCto3TpCBgkiyIJKA3TUPibephfGO96J1V/Fq2iTHLvcX/v8bg==", + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/race-timeout-anywhere/-/race-timeout-anywhere-1.0.1.tgz", + "integrity": "sha512-b6fA5IQTjzf6X8QgmTg5F1xJlnMLYc8EQKrwrZQN5dfOBxcXsWzurdNHcEmFtOT23iiCzi+XA4ZFazdaZEoVCQ==", "dev": true }, "reduce-flatten": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/reduce-flatten/-/reduce-flatten-2.0.0.tgz", - "integrity": "sha512-EJ4UNY/U1t2P/2k6oqotuX2Cc3T6nxJwsM0N0asT7dhrtH1ltUxDn4NalSYmPE2rCkVpcf/X6R0wDwcFpzhd4w==", + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/reduce-flatten/-/reduce-flatten-3.0.0.tgz", + "integrity": "sha512-eczl8wAYBxJ6Egl6I1ECIF+8z6sHu+KE7BzaEDZTpPXKXfy9SUDQlVYwkRcNTjJLC3Iakxbhss50KuT/R6SYfg==", "dev": true }, "safe-buffer": { @@ -685,9 +677,9 @@ "dev": true }, "semver": { - "version": "5.7.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.0.tgz", - "integrity": "sha512-Ya52jSX2u7QKghxeoFGpLwCtGlt7j0oY9DYb5apt9nPlJ42ID+ulTXESnt/qAQcoSERyZ5sl3LDIOw0nAn/5DA==", + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", "dev": true }, "setprototypeof": { @@ -696,18 +688,31 @@ "integrity": "sha512-JvdAWfbXeIGaZ9cILp38HntZSFSo3mWg6xGcJJsd+d4aRMOqauag1C63dJfDw7OaMYwEbHMOxEZ1lqVRYP2OAw==", "dev": true }, - "sprintf-js": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", - "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=", - "dev": true - }, "statuses": { "version": "1.5.0", "resolved": "https://registry.npmjs.org/statuses/-/statuses-1.5.0.tgz", "integrity": "sha1-Fhx9rBd2Wf2YEfQ3cfqZOBR4Yow=", "dev": true }, + "string-length": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/string-length/-/string-length-3.1.0.tgz", + "integrity": "sha512-Ttp5YvkGm5v9Ijagtaz1BnN+k9ObpvS0eIBblPMp2YWL8FBmi9qblQ9fexc2k/CXFgrTIteU3jAw3payCnwSTA==", + "dev": true, + "requires": { + "astral-regex": "^1.0.0", + "strip-ansi": "^5.2.0" + } + }, + "strip-ansi": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz", + "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==", + "dev": true, + "requires": { + "ansi-regex": "^4.1.0" + } + }, "supports-color": { "version": "5.5.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", @@ -718,80 +723,90 @@ } }, "table-layout": { - "version": "0.4.4", - "resolved": "https://registry.npmjs.org/table-layout/-/table-layout-0.4.4.tgz", - "integrity": "sha512-uNaR3SRMJwfdp9OUr36eyEi6LLsbcTqTO/hfTsNviKsNeyMBPICJCC7QXRF3+07bAP6FRwA8rczJPBqXDc0CkQ==", + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/table-layout/-/table-layout-1.0.0.tgz", + "integrity": "sha512-o8V8u943KXX9gLNK/Ss1n6Nn4YhpyY/RRnp3hKv/zTA+SXYiQnzJQlR8CZQf1RqYqgkiWMJ54Mv+Vq9Kfzxz1A==", "dev": true, "requires": { - "array-back": "^2.0.0", + "array-back": "^3.1.0", "deep-extend": "~0.6.0", - "lodash.padend": "^4.6.1", - "typical": "^2.6.1", - "wordwrapjs": "^3.0.0" + "typical": "^5.0.0", + "wordwrapjs": "^4.0.0" }, "dependencies": { "array-back": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/array-back/-/array-back-2.0.0.tgz", - "integrity": "sha512-eJv4pLLufP3g5kcZry0j6WXpIbzYw9GUB4mVJZno9wfwiBxbizTnHCw3VJb07cBihbFX48Y7oSrW9y+gt4glyw==", - "dev": true, - "requires": { - "typical": "^2.6.1" - } - }, - "typical": { - "version": "2.6.1", - "resolved": "https://registry.npmjs.org/typical/-/typical-2.6.1.tgz", - "integrity": "sha1-XAgOXWYcu+OCWdLnCjxyU+hziB0=", + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/array-back/-/array-back-3.1.0.tgz", + "integrity": "sha512-TkuxA4UCOvxuDK6NZYXCalszEzj+TLszyASooky+i742l9TqsOdYCMJJupxRic61hwquNtppB3hgcuq9SVSH1Q==", "dev": true } } }, "test-object-model": { - "version": "0.4.4", - "resolved": "https://registry.npmjs.org/test-object-model/-/test-object-model-0.4.4.tgz", - "integrity": "sha512-k7CLzxW/bW8POxcGyII9FFK3shkf7JY9rW6JfFiO9+vHj3PyCE/hWuW+aimXGNr8zSOo1h9yVTRaCT6QkO5rWg==", + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/test-object-model/-/test-object-model-0.6.1.tgz", + "integrity": "sha512-Sw9NOFyLENKHf63EzEOdh6yIp+jwTwkvWCboTjQ3howqokUmJ6CMl6YAMdC86d64FTKOdW+DrRqVqhyWDoxANA==", "dev": true, "requires": { - "composite-class": "^0.3.0", - "create-mixin": "^1.1.1", - "fsm-base": "^0.4.4", - "race-timeout-anywhere": "^0.1.1", - "typical": "^5.0.0" + "composite-class": "^2.0.1", + "create-mixin": "^3.0.0", + "fsm-base": "^0.5.2", + "race-timeout-anywhere": "^1.0.1", + "typical": "^6.0.0" }, "dependencies": { + "create-mixin": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/create-mixin/-/create-mixin-3.0.0.tgz", + "integrity": "sha512-LkdMqnWT9LaqBN4huqpUnMz56Yr1mVSoCduAd2xXefgH/YZP2sXCMAyztXjk4q8hTF/TlcDa+zQW2aTgGdjjKQ==", + "dev": true + }, "typical": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/typical/-/typical-5.0.0.tgz", - "integrity": "sha512-EiYNG3wi45n7ZvDJaU/ekW8OiAJ0EfYNq8tQJUMVok5k8+g7mj54pFWOXFsstmQoVHfy4CjzgNgJtGUAVR8kFQ==", + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/typical/-/typical-6.0.0.tgz", + "integrity": "sha512-bTTHXOq5E2HgNQiWCyE/Qlw3hPZN+mYB0nUfIAKIeH+pYu+j1BLVyARiD2Ezfh62vug4/qDEk89ELbsvqv5L2Q==", "dev": true } } }, "test-runner": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/test-runner/-/test-runner-0.6.0.tgz", - "integrity": "sha512-9I6yatp2lrQE0cRop/l4guD+Ri8dOQazwQgGM75+d/NtKndM/I8a51MvnIPnSPHv6V9f9WhQFL+kmNbssrzrpQ==", + "version": "0.8.13", + "resolved": "https://registry.npmjs.org/test-runner/-/test-runner-0.8.13.tgz", + "integrity": "sha512-BI1SQx5xPXxZoq5cwOgzn4hAm9Osiq3I9D/MUCHUcCQf+Yo2hJDyInnJbXUXUbinEIj2MNbRi5dwmEHTb8UM1g==", "dev": true, "requires": { - "@test-runner/default-view": "^0.2.3", + "@test-runner/default-view": "^0.5.4", + "@test-runner/live-view": "^0.1.7", + "@test-runner/oneline-view": "^0.1.3", "command-line-args": "^5.1.1", - "command-line-usage": "^5.0.5", - "file-set": "^2.0.1", - "js-yaml": "^3.13.1", - "reduce-flatten": "^2.0.0", - "test-object-model": "^0.4.3", - "test-runner-core": "^0.6.0-17", - "walk-back": "^3.0.1" + "command-line-usage": "^6.1.0", + "file-set": "^3.0.0", + "load-module": "^3.0.0", + "reduce-flatten": "^3.0.0", + "test-object-model": "^0.6.1", + "test-runner-core": "^0.8.6", + "walk-back": "^4.0.0" + }, + "dependencies": { + "load-module": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/load-module/-/load-module-3.0.0.tgz", + "integrity": "sha512-ZqprfrTx4vfH5+1mgpspPh5JYsNyA193NkMUdb3GwpmVqMczOh8cUDJgZBmEZVlSR42JBGYTUxlBAX9LHIBtIA==", + "dev": true, + "requires": { + "array-back": "^4.0.1" + } + } } }, "test-runner-core": { - "version": "0.6.0-17", - "resolved": "https://registry.npmjs.org/test-runner-core/-/test-runner-core-0.6.0-17.tgz", - "integrity": "sha512-HIkK3P2fLmnF0abqmWXfzXjqUmGoNNegstqN8aVx1T7jnZg3gdJ2pbHECPWzMqgCyuQLZXFjevzd3ha8bkOELg==", + "version": "0.8.6", + "resolved": "https://registry.npmjs.org/test-runner-core/-/test-runner-core-0.8.6.tgz", + "integrity": "sha512-lo1ct/DBEzPHxrRMhITNapTSiSOagnuowt1yzhxJwDxcbZLdec4+EZZd2iwBobbYKS0Z5OSXjQt1JoDdxD/PCw==", "dev": true, "requires": { - "fsm-base": "^0.4.4" + "fsm-base": "^0.5.2", + "test-object-model": "^0.6.0" } }, "toidentifier": { @@ -800,6 +815,12 @@ "integrity": "sha512-yaOH/Pk/VEhBWWTlhI+qXxDFXlejDGcQipMlyxda9nthulaxLZUNcUqFxokp0vcYnvteJln5FNQDRrxj3YcbVw==", "dev": true }, + "tsscmp": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/tsscmp/-/tsscmp-1.0.6.tgz", + "integrity": "sha512-LxhtAkPDTkVCMQjt2h6eBVY28KCjikZqZfMcC15YBeNjkgUpdCfBu5HoiOTDu86v6smE8yOjyEktJ8hlbANHQA==", + "dev": true + }, "type-is": { "version": "1.6.18", "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz", @@ -811,9 +832,9 @@ } }, "typical": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/typical/-/typical-5.0.0.tgz", - "integrity": "sha512-EiYNG3wi45n7ZvDJaU/ekW8OiAJ0EfYNq8tQJUMVok5k8+g7mj54pFWOXFsstmQoVHfy4CjzgNgJtGUAVR8kFQ==", + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/typical/-/typical-5.2.0.tgz", + "integrity": "sha512-dvdQgNDNJo+8B2uBQoqdb11eUCE1JQXhvjC/CZtgvZseVd5TYMXnq0+vuUemXbd/Se29cTaUuPX3YIc2xgbvIg==", "dev": true }, "vary": { @@ -823,31 +844,25 @@ "dev": true }, "walk-back": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/walk-back/-/walk-back-3.0.1.tgz", - "integrity": "sha512-umiNB2qLO731Sxbp6cfZ9pwURJzTnftxE4Gc7hq8n/ehkuXC//s9F65IEIJA2ZytQZ1ZOsm/Fju4IWx0bivkUQ==", + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/walk-back/-/walk-back-4.0.0.tgz", + "integrity": "sha512-kudCA8PXVQfrqv2mFTG72vDBRi8BKWxGgFLwPpzHcpZnSwZk93WMwUDVcLHWNsnm+Y0AC4Vb6MUNRgaHfyV2DQ==", "dev": true }, "wordwrapjs": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/wordwrapjs/-/wordwrapjs-3.0.0.tgz", - "integrity": "sha512-mO8XtqyPvykVCsrwj5MlOVWvSnCdT+C+QVbm6blradR7JExAhbkZ7hZ9A+9NUtwzSqrlUo9a67ws0EiILrvRpw==", + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/wordwrapjs/-/wordwrapjs-4.0.0.tgz", + "integrity": "sha512-Svqw723a3R34KvsMgpjFBYCgNOSdcW3mQFK4wIfhGQhtaFVOJmdYoXgi63ne3dTlWgatVcUc7t4HtQ/+bUVIzQ==", "dev": true, "requires": { - "reduce-flatten": "^1.0.1", - "typical": "^2.6.1" + "reduce-flatten": "^2.0.0", + "typical": "^5.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 - }, - "typical": { - "version": "2.6.1", - "resolved": "https://registry.npmjs.org/typical/-/typical-2.6.1.tgz", - "integrity": "sha1-XAgOXWYcu+OCWdLnCjxyU+hziB0=", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/reduce-flatten/-/reduce-flatten-2.0.0.tgz", + "integrity": "sha512-EJ4UNY/U1t2P/2k6oqotuX2Cc3T6nxJwsM0N0asT7dhrtH1ltUxDn4NalSYmPE2rCkVpcf/X6R0wDwcFpzhd4w==", "dev": true } } diff --git a/package.json b/package.json index b9b9584..9a664b1 100644 --- a/package.json +++ b/package.json @@ -10,19 +10,19 @@ "lws-middleware" ], "engines": { - "node": ">=8" + "node": ">=10" }, "scripts": { "test": "test-runner test.js" }, "dependencies": { - "array-back": "^3.1.0", - "path-to-regexp": "^3.0.0" + "array-back": "^4.0.1", + "path-to-regexp": "^6.1.0" }, "devDependencies": { - "lws": "^2.0.0", + "lws": "^2.0.8", "node-fetch": "^2.6.0", - "test-runner": "^0.6.0" + "test-runner": "^0.8.13" }, "files": [ "index.js" diff --git a/test.js b/test.js index b96c25d..6072a0c 100644 --- a/test.js +++ b/test.js @@ -2,9 +2,9 @@ const Tom = require('test-runner').Tom const Blacklist = require('./') const Lws = require('lws') const fetch = require('node-fetch') -const a = require('assert') +const a = require('assert').strict -const tom = module.exports = new Tom('blacklist') +const tom = module.exports = new Tom() tom.test('simple', async function () { const port = 8000 + this.index @@ -16,8 +16,8 @@ tom.test('simple', async function () { const response = await fetch(`http://localhost:${port}/one`) const response2 = await fetch(`http://localhost:${port}/two`) lws.server.close() - a.strictEqual(response.status, 403) - a.strictEqual(response2.status, 404) + a.equal(response.status, 403) + a.equal(response2.status, 404) }) tom.test('wildcard', async function () { @@ -30,6 +30,6 @@ tom.test('wildcard', async function () { const response = await fetch(`http://localhost:${port}/one.php`) const response2 = await fetch(`http://localhost:${port}/two`) lws.server.close() - a.strictEqual(response.status, 403) - a.strictEqual(response2.status, 404) + a.equal(response.status, 403) + a.equal(response2.status, 404) })