imdone-core 1.48.1 → 1.49.1

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/file.js CHANGED
@@ -297,9 +297,10 @@ File.prototype.transformTasks = function (config, modify) {
297
297
  }
298
298
 
299
299
  // TODO Blank lines should be allowed in code tasks
300
- // #imdone-1.47.0
301
300
  // <!--
302
- // order:-120
301
+ // #imdone-1.49.0
302
+ // #feature
303
+ // order:-105
303
304
  // -->
304
305
  File.prototype.extractCodeStyleTasks = function (config, pos, content) {
305
306
  var self = this
@@ -150,7 +150,6 @@ function mixin(repo, fs = require('fs')) {
150
150
  const isFile = File.isFile(file)
151
151
  // BACKLOG ## Handle the case where the file is not in the repo
152
152
  // #urgent #1.12.0
153
- // console.log(`file.modifiedTime ~~${ReferenceError: file is not defined}~~ stat.mtime ~~${ReferenceError: file is not defined}~~`)
154
153
  if (isFile && stat.mtime <= file.getModifiedTime()) {
155
154
  // console.log("File update already applied. Change ignored.")
156
155
  return
@@ -57,11 +57,7 @@ module.exports = class ArchivePlugin extends Plugin {
57
57
  ],
58
58
  task.content
59
59
  )
60
- // TODO This should use the CardContentParser to get the raw task
61
- // <!--
62
- // #imdone-1.47.0
63
- // order:-110
64
- // -->
60
+
65
61
  const { tokenPrefix } = config
66
62
  const { beforeText, list } = task
67
63
  const taskStart = getRawTask({tokenPrefix, beforeText, list, text: ''})
package/lib/project.js CHANGED
@@ -141,6 +141,7 @@ module.exports = class WorkerProject extends Project {
141
141
  lists: lists,
142
142
  files: this.files,
143
143
  totals,
144
+ totalCards: this.repo.getTasks().length,
144
145
  tags: this.getTags(),
145
146
  allMeta: this.allMeta,
146
147
  allContexts: this.allContexts,
package/lib/repository.js CHANGED
@@ -1,8 +1,6 @@
1
1
  'use strict'
2
2
 
3
- var _get = require('lodash.get'),
4
- _isObject = require('lodash.isobject'),
5
- _isFunction = require('lodash.isfunction'),
3
+ var _isFunction = require('lodash.isfunction'),
6
4
  _isUndefined = require('lodash.isundefined'),
7
5
  _isString = require('lodash.isstring'),
8
6
  _omit = require('lodash.omit'),
@@ -32,7 +30,6 @@ var _get = require('lodash.get'),
32
30
  sift = require('sift'),
33
31
  fastSort = require('fast-sort/dist/sort.js'),
34
32
  JSONfns = require('json-fns'),
35
- functionRegex = require('function-regex'),
36
33
  Task = require('./task'),
37
34
  newCard = require('./card'),
38
35
  { replaceDateLanguage } = require('./adapters/parsers/DateLanguageParser'),
@@ -1,6 +1,5 @@
1
1
  const {
2
- load,
3
- save
2
+ load
4
3
  } = require('../adapters/storage/tags.js')
5
4
 
6
5
  const {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "imdone-core",
3
- "version": "1.48.1",
3
+ "version": "1.49.1",
4
4
  "description": "imdone-core",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -57,7 +57,6 @@
57
57
  "escape-string-regexp": "^1.0.5",
58
58
  "fast-sort": "^2.2.0",
59
59
  "find-up": "^5.0.0",
60
- "function-regex": "^1.0.2",
61
60
  "gray-matter": "^4.0.2",
62
61
  "ignore": "^5.2.0",
63
62
  "imdone-api": "^1.48.0",
@@ -106,7 +105,7 @@
106
105
  "rimraf": "^3.0.2",
107
106
  "sane": "^4.1.0",
108
107
  "sanitize-filename": "^1.6.3",
109
- "sift": "^13.4.0",
108
+ "sift": "^17.1.3",
110
109
  "simple-git": "^3.19.1",
111
110
  "uniqid": "^5.4.0",
112
111
  "xregexp": "^5.1.0"