Socket
Socket
Sign inDemoInstall

@opentelemetry/web

Package Overview
Dependencies
Maintainers
4
Versions
150
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@opentelemetry/web - npm Package Compare versions

Comparing version 0.20.0 to 0.20.1-alpha.3

7

build/esm/StackContextManager.d.ts

@@ -27,6 +27,7 @@ import { Context, ContextManager } from '@opentelemetry/api';

* Binds a the certain context or the active one to the target function and then returns the target
* @param target
* @param context
* @param context A context (span) to be bind to target
* @param target a function or event emitter. When target or one of its callbacks is called,
* the provided context will be used as the active context for the duration of the call.
*/
bind<T>(target: T, context?: Context): T;
bind<T>(context: Context, target: T): T;
/**

@@ -33,0 +34,0 @@ * Disable the context manager (clears the current context)

@@ -69,7 +69,7 @@ /*

* Binds a the certain context or the active one to the target function and then returns the target
* @param target
* @param context
* @param context A context (span) to be bind to target
* @param target a function or event emitter. When target or one of its callbacks is called,
* the provided context will be used as the active context for the duration of the call.
*/
StackContextManager.prototype.bind = function (target, context) {
if (context === void 0) { context = ROOT_CONTEXT; }
StackContextManager.prototype.bind = function (context, target) {
// if no specific context to propagate is given, we use the current one

@@ -76,0 +76,0 @@ if (context === undefined) {

@@ -27,6 +27,7 @@ import { Context, ContextManager } from '@opentelemetry/api';

* Binds a the certain context or the active one to the target function and then returns the target
* @param target
* @param context
* @param context A context (span) to be bind to target
* @param target a function or event emitter. When target or one of its callbacks is called,
* the provided context will be used as the active context for the duration of the call.
*/
bind<T>(target: T, context?: Context): T;
bind<T>(context: Context, target: T): T;
/**

@@ -33,0 +34,0 @@ * Disable the context manager (clears the current context)

@@ -61,6 +61,7 @@ "use strict";

* Binds a the certain context or the active one to the target function and then returns the target
* @param target
* @param context
* @param context A context (span) to be bind to target
* @param target a function or event emitter. When target or one of its callbacks is called,
* the provided context will be used as the active context for the duration of the call.
*/
bind(target, context = api_1.ROOT_CONTEXT) {
bind(context, target) {
// if no specific context to propagate is given, we use the current one

@@ -67,0 +68,0 @@ if (context === undefined) {

{
"name": "@opentelemetry/web",
"version": "0.20.0",
"version": "0.20.1-alpha.3+d4df2f7e",
"description": "OpenTelemetry Web Tracer",

@@ -49,6 +49,6 @@ "main": "build/src/index.js",

"@babel/core": "7.14.0",
"@opentelemetry/api": "^0.20.0",
"@opentelemetry/context-zone": "0.20.0",
"@opentelemetry/propagator-b3": "0.20.0",
"@opentelemetry/resources": "0.20.0",
"@opentelemetry/api": "^0.21.0",
"@opentelemetry/context-zone": "^0.20.1-alpha.3+d4df2f7e",
"@opentelemetry/propagator-b3": "^0.20.1-alpha.3+d4df2f7e",
"@opentelemetry/resources": "^0.20.1-alpha.3+d4df2f7e",
"@types/jquery": "3.5.5",

@@ -82,10 +82,10 @@ "@types/mocha": "8.2.2",

"peerDependencies": {
"@opentelemetry/api": "^0.20.0"
"@opentelemetry/api": "^0.21.0"
},
"dependencies": {
"@opentelemetry/core": "0.20.0",
"@opentelemetry/semantic-conventions": "0.20.0",
"@opentelemetry/tracing": "0.20.0"
"@opentelemetry/core": "^0.20.1-alpha.3+d4df2f7e",
"@opentelemetry/semantic-conventions": "^0.20.0",
"@opentelemetry/tracing": "^0.20.1-alpha.3+d4df2f7e"
},
"gitHead": "f79aef422b53f1314cb0b031651875658fc17008"
"gitHead": "d4df2f7ebaaaf433bd84b568c482e2788103ab71"
}

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