@nocobase/app 1.9.0-beta.7 → 1.9.0-beta.9

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.
Files changed (29) hide show
  1. package/dist/client/381.370f6149.async.js +42 -0
  2. package/dist/client/index.html +1 -1
  3. package/dist/client/index.html.tpl +1 -1
  4. package/dist/client/npm._at_ant-design.94678b5d.async.js +141 -0
  5. package/dist/client/npm._at_juggle.71821ece.async.js +1 -0
  6. package/dist/client/npm._at_react-spring.47360957.async.js +1 -0
  7. package/dist/client/npm._at_use-gesture.15164819.async.js +1 -0
  8. package/dist/client/npm.ahooks.7b545023.async.js +6 -0
  9. package/dist/client/npm.antd-mobile.6d2f2685.async.js +1 -0
  10. package/dist/client/npm.antd-style.f89528fc.async.js +1 -0
  11. package/dist/client/npm.antd.a8e8f371.async.js +464 -0
  12. package/dist/client/npm.babel-runtime.eed49798.async.js +1 -0
  13. package/dist/client/npm.rc-util.d5d23626.async.js +18 -0
  14. package/dist/client/p__index.7c1854dd.async.js +1812 -0
  15. package/dist/client/p__index.b3e3d810.chunk.css +1 -0
  16. package/dist/client/{umi.e0346c01.js → umi.639badb9.js} +2 -2
  17. package/lib/config/cache.d.ts +2 -11
  18. package/lib/config/cache.js +3 -2
  19. package/lib/config/index.d.ts +2 -21
  20. package/lib/config/index.js +3 -0
  21. package/package.json +6 -6
  22. package/src/config/cache.ts +5 -4
  23. package/src/config/index.ts +5 -1
  24. package/dist/client/6858.082255a5.async.js +0 -59
  25. package/dist/client/npm._at_ant-design.5b9b3ce7.async.js +0 -141
  26. package/dist/client/npm.ahooks.c5b165dc.async.js +0 -6
  27. package/dist/client/npm.antd.168d1e29.async.js +0 -464
  28. package/dist/client/p__index.b415ed71.chunk.css +0 -1
  29. package/dist/client/p__index.d7831f36.async.js +0 -1686
@@ -29,6 +29,7 @@ __export(cache_exports, {
29
29
  cacheManager: () => cacheManager
30
30
  });
31
31
  module.exports = __toCommonJS(cache_exports);
32
+ const redisURL = process.env.REDIS_URL || process.env.CACHE_REDIS_URL;
32
33
  const cacheManager = {
33
34
  defaultStore: process.env.CACHE_DEFAULT_STORE || "memory",
34
35
  stores: {
@@ -36,9 +37,9 @@ const cacheManager = {
36
37
  store: "memory",
37
38
  max: parseInt(process.env.CACHE_MEMORY_MAX) || 2e3
38
39
  },
39
- ...process.env.CACHE_REDIS_URL ? {
40
+ ...redisURL ? {
40
41
  redis: {
41
- url: process.env.CACHE_REDIS_URL
42
+ url: redisURL
42
43
  }
43
44
  } : {}
44
45
  }
@@ -6,24 +6,5 @@
6
6
  * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
7
  * For more information, please refer to: https://www.nocobase.com/agreement.
8
8
  */
9
- export declare function getConfig(): Promise<{
10
- database: import("@nocobase/database").IDatabaseOptions;
11
- resourcer: {
12
- prefix: string;
13
- };
14
- plugins: import("@nocobase/server").PluginConfiguration[];
15
- cacheManager: Partial<{
16
- defaultStore: string;
17
- stores: {
18
- [storeType: string]: {
19
- [key: string]: any;
20
- store?: "memory" | import("cache-manager").FactoryStore<import("cache-manager").Store, any>;
21
- close?: (store: import("cache-manager").Store) => Promise<void>;
22
- };
23
- };
24
- prefix: string;
25
- }>;
26
- logger: import("@nocobase/server").AppLoggerOptions;
27
- telemetry: import("@nocobase/server").AppTelemetryOptions;
28
- perfHooks: boolean;
29
- }>;
9
+ import { ApplicationOptions } from '@nocobase/server';
10
+ export declare function getConfig(): Promise<ApplicationOptions>;
@@ -49,6 +49,9 @@ var import_telemetry = require("./telemetry");
49
49
  async function getConfig() {
50
50
  return {
51
51
  database: await (0, import_database.parseDatabaseOptions)(),
52
+ redisConfig: {
53
+ connectionString: process.env.REDIS_URL
54
+ },
52
55
  resourcer: import_resourcer.default,
53
56
  plugins: import_plugins.default,
54
57
  cacheManager: import_cache.cacheManager,
package/package.json CHANGED
@@ -1,22 +1,22 @@
1
1
  {
2
2
  "name": "@nocobase/app",
3
- "version": "1.9.0-beta.7",
3
+ "version": "1.9.0-beta.9",
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/database": "1.9.0-beta.7",
10
- "@nocobase/preset-nocobase": "1.9.0-beta.7",
11
- "@nocobase/server": "1.9.0-beta.7"
9
+ "@nocobase/database": "1.9.0-beta.9",
10
+ "@nocobase/preset-nocobase": "1.9.0-beta.9",
11
+ "@nocobase/server": "1.9.0-beta.9"
12
12
  },
13
13
  "devDependencies": {
14
- "@nocobase/client": "1.9.0-beta.7"
14
+ "@nocobase/client": "1.9.0-beta.9"
15
15
  },
16
16
  "repository": {
17
17
  "type": "git",
18
18
  "url": "git+https://github.com/nocobase/nocobase.git",
19
19
  "directory": "packages/core/app"
20
20
  },
21
- "gitHead": "4a5055c973b51611d5db1604aaaf6c1b73b4733c"
21
+ "gitHead": "b44464f1d1bbc96022d0f622e0a2f1d7e8d7142f"
22
22
  }
@@ -9,19 +9,20 @@
9
9
 
10
10
  import { CacheManagerOptions } from '@nocobase/cache';
11
11
 
12
- export const cacheManager = {
12
+ const redisURL = process.env.REDIS_URL || process.env.CACHE_REDIS_URL;
13
+ export const cacheManager: CacheManagerOptions = {
13
14
  defaultStore: process.env.CACHE_DEFAULT_STORE || 'memory',
14
15
  stores: {
15
16
  memory: {
16
17
  store: 'memory',
17
18
  max: parseInt(process.env.CACHE_MEMORY_MAX) || 2000,
18
19
  },
19
- ...(process.env.CACHE_REDIS_URL
20
+ ...(redisURL
20
21
  ? {
21
22
  redis: {
22
- url: process.env.CACHE_REDIS_URL,
23
+ url: redisURL,
23
24
  },
24
25
  }
25
26
  : {}),
26
27
  },
27
- } as CacheManagerOptions;
28
+ };
@@ -7,6 +7,7 @@
7
7
  * For more information, please refer to: https://www.nocobase.com/agreement.
8
8
  */
9
9
 
10
+ import { ApplicationOptions } from '@nocobase/server';
10
11
  import { cacheManager } from './cache';
11
12
  import { parseDatabaseOptions } from './database';
12
13
  import logger from './logger';
@@ -14,9 +15,12 @@ import plugins from './plugins';
14
15
  import resourcer from './resourcer';
15
16
  import { telemetry } from './telemetry';
16
17
 
17
- export async function getConfig() {
18
+ export async function getConfig(): Promise<ApplicationOptions> {
18
19
  return {
19
20
  database: await parseDatabaseOptions(),
21
+ redisConfig: {
22
+ connectionString: process.env.REDIS_URL,
23
+ },
20
24
  resourcer,
21
25
  plugins,
22
26
  cacheManager,