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

@ntegral/lulu

Package Overview
Dependencies
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ntegral/lulu - npm Package Compare versions

Comparing version 1.2.8 to 1.2.9

3

dist/client.js

@@ -56,4 +56,5 @@ "use strict";

}
if (this.isAuthenticated && this.decoded && !moment.unix(+this.decoded.payload.exp).isAfter(now.add(10, 'minutes'))) {
if (this.isAuthenticated && this.decoded && now.isSameOrAfter(this.clock.add(60, 'seconds'))) {
let result = yield this.refreshToken(this.token);
console.log('refreshing token...');
resolve(result);

@@ -60,0 +61,0 @@ }

@@ -63,8 +63,14 @@ import * as request from 'request';

}
if (this.isAuthenticated && this.decoded && !moment.unix(+this.decoded.payload.exp).isAfter(now.add(10,'minutes'))) { // token hasn't expired renew //
if (this.isAuthenticated && this.decoded && now.isSameOrAfter(this.clock.add(60,'seconds'))) {
let result = await this.refreshToken(this.token);
console.log('refreshing token...');
// return result;
resolve(result);
}
/* if (this.isAuthenticated && this.decoded && !moment.unix(+this.decoded.payload.exp).isAfter(now.add(10,'minutes'))) { // token hasn't expired renew //
let result = await this.refreshToken(this.token);
// console.log('using of refreshToken');
// return result;
resolve(result);
}
} */
if (this.isAuthenticated && this.decoded && moment.unix(+this.decoded.payload.exp).isAfter(now)) { // token has expired, get a new token //

@@ -71,0 +77,0 @@ let result = await this.getToken();

@@ -10,3 +10,3 @@ {

"name": "@ntegral/lulu",
"version": "1.2.8",
"version": "1.2.9",
"description": "Lulu Print API Client",

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