asposecellscloud
Advanced tools
Comparing version 20.1.0 to 20.2.0
@@ -22,2 +22,3 @@ import request = require("request"); | ||
private refreshToken; | ||
private getTime; | ||
/** | ||
@@ -24,0 +25,0 @@ * Apply authentication settings to header and query params. |
@@ -47,2 +47,6 @@ "use strict"; | ||
} | ||
const now = new Date().getTime(); | ||
if (now - this.getTime > 86300) { | ||
yield this._requestToken(configuration); | ||
} | ||
if (requestOptions && requestOptions.headers) { | ||
@@ -77,2 +81,3 @@ requestOptions.headers.Authorization = "Bearer " + this.accessToken; | ||
this.refreshToken = response.body.refresh_token; | ||
this.getTime = new Date().getTime(); | ||
return Promise.resolve(); | ||
@@ -79,0 +84,0 @@ }); |
@@ -101,3 +101,3 @@ "use strict"; | ||
requestOptions.headers["x-aspose-client"] = "nodejs sdk"; | ||
requestOptions.headers["x-aspose-client-version"] = "20.1.0"; | ||
requestOptions.headers["x-aspose-client-version"] = "20.2.0"; | ||
const auth = confguration.authentication; | ||
@@ -104,0 +104,0 @@ if (!notApplyAuthToRequest) { |
{ | ||
"name": "asposecellscloud", | ||
"version": "20.1.0", | ||
"version": "20.2.0", | ||
"description": "Aspose.Cells Cloud SDK for Node.js", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
# Aspose.Cells Cloud SDK for NodeJS | ||
- API version: 3.0 | ||
- SDK version: 20.1 | ||
- SDK version: 20.2 | ||
@@ -6,0 +6,0 @@ This repository contains Aspose.Cells Cloud SDK for NodeJS source code. This SDK allows you to work with Aspose.Cells Cloud REST APIs in your NodeJS applications quickly and easily, with zero initial cost. |
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
1424910
39475