asposecellscloud
Advanced tools
Comparing version 19.9.0 to 19.10.0
@@ -66,3 +66,3 @@ "use strict"; | ||
json: true, | ||
uri: configuration.baseUrl + "/connect/token", | ||
uri: configuration.baseUrl + (configuration.apiVersion == "v1.1" ? "/oauth2/token" : "/connect/token"), | ||
form: { | ||
@@ -69,0 +69,0 @@ grant_type: "client_credentials", |
@@ -23,6 +23,10 @@ import { IAuthentication } from "../internal/auth"; | ||
/** | ||
* Base version. | ||
*/ | ||
apiVersion: string; | ||
/** | ||
* Gets or sets a value indicating whether debug mode. In debug mode all requests and responses are logged to console. | ||
*/ | ||
debugMode: boolean; | ||
constructor(appSID: string, appKey: string, baseUrl?: string, debugMode?: boolean); | ||
constructor(appSID: string, appKey: string, apiVersion?: string, baseUrl?: string, debugMode?: boolean); | ||
/** | ||
@@ -29,0 +33,0 @@ * Returns api base url |
@@ -28,3 +28,3 @@ "use strict"; | ||
const defaultBasePath = "https://api.aspose.cloud"; | ||
const apiVersion = "v3.0"; | ||
const defaultApiVersion = "v3.0"; | ||
/** | ||
@@ -34,3 +34,3 @@ * Words API configuration | ||
class Configuration { | ||
constructor(appSID, appKey, baseUrl, debugMode) { | ||
constructor(appSID, appKey, apiVersion, baseUrl, debugMode) { | ||
/** | ||
@@ -40,5 +40,12 @@ * Base Url. | ||
this.baseUrl = defaultBasePath; | ||
/** | ||
* Base version. | ||
*/ | ||
this.apiVersion = defaultApiVersion; | ||
if (baseUrl) { | ||
this.baseUrl = baseUrl; | ||
} | ||
if (apiVersion) { | ||
this.apiVersion = apiVersion; | ||
} | ||
this.appSID = appSID; | ||
@@ -53,5 +60,5 @@ this.appKey = appKey; | ||
getApiBaseUrl() { | ||
return this.baseUrl + "/" + apiVersion; | ||
return this.baseUrl + "/" + this.apiVersion; | ||
} | ||
} | ||
exports.Configuration = Configuration; |
@@ -101,3 +101,3 @@ "use strict"; | ||
requestOptions.headers["x-aspose-client"] = "nodejs sdk"; | ||
requestOptions.headers["x-aspose-client-version"] = "19.9.0"; | ||
requestOptions.headers["x-aspose-client-version"] = "19.10.0"; | ||
const auth = confguration.authentication; | ||
@@ -104,0 +104,0 @@ if (!notApplyAuthToRequest) { |
{ | ||
"name": "asposecellscloud", | ||
"version": "19.9.0", | ||
"version": "19.10.0", | ||
"description": "Aspose.Cells Cloud SDK for Node.js", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -1,5 +0,5 @@ | ||
# Aspose.Cells Cloud SDK for NodeJS [![NuGet](https://img.shields.io/nuget/v/Aspose.Cells-Cloud.svg)](https://www.nuget.org/packages/Aspose.Cells-Cloud/) | ||
# Aspose.Cells Cloud SDK for NodeJS | ||
- API version: 3.0 | ||
- SDK version: 19.9 | ||
- SDK version: 19.10 | ||
@@ -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. |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
1424674
39469