@certik/skynet 0.18.5 → 0.18.6
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 +4 -0
- package/app.d.ts +1 -33
- 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;
|
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