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.5 to 5.8.6

1

index.d.ts

@@ -558,2 +558,3 @@ /// <reference types="node" />

notFoundPattern: Hemera.ServerPattern
sid: number

@@ -560,0 +561,0 @@ matchedAction: Hemera.AddDefinition

14

lib/extensions.js

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

if (context._config.traceLog) {
if (context._config.traceLog === true) {
context.log = context.log.child({

@@ -218,5 +218,5 @@ tag: context._config.tag,

// We have to remove the pattern manually when maxMessages$ was received.
// This is required because NATS unsubscribe events is fired to early.
// This is required because NATS unsubscribe events is fired too early.
// Only relevant for server actions with custom transport options.
if (context.matchedAction) {
if (context.matchedAction !== null) {
context.matchedAction._receivedMsg++

@@ -230,3 +230,3 @@ if (

}
} else if (context._notFoundPattern) {
} else if (context._notFoundPattern !== null) {
// fallback to notFound action when defined

@@ -237,3 +237,3 @@ context.matchedAction = context._router.lookup(context._notFoundPattern)

if (context._config.traceLog) {
if (context._config.traceLog === true) {
context.log = context.log.child({

@@ -266,3 +266,3 @@ tag: context._config.tag,

function onServerPreResponse(context, req, reply, next) {
if (context._config.traceLog) {
if (context._config.traceLog === true) {
context.log = context.log.child({

@@ -391,3 +391,3 @@ tag: context._config.tag,

function onServerPreRequestLoadTest(context, req, reply, next) {
if (context._config.load.checkPolicy) {
if (context._config.load.checkPolicy === true) {
const error = context._loadPolicy.check()

@@ -394,0 +394,0 @@ if (error) {

@@ -94,2 +94,3 @@ 'use strict'

}
this.sid = 0

@@ -572,3 +573,3 @@ // represent the 'Add' instance

_checkMemberDependencies(deps) {
for (var i = 0; i < deps.length; i++) {
for (let i = 0; i < deps.length; i++) {
if (!(deps[i] in this)) {

@@ -637,3 +638,3 @@ throw new Errors.HemeraError(`Missing member dependency '${deps[i]}'`)

}
for (var i = 0; i < decorators.length; i++) {
for (let i = 0; i < decorators.length; i++) {
if (!(decorators[i] in this)) {

@@ -827,7 +828,7 @@ throw new Errors.HemeraError(

)
hemera._pattern = {}
hemera._pattern = null
hemera._isServer = true
// represent the matched server action "add"
hemera.matchedAction = {}
hemera.matchedAction = null

@@ -834,0 +835,0 @@ runExt(

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

@@ -42,7 +42,7 @@ "homepage": "https://hemerajs.github.io/hemera/",

"devDependencies": {
"@types/node": "^10.1.3",
"@types/node": "^10.5.1",
"@types/pino": "^4.16.0"
},
"dependencies": {
"avvio": "5.4.x",
"avvio": "5.6.x",
"bloomrun": "4.1.x",

@@ -53,3 +53,3 @@ "errio": "1.2.x",

"joi": "11.1.x",
"pino": "4.16.x",
"pino": "4.17.x",
"super-error": "2.2.x",

@@ -59,5 +59,5 @@ "tinysonic": "1.3.x"

"peerDependencies": {
"nats": "0.8.x"
"nats": ">= 0.8.x <= 1.x.x"
},
"typings": "./index.d.ts"
}
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