@nocobase/data-source-manager 1.3.0-alpha.20240807100243 → 1.3.0-alpha.20240814073548

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.
@@ -14,6 +14,8 @@ export declare class Collection implements ICollection {
14
14
  repository: IRepository;
15
15
  fields: Map<string, IField>;
16
16
  constructor(options: CollectionOptions, collectionManager: ICollectionManager);
17
+ get name(): string;
18
+ get filterTargetKey(): string;
17
19
  updateOptions(options: CollectionOptions, mergeOptions?: any): this;
18
20
  setFields(fields: any[]): void;
19
21
  setField(name: string, options: any): CollectionField;
package/lib/collection.js CHANGED
@@ -53,6 +53,12 @@ const _Collection = class _Collection {
53
53
  }
54
54
  repository;
55
55
  fields = /* @__PURE__ */ new Map();
56
+ get name() {
57
+ return this.options.name;
58
+ }
59
+ get filterTargetKey() {
60
+ return this.options.filterTargetKey;
61
+ }
56
62
  updateOptions(options, mergeOptions) {
57
63
  const newOptions = {
58
64
  ...this.options,
package/package.json CHANGED
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "name": "@nocobase/data-source-manager",
3
- "version": "1.3.0-alpha.20240807100243",
3
+ "version": "1.3.0-alpha.20240814073548",
4
4
  "description": "",
5
5
  "license": "AGPL-3.0",
6
6
  "main": "./lib/index.js",
7
7
  "types": "./lib/index.d.ts",
8
8
  "dependencies": {
9
- "@nocobase/actions": "1.3.0-alpha.20240807100243",
10
- "@nocobase/cache": "1.3.0-alpha.20240807100243",
11
- "@nocobase/database": "1.3.0-alpha.20240807100243",
12
- "@nocobase/resourcer": "1.3.0-alpha.20240807100243",
13
- "@nocobase/utils": "1.3.0-alpha.20240807100243",
9
+ "@nocobase/actions": "1.3.0-alpha.20240814073548",
10
+ "@nocobase/cache": "1.3.0-alpha.20240814073548",
11
+ "@nocobase/database": "1.3.0-alpha.20240814073548",
12
+ "@nocobase/resourcer": "1.3.0-alpha.20240814073548",
13
+ "@nocobase/utils": "1.3.0-alpha.20240814073548",
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": "540c3fe4cfb7c20de0e6639f935a98b736d7b754"
22
+ "gitHead": "cb195a2da766088e2a368f60ee2e933579d0987c"
23
23
  }