@cldmv/holdmytask 1.6.0 → 1.6.1
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/index.mjs +53 -13
- package/package.json +1 -1
- package/dist/hold-my-task.mjs +0 -2901
- package/dist/utils.mjs +0 -120
package/index.mjs
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* @Email: <Shinrai@users.noreply.github.com>
|
|
7
7
|
* -----
|
|
8
8
|
* @Last modified by: Nate Hyson <CLDMV> (Shinrai@users.noreply.github.com)
|
|
9
|
-
* @Last modified time: 2025-11-
|
|
9
|
+
* @Last modified time: 2025-11-21 14:47:33 -08:00 (1763765253)
|
|
10
10
|
* -----
|
|
11
11
|
* @Copyright: Copyright (c) 2013-2025 Catalyzed Motivation Inc. All rights reserved.
|
|
12
12
|
*/
|
|
@@ -14,22 +14,62 @@
|
|
|
14
14
|
// Development environment check (must happen before holdmytask imports)
|
|
15
15
|
(async () => {
|
|
16
16
|
try {
|
|
17
|
-
await import("
|
|
17
|
+
await import("./devcheck.mjs");
|
|
18
18
|
} catch {
|
|
19
19
|
// ignore
|
|
20
20
|
}
|
|
21
21
|
})();
|
|
22
22
|
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
/**
|
|
24
|
+
* Creates a HoldMyTask instance for task queue management
|
|
25
|
+
* @param {object} [options={}] - Configuration options
|
|
26
|
+
* @returns {Promise<object>} HoldMyTask instance
|
|
27
|
+
*/
|
|
28
|
+
export default async function createHoldMyTask(options = {}) {
|
|
29
|
+
// Dynamic import after environment check
|
|
30
|
+
const mod = await import("@cldmv/holdmytask/main");
|
|
31
|
+
const HoldMyTask = mod.HoldMyTask;
|
|
32
|
+
return new HoldMyTask(options);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Create a task queue instance
|
|
37
|
+
* @param {object} [options={}] - Configuration options
|
|
38
|
+
* @returns {Promise<object>} HoldMyTask instance
|
|
39
|
+
*/
|
|
40
|
+
export async function createQueue(options = {}) {
|
|
41
|
+
const mod = await import("@cldmv/holdmytask/main");
|
|
42
|
+
const HoldMyTask = mod.HoldMyTask;
|
|
43
|
+
return new HoldMyTask(options);
|
|
44
|
+
}
|
|
25
45
|
|
|
26
|
-
|
|
27
|
-
|
|
46
|
+
/**
|
|
47
|
+
* Create a task manager instance
|
|
48
|
+
* @param {object} [options={}] - Configuration options
|
|
49
|
+
* @returns {Promise<object>} HoldMyTask instance
|
|
50
|
+
*/
|
|
51
|
+
export async function createTaskManager(options = {}) {
|
|
52
|
+
const mod = await import("@cldmv/holdmytask/main");
|
|
53
|
+
const HoldMyTask = mod.HoldMyTask;
|
|
54
|
+
return new HoldMyTask(options);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Create a task processor instance
|
|
59
|
+
* @param {object} [options={}] - Configuration options
|
|
60
|
+
* @returns {Promise<object>} HoldMyTask instance
|
|
61
|
+
*/
|
|
62
|
+
export async function createTaskProcessor(options = {}) {
|
|
63
|
+
const mod = await import("@cldmv/holdmytask/main");
|
|
64
|
+
const HoldMyTask = mod.HoldMyTask;
|
|
65
|
+
return new HoldMyTask(options);
|
|
66
|
+
}
|
|
28
67
|
|
|
29
|
-
//
|
|
30
|
-
export {
|
|
31
|
-
export {
|
|
32
|
-
export {
|
|
33
|
-
export {
|
|
34
|
-
export {
|
|
35
|
-
export {
|
|
68
|
+
// Named export aliases
|
|
69
|
+
export { createHoldMyTask as HoldMyTask };
|
|
70
|
+
export { createQueue as queue };
|
|
71
|
+
export { createQueue as Queue };
|
|
72
|
+
export { createTaskManager as TaskManager };
|
|
73
|
+
export { createQueue as TaskQueue };
|
|
74
|
+
export { createQueue as QueueManager };
|
|
75
|
+
export { createTaskProcessor as TaskProcessor };
|