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

@opentelemetry/instrumentation-hapi

Package Overview
Dependencies
Maintainers
3
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@opentelemetry/instrumentation-hapi - npm Package Compare versions

Comparing version 0.36.0 to 0.37.0

3

build/src/instrumentation.d.ts
import { InstrumentationBase, InstrumentationConfig, InstrumentationNodeModuleDefinition } from '@opentelemetry/instrumentation';
import type * as Hapi from 'hapi__hapi';
/** Hapi instrumentation for OpenTelemetry */
export declare class HapiInstrumentation extends InstrumentationBase {
constructor(config?: InstrumentationConfig);
protected init(): InstrumentationNodeModuleDefinition<typeof Hapi>;
protected init(): InstrumentationNodeModuleDefinition;
/**

@@ -8,0 +7,0 @@ * Patches the Hapi.server and Hapi.Server functions in order to instrument

@@ -31,5 +31,4 @@ "use strict";

init() {
return new instrumentation_1.InstrumentationNodeModuleDefinition(internal_types_1.HapiComponentName, ['>=17 <21'], moduleExports => {
return new instrumentation_1.InstrumentationNodeModuleDefinition(internal_types_1.HapiComponentName, ['>=17 <21'], (moduleExports) => {
if (!(0, instrumentation_1.isWrapped)(moduleExports.server)) {
api.diag.debug('Patching Hapi.server');
this._wrap(moduleExports, 'server', this._getServerPatch.bind(this));

@@ -43,3 +42,2 @@ }

if (!(0, instrumentation_1.isWrapped)(moduleExports.Server)) {
api.diag.debug('Patching Hapi.Server');
this._wrap(

@@ -50,4 +48,3 @@ // eslint-disable-next-line @typescript-eslint/no-explicit-any

return moduleExports;
}, moduleExports => {
api.diag.debug('Unpatching Hapi');
}, (moduleExports) => {
this._massUnwrap([moduleExports], ['server', 'Server']);

@@ -54,0 +51,0 @@ });

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

export declare const VERSION = "0.36.0";
export declare const VERSION = "0.37.0";
//# sourceMappingURL=version.d.ts.map

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

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

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

"@opentelemetry/core": "^1.8.0",
"@opentelemetry/instrumentation": "^0.50.0",
"@opentelemetry/instrumentation": "^0.51.0",
"@opentelemetry/semantic-conventions": "^1.0.0",

@@ -68,3 +68,3 @@ "@types/hapi__hapi": "20.0.13"

"homepage": "https://github.com/open-telemetry/opentelemetry-js-contrib/tree/main/plugins/node/opentelemetry-instrumentation-hapi#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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc