@hasna/connectors 1.3.11 → 1.3.12

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/bin/mcp.js CHANGED
@@ -17253,7 +17253,8 @@ var exports_scheduler = {};
17253
17253
  __export(exports_scheduler, {
17254
17254
  triggerJob: () => triggerJob,
17255
17255
  stopScheduler: () => stopScheduler,
17256
- startScheduler: () => startScheduler
17256
+ startScheduler: () => startScheduler,
17257
+ cronMatches: () => cronMatches
17257
17258
  });
17258
17259
  import { spawn as spawn2 } from "child_process";
17259
17260
  function cronMatches(cron, d) {
@@ -37195,7 +37196,7 @@ init_dist();
37195
37196
  // package.json
37196
37197
  var package_default = {
37197
37198
  name: "@hasna/connectors",
37198
- version: "1.3.11",
37199
+ version: "1.3.12",
37199
37200
  description: "Open source connector library - Install API connectors with a single command",
37200
37201
  type: "module",
37201
37202
  bin: {
package/bin/serve.js CHANGED
@@ -9812,7 +9812,8 @@ var exports_scheduler = {};
9812
9812
  __export(exports_scheduler, {
9813
9813
  triggerJob: () => triggerJob,
9814
9814
  stopScheduler: () => stopScheduler,
9815
- startScheduler: () => startScheduler
9815
+ startScheduler: () => startScheduler,
9816
+ cronMatches: () => cronMatches
9816
9817
  });
9817
9818
  import { spawn } from "child_process";
9818
9819
  function cronMatches(cron, d) {
@@ -0,0 +1 @@
1
+ export {};
@@ -9,6 +9,8 @@
9
9
  */
10
10
  import type { Database } from "../db/database.js";
11
11
  import { type ConnectorJob } from "../db/jobs.js";
12
+ /** Next cron fire time relative to a Date (simplified matcher) */
13
+ export declare function cronMatches(cron: string, d: Date): boolean;
12
14
  /** Start the scheduler. Checks every 30s, fires jobs when cron matches. */
13
15
  export declare function startScheduler(db: Database): void;
14
16
  export declare function stopScheduler(): void;
@@ -0,0 +1 @@
1
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hasna/connectors",
3
- "version": "1.3.11",
3
+ "version": "1.3.12",
4
4
  "description": "Open source connector library - Install API connectors with a single command",
5
5
  "type": "module",
6
6
  "bin": {