@inneropen/marvin-sdk 2.0.0-next.12 → 2.0.0-next.13
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-DYC2BEA4.js} +6 -1
- package/dist/index.cjs +6 -1
- package/dist/index.js +1 -1
- package/dist/platform.cjs +6 -1
- package/dist/platform.js +1 -1
- package/package.json +1 -1
|
@@ -237,7 +237,12 @@ 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
|
+
const preview = typeof data === "object" && data !== null ? Array.isArray(data) ? `Array(${data.length})` : `Object with keys: ${Object.keys(data).join(", ")}` : String(data);
|
|
243
|
+
this.logger.log(`[Marvin] Response: ${preview}`);
|
|
244
|
+
}
|
|
245
|
+
return data;
|
|
241
246
|
} catch (error) {
|
|
242
247
|
clearTimeout(timeoutId);
|
|
243
248
|
if (error instanceof MarvinApiError || error instanceof MarvinNotFoundError || error instanceof MarvinAuthError || error instanceof MarvinServerError) {
|
package/dist/index.cjs
CHANGED
|
@@ -280,7 +280,12 @@ 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
|
+
const preview = typeof data === "object" && data !== null ? Array.isArray(data) ? `Array(${data.length})` : `Object with keys: ${Object.keys(data).join(", ")}` : String(data);
|
|
286
|
+
this.logger.log(`[Marvin] Response: ${preview}`);
|
|
287
|
+
}
|
|
288
|
+
return data;
|
|
284
289
|
} catch (error) {
|
|
285
290
|
clearTimeout(timeoutId);
|
|
286
291
|
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,12 @@ 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
|
+
const preview = typeof data === "object" && data !== null ? Array.isArray(data) ? `Array(${data.length})` : `Object with keys: ${Object.keys(data).join(", ")}` : String(data);
|
|
236
|
+
this.logger.log(`[Marvin] Response: ${preview}`);
|
|
237
|
+
}
|
|
238
|
+
return data;
|
|
234
239
|
} catch (error) {
|
|
235
240
|
clearTimeout(timeoutId);
|
|
236
241
|
if (error instanceof MarvinApiError || error instanceof MarvinNotFoundError || error instanceof MarvinAuthError || error instanceof MarvinServerError) {
|
package/dist/platform.js
CHANGED