Socket
Socket
Sign inDemoInstall

@opentelemetry/instrumentation-socket.io

Package Overview
Dependencies
Maintainers
3
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@opentelemetry/instrumentation-socket.io - npm Package Compare versions

Comparing version 0.38.0 to 0.39.0

4

build/src/socket.io.d.ts
import { InstrumentationBase, InstrumentationNodeModuleDefinition } from '@opentelemetry/instrumentation';
import { SocketIoInstrumentationConfig } from './types';
export declare class SocketIoInstrumentation extends InstrumentationBase<any> {
export declare class SocketIoInstrumentation extends InstrumentationBase {
protected _config: SocketIoInstrumentationConfig;
constructor(config?: SocketIoInstrumentationConfig);
protected init(): InstrumentationNodeModuleDefinition<any>[];
protected init(): InstrumentationNodeModuleDefinition[];
setConfig(config?: SocketIoInstrumentationConfig): void;

@@ -8,0 +8,0 @@ private _patchOn;

@@ -46,3 +46,2 @@ "use strict";

}
this._diag.debug(`applying patch to socket.io@${moduleVersion} Socket`);
if ((0, instrumentation_1.isWrapped)((_b = (_a = moduleExports === null || moduleExports === void 0 ? void 0 : moduleExports.Socket) === null || _a === void 0 ? void 0 : _a.prototype) === null || _b === void 0 ? void 0 : _b.on)) {

@@ -75,3 +74,2 @@ this._unwrap(moduleExports.Socket.prototype, 'on');

}
this._diag.debug(`applying patch to socket.io@${moduleVersion} StrictEventEmitter`);
if ((0, instrumentation_1.isWrapped)((_b = (_a = moduleExports === null || moduleExports === void 0 ? void 0 : moduleExports.BroadcastOperator) === null || _a === void 0 ? void 0 : _a.prototype) === null || _b === void 0 ? void 0 : _b.emit)) {

@@ -97,3 +95,2 @@ this._unwrap(moduleExports.BroadcastOperator.prototype, 'emit');

}
this._diag.debug(`applying patch to socket.io@${moduleVersion} Namespace`);
if ((0, instrumentation_1.isWrapped)((_b = (_a = moduleExports === null || moduleExports === void 0 ? void 0 : moduleExports.Namespace) === null || _a === void 0 ? void 0 : _a.prototype) === null || _b === void 0 ? void 0 : _b.emit)) {

@@ -118,3 +115,2 @@ this._unwrap(moduleExports.Namespace.prototype, 'emit');

}
this._diag.debug(`applying patch to socket.io@${moduleVersion} Socket`);
if ((0, instrumentation_1.isWrapped)((_a = moduleExports.prototype) === null || _a === void 0 ? void 0 : _a.on)) {

@@ -147,3 +143,2 @@ this._unwrap(moduleExports.prototype, 'on');

}
this._diag.debug(`applying patch to socket.io@${moduleVersion} Namespace`);
if ((0, instrumentation_1.isWrapped)((_a = moduleExports === null || moduleExports === void 0 ? void 0 : moduleExports.prototype) === null || _a === void 0 ? void 0 : _a.emit)) {

@@ -169,3 +164,2 @@ this._unwrap(moduleExports.prototype, 'emit');

}
this._diag.debug(`applying patch to socket.io@${moduleVersion} Server`);
if ((0, instrumentation_1.isWrapped)((_b = (_a = moduleExports === null || moduleExports === void 0 ? void 0 : moduleExports.Server) === null || _a === void 0 ? void 0 : _a.prototype) === null || _b === void 0 ? void 0 : _b.on)) {

@@ -176,3 +170,3 @@ this._unwrap(moduleExports.Server.prototype, 'on');

return moduleExports;
}, (moduleExports, moduleVersion) => {
}, moduleExports => {
var _a, _b;

@@ -196,3 +190,2 @@ if ((0, instrumentation_1.isWrapped)((_b = (_a = moduleExports === null || moduleExports === void 0 ? void 0 : moduleExports.Server) === null || _a === void 0 ? void 0 : _a.prototype) === null || _b === void 0 ? void 0 : _b.on)) {

}
this._diag.debug(`applying patch to socket.io@${moduleVersion} Server`);
if ((0, instrumentation_1.isWrapped)((_a = moduleExports === null || moduleExports === void 0 ? void 0 : moduleExports.prototype) === null || _a === void 0 ? void 0 : _a.on)) {

@@ -199,0 +192,0 @@ this._unwrap(moduleExports.prototype, 'on');

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

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

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

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

@@ -46,3 +46,3 @@ "main": "build/src/index.js",

"@opentelemetry/api": "^1.3.0",
"@opentelemetry/contrib-test-utils": "^0.38.0",
"@opentelemetry/contrib-test-utils": "^0.39.0",
"@opentelemetry/sdk-trace-base": "^1.8.0",

@@ -62,7 +62,7 @@ "@types/mocha": "8.2.3",

"dependencies": {
"@opentelemetry/instrumentation": "^0.50.0",
"@opentelemetry/instrumentation": "^0.51.0",
"@opentelemetry/semantic-conventions": "^1.0.0"
},
"homepage": "https://github.com/open-telemetry/opentelemetry-js-contrib/tree/main/plugins/node/instrumentation-socket.io#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

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