Socket
Socket
Sign inDemoInstall

@opentelemetry/instrumentation-koa

Package Overview
Dependencies
5
Maintainers
3
Versions
37
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.36.2 to 0.36.3

12

build/src/instrumentation.js

@@ -38,3 +38,6 @@ "use strict";

init() {
return new instrumentation_1.InstrumentationNodeModuleDefinition('koa', ['^2.0.0'], moduleExports => {
return new instrumentation_1.InstrumentationNodeModuleDefinition('koa', ['^2.0.0'], (module) => {
const moduleExports = module[Symbol.toStringTag] === 'Module'
? module.default // ESM
: module; // CommonJS
if (moduleExports == null) {

@@ -48,4 +51,7 @@ return moduleExports;

this._wrap(moduleExports.prototype, 'use', this._getKoaUsePatch.bind(this));
return moduleExports;
}, moduleExports => {
return module;
}, (module) => {
const moduleExports = module[Symbol.toStringTag] === 'Module'
? module.default // ESM
: module; // CommonJS
api.diag.debug('Unpatching Koa');

@@ -52,0 +58,0 @@ if ((0, instrumentation_1.isWrapped)(moduleExports.prototype.use)) {

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

export declare const VERSION = "0.36.2";
export declare const VERSION = "0.36.3";
//# sourceMappingURL=version.d.ts.map

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

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

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

"compile:examples": "cd examples && npm run compile",
"prepare": "npm run compile",
"prepublishOnly": "npm run compile",
"watch": "tsc -w"

@@ -53,2 +53,4 @@ },

"@opentelemetry/context-async-hooks": "^1.8.0",
"@opentelemetry/contrib-test-utils": "^0.35.0",
"@opentelemetry/instrumentation-http": "^0.45.1",
"@opentelemetry/sdk-trace-base": "^1.8.0",

@@ -76,3 +78,3 @@ "@opentelemetry/sdk-trace-node": "^1.8.0",

"homepage": "https://github.com/open-telemetry/opentelemetry-js-contrib/tree/main/plugins/node/opentelemetry-instrumentation-koa#readme",
"gitHead": "607d375595da3ab51b7f773ac360900121c4361b"
"gitHead": "c7e7000b7bf79b0b107c448b403c2613a9b9e2c1"
}

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc