Socket
Socket
Sign inDemoInstall

@opentelemetry/instrumentation-graphql

Package Overview
Dependencies
24
Maintainers
3
Versions
44
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.39.0 to 0.40.0

2

build/src/instrumentation.d.ts

@@ -7,3 +7,3 @@ import { InstrumentationBase, InstrumentationConfig, InstrumentationNodeModuleDefinition } from '@opentelemetry/instrumentation';

setConfig(config?: GraphQLInstrumentationConfig): void;
protected init(): InstrumentationNodeModuleDefinition<any>;
protected init(): InstrumentationNodeModuleDefinition;
private _addPatchingExecute;

@@ -10,0 +10,0 @@ private _addPatchingParser;

@@ -55,4 +55,3 @@ "use strict";

//types and/cannot import function but only types
(moduleExports, moduleVersion) => {
this._diag.debug(`Applying patch for graphql@${moduleVersion} execute`);
(moduleExports) => {
if ((0, instrumentation_1.isWrapped)(moduleExports.execute)) {

@@ -63,5 +62,4 @@ this._unwrap(moduleExports, 'execute');

return moduleExports;
}, (moduleExports, moduleVersion) => {
}, moduleExports => {
if (moduleExports) {
this._diag.debug(`Removing patch for graphql@${moduleVersion} execute`);
this._unwrap(moduleExports, 'execute');

@@ -72,4 +70,3 @@ }

_addPatchingParser() {
return new instrumentation_1.InstrumentationNodeModuleFile('graphql/language/parser.js', supportedVersions, (moduleExports, moduleVersion) => {
this._diag.debug(`Applying patch for graphql@${moduleVersion} parse`);
return new instrumentation_1.InstrumentationNodeModuleFile('graphql/language/parser.js', supportedVersions, (moduleExports) => {
if ((0, instrumentation_1.isWrapped)(moduleExports.parse)) {

@@ -80,5 +77,4 @@ this._unwrap(moduleExports, 'parse');

return moduleExports;
}, (moduleExports, moduleVersion) => {
}, (moduleExports) => {
if (moduleExports) {
this._diag.debug(`Removing patch for graphql@${moduleVersion} parse`);
this._unwrap(moduleExports, 'parse');

@@ -89,4 +85,3 @@ }

_addPatchingValidate() {
return new instrumentation_1.InstrumentationNodeModuleFile('graphql/validation/validate.js', supportedVersions, (moduleExports, moduleVersion) => {
this._diag.debug(`Applying patch for graphql@${moduleVersion} validate`);
return new instrumentation_1.InstrumentationNodeModuleFile('graphql/validation/validate.js', supportedVersions, moduleExports => {
if ((0, instrumentation_1.isWrapped)(moduleExports.validate)) {

@@ -97,5 +92,4 @@ this._unwrap(moduleExports, 'validate');

return moduleExports;
}, (moduleExports, moduleVersion) => {
}, moduleExports => {
if (moduleExports) {
this._diag.debug(`Removing patch for graphql@${moduleVersion} validate`);
this._unwrap(moduleExports, 'validate');

@@ -102,0 +96,0 @@ }

@@ -1,2 +0,2 @@

export declare const VERSION = "0.39.0";
export declare const VERSION = "0.40.0";
//# sourceMappingURL=version.d.ts.map

@@ -20,3 +20,3 @@ "use strict";

// this is autogenerated file, see scripts/version-update.js
exports.VERSION = '0.39.0';
exports.VERSION = '0.40.0';
//# sourceMappingURL=version.js.map
{
"name": "@opentelemetry/instrumentation-graphql",
"version": "0.39.0",
"version": "0.40.0",
"description": "OpenTelemetry @opentelemetry/instrumentation-graphql automatic instrumentation package.",

@@ -61,6 +61,6 @@ "main": "build/src/index.js",

"dependencies": {
"@opentelemetry/instrumentation": "^0.50.0"
"@opentelemetry/instrumentation": "^0.51.0"
},
"homepage": "https://github.com/open-telemetry/opentelemetry-js-contrib/tree/main/plugins/node/opentelemetry-instrumentation-graphql#readme",
"gitHead": "17a0bc1da3baa472ba9b867eee3c60730cc130fb"
"gitHead": "96a87b48934f0afcf1fe637eed6704f35bd8e973"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc