@nocobase/plugin-multi-app-manager 2.0.0-alpha.37 → 2.0.0-alpha.39

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.
@@ -8,7 +8,7 @@
8
8
  */
9
9
 
10
10
  module.exports = {
11
- "@nocobase/client": "2.0.0-alpha.37",
11
+ "@nocobase/client": "2.0.0-alpha.39",
12
12
  "antd": "5.24.2",
13
13
  "react": "18.2.0",
14
14
  "@formily/react": "2.3.7",
@@ -17,10 +17,10 @@ module.exports = {
17
17
  "react-router-dom": "6.30.1",
18
18
  "lodash": "4.17.21",
19
19
  "react-i18next": "11.18.6",
20
- "@nocobase/database": "2.0.0-alpha.37",
21
- "@nocobase/server": "2.0.0-alpha.37",
22
- "@nocobase/telemetry": "2.0.0-alpha.37",
20
+ "@nocobase/database": "2.0.0-alpha.39",
21
+ "@nocobase/server": "2.0.0-alpha.39",
22
+ "@nocobase/telemetry": "2.0.0-alpha.39",
23
23
  "mysql2": "3.11.0",
24
24
  "pg": "8.11.3",
25
- "@nocobase/utils": "2.0.0-alpha.37"
25
+ "@nocobase/utils": "2.0.0-alpha.39"
26
26
  };
@@ -1 +1 @@
1
- {"name":"mariadb","version":"2.5.6","description":"fast mariadb/mysql connector.","main":"promise.js","types":"types/index.d.ts","directories":{"lib":"lib","test":"test"},"private":false,"scripts":{"test":"npm run test:types-prettier && npm run test:prettier && npm run test:types && npm run test:lint && npm run test:base","test:base":"mocha --no-parallel --timeout 5000 \"test/**/*.js\" ","test:lint":"eslint \"{lib,test}/**/*.js\" ","test:types":"eslint \"types/*.ts\" ","test:types-prettier":"prettier --write \"types/*.ts\"","test:prettier":"prettier --write \"{tools,lib,test,benchmarks}/**/*.js\"","coverage":"npm run coverage:test && npm run coverage:report","coverage:test":"nyc mocha --no-parallel --timeout 5000 \"test/**/*.js\"","coverage:report":"nyc report --reporter=text-lcov > coverage.lcov && codecov","benchmark":"node ./benchmarks/benchmarks.js","generate":"node ./tools/generate-mariadb.js"},"repository":{"type":"git","url":"git+https://github.com/mariadb-corporation/mariadb-connector-nodejs.git"},"keywords":["mariadb","mysql","client","driver","connector"],"files":["lib","types/index.d.ts","promise.js","callback.js"],"engines":{"node":">= 10.13"},"author":"Diego Dupin <diego.dupin@mariadb.com>","license":"LGPL-2.1-or-later","dependencies":{"@types/geojson":"^7946.0.8","@types/node":"^17.0.10","denque":"^2.0.1","iconv-lite":"^0.6.3","long":"^5.2.0","moment-timezone":"^0.5.34","please-upgrade-node":"^3.2.0"},"devDependencies":{"@typescript-eslint/eslint-plugin":"^5.10.0","@typescript-eslint/parser":"^5.10.0","benchmark":"^2.1.4","chai":"^4.3.4","codecov":"^3.8.2","chalk":"^4.1.2","dom-parser":"^0.1.6","error-stack-parser":"^2.0.6","eslint":"^8.7.0","eslint-config-prettier":"^8.3.0","eslint-plugin-markdown":"^2.2.1","eslint-plugin-prettier":"^4.0.0","mocha":"^9.2.0","mocha-lcov-reporter":"^1.3.0","nyc":"^15.1.0","prettier":"^2.5.1","typescript":"^4.5.5"},"bugs":{"url":"https://jira.mariadb.org/projects/CONJS/"},"homepage":"https://github.com/mariadb-corporation/mariadb-connector-nodejs#readme","_lastModified":"2025-11-11T04:40:36.080Z"}
1
+ {"name":"mariadb","version":"2.5.6","description":"fast mariadb/mysql connector.","main":"promise.js","types":"types/index.d.ts","directories":{"lib":"lib","test":"test"},"private":false,"scripts":{"test":"npm run test:types-prettier && npm run test:prettier && npm run test:types && npm run test:lint && npm run test:base","test:base":"mocha --no-parallel --timeout 5000 \"test/**/*.js\" ","test:lint":"eslint \"{lib,test}/**/*.js\" ","test:types":"eslint \"types/*.ts\" ","test:types-prettier":"prettier --write \"types/*.ts\"","test:prettier":"prettier --write \"{tools,lib,test,benchmarks}/**/*.js\"","coverage":"npm run coverage:test && npm run coverage:report","coverage:test":"nyc mocha --no-parallel --timeout 5000 \"test/**/*.js\"","coverage:report":"nyc report --reporter=text-lcov > coverage.lcov && codecov","benchmark":"node ./benchmarks/benchmarks.js","generate":"node ./tools/generate-mariadb.js"},"repository":{"type":"git","url":"git+https://github.com/mariadb-corporation/mariadb-connector-nodejs.git"},"keywords":["mariadb","mysql","client","driver","connector"],"files":["lib","types/index.d.ts","promise.js","callback.js"],"engines":{"node":">= 10.13"},"author":"Diego Dupin <diego.dupin@mariadb.com>","license":"LGPL-2.1-or-later","dependencies":{"@types/geojson":"^7946.0.8","@types/node":"^17.0.10","denque":"^2.0.1","iconv-lite":"^0.6.3","long":"^5.2.0","moment-timezone":"^0.5.34","please-upgrade-node":"^3.2.0"},"devDependencies":{"@typescript-eslint/eslint-plugin":"^5.10.0","@typescript-eslint/parser":"^5.10.0","benchmark":"^2.1.4","chai":"^4.3.4","codecov":"^3.8.2","chalk":"^4.1.2","dom-parser":"^0.1.6","error-stack-parser":"^2.0.6","eslint":"^8.7.0","eslint-config-prettier":"^8.3.0","eslint-plugin-markdown":"^2.2.1","eslint-plugin-prettier":"^4.0.0","mocha":"^9.2.0","mocha-lcov-reporter":"^1.3.0","nyc":"^15.1.0","prettier":"^2.5.1","typescript":"^4.5.5"},"bugs":{"url":"https://jira.mariadb.org/projects/CONJS/"},"homepage":"https://github.com/mariadb-corporation/mariadb-connector-nodejs#readme","_lastModified":"2025-11-14T18:30:40.437Z"}
@@ -177,6 +177,10 @@ class PluginMultiAppManagerServer extends import_server.Plugin {
177
177
  });
178
178
  subApp.runCommand("start", "--quickstart");
179
179
  }
180
+ if (type === "subAppStopped") {
181
+ const { appName } = message;
182
+ await import_server.AppSupervisor.getInstance().stopApp(appName);
183
+ }
180
184
  if (type === "removeApp") {
181
185
  const { appName } = message;
182
186
  await import_server.AppSupervisor.getInstance().removeApp(appName);
@@ -257,6 +261,12 @@ class PluginMultiAppManagerServer extends import_server.Plugin {
257
261
  appName: name
258
262
  });
259
263
  });
264
+ subApp.on("afterStop", async () => {
265
+ this.sendSyncMessage({
266
+ type: "subAppStopped",
267
+ appName: name
268
+ });
269
+ });
260
270
  const quickstart = async () => {
261
271
  try {
262
272
  await this.appDbCreator(subApp, {
@@ -329,6 +339,12 @@ class PluginMultiAppManagerServer extends import_server.Plugin {
329
339
  appName: name
330
340
  });
331
341
  });
342
+ subApp.on("afterStop", async () => {
343
+ this.sendSyncMessage({
344
+ type: "subAppStopped",
345
+ appName: name
346
+ });
347
+ });
332
348
  if (!loadButNotStart) {
333
349
  await subApp.runCommand("start", "--quickstart");
334
350
  }
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "displayName.zh-CN": "多应用管理器(已废弃)",
5
5
  "description": "Multi-app runs applications in a process-sharing manner, suitable for testing and demo environments only. Do not use it in production.",
6
6
  "description.zh-CN": "多应用以进程共享的方式运行,仅适合测试和演示环境,生产环境下请勿使用。",
7
- "version": "2.0.0-alpha.37",
7
+ "version": "2.0.0-alpha.39",
8
8
  "license": "AGPL-3.0",
9
9
  "main": "./dist/server/index.js",
10
10
  "homepage": "https://docs.nocobase.com/handbook/multi-app-manager",
@@ -28,7 +28,7 @@
28
28
  "@nocobase/test": "2.x",
29
29
  "@nocobase/utils": "2.x"
30
30
  },
31
- "gitHead": "56e2dc3a83b8ca7afa97cfa71b37a43f2ec10396",
31
+ "gitHead": "f716c78b4389d45ebe8996bcabcca976b4410aa2",
32
32
  "keywords": [
33
33
  "system"
34
34
  ]