apollo-tracing
Advanced tools
Comparing version 0.0.8 to 0.0.9
@@ -33,3 +33,6 @@ "use strict"; | ||
const instrumentedFieldResolver = (source, args, context, info) => { | ||
const traceCollector = context._traceCollector; | ||
const traceCollector = context && context._traceCollector; | ||
if (!traceCollector) { | ||
return (fieldResolver || graphql_1.defaultFieldResolver)(source, args, context, info); | ||
} | ||
const resolverCall = { | ||
@@ -36,0 +39,0 @@ path: info.path, |
{ | ||
"name": "apollo-tracing", | ||
"version": "0.0.8", | ||
"version": "0.0.9", | ||
"description": "Collect and expose trace data for GraphQL requests", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
@@ -9,3 +9,3 @@ { | ||
"outDir": "lib", | ||
"lib": ["es2017"], | ||
"lib": ["es2017", "esnext.asynciterable"], | ||
"strict": true | ||
@@ -12,0 +12,0 @@ }, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
14903
198
13