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

@newrelic/apollo-server-plugin

Package Overview
Dependencies
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@newrelic/apollo-server-plugin - npm Package Compare versions

Comparing version 1.2.0 to 1.2.1

13

lib/create-plugin.js

@@ -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)

6

package.json
{
"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**

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