[READ-ONLY] Mirror of https://github.com/FoxxMD/logging. A typed, opinionated, batteries-included, Pino-based logging solution for backend TS/JS projects foxxmd.github.io/logging
child-logger logging logging-library nodejs pinojs typescript-library
0

Configure Feed

Select the types of activity you want to include in your feed.

refactor: Replace patched pino packages with github branch sources

Makes this library actually usable without requiring patch-package at project-level

TODO: replace with official packages once they are merged (hopefully)

FoxxMD (Mar 8, 2024, 12:55 PM EST) c56a65fa 6967b2d9

+104 -1004
+101 -562
package-lock.json
··· 7 7 "": { 8 8 "name": "@foxxmd/logging", 9 9 "version": "0.0.2", 10 - "hasInstallScript": true, 11 10 "license": "MIT", 12 11 "dependencies": { 13 - "patch-package": "^8.0.0", 14 12 "pino": "^8.19.0", 15 - "pino-pretty": "^10.3.1", 16 - "pino-roll": "^1.0.0-rc.1", 13 + "pino-pretty": "github:foxxmd/pino-pretty#additionalFunctionality", 14 + "pino-roll": "github:foxxmd/pino-roll#fileAsFunc", 17 15 "pony-cause": "^2.1.10" 18 16 }, 19 17 "devDependencies": { ··· 659 657 "dev": true 660 658 }, 661 659 "node_modules/@types/node": { 662 - "version": "18.19.21", 663 - "resolved": "https://registry.npmjs.org/@types/node/-/node-18.19.21.tgz", 664 - "integrity": "sha512-2Q2NeB6BmiTFQi4DHBzncSoq/cJMLDdhPaAoJFnFCyD9a8VPZRf7a1GAwp1Edb7ROaZc5Jz/tnZyL6EsWMRaqw==", 660 + "version": "18.19.22", 661 + "resolved": "https://registry.npmjs.org/@types/node/-/node-18.19.22.tgz", 662 + "integrity": "sha512-p3pDIfuMg/aXBmhkyanPshdfJuX5c5+bQjYLIikPLXAUycEogij/c50n/C+8XOA5L93cU4ZRXtn+dNQGi0IZqQ==", 665 663 "dev": true, 666 664 "dependencies": { 667 665 "undici-types": "~5.26.4" ··· 673 671 "integrity": "sha512-o46sYob58kh4nPxv3vnqS4iDI5Lr+FBV3iT53Wd0qJW5qx4jYg+jWsgU/Ysf+PIXB0J/tvh7dhoH1UrYMynE4Q==", 674 672 "dev": true 675 673 }, 676 - "node_modules/@yarnpkg/lockfile": { 677 - "version": "1.1.0", 678 - "resolved": "https://registry.npmjs.org/@yarnpkg/lockfile/-/lockfile-1.1.0.tgz", 679 - "integrity": "sha512-GpSwvyXOcOOlV70vbnzjj4fW5xW/FdUF6nQEt1ENy7m4ZCczi1+/buVUPAqmGfqznsORNFzUMjctTIp8a9tuCQ==" 680 - }, 681 674 "node_modules/abort-controller": { 682 675 "version": "3.0.0", 683 676 "resolved": "https://registry.npmjs.org/abort-controller/-/abort-controller-3.0.0.tgz", ··· 738 731 "version": "4.3.0", 739 732 "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", 740 733 "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", 734 + "dev": true, 741 735 "dependencies": { 742 736 "color-convert": "^2.0.1" 743 737 }, ··· 780 774 "dev": true, 781 775 "engines": { 782 776 "node": "*" 783 - } 784 - }, 785 - "node_modules/at-least-node": { 786 - "version": "1.0.0", 787 - "resolved": "https://registry.npmjs.org/at-least-node/-/at-least-node-1.0.0.tgz", 788 - "integrity": "sha512-+q/t7Ekv1EDY2l6Gda6LLiX14rU9TV20Wa3ofeQmwPFZbOMo9DXrLbOjFaaclkXKWidIaopwAObQDqwWtGUjqg==", 789 - "engines": { 790 - "node": ">= 4.0.0" 791 777 } 792 778 }, 793 779 "node_modules/atomic-sleep": { ··· 801 787 "node_modules/balanced-match": { 802 788 "version": "1.0.2", 803 789 "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", 804 - "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==" 790 + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", 791 + "dev": true 805 792 }, 806 793 "node_modules/base64-js": { 807 794 "version": "1.5.1", ··· 844 831 "version": "3.0.2", 845 832 "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", 846 833 "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", 834 + "dev": true, 847 835 "dependencies": { 848 836 "fill-range": "^7.0.1" 849 837 }, ··· 880 868 "ieee754": "^1.2.1" 881 869 } 882 870 }, 883 - "node_modules/call-bind": { 884 - "version": "1.0.7", 885 - "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.7.tgz", 886 - "integrity": "sha512-GHTSNSYICQ7scH7sZ+M2rFopRoLh8t2bLSW6BbgrtLsahOIB5iyAVJf9GjWK3cYTDaMj4XdBpM1cA6pIS0Kv2w==", 887 - "dependencies": { 888 - "es-define-property": "^1.0.0", 889 - "es-errors": "^1.3.0", 890 - "function-bind": "^1.1.2", 891 - "get-intrinsic": "^1.2.4", 892 - "set-function-length": "^1.2.1" 893 - }, 894 - "engines": { 895 - "node": ">= 0.4" 896 - }, 897 - "funding": { 898 - "url": "https://github.com/sponsors/ljharb" 899 - } 900 - }, 901 871 "node_modules/camelcase": { 902 872 "version": "6.3.0", 903 873 "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz", ··· 944 914 "version": "4.1.2", 945 915 "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", 946 916 "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", 917 + "dev": true, 947 918 "dependencies": { 948 919 "ansi-styles": "^4.1.0", 949 920 "supports-color": "^7.1.0" ··· 959 930 "version": "7.2.0", 960 931 "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", 961 932 "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", 933 + "dev": true, 962 934 "dependencies": { 963 935 "has-flag": "^4.0.0" 964 936 }, ··· 1003 975 }, 1004 976 "optionalDependencies": { 1005 977 "fsevents": "~2.3.2" 1006 - } 1007 - }, 1008 - "node_modules/ci-info": { 1009 - "version": "3.9.0", 1010 - "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-3.9.0.tgz", 1011 - "integrity": "sha512-NIxF55hv4nSqQswkAeiOi1r83xy8JldOFDTWiug55KBu9Jnblncd2U6ViHmYgHf01TPZS77NJBhBMKdWj9HQMQ==", 1012 - "funding": [ 1013 - { 1014 - "type": "github", 1015 - "url": "https://github.com/sponsors/sibiraj-s" 1016 - } 1017 - ], 1018 - "engines": { 1019 - "node": ">=8" 1020 978 } 1021 979 }, 1022 980 "node_modules/cliui": { ··· 1034 992 "version": "2.0.1", 1035 993 "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", 1036 994 "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", 995 + "dev": true, 1037 996 "dependencies": { 1038 997 "color-name": "~1.1.4" 1039 998 }, ··· 1044 1003 "node_modules/color-name": { 1045 1004 "version": "1.1.4", 1046 1005 "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", 1047 - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" 1006 + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", 1007 + "dev": true 1048 1008 }, 1049 1009 "node_modules/colorette": { 1050 1010 "version": "2.0.20", ··· 1054 1014 "node_modules/concat-map": { 1055 1015 "version": "0.0.1", 1056 1016 "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", 1057 - "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==" 1017 + "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", 1018 + "dev": true 1058 1019 }, 1059 1020 "node_modules/create-require": { 1060 1021 "version": "1.1.1", ··· 1066 1027 "version": "7.0.3", 1067 1028 "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", 1068 1029 "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", 1030 + "dev": true, 1069 1031 "dependencies": { 1070 1032 "path-key": "^3.1.0", 1071 1033 "shebang-command": "^2.0.0", ··· 1130 1092 "node": ">=6" 1131 1093 } 1132 1094 }, 1133 - "node_modules/define-data-property": { 1134 - "version": "1.1.4", 1135 - "resolved": "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.4.tgz", 1136 - "integrity": "sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A==", 1137 - "dependencies": { 1138 - "es-define-property": "^1.0.0", 1139 - "es-errors": "^1.3.0", 1140 - "gopd": "^1.0.1" 1141 - }, 1142 - "engines": { 1143 - "node": ">= 0.4" 1144 - }, 1145 - "funding": { 1146 - "url": "https://github.com/sponsors/ljharb" 1147 - } 1148 - }, 1149 1095 "node_modules/diff": { 1150 1096 "version": "5.0.0", 1151 1097 "resolved": "https://registry.npmjs.org/diff/-/diff-5.0.0.tgz", ··· 1175 1121 "once": "^1.4.0" 1176 1122 } 1177 1123 }, 1178 - "node_modules/es-define-property": { 1179 - "version": "1.0.0", 1180 - "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.0.tgz", 1181 - "integrity": "sha512-jxayLKShrEqqzJ0eumQbVhTYQM27CfT1T35+gCgDFoL82JLsXqTJ76zv6A0YLOgEnLUMvLzsDsGIrl8NFpT2gQ==", 1182 - "dependencies": { 1183 - "get-intrinsic": "^1.2.4" 1184 - }, 1185 - "engines": { 1186 - "node": ">= 0.4" 1187 - } 1188 - }, 1189 - "node_modules/es-errors": { 1190 - "version": "1.3.0", 1191 - "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz", 1192 - "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==", 1193 - "engines": { 1194 - "node": ">= 0.4" 1195 - } 1196 - }, 1197 1124 "node_modules/esbuild": { 1198 1125 "version": "0.19.12", 1199 1126 "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.19.12.tgz", ··· 1275 1202 "integrity": "sha512-Knr7NOtK3HWRYGtHoJrjkaWepqT8thIVGAwt0p0aUs1zqkAzXZV4vo9fFNwyb5fcqK1GKYFYxldQdIDVKhUAfA==" 1276 1203 }, 1277 1204 "node_modules/fast-redact": { 1278 - "version": "3.3.0", 1279 - "resolved": "https://registry.npmjs.org/fast-redact/-/fast-redact-3.3.0.tgz", 1280 - "integrity": "sha512-6T5V1QK1u4oF+ATxs1lWUmlEk6P2T9HqJG3e2DnHOdVgZy2rFJBoEnrIedcTXlkAHU/zKC+7KETJ+KGGKwxgMQ==", 1205 + "version": "3.4.0", 1206 + "resolved": "https://registry.npmjs.org/fast-redact/-/fast-redact-3.4.0.tgz", 1207 + "integrity": "sha512-2gwPvyna0zwBdxKnng1suu/dTL5s8XEy2ZqH8mwDUwJdDkV8w5kp+JV26mupdK68HmPMbm6yjW9m7/Ys/BHEHg==", 1281 1208 "engines": { 1282 1209 "node": ">=6" 1283 1210 } ··· 1291 1218 "version": "7.0.1", 1292 1219 "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", 1293 1220 "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", 1221 + "dev": true, 1294 1222 "dependencies": { 1295 1223 "to-regex-range": "^5.0.1" 1296 1224 }, ··· 1314 1242 "url": "https://github.com/sponsors/sindresorhus" 1315 1243 } 1316 1244 }, 1317 - "node_modules/find-yarn-workspace-root": { 1318 - "version": "2.0.0", 1319 - "resolved": "https://registry.npmjs.org/find-yarn-workspace-root/-/find-yarn-workspace-root-2.0.0.tgz", 1320 - "integrity": "sha512-1IMnbjt4KzsQfnhnzNd8wUEgXZ44IzZaZmnLYx7D5FZlaHt2gW20Cri8Q+E/t5tIj4+epTBub+2Zxu/vNILzqQ==", 1321 - "dependencies": { 1322 - "micromatch": "^4.0.2" 1323 - } 1324 - }, 1325 1245 "node_modules/flat": { 1326 1246 "version": "5.0.2", 1327 1247 "resolved": "https://registry.npmjs.org/flat/-/flat-5.0.2.tgz", ··· 1347 1267 "url": "https://github.com/sponsors/isaacs" 1348 1268 } 1349 1269 }, 1350 - "node_modules/fs-extra": { 1351 - "version": "9.1.0", 1352 - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-9.1.0.tgz", 1353 - "integrity": "sha512-hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ==", 1354 - "dependencies": { 1355 - "at-least-node": "^1.0.0", 1356 - "graceful-fs": "^4.2.0", 1357 - "jsonfile": "^6.0.1", 1358 - "universalify": "^2.0.0" 1359 - }, 1360 - "engines": { 1361 - "node": ">=10" 1362 - } 1363 - }, 1364 1270 "node_modules/fs.realpath": { 1365 1271 "version": "1.0.0", 1366 1272 "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", 1367 - "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==" 1273 + "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==", 1274 + "dev": true 1368 1275 }, 1369 1276 "node_modules/fsevents": { 1370 1277 "version": "2.3.3", ··· 1380 1287 "node": "^8.16.0 || ^10.6.0 || >=11.0.0" 1381 1288 } 1382 1289 }, 1383 - "node_modules/function-bind": { 1384 - "version": "1.1.2", 1385 - "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", 1386 - "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", 1387 - "funding": { 1388 - "url": "https://github.com/sponsors/ljharb" 1389 - } 1390 - }, 1391 1290 "node_modules/get-caller-file": { 1392 1291 "version": "2.0.5", 1393 1292 "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", ··· 1404 1303 "dev": true, 1405 1304 "engines": { 1406 1305 "node": "*" 1407 - } 1408 - }, 1409 - "node_modules/get-intrinsic": { 1410 - "version": "1.2.4", 1411 - "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.4.tgz", 1412 - "integrity": "sha512-5uYhsJH8VJBTv7oslg4BznJYhDoRI6waYCxMmCdnTrcCrHA/fCFKoTFz2JKKE0HdDFUF7/oQuhzumXJK7paBRQ==", 1413 - "dependencies": { 1414 - "es-errors": "^1.3.0", 1415 - "function-bind": "^1.1.2", 1416 - "has-proto": "^1.0.1", 1417 - "has-symbols": "^1.0.3", 1418 - "hasown": "^2.0.0" 1419 - }, 1420 - "engines": { 1421 - "node": ">= 0.4" 1422 - }, 1423 - "funding": { 1424 - "url": "https://github.com/sponsors/ljharb" 1425 1306 } 1426 1307 }, 1427 1308 "node_modules/get-tsconfig": { ··· 1467 1348 "node": ">= 6" 1468 1349 } 1469 1350 }, 1470 - "node_modules/gopd": { 1471 - "version": "1.0.1", 1472 - "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.0.1.tgz", 1473 - "integrity": "sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==", 1474 - "dependencies": { 1475 - "get-intrinsic": "^1.1.3" 1476 - }, 1477 - "funding": { 1478 - "url": "https://github.com/sponsors/ljharb" 1479 - } 1480 - }, 1481 - "node_modules/graceful-fs": { 1482 - "version": "4.2.11", 1483 - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", 1484 - "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==" 1485 - }, 1486 1351 "node_modules/has-flag": { 1487 1352 "version": "4.0.0", 1488 1353 "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", 1489 1354 "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", 1355 + "dev": true, 1490 1356 "engines": { 1491 1357 "node": ">=8" 1492 1358 } 1493 1359 }, 1494 - "node_modules/has-property-descriptors": { 1495 - "version": "1.0.2", 1496 - "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz", 1497 - "integrity": "sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg==", 1498 - "dependencies": { 1499 - "es-define-property": "^1.0.0" 1500 - }, 1501 - "funding": { 1502 - "url": "https://github.com/sponsors/ljharb" 1503 - } 1504 - }, 1505 - "node_modules/has-proto": { 1506 - "version": "1.0.3", 1507 - "resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.0.3.tgz", 1508 - "integrity": "sha512-SJ1amZAJUiZS+PhsVLf5tGydlaVB8EdFpaSO4gmiUKUOxk8qzn5AIy4ZeJUmh22znIdk/uMAUT2pl3FxzVUH+Q==", 1509 - "engines": { 1510 - "node": ">= 0.4" 1511 - }, 1512 - "funding": { 1513 - "url": "https://github.com/sponsors/ljharb" 1514 - } 1515 - }, 1516 - "node_modules/has-symbols": { 1517 - "version": "1.0.3", 1518 - "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz", 1519 - "integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==", 1520 - "engines": { 1521 - "node": ">= 0.4" 1522 - }, 1523 - "funding": { 1524 - "url": "https://github.com/sponsors/ljharb" 1525 - } 1526 - }, 1527 - "node_modules/hasown": { 1528 - "version": "2.0.1", 1529 - "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.1.tgz", 1530 - "integrity": "sha512-1/th4MHjnwncwXsIW6QMzlvYL9kG5e/CpVvLRZe4XPa8TOUNbCELqmvhDmnkNsAjwaG4+I8gJJL0JBvTTLO9qA==", 1531 - "dependencies": { 1532 - "function-bind": "^1.1.2" 1533 - }, 1534 - "engines": { 1535 - "node": ">= 0.4" 1536 - } 1537 - }, 1538 1360 "node_modules/he": { 1539 1361 "version": "1.2.0", 1540 1362 "resolved": "https://registry.npmjs.org/he/-/he-1.2.0.tgz", ··· 1572 1394 "version": "1.0.6", 1573 1395 "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", 1574 1396 "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", 1397 + "dev": true, 1575 1398 "dependencies": { 1576 1399 "once": "^1.3.0", 1577 1400 "wrappy": "1" ··· 1580 1403 "node_modules/inherits": { 1581 1404 "version": "2.0.4", 1582 1405 "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", 1583 - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" 1406 + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", 1407 + "dev": true 1584 1408 }, 1585 1409 "node_modules/is-binary-path": { 1586 1410 "version": "2.1.0", ··· 1594 1418 "node": ">=8" 1595 1419 } 1596 1420 }, 1597 - "node_modules/is-docker": { 1598 - "version": "2.2.1", 1599 - "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-2.2.1.tgz", 1600 - "integrity": "sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ==", 1601 - "bin": { 1602 - "is-docker": "cli.js" 1603 - }, 1604 - "engines": { 1605 - "node": ">=8" 1606 - }, 1607 - "funding": { 1608 - "url": "https://github.com/sponsors/sindresorhus" 1609 - } 1610 - }, 1611 1421 "node_modules/is-extglob": { 1612 1422 "version": "2.1.1", 1613 1423 "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", ··· 1642 1452 "version": "7.0.0", 1643 1453 "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", 1644 1454 "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", 1455 + "dev": true, 1645 1456 "engines": { 1646 1457 "node": ">=0.12.0" 1647 1458 } ··· 1667 1478 "url": "https://github.com/sponsors/sindresorhus" 1668 1479 } 1669 1480 }, 1670 - "node_modules/is-wsl": { 1671 - "version": "2.2.0", 1672 - "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-2.2.0.tgz", 1673 - "integrity": "sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww==", 1674 - "dependencies": { 1675 - "is-docker": "^2.0.0" 1676 - }, 1677 - "engines": { 1678 - "node": ">=8" 1679 - } 1680 - }, 1681 - "node_modules/isarray": { 1682 - "version": "2.0.5", 1683 - "resolved": "https://registry.npmjs.org/isarray/-/isarray-2.0.5.tgz", 1684 - "integrity": "sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw==" 1685 - }, 1686 1481 "node_modules/isexe": { 1687 1482 "version": "2.0.0", 1688 1483 "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", 1689 - "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==" 1484 + "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", 1485 + "dev": true 1690 1486 }, 1691 1487 "node_modules/jackspeak": { 1692 1488 "version": "2.3.6", ··· 1726 1522 "js-yaml": "bin/js-yaml.js" 1727 1523 } 1728 1524 }, 1729 - "node_modules/json-stable-stringify": { 1730 - "version": "1.1.1", 1731 - "resolved": "https://registry.npmjs.org/json-stable-stringify/-/json-stable-stringify-1.1.1.tgz", 1732 - "integrity": "sha512-SU/971Kt5qVQfJpyDveVhQ/vya+5hvrjClFOcr8c0Fq5aODJjMwutrOfCU+eCnVD5gpx1Q3fEqkyom77zH1iIg==", 1733 - "dependencies": { 1734 - "call-bind": "^1.0.5", 1735 - "isarray": "^2.0.5", 1736 - "jsonify": "^0.0.1", 1737 - "object-keys": "^1.1.1" 1738 - }, 1739 - "engines": { 1740 - "node": ">= 0.4" 1741 - }, 1742 - "funding": { 1743 - "url": "https://github.com/sponsors/ljharb" 1744 - } 1745 - }, 1746 1525 "node_modules/json5": { 1747 1526 "version": "2.2.3", 1748 1527 "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", ··· 1761 1540 "integrity": "sha512-AilxAyFOAcK5wA1+LeaySVBrHsGQvUFCDWXKpZjzaL0PqW+xfBOttn8GNtWKFWqneyMZj41MWF9Kl6iPWLwgOA==", 1762 1541 "dev": true 1763 1542 }, 1764 - "node_modules/jsonfile": { 1765 - "version": "6.1.0", 1766 - "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz", 1767 - "integrity": "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==", 1768 - "dependencies": { 1769 - "universalify": "^2.0.0" 1770 - }, 1771 - "optionalDependencies": { 1772 - "graceful-fs": "^4.1.6" 1773 - } 1774 - }, 1775 - "node_modules/jsonify": { 1776 - "version": "0.0.1", 1777 - "resolved": "https://registry.npmjs.org/jsonify/-/jsonify-0.0.1.tgz", 1778 - "integrity": "sha512-2/Ki0GcmuqSrgFyelQq9M05y7PS0mEwuIzrf3f1fPqkVDVRvZrPZtVSMHxdgo8Aq0sxAOb/cr2aqqA3LeWHVPg==", 1779 - "funding": { 1780 - "url": "https://github.com/sponsors/ljharb" 1781 - } 1782 - }, 1783 1543 "node_modules/just-extend": { 1784 1544 "version": "6.2.0", 1785 1545 "resolved": "https://registry.npmjs.org/just-extend/-/just-extend-6.2.0.tgz", 1786 1546 "integrity": "sha512-cYofQu2Xpom82S6qD778jBDpwvvy39s1l/hrYij2u9AMdQcGRpaBu6kY4mVhuno5kJVi1DAz4aiphA2WI1/OAw==", 1787 1547 "dev": true 1788 - }, 1789 - "node_modules/klaw-sync": { 1790 - "version": "6.0.0", 1791 - "resolved": "https://registry.npmjs.org/klaw-sync/-/klaw-sync-6.0.0.tgz", 1792 - "integrity": "sha512-nIeuVSzdCCs6TDPTqI8w1Yre34sSq7AkZ4B3sfOBbI2CgVSB4Du4aLQijFU2+lhAFCwt9+42Hel6lQNIv6AntQ==", 1793 - "dependencies": { 1794 - "graceful-fs": "^4.1.11" 1795 - } 1796 1548 }, 1797 1549 "node_modules/locate-path": { 1798 1550 "version": "6.0.0", ··· 1841 1593 } 1842 1594 }, 1843 1595 "node_modules/lru-cache": { 1844 - "version": "6.0.0", 1845 - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", 1846 - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", 1847 - "dependencies": { 1848 - "yallist": "^4.0.0" 1849 - }, 1596 + "version": "10.2.0", 1597 + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.2.0.tgz", 1598 + "integrity": "sha512-2bIM8x+VAf6JT4bKAljS1qUWgMsqZRPGJS6FSahIMPVvctcNhyVp7AJu7quxOW9jwkryBReKZY5tY5JYv2n/7Q==", 1599 + "dev": true, 1850 1600 "engines": { 1851 - "node": ">=10" 1601 + "node": "14 || >=16.14" 1852 1602 } 1853 1603 }, 1854 1604 "node_modules/lunr": { ··· 1873 1623 }, 1874 1624 "engines": { 1875 1625 "node": ">= 12" 1876 - } 1877 - }, 1878 - "node_modules/micromatch": { 1879 - "version": "4.0.5", 1880 - "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz", 1881 - "integrity": "sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==", 1882 - "dependencies": { 1883 - "braces": "^3.0.2", 1884 - "picomatch": "^2.3.1" 1885 - }, 1886 - "engines": { 1887 - "node": ">=8.6" 1888 1626 } 1889 1627 }, 1890 1628 "node_modules/minimatch": { ··· 1994 1732 "node": ">=0.10.0" 1995 1733 } 1996 1734 }, 1997 - "node_modules/object-keys": { 1998 - "version": "1.1.1", 1999 - "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz", 2000 - "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==", 2001 - "engines": { 2002 - "node": ">= 0.4" 2003 - } 2004 - }, 2005 1735 "node_modules/on-exit-leak-free": { 2006 1736 "version": "2.1.2", 2007 1737 "resolved": "https://registry.npmjs.org/on-exit-leak-free/-/on-exit-leak-free-2.1.2.tgz", ··· 2018 1748 "wrappy": "1" 2019 1749 } 2020 1750 }, 2021 - "node_modules/open": { 2022 - "version": "7.4.2", 2023 - "resolved": "https://registry.npmjs.org/open/-/open-7.4.2.tgz", 2024 - "integrity": "sha512-MVHddDVweXZF3awtlAS+6pgKLlm/JgxZ90+/NBurBoQctVOOB/zDdVjcyPzQ+0laDGbsWgrRkflI65sQeOgT9Q==", 2025 - "dependencies": { 2026 - "is-docker": "^2.0.0", 2027 - "is-wsl": "^2.1.1" 2028 - }, 2029 - "engines": { 2030 - "node": ">=8" 2031 - }, 2032 - "funding": { 2033 - "url": "https://github.com/sponsors/sindresorhus" 2034 - } 2035 - }, 2036 - "node_modules/os-tmpdir": { 2037 - "version": "1.0.2", 2038 - "resolved": "https://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.2.tgz", 2039 - "integrity": "sha512-D2FR03Vir7FIu45XBY20mTb+/ZSWB00sjU9jdQXt83gDrI4Ztz5Fs7/yy74g2N5SVQY4xY1qDr4rNddwYRVX0g==", 2040 - "engines": { 2041 - "node": ">=0.10.0" 2042 - } 2043 - }, 2044 1751 "node_modules/p-event": { 2045 - "version": "6.0.0", 2046 - "resolved": "https://registry.npmjs.org/p-event/-/p-event-6.0.0.tgz", 2047 - "integrity": "sha512-Xbfxd0CfZmHLGKXH32k1JKjQYX6Rkv0UtQdaFJ8OyNcf+c0oWCeXHc1C4CX/IESZLmcvfPa5aFIO/vCr5gqtag==", 1752 + "version": "6.0.1", 1753 + "resolved": "https://registry.npmjs.org/p-event/-/p-event-6.0.1.tgz", 1754 + "integrity": "sha512-Q6Bekk5wpzW5qIyUP4gdMEujObYstZl6DMMOSenwBvV0BlE5LkDwkjs5yHbZmdCEq2o4RJx4tE1vwxFVf2FG1w==", 2048 1755 "dev": true, 2049 1756 "dependencies": { 2050 1757 "p-timeout": "^6.1.2" ··· 2098 1805 "url": "https://github.com/sponsors/sindresorhus" 2099 1806 } 2100 1807 }, 2101 - "node_modules/patch-package": { 2102 - "version": "8.0.0", 2103 - "resolved": "https://registry.npmjs.org/patch-package/-/patch-package-8.0.0.tgz", 2104 - "integrity": "sha512-da8BVIhzjtgScwDJ2TtKsfT5JFWz1hYoBl9rUQ1f38MC2HwnEIkK8VN3dKMKcP7P7bvvgzNDbfNHtx3MsQb5vA==", 2105 - "dependencies": { 2106 - "@yarnpkg/lockfile": "^1.1.0", 2107 - "chalk": "^4.1.2", 2108 - "ci-info": "^3.7.0", 2109 - "cross-spawn": "^7.0.3", 2110 - "find-yarn-workspace-root": "^2.0.0", 2111 - "fs-extra": "^9.0.0", 2112 - "json-stable-stringify": "^1.0.2", 2113 - "klaw-sync": "^6.0.0", 2114 - "minimist": "^1.2.6", 2115 - "open": "^7.4.2", 2116 - "rimraf": "^2.6.3", 2117 - "semver": "^7.5.3", 2118 - "slash": "^2.0.0", 2119 - "tmp": "^0.0.33", 2120 - "yaml": "^2.2.2" 2121 - }, 2122 - "bin": { 2123 - "patch-package": "index.js" 2124 - }, 2125 - "engines": { 2126 - "node": ">=14", 2127 - "npm": ">5" 2128 - } 2129 - }, 2130 1808 "node_modules/path-exists": { 2131 1809 "version": "4.0.0", 2132 1810 "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", ··· 2140 1818 "version": "1.0.1", 2141 1819 "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", 2142 1820 "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", 1821 + "dev": true, 2143 1822 "engines": { 2144 1823 "node": ">=0.10.0" 2145 1824 } ··· 2148 1827 "version": "3.1.1", 2149 1828 "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", 2150 1829 "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", 1830 + "dev": true, 2151 1831 "engines": { 2152 1832 "node": ">=8" 2153 1833 } ··· 2168 1848 "url": "https://github.com/sponsors/isaacs" 2169 1849 } 2170 1850 }, 2171 - "node_modules/path-scurry/node_modules/lru-cache": { 2172 - "version": "10.2.0", 2173 - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.2.0.tgz", 2174 - "integrity": "sha512-2bIM8x+VAf6JT4bKAljS1qUWgMsqZRPGJS6FSahIMPVvctcNhyVp7AJu7quxOW9jwkryBReKZY5tY5JYv2n/7Q==", 2175 - "dev": true, 2176 - "engines": { 2177 - "node": "14 || >=16.14" 2178 - } 2179 - }, 2180 1851 "node_modules/path-to-regexp": { 2181 1852 "version": "6.2.1", 2182 1853 "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-6.2.1.tgz", ··· 2196 1867 "version": "2.3.1", 2197 1868 "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", 2198 1869 "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", 1870 + "dev": true, 2199 1871 "engines": { 2200 1872 "node": ">=8.6" 2201 1873 }, ··· 2235 1907 }, 2236 1908 "node_modules/pino-pretty": { 2237 1909 "version": "10.3.1", 2238 - "resolved": "https://registry.npmjs.org/pino-pretty/-/pino-pretty-10.3.1.tgz", 2239 - "integrity": "sha512-az8JbIYeN/1iLj2t0jR9DV48/LQ3RC6hZPpapKPkb84Q+yTidMCpgWxIT3N0flnBDilyBQ1luWNpOeJptjdp/g==", 1910 + "resolved": "git+ssh://git@github.com/foxxmd/pino-pretty.git#1ee28b3b79c0131c323440494ff487db888e5c57", 1911 + "license": "MIT", 2240 1912 "dependencies": { 2241 1913 "colorette": "^2.0.7", 2242 1914 "dateformat": "^4.6.3", ··· 2259 1931 }, 2260 1932 "node_modules/pino-roll": { 2261 1933 "version": "1.0.0-rc.1", 2262 - "resolved": "https://registry.npmjs.org/pino-roll/-/pino-roll-1.0.0-rc.1.tgz", 2263 - "integrity": "sha512-wJUXdRMlbbUQkBT8C0ePwPxJpP9Eg2FKUfBAKv2ATsS/+ujtV64l/sLtdQcI+F+aAac0/1QjJOjuVyxUTDq5zA==", 1934 + "resolved": "git+ssh://git@github.com/foxxmd/pino-roll.git#11a676826e83a807eac74a3328996d10bc1c720a", 1935 + "license": "MIT", 2264 1936 "dependencies": { 2265 - "sonic-boom": "^2.8.0" 2266 - } 2267 - }, 2268 - "node_modules/pino-roll/node_modules/sonic-boom": { 2269 - "version": "2.8.0", 2270 - "resolved": "https://registry.npmjs.org/sonic-boom/-/sonic-boom-2.8.0.tgz", 2271 - "integrity": "sha512-kuonw1YOYYNOve5iHdSahXPOK49GqwA+LZhI6Wz/l0rP57iKyXXIHaRagOBHAPmGwJC6od2Z9zgvZ5loSgMlVg==", 2272 - "dependencies": { 2273 - "atomic-sleep": "^1.0.0" 1937 + "sonic-boom": "^3.2.0" 2274 1938 } 2275 1939 }, 2276 1940 "node_modules/pino-std-serializers": { ··· 2441 2105 } 2442 2106 }, 2443 2107 "node_modules/rimraf": { 2444 - "version": "2.7.1", 2445 - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.7.1.tgz", 2446 - "integrity": "sha512-uWjbaKIK3T1OSVptzX7Nl6PvQ3qAGtKEtVRjRuazjfL3Bx5eI409VZSqgND+4UNnmzLVdPj9FqFJNPqBZFve4w==", 2108 + "version": "5.0.5", 2109 + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-5.0.5.tgz", 2110 + "integrity": "sha512-CqDakW+hMe/Bz202FPEymy68P+G50RfMQK+Qo5YUqc9SPipvbGjCGKd0RSKEelbsfQuw3g5NZDSrlZZAJurH1A==", 2111 + "dev": true, 2447 2112 "dependencies": { 2448 - "glob": "^7.1.3" 2113 + "glob": "^10.3.7" 2449 2114 }, 2450 2115 "bin": { 2451 - "rimraf": "bin.js" 2452 - } 2453 - }, 2454 - "node_modules/rimraf/node_modules/brace-expansion": { 2455 - "version": "1.1.11", 2456 - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", 2457 - "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", 2458 - "dependencies": { 2459 - "balanced-match": "^1.0.0", 2460 - "concat-map": "0.0.1" 2116 + "rimraf": "dist/esm/bin.mjs" 2117 + }, 2118 + "engines": { 2119 + "node": ">=14" 2120 + }, 2121 + "funding": { 2122 + "url": "https://github.com/sponsors/isaacs" 2461 2123 } 2462 2124 }, 2463 2125 "node_modules/rimraf/node_modules/glob": { 2464 - "version": "7.2.3", 2465 - "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", 2466 - "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", 2126 + "version": "10.3.10", 2127 + "resolved": "https://registry.npmjs.org/glob/-/glob-10.3.10.tgz", 2128 + "integrity": "sha512-fa46+tv1Ak0UPK1TOy/pZrIybNNt4HCv7SDzwyfiOZkvZLEbjsZkJBPtDHVshZjbecAoAGSC20MjLDG/qr679g==", 2129 + "dev": true, 2467 2130 "dependencies": { 2468 - "fs.realpath": "^1.0.0", 2469 - "inflight": "^1.0.4", 2470 - "inherits": "2", 2471 - "minimatch": "^3.1.1", 2472 - "once": "^1.3.0", 2473 - "path-is-absolute": "^1.0.0" 2131 + "foreground-child": "^3.1.0", 2132 + "jackspeak": "^2.3.5", 2133 + "minimatch": "^9.0.1", 2134 + "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0", 2135 + "path-scurry": "^1.10.1" 2136 + }, 2137 + "bin": { 2138 + "glob": "dist/esm/bin.mjs" 2474 2139 }, 2475 2140 "engines": { 2476 - "node": "*" 2141 + "node": ">=16 || 14 >=14.17" 2477 2142 }, 2478 2143 "funding": { 2479 2144 "url": "https://github.com/sponsors/isaacs" 2480 2145 } 2481 2146 }, 2482 2147 "node_modules/rimraf/node_modules/minimatch": { 2483 - "version": "3.1.2", 2484 - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", 2485 - "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", 2148 + "version": "9.0.3", 2149 + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.3.tgz", 2150 + "integrity": "sha512-RHiac9mvaRw0x3AYRgDC1CxAP7HTcNrrECeA8YYJeWnpo+2Q5CegtZjaotWTWxDG3UeGA1coE05iH1mPjT/2mg==", 2151 + "dev": true, 2486 2152 "dependencies": { 2487 - "brace-expansion": "^1.1.7" 2153 + "brace-expansion": "^2.0.1" 2488 2154 }, 2489 2155 "engines": { 2490 - "node": "*" 2156 + "node": ">=16 || 14 >=14.17" 2157 + }, 2158 + "funding": { 2159 + "url": "https://github.com/sponsors/isaacs" 2491 2160 } 2492 2161 }, 2493 2162 "node_modules/safe-buffer": { ··· 2522 2191 "resolved": "https://registry.npmjs.org/secure-json-parse/-/secure-json-parse-2.7.0.tgz", 2523 2192 "integrity": "sha512-6aU+Rwsezw7VR8/nyvKTx8QpWH9FrcYiXXlqC4z5d5XQBDRqtbfsRjnwGyqbi3gddNtWHuEk9OANUotL26qKUw==" 2524 2193 }, 2525 - "node_modules/semver": { 2526 - "version": "7.6.0", 2527 - "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.0.tgz", 2528 - "integrity": "sha512-EnwXhrlwXMk9gKu5/flx5sv/an57AkRplG3hTK68W7FRDN+k+OWBj65M7719OkA82XLBxrcX0KSHj+X5COhOVg==", 2529 - "dependencies": { 2530 - "lru-cache": "^6.0.0" 2531 - }, 2532 - "bin": { 2533 - "semver": "bin/semver.js" 2534 - }, 2535 - "engines": { 2536 - "node": ">=10" 2537 - } 2538 - }, 2539 2194 "node_modules/serialize-javascript": { 2540 2195 "version": "6.0.0", 2541 2196 "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-6.0.0.tgz", ··· 2545 2200 "randombytes": "^2.1.0" 2546 2201 } 2547 2202 }, 2548 - "node_modules/set-function-length": { 2549 - "version": "1.2.1", 2550 - "resolved": "https://registry.npmjs.org/set-function-length/-/set-function-length-1.2.1.tgz", 2551 - "integrity": "sha512-j4t6ccc+VsKwYHso+kElc5neZpjtq9EnRICFZtWyBsLojhmeF/ZBd/elqm22WJh/BziDe/SBiOeAt0m2mfLD0g==", 2552 - "dependencies": { 2553 - "define-data-property": "^1.1.2", 2554 - "es-errors": "^1.3.0", 2555 - "function-bind": "^1.1.2", 2556 - "get-intrinsic": "^1.2.3", 2557 - "gopd": "^1.0.1", 2558 - "has-property-descriptors": "^1.0.1" 2559 - }, 2560 - "engines": { 2561 - "node": ">= 0.4" 2562 - } 2563 - }, 2564 2203 "node_modules/shebang-command": { 2565 2204 "version": "2.0.0", 2566 2205 "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", 2567 2206 "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", 2207 + "dev": true, 2568 2208 "dependencies": { 2569 2209 "shebang-regex": "^3.0.0" 2570 2210 }, ··· 2576 2216 "version": "3.0.0", 2577 2217 "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", 2578 2218 "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", 2219 + "dev": true, 2579 2220 "engines": { 2580 2221 "node": ">=8" 2581 2222 } ··· 2651 2292 }, 2652 2293 "engines": { 2653 2294 "node": ">=8" 2654 - } 2655 - }, 2656 - "node_modules/slash": { 2657 - "version": "2.0.0", 2658 - "resolved": "https://registry.npmjs.org/slash/-/slash-2.0.0.tgz", 2659 - "integrity": "sha512-ZYKh3Wh2z1PpEXWr0MpSBZ0V6mZHAQfYevttO11c51CaWjGTaadiKZ+wVt1PbMlDV5qhMFslpZCemhwOK7C89A==", 2660 - "engines": { 2661 - "node": ">=6" 2662 2295 } 2663 2296 }, 2664 2297 "node_modules/sonic-boom": { ··· 2832 2465 "url": "https://github.com/sponsors/isaacs" 2833 2466 } 2834 2467 }, 2835 - "node_modules/sync-content/node_modules/rimraf": { 2836 - "version": "5.0.5", 2837 - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-5.0.5.tgz", 2838 - "integrity": "sha512-CqDakW+hMe/Bz202FPEymy68P+G50RfMQK+Qo5YUqc9SPipvbGjCGKd0RSKEelbsfQuw3g5NZDSrlZZAJurH1A==", 2839 - "dev": true, 2840 - "dependencies": { 2841 - "glob": "^10.3.7" 2842 - }, 2843 - "bin": { 2844 - "rimraf": "dist/esm/bin.mjs" 2845 - }, 2846 - "engines": { 2847 - "node": ">=14" 2848 - }, 2849 - "funding": { 2850 - "url": "https://github.com/sponsors/isaacs" 2851 - } 2852 - }, 2853 2468 "node_modules/thread-stream": { 2854 2469 "version": "2.4.1", 2855 2470 "resolved": "https://registry.npmjs.org/thread-stream/-/thread-stream-2.4.1.tgz", ··· 2859 2474 } 2860 2475 }, 2861 2476 "node_modules/tmp": { 2862 - "version": "0.0.33", 2863 - "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.0.33.tgz", 2864 - "integrity": "sha512-jRCJlojKnZ3addtTOjdIqoRuPEKBvNXcGYqzO6zWZX8KfKEpnGY5jfggJQ3EjKuu8D4bJRr0y+cYJFmYbImXGw==", 2477 + "version": "0.2.1", 2478 + "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.2.1.tgz", 2479 + "integrity": "sha512-76SUhtfqR2Ijn+xllcI5P1oyannHNHByD80W1q447gU3mp9G9PSpGdWmjUOHRDPiHYacIk66W7ubDTuPF3BEtQ==", 2480 + "dev": true, 2865 2481 "dependencies": { 2866 - "os-tmpdir": "~1.0.2" 2482 + "rimraf": "^3.0.0" 2867 2483 }, 2868 2484 "engines": { 2869 - "node": ">=0.6.0" 2485 + "node": ">=8.17.0" 2870 2486 } 2871 2487 }, 2872 2488 "node_modules/tmp-promise": { ··· 2878 2494 "tmp": "^0.2.0" 2879 2495 } 2880 2496 }, 2881 - "node_modules/tmp-promise/node_modules/brace-expansion": { 2497 + "node_modules/tmp/node_modules/brace-expansion": { 2882 2498 "version": "1.1.11", 2883 2499 "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", 2884 2500 "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", ··· 2888 2504 "concat-map": "0.0.1" 2889 2505 } 2890 2506 }, 2891 - "node_modules/tmp-promise/node_modules/glob": { 2507 + "node_modules/tmp/node_modules/glob": { 2892 2508 "version": "7.2.3", 2893 2509 "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", 2894 2510 "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", ··· 2908 2524 "url": "https://github.com/sponsors/isaacs" 2909 2525 } 2910 2526 }, 2911 - "node_modules/tmp-promise/node_modules/minimatch": { 2527 + "node_modules/tmp/node_modules/minimatch": { 2912 2528 "version": "3.1.2", 2913 2529 "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", 2914 2530 "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", ··· 2920 2536 "node": "*" 2921 2537 } 2922 2538 }, 2923 - "node_modules/tmp-promise/node_modules/rimraf": { 2539 + "node_modules/tmp/node_modules/rimraf": { 2924 2540 "version": "3.0.2", 2925 2541 "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", 2926 2542 "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", ··· 2935 2551 "url": "https://github.com/sponsors/isaacs" 2936 2552 } 2937 2553 }, 2938 - "node_modules/tmp-promise/node_modules/tmp": { 2939 - "version": "0.2.1", 2940 - "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.2.1.tgz", 2941 - "integrity": "sha512-76SUhtfqR2Ijn+xllcI5P1oyannHNHByD80W1q447gU3mp9G9PSpGdWmjUOHRDPiHYacIk66W7ubDTuPF3BEtQ==", 2942 - "dev": true, 2943 - "dependencies": { 2944 - "rimraf": "^3.0.0" 2945 - }, 2946 - "engines": { 2947 - "node": ">=8.17.0" 2948 - } 2949 - }, 2950 2554 "node_modules/to-regex-range": { 2951 2555 "version": "5.0.1", 2952 2556 "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", 2953 2557 "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", 2558 + "dev": true, 2954 2559 "dependencies": { 2955 2560 "is-number": "^7.0.0" 2956 2561 }, ··· 3074 2679 "url": "https://github.com/chalk/chalk?sponsor=1" 3075 2680 } 3076 2681 }, 3077 - "node_modules/tshy/node_modules/glob": { 3078 - "version": "10.3.10", 3079 - "resolved": "https://registry.npmjs.org/glob/-/glob-10.3.10.tgz", 3080 - "integrity": "sha512-fa46+tv1Ak0UPK1TOy/pZrIybNNt4HCv7SDzwyfiOZkvZLEbjsZkJBPtDHVshZjbecAoAGSC20MjLDG/qr679g==", 3081 - "dev": true, 3082 - "dependencies": { 3083 - "foreground-child": "^3.1.0", 3084 - "jackspeak": "^2.3.5", 3085 - "minimatch": "^9.0.1", 3086 - "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0", 3087 - "path-scurry": "^1.10.1" 3088 - }, 3089 - "bin": { 3090 - "glob": "dist/esm/bin.mjs" 3091 - }, 3092 - "engines": { 3093 - "node": ">=16 || 14 >=14.17" 3094 - }, 3095 - "funding": { 3096 - "url": "https://github.com/sponsors/isaacs" 3097 - } 3098 - }, 3099 - "node_modules/tshy/node_modules/minimatch": { 3100 - "version": "9.0.3", 3101 - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.3.tgz", 3102 - "integrity": "sha512-RHiac9mvaRw0x3AYRgDC1CxAP7HTcNrrECeA8YYJeWnpo+2Q5CegtZjaotWTWxDG3UeGA1coE05iH1mPjT/2mg==", 3103 - "dev": true, 3104 - "dependencies": { 3105 - "brace-expansion": "^2.0.1" 3106 - }, 3107 - "engines": { 3108 - "node": ">=16 || 14 >=14.17" 3109 - }, 3110 - "funding": { 3111 - "url": "https://github.com/sponsors/isaacs" 3112 - } 3113 - }, 3114 - "node_modules/tshy/node_modules/rimraf": { 3115 - "version": "5.0.5", 3116 - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-5.0.5.tgz", 3117 - "integrity": "sha512-CqDakW+hMe/Bz202FPEymy68P+G50RfMQK+Qo5YUqc9SPipvbGjCGKd0RSKEelbsfQuw3g5NZDSrlZZAJurH1A==", 3118 - "dev": true, 3119 - "dependencies": { 3120 - "glob": "^10.3.7" 3121 - }, 3122 - "bin": { 3123 - "rimraf": "dist/esm/bin.mjs" 3124 - }, 3125 - "engines": { 3126 - "node": ">=14" 3127 - }, 3128 - "funding": { 3129 - "url": "https://github.com/sponsors/isaacs" 3130 - } 3131 - }, 3132 2682 "node_modules/tsx": { 3133 2683 "version": "4.7.1", 3134 2684 "resolved": "https://registry.npmjs.org/tsx/-/tsx-4.7.1.tgz", ··· 3242 2792 "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==", 3243 2793 "dev": true 3244 2794 }, 3245 - "node_modules/universalify": { 3246 - "version": "2.0.1", 3247 - "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.1.tgz", 3248 - "integrity": "sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==", 3249 - "engines": { 3250 - "node": ">= 10.0.0" 3251 - } 3252 - }, 3253 2795 "node_modules/v8-compile-cache-lib": { 3254 2796 "version": "3.0.1", 3255 2797 "resolved": "https://registry.npmjs.org/v8-compile-cache-lib/-/v8-compile-cache-lib-3.0.1.tgz", ··· 3278 2820 "version": "2.0.2", 3279 2821 "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", 3280 2822 "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", 2823 + "dev": true, 3281 2824 "dependencies": { 3282 2825 "isexe": "^2.0.0" 3283 2826 }, ··· 3289 2832 } 3290 2833 }, 3291 2834 "node_modules/with-local-tmp-dir": { 3292 - "version": "5.0.1", 3293 - "resolved": "https://registry.npmjs.org/with-local-tmp-dir/-/with-local-tmp-dir-5.0.1.tgz", 3294 - "integrity": "sha512-Ds8Ssl9sfMZArPBlSkEQwxh+EVq3IG8lWxTUipe1ZxP5eNNrkRC622ukpAkhR63jCSu5mvqJ/3bEl1RakRZufw==", 2835 + "version": "5.1.0", 2836 + "resolved": "https://registry.npmjs.org/with-local-tmp-dir/-/with-local-tmp-dir-5.1.0.tgz", 2837 + "integrity": "sha512-hjOdNpgPyO1mX880ojVlO0mCqNYghnzyn7TRUN1llHVX9N6uEBOzJteEz16v0HRmdP+AWZMPn+NtIRy9lMPUxg==", 3295 2838 "dev": true, 3296 2839 "dependencies": { 3297 2840 "@dword-design/chdir": "^2.0.0", ··· 3359 2902 "node": ">=10" 3360 2903 } 3361 2904 }, 3362 - "node_modules/yallist": { 3363 - "version": "4.0.0", 3364 - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", 3365 - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" 3366 - }, 3367 2905 "node_modules/yaml": { 3368 - "version": "2.4.0", 3369 - "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.4.0.tgz", 3370 - "integrity": "sha512-j9iR8g+/t0lArF4V6NE/QCfT+CO7iLqrXAHZbJdo+LfjqP1vR8Fg5bSiaq6Q2lOD1AUEVrEVIgABvBFYojJVYQ==", 2906 + "version": "2.4.1", 2907 + "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.4.1.tgz", 2908 + "integrity": "sha512-pIXzoImaqmfOrL7teGUBt/T7ZDnyeGBWyXQBvOVhLkWLN37GXv8NMLK406UY6dS51JfcQHsmcW5cJ441bHg6Lg==", 2909 + "dev": true, 3371 2910 "bin": { 3372 2911 "yaml": "bin.mjs" 3373 2912 },
+3 -5
package.json
··· 1 1 { 2 2 "name": "@foxxmd/logging", 3 3 "type": "module", 4 - "version": "0.0.2", 4 + "version": "0.1.0", 5 5 "repository": "https://github.com/foxxmd/logging", 6 6 "description": "", 7 7 "scripts": { ··· 9 9 "build": "tsc", 10 10 "prepare": "tshy", 11 11 "test": "mocha --reporter spec --recursive ./tests/*.test.ts", 12 - "postinstall": "patch-package", 13 12 "example": "tsx example/kitchenSink.ts" 14 13 }, 15 14 "keywords": [], ··· 60 59 "yaml": "^2.3.4" 61 60 }, 62 61 "dependencies": { 63 - "patch-package": "^8.0.0", 64 62 "pino": "^8.19.0", 65 - "pino-pretty": "^10.3.1", 66 - "pino-roll": "^1.0.0-rc.1", 63 + "pino-pretty": "github:foxxmd/pino-pretty#additionalFunctionality", 64 + "pino-roll": "github:foxxmd/pino-roll#fileAsFunc", 67 65 "pony-cause": "^2.1.10" 68 66 }, 69 67 "overrides": {
-377
patches/pino-pretty+10.3.1.patch
··· 1 - diff --git a/node_modules/pino-pretty/index.d.ts b/node_modules/pino-pretty/index.d.ts 2 - index 614d375..07dc628 100644 3 - --- a/node_modules/pino-pretty/index.d.ts 4 - +++ b/node_modules/pino-pretty/index.d.ts 5 - @@ -10,6 +10,8 @@ import { Transform } from 'stream'; 6 - import { OnUnknown } from 'pino-abstract-transport'; 7 - // @ts-ignore fall back to any if pino is not available, i.e. when running pino tests 8 - import { DestinationStream, Level } from 'pino'; 9 - +import LevelPrettifierExtras = PinoPretty.LevelPrettifierExtras; 10 - +import * as Colorette from "colorette"; 11 - 12 - type LogDescriptor = Record<string, unknown>; 13 - 14 - @@ -179,7 +181,10 @@ interface PrettyOptions_ { 15 - * } 16 - * ``` 17 - */ 18 - - customPrettifiers?: Record<string, PinoPretty.Prettifier>; 19 - + customPrettifiers?: Record<string, PinoPretty.Prettifier> & 20 - + { 21 - + level?: PinoPretty.Prettifier<PinoPretty.LevelPrettifierExtras> 22 - + }; 23 - /** 24 - * Change the level names and values to an user custom preset. 25 - * 26 - @@ -204,8 +209,10 @@ interface PrettyOptions_ { 27 - declare function build(options: PrettyOptions_): PinoPretty.PrettyStream; 28 - 29 - declare namespace PinoPretty { 30 - - type Prettifier = (inputData: string | object) => string; 31 - - type MessageFormatFunc = (log: LogDescriptor, messageKey: string, levelLabel: string) => string; 32 - + type Prettifier<T = object> = (inputData: string | object, key: string, log: object, extras: PrettifierExtras<T>) => string; 33 - + type PrettifierExtras<T = object> = {colors: Colorette.Colorette} & T; 34 - + type LevelPrettifierExtras = {label: string, labelColorized: string} 35 - + type MessageFormatFunc = (log: LogDescriptor, messageKey: string, levelLabel: string, extras: PrettifierExtras) => string; 36 - type PrettyOptions = PrettyOptions_; 37 - type PrettyStream = Transform & OnUnknown; 38 - type ColorizerFactory = typeof colorizerFactory; 39 - diff --git a/node_modules/pino-pretty/lib/colors.js b/node_modules/pino-pretty/lib/colors.js 40 - index 5bb3804..f135c33 100644 41 - --- a/node_modules/pino-pretty/lib/colors.js 42 - +++ b/node_modules/pino-pretty/lib/colors.js 43 - @@ -1,7 +1,5 @@ 44 - 'use strict' 45 - 46 - -const { LEVELS, LEVEL_NAMES } = require('./constants') 47 - - 48 - const nocolor = input => input 49 - const plain = { 50 - default: nocolor, 51 - @@ -16,6 +14,7 @@ const plain = { 52 - } 53 - 54 - const { createColors } = require('colorette') 55 - +const getLevelLabelData = require('./utils/get-level-label-data') 56 - const availableColors = createColors({ useColor: true }) 57 - const { white, bgRed, red, yellow, green, blue, gray, cyan } = availableColors 58 - 59 - @@ -44,17 +43,7 @@ function resolveCustomColoredColorizer (customColors) { 60 - 61 - function colorizeLevel (useOnlyCustomProps) { 62 - return function (level, colorizer, { customLevels, customLevelNames } = {}) { 63 - - const levels = useOnlyCustomProps ? customLevels || LEVELS : Object.assign({}, LEVELS, customLevels) 64 - - const levelNames = useOnlyCustomProps ? customLevelNames || LEVEL_NAMES : Object.assign({}, LEVEL_NAMES, customLevelNames) 65 - - 66 - - let levelNum = 'default' 67 - - if (Number.isInteger(+level)) { 68 - - levelNum = Object.prototype.hasOwnProperty.call(levels, level) ? level : levelNum 69 - - } else { 70 - - levelNum = Object.prototype.hasOwnProperty.call(levelNames, level.toLowerCase()) ? levelNames[level.toLowerCase()] : levelNum 71 - - } 72 - - 73 - - const levelStr = levels[levelNum] 74 - + const [levelStr, levelNum] = getLevelLabelData(useOnlyCustomProps, customLevels, customLevelNames)(level) 75 - 76 - return Object.prototype.hasOwnProperty.call(colorizer, levelNum) ? colorizer[levelNum](levelStr) : colorizer.default(levelStr) 77 - } 78 - @@ -67,6 +56,7 @@ function plainColorizer (useOnlyCustomProps) { 79 - } 80 - customColoredColorizer.message = plain.message 81 - customColoredColorizer.greyMessage = plain.greyMessage 82 - + customColoredColorizer.colors = createColors({ useColor: false }) 83 - return customColoredColorizer 84 - } 85 - 86 - @@ -77,6 +67,7 @@ function coloredColorizer (useOnlyCustomProps) { 87 - } 88 - customColoredColorizer.message = colored.message 89 - customColoredColorizer.greyMessage = colored.greyMessage 90 - + customColoredColorizer.colors = availableColors 91 - return customColoredColorizer 92 - } 93 - 94 - @@ -88,6 +79,7 @@ function customColoredColorizerFactory (customColors, useOnlyCustomProps) { 95 - const customColoredColorizer = function (level, opts) { 96 - return colorizeLevelCustom(level, customColored, opts) 97 - } 98 - + customColoredColorizer.colors = availableColors 99 - customColoredColorizer.message = customColoredColorizer.message || customColored.message 100 - customColoredColorizer.greyMessage = customColoredColorizer.greyMessage || customColored.greyMessage 101 - 102 - @@ -105,6 +97,7 @@ function customColoredColorizerFactory (customColors, useOnlyCustomProps) { 103 - * recognized. 104 - * @property {function} message Accepts one string parameter that will be 105 - * colorized to a predefined color. 106 - + * @property {Colorette.Colorette} colors Available color functions based on `useColor` (or `colorize`) context 107 - */ 108 - 109 - /** 110 - 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 111 - new file mode 100644 112 - index 0000000..5b27cab 113 - --- /dev/null 114 - +++ b/node_modules/pino-pretty/lib/utils/get-level-label-data.js 115 - @@ -0,0 +1,29 @@ 116 - +'use strict' 117 - + 118 - +module.exports = getLevelLabelData 119 - +const { LEVELS, LEVEL_NAMES } = require('../constants') 120 - + 121 - +/** 122 - + * Given initial settings for custom levels/names and use of only custom props 123 - + * get the level label that corresponds with a given level number 124 - + * 125 - + * @param {boolean} useOnlyCustomProps 126 - + * @param {object} customLevels 127 - + * @param {object} customLevelNames 128 - + * 129 - + * @returns {function} A function that takes a number level and returns the level's label string 130 - + */ 131 - +function getLevelLabelData (useOnlyCustomProps, customLevels, customLevelNames) { 132 - + const levels = useOnlyCustomProps ? customLevels || LEVELS : Object.assign({}, LEVELS, customLevels) 133 - + const levelNames = useOnlyCustomProps ? customLevelNames || LEVEL_NAMES : Object.assign({}, LEVEL_NAMES, customLevelNames) 134 - + return function (level) { 135 - + let levelNum = 'default' 136 - + if (Number.isInteger(+level)) { 137 - + levelNum = Object.prototype.hasOwnProperty.call(levels, level) ? level : levelNum 138 - + } else { 139 - + levelNum = Object.prototype.hasOwnProperty.call(levelNames, level.toLowerCase()) ? levelNames[level.toLowerCase()] : levelNum 140 - + } 141 - + 142 - + return [levels[levelNum], levelNum] 143 - + } 144 - +} 145 - diff --git a/node_modules/pino-pretty/lib/utils/index.js b/node_modules/pino-pretty/lib/utils/index.js 146 - index ec69d96..e083d73 100644 147 - --- a/node_modules/pino-pretty/lib/utils/index.js 148 - +++ b/node_modules/pino-pretty/lib/utils/index.js 149 - @@ -22,7 +22,8 @@ module.exports = { 150 - prettifyMetadata: require('./prettify-metadata.js'), 151 - prettifyObject: require('./prettify-object.js'), 152 - prettifyTime: require('./prettify-time.js'), 153 - - splitPropertyKey: require('./split-property-key.js') 154 - + splitPropertyKey: require('./split-property-key.js'), 155 - + getLevelLabelData: require('./get-level-label-data') 156 - } 157 - 158 - // The remainder of this file consists of jsdoc blocks that are difficult to 159 - @@ -78,6 +79,12 @@ module.exports = { 160 - * `{levelLabel} - {if pid}{pid} - {end}url:{req.url}` 161 - */ 162 - 163 - +/** 164 - + * @typedef {object} PrettifyMessageExtras 165 - + * @property {object} colors Available color functions based on `useColor` (or `colorize`) context 166 - + * the options. 167 - + */ 168 - + 169 - /** 170 - * A function that accepts a log object, name of the message key, and name of 171 - * the level label key and returns a formatted log line. 172 - @@ -90,6 +97,7 @@ module.exports = { 173 - * contains the log message. 174 - * @param {string} levelLabel The name of the key in the `log` object that 175 - * contains the log level name. 176 - + * @param {PrettifyMessageExtras} extras Additional data available for message context 177 - * @returns {string} 178 - * 179 - * @example 180 - diff --git a/node_modules/pino-pretty/lib/utils/parse-factory-options.js b/node_modules/pino-pretty/lib/utils/parse-factory-options.js 181 - index 33ffb37..0b8ec74 100644 182 - --- a/node_modules/pino-pretty/lib/utils/parse-factory-options.js 183 - +++ b/node_modules/pino-pretty/lib/utils/parse-factory-options.js 184 - @@ -8,6 +8,7 @@ const { 185 - const colors = require('../colors') 186 - const handleCustomLevelsOpts = require('./handle-custom-levels-opts') 187 - const handleCustomLevelsNamesOpts = require('./handle-custom-levels-names-opts') 188 - +const handleLevelLabelData = require('./get-level-label-data') 189 - 190 - /** 191 - * A `PrettyContext` is an object to be used by the various functions that 192 - @@ -32,6 +33,7 @@ const handleCustomLevelsNamesOpts = require('./handle-custom-levels-names-opts') 193 - * should be considered as holding error objects. 194 - * @property {string[]} errorProps A list of error object keys that should be 195 - * included in the output. 196 - + * @property {function} getLevelLabelData Pass a numeric level to return [levelLabelString,levelNum] 197 - * @property {boolean} hideObject Indicates the prettifier should omit objects 198 - * in the output. 199 - * @property {string[]} ignoreKeys Set of log data keys to omit. 200 - @@ -84,6 +86,7 @@ function parseFactoryOptions (options) { 201 - : (options.useOnlyCustomProps === 'true') 202 - const customLevels = handleCustomLevelsOpts(options.customLevels) 203 - const customLevelNames = handleCustomLevelsNamesOpts(options.customLevels) 204 - + const getLevelLabelData = handleLevelLabelData(useOnlyCustomProps, customLevels, customLevelNames) 205 - 206 - let customColors 207 - if (options.customColors) { 208 - @@ -135,6 +138,7 @@ function parseFactoryOptions (options) { 209 - customProperties, 210 - errorLikeObjectKeys, 211 - errorProps, 212 - + getLevelLabelData, 213 - hideObject, 214 - ignoreKeys, 215 - includeKeys, 216 - diff --git a/node_modules/pino-pretty/lib/utils/prettify-level.js b/node_modules/pino-pretty/lib/utils/prettify-level.js 217 - index 213ba06..2e4dce8 100644 218 - --- a/node_modules/pino-pretty/lib/utils/prettify-level.js 219 - +++ b/node_modules/pino-pretty/lib/utils/prettify-level.js 220 - @@ -26,10 +26,16 @@ function prettifyLevel ({ log, context }) { 221 - colorizer, 222 - customLevels, 223 - customLevelNames, 224 - - levelKey 225 - + levelKey, 226 - + getLevelLabelData 227 - } = context 228 - const prettifier = context.customPrettifiers?.level 229 - const output = getPropertyValue(log, levelKey) 230 - if (output === undefined) return undefined 231 - - return prettifier ? prettifier(output) : colorizer(output, { customLevels, customLevelNames }) 232 - + const labelColorized = colorizer(output, { customLevels, customLevelNames }) 233 - + if (prettifier) { 234 - + const [label] = getLevelLabelData(output) 235 - + return prettifier(output, levelKey, log, { label, labelColorized, colors: colorizer.colors }) 236 - + } 237 - + return labelColorized 238 - } 239 - diff --git a/node_modules/pino-pretty/lib/utils/prettify-level.test.js b/node_modules/pino-pretty/lib/utils/prettify-level.test.js 240 - index e735b0a..e6e5a3c 100644 241 - --- a/node_modules/pino-pretty/lib/utils/prettify-level.test.js 242 - +++ b/node_modules/pino-pretty/lib/utils/prettify-level.test.js 243 - @@ -3,6 +3,7 @@ 244 - const tap = require('tap') 245 - const prettifyLevel = require('./prettify-level') 246 - const getColorizer = require('../colors') 247 - +const getLevelLabelData = require('./get-level-label-data') 248 - const { 249 - LEVEL_KEY 250 - } = require('../constants') 251 - @@ -12,7 +13,8 @@ const context = { 252 - customLevelNames: undefined, 253 - customLevels: undefined, 254 - levelKey: LEVEL_KEY, 255 - - customPrettifiers: undefined 256 - + customPrettifiers: undefined, 257 - + getLevelLabelData: getLevelLabelData(false, {}, {}) 258 - } 259 - 260 - tap.test('returns `undefined` for unknown level', async t => { 261 - diff --git a/node_modules/pino-pretty/lib/utils/prettify-message.js b/node_modules/pino-pretty/lib/utils/prettify-message.js 262 - index 7758f1d..ee2f3dc 100644 263 - --- a/node_modules/pino-pretty/lib/utils/prettify-message.js 264 - +++ b/node_modules/pino-pretty/lib/utils/prettify-message.js 265 - @@ -54,7 +54,7 @@ function prettifyMessage ({ log, context }) { 266 - return colorizer.message(message) 267 - } 268 - if (messageFormat && typeof messageFormat === 'function') { 269 - - const msg = messageFormat(log, messageKey, levelLabel) 270 - + const msg = messageFormat(log, messageKey, levelLabel, { colors: colorizer.colors }) 271 - return colorizer.message(msg) 272 - } 273 - if (messageKey in log === false) return undefined 274 - diff --git a/node_modules/pino-pretty/lib/utils/prettify-message.test.js b/node_modules/pino-pretty/lib/utils/prettify-message.test.js 275 - index 8faf4b1..dadf8b1 100644 276 - --- a/node_modules/pino-pretty/lib/utils/prettify-message.test.js 277 - +++ b/node_modules/pino-pretty/lib/utils/prettify-message.test.js 278 - @@ -185,3 +185,54 @@ tap.test('`messageFormat` supports function definition', async t => { 279 - }) 280 - t.equal(str, '--> localhost/test') 281 - }) 282 - + 283 - +tap.test('`messageFormat` supports function definition with colorizer object', async t => { 284 - + const colorizer = getColorizer(true) 285 - + const str = prettifyMessage({ 286 - + log: { level: 30, request: { url: 'localhost/test' }, msg: 'incoming request' }, 287 - + context: { 288 - + ...context, 289 - + colorizer, 290 - + messageFormat: (log, messageKey, levelLabel, { colors }) => { 291 - + let msg = log[messageKey] 292 - + if (msg === 'incoming request') msg = `--> ${colors.red(log.request.url)}` 293 - + return msg 294 - + } 295 - + } 296 - + }) 297 - + t.equal(str, '\u001B[36m--> \u001B[31mlocalhost/test\u001B[36m\u001B[39m') 298 - +}) 299 - + 300 - +tap.test('`messageFormat` supports function definition with colorizer object when using custom colors', async t => { 301 - + const colorizer = getColorizer(true, [[30, 'brightGreen']], false) 302 - + const str = prettifyMessage({ 303 - + log: { level: 30, request: { url: 'localhost/test' }, msg: 'incoming request' }, 304 - + context: { 305 - + ...context, 306 - + colorizer, 307 - + messageFormat: (log, messageKey, levelLabel, { colors }) => { 308 - + let msg = log[messageKey] 309 - + if (msg === 'incoming request') msg = `--> ${colors.red(log.request.url)}` 310 - + return msg 311 - + } 312 - + } 313 - + }) 314 - + t.equal(str, '\u001B[36m--> \u001B[31mlocalhost/test\u001B[36m\u001B[39m') 315 - +}) 316 - + 317 - +tap.test('`messageFormat` supports function definition with colorizer object when no color is supported', async t => { 318 - + const colorizer = getColorizer(false) 319 - + const str = prettifyMessage({ 320 - + log: { level: 30, request: { url: 'localhost/test' }, msg: 'incoming request' }, 321 - + context: { 322 - + ...context, 323 - + colorizer, 324 - + messageFormat: (log, messageKey, levelLabel, { colors }) => { 325 - + let msg = log[messageKey] 326 - + if (msg === 'incoming request') msg = `--> ${colors.red(log.request.url)}` 327 - + return msg 328 - + } 329 - + } 330 - + }) 331 - + t.equal(str, '--> localhost/test') 332 - +}) 333 - diff --git a/node_modules/pino-pretty/lib/utils/prettify-object.js b/node_modules/pino-pretty/lib/utils/prettify-object.js 334 - index e4bbec1..5de0f5c 100644 335 - --- a/node_modules/pino-pretty/lib/utils/prettify-object.js 336 - +++ b/node_modules/pino-pretty/lib/utils/prettify-object.js 337 - @@ -43,7 +43,8 @@ function prettifyObject ({ 338 - customPrettifiers, 339 - errorLikeObjectKeys: errorLikeKeys, 340 - objectColorizer, 341 - - singleLine 342 - + singleLine, 343 - + colorizer 344 - } = context 345 - const keysToIgnore = [].concat(skipKeys) 346 - 347 - @@ -57,7 +58,7 @@ function prettifyObject ({ 348 - if (keysToIgnore.includes(k) === false) { 349 - // Pre-apply custom prettifiers, because all 3 cases below will need this 350 - const pretty = typeof customPrettifiers[k] === 'function' 351 - - ? customPrettifiers[k](v, k, log) 352 - + ? customPrettifiers[k](v, k, log, { colors: colorizer.colors }) 353 - : v 354 - if (errorLikeKeys.includes(k)) { 355 - errors[k] = pretty 356 - diff --git a/node_modules/pino-pretty/lib/utils/prettify-object.test.js b/node_modules/pino-pretty/lib/utils/prettify-object.test.js 357 - index 61f6424..2dde4a9 100644 358 - --- a/node_modules/pino-pretty/lib/utils/prettify-object.test.js 359 - +++ b/node_modules/pino-pretty/lib/utils/prettify-object.test.js 360 - @@ -6,6 +6,7 @@ const prettifyObject = require('./prettify-object') 361 - const { 362 - ERROR_LIKE_KEYS 363 - } = require('../constants') 364 - +const getColorizer = require('../colors') 365 - 366 - const context = { 367 - EOL: '\n', 368 - @@ -13,7 +14,8 @@ const context = { 369 - customPrettifiers: {}, 370 - errorLikeObjectKeys: ERROR_LIKE_KEYS, 371 - objectColorizer: colors(), 372 - - singleLine: false 373 - + singleLine: false, 374 - + colorizer: getColorizer() 375 - } 376 - 377 - tap.test('returns empty string if no properties present', async t => {
-60
patches/pino-roll+1.0.0-rc.1.patch
··· 1 - diff --git a/node_modules/pino-roll/lib/utils.js b/node_modules/pino-roll/lib/utils.js 2 - index c84cd8f..0be7f5e 100644 3 - --- a/node_modules/pino-roll/lib/utils.js 4 - +++ b/node_modules/pino-roll/lib/utils.js 5 - @@ -62,14 +62,19 @@ function getNext (frequency) { 6 - return getNextCustom(frequency) 7 - } 8 - 9 - -function buildFileName (fileName, lastNumber = 1, extension) { 10 - - if (!fileName) { 11 - +function getFileName (fileVal) { 12 - + if (!fileVal) { 13 - throw new Error('No file name provided') 14 - } 15 - - return `${fileName}.${lastNumber}${extension ?? ''}` 16 - + return typeof fileVal === 'function' ? fileVal() : fileVal 17 - } 18 - 19 - -async function detectLastNumber (fileName, time = null) { 20 - +function buildFileName (fileVal, lastNumber = 1, extension) { 21 - + return `${getFileName(fileVal)}.${lastNumber}${extension ?? ''}` 22 - +} 23 - + 24 - +async function detectLastNumber (fileVal, time = null) { 25 - + const fileName = getFileName(fileVal) 26 - try { 27 - const numbers = await readFileTrailingNumbers(dirname(fileName), time) 28 - return numbers.sort((a, b) => b - a)[0] 29 - @@ -102,4 +107,4 @@ async function isMatchingTime (filePath, time) { 30 - return birthtimeMs >= time 31 - } 32 - 33 - -module.exports = { buildFileName, detectLastNumber, parseFrequency, getNext, parseSize } 34 - +module.exports = { buildFileName, detectLastNumber, parseFrequency, getNext, parseSize, getFileName } 35 - diff --git a/node_modules/pino-roll/pino-roll.js b/node_modules/pino-roll/pino-roll.js 36 - index 800d59f..68c42e9 100644 37 - --- a/node_modules/pino-roll/pino-roll.js 38 - +++ b/node_modules/pino-roll/pino-roll.js 39 - @@ -3,12 +3,19 @@ 40 - const SonicBoom = require('sonic-boom') 41 - const { buildFileName, detectLastNumber, parseSize, parseFrequency, getNext } = require('./lib/utils') 42 - 43 - +/** 44 - + * A function that returns a string path to the base file name 45 - + * 46 - + * @typedef {function} LogFilePath 47 - + * @returns {string} 48 - + */ 49 - + 50 - /** 51 - * @typedef {object} Options 52 - * 53 - - * @property {string} file - Absolute or relative path to the log file. 54 - + * @property {string|LogFilePath} file - Absolute or relative path to the log file. 55 - * Your application needs the write right on the parent folder. 56 - - * Number will be appened to this file name. 57 - + * Number will be appended to this file name. 58 - * When the parent folder already contains numbered files, numbering will continue based on the highest number. 59 - * If this path does not exist, the logger with throw an error unless you set `mkdir` to `true`. 60 - *