verteilen-core 1.2.12 → 1.2.13
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/server/plugin.d.ts +2 -2
- package/dist/server/plugin.js +1 -1
- package/package.json +1 -1
- package/src/server/plugin.ts +3 -3
package/dist/server/plugin.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { RecordIOBase } from "./io";
|
|
2
|
-
import {
|
|
2
|
+
import { PluginPageData, WebsocketPack } from "../interface";
|
|
3
3
|
import { PluginFeedback } from "./server";
|
|
4
4
|
export type SocketGetter = (uuid: string) => WebsocketPack | undefined;
|
|
5
5
|
export interface PluginLoader {
|
|
6
6
|
load_all: () => Promise<PluginPageData>;
|
|
7
7
|
get_project: (group: string, filename: string) => string | undefined;
|
|
8
8
|
get_database: (group: string, filename: string) => string | undefined;
|
|
9
|
-
get_plugin: () => Promise<
|
|
9
|
+
get_plugin: () => Promise<PluginPageData>;
|
|
10
10
|
import_template: (name: string, url: string, token: string) => Promise<PluginPageData>;
|
|
11
11
|
import_plugin: (name: string, url: string, token: string) => Promise<PluginPageData>;
|
|
12
12
|
delete_template: (name: string) => Promise<void>;
|
package/dist/server/plugin.js
CHANGED
|
@@ -93,7 +93,7 @@ const CreatePluginLoader = (loader, memory, socket, feedback) => {
|
|
|
93
93
|
return result;
|
|
94
94
|
},
|
|
95
95
|
get_plugin: async () => {
|
|
96
|
-
return memory
|
|
96
|
+
return memory;
|
|
97
97
|
},
|
|
98
98
|
import_template: async (name, url, token) => {
|
|
99
99
|
const root = loader.join(loader.root, 'template');
|
package/package.json
CHANGED
package/src/server/plugin.ts
CHANGED
|
@@ -23,7 +23,7 @@ export interface PluginLoader {
|
|
|
23
23
|
load_all: () => Promise<PluginPageData>
|
|
24
24
|
get_project: (group:string, filename:string) => string | undefined
|
|
25
25
|
get_database: (group:string, filename:string) => string | undefined
|
|
26
|
-
get_plugin: () => Promise<
|
|
26
|
+
get_plugin: () => Promise<PluginPageData>
|
|
27
27
|
import_template: (name:string, url:string, token:string) => Promise<PluginPageData>
|
|
28
28
|
import_plugin: (name:string, url:string, token:string) => Promise<PluginPageData>
|
|
29
29
|
delete_template: (name:string) => Promise<void>
|
|
@@ -128,8 +128,8 @@ export const CreatePluginLoader = (loader:RecordIOBase, memory:PluginPageData, s
|
|
|
128
128
|
}
|
|
129
129
|
return result
|
|
130
130
|
},
|
|
131
|
-
get_plugin: async ():Promise<
|
|
132
|
-
return memory
|
|
131
|
+
get_plugin: async ():Promise<PluginPageData> => {
|
|
132
|
+
return memory
|
|
133
133
|
},
|
|
134
134
|
import_template: async (name:string, url:string, token:string):Promise<PluginPageData> => {
|
|
135
135
|
const root = loader.join(loader.root, 'template')
|