@inneropen/marvin-sdk 2.0.0-next.12 → 2.0.0-next.14
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.
- package/dist/{chunk-QBHM2XNX.js → chunk-BVHNN2PW.js} +5 -1
- package/dist/index.cjs +5 -1
- package/dist/index.js +1 -1
- package/dist/platform.cjs +5 -1
- package/dist/platform.js +1 -1
- package/package.json +1 -1
|
@@ -237,7 +237,11 @@ var init_HttpClient = __esm({
|
|
|
237
237
|
if (!contentType || !contentType.includes("application/json")) {
|
|
238
238
|
return void 0;
|
|
239
239
|
}
|
|
240
|
-
|
|
240
|
+
const data = await response.json();
|
|
241
|
+
if (this.debug) {
|
|
242
|
+
this.logger.log("[Marvin] Response:", JSON.stringify(data, null, 2));
|
|
243
|
+
}
|
|
244
|
+
return data;
|
|
241
245
|
} catch (error) {
|
|
242
246
|
clearTimeout(timeoutId);
|
|
243
247
|
if (error instanceof MarvinApiError || error instanceof MarvinNotFoundError || error instanceof MarvinAuthError || error instanceof MarvinServerError) {
|
package/dist/index.cjs
CHANGED
|
@@ -280,7 +280,11 @@ var init_HttpClient = __esm({
|
|
|
280
280
|
if (!contentType || !contentType.includes("application/json")) {
|
|
281
281
|
return void 0;
|
|
282
282
|
}
|
|
283
|
-
|
|
283
|
+
const data = await response.json();
|
|
284
|
+
if (this.debug) {
|
|
285
|
+
this.logger.log("[Marvin] Response:", JSON.stringify(data, null, 2));
|
|
286
|
+
}
|
|
287
|
+
return data;
|
|
284
288
|
} catch (error) {
|
|
285
289
|
clearTimeout(timeoutId);
|
|
286
290
|
if (error instanceof MarvinApiError || error instanceof MarvinNotFoundError || error instanceof MarvinAuthError || error instanceof MarvinServerError) {
|
package/dist/index.js
CHANGED
package/dist/platform.cjs
CHANGED
|
@@ -230,7 +230,11 @@ var HttpClient = class {
|
|
|
230
230
|
if (!contentType || !contentType.includes("application/json")) {
|
|
231
231
|
return void 0;
|
|
232
232
|
}
|
|
233
|
-
|
|
233
|
+
const data = await response.json();
|
|
234
|
+
if (this.debug) {
|
|
235
|
+
this.logger.log("[Marvin] Response:", JSON.stringify(data, null, 2));
|
|
236
|
+
}
|
|
237
|
+
return data;
|
|
234
238
|
} catch (error) {
|
|
235
239
|
clearTimeout(timeoutId);
|
|
236
240
|
if (error instanceof MarvinApiError || error instanceof MarvinNotFoundError || error instanceof MarvinAuthError || error instanceof MarvinServerError) {
|
package/dist/platform.js
CHANGED