Comparing version 0.0.7 to 0.0.8
@@ -42,3 +42,3 @@ 'use strict'; | ||
params = null; | ||
} else if (cb !== null && typeof cb !== 'function') { | ||
} else if (cb !== null && cb !== undefined && typeof cb !== 'function') { | ||
throw new TypeError('Bograch.call has an invalid callback function'); | ||
@@ -45,0 +45,0 @@ } |
{ | ||
"name": "bograch", | ||
"version": "0.0.7", | ||
"version": "0.0.8", | ||
"description": "A communication gateway for NodeJS microservices.", | ||
@@ -5,0 +5,0 @@ "main": "./lib", |
@@ -41,2 +41,10 @@ 'use strict'; | ||
}); | ||
it('should not throw an exception if no callback function passed', function () { | ||
expect(function () { | ||
boClient.call('foo', { | ||
a: 34 | ||
}); | ||
}).not.to.throw(Error); | ||
}); | ||
}); | ||
@@ -43,0 +51,0 @@ |
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
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
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
745074
23
370
8