@opentelemetry/context-async-hooks
Advanced tools
Comparing version 0.17.1-alpha.5 to 0.17.1-alpha.8
@@ -1,2 +0,2 @@ | ||
import { ContextManager, Context } from '@opentelemetry/context-base'; | ||
import { ContextManager, Context } from '@opentelemetry/api'; | ||
export declare abstract class AbstractAsyncHooksContextManager implements ContextManager { | ||
@@ -3,0 +3,0 @@ abstract active(): Context; |
@@ -1,2 +0,2 @@ | ||
import { Context } from '@opentelemetry/context-base'; | ||
import { Context } from '@opentelemetry/api'; | ||
import { AbstractAsyncHooksContextManager } from './AbstractAsyncHooksContextManager'; | ||
@@ -3,0 +3,0 @@ export declare class AsyncHooksContextManager extends AbstractAsyncHooksContextManager { |
@@ -19,3 +19,3 @@ "use strict"; | ||
exports.AsyncHooksContextManager = void 0; | ||
const context_base_1 = require("@opentelemetry/context-base"); | ||
const api_1 = require("@opentelemetry/api"); | ||
const asyncHooks = require("async_hooks"); | ||
@@ -38,3 +38,3 @@ const AbstractAsyncHooksContextManager_1 = require("./AbstractAsyncHooksContextManager"); | ||
var _a; | ||
return (_a = this._stack[this._stack.length - 1]) !== null && _a !== void 0 ? _a : context_base_1.ROOT_CONTEXT; | ||
return (_a = this._stack[this._stack.length - 1]) !== null && _a !== void 0 ? _a : api_1.ROOT_CONTEXT; | ||
} | ||
@@ -41,0 +41,0 @@ with(context, fn, thisArg, ...args) { |
@@ -1,2 +0,2 @@ | ||
import { Context } from '@opentelemetry/context-base'; | ||
import { Context } from '@opentelemetry/api'; | ||
import { AbstractAsyncHooksContextManager } from './AbstractAsyncHooksContextManager'; | ||
@@ -3,0 +3,0 @@ export declare class AsyncLocalStorageContextManager extends AbstractAsyncHooksContextManager { |
@@ -19,3 +19,3 @@ "use strict"; | ||
exports.AsyncLocalStorageContextManager = void 0; | ||
const context_base_1 = require("@opentelemetry/context-base"); | ||
const api_1 = require("@opentelemetry/api"); | ||
const async_hooks_1 = require("async_hooks"); | ||
@@ -30,3 +30,3 @@ const AbstractAsyncHooksContextManager_1 = require("./AbstractAsyncHooksContextManager"); | ||
var _a; | ||
return (_a = this._asyncLocalStorage.getStore()) !== null && _a !== void 0 ? _a : context_base_1.ROOT_CONTEXT; | ||
return (_a = this._asyncLocalStorage.getStore()) !== null && _a !== void 0 ? _a : api_1.ROOT_CONTEXT; | ||
} | ||
@@ -33,0 +33,0 @@ with(context, fn, thisArg, ...args) { |
{ | ||
"name": "@opentelemetry/context-async-hooks", | ||
"version": "0.17.1-alpha.5+36ae1bd8", | ||
"version": "0.17.1-alpha.8+67f7e70a", | ||
"description": "OpenTelemetry AsyncHooks-based Context Manager", | ||
@@ -56,5 +56,5 @@ "main": "build/src/index.js", | ||
"dependencies": { | ||
"@opentelemetry/context-base": "^0.17.0" | ||
"@opentelemetry/api": "^0.18.0" | ||
}, | ||
"gitHead": "36ae1bd89abc2e2cc7f64e4a35a94d7e75a81d0d" | ||
"gitHead": "67f7e70a3de005484d3e110b06f6bbee75b6f8a6" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
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
41542
+ Added@opentelemetry/api@^0.18.0
+ Added@opentelemetry/api@0.18.1(transitive)
- Removed@opentelemetry/context-base@^0.17.0
- Removed@opentelemetry/context-base@0.17.0(transitive)