diff --git a/package.json b/package.json index 057daa5..661035e 100644 --- a/package.json +++ b/package.json @@ -45,12 +45,10 @@ }, "devDependencies": { "chai": "^5.1.1", - "electrode-server": "^2.2.2", "gulp": "^3.8.11", "gulp-eslint": "^0.9.0", "node-fetch": "^3.3.2", "prettier": "^2.0.1", - "run-verify": "^1.2.2", "vitest": "^2.0.5" }, "prettier": { diff --git a/test/onrequest.spec.js b/test/onrequest.spec.js index 1a04b12..60a4a54 100644 --- a/test/onrequest.spec.js +++ b/test/onrequest.spec.js @@ -4,69 +4,64 @@ import { describe, it, expect } from 'vitest'; import { Redbird } from '../'; // Adjust the import path if necessary import { expect } from 'chai'; import fetch from 'node-fetch'; +import { createServer } from 'http'; -const { asyncVerify, runFinally } = require('run-verify'); -const electrodeServer = require('electrode-server'); +const TEST_PORT = 3000; describe('onRequest hook', function () { - function setupTestRoute(handler) { - return electrodeServer().then((server) => { - server.route({ - method: 'get', - path: '/test', - handler, - }); - return server; - }); - } - - it('should be able to modify headers for a route', () => { - let server; + it('should be able to modify headers for a route', async () => { let proxy; - let serverReq; let proxyReq; let saveProxyHeaders; - return asyncVerify( - () => { - return setupTestRoute((req) => { - serverReq = req; - return 'hello test'; - }); + const promiseServer = testServer(); + + let target; + proxy = Redbird({ bunyan: false, port: 18999 }); + proxy.register({ + src: 'localhost/x', + target: `http://localhost:${TEST_PORT}/test`, + onRequest: (req, res, tgt) => { + proxyReq = req; + saveProxyHeaders = Object.assign({}, req.headers); + req.headers.foo = 'bar'; + delete req.headers.blah; + target = tgt; }, - (s) => { - server = s; - let target; - proxy = Redbird({ bunyan: false, port: 18999 }); - proxy.register({ - src: 'localhost/x', - target: 'http://localhost:3000/test', - onRequest: (req, res, tgt) => { - proxyReq = req; - saveProxyHeaders = Object.assign({}, req.headers); - req.headers.foo = 'bar'; - delete req.headers.blah; - target = tgt; - }, - }); + }); - return fetch('http://localhost:18999/x', { - headers: { - blah: 'xyz', - }, - }).then((res) => { - expect(res.status).to.equal(200); - expect(target).to.exist; - expect(saveProxyHeaders).to.exist; - expect(saveProxyHeaders.blah).to.equal('xyz'); - expect(serverReq).to.exist; - expect(serverReq.headers.foo).to.equal('bar'); - expect(serverReq.headers.blah).to.equal(undefined); - return target; - }); + const res = await fetch('http://localhost:18999/x', { + headers: { + blah: 'xyz', }, - runFinally(() => proxy && proxy.close()), - runFinally(() => server && server.stop()) - ); + }); + expect(res.status).to.equal(200); + expect(target).to.exist; + expect(saveProxyHeaders).to.exist; + expect(saveProxyHeaders.blah).to.equal('xyz'); + + const req = await promiseServer; + expect(req).to.exist; + expect(req.headers.foo).to.equal('bar'); + expect(req.headers.blah).to.equal(undefined); + + await proxy.close(); }); }); + +function testServer() { + return new Promise(function (resolve, reject) { + const server = createServer(function (req, res) { + res.write(''); + res.end(); + server.close((err) => { + if (err) { + return reject(err); + } + resolve(req); + }); + }); + + server.listen(TEST_PORT); + }); +} diff --git a/yarn.lock b/yarn.lock index ce79c7a..dd8004f 100644 --- a/yarn.lock +++ b/yarn.lock @@ -303,14 +303,6 @@ loupe "^3.1.1" tinyrainbow "^1.2.0" -accept@3.x.x: - version "3.1.3" - resolved "https://registry.npmjs.org/accept/-/accept-3.1.3.tgz" - integrity sha512-OgOEAidVEOKPup+Gv2+2wdH2AgVKI9LxsJ4hicdJ6cY0faUuZdZoi56kkXWlHp9qicN1nWQLmW5ZRGk+SBS5xg== - dependencies: - boom "7.x.x" - hoek "6.x.x" - acme-dns-01-cli@^3.0.0: version "3.0.7" resolved "https://registry.npmjs.org/acme-dns-01-cli/-/acme-dns-01-cli-3.0.7.tgz" @@ -349,13 +341,6 @@ ajv@^6.5.5: json-schema-traverse "^0.4.1" uri-js "^4.2.2" -ammo@3.x.x: - version "3.0.3" - resolved "https://registry.npmjs.org/ammo/-/ammo-3.0.3.tgz" - integrity sha512-vo76VJ44MkUBZL/BzpGXaKzMfroF4ZR6+haRuw9p+eSWfoNaH2AxVc8xmiEPC08jhzJSeM6w7/iMUGet8b4oBQ== - dependencies: - hoek "6.x.x" - ansi-regex@^2.0.0: version "2.1.1" resolved "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz" @@ -366,13 +351,6 @@ ansi-styles@^2.2.1: resolved "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz" integrity sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4= -ansi-styles@^4.1.0: - version "4.3.0" - resolved "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz" - integrity sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg== - dependencies: - color-convert "^2.0.1" - archy@^1.0.0: version "1.0.0" resolved "https://registry.npmjs.org/archy/-/archy-1.0.0.tgz" @@ -442,20 +420,6 @@ assertion-error@^2.0.1: resolved "https://registry.yarnpkg.com/assertion-error/-/assertion-error-2.0.1.tgz#f641a196b335690b1070bf00b6e7593fec190bf7" integrity sha512-Izi8RQcffqCeNVgFigKli1ssklIbpHnCYc6AknXGYoB6grJqyeby7jv12JUQgmTAnIDnbck1uxksT4dzN3PWBA== -async-eventemitter@^0.2.2: - version "0.2.4" - resolved "https://registry.npmjs.org/async-eventemitter/-/async-eventemitter-0.2.4.tgz" - integrity sha512-pd20BwL7Yt1zwDFy+8MX8F1+WCT8aQeKj0kQnTrH9WaeRETlRamVhD0JtRPmrV4GfOJ2F9CvdQkZeZhnh2TuHw== - dependencies: - async "^2.4.0" - -async@^2.4.0: - version "2.6.4" - resolved "https://registry.npmjs.org/async/-/async-2.6.4.tgz" - integrity sha512-mzo5dfJYwAn29PeiJ0zvwTo04zj8HDJj0Mn8TD7sno7q12prdbnasKJHhkm2c1LgrhlJ0teaea8860oxi51mGA== - dependencies: - lodash "^4.17.14" - asynckit@^0.4.0: version "0.4.0" resolved "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz" @@ -481,13 +445,6 @@ aws4@^1.8.0: resolved "https://registry.npmjs.org/aws4/-/aws4-1.8.0.tgz" integrity sha512-ReZxvNHIOv88FlT7rxcXIIC0fPt4KZqZbOlivyWtXLt8ESx84zd3kMC6iK5jVeS2qt+g7ftS7ye4fi06X5rtRQ== -b64@4.x.x: - version "4.1.2" - resolved "https://registry.yarnpkg.com/b64/-/b64-4.1.2.tgz#7015372ba8101f7fb18da070717a93c28c8580d8" - integrity sha512-+GUspBxlH3CJaxMUGUE1EBoWM6RKgWiYwUDal0qdf8m3ArnXNN1KzKVo5HOnE/FSq4HHyWf3TlHLsZI8PKQgrQ== - dependencies: - hoek "6.x.x" - balanced-match@^1.0.0: version "1.0.0" resolved "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz" @@ -505,17 +462,12 @@ beeper@^1.0.0: resolved "https://registry.npmjs.org/beeper/-/beeper-1.1.1.tgz" integrity sha1-5tXqjF2tABMEpwsiY4RH9pyy+Ak= -big-time@2.x.x: - version "2.0.1" - resolved "https://registry.yarnpkg.com/big-time/-/big-time-2.0.1.tgz#68c7df8dc30f97e953f25a67a76ac9713c16c9de" - integrity sha512-qtwYYoocwpiAxTXC5sIpB6nH5j6ckt+n/jhD7J5OEiFHnUZEFn0Xk8STUaE5s10LdazN/87bTDMe+fSihaW7Kg== - bindings@~1.2.1: version "1.2.1" resolved "https://registry.npmjs.org/bindings/-/bindings-1.2.1.tgz" integrity sha1-FK1hE4EtLTfXLme0ystLtyZQXxE= -"bluebird@>= 2.10.0 <= 3.x.x", "bluebird@^2.11.0 || ^3.7.2": +"bluebird@^2.11.0 || ^3.7.2": version "3.7.2" resolved "https://registry.npmjs.org/bluebird/-/bluebird-3.7.2.tgz" integrity sha512-XpNj6GDQzdfW+r2Wnn7xiSAd7TM3jzkxGXBGTtWKuSXv1xUV+azxAm8jdWZN06QTQk+2N2XB9jRDkvbmQmcRtg== @@ -532,26 +484,6 @@ boom@2.x.x: dependencies: hoek "2.x.x" -boom@7.x.x: - version "7.2.2" - resolved "https://registry.npmjs.org/boom/-/boom-7.2.2.tgz" - integrity sha512-IFUbOa8PS7xqmhIjpeStwT3d09hGkNYQ6aj2iELSTxcVs2u0aKn1NzhkdUQSzsRg1FVkj3uit3I6mXQCBixw+A== - dependencies: - hoek "6.x.x" - -bounce@1.x.x: - version "1.2.2" - resolved "https://registry.npmjs.org/bounce/-/bounce-1.2.2.tgz" - integrity sha512-1LPcXg3fkGVhjdA/P3DcR5cDktKEYtDpruJv9Nhmy36RoYaoxZfC82Zr2JmS3vysDJKqMtP0qJw3/P6iisTASg== - dependencies: - boom "7.x.x" - hoek "6.x.x" - -bourne@1.x.x: - version "1.3.3" - resolved "https://registry.yarnpkg.com/bourne/-/bourne-1.3.3.tgz#a9f53d3930e13eb8c3f2bbb0e20dc561cc08de0e" - integrity sha512-6K4uuAlRGcorC6aV2Y1rypeQ17grx4XKyVyG6NA963PwRfxyievy0CDXtiSBPKvIc7OTpcJRT86X3mU7j5Zp9A== - brace-expansion@^1.0.0: version "1.1.8" resolved "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.8.tgz" @@ -581,37 +513,11 @@ cac@^6.7.14: resolved "https://registry.yarnpkg.com/cac/-/cac-6.7.14.tgz#804e1e6f506ee363cb0e3ccbb09cad5dd9870959" integrity sha512-b6Ilus+c3RrdDk+JhLKUAQfzzgLEPy6wcXqS7f/xe1EETvsDP6GORG7SFuOs6cID5YkqchW/LXZbX5bc8j7ZcQ== -call@5.x.x: - version "5.0.3" - resolved "https://registry.npmjs.org/call/-/call-5.0.3.tgz" - integrity sha512-eX16KHiAYXugbFu6VifstSdwH6aMuWWb4s0qvpq1nR1b+Sf+u68jjttg8ixDBEldPqBi30bDU35OJQWKeTLKxg== - dependencies: - boom "7.x.x" - hoek "6.x.x" - caseless@~0.12.0: version "0.12.0" resolved "https://registry.npmjs.org/caseless/-/caseless-0.12.0.tgz" integrity sha1-G2gcIf+EAzyCZUMJBolCDRhxUdw= -catbox-memory@3.x.x: - version "3.1.4" - resolved "https://registry.npmjs.org/catbox-memory/-/catbox-memory-3.1.4.tgz" - integrity sha512-1tDnll066au0HXBSDHS/YQ34MQ2omBsmnA9g/jseyq/M3m7UPrajVtPDZK/rXgikSC1dfjo9Pa+kQ1qcyG2d3g== - dependencies: - big-time "2.x.x" - boom "7.x.x" - hoek "6.x.x" - -catbox@10.x.x: - version "10.0.5" - resolved "https://registry.npmjs.org/catbox/-/catbox-10.0.5.tgz" - integrity sha512-5SpI/tEP3SiLE1qkkV+/hdVW48sHVBEbzPX4jBiwl6hsZh/gkl4bqfGLkvh7mjpMK5evJ0Rm/6NRlhF/Jsy9ow== - dependencies: - boom "7.x.x" - hoek "6.x.x" - joi "14.x.x" - cert-info@^1.5.1: version "1.5.1" resolved "https://registry.npmjs.org/cert-info/-/cert-info-1.5.1.tgz" @@ -639,14 +545,6 @@ chalk@^1.0.0, chalk@^1.1.1: strip-ansi "^3.0.0" supports-color "^2.0.0" -chalk@^4.1.0: - version "4.1.2" - resolved "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz" - integrity sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA== - dependencies: - ansi-styles "^4.1.0" - supports-color "^7.1.0" - check-error@^2.1.1: version "2.1.1" resolved "https://registry.yarnpkg.com/check-error/-/check-error-2.1.1.tgz#87eb876ae71ee388fa0471fe423f494be1d96ccc" @@ -672,18 +570,6 @@ co@^4.6.0: resolved "https://registry.npmjs.org/co/-/co-4.6.0.tgz" integrity sha1-bqa989hTrlTMuOR7+gvz+QMfsYQ= -color-convert@^2.0.1: - version "2.0.1" - resolved "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz" - integrity sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ== - dependencies: - color-name "~1.1.4" - -color-name@~1.1.4: - version "1.1.4" - resolved "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz" - integrity sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA== - combined-stream@^1.0.5, combined-stream@~1.0.5: version "1.0.5" resolved "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.5.tgz" @@ -712,13 +598,6 @@ concat-stream@^1.4.6: readable-stream "^2.2.2" typedarray "^0.0.6" -content@4.x.x: - version "4.0.6" - resolved "https://registry.yarnpkg.com/content/-/content-4.0.6.tgz#76ffd96c5cbccf64fe3923cbb9c48b8bc04b273e" - integrity sha512-lR9ND3dXiMdmsE84K6l02rMdgiBVmtYWu1Vr/gfSGHcIcznBj2QxmSdUgDuNFOA+G9yrb1IIWkZ7aKtB6hDGyA== - dependencies: - boom "7.x.x" - core-util-is@1.0.2, core-util-is@~1.0.0: version "1.0.2" resolved "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz" @@ -740,13 +619,6 @@ cryptiles@2.x.x: dependencies: boom "2.x.x" -cryptiles@4.x.x: - version "4.1.3" - resolved "https://registry.yarnpkg.com/cryptiles/-/cryptiles-4.1.3.tgz#2461d3390ea0b82c643a6ba79f0ed491b0934c25" - integrity sha512-gT9nyTMSUC1JnziQpPbxKGBbUg8VL7Zn2NB4E1cJYvuXdElHrwxrV9bmltZGDzet45zSDGyYceueke1TjynGzw== - dependencies: - boom "7.x.x" - d@1: version "1.0.0" resolved "https://registry.npmjs.org/d/-/d-1.0.0.tgz" @@ -882,28 +754,6 @@ eckles@^1.4.1: resolved "https://registry.npmjs.org/eckles/-/eckles-1.4.1.tgz" integrity sha512-auWyk/k8oSkVHaD4RxkPadKsLUcIwKgr/h8F7UZEueFDBO7BsE4y+H6IMUDbfqKIFPg/9MxV6KcBdJCmVVcxSA== -electrode-confippet@^1.2.10: - version "1.7.1" - resolved "https://registry.npmjs.org/electrode-confippet/-/electrode-confippet-1.7.1.tgz" - integrity sha512-7zdZ7DAiqu5r2ng/Ze4FaDzoY4ca//WJJk3Z8gg7Wa2o85PifGU8sIkc7K8kVKO+6A31RMaAQkZmuny9udkl1A== - dependencies: - js-yaml "^3.5.3" - lodash "^4.13.1" - tslib "^2.1.0" - -electrode-server@^2.2.2: - version "2.5.0" - resolved "https://registry.npmjs.org/electrode-server/-/electrode-server-2.5.0.tgz" - integrity sha512-zUqnUZMq8nrgaxmoTmfb85aCPyUgugyrucBhhllE5XGA16y/vjvCpc2Gtb4T0imdt81NEXWXyiT0+JgAt/gG9g== - dependencies: - async-eventemitter "^0.2.2" - bluebird ">= 2.10.0 <= 3.x.x" - chalk "^4.1.0" - electrode-confippet "^1.2.10" - hapi "^17.5.0" - lodash "^4.17.20" - require-at "^1.0.6" - end-of-stream@~0.1.5: version "0.1.5" resolved "https://registry.npmjs.org/end-of-stream/-/end-of-stream-0.1.5.tgz" @@ -1551,30 +1401,6 @@ handle-thing@^2.0.0: resolved "https://registry.npmjs.org/handle-thing/-/handle-thing-2.0.0.tgz" integrity sha512-d4sze1JNC454Wdo2fkuyzCr6aHcbL6PGGuFAz0Li/NcOm1tCHGnWDRmJP85dh9IhQErTc2svWFEX5xHIOo//kQ== -hapi@^17.5.0: - version "17.8.5" - resolved "https://registry.npmjs.org/hapi/-/hapi-17.8.5.tgz" - integrity sha512-+RnMWK/HI3VCvzfy0vO28YycMX19OiY8h9tYaDzjjOJ1eTh/HY2URvhFNkcqxZ1R1uoUdiB+pnjGi9e+vkaPEw== - dependencies: - accept "3.x.x" - ammo "3.x.x" - boom "7.x.x" - bounce "1.x.x" - call "5.x.x" - catbox "10.x.x" - catbox-memory "3.x.x" - heavy "6.x.x" - hoek "6.x.x" - joi "14.x.x" - mimos "4.x.x" - podium "3.x.x" - shot "4.x.x" - somever "2.x.x" - statehood "6.x.x" - subtext "6.x.x" - teamwork "3.x.x" - topo "3.x.x" - har-schema@^1.0.5: version "1.0.5" resolved "https://registry.npmjs.org/har-schema/-/har-schema-1.0.5.tgz" @@ -1608,11 +1434,6 @@ has-ansi@^2.0.0: dependencies: ansi-regex "^2.0.0" -has-flag@^4.0.0: - version "4.0.0" - resolved "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz" - integrity sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ== - has-gulplog@^0.1.0: version "0.1.0" resolved "https://registry.npmjs.org/has-gulplog/-/has-gulplog-0.1.0.tgz" @@ -1630,25 +1451,11 @@ hawk@~3.1.3: hoek "2.x.x" sntp "1.x.x" -heavy@6.x.x: - version "6.1.2" - resolved "https://registry.npmjs.org/heavy/-/heavy-6.1.2.tgz" - integrity sha512-cJp884bqhiebNcEHydW0g6V1MUGYOXRPw9c7MFiHQnuGxtbWuSZpsbojwb2kxb3AA1/Rfs8CNiV9MMOF8pFRDg== - dependencies: - boom "7.x.x" - hoek "6.x.x" - joi "14.x.x" - hoek@2.x.x: version "2.16.3" resolved "https://registry.npmjs.org/hoek/-/hoek-2.16.3.tgz" integrity sha1-ILt0A9POo5jpHcRxCo/xuCdKJe0= -hoek@6.x.x: - version "6.0.1" - resolved "https://registry.npmjs.org/hoek/-/hoek-6.0.1.tgz" - integrity sha512-3PvUwBerLNVJiIVQdpkWF9F/M0ekgb2NPJWOhsE28RXSQPsY42YSnaJ8d1kZjcAz58TZ/Fk9Tw64xJsENFlJNw== - homedir-polyfill@^1.0.0, homedir-polyfill@^1.0.1: version "1.0.1" resolved "https://registry.npmjs.org/homedir-polyfill/-/homedir-polyfill-1.0.1.tgz" @@ -1731,16 +1538,6 @@ interpret@^1.0.0: resolved "https://registry.npmjs.org/interpret/-/interpret-1.0.3.tgz" integrity sha1-y8NcYu7uc/Gat7EKgBURQBr8D5A= -iron@5.x.x: - version "5.0.6" - resolved "https://registry.yarnpkg.com/iron/-/iron-5.0.6.tgz#7121d4a6e3ac2f65e4d02971646fea1995434744" - integrity sha512-zYUMOSkEXGBdwlV/AXF9zJC0aLuTJUKHkGeYS5I2g225M5i6SrxQyGJGhPgOR8BK1omL6N5i6TcwfsXbP8/Exw== - dependencies: - b64 "4.x.x" - boom "7.x.x" - cryptiles "4.x.x" - hoek "6.x.x" - is-absolute@^0.2.3: version "0.2.6" resolved "https://registry.npmjs.org/is-absolute/-/is-absolute-0.2.6.tgz" @@ -1858,13 +1655,6 @@ isarray@1.0.0, isarray@~1.0.0: resolved "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz" integrity sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE= -isemail@3.x.x: - version "3.2.0" - resolved "https://registry.yarnpkg.com/isemail/-/isemail-3.2.0.tgz#59310a021931a9fb06bbb51e155ce0b3f236832c" - integrity sha512-zKqkK+O+dGqevc93KNsbZ/TqTUFd46MwWjYOoMrjIMZ51eU7DtQG3Wmd9SQQT7i7RVnuTPEiYEWHU3MSbxC1Tg== - dependencies: - punycode "2.x.x" - isexe@^2.0.0: version "2.0.0" resolved "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz" @@ -1887,16 +1677,7 @@ isstream@~0.1.2: resolved "https://registry.npmjs.org/isstream/-/isstream-0.1.2.tgz" integrity sha1-R+Y/evVa+m+S4VAOaQ64uFKcCZo= -joi@14.x.x: - version "14.0.4" - resolved "https://registry.npmjs.org/joi/-/joi-14.0.4.tgz" - integrity sha512-KUXRcinDUMMbtlOk7YLGHQvG73dLyf8bmgE+6sBTkdJbZpeGVGAlPXEHLiQBV7KinD/VLD5OA0EUgoTTfbRAJQ== - dependencies: - hoek "6.x.x" - isemail "3.x.x" - topo "3.x.x" - -js-yaml@^3.2.5, js-yaml@^3.5.3: +js-yaml@^3.2.5: version "3.9.1" resolved "https://registry.npmjs.org/js-yaml/-/js-yaml-3.9.1.tgz" integrity sha1-CHdc69/dNZIJ8NKs04PI+GppBKA= @@ -2126,7 +1907,7 @@ lodash.templatesettings@^3.0.0: lodash._reinterpolate "^3.0.0" lodash.escape "^3.0.0" -lodash@^4.13.1, lodash@^4.15.0, lodash@^4.17.10, lodash@^4.17.14, lodash@^4.17.15, lodash@^4.17.20: +lodash@^4.15.0, lodash@^4.17.10, lodash@^4.17.15: version "4.17.21" resolved "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz" integrity sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg== @@ -2191,11 +1972,6 @@ micromatch@^2.3.7: parse-glob "^3.0.4" regex-cache "^0.4.2" -mime-db@1.x.x: - version "1.53.0" - resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.53.0.tgz#3cb63cd820fc29896d9d4e8c32ab4fcd74ccb447" - integrity sha512-oHlN/w+3MQ3rba9rqFr6V/ypF10LSkdwUysQL7GkXoTgIWeV+tcXGA852TBxH+gsh8UWoyhR1hKcoMJTuWflpg== - mime-db@~1.29.0: version "1.29.0" resolved "https://registry.npmjs.org/mime-db/-/mime-db-1.29.0.tgz" @@ -2225,14 +2001,6 @@ mimic-fn@^4.0.0: resolved "https://registry.yarnpkg.com/mimic-fn/-/mimic-fn-4.0.0.tgz#60a90550d5cb0b239cca65d893b1a53b29871ecc" integrity sha512-vqiC06CuhBTUdZH+RYl8sFrL096vA45Ok5ISO6sE/Mr1jRbGH4Csnhi8f3wKVl7x8mO4Au7Ir9D3Oyv1VYMFJw== -mimos@4.x.x: - version "4.0.2" - resolved "https://registry.npmjs.org/mimos/-/mimos-4.0.2.tgz" - integrity sha512-5XBsDqBqzSN88XPPH/TFpOalWOjHJM5Z2d3AMx/30iq+qXvYKd/8MPhqBwZDOLtoaIWInR3nLzMQcxfGK9djXA== - dependencies: - hoek "6.x.x" - mime-db "1.x.x" - minimalistic-assert@^1.0.0: version "1.0.1" resolved "https://registry.npmjs.org/minimalistic-assert/-/minimalistic-assert-1.0.1.tgz" @@ -2302,14 +2070,6 @@ natives@^1.1.0: resolved "https://registry.npmjs.org/natives/-/natives-1.1.0.tgz" integrity sha1-6f+EFBimsux6SV6TmYT3jxY+bjE= -nigel@3.x.x: - version "3.0.4" - resolved "https://registry.yarnpkg.com/nigel/-/nigel-3.0.4.tgz#edcd82f2e9387fe34ba21e3127ae4891547c7945" - integrity sha512-3SZCCS/duVDGxFpTROHEieC+itDo4UqL9JNUyQJv3rljudQbK6aqus5B4470OxhESPJLN93Qqxg16rH7DUjbfQ== - dependencies: - hoek "6.x.x" - vise "3.x.x" - node-addon-api@^1.6.0: version "1.6.2" resolved "https://registry.npmjs.org/node-addon-api/-/node-addon-api-1.6.2.tgz" @@ -2541,17 +2301,6 @@ performance-now@^2.1.0: resolved "https://registry.npmjs.org/performance-now/-/performance-now-2.1.0.tgz" integrity sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns= -pez@4.x.x: - version "4.0.5" - resolved "https://registry.yarnpkg.com/pez/-/pez-4.0.5.tgz#a975c49deff330d298d82851b39f81c2710556df" - integrity sha512-HvL8uiFIlkXbx/qw4B8jKDCWzo7Pnnd65Uvanf9OOCtb20MRcb9gtTVBf9NCnhETif1/nzbDHIjAWC/sUp7LIQ== - dependencies: - b64 "4.x.x" - boom "7.x.x" - content "4.x.x" - hoek "6.x.x" - nigel "3.x.x" - picocolors@^1.0.1: version "1.1.0" resolved "https://registry.yarnpkg.com/picocolors/-/picocolors-1.1.0.tgz#5358b76a78cde483ba5cef6a9dc9671440b27d59" @@ -2574,14 +2323,6 @@ pino@^5.15.0: quick-format-unescaped "^3.0.3" sonic-boom "^0.7.5" -podium@3.x.x: - version "3.1.5" - resolved "https://registry.npmjs.org/podium/-/podium-3.1.5.tgz" - integrity sha512-+fAPmAj3d5fWKx5oSjQKeBIcl46/qZnGLhzyi/dJ/HzNiOpuxyX/Y4091LiVxZQ4ALdf/LCS7siV6ai5nNLlOg== - dependencies: - hoek "6.x.x" - joi "14.x.x" - postcss@^8.4.43: version "8.4.45" resolved "https://registry.yarnpkg.com/postcss/-/postcss-8.4.45.tgz#538d13d89a16ef71edbf75d895284ae06b79e603" @@ -2626,11 +2367,6 @@ psl@^1.1.24: resolved "https://registry.npmjs.org/psl/-/psl-1.1.31.tgz" integrity sha512-/6pt4+C+T+wZUieKR620OpzN/LlnNKuWjy1iFLQ/UG35JqHlR/89MP1d96dUfkf6Dne3TuLQzOYEYshJ+Hx8mw== -punycode@2.x.x: - version "2.3.1" - resolved "https://registry.yarnpkg.com/punycode/-/punycode-2.3.1.tgz#027422e2faec0b25e1549c3e1bd8309b9133b6e5" - integrity sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg== - punycode@^1.4.1: version "1.4.1" resolved "https://registry.npmjs.org/punycode/-/punycode-1.4.1.tgz" @@ -2825,11 +2561,6 @@ request@^2.87.0: tunnel-agent "^0.6.0" uuid "^3.3.2" -require-at@^1.0.6: - version "1.0.6" - resolved "https://registry.npmjs.org/require-at/-/require-at-1.0.6.tgz" - integrity sha512-7i1auJbMUrXEAZCOQ0VNJgmcT2VOKPRl2YGJwgpHpC9CE91Mv4/4UYIUm4chGJaI381ZDq1JUicFii64Hapd8g== - requires-port@^1.0.0: version "1.0.0" resolved "https://registry.npmjs.org/requires-port/-/requires-port-1.0.0.tgz" @@ -2882,11 +2613,6 @@ rsa-compat@^2.0.8: dependencies: keypairs "^1.2.14" -run-verify@^1.2.2: - version "1.2.6" - resolved "https://registry.npmjs.org/run-verify/-/run-verify-1.2.6.tgz" - integrity sha512-q3NhhrLdnxsdlBvICE6eZKs2aB6FSTZLo3xfAkD99s4wpc67Mmp8/G7Jn79rTX3IpUAgGwhlDF2V3hjuQmh7KA== - safe-buffer@^5.0.1, safe-buffer@~5.1.0, safe-buffer@~5.1.1: version "5.1.1" resolved "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.1.tgz" @@ -2939,14 +2665,6 @@ shebang-regex@^3.0.0: resolved "https://registry.yarnpkg.com/shebang-regex/-/shebang-regex-3.0.0.tgz#ae16f1644d873ecad843b0307b143362d4c42172" integrity sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A== -shot@4.x.x: - version "4.0.7" - resolved "https://registry.npmjs.org/shot/-/shot-4.0.7.tgz" - integrity sha512-RKaKAGKxJ11EjJl0cf2fYVSsd4KB5Cncb9J0v7w+0iIaXpxNqFWTYNDNhBX7f0XSyDrjOH9a4OWZ9Gp/ZML+ew== - dependencies: - hoek "6.x.x" - joi "14.x.x" - siginfo@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/siginfo/-/siginfo-2.0.0.tgz#32e76c70b79724e3bb567cb9d543eb858ccfaf30" @@ -2969,14 +2687,6 @@ sntp@1.x.x: dependencies: hoek "2.x.x" -somever@2.x.x: - version "2.0.0" - resolved "https://registry.npmjs.org/somever/-/somever-2.0.0.tgz" - integrity sha512-9JaIPP+HxwYGqCDqqK3tRaTqdtQHoK6Qy3IrXhIt2q5x8fs8RcfU7BMWlFTCOgFazK8p88zIv1tHQXvAwtXMyw== - dependencies: - bounce "1.x.x" - hoek "6.x.x" - sonic-boom@^0.7.5: version "0.7.6" resolved "https://registry.npmjs.org/sonic-boom/-/sonic-boom-0.7.6.tgz" @@ -3042,19 +2752,6 @@ stackback@0.0.2: resolved "https://registry.yarnpkg.com/stackback/-/stackback-0.0.2.tgz#1ac8a0d9483848d1695e418b6d031a3c3ce68e3b" integrity sha512-1XMJE5fQo1jGH6Y/7ebnwPOBEkIEnT4QF32d5R1+VXdXveM0IBMJt8zfaxX1P3QhVwrYe+576+jkANtSS2mBbw== -statehood@6.x.x: - version "6.0.9" - resolved "https://registry.npmjs.org/statehood/-/statehood-6.0.9.tgz" - integrity sha512-jbFg1+MYEqfC7ABAoWZoeF4cQUtp3LUvMDUGExL76cMmleBHG7I6xlZFsE8hRi7nEySIvutHmVlLmBe9+2R5LQ== - dependencies: - boom "7.x.x" - bounce "1.x.x" - bourne "1.x.x" - cryptiles "4.x.x" - hoek "6.x.x" - iron "5.x.x" - joi "14.x.x" - std-env@^3.7.0: version "3.7.0" resolved "https://registry.yarnpkg.com/std-env/-/std-env-3.7.0.tgz#c9f7386ced6ecf13360b6c6c55b8aaa4ef7481d2" @@ -3121,35 +2818,11 @@ strip-json-comments@~1.0.1: resolved "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-1.0.4.tgz" integrity sha1-HhX7ysl9Pumb8tc7TGVrCCu6+5E= -subtext@6.x.x: - version "6.0.12" - resolved "https://registry.npmjs.org/subtext/-/subtext-6.0.12.tgz" - integrity sha512-yT1wCDWVgqvL9BIkWzWqgj5spUSYo/Enu09iUV8t2ZvHcr2tKGTGg2kc9tUpVEsdhp1ihsZeTAiDqh0TQciTPQ== - dependencies: - boom "7.x.x" - bourne "1.x.x" - content "4.x.x" - hoek "6.x.x" - pez "4.x.x" - wreck "14.x.x" - supports-color@^2.0.0: version "2.0.0" resolved "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz" integrity sha1-U10EXOa2Nj+kARcIRimZXp3zJMc= -supports-color@^7.1.0: - version "7.2.0" - resolved "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz" - integrity sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw== - dependencies: - has-flag "^4.0.0" - -teamwork@3.x.x: - version "3.0.2" - resolved "https://registry.npmjs.org/teamwork/-/teamwork-3.0.2.tgz" - integrity sha512-tpG01+9Qws/oGhMBiZN3BnB32gn5QeKY84AmLxxaCJw4mNeRzhEZ6jEj/vBhKerHD7Hgq9/vOZ58pyryYSn9gA== - text-table@~0.2.0: version "0.2.0" resolved "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz" @@ -3203,13 +2876,6 @@ tinyspy@^3.0.0: resolved "https://registry.yarnpkg.com/tinyspy/-/tinyspy-3.0.2.tgz#86dd3cf3d737b15adcf17d7887c84a75201df20a" integrity sha512-n1cw8k1k0x4pgA2+9XrOkFydTerNcJ1zWCO5Nn9scWHTD+5tp8dghT2x1uduQePZTZgd3Tupf+x9BxJjeJi77Q== -topo@3.x.x: - version "3.0.3" - resolved "https://registry.npmjs.org/topo/-/topo-3.0.3.tgz" - integrity sha512-IgpPtvD4kjrJ7CRA3ov2FhWQADwv+Tdqbsf1ZnPUSAtCJ9e1Z44MmoSGDXGk4IppoZA7jd/QRkNddlLJWlUZsQ== - dependencies: - hoek "6.x.x" - tough-cookie@~2.3.0: version "2.3.2" resolved "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.3.2.tgz" @@ -3225,11 +2891,6 @@ tough-cookie@~2.4.3: psl "^1.1.24" punycode "^1.4.1" -tslib@^2.1.0: - version "2.7.0" - resolved "https://registry.npmjs.org/tslib/-/tslib-2.7.0.tgz" - integrity sha512-gLXCKdN1/j47AiHiOkJN69hJmcbGTHI0ImLmbYLHykhgeN0jVGola9yVjFgzCUklsZQMW55o+dW7IXv3RCXDzA== - tunnel-agent@^0.6.0: version "0.6.0" resolved "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz" @@ -3351,13 +3012,6 @@ vinyl@^0.5.0: clone-stats "^0.0.1" replace-ext "0.0.1" -vise@3.x.x: - version "3.0.2" - resolved "https://registry.yarnpkg.com/vise/-/vise-3.0.2.tgz#9a8b7450f783aa776faa327fe47d7bfddb227266" - integrity sha512-X52VtdRQbSBXdjcazRiY3eRgV3vTQ0B+7Wh8uC9cVv7lKfML5m9+9NHlbcgCY0R9EAqD1v/v7o9mhGh2A3ANFg== - dependencies: - hoek "6.x.x" - vite-node@2.0.5: version "2.0.5" resolved "https://registry.yarnpkg.com/vite-node/-/vite-node-2.0.5.tgz#36d909188fc6e3aba3da5fc095b3637d0d18e27b" @@ -3449,15 +3103,6 @@ wrappy@1: resolved "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz" integrity sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8= -wreck@14.x.x: - version "14.2.0" - resolved "https://registry.yarnpkg.com/wreck/-/wreck-14.2.0.tgz#0064a5b930fc675f57830c1fd28342da1a70b0fc" - integrity sha512-NFFft3SMgqrJbXEVfYifh+QDWFxni+98/I7ut7rLbz3F0XOypluHsdo3mdEYssGSirMobM3fGlqhyikbWKDn2Q== - dependencies: - boom "7.x.x" - bourne "1.x.x" - hoek "6.x.x" - xml-escape@~1.0.0: version "1.0.0" resolved "https://registry.npmjs.org/xml-escape/-/xml-escape-1.0.0.tgz"