Huge News!Announcing our $40M Series B led by Abstract Ventures.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 5.8.8 to 5.8.9

26

lib/index.js

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

_registerErrors() {
for (var error in Hemera.errors) {
for (let error in Hemera.errors) {
Errio.register(Hemera.errors[error])

@@ -1558,16 +1558,2 @@ }

close(func) {
let promise
// callback style
if (func === undefined) {
promise = new Promise(function(resolve, reject) {
func = function(err) {
if (err) {
return reject(err)
}
resolve()
}
})
}
// 2. clean hemera

@@ -1588,11 +1574,3 @@ this.onShutdown((instance, done) => {

// 3. run user function
this.shutdown(err => {
if (err) {
this.log.error(err)
}
func(err)
})
return promise
return this.shutdown(func)
}

@@ -1599,0 +1577,0 @@ }

20

lib/reply.js

@@ -126,12 +126,8 @@ 'use strict'

if (self.hemera._extensionManager.onServerPreResponse.length) {
runExt(
self.hemera._extensionManager.onServerPreResponse,
serverExtIterator,
self.hemera,
err => self._onServerPreResponseCompleted(err)
)
} else {
self._onServerPreResponseCompleted()
}
runExt(
self.hemera._extensionManager.onServerPreResponse,
serverExtIterator,
self.hemera,
err => self._onServerPreResponseCompleted(err)
)
}

@@ -152,3 +148,5 @@ /**

self.hemera.emit('serverResponseError', extensionError)
self.send(extensionError)
// don't use send() here in order to avoid rexecution of serverPreResponse
// and to send the "send-error" as final response
self.error = extensionError
}

@@ -155,0 +153,0 @@

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

@@ -46,3 +46,3 @@ "homepage": "https://hemerajs.github.io/hemera/",

"dependencies": {
"avvio": "5.6.x",
"avvio": "5.7.x",
"bloomrun": "4.1.x",

@@ -49,0 +49,0 @@ "errio": "1.2.x",

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