@opentelemetry/context-zone-peer-dep
Advanced tools
Comparing version 0.16.0 to 0.16.1-alpha.11
@@ -25,3 +25,3 @@ "use strict"; | ||
var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p); | ||
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); | ||
}; | ||
@@ -28,0 +28,0 @@ Object.defineProperty(exports, "__esModule", { value: true }); |
@@ -87,5 +87,7 @@ import { Context, ContextManager } from '@opentelemetry/context-base'; | ||
* @param fn Callback function | ||
* @param thisArg optional receiver to be used for calling fn | ||
* @param args optional arguments forwarded to fn | ||
*/ | ||
with<T extends (...args: unknown[]) => ReturnType<T>>(context: Context | null, fn: () => ReturnType<T>): ReturnType<T>; | ||
with<A extends unknown[], F extends (...args: A) => ReturnType<F>>(context: Context | null, fn: F, thisArg?: ThisParameterType<F>, ...args: A): ReturnType<F>; | ||
} | ||
//# sourceMappingURL=ZoneContextManager.d.ts.map |
@@ -204,7 +204,9 @@ "use strict"; | ||
* @param fn Callback function | ||
* @param thisArg optional receiver to be used for calling fn | ||
* @param args optional arguments forwarded to fn | ||
*/ | ||
with(context, fn) { | ||
with(context, fn, thisArg, ...args) { | ||
const zoneName = this._createZoneName(); | ||
const newZone = this._createZone(zoneName, context); | ||
return newZone.run(fn, context); | ||
return newZone.run(fn, thisArg, args); | ||
} | ||
@@ -211,0 +213,0 @@ } |
{ | ||
"name": "@opentelemetry/context-zone-peer-dep", | ||
"version": "0.16.0", | ||
"version": "0.16.1-alpha.11+70a128ff", | ||
"description": "OpenTelemetry Context Zone with peer dependency for zone.js", | ||
@@ -52,3 +52,3 @@ "main": "build/src/index.js", | ||
"codecov": "3.8.1", | ||
"gts": "2.0.2", | ||
"gts": "3.1.0", | ||
"istanbul-instrumenter-loader": "3.0.1", | ||
@@ -68,3 +68,3 @@ "karma": "5.2.3", | ||
"ts-node": "9.1.1", | ||
"typescript": "3.9.7", | ||
"typescript": "4.1.3", | ||
"webpack": "4.46.0", | ||
@@ -75,3 +75,3 @@ "webpack-cli": "4.3.1", | ||
"dependencies": { | ||
"@opentelemetry/context-base": "^0.16.0" | ||
"@opentelemetry/context-base": "^0.16.1-alpha.11+70a128ff" | ||
}, | ||
@@ -82,3 +82,3 @@ "peerDependencies": { | ||
"sideEffects": false, | ||
"gitHead": "e68863f8e63854b08ad13fb54677294ac6d6b681" | ||
"gitHead": "70a128ff5dca16060ca7c2cff943369ae9999c34" | ||
} |
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
38596
422
1
+ Added@opentelemetry/context-base@0.16.1-alpha.11(transitive)
- Removed@opentelemetry/context-base@0.16.0(transitive)
Updated@opentelemetry/context-base@^0.16.1-alpha.11+70a128ff