@tachybase/plugin-field-china-region 1.3.21 → 1.3.22

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,7 +1,6 @@
1
1
  module.exports = {
2
- "@tachybase/client": "1.3.21",
3
- "@tachybase/schema": "1.3.21",
4
- "@tachybase/server": "1.3.21",
5
- "china-division": "2.7.0",
6
- "@tachybase/database": "1.3.21"
2
+ "@tachybase/client": "1.3.22",
3
+ "@tachybase/schema": "1.3.39",
4
+ "@tego/server": "1.3.39",
5
+ "china-division": "2.7.0"
7
6
  };
@@ -1,2 +1,2 @@
1
- declare const _default: import("@tachybase/database").CollectionOptions;
1
+ declare const _default: import("@tego/server").CollectionOptions;
2
2
  export default _default;
@@ -20,8 +20,8 @@ __export(chinaRegions_exports, {
20
20
  default: () => chinaRegions_default
21
21
  });
22
22
  module.exports = __toCommonJS(chinaRegions_exports);
23
- var import_database = require("@tachybase/database");
24
- var chinaRegions_default = (0, import_database.defineCollection)({
23
+ var import_server = require("@tego/server");
24
+ var chinaRegions_default = (0, import_server.defineCollection)({
25
25
  dumpRules: "skipped",
26
26
  name: "chinaRegions",
27
27
  autoGenId: false,
@@ -1,4 +1,4 @@
1
- import { Plugin } from '@tachybase/server';
1
+ import { Plugin } from '@tego/server';
2
2
  export declare class PluginChinaRegion extends Plugin {
3
3
  install(): Promise<void>;
4
4
  load(): Promise<void>;
@@ -21,8 +21,8 @@ __export(server_exports, {
21
21
  default: () => server_default
22
22
  });
23
23
  module.exports = __toCommonJS(server_exports);
24
- var import_path = require("path");
25
- var import_server = require("@tachybase/server");
24
+ var import_node_path = require("node:path");
25
+ var import_server = require("@tego/server");
26
26
  function getChinaDivisionData(key) {
27
27
  try {
28
28
  require.resolve(`../china-division/${key}.json`);
@@ -36,7 +36,7 @@ class PluginChinaRegion extends import_server.Plugin {
36
36
  await this.importData();
37
37
  }
38
38
  async load() {
39
- await this.importCollections((0, import_path.resolve)(__dirname, "collections"));
39
+ await this.importCollections((0, import_node_path.resolve)(__dirname, "collections"));
40
40
  this.app.acl.allow("chinaRegions", "list", "loggedIn");
41
41
  this.app.resourcer.use(
42
42
  async (ctx, next) => {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tachybase/plugin-field-china-region",
3
3
  "displayName": "Administrative divisions of China",
4
- "version": "1.3.21",
4
+ "version": "1.3.22",
5
5
  "description": "Provides data and field type for administrative divisions of China.",
6
6
  "keywords": [
7
7
  "Fields"
@@ -10,20 +10,16 @@
10
10
  "main": "./dist/server/index.js",
11
11
  "dependencies": {},
12
12
  "devDependencies": {
13
+ "@tachybase/schema": "^1.3.39",
14
+ "@tachybase/test": "^1.3.39",
15
+ "@tego/client": "^1.3.39",
16
+ "@tego/server": "^1.3.39",
13
17
  "@types/cross-spawn": "^6.0.6",
14
18
  "china-division": "^2.7.0",
15
19
  "cross-spawn": "^7.0.6",
16
- "@tachybase/schema": "1.3.21"
17
- },
18
- "peerDependencies": {
19
- "@tachybase/client": "1.3.21",
20
- "@tachybase/database": "1.3.21",
21
- "@tachybase/test": "1.3.21",
22
- "@tachybase/server": "1.3.21"
20
+ "@tachybase/client": "1.3.22"
23
21
  },
24
22
  "description.zh-CN": "提供中国行政区划数据和字段类型。",
25
23
  "displayName.zh-CN": "字段:中国行政区划",
26
- "scripts": {
27
- "build": "tachybase-build --no-dts @tachybase/plugin-field-china-region"
28
- }
24
+ "scripts": {}
29
25
  }