Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@aerogear/apollo-voyager-audit

Package Overview
Dependencies
Maintainers
9
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aerogear/apollo-voyager-audit - npm Package Compare versions

Comparing version 0.1.6 to 0.1.7

26

dist/auditLog.js

@@ -12,14 +12,16 @@ "use strict";

auditLogger.info({
msg: msg || '',
requestId: context && context.request ? context.request.id : '',
operationType: info.operation.operation,
fieldName: info.fieldName,
parentTypeName: info.parentType.name,
path: apollo_voyager_tools_1.buildPath(info.path),
success,
parent,
arguments: args,
clientInfo: context && context.request && context.request.body && context.request.body.extensions && context.request.body.extensions.metrics || undefined,
authenticated: !!(context && context.auth && context.auth.isAuthenticated()),
userInfo: (context && context.auth && context.auth.accessToken) ? context.auth.accessToken.content : undefined
audit: {
msg: msg || '',
requestId: context && context.request ? context.request.id : '',
operationType: info.operation.operation,
fieldName: info.fieldName,
parentTypeName: info.parentType.name,
path: apollo_voyager_tools_1.buildPath(info.path),
success,
parent,
arguments: args,
clientInfo: context && context.request && context.request.body && context.request.body.extensions && context.request.body.extensions.metrics || undefined,
authenticated: !!(context && context.auth && context.auth.isAuthenticated()),
userInfo: (context && context.auth && context.auth.accessToken) ? context.auth.accessToken.content : undefined
}
});

@@ -26,0 +28,0 @@ }

{
"name": "@aerogear/apollo-voyager-audit",
"version": "0.1.6",
"version": "0.1.7",
"description": "Adds audit logging capabilities to Apollo Voyager Server.",

@@ -24,3 +24,3 @@ "author": "AeroGear Team<aerogear@googlegroups.com>",

"dependencies": {
"@aerogear/apollo-voyager-tools": "^0.1.6",
"@aerogear/apollo-voyager-tools": "^0.1.7",
"graphql-tools": "^4.0.3",

@@ -27,0 +27,0 @@ "pino": "^5.9.0"

@@ -7,14 +7,16 @@ import { buildPath } from '@aerogear/apollo-voyager-tools'

info (log: {
msg: string
requestId: string
operationType: string
fieldName: string
parentTypeName: string
path: string
success: boolean
parent: any
arguments: any
clientInfo: any
authenticated: boolean
userInfo: any
audit: {
msg: string
requestId: string
operationType: string
fieldName: string
parentTypeName: string
path: string
success: boolean
parent: any
arguments: any
clientInfo: any
authenticated: boolean
userInfo: any
}
}): void

@@ -28,15 +30,17 @@ }

auditLogger.info({
msg: msg || '',
requestId: context && context.request ? context.request.id : '',
operationType: info.operation.operation,
fieldName: info.fieldName,
parentTypeName: info.parentType.name,
path: buildPath(info.path),
success,
parent,
arguments: args,
clientInfo: context && context.request && context.request.body && context.request.body.extensions && context.request.body.extensions.metrics || undefined,
authenticated: !!(context && context.auth && context.auth.isAuthenticated()),
userInfo: (context && context.auth && context.auth.accessToken) ? context.auth.accessToken.content : undefined
audit: {
msg: msg || '',
requestId: context && context.request ? context.request.id : '',
operationType: info.operation.operation,
fieldName: info.fieldName,
parentTypeName: info.parentType.name,
path: buildPath(info.path),
success,
parent,
arguments: args,
clientInfo: context && context.request && context.request.body && context.request.body.extensions && context.request.body.extensions.metrics || undefined,
authenticated: !!(context && context.auth && context.auth.isAuthenticated()),
userInfo: (context && context.auth && context.auth.accessToken) ? context.auth.accessToken.content : undefined
}
})
}

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc