@nocobase/actions 0.7.7-alpha.1 → 0.8.0-alpha.4
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/actions/move.js +1 -0
- package/lib/actions/toggle.js +3 -2
- package/package.json +5 -5
package/lib/actions/move.js
CHANGED
package/lib/actions/toggle.js
CHANGED
|
@@ -5,8 +5,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.toggle = toggle;
|
|
7
7
|
|
|
8
|
-
var _utils = require("../utils");
|
|
9
|
-
|
|
10
8
|
function _database() {
|
|
11
9
|
const data = require("@nocobase/database");
|
|
12
10
|
|
|
@@ -17,6 +15,8 @@ function _database() {
|
|
|
17
15
|
return data;
|
|
18
16
|
}
|
|
19
17
|
|
|
18
|
+
var _utils = require("../utils");
|
|
19
|
+
|
|
20
20
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
21
21
|
|
|
22
22
|
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
@@ -34,6 +34,7 @@ function _toggle() {
|
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
yield repository.toggle(ctx.action.params.values);
|
|
37
|
+
ctx.body = 'ok';
|
|
37
38
|
yield next();
|
|
38
39
|
});
|
|
39
40
|
return _toggle.apply(this, arguments);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nocobase/actions",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.0-alpha.4",
|
|
4
4
|
"description": "",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"licenses": [
|
|
@@ -12,14 +12,14 @@
|
|
|
12
12
|
"main": "./lib/index.js",
|
|
13
13
|
"types": "./lib/index.d.ts",
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@nocobase/cache": "0.
|
|
16
|
-
"@nocobase/database": "0.
|
|
17
|
-
"@nocobase/resourcer": "0.
|
|
15
|
+
"@nocobase/cache": "0.8.0-alpha.4",
|
|
16
|
+
"@nocobase/database": "0.8.0-alpha.4",
|
|
17
|
+
"@nocobase/resourcer": "0.8.0-alpha.4"
|
|
18
18
|
},
|
|
19
19
|
"repository": {
|
|
20
20
|
"type": "git",
|
|
21
21
|
"url": "git+https://github.com/nocobase/nocobase.git",
|
|
22
22
|
"directory": "packages/actions"
|
|
23
23
|
},
|
|
24
|
-
"gitHead": "
|
|
24
|
+
"gitHead": "433f068ce4479a53f51d3ceac3f22b710e7bb13e"
|
|
25
25
|
}
|