imdone-core 2.0.19 → 2.0.20

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/lib/project.js CHANGED
@@ -878,6 +878,7 @@ export class WorkerProject extends Project {
878
878
  async refresh() {
879
879
  await this.repo.refresh()
880
880
  await this.pluginManager.reloadPlugins()
881
+ return await this.toImdoneJSON()
881
882
  }
882
883
 
883
884
  renderMarkdown(content, filePath) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "imdone-core",
3
- "version": "2.0.19",
3
+ "version": "2.0.20",
4
4
  "description": "imdone-core",
5
5
  "repository": {
6
6
  "type": "git",
@@ -151,7 +151,25 @@ export class WorkerProject {
151
151
  version: any;
152
152
  }): Promise<void>;
153
153
  uninstallPlugin(name: any): Promise<void>;
154
- refresh(): Promise<void>;
154
+ refresh(): Promise<{
155
+ path: any;
156
+ config: any;
157
+ lists: any;
158
+ files: any;
159
+ totals: {};
160
+ totalCards: any;
161
+ tags: any[];
162
+ allMeta: any;
163
+ allContexts: any[];
164
+ allTags: any[];
165
+ filter: string;
166
+ defaultFilter: any;
167
+ actions: any[];
168
+ plugins: any[];
169
+ data: {};
170
+ dataKeys: string[];
171
+ queryProps: any[];
172
+ }>;
155
173
  renderMarkdown(content: any, filePath: any): any;
156
174
  extractWikilinkTopics(markdown: any): string[];
157
175
  }