openid-client
Advanced tools
Comparing version 5.1.0 to 5.1.1
@@ -34,3 +34,3 @@ const { inspect } = require('util'); | ||
const [major, minor] = process.version | ||
.substr(1) | ||
.slice(1) | ||
.split('.') | ||
@@ -37,0 +37,0 @@ .map((str) => parseInt(str, 10)); |
@@ -42,3 +42,3 @@ const v8 = require('v8'); | ||
function getKtyFromAlg(alg) { | ||
switch (typeof alg === 'string' && alg.substr(0, 2)) { | ||
switch (typeof alg === 'string' && alg.slice(0, 2)) { | ||
case 'RS': | ||
@@ -72,3 +72,3 @@ case 'PS': | ||
if (use === 'sig' || use === undefined) { | ||
algs = algs.concat([`ES${crv.substr(-3)}`.replace('21', '12')]); | ||
algs = algs.concat([`ES${crv.slice(-3)}`.replace('21', '12')]); | ||
} | ||
@@ -75,0 +75,0 @@ |
module.exports = function pick(object, ...paths) { | ||
const obj = {}; | ||
for (const path of paths) { | ||
if (object[path]) { | ||
if (object[path] !== undefined) { | ||
obj[path] = object[path]; | ||
@@ -6,0 +6,0 @@ } |
{ | ||
"name": "openid-client", | ||
"version": "5.1.0", | ||
"version": "5.1.1", | ||
"description": "OpenID Connect Relying Party (RP, Client) implementation for Node.js runtime, supports passportjs", | ||
@@ -87,3 +87,3 @@ "keywords": [ | ||
"type": "fix", | ||
"section": "Bug Fixes" | ||
"section": "Fixes" | ||
}, | ||
@@ -90,0 +90,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
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
133318