@aomex/cron 3.28.3 → 3.29.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 CHANGED
@@ -3,6 +3,14 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.29.0](https://github.com/aomex/aomex/compare/v3.28.3...v3.29.0) (2025-07-17)
7
+
8
+ **Note:** Version bump only for package @aomex/cron
9
+
10
+
11
+
12
+
13
+
6
14
  ## [3.28.3](https://github.com/aomex/aomex/compare/v3.28.2...v3.28.3) (2025-07-10)
7
15
 
8
16
  **Note:** Version bump only for package @aomex/cron
package/dist/index.js CHANGED
@@ -87,7 +87,7 @@ import * as cronParser from "cron-parser";
87
87
 
88
88
  // src/lib/task.ts
89
89
  import { sleep } from "@aomex/internal-tools";
90
- import { spawn } from "node:child_process";
90
+ import { spawn } from "child_process";
91
91
  var Task = class {
92
92
  constructor(cron2, currentTimestamp, nextTimestamp) {
93
93
  this.cron = cron2;
@@ -374,7 +374,7 @@ var collectCrontab = async (opts) => {
374
374
  };
375
375
 
376
376
  // src/middleware/start.middleware.ts
377
- import net from "node:net";
377
+ import net from "net";
378
378
  var commandName = "cron:start";
379
379
  var start = (opts) => {
380
380
  return middleware.console({
@@ -484,7 +484,7 @@ var eject = (opts) => {
484
484
  // src/middleware/stop.middleware.ts
485
485
  import { terminal } from "@aomex/console";
486
486
  import { middleware as middleware3 } from "@aomex/common";
487
- import net2 from "node:net";
487
+ import net2 from "net";
488
488
  import { bytes, sleep as sleep2 } from "@aomex/internal-tools";
489
489
  import formatDuration from "format-duration";
490
490
  import pidusage from "pidusage";
@@ -610,7 +610,7 @@ var stop = (opts) => {
610
610
  // src/middleware/stats.middleware.ts
611
611
  import { terminal as terminal2 } from "@aomex/console";
612
612
  import { middleware as middleware4 } from "@aomex/common";
613
- import net3 from "node:net";
613
+ import net3 from "net";
614
614
  import pidusage2 from "pidusage";
615
615
  import { bytes as bytes2 } from "@aomex/internal-tools";
616
616
  import formatDuration2 from "format-duration";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aomex/cron",
3
- "version": "3.28.3",
3
+ "version": "3.29.0",
4
4
  "description": "定时任务",
5
5
  "type": "module",
6
6
  "types": "dist/index.d.ts",