@opentelemetry/instrumentation
Advanced tools
Comparing version 0.11.1-alpha.44 to 0.11.1-alpha.53
@@ -43,2 +43,11 @@ import { Logger, MeterProvider, TracerProvider } from '@opentelemetry/api'; | ||
} | ||
/** | ||
* This interface defines the params that are be added to the wrapped function | ||
* using the "shimmer.wrap" | ||
*/ | ||
export interface ShimWrapped { | ||
__wrapped: boolean; | ||
__unwrap: Function; | ||
__original: Function; | ||
} | ||
//# sourceMappingURL=types.d.ts.map |
@@ -7,2 +7,7 @@ /** | ||
export declare function safeExecuteInTheMiddle<T>(execute: () => T, onFinish: (e: Error | undefined, result: T | undefined) => void): T; | ||
/** | ||
* Checks if certain function has been already wrapped | ||
* @param func | ||
*/ | ||
export declare function isWrapped(func: any): boolean; | ||
//# sourceMappingURL=utils.d.ts.map |
@@ -18,3 +18,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.safeExecuteInTheMiddle = void 0; | ||
exports.isWrapped = exports.safeExecuteInTheMiddle = void 0; | ||
/** | ||
@@ -45,2 +45,13 @@ * function to execute patched function and being able to catch errors | ||
exports.safeExecuteInTheMiddle = safeExecuteInTheMiddle; | ||
/** | ||
* Checks if certain function has been already wrapped | ||
* @param func | ||
*/ | ||
function isWrapped(func) { | ||
return (typeof func === 'function' && | ||
typeof func.__original === 'function' && | ||
typeof func.__unwrap === 'function' && | ||
func.__wrapped === true); | ||
} | ||
exports.isWrapped = isWrapped; | ||
//# sourceMappingURL=utils.js.map |
@@ -1,2 +0,2 @@ | ||
export declare const VERSION = "0.11.1-alpha.44+240f852c"; | ||
export declare const VERSION = "0.11.1-alpha.53+00a8ce7f"; | ||
//# sourceMappingURL=version.d.ts.map |
@@ -20,3 +20,3 @@ "use strict"; | ||
// this is autogenerated file, see scripts/version-update.js | ||
exports.VERSION = '0.11.1-alpha.44+240f852c'; | ||
exports.VERSION = '0.11.1-alpha.53+00a8ce7f'; | ||
//# sourceMappingURL=version.js.map |
{ | ||
"name": "@opentelemetry/instrumentation", | ||
"version": "0.11.1-alpha.44+240f852c", | ||
"version": "0.11.1-alpha.53+00a8ce7f", | ||
"description": "Base class for node which OpenTelemetry instrumentation modules extend", | ||
@@ -59,3 +59,3 @@ "author": "OpenTelemetry Authors", | ||
"dependencies": { | ||
"@opentelemetry/api": "^0.11.1-alpha.44+240f852c", | ||
"@opentelemetry/api": "^0.11.1-alpha.53+00a8ce7f", | ||
"require-in-the-middle": "^5.0.3", | ||
@@ -96,3 +96,3 @@ "semver": "^7.3.2", | ||
}, | ||
"gitHead": "240f852cc41707c751f28811b7ce3d243382e3dd" | ||
"gitHead": "00a8ce7f982ea24bcd4bc398477112894078ab29" | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
55743
683