Comparing version 1.0.8 to 1.0.9
@@ -32,7 +32,7 @@ /** | ||
process.on('exit', () => clearTimeout(data.timeoutId)) // app is closing | ||
process.on('SIGINT', () => clearTimeout(data.timeoutId)) // catches ctrl+c event | ||
process.on('SIGBREAK', () => clearTimeout(data.timeoutId)) // catches Windows ctrl+c event | ||
process.on('SIGUSR1', () => clearTimeout(data.timeoutId)) // catches "kill pid" | ||
process.on('SIGUSR2', () => clearTimeout(data.timeoutId)) // catches "kill pid" | ||
process.on('exit', () => shutdown('exit', data)) // app is closing | ||
process.on('SIGINT', () => shutdown('SIGINT', data)) // catches ctrl+c event | ||
process.on('SIGBREAK', () => shutdown('SIGBREAK', data)) // catches Windows ctrl+c event | ||
process.on('SIGUSR1', () => shutdown('SIGUSR1', data)) // catches "kill pid" | ||
process.on('SIGUSR2', () => shutdown('SIGUSR2', data)) // catches "kill pid" | ||
@@ -85,2 +85,6 @@ cache.clearCache = function() { | ||
return data.ttl * 60000 | ||
} | ||
function shutdown() { | ||
clearTimeout(data.timeoutId) | ||
} |
{ | ||
"name": "byu-jwt", | ||
"version": "1.0.8", | ||
"version": "1.0.9", | ||
"description": "The byu-jwt module provides helpful functions to retrieve a specified BYU .well-known URL and verify BYU signed JWTs.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -61,3 +61,3 @@ /* | ||
try { | ||
const obj = JSON.parse(body) | ||
const obj = typeof body === 'object' ? body : JSON.parse(body) | ||
jwt = obj.Headers['X-Jwt-Assertion'][0] | ||
@@ -64,0 +64,0 @@ } catch (err) { |
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
42690
644