Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@ministryofjustice/fb-jwt-client-node

Package Overview
Dependencies
Maintainers
2
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ministryofjustice/fb-jwt-client-node - npm Package Compare versions

Comparing version 0.0.21-beta to 0.0.21-delta

16

lib/fb-jwt-client.js

@@ -275,2 +275,5 @@ const request = require('request-promise-native')

console.log('JWTCLIENT handleRequestError', err.name, this.ErrorClass.name)
if (err.error) {
console.log('err.error', err.error)
}
// rethrow error if already client error

@@ -286,3 +289,7 @@ if (err.name === this.ErrorClass.name) {

} else {
this.throwRequestError(statusCode)
let message
if (err.error) {
message = err.error.name || err.error.code || 'EUNSPECIFIED'
}
this.throwRequestError(statusCode, message)
}

@@ -322,2 +329,9 @@ } else if (err.error) {

message = message || code
console.log('throwRequestError - BLIMEY', code, message, new this.ErrorClass(message, {
message,
error: {
code,
message
}
}))
throw new this.ErrorClass(message, {

@@ -324,0 +338,0 @@ message,

2

package.json
{
"name": "@ministryofjustice/fb-jwt-client-node",
"version": "0.0.21-beta",
"version": "0.0.21-delta",
"description": "Form Builder JSON Web Token Client (Node)",

@@ -5,0 +5,0 @@ "main": "lib/fb-jwt-client.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc