openid-client
Advanced tools
Comparing version 3.15.5 to 3.15.6
@@ -5,2 +5,11 @@ # Change Log | ||
## [3.15.6](https://github.com/panva/node-openid-client/compare/v3.15.5...v3.15.6) (2020-07-06) | ||
### Bug Fixes | ||
* merge helper returns modified object, leftovers removed ([2e3339b](https://github.com/panva/node-openid-client/commit/2e3339bd82297d6e37574e007b8a443087f3291e)) | ||
## [3.15.5](https://github.com/panva/node-openid-client/compare/v3.15.4...v3.15.5) (2020-06-26) | ||
@@ -7,0 +16,0 @@ |
@@ -1,2 +0,2 @@ | ||
/* eslint-disable no-restricted-syntax */ | ||
/* eslint-disable no-restricted-syntax, no-continue */ | ||
@@ -8,5 +8,9 @@ const isPlainObject = require('./is_plain_object'); | ||
if (!isPlainObject(source)) { | ||
continue; // eslint-disable-line no-continue | ||
continue; | ||
} | ||
for (const [key, value] of Object.entries(source)) { | ||
/* istanbul ignore if */ | ||
if (key === '__proto__' || key === 'constructor') { | ||
continue; | ||
} | ||
if (typeof target[key] === 'undefined' && typeof value !== 'undefined') { | ||
@@ -13,0 +17,0 @@ target[key] = value; |
@@ -1,12 +0,15 @@ | ||
/* eslint-disable no-restricted-syntax */ | ||
/* eslint-disable no-restricted-syntax, no-param-reassign, no-continue */ | ||
const isPlainObject = require('./is_plain_object'); | ||
function merge(...sources) { | ||
const target = {}; | ||
function merge(target, ...sources) { | ||
for (const source of sources) { | ||
if (!isPlainObject(source)) { | ||
continue; // eslint-disable-line no-continue | ||
continue; | ||
} | ||
for (const [key, value] of Object.entries(source)) { | ||
/* istanbul ignore if */ | ||
if (key === '__proto__' || key === 'constructor') { | ||
continue; | ||
} | ||
if (isPlainObject(target[key]) && isPlainObject(value)) { | ||
@@ -23,2 +26,2 @@ target[key] = merge(target[key], value); | ||
module.exports = merge.bind(undefined, false); | ||
module.exports = merge; |
{ | ||
"name": "openid-client", | ||
"version": "3.15.5", | ||
"version": "3.15.6", | ||
"description": "OpenID Connect Relying Party (RP, Client) implementation for Node.js runtime, supports passportjs", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
164806
3202