Socket
Socket
Sign inDemoInstall

@opentelemetry/context-async-hooks

Package Overview
Dependencies
1
Maintainers
4
Versions
116
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.17.1-alpha.5 to 0.17.1-alpha.8

2

build/src/AbstractAsyncHooksContextManager.d.ts

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc