@nocobase/data-source-manager 0.20.0-alpha.13 → 0.20.0-alpha.14
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/data-source.d.ts +1 -1
- package/lib/data-source.js +3 -3
- package/package.json +7 -7
package/lib/data-source.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
import { ACL } from '@nocobase/acl';
|
|
3
|
+
import EventEmitter from 'events';
|
|
3
4
|
import { ResourceManager } from './resource-manager';
|
|
4
5
|
import { ICollectionManager } from './types';
|
|
5
|
-
import EventEmitter from 'events';
|
|
6
6
|
export type DataSourceOptions = any;
|
|
7
7
|
export declare abstract class DataSource extends EventEmitter {
|
|
8
8
|
protected options: DataSourceOptions;
|
package/lib/data-source.js
CHANGED
|
@@ -33,10 +33,10 @@ __export(data_source_exports, {
|
|
|
33
33
|
module.exports = __toCommonJS(data_source_exports);
|
|
34
34
|
var import_acl = require("@nocobase/acl");
|
|
35
35
|
var import_resourcer = require("@nocobase/resourcer");
|
|
36
|
+
var import_events = __toESM(require("events"));
|
|
36
37
|
var import_koa_compose = __toESM(require("koa-compose"));
|
|
37
|
-
var import_resource_manager = require("./resource-manager");
|
|
38
38
|
var import_load_default_actions = require("./load-default-actions");
|
|
39
|
-
var
|
|
39
|
+
var import_resource_manager = require("./resource-manager");
|
|
40
40
|
const _DataSource = class _DataSource extends import_events.default {
|
|
41
41
|
constructor(options) {
|
|
42
42
|
super();
|
|
@@ -55,7 +55,7 @@ const _DataSource = class _DataSource extends import_events.default {
|
|
|
55
55
|
init(options = {}) {
|
|
56
56
|
this.acl = this.createACL();
|
|
57
57
|
this.resourceManager = this.createResourceManager({
|
|
58
|
-
prefix:
|
|
58
|
+
prefix: process.env.API_BASE_PATH,
|
|
59
59
|
...options.resourceManager
|
|
60
60
|
});
|
|
61
61
|
this.collectionManager = this.createCollectionManager(options);
|
package/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nocobase/data-source-manager",
|
|
3
|
-
"version": "0.20.0-alpha.
|
|
3
|
+
"version": "0.20.0-alpha.14",
|
|
4
4
|
"description": "",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "./lib/index.js",
|
|
7
7
|
"types": "./lib/index.d.ts",
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"@nocobase/actions": "0.20.0-alpha.
|
|
10
|
-
"@nocobase/cache": "0.20.0-alpha.
|
|
11
|
-
"@nocobase/database": "0.20.0-alpha.
|
|
12
|
-
"@nocobase/resourcer": "0.20.0-alpha.
|
|
13
|
-
"@nocobase/utils": "0.20.0-alpha.
|
|
9
|
+
"@nocobase/actions": "0.20.0-alpha.14",
|
|
10
|
+
"@nocobase/cache": "0.20.0-alpha.14",
|
|
11
|
+
"@nocobase/database": "0.20.0-alpha.14",
|
|
12
|
+
"@nocobase/resourcer": "0.20.0-alpha.14",
|
|
13
|
+
"@nocobase/utils": "0.20.0-alpha.14",
|
|
14
14
|
"@types/jsonwebtoken": "^8.5.8",
|
|
15
15
|
"jsonwebtoken": "^8.5.1"
|
|
16
16
|
},
|
|
@@ -19,5 +19,5 @@
|
|
|
19
19
|
"url": "git+https://github.com/nocobase/nocobase.git",
|
|
20
20
|
"directory": "packages/auth"
|
|
21
21
|
},
|
|
22
|
-
"gitHead": "
|
|
22
|
+
"gitHead": "4af62dec7c2358a7596c80cdc1cf893ca8cd57e7"
|
|
23
23
|
}
|