@nocobase/server 1.6.0-beta.15 → 1.6.0-beta.17

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.
package/lib/helper.js CHANGED
@@ -88,6 +88,9 @@ function registerMiddlewares(app, options) {
88
88
  app.use(
89
89
  (0, import_cors.default)({
90
90
  exposeHeaders: ["content-disposition"],
91
+ origin(ctx) {
92
+ return ctx.get("origin");
93
+ },
91
94
  ...options.cors
92
95
  }),
93
96
  {
@@ -45,7 +45,7 @@ const deps = {
45
45
  winston: "3.x",
46
46
  "winston-daily-rotate-file": "4.x",
47
47
  koa: "2.x",
48
- "@koa/cors": "3.x",
48
+ "@koa/cors": "5.x",
49
49
  "@koa/router": "9.x",
50
50
  multer: "1.x",
51
51
  "@koa/multer": "3.x",
package/package.json CHANGED
@@ -1,60 +1,60 @@
1
1
  {
2
- "name": "@nocobase/server",
3
- "version": "1.6.0-beta.15",
4
- "main": "lib/index.js",
5
- "types": "./lib/index.d.ts",
6
- "license": "AGPL-3.0",
7
- "dependencies": {
8
- "@formily/json-schema": "2.x",
9
- "@hapi/topo": "^6.0.0",
10
- "@koa/cors": "^3.1.0",
11
- "@koa/multer": "^3.0.2",
12
- "@koa/router": "^9.4.0",
13
- "@nocobase/acl": "1.6.0-beta.15",
14
- "@nocobase/actions": "1.6.0-beta.15",
15
- "@nocobase/auth": "1.6.0-beta.15",
16
- "@nocobase/cache": "1.6.0-beta.15",
17
- "@nocobase/data-source-manager": "1.6.0-beta.15",
18
- "@nocobase/database": "1.6.0-beta.15",
19
- "@nocobase/evaluators": "1.6.0-beta.15",
20
- "@nocobase/lock-manager": "1.6.0-beta.15",
21
- "@nocobase/logger": "1.6.0-beta.15",
22
- "@nocobase/resourcer": "1.6.0-beta.15",
23
- "@nocobase/sdk": "1.6.0-beta.15",
24
- "@nocobase/telemetry": "1.6.0-beta.15",
25
- "@nocobase/utils": "1.6.0-beta.15",
26
- "@types/decompress": "4.2.7",
27
- "@types/ini": "^1.3.31",
28
- "@types/koa-send": "^4.1.3",
29
- "@types/multer": "^1.4.5",
30
- "async-mutex": "^0.5.0",
31
- "axios": "^1.7.0",
32
- "chalk": "^4.1.1",
33
- "commander": "^9.2.0",
34
- "cron": "^2.4.4",
35
- "cronstrue": "^2.11.0",
36
- "dayjs": "^1.11.8",
37
- "decompress": "4.2.1",
38
- "find-package-json": "^1.2.0",
39
- "fs-extra": "^11.1.1",
40
- "i18next": "^22.4.9",
41
- "ini": "^4.1.1",
42
- "koa": "^2.13.4",
43
- "koa-bodyparser": "^4.3.0",
44
- "koa-send": "^5.0.1",
45
- "koa-static": "^5.0.0",
46
- "lodash": "^4.17.21",
47
- "multer": "^1.4.2",
48
- "nanoid": "3.3.4",
49
- "semver": "^7.3.7",
50
- "serve-handler": "^6.1.5",
51
- "ws": "^8.13.0",
52
- "xpipe": "^1.0.5"
53
- },
54
- "devDependencies": {
55
- "@types/semver": "^7.3.9",
56
- "@types/serve-handler": "^6.1.1",
57
- "@types/ws": "^8.5.5"
58
- },
59
- "gitHead": "5fde4d665f0280af0c5475cfd8cb6b21dcbe2b9b"
2
+ "name": "@nocobase/server",
3
+ "version": "1.6.0-beta.17",
4
+ "main": "lib/index.js",
5
+ "types": "./lib/index.d.ts",
6
+ "license": "AGPL-3.0",
7
+ "dependencies": {
8
+ "@formily/json-schema": "2.x",
9
+ "@hapi/topo": "^6.0.0",
10
+ "@koa/cors": "^5.0.0",
11
+ "@koa/multer": "^3.0.2",
12
+ "@koa/router": "^9.4.0",
13
+ "@nocobase/acl": "1.6.0-beta.17",
14
+ "@nocobase/actions": "1.6.0-beta.17",
15
+ "@nocobase/auth": "1.6.0-beta.17",
16
+ "@nocobase/cache": "1.6.0-beta.17",
17
+ "@nocobase/data-source-manager": "1.6.0-beta.17",
18
+ "@nocobase/database": "1.6.0-beta.17",
19
+ "@nocobase/evaluators": "1.6.0-beta.17",
20
+ "@nocobase/lock-manager": "1.6.0-beta.17",
21
+ "@nocobase/logger": "1.6.0-beta.17",
22
+ "@nocobase/resourcer": "1.6.0-beta.17",
23
+ "@nocobase/sdk": "1.6.0-beta.17",
24
+ "@nocobase/telemetry": "1.6.0-beta.17",
25
+ "@nocobase/utils": "1.6.0-beta.17",
26
+ "@types/decompress": "4.2.7",
27
+ "@types/ini": "^1.3.31",
28
+ "@types/koa-send": "^4.1.3",
29
+ "@types/multer": "^1.4.5",
30
+ "async-mutex": "^0.5.0",
31
+ "axios": "^1.7.0",
32
+ "chalk": "^4.1.1",
33
+ "commander": "^9.2.0",
34
+ "cron": "^2.4.4",
35
+ "cronstrue": "^2.11.0",
36
+ "dayjs": "^1.11.8",
37
+ "decompress": "4.2.1",
38
+ "find-package-json": "^1.2.0",
39
+ "fs-extra": "^11.1.1",
40
+ "i18next": "^22.4.9",
41
+ "ini": "^4.1.1",
42
+ "koa": "^2.15.4",
43
+ "koa-bodyparser": "^4.3.0",
44
+ "koa-send": "^5.0.1",
45
+ "koa-static": "^5.0.0",
46
+ "lodash": "^4.17.21",
47
+ "multer": "^1.4.2",
48
+ "nanoid": "3.3.4",
49
+ "semver": "^7.3.7",
50
+ "serve-handler": "^6.1.5",
51
+ "ws": "^8.13.0",
52
+ "xpipe": "^1.0.5"
53
+ },
54
+ "devDependencies": {
55
+ "@types/semver": "^7.3.9",
56
+ "@types/serve-handler": "^6.1.1",
57
+ "@types/ws": "^8.5.5"
58
+ },
59
+ "gitHead": "f431f7c589bcefd6dcda19a0119a85b0aa192b05"
60
60
  }