@nocobase/resourcer 2.0.0-alpha.4 → 2.0.0-alpha.41
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/resourcer.js +3 -0
- package/package.json +3 -3
package/lib/resourcer.js
CHANGED
|
@@ -176,6 +176,9 @@ const _ResourceManager = class _ResourceManager {
|
|
|
176
176
|
return this.middlewares.nodes;
|
|
177
177
|
}
|
|
178
178
|
use(middlewares, options = {}) {
|
|
179
|
+
if (!options.tag && !options.group && !options.before && !options.after) {
|
|
180
|
+
options.tag = "default";
|
|
181
|
+
}
|
|
179
182
|
this.middlewares.add(middlewares, options);
|
|
180
183
|
}
|
|
181
184
|
middleware({ prefix, accessors, skipIfDataSourceExists = false } = {}) {
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nocobase/resourcer",
|
|
3
|
-
"version": "2.0.0-alpha.
|
|
3
|
+
"version": "2.0.0-alpha.41",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
7
7
|
"license": "AGPL-3.0",
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"@nocobase/utils": "2.0.0-alpha.
|
|
9
|
+
"@nocobase/utils": "2.0.0-alpha.41",
|
|
10
10
|
"deepmerge": "^4.2.2",
|
|
11
11
|
"koa-compose": "^4.1.0",
|
|
12
12
|
"lodash": "^4.17.21",
|
|
@@ -18,5 +18,5 @@
|
|
|
18
18
|
"url": "git+https://github.com/nocobase/nocobase.git",
|
|
19
19
|
"directory": "packages/resourcer"
|
|
20
20
|
},
|
|
21
|
-
"gitHead": "
|
|
21
|
+
"gitHead": "889e81eef0280c2e45571bd0a4b2db6aa004f8c1"
|
|
22
22
|
}
|