Socket
Socket
Sign inDemoInstall

@opentelemetry/context-async-hooks

Package Overview
Dependencies
Maintainers
4
Versions
118
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@opentelemetry/context-async-hooks - npm Package Compare versions

Comparing version 0.11.0 to 0.11.1-alpha.36

1

build/src/AsyncHooksContextManager.d.ts

@@ -16,2 +16,3 @@ import { Context } from '@opentelemetry/context-base';

* @param uid id of the async context
* @param type the resource type
*/

@@ -18,0 +19,0 @@ private _init;

@@ -37,3 +37,3 @@ "use strict";

var _a;
return (_a = this._stack[this._stack.length - 1]) !== null && _a !== void 0 ? _a : context_base_1.Context.ROOT_CONTEXT;
return (_a = this._stack[this._stack.length - 1]) !== null && _a !== void 0 ? _a : context_base_1.ROOT_CONTEXT;
}

@@ -63,4 +63,11 @@ with(context, fn) {

* @param uid id of the async context
* @param type the resource type
*/
_init(uid) {
_init(uid, type) {
// ignore TIMERWRAP as they combine timers with same timeout which can lead to
// false context propagation. TIMERWRAP has been removed in node 11
// every timer has it's own `Timeout` resource anyway which is used to propagete
// context.
if (type === 'TIMERWRAP')
return;
const context = this._stack[this._stack.length - 1];

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

2

build/src/AsyncLocalStorageContextManager.js

@@ -29,3 +29,3 @@ "use strict";

var _a;
return (_a = this._asyncLocalStorage.getStore()) !== null && _a !== void 0 ? _a : context_base_1.Context.ROOT_CONTEXT;
return (_a = this._asyncLocalStorage.getStore()) !== null && _a !== void 0 ? _a : context_base_1.ROOT_CONTEXT;
}

@@ -32,0 +32,0 @@ with(context, fn) {

@@ -1,2 +0,2 @@

export declare const VERSION = "0.11.0";
export declare const VERSION = "0.11.1-alpha.36+6eb157c6";
//# sourceMappingURL=version.d.ts.map

@@ -20,3 +20,3 @@ "use strict";

// this is autogenerated file, see scripts/version-update.js
exports.VERSION = '0.11.0';
exports.VERSION = '0.11.1-alpha.36+6eb157c6';
//# sourceMappingURL=version.js.map
{
"name": "@opentelemetry/context-async-hooks",
"version": "0.11.0",
"version": "0.11.1-alpha.36+6eb157c6",
"description": "OpenTelemetry AsyncHooks-based Context Manager",

@@ -54,9 +54,9 @@ "main": "build/src/index.js",

"ts-mocha": "7.0.0",
"ts-node": "8.10.2",
"ts-node": "9.0.0",
"typescript": "3.9.7"
},
"dependencies": {
"@opentelemetry/context-base": "^0.11.0"
"@opentelemetry/context-base": "^0.11.1-alpha.36+6eb157c6"
},
"gitHead": "15174c6647ab9863dfc1424412fa60f2fddb3351"
"gitHead": "6eb157c66925fe84b4960f247a86678441f3cb60"
}

Sorry, the diff of this file is not supported yet

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