liteapi-node-sdk
Advanced tools
Comparing version 3.0.0 to 3.0.1
@@ -28,3 +28,3 @@ class LiteApi { | ||
const response = await fetch(this.serviceURL + '/hotels/rates', options); | ||
const data = await response.json(); | ||
const result = await response.json(); | ||
@@ -34,3 +34,3 @@ if (!response.ok) { | ||
"status": "failed", | ||
"error": data.error | ||
"error": result.error | ||
} | ||
@@ -41,3 +41,3 @@ } | ||
"status": "success", | ||
"data": data.data | ||
"data": result.data | ||
} | ||
@@ -44,0 +44,0 @@ } |
{ | ||
"name": "liteapi-node-sdk", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"description": "Start building travel apps with liteAPI. Instantly access millions of hotels to build new or existing apps and platforms.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
136665