@nocobase/server 1.0.0-alpha.1 → 1.0.0-alpha.2

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.
@@ -25,7 +25,7 @@ var import_migration = require("../migration");
25
25
  const _rename_plugins_default = class _rename_plugins_default extends import_migration.Migration {
26
26
  on = "afterSync";
27
27
  // 'beforeLoad' or 'afterLoad'
28
- appVersion = "<1.0.0-alpha.1";
28
+ appVersion = "<1.0.0-alpha.3";
29
29
  async up() {
30
30
  const items = await this.pm.repository.find();
31
31
  for (const item of items) {
@@ -497,6 +497,7 @@ const _PluginManager = class _PluginManager {
497
497
  const toBeUpdated = [];
498
498
  for (const name of pluginNames) {
499
499
  const { name: pluginName } = await _PluginManager.parseName(name);
500
+ console.log("pluginName", pluginName);
500
501
  const plugin = this.get(pluginName);
501
502
  if (!plugin) {
502
503
  throw new Error(`${pluginName} plugin does not exist`);
@@ -775,7 +776,7 @@ const _PluginManager = class _PluginManager {
775
776
  async addByFile(options, throwError = true) {
776
777
  const { file, authToken } = options;
777
778
  const { packageName, tempFile, tempPackageContentDir } = await (0, import_utils2.downloadAndUnzipToTempDir)(file, authToken);
778
- const name = options.name || packageName;
779
+ const { name } = await _PluginManager.parseName(packageName);
779
780
  if (this.has(name)) {
780
781
  await (0, import_utils2.removeTmpDir)(tempFile, tempPackageContentDir);
781
782
  if (throwError) {
@@ -797,7 +798,7 @@ const _PluginManager = class _PluginManager {
797
798
  compressedFileUrl,
798
799
  authToken
799
800
  );
800
- const name = options.name || packageName;
801
+ const { name } = await _PluginManager.parseName(packageName);
801
802
  if (this.has(name)) {
802
803
  await (0, import_utils2.removeTmpDir)(tempFile, tempPackageContentDir);
803
804
  if (throwError) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nocobase/server",
3
- "version": "1.0.0-alpha.1",
3
+ "version": "1.0.0-alpha.2",
4
4
  "main": "lib/index.js",
5
5
  "types": "./lib/index.d.ts",
6
6
  "license": "AGPL-3.0",
@@ -10,18 +10,18 @@
10
10
  "@koa/cors": "^3.1.0",
11
11
  "@koa/multer": "^3.0.2",
12
12
  "@koa/router": "^9.4.0",
13
- "@nocobase/acl": "1.0.0-alpha.1",
14
- "@nocobase/actions": "1.0.0-alpha.1",
15
- "@nocobase/auth": "1.0.0-alpha.1",
16
- "@nocobase/cache": "1.0.0-alpha.1",
17
- "@nocobase/data-source-manager": "1.0.0-alpha.1",
18
- "@nocobase/database": "1.0.0-alpha.1",
19
- "@nocobase/evaluators": "1.0.0-alpha.1",
20
- "@nocobase/logger": "1.0.0-alpha.1",
21
- "@nocobase/resourcer": "1.0.0-alpha.1",
22
- "@nocobase/sdk": "1.0.0-alpha.1",
23
- "@nocobase/telemetry": "1.0.0-alpha.1",
24
- "@nocobase/utils": "1.0.0-alpha.1",
13
+ "@nocobase/acl": "1.0.0-alpha.2",
14
+ "@nocobase/actions": "1.0.0-alpha.2",
15
+ "@nocobase/auth": "1.0.0-alpha.2",
16
+ "@nocobase/cache": "1.0.0-alpha.2",
17
+ "@nocobase/data-source-manager": "1.0.0-alpha.2",
18
+ "@nocobase/database": "1.0.0-alpha.2",
19
+ "@nocobase/evaluators": "1.0.0-alpha.2",
20
+ "@nocobase/logger": "1.0.0-alpha.2",
21
+ "@nocobase/resourcer": "1.0.0-alpha.2",
22
+ "@nocobase/sdk": "1.0.0-alpha.2",
23
+ "@nocobase/telemetry": "1.0.0-alpha.2",
24
+ "@nocobase/utils": "1.0.0-alpha.2",
25
25
  "@types/decompress": "4.2.4",
26
26
  "@types/ini": "^1.3.31",
27
27
  "@types/koa-send": "^4.1.3",
@@ -54,5 +54,5 @@
54
54
  "@types/serve-handler": "^6.1.1",
55
55
  "@types/ws": "^8.5.5"
56
56
  },
57
- "gitHead": "c73b6d2032a6151fdfeebeb0ec923d766578c53c"
57
+ "gitHead": "f89dbc9e67d58404a2e484a5e124f739f340dcf8"
58
58
  }