New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

nats-hemera

Package Overview
Dependencies
Maintainers
1
Versions
279
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nats-hemera - npm Package Compare versions

Comparing version 3.5.0 to 3.5.1

2

lib/constants.js

@@ -22,3 +22,3 @@ 'use strict'

],
// NATS erros
// NATS errors
NATS_TRANSPORT_ERROR: 'Could not connect to NATS!',

@@ -25,0 +25,0 @@ NATS_TRANSPORT_CLOSED: 'NATS connection closed!',

@@ -38,8 +38,17 @@ 'use strict'

// tracing
context.trace$ = pattern.trace$ || {}
context.trace$.parentSpanId =
context.trace$.spanId || parentContext.trace$.spanId
context.trace$.traceId =
context.trace$.traceId || parentContext.trace$.traceId || Util.randomId()
context.trace$.spanId = Util.randomId()
if (pattern.trace$) {
context.trace$ = {
spanId: pattern.trace$.spanId || Util.randomId(),
traceId: pattern.trace$.traceId || Util.randomId()
}
context.trace$.parentSpanId =
pattern.trace$.parentSpanId || parentContext.trace$.spanId
} else {
context.trace$ = {
spanId: parentContext.trace$.spanId || Util.randomId(),
traceId: parentContext.trace$.traceId || Util.randomId()
}
context.trace$.parentSpanId = parentContext.trace$.spanId
}
context.trace$.timestamp = currentTime

@@ -161,3 +170,3 @@ context.trace$.service = pattern.topic

// icnoming pattern
// incoming pattern
context._pattern = context._request.payload.pattern

@@ -164,0 +173,0 @@ // find matched action

{
"name": "nats-hemera",
"author": "Dustin Deus (https://github.com/StarpTech)",
"version": "3.5.0",
"version": "3.5.1",
"main": "lib/index.js",

@@ -6,0 +6,0 @@ "homepage": "https://hemerajs.github.io/hemera/",

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