@join-com/gcloud-express-logger
Advanced tools
Comparing version 1.3.0-alpha.1 to 1.3.0-alpha.2
@@ -29,2 +29,7 @@ "use strict"; | ||
} | ||
if (req.originalUrl.endsWith('graphql') && 'query' in req.body && typeof req.body.query === 'string') { | ||
const query = req.body.query; | ||
const match = query.match(/\s*(query|mutation)\s+(\w+)/); | ||
return match ? match[2] : undefined; | ||
} | ||
return undefined; | ||
@@ -31,0 +36,0 @@ }; |
{ | ||
"name": "@join-com/gcloud-express-logger", | ||
"version": "1.3.0-alpha.1", | ||
"version": "1.3.0-alpha.2", | ||
"description": "gcloud express request logger", | ||
@@ -13,4 +13,4 @@ "author": "JOIN Solutions", | ||
"keywords": [ | ||
"logger", | ||
"gcloud", | ||
"logger", | ||
"express", | ||
@@ -17,0 +17,0 @@ "google cloud platform", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
6865
69