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

appscode-api-js-client

Package Overview
Dependencies
Maintainers
1
Versions
65
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

appscode-api-js-client - npm Package Compare versions

Comparing version 1.0.16 to 1.0.17

6

lib/index.js

@@ -28,6 +28,8 @@ var RSVP = require('rsvp');

function checkAuth(resp) {
function checkStatus(resp) {
return new RSVP.Promise(function (resolve, reject) {
if (resp.status.code === "2") { // UNAUTHORIZED
Window.location.replace("/");
} else if (resp.status.code !== "0") { // not OK
reject(resp);
}

@@ -40,3 +42,3 @@ resolve(resp);

ensureCsrfToken: ensureCsrfToken,
checkAuth: checkAuth
checkStatus: checkStatus
};
{
"name": "appscode-api-js-client",
"version": "1.0.16",
"version": "1.0.17",
"description": "AppsCode API JavaScript Client",

@@ -5,0 +5,0 @@ "main": "index.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