imdone-core 1.53.17 → 1.53.19

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,5 +1,5 @@
1
1
  const template = require('lodash.template')
2
- const uuid = require('uuid'); // Ensure you have uuid installed: npm install uuid
2
+ const uuid = require('uuid');
3
3
 
4
4
  module.exports = {
5
5
  format,
package/lib/project.js CHANGED
@@ -149,25 +149,36 @@ module.exports = class WorkerProject extends Project {
149
149
  this._updatedAt = new Date()
150
150
  const { allLists , totals } = this.getListsForImdoneJSON()
151
151
 
152
- console.time('plugin onBeforeBoardUpdate')
152
+ console.time('plugin onBeforeBoardUpdate time')
153
153
  await this.pluginManager.onBeforeBoardUpdate()
154
- console.timeEnd('plugin onBeforeBoardUpdate')
154
+ console.timeEnd('plugin onBeforeBoardUpdate time')
155
155
 
156
+ console.time('getBoardProperties time')
156
157
  const data = this.data = this.pluginManager.getBoardProperties()
158
+ console.timeEnd('getBoardProperties time')
159
+
160
+ console.time('getDataKeys time')
157
161
  const dataKeys = this.dataKays = this.getDataKeys(data)
162
+ console.timeEnd('getDataKeys time')
158
163
 
159
- console.time('card init')
164
+ console.time('card init time')
160
165
  const cards = this.getInitializedCards(allLists, totals)
161
- console.timeEnd('card init')
166
+ console.timeEnd('card init time')
162
167
 
163
- console.time('plugin onBoardUpdate')
168
+ console.time('plugin onBoardUpdate time')
164
169
  await this.pluginManager.onBoardUpdate(allLists)
165
- console.timeEnd('plugin onBoardUpdate')
170
+ console.timeEnd('plugin onBoardUpdate time')
171
+
172
+ console.time('getTags time')
173
+ const tags = this.getTags(cards)
174
+ console.timeEnd('getTags time')
166
175
 
176
+ console.time('getLists time')
167
177
  const lists = this.filter ? this.getLists({
168
178
  tasks: this.getCards(this.filter, cards),
169
179
  populateFiltered: true,
170
180
  }) : allLists
181
+ console.timeEnd('getLists time')
171
182
 
172
183
  console.timeEnd('toJSON time')
173
184
  return {
@@ -177,7 +188,7 @@ module.exports = class WorkerProject extends Project {
177
188
  files: this.files,
178
189
  totals,
179
190
  totalCards: this.repo.getTasks().length,
180
- tags: this.getTags(),
191
+ tags,
181
192
  allMeta: this.allMeta,
182
193
  allContexts: this.allContexts,
183
194
  allTags: this.allTags,
@@ -191,7 +202,7 @@ module.exports = class WorkerProject extends Project {
191
202
  }
192
203
  }
193
204
 
194
- emit() {}
205
+ emit() {} // This is implemented in imdone UI worker
195
206
 
196
207
  emitUpdate() {
197
208
  this.emit('file.update')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "imdone-core",
3
- "version": "1.53.17",
3
+ "version": "1.53.19",
4
4
  "description": "imdone-core",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -106,6 +106,7 @@
106
106
  "sift": "^17.1.3",
107
107
  "simple-git": "^3.19.1",
108
108
  "uniqid": "^5.4.0",
109
+ "uuid": "^11.0.5",
109
110
  "xregexp": "^5.1.0"
110
111
  },
111
112
  "devDependencies": {