votive 0.0.5 → 0.0.6
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/createDatabase.js +2 -3
- package/package.json +1 -1
- package/tests/.votive.db +0 -0
package/lib/createDatabase.js
CHANGED
|
@@ -285,8 +285,6 @@ function createDatabase(dbPath = ".votive.db") {
|
|
|
285
285
|
LEFT JOIN metadata m on d.path = m.destination
|
|
286
286
|
WHERE stale = 1`
|
|
287
287
|
|
|
288
|
-
console.log({ metadatas })
|
|
289
|
-
|
|
290
288
|
const grouped = metadatas.map((value, index, array) => {
|
|
291
289
|
if (array.slice(0, index)
|
|
292
290
|
.find(prior => prior.path === value.path)
|
|
@@ -298,6 +296,7 @@ function createDatabase(dbPath = ".votive.db") {
|
|
|
298
296
|
dir: value.dir,
|
|
299
297
|
syntax: value.syntax,
|
|
300
298
|
stale: value.stale,
|
|
299
|
+
abstract: JSON.parse(value.abstract),
|
|
301
300
|
metadata: Object.fromEntries(
|
|
302
301
|
array.slice(index)
|
|
303
302
|
.filter(following => following.path === value.path)
|
|
@@ -322,7 +321,7 @@ function createDatabase(dbPath = ".votive.db") {
|
|
|
322
321
|
: JSON.parse(value)
|
|
323
322
|
return [label, originalValue]
|
|
324
323
|
}
|
|
325
|
-
|
|
324
|
+
|
|
326
325
|
return grouped
|
|
327
326
|
}
|
|
328
327
|
|
package/package.json
CHANGED
package/tests/.votive.db
CHANGED
|
Binary file
|