imdone-core 1.53.20 → 1.54.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/languages.js CHANGED
@@ -17,6 +17,8 @@ module.exports = {
17
17
  ".js": {"name": "javascript", "symbol": "//", "block": cBlock},
18
18
  ".es6": {"name": "javascript", "symbol": "//", "block": cBlock},
19
19
  ".es": {"name": "javascript", "symbol": "//", "block": cBlock},
20
+ ".ex": {"name": "elixir", "symbol": "#"},
21
+ ".exs": {"name": "elixir", "symbol": "#"},
20
22
  ".jsx": {"name": "jsx", "symbol": "//", "block": cBlock},
21
23
  ".java": {"name": "java", "symbol": "//", "block": cBlock},
22
24
  ".properties": {"name": "properties", "symbol": "#"},
@@ -48,6 +48,7 @@ module.exports = class ExtensionPlugin extends Plugin {
48
48
 
49
49
  getBoardActions() {
50
50
  return this.boardActionsFunction().map(({ title, action, keys, icon }) => ({
51
+ title,
51
52
  name: title,
52
53
  action,
53
54
  keys,
@@ -395,7 +395,9 @@ module.exports = class PluginManager extends Emitter {
395
395
  performBoardAction(action, task) {
396
396
  const plugin = this.getPluginInstance(action.plugin)
397
397
  try {
398
- return plugin.getBoardActions()[action.index].action(task)
398
+ return action.index
399
+ ? plugin.getBoardActions()[action.index].action(task)
400
+ : plugin.getBoardActions().find(a => a.title === action.title).action(task)
399
401
  } catch (e) {
400
402
  this.pluginError('getBoardActions', plugin, e)
401
403
  }
package/lib/repository.js CHANGED
@@ -491,7 +491,7 @@ Repository.prototype.addFile = function (file, cb) {
491
491
  */
492
492
  Repository.prototype.removeFile = function (file) {
493
493
  if (!File.isFile(file)) throw new Error(ERRORS.NOT_A_FILE)
494
- this.files = _reject(this.files, { path: file.path })
494
+ _remove(this.files, f => f.path === file.path)
495
495
 
496
496
  return this.files
497
497
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "imdone-core",
3
- "version": "1.53.20",
3
+ "version": "1.54.1",
4
4
  "description": "imdone-core",
5
5
  "main": "index.js",
6
6
  "scripts": {