@opentelemetry/context-zone-peer-dep
Advanced tools
Comparing version 0.22.1-alpha.13 to 0.22.1-alpha.14
@@ -27,9 +27,9 @@ import { Context, ContextManager } from '@opentelemetry/api'; | ||
/** | ||
* @param context A context (span) to be executed within target function | ||
* @param target Function to be executed within the context | ||
* @param context A context (span) to be executed within target function | ||
*/ | ||
private _bindFunction; | ||
/** | ||
* @param context A context (span) to be bind to target | ||
* @param obj target object on which the listeners will be patched | ||
* @param context A context (span) to be bind to target | ||
*/ | ||
@@ -36,0 +36,0 @@ private _bindListener; |
@@ -48,6 +48,6 @@ /* | ||
/** | ||
* @param context A context (span) to be executed within target function | ||
* @param target Function to be executed within the context | ||
* @param context A context (span) to be executed within target function | ||
*/ | ||
ZoneContextManager.prototype._bindFunction = function (target, context) { | ||
ZoneContextManager.prototype._bindFunction = function (context, target) { | ||
var manager = this; | ||
@@ -71,6 +71,6 @@ var contextWrapper = function () { | ||
/** | ||
* @param context A context (span) to be bind to target | ||
* @param obj target object on which the listeners will be patched | ||
* @param context A context (span) to be bind to target | ||
*/ | ||
ZoneContextManager.prototype._bindListener = function (obj, context) { | ||
ZoneContextManager.prototype._bindListener = function (context, obj) { | ||
var target = obj; | ||
@@ -183,6 +183,6 @@ if (target.__ot_listeners !== undefined) { | ||
if (typeof target === 'function') { | ||
return this._bindFunction(target, context); | ||
return this._bindFunction(context, target); | ||
} | ||
else if (isListenerObject(target)) { | ||
this._bindListener(target, context); | ||
this._bindListener(context, target); | ||
} | ||
@@ -189,0 +189,0 @@ return target; |
@@ -27,9 +27,9 @@ import { Context, ContextManager } from '@opentelemetry/api'; | ||
/** | ||
* @param context A context (span) to be executed within target function | ||
* @param target Function to be executed within the context | ||
* @param context A context (span) to be executed within target function | ||
*/ | ||
private _bindFunction; | ||
/** | ||
* @param context A context (span) to be bind to target | ||
* @param obj target object on which the listeners will be patched | ||
* @param context A context (span) to be bind to target | ||
*/ | ||
@@ -36,0 +36,0 @@ private _bindListener; |
@@ -51,6 +51,6 @@ "use strict"; | ||
/** | ||
* @param context A context (span) to be executed within target function | ||
* @param target Function to be executed within the context | ||
* @param context A context (span) to be executed within target function | ||
*/ | ||
_bindFunction(target, context) { | ||
_bindFunction(context, target) { | ||
const manager = this; | ||
@@ -69,6 +69,6 @@ const contextWrapper = function (...args) { | ||
/** | ||
* @param context A context (span) to be bind to target | ||
* @param obj target object on which the listeners will be patched | ||
* @param context A context (span) to be bind to target | ||
*/ | ||
_bindListener(obj, context) { | ||
_bindListener(context, obj) { | ||
const target = obj; | ||
@@ -180,6 +180,6 @@ if (target.__ot_listeners !== undefined) { | ||
if (typeof target === 'function') { | ||
return this._bindFunction(target, context); | ||
return this._bindFunction(context, target); | ||
} | ||
else if (util_1.isListenerObject(target)) { | ||
this._bindListener(target, context); | ||
this._bindListener(context, target); | ||
} | ||
@@ -186,0 +186,0 @@ return target; |
{ | ||
"name": "@opentelemetry/context-zone-peer-dep", | ||
"version": "0.22.1-alpha.13+01418978", | ||
"version": "0.22.1-alpha.14+1998542d", | ||
"description": "OpenTelemetry Context Zone with peer dependency for zone.js", | ||
@@ -81,3 +81,3 @@ "main": "build/src/index.js", | ||
"sideEffects": false, | ||
"gitHead": "01418978e5cc15b5ec4d5283ec48910799fe2f06" | ||
"gitHead": "1998542d35a7e0d7f162a4c999ca4c223fa26420" | ||
} |
Sorry, the diff of this file is not supported yet
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