@nocobase/server 2.1.0-beta.21 → 2.1.0-beta.23

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.
@@ -67,10 +67,17 @@ const _PackageUrls = class _PackageUrls {
67
67
  }
68
68
  static async get(packageName, lane = "client") {
69
69
  const cacheKey = this.getCacheKey(packageName, lane);
70
- if (!this.items[cacheKey]) {
71
- this.items[cacheKey] = await this.fetch(packageName, lane);
70
+ const cached = this.items[cacheKey];
71
+ if (cached) {
72
+ return cached;
72
73
  }
73
- return this.items[cacheKey];
74
+ const nextUrl = await this.fetch(packageName, lane);
75
+ if (nextUrl == null ? void 0 : nextUrl.includes("?hash=")) {
76
+ this.items[cacheKey] = nextUrl;
77
+ } else {
78
+ delete this.items[cacheKey];
79
+ }
80
+ return nextUrl;
74
81
  }
75
82
  static async hasClientEntry(packageName, lane) {
76
83
  const pkgPath = import_path.default.resolve(process.env.NODE_MODULES_PATH, packageName);
@@ -302,7 +302,7 @@ const _PluginManager = class _PluginManager {
302
302
  if (options == null ? void 0 : options.forceRecreate) {
303
303
  await import_fs_extra.default.rm(pluginDir, { recursive: true, force: true });
304
304
  }
305
- const { PluginGenerator } = require("@nocobase/cli/src/plugin-generator");
305
+ const { PluginGenerator } = require("@nocobase/cli-v1/src/plugin-generator");
306
306
  const generator = new PluginGenerator({
307
307
  cwd: process.cwd(),
308
308
  args: {},
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nocobase/server",
3
- "version": "2.1.0-beta.21",
3
+ "version": "2.1.0-beta.23",
4
4
  "main": "lib/index.js",
5
5
  "types": "./lib/index.d.ts",
6
6
  "license": "Apache-2.0",
@@ -10,21 +10,21 @@
10
10
  "@koa/cors": "^5.0.0",
11
11
  "@koa/multer": "^3.1.0",
12
12
  "@koa/router": "^13.1.0",
13
- "@nocobase/acl": "2.1.0-beta.21",
14
- "@nocobase/actions": "2.1.0-beta.21",
15
- "@nocobase/ai": "2.1.0-beta.21",
16
- "@nocobase/auth": "2.1.0-beta.21",
17
- "@nocobase/cache": "2.1.0-beta.21",
18
- "@nocobase/data-source-manager": "2.1.0-beta.21",
19
- "@nocobase/database": "2.1.0-beta.21",
20
- "@nocobase/evaluators": "2.1.0-beta.21",
21
- "@nocobase/lock-manager": "2.1.0-beta.21",
22
- "@nocobase/logger": "2.1.0-beta.21",
23
- "@nocobase/resourcer": "2.1.0-beta.21",
24
- "@nocobase/sdk": "2.1.0-beta.21",
25
- "@nocobase/snowflake-id": "2.1.0-beta.21",
26
- "@nocobase/telemetry": "2.1.0-beta.21",
27
- "@nocobase/utils": "2.1.0-beta.21",
13
+ "@nocobase/acl": "2.1.0-beta.23",
14
+ "@nocobase/actions": "2.1.0-beta.23",
15
+ "@nocobase/ai": "2.1.0-beta.23",
16
+ "@nocobase/auth": "2.1.0-beta.23",
17
+ "@nocobase/cache": "2.1.0-beta.23",
18
+ "@nocobase/data-source-manager": "2.1.0-beta.23",
19
+ "@nocobase/database": "2.1.0-beta.23",
20
+ "@nocobase/evaluators": "2.1.0-beta.23",
21
+ "@nocobase/lock-manager": "2.1.0-beta.23",
22
+ "@nocobase/logger": "2.1.0-beta.23",
23
+ "@nocobase/resourcer": "2.1.0-beta.23",
24
+ "@nocobase/sdk": "2.1.0-beta.23",
25
+ "@nocobase/snowflake-id": "2.1.0-beta.23",
26
+ "@nocobase/telemetry": "2.1.0-beta.23",
27
+ "@nocobase/utils": "2.1.0-beta.23",
28
28
  "@types/decompress": "4.2.7",
29
29
  "@types/ini": "^1.3.31",
30
30
  "@types/koa-send": "^4.1.3",
@@ -61,5 +61,5 @@
61
61
  "@types/serve-handler": "^6.1.1",
62
62
  "@types/ws": "^8.5.5"
63
63
  },
64
- "gitHead": "324bd82f33fca58e98711688a17ceb65c186b65e"
64
+ "gitHead": "bb4c0d3551bf9eff505b63756dd24a0813231f16"
65
65
  }