@xyo-network/shared 4.1.2 → 4.1.3

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.
@@ -1,39 +1,4 @@
1
- import { EventEmitter, EventData } from '@xylabs/events';
2
-
3
- declare const dump: (object: unknown) => string;
4
-
5
- declare function isIP(value: string): boolean;
6
- declare function isIPv6(value: string): boolean;
7
- declare function isIPv4(value: string): boolean;
8
- declare function ipVersion(value: string): 6 | 4 | undefined;
9
-
10
- type Task = () => Promise<void>;
11
-
12
- type VoidFunction = (...anyArguments: unknown[]) => void;
13
- interface Job {
14
- name: string;
15
- onComplete?: VoidFunction;
16
- onFail?: VoidFunction;
17
- onStart?: VoidFunction;
18
- onSuccess?: VoidFunction;
19
- schedule: string;
20
- task: Task;
21
- }
22
-
23
- interface JobProvider {
24
- get jobs(): Job[];
25
- }
26
-
27
- /** @internal */
28
- interface DefineOptions {
29
- lockLifetime?: number;
30
- }
31
- /** @internal */
32
- interface JobQueue extends EventEmitter<EventData> {
33
- define: (name: string, options: DefineOptions, processor: Job['task']) => void;
34
- every: (interval: string, names: string | string[]) => Promise<void>;
35
- start: () => Promise<unknown>;
36
- }
37
-
38
- export { dump, ipVersion, isIP, isIPv4, isIPv6 };
39
- export type { DefineOptions, Job, JobProvider, JobQueue, VoidFunction };
1
+ export * from './dump.ts';
2
+ export * from './is-ip/index.ts';
3
+ export * from './Job/index.ts';
4
+ //# sourceMappingURL=index.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyo-network/shared",
3
- "version": "4.1.2",
3
+ "version": "4.1.3",
4
4
  "description": "Primary SDK for using XYO Protocol 2.0",
5
5
  "homepage": "https://xyo.network",
6
6
  "bugs": {
@@ -29,11 +29,11 @@
29
29
  "module": "dist/neutral/index.mjs",
30
30
  "types": "dist/neutral/index.d.ts",
31
31
  "dependencies": {
32
- "@xylabs/events": "^4.13.15"
32
+ "@xylabs/events": "^4.13.16"
33
33
  },
34
34
  "devDependencies": {
35
- "@xylabs/ts-scripts-yarn3": "^7.0.0-rc.23",
36
- "@xylabs/tsconfig": "^7.0.0-rc.23",
35
+ "@xylabs/ts-scripts-yarn3": "^7.0.0-rc.27",
36
+ "@xylabs/tsconfig": "^7.0.0-rc.27",
37
37
  "typescript": "^5.8.3"
38
38
  },
39
39
  "publishConfig": {