imdone-core 1.53.2 → 1.53.4
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/card.js +8 -2
- package/package.json +2 -2
package/lib/card.js
CHANGED
|
@@ -186,11 +186,17 @@ module.exports = function newCard(task, _project, dontParse) {
|
|
|
186
186
|
...defaultData
|
|
187
187
|
}
|
|
188
188
|
|
|
189
|
-
const keys = Object.keys(data)
|
|
189
|
+
const keys = Object.keys(data).map((key) => {
|
|
190
|
+
const value = data[key]
|
|
191
|
+
if (_isFunction(value)) {
|
|
192
|
+
key = key + '()'
|
|
193
|
+
}
|
|
194
|
+
return key
|
|
195
|
+
})
|
|
196
|
+
|
|
190
197
|
keys.forEach((key) => {
|
|
191
198
|
const value = data[key]
|
|
192
199
|
if (_isObject(value) && !Array.isArray(value)) {
|
|
193
|
-
|
|
194
200
|
keys.push(...Object.keys(value).map((k) => `${key}.${k}`))
|
|
195
201
|
}
|
|
196
202
|
})
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "imdone-core",
|
|
3
|
-
"version": "1.53.
|
|
3
|
+
"version": "1.53.4",
|
|
4
4
|
"description": "imdone-core",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"find-up": "^5.0.0",
|
|
58
58
|
"gray-matter": "^4.0.2",
|
|
59
59
|
"ignore": "^5.2.0",
|
|
60
|
-
"imdone-api": "^1.52.
|
|
60
|
+
"imdone-api": "^1.52.2",
|
|
61
61
|
"isbinaryfile": "^3.0.2",
|
|
62
62
|
"js-yaml": "^3.14.1",
|
|
63
63
|
"json-fns": "^1.0.0",
|