@deepbounty/sdk 1.1.6 → 1.1.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/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -127,11 +127,11 @@ export interface ServerAPI {
|
|
|
127
127
|
*/
|
|
128
128
|
createAlert(targetId: number, name: string, subdomain: string, score: number, description: string, endpoint: string, confirmed?: boolean): Promise<Alert>;
|
|
129
129
|
}
|
|
130
|
-
export interface
|
|
130
|
+
export interface ModuleLifecycle {
|
|
131
131
|
run?(api: ServerAPI): Promise<void> | void;
|
|
132
132
|
stop?(): Promise<void> | void;
|
|
133
133
|
}
|
|
134
|
-
export type
|
|
134
|
+
export type ModuleFactory = (api: ServerAPI) => ModuleLifecycle | Promise<ModuleLifecycle>;
|
|
135
135
|
export { IEventBus, EventSubscription, CoreEvents, EventHandler, } from "./events";
|
|
136
136
|
declare const _default: any;
|
|
137
137
|
export default _default;
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export default {}; // Type-only module for
|
|
1
|
+
export default {}; // Type-only module for modules to import types during compile
|