imdone-core 1.45.0 → 1.45.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.
Files changed (2) hide show
  1. package/lib/project.js +2 -1
  2. package/package.json +1 -1
package/lib/project.js CHANGED
@@ -442,7 +442,8 @@ module.exports = class WorkerProject extends Project {
442
442
  * @param {Boolean} opts.emit - Whether to emit the new card event
443
443
  */
444
444
  newCard({ list, path, template, title, comments, emit = true }) {
445
- if (!path || !_path.parse(path).ext) path = this.getFullPath(this.getNewCardsFile({title}))
445
+ if (!path || !_path.parse(path).ext) path = this.getNewCardsFile({title})
446
+ path = this.getFullPath(path)
446
447
 
447
448
  const { isFile, isDirectory } = this.preparePathForWriting(path)
448
449
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "imdone-core",
3
- "version": "1.45.0",
3
+ "version": "1.45.1",
4
4
  "description": "imdone-core",
5
5
  "main": "index.js",
6
6
  "scripts": {