{"_id":"mercurius-logging","_rev":"8-4fe7e42e3f8d3c6ac760307e1f320d78","name":"mercurius-logging","dist-tags":{"latest":"2.0.0"},"versions":{"1.0.0":{"name":"mercurius-logging","version":"1.0.0","keywords":[],"author":{"url":"https://github.com/Eomm","name":"Manuel Spigolon","email":"behemoth89@gmail.com"},"license":"MIT","_id":"mercurius-logging@1.0.0","maintainers":[{"name":"eomm","email":"behemoth89@gmail.com"}],"homepage":"https://github.com/Eomm/mercurius-logging#readme","bugs":{"url":"https://github.com/Eomm/mercurius-logging/issues"},"dist":{"shasum":"e15b317518c870f69daec30dcce390759ed579eb","tarball":"https://registry.npmjs.org/mercurius-logging/-/mercurius-logging-1.0.0.tgz","fileCount":7,"integrity":"sha512-QHz14glV/Yopzs4A5VnBphL7PjRcwC4lB9NezS6gdhrVbpUyj/waGxtgGgVYwoHHO1ep//3WTMnzp1C+8voWWw==","signatures":[{"sig":"MEUCIQDLKoq5EmTuOKsPOAsoyFayyTbZ/+5KpRuVsKWF7pFpYwIgB0GypEycso0iyWG8A37koZpflcbvsWBfzsexPg4VJRI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":9861,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi97E0ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpmHRAAgZXzJfPTai3q2u5HuBwaeONOluYnwsmxjunWvBiBFLa/uVaa\r\nbmA/OkkTTF/bZjOW0gJlMLX3SnSgHjQAfBEBEVBcpgPYm1UDOkirSpU/m/Ue\r\nKYImkOLiOKJqnJdoyO9jRq9BCAyVe+kelD5kKJacA3+QB3VEvVtiyNnB+/i1\r\njEYlL8I7rPzkGKY1Y4ZWmARsnXb26UWH5Bx+Yf7GdAq/yzXwC7jqd9eIj2/1\r\nU9pmFZAdqhVeZ3Rw0e7Y5zdOg1fkinXUfi1/u4wGrPcBrRmLLKlkrHMWWzlE\r\n8wyDi6qC5s1+q1S+9gRct9iYwlocthcW+cbNoaR9WzSjG+/CC7mBkJeCzwpx\r\ndUDtXv9RkDkfi05ascPNuBXObG1Um77KPcJ5WnNyGIOw+J1Zpu1tUPpKvrEC\r\ndi1Yq1mGtnldozqg9rMfGhmUi8hdu/tDy4w8P3J0JR3viNkzeNbjllQpU/vH\r\nArLV0osg8/DaZZSDx/J62M3cczJF18Hq6Ce9mipL2U+U88dcZNrtm0aK8XOe\r\nm6NEZtlDJ0XU/PUcx3oJecloUhVi+NJXYn0fLsfL5LV+IZqKVyv691IhwwLK\r\nZqqUGU3diymS1x5O1xPUSCZS5gtZc7wKxXhaXlyh/YkHVhldIzHfxYSFOztg\r\nqTjZQoA0Hp7uJO+385D37qVp6ae9eTLJ/90=\r\n=Cgwv\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","gitHead":"ddff5647e77f8eac68c767fbd12ed4f8bf9e77bb","scripts":{"lint":"standard","test":"npm run lint && npm run test:unit","lint:fix":"standard --fix","test:unit":"tap test/**/*.test.js"},"_npmUser":{"name":"eomm","email":"behemoth89@gmail.com"},"repository":{"url":"git+https://github.com/Eomm/mercurius-logging.git","type":"git"},"_npmVersion":"8.10.0","description":"Log the GraphQL details","directories":{},"_nodeVersion":"16.13.0","dependencies":{"fastify-plugin":"^4.2.0"},"_hasShrinkwrap":false,"devDependencies":{"tap":"^16.3.0","split2":"^4.1.0","fastify":"^4.4.0","standard":"^17.0.0","mercurius":"^10.1.0"},"_npmOperationalInternal":{"tmp":"tmp/mercurius-logging_1.0.0_1660399924322_0.3252039517468164","host":"s3://npm-registry-packages"}},"1.1.0":{"name":"mercurius-logging","version":"1.1.0","keywords":["graphql","mercurius","plugin","logging","log","debug","one-liner"],"author":{"url":"https://github.com/Eomm","name":"Manuel Spigolon","email":"behemoth89@gmail.com"},"license":"MIT","_id":"mercurius-logging@1.1.0","maintainers":[{"name":"eomm","email":"behemoth89@gmail.com"}],"homepage":"https://github.com/Eomm/mercurius-logging#readme","bugs":{"url":"https://github.com/Eomm/mercurius-logging/issues"},"dist":{"shasum":"54b5e36d8c07fcd368c558dc16f1252e3d33f9ac","tarball":"https://registry.npmjs.org/mercurius-logging/-/mercurius-logging-1.1.0.tgz","fileCount":8,"integrity":"sha512-fc2zM/FWMxhztLLvlgJSrIprU/UMU5iEoiZoBdveAvJn2fCDvT+adZ/i2QXnsn522WqKm9CxmFtuCJMKamTlSQ==","signatures":[{"sig":"MEUCIQDjzl5zWOoJRL599gdYkJFyRlab1ORZ4tfF6B2UkP2mpAIgV4sPhV2uxDCflIQdF3RiV2jd0FHHj3BspnPcZb8R4Ic=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":17500,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjhP50ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrlGhAAiwXJF+VsH0w2Q++vxxHAwOwDvbveq1LKtCb7H4yl5WwCSqJ8\r\nd9IFkJmd5UeHBUpeJ44nrwJPNFzwlAd4N4my9pa2PZnC029AdBT0YCkTJ8Eq\r\nmzhDy3D1WrqX5WpnbGFY3pTliduXw8ASgnTEB+n8haTpW3wYVtt2LUyJwunn\r\nC1D3RawZ3w9ZMmmJuf3A28sOSU2Rloi6BRmCVKIbZ1nHQD1uBiBLnEOg2fbZ\r\ngOzL+IWIu+gqcumrz2496Tp1SdqZJEiFs6wEtM1rdzBA4b2iqwvXfEQ4wXj9\r\nI5KohoUSId3x+bo3sNzH56vRfCAycDNY5zoTA3SsXl0W2l8luU4ODIH0FBzA\r\nvoKjng72pru9RXCAP6CXAVm1v1vzzd8jjS6Ky5ocx23P59c3a3OpBL2XtCZz\r\nyJ17wCNShGY6dMzts5o4iKdHQa789jHG/q3YFevSIX2/OlmBdrq24L/Mryxr\r\nbxZwrfHxOCe9N35jKJjwnDRBDODltCQ1YPrjWwYDsokY6qUeXtBSzsZzdZTZ\r\n/lY37tHEWeauqghCl2IK7IzswvjU4YubRsPPHKM9FtTxstNnyR0VCq5XuIyp\r\nsxKr9BwQSNJZ1UPOmuPgvPoS3CR+wkOG74PUpJy7PoZtLoNlX+Qpg1hTS2M5\r\nXp7KryYSh2kmBlW3KRykWNm/UMRWKoNpfYw=\r\n=EYXT\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","gitHead":"c6bdc016c4ffd835f86180598da5fca0de4e5f09","scripts":{"lint":"standard","test":"npm run lint && npm run test:unit","lint:fix":"standard --fix","test:unit":"tap test/**/*.test.js"},"_npmUser":{"name":"eomm","email":"behemoth89@gmail.com"},"repository":{"url":"git+https://github.com/Eomm/mercurius-logging.git","type":"git"},"_npmVersion":"8.10.0","description":"Log the GraphQL details","directories":{},"_nodeVersion":"16.13.0","dependencies":{"fastify-plugin":"^4.2.0"},"_hasShrinkwrap":false,"devDependencies":{"tap":"^16.3.0","split2":"^4.1.0","fastify":"^4.4.0","standard":"^17.0.0","mercurius":"^11.0.0"},"_npmOperationalInternal":{"tmp":"tmp/mercurius-logging_1.1.0_1669660276718_0.5685326169699789","host":"s3://npm-registry-packages"}},"1.2.0":{"name":"mercurius-logging","version":"1.2.0","keywords":["graphql","mercurius","plugin","logging","log","debug","fastify","fastify-plugin","one-liner"],"author":{"url":"https://github.com/Eomm","name":"Manuel Spigolon","email":"behemoth89@gmail.com"},"license":"MIT","_id":"mercurius-logging@1.2.0","maintainers":[{"name":"eomm","email":"behemoth89@gmail.com"}],"homepage":"https://github.com/Eomm/mercurius-logging#readme","bugs":{"url":"https://github.com/Eomm/mercurius-logging/issues"},"dist":{"shasum":"bfabcf24f779ed8ffa79e9c6c7b2995191b6c7ca","tarball":"https://registry.npmjs.org/mercurius-logging/-/mercurius-logging-1.2.0.tgz","fileCount":10,"integrity":"sha512-MWDVvgVp/LnDEoCga9zLoA8hg0k81Bzg1Z6G6gxjoiWKkumuGXl7ul9/Gx4a+7PtI9GQ+2VmLpb+FzHocdFJpg==","signatures":[{"sig":"MEUCIGNwXUb4SSOUVWZmW8jXFhx/ou1YYC5dI9eCiqhr/KvuAiEAy80cvhT4DVgbXOAqBtFCRXev78kQsVXnEyEYYD7Df34=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":19132,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjldF7ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqGoxAAk3CH5em2r4Os3tTB6v2Dl+ND2Up3Y+OqSiVqK1XOglkomHJ3\r\nh2XJKPJGY5GPi5RB02QhPbaIDdS1aKkxYvzXc5GnXntg0vxsFmJkaOPJBxIb\r\nrozC4Czz03a6mIMz7ElL3GXSOpEUG9a8VYJfdD8YKchHp8n7p2Fv21DmG2/7\r\na7LPSwEB3u5LIyNBn2oCtAZ1m6rf8QhJtXSMCaQmmDtvNwVETQ2c3j+rSN+v\r\nSb6lGWqbgjMgeSeLpvg6nYe9e3PS3cdrRypcerjqR9OLKudwuphu1i5m7PGN\r\nNuiLZ/0SwY91bWww2Fo4BgDHnwkDuONuMx0mGh518cn35hGuj6M4TsbQgys1\r\n3J+iJvbKEGgbr9PYDrQzL9/wB9mf7StI9pvpZUhGLEnW3JTxUoZBdVuj2IK3\r\nyCbemSiXfZ3F91QnsiDRnPm78PYzQSjSH1c1M2Cs1zP5+C4lqlFy90nLkrTK\r\nHeqOjoWYxvX9oox5KCq0DyuzyXF9JxiwbUJBJNLR0dLTVlj5S4RVHtX/MAob\r\nnZ8mCg8vsJjnMpXEFx7gNGN12o/0i1VR3U2XWaWN6fLQ+Wr9hYyQqqRqZl4o\r\nI6izwSC8SsNOyljvjuTkq3WmXSwdflh9v64uJKqC2OyMF4OrWEVK9TBpNsaN\r\nqwJ2N2AVFPaPn7+cnUhbN6PmJsPeOrROYK4=\r\n=N3YR\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","types":"types/index.d.ts","gitHead":"e97a5186f2b847fe582e1cf4928b68b0ce3d0ed9","scripts":{"lint":"standard && npm run lint:typescript","test":"tap test/**/*.test.js && tsd","lint:fix":"standard --fix","test:unit":"tap test/**/*.test.js","test:types":"tsd","lint:typescript":"standard --parser @typescript-eslint/parser --plugin @typescript-eslint/eslint-plugin types/**/*.ts"},"_npmUser":{"name":"eomm","email":"behemoth89@gmail.com"},"repository":{"url":"git+https://github.com/Eomm/mercurius-logging.git","type":"git"},"_npmVersion":"8.10.0","description":"Log the GraphQL details","directories":{},"_nodeVersion":"16.13.0","dependencies":{"fastify-plugin":"^4.2.0"},"_hasShrinkwrap":false,"devDependencies":{"tap":"^16.3.0","tsd":"^0.25.0","split2":"^4.1.0","fastify":"^4.4.0","standard":"^17.0.0","mercurius":"^11.0.0","@types/node":"^18.11.12","@typescript-eslint/parser":"^5.46.0","@typescript-eslint/eslint-plugin":"^5.46.0"},"_npmOperationalInternal":{"tmp":"tmp/mercurius-logging_1.2.0_1670762874992_0.05044814017389476","host":"s3://npm-registry-packages"}},"1.2.1":{"name":"mercurius-logging","version":"1.2.1","keywords":["graphql","mercurius","plugin","logging","log","debug","fastify","fastify-plugin","one-liner"],"author":{"url":"https://github.com/Eomm","name":"Manuel Spigolon","email":"behemoth89@gmail.com"},"license":"MIT","_id":"mercurius-logging@1.2.1","maintainers":[{"name":"eomm","email":"behemoth89@gmail.com"}],"homepage":"https://github.com/Eomm/mercurius-logging#readme","bugs":{"url":"https://github.com/Eomm/mercurius-logging/issues"},"dist":{"shasum":"efd90d24d6224f5f13f37a636da3e281ecacbdb1","tarball":"https://registry.npmjs.org/mercurius-logging/-/mercurius-logging-1.2.1.tgz","fileCount":10,"integrity":"sha512-WnLV8gaU/Q5jKYJrmPkVVrF5BvXshJa6lNf88jGPR3GWN3tocenXt6M4FTCSjA+iaFgqgKpCsbbiIhtD8H9uxw==","signatures":[{"sig":"MEUCIQCyTqJFGmfhQiacd8fTZG2LfjMo6EFpOpIm8SIt27f4NAIgCHGsBaaYLcezx51UGuEhhj20b+JsayyMG3M3IYEyIOs=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":25249},"main":"index.js","types":"types/index.d.ts","gitHead":"cece2d8297cac000e7c1dd414e283166230bf95b","scripts":{"lint":"standard && npm run lint:typescript","test":"c8 --100 ava && tsd","lint:fix":"standard --fix","test:unit":"ava","test:types":"tsd","lint:typescript":"standard --parser @typescript-eslint/parser --plugin @typescript-eslint/eslint-plugin types/**/*.ts"},"_npmUser":{"name":"eomm","email":"behemoth89@gmail.com"},"repository":{"url":"git+https://github.com/Eomm/mercurius-logging.git","type":"git"},"_npmVersion":"9.5.0","description":"Log the GraphQL details","directories":{},"_nodeVersion":"18.15.0","dependencies":{"fastify-plugin":"^4.2.0"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^8.0.0","ava":"^5.3.1","tsd":"^0.28.0","split2":"^4.1.0","fastify":"^4.4.0","standard":"^17.0.0","mercurius":"^13.0.0","@types/node":"^20.1.0","@typescript-eslint/parser":"^5.46.0","@typescript-eslint/eslint-plugin":"^5.46.0"},"_npmOperationalInternal":{"tmp":"tmp/mercurius-logging_1.2.1_1689145308035_0.8203746179379716","host":"s3://npm-registry-packages"}},"1.3.0":{"name":"mercurius-logging","version":"1.3.0","keywords":["graphql","mercurius","plugin","logging","log","debug","fastify","fastify-plugin","one-liner"],"author":{"url":"https://github.com/Eomm","name":"Manuel Spigolon","email":"behemoth89@gmail.com"},"license":"MIT","_id":"mercurius-logging@1.3.0","maintainers":[{"name":"eomm","email":"behemoth89@gmail.com"}],"homepage":"https://github.com/Eomm/mercurius-logging#readme","bugs":{"url":"https://github.com/Eomm/mercurius-logging/issues"},"dist":{"shasum":"b4b49c555a7b8dee2c938c72e4115c9c69934d20","tarball":"https://registry.npmjs.org/mercurius-logging/-/mercurius-logging-1.3.0.tgz","fileCount":6,"integrity":"sha512-bkc6RipAnESKeyB5qLx1R5InYD+QndxFcLXhdvB3yQ3tFkqBWYJFxQEmw3jixPs2v1XfNII1CDUx0J2lJZfGpQ==","signatures":[{"sig":"MEUCIQDmI7zw9mU0/fForaLeKoPuoIUezi2SglZnz5UIjEuywgIgOIZQeIARBPWk5LU/XlNIeDq76uZKZ6bL2IRcfTeZwF4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":11698},"main":"index.js","types":"types/index.d.ts","gitHead":"e7f4db111b1682055551b63c83719cb65b76444c","scripts":{"lint":"standard && npm run lint:typescript","test":"c8 --100 ava && tsd","lint:fix":"standard --fix","test:unit":"ava","test:types":"tsd","lint:typescript":"standard --parser @typescript-eslint/parser --plugin @typescript-eslint/eslint-plugin types/**/*.ts"},"_npmUser":{"name":"eomm","email":"behemoth89@gmail.com"},"repository":{"url":"git+https://github.com/Eomm/mercurius-logging.git","type":"git"},"_npmVersion":"9.5.0","description":"Log the GraphQL details","directories":{},"_nodeVersion":"18.15.0","dependencies":{"fastify-plugin":"^4.2.0"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^8.0.0","ava":"^5.3.1","tsd":"^0.28.0","split2":"^4.1.0","fastify":"^4.4.0","graphql":"^16.8.0","standard":"^17.0.0","mercurius":"^13.0.0","@types/node":"^20.1.0","@typescript-eslint/parser":"^6.4.0","@typescript-eslint/eslint-plugin":"^6.4.0"},"_npmOperationalInternal":{"tmp":"tmp/mercurius-logging_1.3.0_1692087368882_0.837322250636334","host":"s3://npm-registry-packages"}},"1.3.1":{"name":"mercurius-logging","version":"1.3.1","keywords":["graphql","mercurius","plugin","logging","log","debug","fastify","fastify-plugin","one-liner"],"author":{"url":"https://github.com/Eomm","name":"Manuel Spigolon","email":"behemoth89@gmail.com"},"license":"MIT","_id":"mercurius-logging@1.3.1","maintainers":[{"name":"eomm","email":"behemoth89@gmail.com"}],"homepage":"https://github.com/Eomm/mercurius-logging#readme","bugs":{"url":"https://github.com/Eomm/mercurius-logging/issues"},"dist":{"shasum":"9f5d2e934025a12793935b85219945d7ca868ca0","tarball":"https://registry.npmjs.org/mercurius-logging/-/mercurius-logging-1.3.1.tgz","fileCount":6,"integrity":"sha512-HIAOgNco80U4A6vTnED6K6lw+Xw3eCmwWjwDmz7uZvrXb6ciDEzwfiS3aUskslsGnmHmfrBySIWPxr3NIvhmuA==","signatures":[{"sig":"MEYCIQDvjHwR8PcyOLjYhUuYcOyV5MSjB5U89ZejSyQ+TRhngwIhAIAPFEGSMHWfRswDbZpd8ivP2GYXsEfztfTH7Ql5LX3E","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":12105},"main":"index.js","types":"types/index.d.ts","gitHead":"79950ce8c6063c8add53be0a4b6fd10df3a70192","scripts":{"lint":"standard && npm run lint:typescript","test":"c8 --100 ava && tsd","lint:fix":"standard --fix","test:unit":"ava","test:types":"tsd","lint:typescript":"standard --parser @typescript-eslint/parser --plugin @typescript-eslint/eslint-plugin types/**/*.ts"},"_npmUser":{"name":"eomm","email":"behemoth89@gmail.com"},"repository":{"url":"git+https://github.com/Eomm/mercurius-logging.git","type":"git"},"_npmVersion":"10.1.0","description":"Log the GraphQL details","directories":{},"_nodeVersion":"20.8.0","dependencies":{"fastify-plugin":"^4.2.0"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^8.0.0","ava":"^5.3.1","tsd":"^0.29.0","split2":"^4.1.0","fastify":"^4.4.0","graphql":"^16.8.0","standard":"^17.0.0","mercurius":"^13.0.0","@types/node":"^20.1.0","@typescript-eslint/parser":"^6.4.0","@typescript-eslint/eslint-plugin":"^6.4.0"},"_npmOperationalInternal":{"tmp":"tmp/mercurius-logging_1.3.1_1697647463128_0.0062714262171696955","host":"s3://npm-registry-packages"}},"1.4.0":{"name":"mercurius-logging","version":"1.4.0","keywords":["graphql","mercurius","plugin","logging","log","debug","fastify","fastify-plugin","one-liner"],"author":{"url":"https://github.com/Eomm","name":"Manuel Spigolon","email":"behemoth89@gmail.com"},"license":"MIT","_id":"mercurius-logging@1.4.0","maintainers":[{"name":"eomm","email":"behemoth89@gmail.com"}],"homepage":"https://github.com/Eomm/mercurius-logging#readme","bugs":{"url":"https://github.com/Eomm/mercurius-logging/issues"},"dist":{"shasum":"4a024f75295187447a95cc8ddc0a936d9a6164f6","tarball":"https://registry.npmjs.org/mercurius-logging/-/mercurius-logging-1.4.0.tgz","fileCount":6,"integrity":"sha512-EkN0/tEGKWGS2b60qpTyzOYzQd+mXjj9kcuxXwLlxd9ktgnh/1bCtATAMsmHoxeIx8gGhPjyA8YA84RoZ+r9jg==","signatures":[{"sig":"MEUCIQDbreDx8zZBrKGe0bGd52f2pOhj3hWAHhNjYF6/omm+GAIgXP0bOb4E/t07HPeOp8P7IMfUAnK/Jkx4p5JJnTa4sLs=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":13790},"main":"index.js","types":"types/index.d.ts","gitHead":"c1696378b2e86e195090ff8b3893dfca1fea8ff6","scripts":{"lint":"standard && npm run lint:typescript","test":"c8 --100 ava && tsd","lint:fix":"standard --fix","test:unit":"ava","test:types":"tsd","lint:typescript":"standard --parser @typescript-eslint/parser --plugin @typescript-eslint/eslint-plugin types/**/*.ts"},"_npmUser":{"name":"eomm","email":"behemoth89@gmail.com"},"repository":{"url":"git+https://github.com/Eomm/mercurius-logging.git","type":"git"},"_npmVersion":"10.1.0","description":"Log the GraphQL details","directories":{},"_nodeVersion":"20.8.0","dependencies":{"fastify-plugin":"^4.2.0"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^8.0.0","ava":"^5.3.1","tsd":"^0.29.0","split2":"^4.1.0","fastify":"^4.4.0","graphql":"^16.8.0","standard":"^17.0.0","mercurius":"^13.0.0","@types/node":"^20.1.0","@typescript-eslint/parser":"^6.4.0","@typescript-eslint/eslint-plugin":"^6.4.0"},"_npmOperationalInternal":{"tmp":"tmp/mercurius-logging_1.4.0_1698338271913_0.026996751423050247","host":"s3://npm-registry-packages"}},"1.4.1":{"name":"mercurius-logging","version":"1.4.1","keywords":["graphql","mercurius","plugin","logging","log","debug","fastify","fastify-plugin","one-liner"],"author":{"url":"https://github.com/Eomm","name":"Manuel Spigolon","email":"behemoth89@gmail.com"},"license":"MIT","_id":"mercurius-logging@1.4.1","maintainers":[{"name":"eomm","email":"behemoth89@gmail.com"}],"homepage":"https://github.com/Eomm/mercurius-logging#readme","bugs":{"url":"https://github.com/Eomm/mercurius-logging/issues"},"dist":{"shasum":"ad3c93096c86b63e028abe1ffe845bd6c5cdc477","tarball":"https://registry.npmjs.org/mercurius-logging/-/mercurius-logging-1.4.1.tgz","fileCount":6,"integrity":"sha512-TEhW/8W9Knf7eH9NSrBX0ljB/M9ZpRhKFxbxehc7zpdVaycJDw4A0kbbTVaAndXHxFLJI4auMcN2pJuZ+cK/bQ==","signatures":[{"sig":"MEUCIHKkUQQoKs4GKGwXdPAtpKw4mxkcJGSTXIeYZCVBTfogAiEA8ACTF68gdu/ZbyUaNn5faAxKoQZNeuGGsUTYAxfywmg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":14034},"main":"index.js","types":"types/index.d.ts","gitHead":"e0fb1d3b07ba8ec9daaad37229e8d42e7b058f39","scripts":{"lint":"standard && npm run lint:typescript","test":"c8 --100 ava && tsd","lint:fix":"standard --fix","test:unit":"ava","test:types":"tsd","lint:typescript":"standard --parser @typescript-eslint/parser --plugin @typescript-eslint/eslint-plugin types/**/*.ts"},"_npmUser":{"name":"eomm","email":"behemoth89@gmail.com"},"repository":{"url":"git+https://github.com/Eomm/mercurius-logging.git","type":"git"},"_npmVersion":"10.1.0","description":"Log the GraphQL details","directories":{},"_nodeVersion":"20.8.0","dependencies":{"fastify-plugin":"^4.2.0"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^10.1.2","ava":"^5.3.1","tsd":"^0.31.0","split2":"^4.1.0","fastify":"^4.4.0","graphql":"^16.8.0","standard":"^17.0.0","mercurius":"^14.0.0","@types/node":"^20.1.0","@typescript-eslint/parser":"^6.4.0","@typescript-eslint/eslint-plugin":"^6.4.0"},"_npmOperationalInternal":{"tmp":"tmp/mercurius-logging_1.4.1_1718654076010_0.35098532255155623","host":"s3://npm-registry-packages"}},"2.0.0":{"name":"mercurius-logging","version":"2.0.0","description":"Log the GraphQL details","main":"index.js","types":"types/index.d.ts","scripts":{"lint":"standard && npm run lint:typescript","lint:fix":"standard --fix","lint:typescript":"standard --parser @typescript-eslint/parser --plugin @typescript-eslint/eslint-plugin types/**/*.ts","test":"tap --show-full-coverage && tsd","test:unit":"tap --show-full-coverage","test:types":"tsd"},"repository":{"type":"git","url":"git+https://github.com/Eomm/mercurius-logging.git"},"keywords":["graphql","mercurius","plugin","logging","log","debug","fastify","fastify-plugin","one-liner"],"author":{"name":"Manuel Spigolon","email":"behemoth89@gmail.com","url":"https://github.com/Eomm"},"license":"MIT","bugs":{"url":"https://github.com/Eomm/mercurius-logging/issues"},"homepage":"https://github.com/Eomm/mercurius-logging#readme","devDependencies":{"@types/node":"^22.0.0","@typescript-eslint/eslint-plugin":"^7.0.0","@typescript-eslint/parser":"^7.0.0","fastify":"^5.0.0","graphql":"^16.8.0","mercurius":"^15.0.0","split2":"^4.1.0","standard":"^17.0.0","tap":"^21.0.0","tsd":"^0.31.0"},"dependencies":{"fastify-plugin":"^5.0.0"},"_id":"mercurius-logging@2.0.0","gitHead":"15d4c1300a895451309e2a3bd03fb2026e27af16","_nodeVersion":"20.8.0","_npmVersion":"10.1.0","dist":{"integrity":"sha512-75y/0BHAO9SNdbW4gcaL0MAoRPoTuJvb7wYFJeZtC7xzgXfIAYdCBDJgHdD117S9S/QJAStCMv/LhRp59ysmnw==","shasum":"b8e4456cabf8f02cd2d1adbff142108ecb9c3729","tarball":"https://registry.npmjs.org/mercurius-logging/-/mercurius-logging-2.0.0.tgz","fileCount":6,"unpackedSize":14295,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDZoIp451ClOvhQMOqsZVdzntG1NaHPcyCaO82HsivKzQIhAKsysmmu5T8MJa9NO0puTaDOAntZzazLqvCDeM29BOW1"}]},"_npmUser":{"name":"eomm","email":"behemoth89@gmail.com"},"directories":{},"maintainers":[{"name":"eomm","email":"behemoth89@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mercurius-logging_2.0.0_1726763331236_0.6688980995864915"},"_hasShrinkwrap":false}},"time":{"created":"2022-08-13T14:12:04.321Z","modified":"2024-09-19T16:28:51.614Z","1.0.0":"2022-08-13T14:12:04.533Z","1.1.0":"2022-11-28T18:31:16.901Z","1.2.0":"2022-12-11T12:47:55.182Z","1.2.1":"2023-07-12T07:01:48.223Z","1.3.0":"2023-08-15T08:16:09.081Z","1.3.1":"2023-10-18T16:44:23.331Z","1.4.0":"2023-10-26T16:37:52.161Z","1.4.1":"2024-06-17T19:54:36.188Z","2.0.0":"2024-09-19T16:28:51.425Z"},"bugs":{"url":"https://github.com/Eomm/mercurius-logging/issues"},"author":{"name":"Manuel Spigolon","email":"behemoth89@gmail.com","url":"https://github.com/Eomm"},"license":"MIT","homepage":"https://github.com/Eomm/mercurius-logging#readme","keywords":["graphql","mercurius","plugin","logging","log","debug","fastify","fastify-plugin","one-liner"],"repository":{"type":"git","url":"git+https://github.com/Eomm/mercurius-logging.git"},"description":"Log the GraphQL details","maintainers":[{"name":"eomm","email":"behemoth89@gmail.com"}],"readme":"# mercurius-logging\n\n[![ci](https://github.com/Eomm/mercurius-logging/actions/workflows/ci.yml/badge.svg)](https://github.com/Eomm/mercurius-logging/actions/workflows/ci.yml)\n[![npm](https://img.shields.io/npm/v/mercurius-logging)](https://www.npmjs.com/package/mercurius-logging)\n[![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)\n\nThis plugin add a Log with all the GraphQL details you need.\n\n## The issue\n\nBy default, Fastify logs a simple request that shows always the same `url`:\n\n```json\n{\n  \"level\": 30,\n  \"time\": 1660395516356,\n  \"pid\": 83316,\n  \"hostname\": \"eomm\",\n  \"name\": \"gateway\",\n  \"reqId\": \"req-1\",\n  \"req\": {\n    \"method\": \"POST\",\n    \"url\": \"/graphql\",\n    \"hostname\": \"localhost:60767\",\n    \"remoteAddress\": \"127.0.0.1\",\n    \"remotePort\": 60769\n  },\n  \"msg\": \"incoming request\"\n}\n```\n\nThis output does not let you know which queries or mutations are being executed,\nunless you print or inspect the GQL payload.\n\nThis plugin adds this log output to your application:\n\n```json\n{\n  \"level\": 30,\n  \"time\": 1660395516406,\n  \"pid\": 83316,\n  \"hostname\": \"eomm\",\n  \"name\": \"gateway\",\n  \"reqId\": \"req-1\",\n  \"graphql\": {\n    \"queries\": [\n      \"myTeam\",\n      \"myTeam\"\n    ]\n  }\n}\n```\n\nWhen the request contains some mutations:\n\n```json\n{\n  \"level\": 30,\n  \"time\": 1660395516406,\n  \"pid\": 83316,\n  \"hostname\": \"eomm\",\n  \"name\": \"gateway\",\n  \"reqId\": \"req-1\",\n  \"graphql\": {\n    \"mutations\": [\n      \"resetCounter\"\n    ]\n  }\n}\n```\n\nHere a complete example when you turn on all the log options:\n\n```json5\n{\n  \"level\": 30,\n  \"time\": 1660395516406,\n  \"pid\": 83316,\n  \"hostname\": \"eomm\",\n  \"name\": \"gateway\",\n  \"reqId\": \"req-1\",\n  \"graphql\": {\n    \"queries\": [\n      \"a:add\",\n      \"b:add\",\n      \"c:add\",\n      \"d:add\"\n    ],\n    \"operationName\": \"baam\",\n    \"body\": \"\n      query boom($num: Int!) {\n        a: add(x: $num, y: $num)\n        b: add(x: $num, y: $num)\n      }\n      query baam($num: Int!, $bin: Int!) {\n        c: add(x: $num, y: $bin)\n        d: add(x: $num, y: $bin)\n    }\",\n    \"variables\": {\n      \"num\": 2,\n      \"bin\": 3\n    }\n  }\n}\n```\n\nIf the [mercurius `graphql` decorator](https://github.com/mercurius-js/mercurius/blob/master/docs/api/options.md#appgraphqlsource-context-variables-operationname) is used, it is necessary to provide a `context` object: `app.graphql(query, { reply })`.\nOtherwise, this plugin will ignore the request.\n\n## Install\n\n```\nnpm install mercurius-logging\n```\n\n### Compatibility\n\n| Plugin version | Fastify version |\n| ------------- |:---------------:|\n| `^2.0.0` | `^5.0.0` |\n| `^1.0.0` | `^4.0.0` |\n\n## Usage\n\n```js\nconst Fastify = require('fastify')\nconst mercurius = require('mercurius')\nconst mercuriusLogging = require('mercurius-logging')\n\nconst app = Fastify({\n  logger: true,\n  disableRequestLogging: true\n})\n\napp.register(mercurius, {\n  schema: yourSchema,\n  resolvers: yourResolvers\n})\napp.register(mercuriusLogging)\n```\n\n## Options\n\nYou can customize the output of the plugin by passing an options object:\n\n```js\napp.register(mercuriusLogging, {\n  logLevel: 'debug', // default: 'info'\n  prependAlias: true, // default: false\n  logBody: true, // default: false\n  logVariables: true, // default: false\n  logRequest: true // default: false\n  logMessage: function(context) // default: undefined\n})\n```\n\n### logLevel\n\nThe log level of the plugin. Note that the `request` logger is used, so you will get the additional\n[request data](https://www.fastify.io/docs/latest/Reference/Logging/#usage) such as the `reqId`.\n\n### logRequest\n\nAdd to the log line the `req: request` object. This is useful if you want to log the request's headers or other.\nYou can customize what to log by using the `logSerializers` option of Fastify.\n\n```js\nconst app = Fastify({\n  logger: {\n    level: 'debug',\n    serializers: {\n      req: function reqSerializer (req) {\n        // look at the standard serializer for the req object:\n        // https://github.com/pinojs/pino-std-serializers/\n        return {\n          headers: req.headers\n        }\n      }\n    }\n  }\n})\n\napp.register(mercuriusLogging, {\n  logRequest: true\n})\n```\n\n### prependAlias\n\nQueries and mutations may have an alias. If you want to append the alias to the log, set this option to `true`.\nYou will get the following output:\n\n```json\n{\n  \"level\": 30,\n  \"graphql\": {\n    \"queries\": [\n      \"firstQuery:myTeam\",\n      \"secondQuery:myTeam\"\n    ]\n  }\n}\n```\n\n### logBody\n\nIf you want to include the body of the request in the log output, set this option to `true`.\n\nYou can provide a syncronous function to choose to log the body or not.\nThe function must return `true` to log the body.\n\n```js\napp.register(mercuriusLogging, {\n  logBody: function (context, body) {\n    return context.reply.request.headers['x-debug'] === 'true'\n  }\n})\n```\n\nHere an output example:\n\n```json\n{\n  \"level\": 30,\n  \"graphql\": {\n    \"queries\": [\n      \"firstQuery:myTeam\",\n      \"secondQuery:myTeam\"\n    ],\n    \"body\": \"query firstQuery { myTeam { name } } query secondQuery { myTeam { name } }\"\n  }\n}\n```\n\n### logVariables\n\nIf you want to include the request's variables in the log output, set this option to `true`.\n\n```json\n{\n  \"level\": 30,\n  \"graphql\": {\n    \"queries\": [\n      \"firstQuery:myTeam\",\n      \"secondQuery:myTeam\"\n    ],\n    \"variables\": {\n      \"teamId\": 1\n    }\n  }\n}\n```\n\n\n### logMessage\n\nIf you want to put a custom message inside the log output, you can set this option as a `function(context)` which returns a `string` or an `array` containing Pino supported values.\n\n#### Example returning a string\n\n```js\napp.register(mercuriusLogging, {\n  logMessage: function (context) {\n    return `This is a request made with method ${context.reply.request.method}`\n  }\n})\n```\n\nHere's an output example\n\n```json\n{\n  \"level\": 30,\n  \"graphql\": {\n    \"queries\": [\n      \"firstQuery:myTeam\",\n      \"secondQuery:myTeam\"\n    ]\n  },\n  \"msg\": \"This is a request made with method POST\"\n}\n```\n\n#### Example returning an array\n\n```js\napp.register(mercuriusLogging, {\n  logMessage: function (context) {\n    return ['This is a request made with method %s by foo%s', context.reply.request.method, 'bar' ]\n  }\n})\n```\n\nHere's an output example\n\n```json\n{\n  \"level\": 30,\n  \"graphql\": {\n    \"queries\": [\n      \"firstQuery:myTeam\",\n      \"secondQuery:myTeam\"\n    ]\n  },\n  \"msg\": \"This is a request made with method POST by foobar\"\n}\n```\n\n\n\n\n## License\n\nCopyright [Manuel Spigolon](https://github.com/Eomm), Licensed under [MIT](./LICENSE).\n","readmeFilename":"README.md"}