@pikku/schedule 0.9.1 → 0.9.3-next.0
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/CHANGELOG.md +20 -0
- package/package.json +6 -7
- package/run-tests.sh +1 -1
- package/src/pikku-task-scheduler.ts +1 -4
- package/tsconfig.tsbuildinfo +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# @pikku/schedule
|
|
2
2
|
|
|
3
|
+
## 0.9.3-next.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
- @pikku/core@0.9.12-next.0
|
|
9
|
+
|
|
10
|
+
## 0.9.2
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- a5905a9: chore: updating all dependencies
|
|
15
|
+
- Updated dependencies [1256238]
|
|
16
|
+
- Updated dependencies [6cf8efd]
|
|
17
|
+
- Updated dependencies [d3a9a09]
|
|
18
|
+
- Updated dependencies [840e078]
|
|
19
|
+
- Updated dependencies [667d23c]
|
|
20
|
+
- Updated dependencies [a5905a9]
|
|
21
|
+
- @pikku/core@0.9.2
|
|
22
|
+
|
|
3
23
|
## 0.9.1
|
|
4
24
|
|
|
5
25
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pikku/schedule",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.3-next.0",
|
|
4
4
|
"author": "yasser.fadl@gmail.com",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -9,25 +9,24 @@
|
|
|
9
9
|
"scripts": {
|
|
10
10
|
"tsc": "tsc",
|
|
11
11
|
"ncu": "npx npm-check-updates",
|
|
12
|
-
"build
|
|
13
|
-
"build": "yarn build:esm",
|
|
12
|
+
"build": "tsc -b",
|
|
14
13
|
"release": "npm run build && npm test",
|
|
15
14
|
"test": "bash run-tests.sh",
|
|
16
15
|
"test:watch": "bash run-tests.sh --watch",
|
|
17
16
|
"test:coverage": "bash run-tests.sh --coverage"
|
|
18
17
|
},
|
|
19
18
|
"peerDependencies": {
|
|
20
|
-
"@pikku/core": "^0.9.
|
|
19
|
+
"@pikku/core": "^0.9.12-next.0"
|
|
21
20
|
},
|
|
22
21
|
"devDependencies": {
|
|
23
|
-
"@types/node": "^
|
|
24
|
-
"typescript": "^5.
|
|
22
|
+
"@types/node": "^24.2.1",
|
|
23
|
+
"typescript": "^5.9"
|
|
25
24
|
},
|
|
26
25
|
"engines": {
|
|
27
26
|
"node": ">=18"
|
|
28
27
|
},
|
|
29
28
|
"dependencies": {
|
|
30
|
-
"cron": "^3.
|
|
29
|
+
"cron": "^4.3.3",
|
|
31
30
|
"cron-schedule": "^5.0.4"
|
|
32
31
|
}
|
|
33
32
|
}
|
package/run-tests.sh
CHANGED
|
@@ -46,7 +46,7 @@ if [ "$watch_mode" = true ]; then
|
|
|
46
46
|
fi
|
|
47
47
|
|
|
48
48
|
if [ "$coverage_mode" = true ]; then
|
|
49
|
-
node_cmd="$node_cmd --experimental-test-coverage --test-reporter=lcov --test-reporter-destination=lcov.info"
|
|
49
|
+
node_cmd="$node_cmd --test-coverage-include=\"src/**/*.{ts,js}\" --test-coverage-exclude=\"**/dist/**\" --experimental-test-coverage --test-reporter=lcov --test-reporter-destination=lcov.info"
|
|
50
50
|
fi
|
|
51
51
|
|
|
52
52
|
# Execute the node command with the expanded list of files
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { CronJob } from 'cron'
|
|
2
2
|
import {
|
|
3
|
-
CorePikkuFunctionSessionless,
|
|
4
3
|
CoreServices,
|
|
5
4
|
CoreSingletonServices,
|
|
6
5
|
CoreUserSession,
|
|
@@ -54,9 +53,7 @@ export class PikkuTaskScheduler<TaskName extends string> {
|
|
|
54
53
|
}
|
|
55
54
|
}
|
|
56
55
|
|
|
57
|
-
private startJobSchedule(
|
|
58
|
-
task: CoreScheduledTask<CorePikkuFunctionSessionless<void, void>>
|
|
59
|
-
) {
|
|
56
|
+
private startJobSchedule(task: CoreScheduledTask) {
|
|
60
57
|
const job = new CronJob(
|
|
61
58
|
task.schedule,
|
|
62
59
|
async () => {
|
package/tsconfig.tsbuildinfo
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"root":["./src/index.ts","./src/pikku-task-scheduler.ts"],"version":"5.
|
|
1
|
+
{"root":["./src/index.ts","./src/pikku-task-scheduler.ts"],"version":"5.9.2"}
|