Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

hypertrace

Package Overview
Dependencies
Maintainers
2
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hypertrace - npm Package Compare versions

Comparing version 1.4.1 to 1.4.2

LICENSE

8

index.js

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

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