imdone-core 1.53.19 → 1.54.0
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const template = require('lodash.template')
|
|
2
|
-
const
|
|
2
|
+
const uniqid = require('uniqid');
|
|
3
3
|
|
|
4
4
|
module.exports = {
|
|
5
5
|
format,
|
|
@@ -50,7 +50,7 @@ function interpolate(content, data, opts) {
|
|
|
50
50
|
}
|
|
51
51
|
return result;
|
|
52
52
|
} catch (e) {
|
|
53
|
-
const token = `__ERROR_TOKEN_${
|
|
53
|
+
const token = `__ERROR_TOKEN_${uniqid()}__`;
|
|
54
54
|
errorTokens[token] = match;
|
|
55
55
|
return token;
|
|
56
56
|
}
|
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": "#"},
|
|
@@ -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
|
|
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
|
-
|
|
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.
|
|
3
|
+
"version": "1.54.0",
|
|
4
4
|
"description": "imdone-core",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -106,7 +106,6 @@
|
|
|
106
106
|
"sift": "^17.1.3",
|
|
107
107
|
"simple-git": "^3.19.1",
|
|
108
108
|
"uniqid": "^5.4.0",
|
|
109
|
-
"uuid": "^11.0.5",
|
|
110
109
|
"xregexp": "^5.1.0"
|
|
111
110
|
},
|
|
112
111
|
"devDependencies": {
|