diff --git a/package-lock.json b/package-lock.json index 5116b71..a4d8161 100644 --- a/package-lock.json +++ b/package-lock.json @@ -7,13 +7,11 @@ "": { "name": "@foxxmd/logging", "version": "0.0.2", - "hasInstallScript": true, "license": "MIT", "dependencies": { - "patch-package": "^8.0.0", "pino": "^8.19.0", - "pino-pretty": "^10.3.1", - "pino-roll": "^1.0.0-rc.1", + "pino-pretty": "github:foxxmd/pino-pretty#additionalFunctionality", + "pino-roll": "github:foxxmd/pino-roll#fileAsFunc", "pony-cause": "^2.1.10" }, "devDependencies": { @@ -659,9 +657,9 @@ "dev": true }, "node_modules/@types/node": { - "version": "18.19.21", - "resolved": "https://registry.npmjs.org/@types/node/-/node-18.19.21.tgz", - "integrity": "sha512-2Q2NeB6BmiTFQi4DHBzncSoq/cJMLDdhPaAoJFnFCyD9a8VPZRf7a1GAwp1Edb7ROaZc5Jz/tnZyL6EsWMRaqw==", + "version": "18.19.22", + "resolved": "https://registry.npmjs.org/@types/node/-/node-18.19.22.tgz", + "integrity": "sha512-p3pDIfuMg/aXBmhkyanPshdfJuX5c5+bQjYLIikPLXAUycEogij/c50n/C+8XOA5L93cU4ZRXtn+dNQGi0IZqQ==", "dev": true, "dependencies": { "undici-types": "~5.26.4" @@ -673,11 +671,6 @@ "integrity": "sha512-o46sYob58kh4nPxv3vnqS4iDI5Lr+FBV3iT53Wd0qJW5qx4jYg+jWsgU/Ysf+PIXB0J/tvh7dhoH1UrYMynE4Q==", "dev": true }, - "node_modules/@yarnpkg/lockfile": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@yarnpkg/lockfile/-/lockfile-1.1.0.tgz", - "integrity": "sha512-GpSwvyXOcOOlV70vbnzjj4fW5xW/FdUF6nQEt1ENy7m4ZCczi1+/buVUPAqmGfqznsORNFzUMjctTIp8a9tuCQ==" - }, "node_modules/abort-controller": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/abort-controller/-/abort-controller-3.0.0.tgz", @@ -738,6 +731,7 @@ "version": "4.3.0", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, "dependencies": { "color-convert": "^2.0.1" }, @@ -782,14 +776,6 @@ "node": "*" } }, - "node_modules/at-least-node": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/at-least-node/-/at-least-node-1.0.0.tgz", - "integrity": "sha512-+q/t7Ekv1EDY2l6Gda6LLiX14rU9TV20Wa3ofeQmwPFZbOMo9DXrLbOjFaaclkXKWidIaopwAObQDqwWtGUjqg==", - "engines": { - "node": ">= 4.0.0" - } - }, "node_modules/atomic-sleep": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/atomic-sleep/-/atomic-sleep-1.0.0.tgz", @@ -801,7 +787,8 @@ "node_modules/balanced-match": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", - "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==" + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", + "dev": true }, "node_modules/base64-js": { "version": "1.5.1", @@ -844,6 +831,7 @@ "version": "3.0.2", "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", + "dev": true, "dependencies": { "fill-range": "^7.0.1" }, @@ -880,24 +868,6 @@ "ieee754": "^1.2.1" } }, - "node_modules/call-bind": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.7.tgz", - "integrity": "sha512-GHTSNSYICQ7scH7sZ+M2rFopRoLh8t2bLSW6BbgrtLsahOIB5iyAVJf9GjWK3cYTDaMj4XdBpM1cA6pIS0Kv2w==", - "dependencies": { - "es-define-property": "^1.0.0", - "es-errors": "^1.3.0", - "function-bind": "^1.1.2", - "get-intrinsic": "^1.2.4", - "set-function-length": "^1.2.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/camelcase": { "version": "6.3.0", "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz", @@ -944,6 +914,7 @@ "version": "4.1.2", "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, "dependencies": { "ansi-styles": "^4.1.0", "supports-color": "^7.1.0" @@ -959,6 +930,7 @@ "version": "7.2.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, "dependencies": { "has-flag": "^4.0.0" }, @@ -1005,20 +977,6 @@ "fsevents": "~2.3.2" } }, - "node_modules/ci-info": { - "version": "3.9.0", - "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-3.9.0.tgz", - "integrity": "sha512-NIxF55hv4nSqQswkAeiOi1r83xy8JldOFDTWiug55KBu9Jnblncd2U6ViHmYgHf01TPZS77NJBhBMKdWj9HQMQ==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/sibiraj-s" - } - ], - "engines": { - "node": ">=8" - } - }, "node_modules/cliui": { "version": "7.0.4", "resolved": "https://registry.npmjs.org/cliui/-/cliui-7.0.4.tgz", @@ -1034,6 +992,7 @@ "version": "2.0.1", "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, "dependencies": { "color-name": "~1.1.4" }, @@ -1044,7 +1003,8 @@ "node_modules/color-name": { "version": "1.1.4", "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true }, "node_modules/colorette": { "version": "2.0.20", @@ -1054,7 +1014,8 @@ "node_modules/concat-map": { "version": "0.0.1", "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==" + "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", + "dev": true }, "node_modules/create-require": { "version": "1.1.1", @@ -1066,6 +1027,7 @@ "version": "7.0.3", "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", + "dev": true, "dependencies": { "path-key": "^3.1.0", "shebang-command": "^2.0.0", @@ -1130,22 +1092,6 @@ "node": ">=6" } }, - "node_modules/define-data-property": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.4.tgz", - "integrity": "sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A==", - "dependencies": { - "es-define-property": "^1.0.0", - "es-errors": "^1.3.0", - "gopd": "^1.0.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/diff": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/diff/-/diff-5.0.0.tgz", @@ -1175,25 +1121,6 @@ "once": "^1.4.0" } }, - "node_modules/es-define-property": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.0.tgz", - "integrity": "sha512-jxayLKShrEqqzJ0eumQbVhTYQM27CfT1T35+gCgDFoL82JLsXqTJ76zv6A0YLOgEnLUMvLzsDsGIrl8NFpT2gQ==", - "dependencies": { - "get-intrinsic": "^1.2.4" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/es-errors": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz", - "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==", - "engines": { - "node": ">= 0.4" - } - }, "node_modules/esbuild": { "version": "0.19.12", "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.19.12.tgz", @@ -1275,9 +1202,9 @@ "integrity": "sha512-Knr7NOtK3HWRYGtHoJrjkaWepqT8thIVGAwt0p0aUs1zqkAzXZV4vo9fFNwyb5fcqK1GKYFYxldQdIDVKhUAfA==" }, "node_modules/fast-redact": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/fast-redact/-/fast-redact-3.3.0.tgz", - "integrity": "sha512-6T5V1QK1u4oF+ATxs1lWUmlEk6P2T9HqJG3e2DnHOdVgZy2rFJBoEnrIedcTXlkAHU/zKC+7KETJ+KGGKwxgMQ==", + "version": "3.4.0", + "resolved": "https://registry.npmjs.org/fast-redact/-/fast-redact-3.4.0.tgz", + "integrity": "sha512-2gwPvyna0zwBdxKnng1suu/dTL5s8XEy2ZqH8mwDUwJdDkV8w5kp+JV26mupdK68HmPMbm6yjW9m7/Ys/BHEHg==", "engines": { "node": ">=6" } @@ -1291,6 +1218,7 @@ "version": "7.0.1", "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", + "dev": true, "dependencies": { "to-regex-range": "^5.0.1" }, @@ -1314,14 +1242,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/find-yarn-workspace-root": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/find-yarn-workspace-root/-/find-yarn-workspace-root-2.0.0.tgz", - "integrity": "sha512-1IMnbjt4KzsQfnhnzNd8wUEgXZ44IzZaZmnLYx7D5FZlaHt2gW20Cri8Q+E/t5tIj4+epTBub+2Zxu/vNILzqQ==", - "dependencies": { - "micromatch": "^4.0.2" - } - }, "node_modules/flat": { "version": "5.0.2", "resolved": "https://registry.npmjs.org/flat/-/flat-5.0.2.tgz", @@ -1347,24 +1267,11 @@ "url": "https://github.com/sponsors/isaacs" } }, - "node_modules/fs-extra": { - "version": "9.1.0", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-9.1.0.tgz", - "integrity": "sha512-hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ==", - "dependencies": { - "at-least-node": "^1.0.0", - "graceful-fs": "^4.2.0", - "jsonfile": "^6.0.1", - "universalify": "^2.0.0" - }, - "engines": { - "node": ">=10" - } - }, "node_modules/fs.realpath": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", - "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==" + "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==", + "dev": true }, "node_modules/fsevents": { "version": "2.3.3", @@ -1380,14 +1287,6 @@ "node": "^8.16.0 || ^10.6.0 || >=11.0.0" } }, - "node_modules/function-bind": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", - "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/get-caller-file": { "version": "2.0.5", "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", @@ -1406,24 +1305,6 @@ "node": "*" } }, - "node_modules/get-intrinsic": { - "version": "1.2.4", - "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.4.tgz", - "integrity": "sha512-5uYhsJH8VJBTv7oslg4BznJYhDoRI6waYCxMmCdnTrcCrHA/fCFKoTFz2JKKE0HdDFUF7/oQuhzumXJK7paBRQ==", - "dependencies": { - "es-errors": "^1.3.0", - "function-bind": "^1.1.2", - "has-proto": "^1.0.1", - "has-symbols": "^1.0.3", - "hasown": "^2.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/get-tsconfig": { "version": "4.7.3", "resolved": "https://registry.npmjs.org/get-tsconfig/-/get-tsconfig-4.7.3.tgz", @@ -1467,74 +1348,15 @@ "node": ">= 6" } }, - "node_modules/gopd": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.0.1.tgz", - "integrity": "sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==", - "dependencies": { - "get-intrinsic": "^1.1.3" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/graceful-fs": { - "version": "4.2.11", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", - "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==" - }, "node_modules/has-flag": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, "engines": { "node": ">=8" } }, - "node_modules/has-property-descriptors": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz", - "integrity": "sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg==", - "dependencies": { - "es-define-property": "^1.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/has-proto": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.0.3.tgz", - "integrity": "sha512-SJ1amZAJUiZS+PhsVLf5tGydlaVB8EdFpaSO4gmiUKUOxk8qzn5AIy4ZeJUmh22znIdk/uMAUT2pl3FxzVUH+Q==", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/has-symbols": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz", - "integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/hasown": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.1.tgz", - "integrity": "sha512-1/th4MHjnwncwXsIW6QMzlvYL9kG5e/CpVvLRZe4XPa8TOUNbCELqmvhDmnkNsAjwaG4+I8gJJL0JBvTTLO9qA==", - "dependencies": { - "function-bind": "^1.1.2" - }, - "engines": { - "node": ">= 0.4" - } - }, "node_modules/he": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/he/-/he-1.2.0.tgz", @@ -1572,6 +1394,7 @@ "version": "1.0.6", "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", + "dev": true, "dependencies": { "once": "^1.3.0", "wrappy": "1" @@ -1580,7 +1403,8 @@ "node_modules/inherits": { "version": "2.0.4", "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", + "dev": true }, "node_modules/is-binary-path": { "version": "2.1.0", @@ -1594,20 +1418,6 @@ "node": ">=8" } }, - "node_modules/is-docker": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-2.2.1.tgz", - "integrity": "sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ==", - "bin": { - "is-docker": "cli.js" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/is-extglob": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", @@ -1642,6 +1452,7 @@ "version": "7.0.0", "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", + "dev": true, "engines": { "node": ">=0.12.0" } @@ -1667,26 +1478,11 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/is-wsl": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-2.2.0.tgz", - "integrity": "sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww==", - "dependencies": { - "is-docker": "^2.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/isarray": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-2.0.5.tgz", - "integrity": "sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw==" - }, "node_modules/isexe": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", - "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==" + "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", + "dev": true }, "node_modules/jackspeak": { "version": "2.3.6", @@ -1726,23 +1522,6 @@ "js-yaml": "bin/js-yaml.js" } }, - "node_modules/json-stable-stringify": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/json-stable-stringify/-/json-stable-stringify-1.1.1.tgz", - "integrity": "sha512-SU/971Kt5qVQfJpyDveVhQ/vya+5hvrjClFOcr8c0Fq5aODJjMwutrOfCU+eCnVD5gpx1Q3fEqkyom77zH1iIg==", - "dependencies": { - "call-bind": "^1.0.5", - "isarray": "^2.0.5", - "jsonify": "^0.0.1", - "object-keys": "^1.1.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/json5": { "version": "2.2.3", "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", @@ -1761,39 +1540,12 @@ "integrity": "sha512-AilxAyFOAcK5wA1+LeaySVBrHsGQvUFCDWXKpZjzaL0PqW+xfBOttn8GNtWKFWqneyMZj41MWF9Kl6iPWLwgOA==", "dev": true }, - "node_modules/jsonfile": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz", - "integrity": "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==", - "dependencies": { - "universalify": "^2.0.0" - }, - "optionalDependencies": { - "graceful-fs": "^4.1.6" - } - }, - "node_modules/jsonify": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/jsonify/-/jsonify-0.0.1.tgz", - "integrity": "sha512-2/Ki0GcmuqSrgFyelQq9M05y7PS0mEwuIzrf3f1fPqkVDVRvZrPZtVSMHxdgo8Aq0sxAOb/cr2aqqA3LeWHVPg==", - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/just-extend": { "version": "6.2.0", "resolved": "https://registry.npmjs.org/just-extend/-/just-extend-6.2.0.tgz", "integrity": "sha512-cYofQu2Xpom82S6qD778jBDpwvvy39s1l/hrYij2u9AMdQcGRpaBu6kY4mVhuno5kJVi1DAz4aiphA2WI1/OAw==", "dev": true }, - "node_modules/klaw-sync": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/klaw-sync/-/klaw-sync-6.0.0.tgz", - "integrity": "sha512-nIeuVSzdCCs6TDPTqI8w1Yre34sSq7AkZ4B3sfOBbI2CgVSB4Du4aLQijFU2+lhAFCwt9+42Hel6lQNIv6AntQ==", - "dependencies": { - "graceful-fs": "^4.1.11" - } - }, "node_modules/locate-path": { "version": "6.0.0", "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", @@ -1841,14 +1593,12 @@ } }, "node_modules/lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "dependencies": { - "yallist": "^4.0.0" - }, + "version": "10.2.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.2.0.tgz", + "integrity": "sha512-2bIM8x+VAf6JT4bKAljS1qUWgMsqZRPGJS6FSahIMPVvctcNhyVp7AJu7quxOW9jwkryBReKZY5tY5JYv2n/7Q==", + "dev": true, "engines": { - "node": ">=10" + "node": "14 || >=16.14" } }, "node_modules/lunr": { @@ -1875,18 +1625,6 @@ "node": ">= 12" } }, - "node_modules/micromatch": { - "version": "4.0.5", - "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz", - "integrity": "sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==", - "dependencies": { - "braces": "^3.0.2", - "picomatch": "^2.3.1" - }, - "engines": { - "node": ">=8.6" - } - }, "node_modules/minimatch": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.0.1.tgz", @@ -1994,14 +1732,6 @@ "node": ">=0.10.0" } }, - "node_modules/object-keys": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz", - "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==", - "engines": { - "node": ">= 0.4" - } - }, "node_modules/on-exit-leak-free": { "version": "2.1.2", "resolved": "https://registry.npmjs.org/on-exit-leak-free/-/on-exit-leak-free-2.1.2.tgz", @@ -2018,33 +1748,10 @@ "wrappy": "1" } }, - "node_modules/open": { - "version": "7.4.2", - "resolved": "https://registry.npmjs.org/open/-/open-7.4.2.tgz", - "integrity": "sha512-MVHddDVweXZF3awtlAS+6pgKLlm/JgxZ90+/NBurBoQctVOOB/zDdVjcyPzQ+0laDGbsWgrRkflI65sQeOgT9Q==", - "dependencies": { - "is-docker": "^2.0.0", - "is-wsl": "^2.1.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/os-tmpdir": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.2.tgz", - "integrity": "sha512-D2FR03Vir7FIu45XBY20mTb+/ZSWB00sjU9jdQXt83gDrI4Ztz5Fs7/yy74g2N5SVQY4xY1qDr4rNddwYRVX0g==", - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/p-event": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/p-event/-/p-event-6.0.0.tgz", - "integrity": "sha512-Xbfxd0CfZmHLGKXH32k1JKjQYX6Rkv0UtQdaFJ8OyNcf+c0oWCeXHc1C4CX/IESZLmcvfPa5aFIO/vCr5gqtag==", + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/p-event/-/p-event-6.0.1.tgz", + "integrity": "sha512-Q6Bekk5wpzW5qIyUP4gdMEujObYstZl6DMMOSenwBvV0BlE5LkDwkjs5yHbZmdCEq2o4RJx4tE1vwxFVf2FG1w==", "dev": true, "dependencies": { "p-timeout": "^6.1.2" @@ -2098,35 +1805,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/patch-package": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/patch-package/-/patch-package-8.0.0.tgz", - "integrity": "sha512-da8BVIhzjtgScwDJ2TtKsfT5JFWz1hYoBl9rUQ1f38MC2HwnEIkK8VN3dKMKcP7P7bvvgzNDbfNHtx3MsQb5vA==", - "dependencies": { - "@yarnpkg/lockfile": "^1.1.0", - "chalk": "^4.1.2", - "ci-info": "^3.7.0", - "cross-spawn": "^7.0.3", - "find-yarn-workspace-root": "^2.0.0", - "fs-extra": "^9.0.0", - "json-stable-stringify": "^1.0.2", - "klaw-sync": "^6.0.0", - "minimist": "^1.2.6", - "open": "^7.4.2", - "rimraf": "^2.6.3", - "semver": "^7.5.3", - "slash": "^2.0.0", - "tmp": "^0.0.33", - "yaml": "^2.2.2" - }, - "bin": { - "patch-package": "index.js" - }, - "engines": { - "node": ">=14", - "npm": ">5" - } - }, "node_modules/path-exists": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", @@ -2140,6 +1818,7 @@ "version": "1.0.1", "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", + "dev": true, "engines": { "node": ">=0.10.0" } @@ -2148,6 +1827,7 @@ "version": "3.1.1", "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", + "dev": true, "engines": { "node": ">=8" } @@ -2168,15 +1848,6 @@ "url": "https://github.com/sponsors/isaacs" } }, - "node_modules/path-scurry/node_modules/lru-cache": { - "version": "10.2.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.2.0.tgz", - "integrity": "sha512-2bIM8x+VAf6JT4bKAljS1qUWgMsqZRPGJS6FSahIMPVvctcNhyVp7AJu7quxOW9jwkryBReKZY5tY5JYv2n/7Q==", - "dev": true, - "engines": { - "node": "14 || >=16.14" - } - }, "node_modules/path-to-regexp": { "version": "6.2.1", "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-6.2.1.tgz", @@ -2196,6 +1867,7 @@ "version": "2.3.1", "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", + "dev": true, "engines": { "node": ">=8.6" }, @@ -2235,8 +1907,8 @@ }, "node_modules/pino-pretty": { "version": "10.3.1", - "resolved": "https://registry.npmjs.org/pino-pretty/-/pino-pretty-10.3.1.tgz", - "integrity": "sha512-az8JbIYeN/1iLj2t0jR9DV48/LQ3RC6hZPpapKPkb84Q+yTidMCpgWxIT3N0flnBDilyBQ1luWNpOeJptjdp/g==", + "resolved": "git+ssh://git@github.com/foxxmd/pino-pretty.git#1ee28b3b79c0131c323440494ff487db888e5c57", + "license": "MIT", "dependencies": { "colorette": "^2.0.7", "dateformat": "^4.6.3", @@ -2259,18 +1931,10 @@ }, "node_modules/pino-roll": { "version": "1.0.0-rc.1", - "resolved": "https://registry.npmjs.org/pino-roll/-/pino-roll-1.0.0-rc.1.tgz", - "integrity": "sha512-wJUXdRMlbbUQkBT8C0ePwPxJpP9Eg2FKUfBAKv2ATsS/+ujtV64l/sLtdQcI+F+aAac0/1QjJOjuVyxUTDq5zA==", - "dependencies": { - "sonic-boom": "^2.8.0" - } - }, - "node_modules/pino-roll/node_modules/sonic-boom": { - "version": "2.8.0", - "resolved": "https://registry.npmjs.org/sonic-boom/-/sonic-boom-2.8.0.tgz", - "integrity": "sha512-kuonw1YOYYNOve5iHdSahXPOK49GqwA+LZhI6Wz/l0rP57iKyXXIHaRagOBHAPmGwJC6od2Z9zgvZ5loSgMlVg==", + "resolved": "git+ssh://git@github.com/foxxmd/pino-roll.git#11a676826e83a807eac74a3328996d10bc1c720a", + "license": "MIT", "dependencies": { - "atomic-sleep": "^1.0.0" + "sonic-boom": "^3.2.0" } }, "node_modules/pino-std-serializers": { @@ -2441,53 +2105,58 @@ } }, "node_modules/rimraf": { - "version": "2.7.1", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.7.1.tgz", - "integrity": "sha512-uWjbaKIK3T1OSVptzX7Nl6PvQ3qAGtKEtVRjRuazjfL3Bx5eI409VZSqgND+4UNnmzLVdPj9FqFJNPqBZFve4w==", + "version": "5.0.5", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-5.0.5.tgz", + "integrity": "sha512-CqDakW+hMe/Bz202FPEymy68P+G50RfMQK+Qo5YUqc9SPipvbGjCGKd0RSKEelbsfQuw3g5NZDSrlZZAJurH1A==", + "dev": true, "dependencies": { - "glob": "^7.1.3" + "glob": "^10.3.7" }, "bin": { - "rimraf": "bin.js" - } - }, - "node_modules/rimraf/node_modules/brace-expansion": { - "version": "1.1.11", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", - "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", - "dependencies": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" + "rimraf": "dist/esm/bin.mjs" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" } }, "node_modules/rimraf/node_modules/glob": { - "version": "7.2.3", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", - "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "version": "10.3.10", + "resolved": "https://registry.npmjs.org/glob/-/glob-10.3.10.tgz", + "integrity": "sha512-fa46+tv1Ak0UPK1TOy/pZrIybNNt4HCv7SDzwyfiOZkvZLEbjsZkJBPtDHVshZjbecAoAGSC20MjLDG/qr679g==", + "dev": true, "dependencies": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.1.1", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" + "foreground-child": "^3.1.0", + "jackspeak": "^2.3.5", + "minimatch": "^9.0.1", + "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0", + "path-scurry": "^1.10.1" + }, + "bin": { + "glob": "dist/esm/bin.mjs" }, "engines": { - "node": "*" + "node": ">=16 || 14 >=14.17" }, "funding": { "url": "https://github.com/sponsors/isaacs" } }, "node_modules/rimraf/node_modules/minimatch": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", - "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "version": "9.0.3", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.3.tgz", + "integrity": "sha512-RHiac9mvaRw0x3AYRgDC1CxAP7HTcNrrECeA8YYJeWnpo+2Q5CegtZjaotWTWxDG3UeGA1coE05iH1mPjT/2mg==", + "dev": true, "dependencies": { - "brace-expansion": "^1.1.7" + "brace-expansion": "^2.0.1" }, "engines": { - "node": "*" + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" } }, "node_modules/safe-buffer": { @@ -2522,20 +2191,6 @@ "resolved": "https://registry.npmjs.org/secure-json-parse/-/secure-json-parse-2.7.0.tgz", "integrity": "sha512-6aU+Rwsezw7VR8/nyvKTx8QpWH9FrcYiXXlqC4z5d5XQBDRqtbfsRjnwGyqbi3gddNtWHuEk9OANUotL26qKUw==" }, - "node_modules/semver": { - "version": "7.6.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.0.tgz", - "integrity": "sha512-EnwXhrlwXMk9gKu5/flx5sv/an57AkRplG3hTK68W7FRDN+k+OWBj65M7719OkA82XLBxrcX0KSHj+X5COhOVg==", - "dependencies": { - "lru-cache": "^6.0.0" - }, - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, "node_modules/serialize-javascript": { "version": "6.0.0", "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-6.0.0.tgz", @@ -2545,26 +2200,11 @@ "randombytes": "^2.1.0" } }, - "node_modules/set-function-length": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/set-function-length/-/set-function-length-1.2.1.tgz", - "integrity": "sha512-j4t6ccc+VsKwYHso+kElc5neZpjtq9EnRICFZtWyBsLojhmeF/ZBd/elqm22WJh/BziDe/SBiOeAt0m2mfLD0g==", - "dependencies": { - "define-data-property": "^1.1.2", - "es-errors": "^1.3.0", - "function-bind": "^1.1.2", - "get-intrinsic": "^1.2.3", - "gopd": "^1.0.1", - "has-property-descriptors": "^1.0.1" - }, - "engines": { - "node": ">= 0.4" - } - }, "node_modules/shebang-command": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", + "dev": true, "dependencies": { "shebang-regex": "^3.0.0" }, @@ -2576,6 +2216,7 @@ "version": "3.0.0", "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", + "dev": true, "engines": { "node": ">=8" } @@ -2653,14 +2294,6 @@ "node": ">=8" } }, - "node_modules/slash": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/slash/-/slash-2.0.0.tgz", - "integrity": "sha512-ZYKh3Wh2z1PpEXWr0MpSBZ0V6mZHAQfYevttO11c51CaWjGTaadiKZ+wVt1PbMlDV5qhMFslpZCemhwOK7C89A==", - "engines": { - "node": ">=6" - } - }, "node_modules/sonic-boom": { "version": "3.8.0", "resolved": "https://registry.npmjs.org/sonic-boom/-/sonic-boom-3.8.0.tgz", @@ -2832,24 +2465,6 @@ "url": "https://github.com/sponsors/isaacs" } }, - "node_modules/sync-content/node_modules/rimraf": { - "version": "5.0.5", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-5.0.5.tgz", - "integrity": "sha512-CqDakW+hMe/Bz202FPEymy68P+G50RfMQK+Qo5YUqc9SPipvbGjCGKd0RSKEelbsfQuw3g5NZDSrlZZAJurH1A==", - "dev": true, - "dependencies": { - "glob": "^10.3.7" - }, - "bin": { - "rimraf": "dist/esm/bin.mjs" - }, - "engines": { - "node": ">=14" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, "node_modules/thread-stream": { "version": "2.4.1", "resolved": "https://registry.npmjs.org/thread-stream/-/thread-stream-2.4.1.tgz", @@ -2859,14 +2474,15 @@ } }, "node_modules/tmp": { - "version": "0.0.33", - "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.0.33.tgz", - "integrity": "sha512-jRCJlojKnZ3addtTOjdIqoRuPEKBvNXcGYqzO6zWZX8KfKEpnGY5jfggJQ3EjKuu8D4bJRr0y+cYJFmYbImXGw==", + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.2.1.tgz", + "integrity": "sha512-76SUhtfqR2Ijn+xllcI5P1oyannHNHByD80W1q447gU3mp9G9PSpGdWmjUOHRDPiHYacIk66W7ubDTuPF3BEtQ==", + "dev": true, "dependencies": { - "os-tmpdir": "~1.0.2" + "rimraf": "^3.0.0" }, "engines": { - "node": ">=0.6.0" + "node": ">=8.17.0" } }, "node_modules/tmp-promise": { @@ -2878,7 +2494,7 @@ "tmp": "^0.2.0" } }, - "node_modules/tmp-promise/node_modules/brace-expansion": { + "node_modules/tmp/node_modules/brace-expansion": { "version": "1.1.11", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", @@ -2888,7 +2504,7 @@ "concat-map": "0.0.1" } }, - "node_modules/tmp-promise/node_modules/glob": { + "node_modules/tmp/node_modules/glob": { "version": "7.2.3", "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", @@ -2908,7 +2524,7 @@ "url": "https://github.com/sponsors/isaacs" } }, - "node_modules/tmp-promise/node_modules/minimatch": { + "node_modules/tmp/node_modules/minimatch": { "version": "3.1.2", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", @@ -2920,7 +2536,7 @@ "node": "*" } }, - "node_modules/tmp-promise/node_modules/rimraf": { + "node_modules/tmp/node_modules/rimraf": { "version": "3.0.2", "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", @@ -2935,22 +2551,11 @@ "url": "https://github.com/sponsors/isaacs" } }, - "node_modules/tmp-promise/node_modules/tmp": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.2.1.tgz", - "integrity": "sha512-76SUhtfqR2Ijn+xllcI5P1oyannHNHByD80W1q447gU3mp9G9PSpGdWmjUOHRDPiHYacIk66W7ubDTuPF3BEtQ==", - "dev": true, - "dependencies": { - "rimraf": "^3.0.0" - }, - "engines": { - "node": ">=8.17.0" - } - }, "node_modules/to-regex-range": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", + "dev": true, "dependencies": { "is-number": "^7.0.0" }, @@ -3074,61 +2679,6 @@ "url": "https://github.com/chalk/chalk?sponsor=1" } }, - "node_modules/tshy/node_modules/glob": { - "version": "10.3.10", - "resolved": "https://registry.npmjs.org/glob/-/glob-10.3.10.tgz", - "integrity": "sha512-fa46+tv1Ak0UPK1TOy/pZrIybNNt4HCv7SDzwyfiOZkvZLEbjsZkJBPtDHVshZjbecAoAGSC20MjLDG/qr679g==", - "dev": true, - "dependencies": { - "foreground-child": "^3.1.0", - "jackspeak": "^2.3.5", - "minimatch": "^9.0.1", - "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0", - "path-scurry": "^1.10.1" - }, - "bin": { - "glob": "dist/esm/bin.mjs" - }, - "engines": { - "node": ">=16 || 14 >=14.17" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/tshy/node_modules/minimatch": { - "version": "9.0.3", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.3.tgz", - "integrity": "sha512-RHiac9mvaRw0x3AYRgDC1CxAP7HTcNrrECeA8YYJeWnpo+2Q5CegtZjaotWTWxDG3UeGA1coE05iH1mPjT/2mg==", - "dev": true, - "dependencies": { - "brace-expansion": "^2.0.1" - }, - "engines": { - "node": ">=16 || 14 >=14.17" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/tshy/node_modules/rimraf": { - "version": "5.0.5", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-5.0.5.tgz", - "integrity": "sha512-CqDakW+hMe/Bz202FPEymy68P+G50RfMQK+Qo5YUqc9SPipvbGjCGKd0RSKEelbsfQuw3g5NZDSrlZZAJurH1A==", - "dev": true, - "dependencies": { - "glob": "^10.3.7" - }, - "bin": { - "rimraf": "dist/esm/bin.mjs" - }, - "engines": { - "node": ">=14" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, "node_modules/tsx": { "version": "4.7.1", "resolved": "https://registry.npmjs.org/tsx/-/tsx-4.7.1.tgz", @@ -3242,14 +2792,6 @@ "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==", "dev": true }, - "node_modules/universalify": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.1.tgz", - "integrity": "sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==", - "engines": { - "node": ">= 10.0.0" - } - }, "node_modules/v8-compile-cache-lib": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/v8-compile-cache-lib/-/v8-compile-cache-lib-3.0.1.tgz", @@ -3278,6 +2820,7 @@ "version": "2.0.2", "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "dev": true, "dependencies": { "isexe": "^2.0.0" }, @@ -3289,9 +2832,9 @@ } }, "node_modules/with-local-tmp-dir": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/with-local-tmp-dir/-/with-local-tmp-dir-5.0.1.tgz", - "integrity": "sha512-Ds8Ssl9sfMZArPBlSkEQwxh+EVq3IG8lWxTUipe1ZxP5eNNrkRC622ukpAkhR63jCSu5mvqJ/3bEl1RakRZufw==", + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/with-local-tmp-dir/-/with-local-tmp-dir-5.1.0.tgz", + "integrity": "sha512-hjOdNpgPyO1mX880ojVlO0mCqNYghnzyn7TRUN1llHVX9N6uEBOzJteEz16v0HRmdP+AWZMPn+NtIRy9lMPUxg==", "dev": true, "dependencies": { "@dword-design/chdir": "^2.0.0", @@ -3359,15 +2902,11 @@ "node": ">=10" } }, - "node_modules/yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" - }, "node_modules/yaml": { - "version": "2.4.0", - "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.4.0.tgz", - "integrity": "sha512-j9iR8g+/t0lArF4V6NE/QCfT+CO7iLqrXAHZbJdo+LfjqP1vR8Fg5bSiaq6Q2lOD1AUEVrEVIgABvBFYojJVYQ==", + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.4.1.tgz", + "integrity": "sha512-pIXzoImaqmfOrL7teGUBt/T7ZDnyeGBWyXQBvOVhLkWLN37GXv8NMLK406UY6dS51JfcQHsmcW5cJ441bHg6Lg==", + "dev": true, "bin": { "yaml": "bin.mjs" }, diff --git a/package.json b/package.json index a9a89b1..afeb03f 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@foxxmd/logging", "type": "module", - "version": "0.0.2", + "version": "0.1.0", "repository": "https://github.com/foxxmd/logging", "description": "", "scripts": { @@ -9,7 +9,6 @@ "build": "tsc", "prepare": "tshy", "test": "mocha --reporter spec --recursive ./tests/*.test.ts", - "postinstall": "patch-package", "example": "tsx example/kitchenSink.ts" }, "keywords": [], @@ -60,10 +59,9 @@ "yaml": "^2.3.4" }, "dependencies": { - "patch-package": "^8.0.0", "pino": "^8.19.0", - "pino-pretty": "^10.3.1", - "pino-roll": "^1.0.0-rc.1", + "pino-pretty": "github:foxxmd/pino-pretty#additionalFunctionality", + "pino-roll": "github:foxxmd/pino-roll#fileAsFunc", "pony-cause": "^2.1.10" }, "overrides": { diff --git a/patches/pino-pretty+10.3.1.patch b/patches/pino-pretty+10.3.1.patch deleted file mode 100644 index e05a9b9..0000000 --- a/patches/pino-pretty+10.3.1.patch +++ /dev/null @@ -1,377 +0,0 @@ -diff --git a/node_modules/pino-pretty/index.d.ts b/node_modules/pino-pretty/index.d.ts -index 614d375..07dc628 100644 ---- a/node_modules/pino-pretty/index.d.ts -+++ b/node_modules/pino-pretty/index.d.ts -@@ -10,6 +10,8 @@ import { Transform } from 'stream'; - import { OnUnknown } from 'pino-abstract-transport'; - // @ts-ignore fall back to any if pino is not available, i.e. when running pino tests - import { DestinationStream, Level } from 'pino'; -+import LevelPrettifierExtras = PinoPretty.LevelPrettifierExtras; -+import * as Colorette from "colorette"; - - type LogDescriptor = Record; - -@@ -179,7 +181,10 @@ interface PrettyOptions_ { - * } - * ``` - */ -- customPrettifiers?: Record; -+ customPrettifiers?: Record & -+ { -+ level?: PinoPretty.Prettifier -+ }; - /** - * Change the level names and values to an user custom preset. - * -@@ -204,8 +209,10 @@ interface PrettyOptions_ { - declare function build(options: PrettyOptions_): PinoPretty.PrettyStream; - - declare namespace PinoPretty { -- type Prettifier = (inputData: string | object) => string; -- type MessageFormatFunc = (log: LogDescriptor, messageKey: string, levelLabel: string) => string; -+ type Prettifier = (inputData: string | object, key: string, log: object, extras: PrettifierExtras) => string; -+ type PrettifierExtras = {colors: Colorette.Colorette} & T; -+ type LevelPrettifierExtras = {label: string, labelColorized: string} -+ type MessageFormatFunc = (log: LogDescriptor, messageKey: string, levelLabel: string, extras: PrettifierExtras) => string; - type PrettyOptions = PrettyOptions_; - type PrettyStream = Transform & OnUnknown; - type ColorizerFactory = typeof colorizerFactory; -diff --git a/node_modules/pino-pretty/lib/colors.js b/node_modules/pino-pretty/lib/colors.js -index 5bb3804..f135c33 100644 ---- a/node_modules/pino-pretty/lib/colors.js -+++ b/node_modules/pino-pretty/lib/colors.js -@@ -1,7 +1,5 @@ - 'use strict' - --const { LEVELS, LEVEL_NAMES } = require('./constants') -- - const nocolor = input => input - const plain = { - default: nocolor, -@@ -16,6 +14,7 @@ const plain = { - } - - const { createColors } = require('colorette') -+const getLevelLabelData = require('./utils/get-level-label-data') - const availableColors = createColors({ useColor: true }) - const { white, bgRed, red, yellow, green, blue, gray, cyan } = availableColors - -@@ -44,17 +43,7 @@ function resolveCustomColoredColorizer (customColors) { - - function colorizeLevel (useOnlyCustomProps) { - return function (level, colorizer, { customLevels, customLevelNames } = {}) { -- const levels = useOnlyCustomProps ? customLevels || LEVELS : Object.assign({}, LEVELS, customLevels) -- const levelNames = useOnlyCustomProps ? customLevelNames || LEVEL_NAMES : Object.assign({}, LEVEL_NAMES, customLevelNames) -- -- let levelNum = 'default' -- if (Number.isInteger(+level)) { -- levelNum = Object.prototype.hasOwnProperty.call(levels, level) ? level : levelNum -- } else { -- levelNum = Object.prototype.hasOwnProperty.call(levelNames, level.toLowerCase()) ? levelNames[level.toLowerCase()] : levelNum -- } -- -- const levelStr = levels[levelNum] -+ const [levelStr, levelNum] = getLevelLabelData(useOnlyCustomProps, customLevels, customLevelNames)(level) - - return Object.prototype.hasOwnProperty.call(colorizer, levelNum) ? colorizer[levelNum](levelStr) : colorizer.default(levelStr) - } -@@ -67,6 +56,7 @@ function plainColorizer (useOnlyCustomProps) { - } - customColoredColorizer.message = plain.message - customColoredColorizer.greyMessage = plain.greyMessage -+ customColoredColorizer.colors = createColors({ useColor: false }) - return customColoredColorizer - } - -@@ -77,6 +67,7 @@ function coloredColorizer (useOnlyCustomProps) { - } - customColoredColorizer.message = colored.message - customColoredColorizer.greyMessage = colored.greyMessage -+ customColoredColorizer.colors = availableColors - return customColoredColorizer - } - -@@ -88,6 +79,7 @@ function customColoredColorizerFactory (customColors, useOnlyCustomProps) { - const customColoredColorizer = function (level, opts) { - return colorizeLevelCustom(level, customColored, opts) - } -+ customColoredColorizer.colors = availableColors - customColoredColorizer.message = customColoredColorizer.message || customColored.message - customColoredColorizer.greyMessage = customColoredColorizer.greyMessage || customColored.greyMessage - -@@ -105,6 +97,7 @@ function customColoredColorizerFactory (customColors, useOnlyCustomProps) { - * recognized. - * @property {function} message Accepts one string parameter that will be - * colorized to a predefined color. -+ * @property {Colorette.Colorette} colors Available color functions based on `useColor` (or `colorize`) context - */ - - /** -diff --git a/node_modules/pino-pretty/lib/utils/get-level-label-data.js b/node_modules/pino-pretty/lib/utils/get-level-label-data.js -new file mode 100644 -index 0000000..5b27cab ---- /dev/null -+++ b/node_modules/pino-pretty/lib/utils/get-level-label-data.js -@@ -0,0 +1,29 @@ -+'use strict' -+ -+module.exports = getLevelLabelData -+const { LEVELS, LEVEL_NAMES } = require('../constants') -+ -+/** -+ * Given initial settings for custom levels/names and use of only custom props -+ * get the level label that corresponds with a given level number -+ * -+ * @param {boolean} useOnlyCustomProps -+ * @param {object} customLevels -+ * @param {object} customLevelNames -+ * -+ * @returns {function} A function that takes a number level and returns the level's label string -+ */ -+function getLevelLabelData (useOnlyCustomProps, customLevels, customLevelNames) { -+ const levels = useOnlyCustomProps ? customLevels || LEVELS : Object.assign({}, LEVELS, customLevels) -+ const levelNames = useOnlyCustomProps ? customLevelNames || LEVEL_NAMES : Object.assign({}, LEVEL_NAMES, customLevelNames) -+ return function (level) { -+ let levelNum = 'default' -+ if (Number.isInteger(+level)) { -+ levelNum = Object.prototype.hasOwnProperty.call(levels, level) ? level : levelNum -+ } else { -+ levelNum = Object.prototype.hasOwnProperty.call(levelNames, level.toLowerCase()) ? levelNames[level.toLowerCase()] : levelNum -+ } -+ -+ return [levels[levelNum], levelNum] -+ } -+} -diff --git a/node_modules/pino-pretty/lib/utils/index.js b/node_modules/pino-pretty/lib/utils/index.js -index ec69d96..e083d73 100644 ---- a/node_modules/pino-pretty/lib/utils/index.js -+++ b/node_modules/pino-pretty/lib/utils/index.js -@@ -22,7 +22,8 @@ module.exports = { - prettifyMetadata: require('./prettify-metadata.js'), - prettifyObject: require('./prettify-object.js'), - prettifyTime: require('./prettify-time.js'), -- splitPropertyKey: require('./split-property-key.js') -+ splitPropertyKey: require('./split-property-key.js'), -+ getLevelLabelData: require('./get-level-label-data') - } - - // The remainder of this file consists of jsdoc blocks that are difficult to -@@ -78,6 +79,12 @@ module.exports = { - * `{levelLabel} - {if pid}{pid} - {end}url:{req.url}` - */ - -+/** -+ * @typedef {object} PrettifyMessageExtras -+ * @property {object} colors Available color functions based on `useColor` (or `colorize`) context -+ * the options. -+ */ -+ - /** - * A function that accepts a log object, name of the message key, and name of - * the level label key and returns a formatted log line. -@@ -90,6 +97,7 @@ module.exports = { - * contains the log message. - * @param {string} levelLabel The name of the key in the `log` object that - * contains the log level name. -+ * @param {PrettifyMessageExtras} extras Additional data available for message context - * @returns {string} - * - * @example -diff --git a/node_modules/pino-pretty/lib/utils/parse-factory-options.js b/node_modules/pino-pretty/lib/utils/parse-factory-options.js -index 33ffb37..0b8ec74 100644 ---- a/node_modules/pino-pretty/lib/utils/parse-factory-options.js -+++ b/node_modules/pino-pretty/lib/utils/parse-factory-options.js -@@ -8,6 +8,7 @@ const { - const colors = require('../colors') - const handleCustomLevelsOpts = require('./handle-custom-levels-opts') - const handleCustomLevelsNamesOpts = require('./handle-custom-levels-names-opts') -+const handleLevelLabelData = require('./get-level-label-data') - - /** - * A `PrettyContext` is an object to be used by the various functions that -@@ -32,6 +33,7 @@ const handleCustomLevelsNamesOpts = require('./handle-custom-levels-names-opts') - * should be considered as holding error objects. - * @property {string[]} errorProps A list of error object keys that should be - * included in the output. -+ * @property {function} getLevelLabelData Pass a numeric level to return [levelLabelString,levelNum] - * @property {boolean} hideObject Indicates the prettifier should omit objects - * in the output. - * @property {string[]} ignoreKeys Set of log data keys to omit. -@@ -84,6 +86,7 @@ function parseFactoryOptions (options) { - : (options.useOnlyCustomProps === 'true') - const customLevels = handleCustomLevelsOpts(options.customLevels) - const customLevelNames = handleCustomLevelsNamesOpts(options.customLevels) -+ const getLevelLabelData = handleLevelLabelData(useOnlyCustomProps, customLevels, customLevelNames) - - let customColors - if (options.customColors) { -@@ -135,6 +138,7 @@ function parseFactoryOptions (options) { - customProperties, - errorLikeObjectKeys, - errorProps, -+ getLevelLabelData, - hideObject, - ignoreKeys, - includeKeys, -diff --git a/node_modules/pino-pretty/lib/utils/prettify-level.js b/node_modules/pino-pretty/lib/utils/prettify-level.js -index 213ba06..2e4dce8 100644 ---- a/node_modules/pino-pretty/lib/utils/prettify-level.js -+++ b/node_modules/pino-pretty/lib/utils/prettify-level.js -@@ -26,10 +26,16 @@ function prettifyLevel ({ log, context }) { - colorizer, - customLevels, - customLevelNames, -- levelKey -+ levelKey, -+ getLevelLabelData - } = context - const prettifier = context.customPrettifiers?.level - const output = getPropertyValue(log, levelKey) - if (output === undefined) return undefined -- return prettifier ? prettifier(output) : colorizer(output, { customLevels, customLevelNames }) -+ const labelColorized = colorizer(output, { customLevels, customLevelNames }) -+ if (prettifier) { -+ const [label] = getLevelLabelData(output) -+ return prettifier(output, levelKey, log, { label, labelColorized, colors: colorizer.colors }) -+ } -+ return labelColorized - } -diff --git a/node_modules/pino-pretty/lib/utils/prettify-level.test.js b/node_modules/pino-pretty/lib/utils/prettify-level.test.js -index e735b0a..e6e5a3c 100644 ---- a/node_modules/pino-pretty/lib/utils/prettify-level.test.js -+++ b/node_modules/pino-pretty/lib/utils/prettify-level.test.js -@@ -3,6 +3,7 @@ - const tap = require('tap') - const prettifyLevel = require('./prettify-level') - const getColorizer = require('../colors') -+const getLevelLabelData = require('./get-level-label-data') - const { - LEVEL_KEY - } = require('../constants') -@@ -12,7 +13,8 @@ const context = { - customLevelNames: undefined, - customLevels: undefined, - levelKey: LEVEL_KEY, -- customPrettifiers: undefined -+ customPrettifiers: undefined, -+ getLevelLabelData: getLevelLabelData(false, {}, {}) - } - - tap.test('returns `undefined` for unknown level', async t => { -diff --git a/node_modules/pino-pretty/lib/utils/prettify-message.js b/node_modules/pino-pretty/lib/utils/prettify-message.js -index 7758f1d..ee2f3dc 100644 ---- a/node_modules/pino-pretty/lib/utils/prettify-message.js -+++ b/node_modules/pino-pretty/lib/utils/prettify-message.js -@@ -54,7 +54,7 @@ function prettifyMessage ({ log, context }) { - return colorizer.message(message) - } - if (messageFormat && typeof messageFormat === 'function') { -- const msg = messageFormat(log, messageKey, levelLabel) -+ const msg = messageFormat(log, messageKey, levelLabel, { colors: colorizer.colors }) - return colorizer.message(msg) - } - if (messageKey in log === false) return undefined -diff --git a/node_modules/pino-pretty/lib/utils/prettify-message.test.js b/node_modules/pino-pretty/lib/utils/prettify-message.test.js -index 8faf4b1..dadf8b1 100644 ---- a/node_modules/pino-pretty/lib/utils/prettify-message.test.js -+++ b/node_modules/pino-pretty/lib/utils/prettify-message.test.js -@@ -185,3 +185,54 @@ tap.test('`messageFormat` supports function definition', async t => { - }) - t.equal(str, '--> localhost/test') - }) -+ -+tap.test('`messageFormat` supports function definition with colorizer object', async t => { -+ const colorizer = getColorizer(true) -+ const str = prettifyMessage({ -+ log: { level: 30, request: { url: 'localhost/test' }, msg: 'incoming request' }, -+ context: { -+ ...context, -+ colorizer, -+ messageFormat: (log, messageKey, levelLabel, { colors }) => { -+ let msg = log[messageKey] -+ if (msg === 'incoming request') msg = `--> ${colors.red(log.request.url)}` -+ return msg -+ } -+ } -+ }) -+ t.equal(str, '\u001B[36m--> \u001B[31mlocalhost/test\u001B[36m\u001B[39m') -+}) -+ -+tap.test('`messageFormat` supports function definition with colorizer object when using custom colors', async t => { -+ const colorizer = getColorizer(true, [[30, 'brightGreen']], false) -+ const str = prettifyMessage({ -+ log: { level: 30, request: { url: 'localhost/test' }, msg: 'incoming request' }, -+ context: { -+ ...context, -+ colorizer, -+ messageFormat: (log, messageKey, levelLabel, { colors }) => { -+ let msg = log[messageKey] -+ if (msg === 'incoming request') msg = `--> ${colors.red(log.request.url)}` -+ return msg -+ } -+ } -+ }) -+ t.equal(str, '\u001B[36m--> \u001B[31mlocalhost/test\u001B[36m\u001B[39m') -+}) -+ -+tap.test('`messageFormat` supports function definition with colorizer object when no color is supported', async t => { -+ const colorizer = getColorizer(false) -+ const str = prettifyMessage({ -+ log: { level: 30, request: { url: 'localhost/test' }, msg: 'incoming request' }, -+ context: { -+ ...context, -+ colorizer, -+ messageFormat: (log, messageKey, levelLabel, { colors }) => { -+ let msg = log[messageKey] -+ if (msg === 'incoming request') msg = `--> ${colors.red(log.request.url)}` -+ return msg -+ } -+ } -+ }) -+ t.equal(str, '--> localhost/test') -+}) -diff --git a/node_modules/pino-pretty/lib/utils/prettify-object.js b/node_modules/pino-pretty/lib/utils/prettify-object.js -index e4bbec1..5de0f5c 100644 ---- a/node_modules/pino-pretty/lib/utils/prettify-object.js -+++ b/node_modules/pino-pretty/lib/utils/prettify-object.js -@@ -43,7 +43,8 @@ function prettifyObject ({ - customPrettifiers, - errorLikeObjectKeys: errorLikeKeys, - objectColorizer, -- singleLine -+ singleLine, -+ colorizer - } = context - const keysToIgnore = [].concat(skipKeys) - -@@ -57,7 +58,7 @@ function prettifyObject ({ - if (keysToIgnore.includes(k) === false) { - // Pre-apply custom prettifiers, because all 3 cases below will need this - const pretty = typeof customPrettifiers[k] === 'function' -- ? customPrettifiers[k](v, k, log) -+ ? customPrettifiers[k](v, k, log, { colors: colorizer.colors }) - : v - if (errorLikeKeys.includes(k)) { - errors[k] = pretty -diff --git a/node_modules/pino-pretty/lib/utils/prettify-object.test.js b/node_modules/pino-pretty/lib/utils/prettify-object.test.js -index 61f6424..2dde4a9 100644 ---- a/node_modules/pino-pretty/lib/utils/prettify-object.test.js -+++ b/node_modules/pino-pretty/lib/utils/prettify-object.test.js -@@ -6,6 +6,7 @@ const prettifyObject = require('./prettify-object') - const { - ERROR_LIKE_KEYS - } = require('../constants') -+const getColorizer = require('../colors') - - const context = { - EOL: '\n', -@@ -13,7 +14,8 @@ const context = { - customPrettifiers: {}, - errorLikeObjectKeys: ERROR_LIKE_KEYS, - objectColorizer: colors(), -- singleLine: false -+ singleLine: false, -+ colorizer: getColorizer() - } - - tap.test('returns empty string if no properties present', async t => { diff --git a/patches/pino-roll+1.0.0-rc.1.patch b/patches/pino-roll+1.0.0-rc.1.patch deleted file mode 100644 index 9d6b1ab..0000000 --- a/patches/pino-roll+1.0.0-rc.1.patch +++ /dev/null @@ -1,60 +0,0 @@ -diff --git a/node_modules/pino-roll/lib/utils.js b/node_modules/pino-roll/lib/utils.js -index c84cd8f..0be7f5e 100644 ---- a/node_modules/pino-roll/lib/utils.js -+++ b/node_modules/pino-roll/lib/utils.js -@@ -62,14 +62,19 @@ function getNext (frequency) { - return getNextCustom(frequency) - } - --function buildFileName (fileName, lastNumber = 1, extension) { -- if (!fileName) { -+function getFileName (fileVal) { -+ if (!fileVal) { - throw new Error('No file name provided') - } -- return `${fileName}.${lastNumber}${extension ?? ''}` -+ return typeof fileVal === 'function' ? fileVal() : fileVal - } - --async function detectLastNumber (fileName, time = null) { -+function buildFileName (fileVal, lastNumber = 1, extension) { -+ return `${getFileName(fileVal)}.${lastNumber}${extension ?? ''}` -+} -+ -+async function detectLastNumber (fileVal, time = null) { -+ const fileName = getFileName(fileVal) - try { - const numbers = await readFileTrailingNumbers(dirname(fileName), time) - return numbers.sort((a, b) => b - a)[0] -@@ -102,4 +107,4 @@ async function isMatchingTime (filePath, time) { - return birthtimeMs >= time - } - --module.exports = { buildFileName, detectLastNumber, parseFrequency, getNext, parseSize } -+module.exports = { buildFileName, detectLastNumber, parseFrequency, getNext, parseSize, getFileName } -diff --git a/node_modules/pino-roll/pino-roll.js b/node_modules/pino-roll/pino-roll.js -index 800d59f..68c42e9 100644 ---- a/node_modules/pino-roll/pino-roll.js -+++ b/node_modules/pino-roll/pino-roll.js -@@ -3,12 +3,19 @@ - const SonicBoom = require('sonic-boom') - const { buildFileName, detectLastNumber, parseSize, parseFrequency, getNext } = require('./lib/utils') - -+/** -+ * A function that returns a string path to the base file name -+ * -+ * @typedef {function} LogFilePath -+ * @returns {string} -+ */ -+ - /** - * @typedef {object} Options - * -- * @property {string} file - Absolute or relative path to the log file. -+ * @property {string|LogFilePath} file - Absolute or relative path to the log file. - * Your application needs the write right on the parent folder. -- * Number will be appened to this file name. -+ * Number will be appended to this file name. - * When the parent folder already contains numbered files, numbering will continue based on the highest number. - * If this path does not exist, the logger with throw an error unless you set `mkdir` to `true`. - *