Skip to content

Conversation

@johannes-vogel
Copy link
Contributor

No description provided.

schwma and others added 6 commits June 23, 2023 15:18
* Move graphiql GET route registration into graphiql.js

* Remove underscore prefix since function isn't private
* Don't log 'GET undefined' when missing query

* WIP improved request logger

* Add operationName and variables to object

* Extract request logger to own module

* Add changelog entry

* Reformat changelog entry

* Remove outdated changelog entry

* Remove padding after query

* Prettier format

* Log `operationName` and `variables` from URL query parameter

* Parse variables JSON string if taken from `req.query`

* Add typeof object short-circuiting before Object.keys

* Sanitize arguments and their values in production

* Reorder changelog entries

* Rename requestLogger to queryLogger

* Add query logging tests

* Rename `logger.test.js` to `logger-dev.test.js`

* Add test for log sanetization in production

* Prettier format

* Fix logger module path

* Fix truncation of nested variables

* Fix typo

* Move object formatting to only affect query info object

* Add and improve comments

* Log variables object as '***' in production

* Fix typo

* Use mocked instead of dummy auth

* Add dev logging tests to prod to ensure no unwanted values are sanitized

* Add tests that ensures literal values are not sanitized in dev

* Use `{color:false,depth:null}` options for formatting everywhere

* Prettier format

* Fix property name typo `color`->`colors` and helper function call

* Move changelog entries from added to changed section

---------

Co-authored-by: Johannes Vogel <31311694+johannes-vogel@users.noreply.github.com>
* Fix GraphiQL explorer plugin CDN URL

* Add changelog entry
* prepare 0.6.1 hotfix

* 0.6.1 in package.json
@johannes-vogel johannes-vogel requested a review from schwma July 5, 2023 08:07
@johannes-vogel johannes-vogel requested a review from a team as a code owner July 5, 2023 08:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants