@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.
@@ -0,0 +1,5 @@
1
+ {
2
+ "conventionalCommits.scopes": [
3
+ "lib-skynet"
4
+ ]
5
+ }
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.18.7
4
+
5
+ - Update type definition for app.js and selector.js
6
+
7
+ ## 0.18.6
8
+
9
+ - Update type definition for app.js and selector.js
10
+
3
11
  ## 0.18.5
4
12
 
5
13
  - Removed references to deleted S3 bucket in const.js
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: number;
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: Restart | undefined };
72
+ type BuildWithRestart = Build & { restart?: Restart };
105
73
 
106
- type BuildWithConcurrency = Build & { concurrency: number | undefined };
74
+ type BuildWithConcurrency = Build & { concurrency?: number };
107
75
 
108
- type ValidateWithConcurrency = Validate & { concurrency: number | undefined };
76
+ type ValidateWithConcurrency = Validate & { concurrency?: number };
109
77
 
110
78
  export const SENSITIVE_VALUE: null;
111
79
 
112
- export function every(n: number | undefined): {
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
File without changes
File without changes
File without changes
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@certik/skynet",
3
- "version": "0.18.5",
3
+ "version": "0.18.7",
4
4
  "description": "Skynet Shared JS library",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -42,4 +42,4 @@
42
42
  "publishConfig": {
43
43
  "access": "public"
44
44
  }
45
- }
45
+ }
package/selector.d.ts CHANGED
@@ -7,7 +7,7 @@ export type Selector = {
7
7
  type?: "string" | "number" | "boolean" | string;
8
8
  description?: string;
9
9
  desc?: string;
10
- alias?: string;
10
+ aliases?: string[];
11
11
  isRequired?: boolean;
12
12
  default?: any;
13
13
  };