@vitnode/node-cron 1.2.0-canary.76 → 1.2.0-canary.77

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.
@@ -1,6 +1,3 @@
1
- import { CronAdapter } from "@vitnode/core/api/lib/cron";
2
- //#region src/index.d.ts
3
- declare const NodeCronAdapter: () => CronAdapter;
4
- //#endregion
5
- export { NodeCronAdapter };
1
+ import { type CronAdapter } from "@vitnode/core/api/lib/cron";
2
+ export declare const NodeCronAdapter: () => CronAdapter;
6
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","names":[],"sources":["../../src/index.ts"],"mappings":";;cAGa,uBAAsB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,WAAW,EAAkB,MAAM,4BAA4B,CAAC;AAG9E,eAAO,MAAM,eAAe,QAAO,WAQlC,CAAC"}
package/dist/src/index.js CHANGED
@@ -1,2 +1 @@
1
- import{handleCronJobs as e}from"@vitnode/core/api/lib/cron";import{schedule as t}from"node-cron";const n=()=>({schedule(){t(`*/1 * * * *`,async()=>{await e()})}});export{n as NodeCronAdapter};
2
- //# sourceMappingURL=index.js.map
1
+ import{handleCronJobs}from"@vitnode/core/api/lib/cron";import{schedule}from"node-cron";export const NodeCronAdapter=()=>{return{schedule(){schedule("*/1 * * * *",async()=>{await handleCronJobs()})}}};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vitnode/node-cron",
3
- "version": "1.2.0-canary.76",
3
+ "version": "1.2.0-canary.77",
4
4
  "description": "Node-cron adapter for VitNode, enabling cron job scheduling and management.",
5
5
  "author": "VitNode Team",
6
6
  "license": "MIT",
@@ -25,18 +25,20 @@
25
25
  }
26
26
  },
27
27
  "dependencies": {
28
- "node-cron": "^4.5.0"
28
+ "node-cron": "^4.6.0"
29
29
  },
30
30
  "devDependencies": {
31
- "eslint": "^10.5.0",
32
- "tsdown": "^0.22.4",
31
+ "@swc/cli": "^0.8.1",
32
+ "@swc/core": "^1.15.46",
33
+ "eslint": "^10.7.0",
34
+ "tsc-alias": "^1.9.1",
33
35
  "typescript": "^6.0.3",
34
- "@vitnode/config": "1.2.0-canary.76",
35
- "@vitnode/core": "1.2.0-canary.76"
36
+ "@vitnode/config": "1.2.0-canary.77",
37
+ "@vitnode/core": "1.2.0-canary.77"
36
38
  },
37
39
  "scripts": {
38
- "build:plugins": "tsdown",
39
- "dev:plugins": "tsdown --watch",
40
+ "build:plugins": "vitnode build",
41
+ "dev:plugins": "vitnode dev",
40
42
  "lint": "eslint .",
41
43
  "lint:fix": "eslint . --fix"
42
44
  }
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../../src/index.ts"],"sourcesContent":["import { type CronAdapter, handleCronJobs } from \"@vitnode/core/api/lib/cron\";\nimport { schedule } from \"node-cron\";\n\nexport const NodeCronAdapter = (): CronAdapter => {\n return {\n schedule() {\n schedule(\"*/1 * * * *\", async () => {\n await handleCronJobs();\n });\n },\n };\n};\n"],"mappings":"iGAGA,MAAa,OACJ,CACL,UAAW,CACT,EAAS,cAAe,SAAY,CAClC,MAAM,EAAe,CACvB,CAAC,CACH,CACF"}