nats-hemera
Advanced tools
Comparing version 5.8.5 to 5.8.6
@@ -558,2 +558,3 @@ /// <reference types="node" /> | ||
notFoundPattern: Hemera.ServerPattern | ||
sid: number | ||
@@ -560,0 +561,0 @@ matchedAction: Hemera.AddDefinition |
@@ -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" | ||
} |
83829
3210
+ Addedavvio@5.6.0(transitive)
+ Addednats@1.4.12(transitive)
+ Addednuid@1.1.6(transitive)
+ Addedpino@4.17.6(transitive)
+ Addedts-nkeys@1.0.16(transitive)
+ Addedtweetnacl@1.0.3(transitive)
- Removedavvio@5.4.3(transitive)
- Removednats@0.8.10(transitive)
- Removednuid@0.6.14(transitive)
- Removedpino@4.16.1(transitive)
Updatedavvio@5.6.x
Updatedpino@4.17.x