Comparing version 3.1.2 to 3.1.3
@@ -115,3 +115,7 @@ "use strict"; | ||
} | ||
onMessage(context(message)); | ||
const nextMessage = context(message); | ||
if (typeof nextMessage !== 'object' || nextMessage === null) { | ||
throw new Error('Child middleware function must return a message object.'); | ||
} | ||
onMessage(nextMessage); | ||
}, parentContext); | ||
@@ -118,0 +122,0 @@ } |
@@ -80,3 +80,3 @@ { | ||
"typings": "./dist/log.d.ts", | ||
"version": "3.1.2" | ||
"version": "3.1.3" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
40947
444