hypertrace
Advanced tools
Comparing version 1.4.1 to 1.4.2
@@ -40,3 +40,3 @@ const objectState = new Map() | ||
trace (id, props) { | ||
const traceFunction = global[traceFunctionSymbol] | ||
const traceFunction = globalThis[traceFunctionSymbol] | ||
const shouldTrace = traceFunction | ||
@@ -110,6 +110,6 @@ if (!shouldTrace) return | ||
setTraceFunction: fn => { | ||
global[traceFunctionSymbol] = fn | ||
globalThis[traceFunctionSymbol] = fn | ||
}, | ||
clearTraceFunction: () => { | ||
global[traceFunctionSymbol] = undefined | ||
globalThis[traceFunctionSymbol] = undefined | ||
}, | ||
@@ -119,3 +119,3 @@ createTracer: (ctx, opts) => { | ||
// This is done for speed. | ||
const isTracing = !!global[traceFunctionSymbol] | ||
const isTracing = !!globalThis[traceFunctionSymbol] | ||
if (!isTracing) return noTracing | ||
@@ -122,0 +122,0 @@ return new Hypertrace(ctx, opts) |
{ | ||
"name": "hypertrace", | ||
"version": "1.4.1", | ||
"version": "1.4.2", | ||
"description": "Add tracing and insights to classes. Supports Prometheus/Grafana.", | ||
@@ -10,4 +10,4 @@ "main": "index.js", | ||
"keywords": [], | ||
"author": "", | ||
"license": "ISC", | ||
"author": "Holepunch Inc", | ||
"license": "Apache-2.0", | ||
"devDependencies": { | ||
@@ -14,0 +14,0 @@ "brittle": "^3.3.2", |
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
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
No contributors or author data
MaintenancePackage does not specify a list of contributors or an author in package.json.
Found 1 instance in 1 package
34969
7
1