Skip to content
This repository was archived by the owner on Jan 20, 2024. It is now read-only.

Commit e3de153

Browse files
committed
Update deps. Fix code standard errors
1 parent 7e0af76 commit e3de153

File tree

4 files changed

+2058
-1959
lines changed

4 files changed

+2058
-1959
lines changed

osprey-method-handler.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ function jsonBodyHandler (body, path, method, options) {
411411
if (!additionalProperties) {
412412
middleware.push(function (req, res, next) {
413413
var additionalPropertyFound = Object.keys(req.body).some(function (key) {
414-
return !schema.hasOwnProperty(key)
414+
return !Object.prototype.hasOwnProperty.call(schema, key)
415415
})
416416
if (additionalPropertyFound) {
417417
return next(createValidationError(formatRamlErrors([{
@@ -675,7 +675,7 @@ function formDataBodyHandler (body, path, method, options) {
675675
}
676676

677677
if (type === 'field' || type === 'file') {
678-
if (!params.hasOwnProperty(name)) {
678+
if (!Object.prototype.hasOwnProperty.call(params, name)) {
679679
return close()
680680
}
681681

0 commit comments

Comments
 (0)