Comparing version 4.1.2 to 4.1.3
@@ -193,3 +193,3 @@ 'use strict'; | ||
Server.prototype.getMethod = function(name) { | ||
if (this._methods.hasOwnProperty(name)) { | ||
if (Object.prototype.hasOwnProperty.call(this._methods, name)) { | ||
return this._methods[name]; | ||
@@ -196,0 +196,0 @@ } |
{ | ||
"name": "jayson", | ||
"version": "4.1.2", | ||
"version": "4.1.3", | ||
"description": "JSON-RPC 1.0/2.0 compliant server and client", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -672,3 +672,3 @@ # Jayson | ||
// regular by-name routing first | ||
const fn = this._methods.hasOwnProperty(method) ? this._methods[method] : null; | ||
const fn = Object.prototype.hasOwnProperty.call(this._methods, method) ? this._methods[method] : null; | ||
if(typeof fn === 'function') { | ||
@@ -675,0 +675,0 @@ return fn; |
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
162357