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

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,3 +1,6 @@
1
- import { type CronAdapter } from "@vitnode/core/api/lib/cron";
2
- export declare const NodeCronAdapter: () => CronAdapter;
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 };
3
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
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"}
1
+ {"version":3,"file":"index.d.ts","names":[],"sources":["../../src/index.ts"],"mappings":";;cAGa,uBAAsB"}
package/dist/src/index.js CHANGED
@@ -1 +1,2 @@
1
- import{handleCronJobs}from"@vitnode/core/api/lib/cron";import{schedule}from"node-cron";export const NodeCronAdapter=()=>{return{schedule(){schedule("*/1 * * * *",async()=>{await handleCronJobs()})}}};
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
@@ -0,0 +1 @@
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"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vitnode/node-cron",
3
- "version": "1.2.0-canary.75",
3
+ "version": "1.2.0-canary.76",
4
4
  "description": "Node-cron adapter for VitNode, enabling cron job scheduling and management.",
5
5
  "author": "VitNode Team",
6
6
  "license": "MIT",
@@ -28,18 +28,15 @@
28
28
  "node-cron": "^4.5.0"
29
29
  },
30
30
  "devDependencies": {
31
- "@swc/cli": "^0.8.1",
32
- "@swc/core": "^1.15.43",
33
- "concurrently": "^10.0.3",
34
31
  "eslint": "^10.5.0",
35
- "tsc-alias": "^1.8.17",
32
+ "tsdown": "^0.22.4",
36
33
  "typescript": "^6.0.3",
37
- "@vitnode/config": "1.2.0-canary.75",
38
- "@vitnode/core": "1.2.0-canary.75"
34
+ "@vitnode/config": "1.2.0-canary.76",
35
+ "@vitnode/core": "1.2.0-canary.76"
39
36
  },
40
37
  "scripts": {
41
- "build:plugins": "tsc && swc src -d dist --config-file .swcrc && tsc-alias -p tsconfig.json",
42
- "dev:plugins": "concurrently \"tsc -w --preserveWatchOutput\" \"swc src -d dist --config-file .swcrc -w\" \"tsc-alias -w\"",
38
+ "build:plugins": "tsdown",
39
+ "dev:plugins": "tsdown --watch",
43
40
  "lint": "eslint .",
44
41
  "lint:fix": "eslint . --fix"
45
42
  }
@@ -0,0 +1,5 @@
1
+ {
2
+ "$schema": "https://json.schemastore.org/tsconfig",
3
+ "extends": "./tsconfig.json",
4
+ "exclude": ["node_modules", "**/*.test.ts", "**/*.test.tsx"]
5
+ }