imdone-core 1.53.4 → 1.53.5

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
@@ -108,9 +108,10 @@ module.exports = class WorkerProject extends Project {
108
108
  )
109
109
  let allLists = this.allLists
110
110
  allLists = allLists.map((list) => {
111
- list.tasks = list.tasks.map((card) => {
111
+ list.tasks = list.tasks.map((card, index) => {
112
112
  card.interpretedContent = ''
113
113
  card.totals = totals
114
+ card.index = index
114
115
  return card
115
116
  })
116
117
  return list
package/lib/task.js CHANGED
@@ -70,6 +70,7 @@ class Task {
70
70
  this.content = obj.content
71
71
  this.lastLine = this.getLastLine()
72
72
  this.orderModified = obj.orderModified
73
+ this.index = undefined
73
74
  if (dontParse || !this.text) return
74
75
  this.parse()
75
76
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "imdone-core",
3
- "version": "1.53.4",
3
+ "version": "1.53.5",
4
4
  "description": "imdone-core",
5
5
  "main": "index.js",
6
6
  "scripts": {