From edb91e4ca257c9487bd03f6b3ce5552916e3bcc8 Mon Sep 17 00:00:00 2001 From: Monika Khviasko Date: Fri, 8 Nov 2024 16:44:05 +0100 Subject: [PATCH] feat: node 18 upgrade --- package-lock.json | 327 ++++++++++++++++++++++++++++++++++++++----- package.json | 4 +- server/lib/logger.js | 16 +-- 3 files changed, 301 insertions(+), 46 deletions(-) diff --git a/package-lock.json b/package-lock.json index 9c1991bc..3465ccd9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -15,7 +15,7 @@ "auth0-extension-tools": "1.5.2", "auth0-extension-ui": "^1.2.2", "auth0-js": "^9.22.0", - "axios": "^0.21.4", + "axios": "^1.7.4", "bluebird": "^3.7.2", "body-parser": "^1.20.2", "codemirror": "^5.19.0", @@ -60,7 +60,7 @@ "superagent": "^8.0.9", "uuid": "9.0.0", "webtask-tools": "^3.4.1", - "winston": "^1.0.0" + "winston": "^3.10.0" }, "devDependencies": { "@babel/code-frame": "^7.25.7", @@ -2687,6 +2687,24 @@ "node": ">=4" } }, + "node_modules/@colors/colors": { + "version": "1.6.0", + "resolved": "https://a0us.jfrog.io/artifactory/api/npm/npm/@colors/colors/-/colors-1.6.0.tgz", + "integrity": "sha512-Ir+AOibqzrIsL6ajt3Rz3LskB7OiMVHqltZmspbW/TJuTVuyOMirVqAkjfY6JISiLHgyNqicAC8AyHHGzNd/dA==", + "engines": { + "node": ">=0.1.90" + } + }, + "node_modules/@dabh/diagnostics": { + "version": "2.0.3", + "resolved": "https://a0us.jfrog.io/artifactory/api/npm/npm/@dabh/diagnostics/-/diagnostics-2.0.3.tgz", + "integrity": "sha512-hrlQOIi7hAfzsMqlGSFyVucrx38O+j6wiGOf//H2ecvIEqYN4ADBSS2iLMh5UFyDunCNniUIPk/q3riFv45xRA==", + "dependencies": { + "colorspace": "1.1.x", + "enabled": "2.0.x", + "kuler": "^2.0.0" + } + }, "node_modules/@eslint-community/eslint-utils": { "version": "4.4.0", "resolved": "https://a0us.jfrog.io/artifactory/api/npm/npm/@eslint-community/eslint-utils/-/eslint-utils-4.4.0.tgz", @@ -3579,6 +3597,11 @@ "@types/send": "*" } }, + "node_modules/@types/triple-beam": { + "version": "1.3.5", + "resolved": "https://a0us.jfrog.io/artifactory/api/npm/npm/@types/triple-beam/-/triple-beam-1.3.5.tgz", + "integrity": "sha512-6WaYesThRMCl19iryMYP7/x2OVgCtbIVflDGFpWnb9irXI3UjYE4AzmYuiUKY1AJstGijoY+MgUszMgRxIYTYw==" + }, "node_modules/@types/xml2js": { "version": "0.4.3", "resolved": "https://a0us.jfrog.io/a0us/api/npm/npm/@types/xml2js/-/xml2js-0.4.3.tgz", @@ -3905,6 +3928,17 @@ "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz", "integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==" }, + "node_modules/abort-controller": { + "version": "3.0.0", + "resolved": "https://a0us.jfrog.io/artifactory/api/npm/npm/abort-controller/-/abort-controller-3.0.0.tgz", + "integrity": "sha512-h8lQ8tacZYnR3vNQTgibj+tODHI5/+l06Au2Pcriv/Gmet0eaj4TwWH41sO9wnHDiQsEj19q0drzdWdeAHtweg==", + "dependencies": { + "event-target-shim": "^5.0.0" + }, + "engines": { + "node": ">=6.5" + } + }, "node_modules/accepts": { "version": "1.3.8", "resolved": "https://a0us.jfrog.io/artifactory/api/npm/npm/accepts/-/accepts-1.3.8.tgz", @@ -4910,6 +4944,14 @@ "integrity": "sha512-nSVgobk4rv61R9PUSDtYt7mPVB2olxNR5RWJcAsH676/ef11bUZwvu7+RGYrYauVdDPcO519v68wRhXQtxsV9w==", "license": "MIT" }, + "node_modules/auth0-extension-express-tools/node_modules/axios": { + "version": "0.21.4", + "resolved": "https://a0us.jfrog.io/artifactory/api/npm/npm/axios/-/axios-0.21.4.tgz", + "integrity": "sha512-ut5vewkiu8jjGBdqpM44XxjuCjq9LAKeHVmoVfHVzy8eHgxxq8SbAVQNovDA8mVi05kP0Ea/n/UzcSHcTJQfNg==", + "dependencies": { + "follow-redirects": "^1.14.0" + } + }, "node_modules/auth0-extension-express-tools/node_modules/debug": { "version": "4.3.7", "resolved": "https://a0us.jfrog.io/artifactory/api/npm/npm/debug/-/debug-4.3.7.tgz", @@ -7236,11 +7278,26 @@ } }, "node_modules/axios": { - "version": "0.21.4", - "resolved": "https://a0us.jfrog.io/artifactory/api/npm/npm/axios/-/axios-0.21.4.tgz", - "integrity": "sha512-ut5vewkiu8jjGBdqpM44XxjuCjq9LAKeHVmoVfHVzy8eHgxxq8SbAVQNovDA8mVi05kP0Ea/n/UzcSHcTJQfNg==", + "version": "1.7.7", + "resolved": "https://a0us.jfrog.io/artifactory/api/npm/npm/axios/-/axios-1.7.7.tgz", + "integrity": "sha512-S4kL7XrjgBmvdGut0sN3yJxqYzrDOnivkBiN0OFs6hLiUam3UPvswUo0kqGyhqUZGEOytHyumEdXsAkgCOUf3Q==", "dependencies": { - "follow-redirects": "^1.14.0" + "follow-redirects": "^1.15.6", + "form-data": "^4.0.0", + "proxy-from-env": "^1.1.0" + } + }, + "node_modules/axios/node_modules/form-data": { + "version": "4.0.1", + "resolved": "https://a0us.jfrog.io/artifactory/api/npm/npm/form-data/-/form-data-4.0.1.tgz", + "integrity": "sha512-tzN8e4TX8+kkxGPK8D5u0FNmjPUjw3lwC9lSLxxoB/+GtsJG91CO8bSWy73APlgAZzZbXEYZJuxjkHH2w+Ezhw==", + "dependencies": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.8", + "mime-types": "^2.1.12" + }, + "engines": { + "node": ">= 6" } }, "node_modules/axobject-query": { @@ -9085,6 +9142,33 @@ "node": ">=0.1.90" } }, + "node_modules/colorspace": { + "version": "1.1.4", + "resolved": "https://a0us.jfrog.io/artifactory/api/npm/npm/colorspace/-/colorspace-1.1.4.tgz", + "integrity": "sha512-BgvKJiuVu1igBUF2kEjRCZXol6wiiGbY5ipL/oVPwm0BL9sIpMIzM8IK7vwuxIIzOXMV3Ey5w+vxhm0rR/TN8w==", + "dependencies": { + "color": "^3.1.3", + "text-hex": "1.0.x" + } + }, + "node_modules/colorspace/node_modules/color": { + "version": "3.2.1", + "resolved": "https://a0us.jfrog.io/artifactory/api/npm/npm/color/-/color-3.2.1.tgz", + "integrity": "sha512-aBl7dZI9ENN6fUGC7mWpMTPNHmWUSNan9tuWN6ahh5ZLNk9baLJOnSMlrQkHcrfFgz2/RigjUVAjdx36VcemKA==", + "dependencies": { + "color-convert": "^1.9.3", + "color-string": "^1.6.0" + } + }, + "node_modules/colorspace/node_modules/color-string": { + "version": "1.9.1", + "resolved": "https://a0us.jfrog.io/artifactory/api/npm/npm/color-string/-/color-string-1.9.1.tgz", + "integrity": "sha512-shrVawQFojnZv6xM40anx4CkoDP+fZsw/ZerEMsW/pyzsRbElpsL/DBVW7q3ExxwusdNXI3lXpuhEZkzs8p5Eg==", + "dependencies": { + "color-name": "^1.0.0", + "simple-swizzle": "^0.2.2" + } + }, "node_modules/combined-stream": { "version": "1.0.8", "resolved": "https://a0us.jfrog.io/artifactory/api/npm/npm/combined-stream/-/combined-stream-1.0.8.tgz", @@ -9841,6 +9925,7 @@ "version": "1.0.3", "resolved": "https://a0us.jfrog.io/artifactory/api/npm/npm/cycle/-/cycle-1.0.3.tgz", "integrity": "sha512-TVF6svNzeQCOpjCqsy0/CSy8VgObG3wXusJ73xW2GbG5rGx7lC8zxDSURicsXI2UsGdi2L0QNRCi745/wUDvsA==", + "dev": true, "engines": { "node": ">=0.4.0" } @@ -10672,6 +10757,11 @@ "node": ">= 0.10" } }, + "node_modules/enabled": { + "version": "2.0.0", + "resolved": "https://a0us.jfrog.io/artifactory/api/npm/npm/enabled/-/enabled-2.0.0.tgz", + "integrity": "sha512-AKrN98kuwOzMIdAizXGI86UFBoo26CL21UM763y1h/GMSJ4/OHU9k2YlsmBpyScFo/wbLzWQJBMCW4+IO3/+OQ==" + }, "node_modules/encodeurl": { "version": "2.0.0", "resolved": "https://a0us.jfrog.io/artifactory/api/npm/npm/encodeurl/-/encodeurl-2.0.0.tgz", @@ -12104,6 +12194,14 @@ "through": "^2.3.8" } }, + "node_modules/event-target-shim": { + "version": "5.0.1", + "resolved": "https://a0us.jfrog.io/artifactory/api/npm/npm/event-target-shim/-/event-target-shim-5.0.1.tgz", + "integrity": "sha512-i/2XbnSz/uxRCU6+NdVJgKWDTM427+MqYbkQzD321DuCQJUqOuJKIA0IM2+W2xtYHdKOmZ4dR6fExsd4SXL+WQ==", + "engines": { + "node": ">=6" + } + }, "node_modules/eventemitter3": { "version": "4.0.7", "resolved": "https://a0us.jfrog.io/artifactory/api/npm/npm/eventemitter3/-/eventemitter3-4.0.7.tgz", @@ -12115,7 +12213,6 @@ "version": "3.3.0", "resolved": "https://a0us.jfrog.io/artifactory/api/npm/npm/events/-/events-3.3.0.tgz", "integrity": "sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==", - "dev": true, "license": "MIT", "engines": { "node": ">=0.8.x" @@ -12552,6 +12649,7 @@ "version": "0.1.8", "resolved": "https://a0us.jfrog.io/artifactory/api/npm/npm/eyes/-/eyes-0.1.8.tgz", "integrity": "sha512-GipyPsXO1anza0AOZdy69Im7hGFCNB7Y/NGjDlZGJ3GJJLtwNSb2vrzYrTYJRrRloVx7pl+bhUaTB8yiccPvFQ==", + "dev": true, "engines": { "node": "> 0.1.90" } @@ -12616,6 +12714,11 @@ "integrity": "sha1-ZSKUwUZR2yj6k70tX/KYOk8IxjY=", "deprecated": "core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js." }, + "node_modules/fecha": { + "version": "4.2.3", + "resolved": "https://a0us.jfrog.io/artifactory/api/npm/npm/fecha/-/fecha-4.2.3.tgz", + "integrity": "sha512-OP2IUU6HeYKJi3i0z4A19kHMQoLVs4Hc+DPqqxI2h/DPZHTm/vjsfC6P0b4jCMy14XizLBqvndQ+UilD7707Jw==" + }, "node_modules/figgy-pudding": { "version": "3.5.2", "resolved": "https://a0us.jfrog.io/artifactory/api/npm/npm/figgy-pudding/-/figgy-pudding-3.5.2.tgz", @@ -13032,6 +13135,11 @@ "readable-stream": "^2.3.6" } }, + "node_modules/fn.name": { + "version": "1.1.0", + "resolved": "https://a0us.jfrog.io/artifactory/api/npm/npm/fn.name/-/fn.name-1.1.0.tgz", + "integrity": "sha512-GRnmB5gPyJpAhTQdSZTSp9uaPSvl09KoYcMQtsB9rQoOmzs9dH6ffeccH+Z+cv6P68Hu5bC6JjRh4Ah/mHSNRw==" + }, "node_modules/follow-redirects": { "version": "1.15.9", "resolved": "https://a0us.jfrog.io/artifactory/api/npm/npm/follow-redirects/-/follow-redirects-1.15.9.tgz", @@ -14442,7 +14550,6 @@ "version": "1.2.1", "resolved": "https://a0us.jfrog.io/artifactory/api/npm/npm/ieee754/-/ieee754-1.2.1.tgz", "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==", - "dev": true, "funding": [ { "type": "github", @@ -16308,6 +16415,11 @@ "node": ">= 0.8" } }, + "node_modules/kuler": { + "version": "2.0.0", + "resolved": "https://a0us.jfrog.io/artifactory/api/npm/npm/kuler/-/kuler-2.0.0.tgz", + "integrity": "sha512-Xq9nH7KlWZmXAtodXDDRE7vs6DU1gTU8zYDHDiWLSip45Egwq3plLHzPn27NgvzL2r1LMPC1vdqh98sQxtqj4A==" + }, "node_modules/language-subtag-registry": { "version": "0.3.23", "resolved": "https://a0us.jfrog.io/artifactory/api/npm/npm/language-subtag-registry/-/language-subtag-registry-0.3.23.tgz", @@ -16691,6 +16803,22 @@ "node": ">=0.10.0" } }, + "node_modules/logform": { + "version": "2.6.1", + "resolved": "https://a0us.jfrog.io/artifactory/api/npm/npm/logform/-/logform-2.6.1.tgz", + "integrity": "sha512-CdaO738xRapbKIMVn2m4F6KTj4j7ooJ8POVnebSgKo3KBz5axNXRAL7ZdRjIV6NOr2Uf4vjtRkxrFETOioCqSA==", + "dependencies": { + "@colors/colors": "1.6.0", + "@types/triple-beam": "^1.3.2", + "fecha": "^4.2.0", + "ms": "^2.1.1", + "safe-stable-stringify": "^2.3.1", + "triple-beam": "^1.3.0" + }, + "engines": { + "node": ">= 12.0.0" + } + }, "node_modules/loglevel": { "version": "1.9.2", "resolved": "https://a0us.jfrog.io/artifactory/api/npm/npm/loglevel/-/loglevel-1.9.2.tgz", @@ -20290,6 +20418,14 @@ "wrappy": "1" } }, + "node_modules/one-time": { + "version": "1.0.0", + "resolved": "https://a0us.jfrog.io/artifactory/api/npm/npm/one-time/-/one-time-1.0.0.tgz", + "integrity": "sha512-5DXOiRKwuSEcQ/l0kGCF6Q3jcADFv5tSmRaJck/OqkVFcOzutB134KRSfF0xDrL39MNnqxbHBbUUcjZIhTgb2g==", + "dependencies": { + "fn.name": "1.x.x" + } + }, "node_modules/onetime": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/onetime/-/onetime-2.0.1.tgz", @@ -21098,14 +21234,6 @@ "node": ">=4" } }, - "node_modules/pkginfo": { - "version": "0.3.1", - "resolved": "https://a0us.jfrog.io/artifactory/api/npm/npm/pkginfo/-/pkginfo-0.3.1.tgz", - "integrity": "sha512-yO5feByMzAp96LtP58wvPKSbaKAi/1C4kV9XpTctr6EepnP6F33RBNOiVrdz9BrPA98U2BMFsTNHo44TWcbQ2A==", - "engines": { - "node": ">= 0.4.0" - } - }, "node_modules/pn": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/pn/-/pn-1.1.0.tgz", @@ -24264,6 +24392,14 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/safe-stable-stringify": { + "version": "2.5.0", + "resolved": "https://a0us.jfrog.io/artifactory/api/npm/npm/safe-stable-stringify/-/safe-stable-stringify-2.5.0.tgz", + "integrity": "sha512-b3rppTKm9T+PsVCBEOUR46GWI7fdOs00VKZ1+9c1EWDaDMvjQc6tUwuFyIprgGgTcWoVHSKrU8H31ZHA2e0RHA==", + "engines": { + "node": ">=10" + } + }, "node_modules/safer-buffer": { "version": "2.1.2", "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", @@ -24668,6 +24804,19 @@ "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.2.tgz", "integrity": "sha1-tf3AjxKH6hF4Yo5BXiUTK3NkbG0=" }, + "node_modules/simple-swizzle": { + "version": "0.2.2", + "resolved": "https://a0us.jfrog.io/artifactory/api/npm/npm/simple-swizzle/-/simple-swizzle-0.2.2.tgz", + "integrity": "sha512-JA//kQgZtbuY83m+xT+tXJkmJncGMTFT+C+g2h2R9uxkYIrE2yy9sgmcLhCnw57/WSD+Eh3J97FPEDFnbXnDUg==", + "dependencies": { + "is-arrayish": "^0.3.1" + } + }, + "node_modules/simple-swizzle/node_modules/is-arrayish": { + "version": "0.3.2", + "resolved": "https://a0us.jfrog.io/artifactory/api/npm/npm/is-arrayish/-/is-arrayish-0.3.2.tgz", + "integrity": "sha512-eVRqCvVlZbuw3GrM63ovNSNAeA1K16kaR/LRY/92w0zxQ5/1YzwblUX652i4Xs9RwAGjW9d9y6X88t8OaAJfWQ==" + }, "node_modules/smart-buffer": { "version": "4.2.0", "resolved": "https://a0us.jfrog.io/artifactory/api/npm/npm/smart-buffer/-/smart-buffer-4.2.0.tgz", @@ -27318,6 +27467,11 @@ "node": ">=0.4.0" } }, + "node_modules/text-hex": { + "version": "1.0.0", + "resolved": "https://a0us.jfrog.io/artifactory/api/npm/npm/text-hex/-/text-hex-1.0.0.tgz", + "integrity": "sha512-uuVGNWzgJ4yhRaNSiubPY7OjISw4sw4E5Uv0wbjp+OzcbmVU/rsT8ujgcXJhn9ypzsgr5vlzpPqP+MBBKcGvbg==" + }, "node_modules/text-table": { "version": "0.2.0", "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz", @@ -27585,6 +27739,14 @@ "node": ">=4" } }, + "node_modules/triple-beam": { + "version": "1.4.1", + "resolved": "https://a0us.jfrog.io/artifactory/api/npm/npm/triple-beam/-/triple-beam-1.4.1.tgz", + "integrity": "sha512-aZbgViZrg1QNcG+LULa7nhZpJTZSLm/mXnHXnbAbjmN5aSa0y7V+wvv6+4WaBtpISJzThKy+PIPxc1Nq1EJ9mg==", + "engines": { + "node": ">= 14.0.0" + } + }, "node_modules/tryer": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/tryer/-/tryer-1.0.1.tgz", @@ -29663,33 +29825,126 @@ } }, "node_modules/winston": { - "version": "1.0.0", - "resolved": "https://a0us.jfrog.io/artifactory/api/npm/npm/winston/-/winston-1.0.0.tgz", - "integrity": "sha512-LAzO0CWQnvqRQKk4gW7UmqyYrmmpKySt6nG1/24OeIm5gxaI/J12aRD9gYYxb0j1ZCCCkC4VcHD62OQ8kkUo2w==", + "version": "3.16.0", + "resolved": "https://a0us.jfrog.io/artifactory/api/npm/npm/winston/-/winston-3.16.0.tgz", + "integrity": "sha512-xz7+cyGN5M+4CmmD4Npq1/4T+UZaz7HaeTlAruFUTjk79CNMq+P6H30vlE4z0qfqJ01VHYQwd7OZo03nYm/+lg==", "dependencies": { - "async": "0.9.x", - "colors": "1.0.x", - "cycle": "1.0.x", - "eyes": "0.1.x", - "isstream": "0.1.x", - "pkginfo": "0.3.x", - "stack-trace": "0.0.x" + "@colors/colors": "^1.6.0", + "@dabh/diagnostics": "^2.0.2", + "async": "^3.2.3", + "is-stream": "^2.0.0", + "logform": "^2.6.0", + "one-time": "^1.0.0", + "readable-stream": "^3.4.0", + "safe-stable-stringify": "^2.3.1", + "stack-trace": "0.0.x", + "triple-beam": "^1.3.0", + "winston-transport": "^4.7.0" }, "engines": { - "node": ">= 0.8.0" + "node": ">= 12.0.0" + } + }, + "node_modules/winston-transport": { + "version": "4.8.0", + "resolved": "https://a0us.jfrog.io/artifactory/api/npm/npm/winston-transport/-/winston-transport-4.8.0.tgz", + "integrity": "sha512-qxSTKswC6llEMZKgCQdaWgDuMJQnhuvF5f2Nk3SNXc4byfQ+voo2mX1Px9dkNOuR8p0KAjfPG29PuYUSIb+vSA==", + "dependencies": { + "logform": "^2.6.1", + "readable-stream": "^4.5.2", + "triple-beam": "^1.3.0" + }, + "engines": { + "node": ">= 12.0.0" } }, - "node_modules/winston/node_modules/async": { - "version": "0.9.2", - "resolved": "https://a0us.jfrog.io/artifactory/api/npm/npm/async/-/async-0.9.2.tgz", - "integrity": "sha512-l6ToIJIotphWahxxHyzK9bnLR6kM4jJIIgLShZeqLY7iboHoGkdgFl7W2/Ivi4SkMJYGKqW8vSuk0uKUj6qsSw==" + "node_modules/winston-transport/node_modules/buffer": { + "version": "6.0.3", + "resolved": "https://a0us.jfrog.io/artifactory/api/npm/npm/buffer/-/buffer-6.0.3.tgz", + "integrity": "sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "dependencies": { + "base64-js": "^1.3.1", + "ieee754": "^1.2.1" + } }, - "node_modules/winston/node_modules/colors": { - "version": "1.0.3", - "resolved": "https://a0us.jfrog.io/artifactory/api/npm/npm/colors/-/colors-1.0.3.tgz", - "integrity": "sha512-pFGrxThWcWQ2MsAz6RtgeWe4NK2kUE1WfsrvvlctdII745EW9I0yflqhe7++M5LEc7bV2c/9/5zc8sFcpL0Drw==", + "node_modules/winston-transport/node_modules/readable-stream": { + "version": "4.5.2", + "resolved": "https://a0us.jfrog.io/artifactory/api/npm/npm/readable-stream/-/readable-stream-4.5.2.tgz", + "integrity": "sha512-yjavECdqeZ3GLXNgRXgeQEdz9fvDDkNKyHnbHRFtOr7/LcfgBcmct7t/ET+HaCTqfh06OzoAxrkN/IfjJBVe+g==", + "dependencies": { + "abort-controller": "^3.0.0", + "buffer": "^6.0.3", + "events": "^3.3.0", + "process": "^0.11.10", + "string_decoder": "^1.3.0" + }, "engines": { - "node": ">=0.1.90" + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + } + }, + "node_modules/winston-transport/node_modules/safe-buffer": { + "version": "5.2.1", + "resolved": "https://a0us.jfrog.io/artifactory/api/npm/npm/safe-buffer/-/safe-buffer-5.2.1.tgz", + "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] + }, + "node_modules/winston-transport/node_modules/string_decoder": { + "version": "1.3.0", + "resolved": "https://a0us.jfrog.io/artifactory/api/npm/npm/string_decoder/-/string_decoder-1.3.0.tgz", + "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", + "dependencies": { + "safe-buffer": "~5.2.0" + } + }, + "node_modules/winston/node_modules/is-stream": { + "version": "2.0.1", + "resolved": "https://a0us.jfrog.io/artifactory/api/npm/npm/is-stream/-/is-stream-2.0.1.tgz", + "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==", + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/winston/node_modules/readable-stream": { + "version": "3.6.2", + "resolved": "https://a0us.jfrog.io/artifactory/api/npm/npm/readable-stream/-/readable-stream-3.6.2.tgz", + "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", + "dependencies": { + "inherits": "^2.0.3", + "string_decoder": "^1.1.1", + "util-deprecate": "^1.0.1" + }, + "engines": { + "node": ">= 6" } }, "node_modules/with": { diff --git a/package.json b/package.json index ec0b434a..c7441ba6 100644 --- a/package.json +++ b/package.json @@ -135,7 +135,7 @@ "auth0-extension-tools": "1.5.2", "auth0-extension-ui": "^1.2.2", "auth0-js": "^9.22.0", - "axios": "^0.21.4", + "axios": "^1.7.4", "bluebird": "^3.7.2", "body-parser": "^1.20.2", "codemirror": "^5.19.0", @@ -180,7 +180,7 @@ "superagent": "^8.0.9", "uuid": "9.0.0", "webtask-tools": "^3.4.1", - "winston": "^1.0.0" + "winston": "^3.10.0" }, "devDependencies": { "@babel/code-frame": "^7.25.7", diff --git a/server/lib/logger.js b/server/lib/logger.js index 47406fb2..56978f33 100644 --- a/server/lib/logger.js +++ b/server/lib/logger.js @@ -1,21 +1,21 @@ -const winston = require('winston'); +const winston = require("winston"); -const logger = new winston.Logger({ +const logger = winston.createLogger({ transports: [ new winston.transports.Console({ timestamp: true, - level: 'debug', + level: "debug", handleExceptions: true, json: false, - colorize: true - }) + colorize: true, + }), ], - exitOnError: false + exitOnError: false, }); module.exports = logger; module.exports.stream = { write: (message) => { - logger.info(message.replace(/\n$/, '')); - } + logger.log({ level: "info", message: message.replace(/\n$/, "") }); + }, };