@certik/skynet 0.18.5 → 0.18.7
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/.vscode/settings.json +5 -0
- package/CHANGELOG.md +8 -0
- package/app.d.ts +5 -37
- package/bun.lockb +0 -0
- package/examples/api.js +0 -0
- package/examples/consumer.js +0 -0
- package/examples/indexer.js +0 -0
- package/examples/mode-indexer.js +0 -0
- package/examples/producer.js +0 -0
- package/package.json +2 -2
- package/selector.d.ts +1 -1
package/CHANGELOG.md
CHANGED
package/app.d.ts
CHANGED
|
@@ -23,15 +23,6 @@ export type Serve = {
|
|
|
23
23
|
instances?: number;
|
|
24
24
|
};
|
|
25
25
|
|
|
26
|
-
export type Consume = {
|
|
27
|
-
func: ({ protocol, messages, verbose }: { protocol: string; messages: any; verbose: boolean }) => Promise<void>;
|
|
28
|
-
topic: ({ protocol }: { protocol: string }) => string;
|
|
29
|
-
maxRetry?: number;
|
|
30
|
-
killTimeout?: string;
|
|
31
|
-
cpu: number;
|
|
32
|
-
mem: number;
|
|
33
|
-
};
|
|
34
|
-
|
|
35
26
|
export type State = {
|
|
36
27
|
type: string;
|
|
37
28
|
updateInterval: ({ protocol }: { protocol: string }) => number;
|
|
@@ -39,29 +30,6 @@ export type State = {
|
|
|
39
30
|
getMaxId: ({ protocol }: { protocol: string }) => Promise<number>;
|
|
40
31
|
};
|
|
41
32
|
|
|
42
|
-
export type Produce = {
|
|
43
|
-
func: ({
|
|
44
|
-
protocol,
|
|
45
|
-
from,
|
|
46
|
-
to,
|
|
47
|
-
verbose,
|
|
48
|
-
send,
|
|
49
|
-
}: {
|
|
50
|
-
protocol: string;
|
|
51
|
-
from: number;
|
|
52
|
-
to: number;
|
|
53
|
-
verbose: boolean;
|
|
54
|
-
send: (items: { id: string; name: string }[]) => Promise<void>;
|
|
55
|
-
}) => Promise<void>;
|
|
56
|
-
topic: ({ protocol }) => string;
|
|
57
|
-
deadLetterTopic: ({ protocol }) => string;
|
|
58
|
-
batchSize: number;
|
|
59
|
-
maxRetry?: number;
|
|
60
|
-
killTimeout?: string;
|
|
61
|
-
cpu: number;
|
|
62
|
-
mem: number;
|
|
63
|
-
};
|
|
64
|
-
|
|
65
33
|
export type Schedule = string | ((jobName: string) => string);
|
|
66
34
|
|
|
67
35
|
export type Check = {
|
|
@@ -78,7 +46,7 @@ export type Check = {
|
|
|
78
46
|
|
|
79
47
|
export type Build = {
|
|
80
48
|
func: ({ protocol, from, to, verbose }: { protocol: string; from: number; to: number; verbose: boolean }) => void;
|
|
81
|
-
batchSize
|
|
49
|
+
batchSize?: number;
|
|
82
50
|
schedule: Schedule;
|
|
83
51
|
killTimeout?: string;
|
|
84
52
|
cpu: number;
|
|
@@ -101,15 +69,15 @@ export type Validate = {
|
|
|
101
69
|
mem: number;
|
|
102
70
|
};
|
|
103
71
|
|
|
104
|
-
type BuildWithRestart = Build & { restart
|
|
72
|
+
type BuildWithRestart = Build & { restart?: Restart };
|
|
105
73
|
|
|
106
|
-
type BuildWithConcurrency = Build & { concurrency
|
|
74
|
+
type BuildWithConcurrency = Build & { concurrency?: number };
|
|
107
75
|
|
|
108
|
-
type ValidateWithConcurrency = Validate & { concurrency
|
|
76
|
+
type ValidateWithConcurrency = Validate & { concurrency?: number };
|
|
109
77
|
|
|
110
78
|
export const SENSITIVE_VALUE: null;
|
|
111
79
|
|
|
112
|
-
export function every(n
|
|
80
|
+
export function every(n?: number): {
|
|
113
81
|
second: string;
|
|
114
82
|
seconds: string;
|
|
115
83
|
minute: string;
|
package/bun.lockb
CHANGED
|
File without changes
|
package/examples/api.js
CHANGED
|
File without changes
|
package/examples/consumer.js
CHANGED
|
File without changes
|
package/examples/indexer.js
CHANGED
|
File without changes
|
package/examples/mode-indexer.js
CHANGED
|
File without changes
|
package/examples/producer.js
CHANGED
|
File without changes
|
package/package.json
CHANGED