flowscale 1.3.2 → 1.3.4

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/index.js CHANGED
@@ -414,8 +414,17 @@ var FlowscaleAPI = /** @class */ (function () {
414
414
  continue;
415
415
  }
416
416
  if (result.output.status === 'success') {
417
+ if (result.output.data.file_content !== null) {
418
+ successfulOutputs.push({
419
+ filename: result.filename,
420
+ download_url: undefined,
421
+ file_content: result.output.data.file_content || '',
422
+ generation_status: result.output.data.generation_status || 'success'
423
+ });
424
+ }
417
425
  successfulOutputs.push({
418
426
  filename: result.filename,
427
+ file_content: undefined,
419
428
  download_url: result.output.data.download_url || '',
420
429
  generation_status: result.output.data.generation_status || 'success'
421
430
  });
@@ -685,13 +694,11 @@ var FlowscaleAPI = /** @class */ (function () {
685
694
  switch (_a.label) {
686
695
  case 0:
687
696
  if (!callback) {
688
- this.logError("No callback");
689
697
  return [2 /*return*/];
690
698
  }
691
699
  _a.label = 1;
692
700
  case 1:
693
701
  _a.trys.push([1, 3, , 4]);
694
- this.logInfo("got INTERMEDIATe UPDATE");
695
702
  return [4 /*yield*/, callback(update)];
696
703
  case 2:
697
704
  _a.sent();
package/dist/types.d.ts CHANGED
@@ -58,7 +58,8 @@ export interface GetAllOutputsResponse {
58
58
  status: string;
59
59
  data: Array<{
60
60
  filename: string;
61
- download_url: string;
61
+ download_url?: string;
62
+ file_content?: any;
62
63
  generation_status: string;
63
64
  }>;
64
65
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flowscale",
3
- "version": "1.3.2",
3
+ "version": "1.3.4",
4
4
  "description": "An NPM library for communicating with the Flowscale APIs",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",