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.
@@ -1,12 +1,12 @@
1
1
  import { RecordIOBase } from "./io";
2
- import { PluginList, PluginPageData, WebsocketPack } from "../interface";
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<Array<PluginList>>;
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>;
@@ -93,7 +93,7 @@ const CreatePluginLoader = (loader, memory, socket, feedback) => {
93
93
  return result;
94
94
  },
95
95
  get_plugin: async () => {
96
- return memory.plugins;
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "verteilen-core",
3
- "version": "1.2.12",
3
+ "version": "1.2.13",
4
4
  "license": "MIT",
5
5
  "homepage": "https://verteilen.github.io/wiki/",
6
6
  "author": "Elly",
@@ -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<Array<PluginList>>
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<Array<PluginList>> => {
132
- return memory.plugins
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')