@brandboostinggmbh/observable-workflows 0.17.1 → 0.17.2

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.d.ts CHANGED
@@ -460,6 +460,7 @@ declare const createLogAccessor: (context: {
460
460
  listWorkflows: (limit: number, offset: number, filter?: WorkflowFilter, options?: {
461
461
  /** If false the input will not be populated. This decreases memory load. */
462
462
  populateInput?: boolean;
463
+ debugLogs?: boolean;
463
464
  }) => Promise<WorkflowRun[]>;
464
465
  getWorkflow: (instanceId: string, populateData?: boolean) => Promise<WorkflowRun | null>;
465
466
  getWorkflowTypesByTenantId: (tenantId: string) => Promise<string[]>;
package/dist/index.js CHANGED
@@ -766,7 +766,9 @@ const createLogAccessor = (context) => {
766
766
  }
767
767
  const listWorkflows = async (limit, offset, filter, options) => {
768
768
  const { sql, bindings } = buildFilteredWorkflowQuery(filter);
769
+ if (options?.debugLogs) console.log("listWorkflows SQL:", sql, "Bindings:", JSON.stringify(bindings));
769
770
  const result = await context.D1.prepare(sql).bind(...bindings, limit, offset).all();
771
+ if (options?.debugLogs) console.log("listWorkflows SQL Query executed");
770
772
  if (result.results) {
771
773
  const workflows = await Promise.all(result.results.map((row) => workflowTableRowToWorkflowRun({
772
774
  row,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brandboostinggmbh/observable-workflows",
3
- "version": "0.17.1",
3
+ "version": "0.17.2",
4
4
  "description": "My awesome typescript library",
5
5
  "type": "module",
6
6
  "license": "MIT",