diff --git a/lib/response.js b/lib/response.js index 4e9d1ec69..57937b369 100644 --- a/lib/response.js +++ b/lib/response.js @@ -13,7 +13,7 @@ function Response(options) { // Store the headers in lower case. for (var field in options.headers) { - if (options.headers.hasOwnProperty(field)) { + if (Object.prototype.hasOwnProperty.call(options.headers, field)) { this.headers[field.toLowerCase()] = options.headers[field]; } } diff --git a/package.json b/package.json index 6992ef15e..931992c3b 100644 --- a/package.json +++ b/package.json @@ -1,32 +1,54 @@ { - "name": "oauth2-server", + "name": "@vista/oauth2-server", "description": "Complete, framework-agnostic, compliant and well tested module for implementing an OAuth2 Server in node.js", - "version": "3.0.0", + "version": "3.0.4", "keywords": [ "oauth", "oauth2" ], "contributors": [ - { "name": "Thom Seddon", "email": "thom@seddonmedia.co.uk" }, - { "name": "Lars F. Karlström" , "email": "lars@lfk.io" }, - { "name": "Rui Marinho", "email": "ruipmarinho@gmail.com" }, - { "name" : "Tiago Ribeiro", "email": "tiago.ribeiro@gmail.com" }, - { "name": "Michael Salinger", "email": "mjsalinger@gmail.com" }, - { "name": "Nuno Sousa" }, - { "name": "Max Truxa" } + { + "name": "Thom Seddon", + "email": "thom@seddonmedia.co.uk" + }, + { + "name": "Lars F. Karlström", + "email": "lars@lfk.io" + }, + { + "name": "Rui Marinho", + "email": "ruipmarinho@gmail.com" + }, + { + "name": "Tiago Ribeiro", + "email": "tiago.ribeiro@gmail.com" + }, + { + "name": "Michael Salinger", + "email": "mjsalinger@gmail.com" + }, + { + "name": "Nuno Sousa" + }, + { + "name": "Max Truxa" + }, + { + "name": "Fabiano Taioli" + } ], "main": "index.js", "dependencies": { - "basic-auth": "1.1.0", - "bluebird": "3.5.0", - "lodash": "4.17.4", + "basic-auth": "2.0.1", + "bluebird": "3.7.2", + "lodash": "^4.17.19", "promisify-any": "2.0.1", - "statuses": "1.3.1", - "type-is": "1.6.15" + "statuses": "^2.0.0", + "type-is": "1.6.18" }, "devDependencies": { - "jshint": "2.9.4", - "mocha": "3.3.0", + "jshint": "^2.12.0", + "mocha": "10.8.2", "should": "11.2.1", "sinon": "2.3.2" },