@newrelic/apollo-server-plugin
Advanced tools
Comparing version 1.2.0 to 1.2.1
@@ -266,4 +266,15 @@ /* | ||
/** | ||
* fragments could be defined for a given operation. This iterates over the definitions | ||
* to find the operation definition to avoid issues with naming | ||
* see: https://github.com/newrelic/newrelic-node-apollo-server-plugin/issues/175 | ||
* | ||
* @param {Array} definitions | ||
*/ | ||
function findOperationDefinition(definitions) { | ||
return definitions.find((definition) => definition.kind === 'OperationDefinition') | ||
} | ||
function getDetailsFromDocument(responseContext) { | ||
const [definition] = responseContext.document.definitions | ||
const definition = findOperationDefinition(responseContext.document.definitions) | ||
@@ -270,0 +281,0 @@ const pathAndArgs = getDeepestPathAndQueryArguments(definition) |
{ | ||
"name": "@newrelic/apollo-server-plugin", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"description": "Apollo Server plugin that adds New Relic Node.js agent instrumentation.", | ||
@@ -18,2 +18,3 @@ "main": "./index.js", | ||
"versioned:folder": "versioned-tests --minor --all -i 2", | ||
"versioned:major": "versioned-tests --major --all -i 2 'tests/versioned/*'", | ||
"versioned:npm6": "versioned-tests --minor --samples 15 -i 2 'tests/versioned/**/!(apollo-server-koa)' && versioned-tests --minor --all -i 2 'tests/versioned/apollo-server-koa'", | ||
@@ -50,5 +51,6 @@ "versioned:npm7": "versioned-tests --minor --all --samples 15 -i 2 'tests/versioned/*'" | ||
"eslint-plugin-prettier": "^3.4.0", | ||
"graphql": "^15.8.0", | ||
"husky": "^6.0.0", | ||
"lint-staged": "^11.0.0", | ||
"newrelic": "^7.3.1", | ||
"newrelic": "^8.8.0", | ||
"prettier": "^2.3.2", | ||
@@ -55,0 +57,0 @@ "sinon": "^11.1.2", |
@@ -56,4 +56,2 @@ [![Community Plus header](https://github.com/newrelic/opensource-website/raw/master/src/images/categories/Community_Plus.png)](https://opensource.newrelic.com/oss-category/#community-plus) | ||
Note: Because fastify is not fully instrumented in the Node.js Agent, transactions will be prefixed with `WebTransaction\Nodejs`. | ||
Other plugins may work, depending on their underlying implementation, but have not been verified. | ||
@@ -283,3 +281,3 @@ | ||
To [all contributors](https://github.com/newrelic/newrelic-node-apollo-server-plugin/graphs/contributors), we thank you! Without your contribution, this project would not be what it is today. We also host a community project page dedicated to the [New Relic Apollo Server plugin](https://opensource.newrelic.com/newrelic/newrelic-node-apollo-server-plugin). | ||
To [all contributors](https://github.com/newrelic/newrelic-node-apollo-server-plugin/graphs/contributors), we thank you! Without your contribution, this project would not be what it is today. We also host a community project page dedicated to the [New Relic Apollo Server plugin](https://opensource.newrelic.com/projects/newrelic/newrelic-node-apollo-server-plugin). | ||
@@ -286,0 +284,0 @@ **A note about vulnerabilities** |
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
47971
501
17
293