@opentelemetry/context-zone-peer-dep
Advanced tools
Comparing version 0.24.1-alpha.31 to 0.25.1-alpha.21
@@ -7,8 +7,8 @@ export declare type Func<T> = (...args: unknown[]) => T; | ||
export interface TargetWithEvents { | ||
addEventListener?(event: string, listener: (...args: any[]) => void, opts?: { | ||
addEventListener?(event: string, listener: (...args: unknown[]) => void, opts?: { | ||
once: boolean; | ||
}): any; | ||
removeEventListener?(event: string, listener: (...args: any[]) => void, opts?: { | ||
}): unknown; | ||
removeEventListener?(event: string, listener: (...args: unknown[]) => void, opts?: { | ||
once: boolean; | ||
}): any; | ||
}): unknown; | ||
__ot_listeners?: { | ||
@@ -15,0 +15,0 @@ [name: string]: WeakMap<Func<void>, Func<void>>; |
@@ -1,2 +0,2 @@ | ||
export declare const VERSION = "0.24.0"; | ||
export declare const VERSION = "0.25.0"; | ||
//# sourceMappingURL=version.d.ts.map |
@@ -17,3 +17,3 @@ /* | ||
// this is autogenerated file, see scripts/version-update.js | ||
export var VERSION = '0.24.0'; | ||
export var VERSION = '0.25.0'; | ||
//# sourceMappingURL=version.js.map |
@@ -6,3 +6,3 @@ import { Context, ContextManager } from '@opentelemetry/api'; | ||
* This module provides an easy functionality for tracing action between asynchronous operations in web. | ||
* It was not possible with standard [StackContextManager]{@link https://github.com/open-telemetry/opentelemetry-js/blob/main/packages/opentelemetry-web/src/StackContextManager.ts}. | ||
* It was not possible with standard [StackContextManager]{@link https://github.com/open-telemetry/opentelemetry-js/blob/main/packages/opentelemetry-sdk-trace-web/src/StackContextManager.ts}. | ||
* It heavily depends on [zone.js]{@link https://www.npmjs.com/package/zone.js}. | ||
@@ -9,0 +9,0 @@ * It stores the information about context in zone. Each Context will have always new Zone; |
@@ -23,3 +23,3 @@ /* | ||
* This module provides an easy functionality for tracing action between asynchronous operations in web. | ||
* It was not possible with standard [StackContextManager]{@link https://github.com/open-telemetry/opentelemetry-js/blob/main/packages/opentelemetry-web/src/StackContextManager.ts}. | ||
* It was not possible with standard [StackContextManager]{@link https://github.com/open-telemetry/opentelemetry-js/blob/main/packages/opentelemetry-sdk-trace-web/src/StackContextManager.ts}. | ||
* It heavily depends on [zone.js]{@link https://www.npmjs.com/package/zone.js}. | ||
@@ -52,2 +52,3 @@ * It stores the information about context in zone. Each Context will have always new Zone; | ||
*/ | ||
// eslint-disable-next-line @typescript-eslint/ban-types | ||
ZoneContextManager.prototype._bindFunction = function (context, target) { | ||
@@ -54,0 +55,0 @@ var manager = this; |
@@ -7,8 +7,8 @@ export declare type Func<T> = (...args: unknown[]) => T; | ||
export interface TargetWithEvents { | ||
addEventListener?(event: string, listener: (...args: any[]) => void, opts?: { | ||
addEventListener?(event: string, listener: (...args: unknown[]) => void, opts?: { | ||
once: boolean; | ||
}): any; | ||
removeEventListener?(event: string, listener: (...args: any[]) => void, opts?: { | ||
}): unknown; | ||
removeEventListener?(event: string, listener: (...args: unknown[]) => void, opts?: { | ||
once: boolean; | ||
}): any; | ||
}): unknown; | ||
__ot_listeners?: { | ||
@@ -15,0 +15,0 @@ [name: string]: WeakMap<Func<void>, Func<void>>; |
@@ -1,2 +0,2 @@ | ||
export declare const VERSION = "0.24.0"; | ||
export declare const VERSION = "0.25.0"; | ||
//# sourceMappingURL=version.d.ts.map |
@@ -20,3 +20,3 @@ "use strict"; | ||
// this is autogenerated file, see scripts/version-update.js | ||
exports.VERSION = '0.24.0'; | ||
exports.VERSION = '0.25.0'; | ||
//# sourceMappingURL=version.js.map |
@@ -6,3 +6,3 @@ import { Context, ContextManager } from '@opentelemetry/api'; | ||
* This module provides an easy functionality for tracing action between asynchronous operations in web. | ||
* It was not possible with standard [StackContextManager]{@link https://github.com/open-telemetry/opentelemetry-js/blob/main/packages/opentelemetry-web/src/StackContextManager.ts}. | ||
* It was not possible with standard [StackContextManager]{@link https://github.com/open-telemetry/opentelemetry-js/blob/main/packages/opentelemetry-sdk-trace-web/src/StackContextManager.ts}. | ||
* It heavily depends on [zone.js]{@link https://www.npmjs.com/package/zone.js}. | ||
@@ -9,0 +9,0 @@ * It stores the information about context in zone. Each Context will have always new Zone; |
@@ -26,3 +26,3 @@ "use strict"; | ||
* This module provides an easy functionality for tracing action between asynchronous operations in web. | ||
* It was not possible with standard [StackContextManager]{@link https://github.com/open-telemetry/opentelemetry-js/blob/main/packages/opentelemetry-web/src/StackContextManager.ts}. | ||
* It was not possible with standard [StackContextManager]{@link https://github.com/open-telemetry/opentelemetry-js/blob/main/packages/opentelemetry-sdk-trace-web/src/StackContextManager.ts}. | ||
* It heavily depends on [zone.js]{@link https://www.npmjs.com/package/zone.js}. | ||
@@ -55,2 +55,3 @@ * It stores the information about context in zone. Each Context will have always new Zone; | ||
*/ | ||
// eslint-disable-next-line @typescript-eslint/ban-types | ||
_bindFunction(context, target) { | ||
@@ -57,0 +58,0 @@ const manager = this; |
{ | ||
"name": "@opentelemetry/context-zone-peer-dep", | ||
"version": "0.24.1-alpha.31+fd2410cc", | ||
"version": "0.25.1-alpha.21+0ef1fc28", | ||
"description": "OpenTelemetry Context Zone with peer dependency for zone.js", | ||
@@ -48,6 +48,6 @@ "main": "build/src/index.js", | ||
"devDependencies": { | ||
"@babel/core": "7.14.8", | ||
"@opentelemetry/api": "^1.0.1", | ||
"@babel/core": "7.15.0", | ||
"@opentelemetry/api": "^1.0.2", | ||
"@types/mocha": "8.2.3", | ||
"@types/node": "14.17.5", | ||
"@types/node": "14.17.9", | ||
"@types/sinon": "10.0.2", | ||
@@ -73,11 +73,11 @@ "@types/webpack-env": "1.16.2", | ||
"webpack": "4.46.0", | ||
"webpack-cli": "4.7.2", | ||
"webpack-cli": "4.8.0", | ||
"zone.js": "0.11.4" | ||
}, | ||
"peerDependencies": { | ||
"@opentelemetry/api": "^1.0.1", | ||
"@opentelemetry/api": "^1.0.2", | ||
"zone.js": "^0.10.2 || ^0.11.0" | ||
}, | ||
"sideEffects": false, | ||
"gitHead": "fd2410cc9e8d43210b6ea44b8193fa70ee900499" | ||
"gitHead": "0ef1fc28d366b74d98b73b5d6334ffdc75342fe2" | ||
} |
@@ -25,4 +25,4 @@ # OpenTelemetry Context Zone Peer Dependency | ||
import { context, trace } from '@opentelemetry/api'; | ||
import { ConsoleSpanExporter, SimpleSpanProcessor } from '@opentelemetry/tracing'; | ||
import { WebTracerProvider } from '@opentelemetry/web'; | ||
import { ConsoleSpanExporter, SimpleSpanProcessor } from '@opentelemetry/sdk-trace-base'; | ||
import { WebTracerProvider } from '@opentelemetry/sdk-trace-web'; | ||
import { ZoneContextManager } from '@opentelemetry/context-zone-peer-dep'; | ||
@@ -29,0 +29,0 @@ |
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
61078
839