@nocobase/app-server 0.7.4-alpha.4 → 0.7.5-alpha.1

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.
@@ -0,0 +1,2 @@
1
+ declare const cacheConfig: any;
2
+ export default cacheConfig;
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+
8
+ function _cache() {
9
+ const data = require("@nocobase/cache");
10
+
11
+ _cache = function _cache() {
12
+ return data;
13
+ };
14
+
15
+ return data;
16
+ }
17
+
18
+ const cacheConfig = !!process.env.CACHE_CONFIG ? JSON.parse(process.env.CACHE_CONFIG) : (0, _cache().createDefaultCacheConfig)();
19
+ var _default = cacheConfig;
20
+ exports.default = _default;
@@ -3,6 +3,7 @@ declare const _default: {
3
3
  resourcer: {
4
4
  prefix: string;
5
5
  };
6
- plugins: import("@nocobase/server").PluginsConfigurations;
6
+ plugins: import("@nocobase/server").PluginConfiguration[];
7
+ cache: any;
7
8
  };
8
9
  export default _default;
@@ -11,11 +11,14 @@ var _plugins = _interopRequireDefault(require("./plugins"));
11
11
 
12
12
  var _resourcer = _interopRequireDefault(require("./resourcer"));
13
13
 
14
+ var _cache = _interopRequireDefault(require("./cache"));
15
+
14
16
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
15
17
 
16
18
  var _default = {
17
19
  database: _database.default,
18
20
  resourcer: _resourcer.default,
19
- plugins: _plugins.default
21
+ plugins: _plugins.default,
22
+ cache: _cache.default
20
23
  };
21
24
  exports.default = _default;
@@ -1,3 +1,3 @@
1
- import { PluginsConfigurations } from '@nocobase/server';
2
- declare const _default: PluginsConfigurations;
1
+ import { PluginConfiguration } from '@nocobase/server';
2
+ declare const _default: PluginConfiguration[];
3
3
  export default _default;
@@ -4,5 +4,5 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
- var _default = ['@nocobase/plugin-error-handler', '@nocobase/plugin-collection-manager', '@nocobase/plugin-ui-schema-storage', '@nocobase/plugin-ui-routes-storage', '@nocobase/plugin-file-manager', '@nocobase/plugin-system-settings', '@nocobase/plugin-users', '@nocobase/plugin-acl', '@nocobase/plugin-china-region', '@nocobase/plugin-workflow', '@nocobase/plugin-client', '@nocobase/plugin-export', '@nocobase/plugin-audit-logs'];
7
+ var _default = ['@nocobase/preset-nocobase'];
8
8
  exports.default = _default;
package/package.json CHANGED
@@ -1,17 +1,17 @@
1
1
  {
2
2
  "name": "@nocobase/app-server",
3
- "version": "0.7.4-alpha.4",
3
+ "version": "0.7.5-alpha.1",
4
4
  "description": "",
5
5
  "license": "MIT",
6
6
  "main": "./lib/index.js",
7
7
  "types": "./lib/index.d.ts",
8
8
  "dependencies": {
9
- "@nocobase/preset-nocobase": "0.7.4-alpha.4"
9
+ "@nocobase/preset-nocobase": "0.7.5-alpha.1"
10
10
  },
11
11
  "repository": {
12
12
  "type": "git",
13
13
  "url": "git+https://github.com/nocobase/nocobase.git",
14
14
  "directory": "packages/app/server"
15
15
  },
16
- "gitHead": "726c06b721b217a6aa5c1421b899d1315e552b57"
16
+ "gitHead": "f6eb27b68185bb0c0b4c2cfca1df84205a9b9173"
17
17
  }
@@ -0,0 +1,5 @@
1
+ import { createDefaultCacheConfig } from '@nocobase/cache';
2
+
3
+ const cacheConfig = !!process.env.CACHE_CONFIG ? JSON.parse(process.env.CACHE_CONFIG) : createDefaultCacheConfig();
4
+
5
+ export default cacheConfig;
@@ -1,9 +1,11 @@
1
1
  import database from './database';
2
2
  import plugins from './plugins';
3
3
  import resourcer from './resourcer';
4
+ import cache from './cache';
4
5
 
5
6
  export default {
6
7
  database,
7
8
  resourcer,
8
9
  plugins,
10
+ cache,
9
11
  };
@@ -1,17 +1,3 @@
1
- import { PluginsConfigurations } from '@nocobase/server';
1
+ import { PluginConfiguration } from '@nocobase/server';
2
2
 
3
- export default [
4
- '@nocobase/plugin-error-handler',
5
- '@nocobase/plugin-collection-manager',
6
- '@nocobase/plugin-ui-schema-storage',
7
- '@nocobase/plugin-ui-routes-storage',
8
- '@nocobase/plugin-file-manager',
9
- '@nocobase/plugin-system-settings',
10
- '@nocobase/plugin-users',
11
- '@nocobase/plugin-acl',
12
- '@nocobase/plugin-china-region',
13
- '@nocobase/plugin-workflow',
14
- '@nocobase/plugin-client',
15
- '@nocobase/plugin-export',
16
- '@nocobase/plugin-audit-logs',
17
- ] as PluginsConfigurations;
3
+ export default ['@nocobase/preset-nocobase'] as PluginConfiguration[];