New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

alks-node

Package Overview
Dependencies
Maintainers
8
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

alks-node - npm Package Compare versions

Comparing version 0.10.1 to 0.10.2

14

lib/alks-api.js

@@ -33,2 +33,11 @@ /*jslint node: true */

var getMessageFromRefreshToAccess = function(results) {
if (results.body) {
if (results.body.errors) {
return results.body.errors;
}
}
return 'Bad response received, please check API URL.';
}
var log = function(section, msg, options){

@@ -625,7 +634,6 @@ if(options.debug){

if(err){
// [AM] - This is when we get a 500, which is (in ALKS Core) a bad refresh token. Should pass this error to the CLI.
return callback("Error: Refresh token expired. Please try to use the logout2fa and login2fa commands.");
return callback(err);
}
else if(results.statusCode !== 200){
return callback(new Error(getMessageFromBadResponse(results)));
return callback(new Error(getMessageFromRefreshToAccess(results)));
}

@@ -632,0 +640,0 @@

{
"name": "alks-node",
"version": "0.10.1",
"version": "0.10.2",
"description": "Node client for ALKS",

@@ -5,0 +5,0 @@ "main": "lib/alks-api.js",

Sorry, the diff of this file is not supported yet

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