gap-nodejs-sdk 1.0.253 → 1.0.255

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -101,7 +101,7 @@ export class HttpClient {
101
101
  return __awaiter(this, void 0, void 0, function* () {
102
102
  try {
103
103
  const response = yield this.axios(options);
104
- if (!Array.isArray(response) &&
104
+ if (!Array.isArray(response.data) &&
105
105
  (!/^(2|OK|null)/gi.test((_a = response === null || response === void 0 ? void 0 : response.data) === null || _a === void 0 ? void 0 : _a.status) ||
106
106
  !/^(2|OK|null)/gi.test((_c = (_b = response === null || response === void 0 ? void 0 : response.data) === null || _b === void 0 ? void 0 : _b.result) === null || _c === void 0 ? void 0 : _c.status))) {
107
107
  const errorMessage = JSON.stringify(response.data.message || response.data.result.message, null, 2);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gap-nodejs-sdk",
3
- "version": "1.0.253",
3
+ "version": "1.0.255",
4
4
  "description": "GCI App Platform Library",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",