@budibase/server 2.5.6-alpha.23 → 2.5.6-alpha.24
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/builder/assets/{index.cb0900fe.js → index.919ee825.js} +1 -1
- package/builder/index.html +1 -1
- package/dist/api/controllers/application.js +2 -3
- package/dist/api/controllers/dev.js +1 -1
- package/dist/api/index.js +1 -2
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +7 -7
- package/src/api/controllers/application.ts +3 -3
- package/src/api/controllers/dev.ts +2 -2
- package/src/api/index.ts +2 -3
- package/tsconfig.build.json +3 -5
- package/tsconfig.json +2 -1
- package/dist/package.json +0 -180
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@budibase/server",
|
|
3
3
|
"email": "hi@budibase.com",
|
|
4
|
-
"version": "2.5.6-alpha.
|
|
4
|
+
"version": "2.5.6-alpha.24",
|
|
5
5
|
"description": "Budibase Web Server",
|
|
6
6
|
"main": "src/index.ts",
|
|
7
7
|
"repository": {
|
|
@@ -45,12 +45,12 @@
|
|
|
45
45
|
"license": "GPL-3.0",
|
|
46
46
|
"dependencies": {
|
|
47
47
|
"@apidevtools/swagger-parser": "10.0.3",
|
|
48
|
-
"@budibase/backend-core": "2.5.6-alpha.
|
|
49
|
-
"@budibase/client": "2.5.6-alpha.
|
|
48
|
+
"@budibase/backend-core": "2.5.6-alpha.24",
|
|
49
|
+
"@budibase/client": "2.5.6-alpha.24",
|
|
50
50
|
"@budibase/pro": "2.5.6-alpha.20",
|
|
51
|
-
"@budibase/shared-core": "2.5.6-alpha.
|
|
52
|
-
"@budibase/string-templates": "2.5.6-alpha.
|
|
53
|
-
"@budibase/types": "2.5.6-alpha.
|
|
51
|
+
"@budibase/shared-core": "2.5.6-alpha.24",
|
|
52
|
+
"@budibase/string-templates": "2.5.6-alpha.24",
|
|
53
|
+
"@budibase/types": "2.5.6-alpha.24",
|
|
54
54
|
"@bull-board/api": "3.7.0",
|
|
55
55
|
"@bull-board/koa": "3.9.4",
|
|
56
56
|
"@elastic/elasticsearch": "7.10.0",
|
|
@@ -176,5 +176,5 @@
|
|
|
176
176
|
"optionalDependencies": {
|
|
177
177
|
"oracledb": "5.3.0"
|
|
178
178
|
},
|
|
179
|
-
"gitHead": "
|
|
179
|
+
"gitHead": "0dde2b68cca70b0088f7fb037f3c6949d7a3618a"
|
|
180
180
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import env from "../../environment"
|
|
2
|
-
import packageJson from "../../../package.json"
|
|
3
2
|
import {
|
|
4
3
|
createLinkView,
|
|
5
4
|
createRoutingView,
|
|
@@ -24,6 +23,7 @@ import {
|
|
|
24
23
|
migrations,
|
|
25
24
|
objectStore,
|
|
26
25
|
ErrorCode,
|
|
26
|
+
env as envCore,
|
|
27
27
|
} from "@budibase/backend-core"
|
|
28
28
|
import { USERS_TABLE_SCHEMA } from "../../constants"
|
|
29
29
|
import { buildDefaultDocs } from "../../db/defaultData/datasource_bb_default"
|
|
@@ -264,7 +264,7 @@ async function performAppCreate(ctx: UserCtx) {
|
|
|
264
264
|
_rev: undefined,
|
|
265
265
|
appId,
|
|
266
266
|
type: "app",
|
|
267
|
-
version:
|
|
267
|
+
version: envCore.VERSION,
|
|
268
268
|
componentLibraries: ["@budibase/standard-components"],
|
|
269
269
|
name: name,
|
|
270
270
|
url: url,
|
|
@@ -433,7 +433,7 @@ export async function updateClient(ctx: UserCtx) {
|
|
|
433
433
|
}
|
|
434
434
|
|
|
435
435
|
// Update versions in app package
|
|
436
|
-
const updatedToVersion =
|
|
436
|
+
const updatedToVersion = envCore.VERSION
|
|
437
437
|
const appPackageUpdates = {
|
|
438
438
|
version: updatedToVersion,
|
|
439
439
|
revertableVersion: currentVersion,
|
|
@@ -4,7 +4,7 @@ import { checkSlashesInUrl } from "../../utilities"
|
|
|
4
4
|
import { request } from "../../utilities/workerRequests"
|
|
5
5
|
import { clearLock as redisClearLock } from "../../utilities/redis"
|
|
6
6
|
import { DocumentType } from "../../db/utils"
|
|
7
|
-
import { context } from "@budibase/backend-core"
|
|
7
|
+
import { context, env as envCore } from "@budibase/backend-core"
|
|
8
8
|
import { events, db as dbCore, cache } from "@budibase/backend-core"
|
|
9
9
|
|
|
10
10
|
async function redirect(ctx: any, method: string, path: string = "global") {
|
|
@@ -121,7 +121,7 @@ export async function revert(ctx: any) {
|
|
|
121
121
|
}
|
|
122
122
|
|
|
123
123
|
export async function getBudibaseVersion(ctx: any) {
|
|
124
|
-
const version =
|
|
124
|
+
const version = envCore.VERSION
|
|
125
125
|
ctx.body = {
|
|
126
126
|
version,
|
|
127
127
|
}
|
package/src/api/index.ts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import Router from "@koa/router"
|
|
2
|
-
import { auth, middleware } from "@budibase/backend-core"
|
|
2
|
+
import { auth, middleware, env as envCore } from "@budibase/backend-core"
|
|
3
3
|
import currentApp from "../middleware/currentapp"
|
|
4
4
|
import zlib from "zlib"
|
|
5
5
|
import { mainRoutes, staticRoutes, publicRoutes } from "./routes"
|
|
6
|
-
import pkg from "../../package.json"
|
|
7
6
|
import { middleware as pro } from "@budibase/pro"
|
|
8
7
|
export { shutdown } from "./routes/public"
|
|
9
8
|
const compress = require("koa-compress")
|
|
@@ -11,7 +10,7 @@ const compress = require("koa-compress")
|
|
|
11
10
|
export const router: Router = new Router()
|
|
12
11
|
|
|
13
12
|
router.get("/health", ctx => (ctx.status = 200))
|
|
14
|
-
router.get("/version", ctx => (ctx.body =
|
|
13
|
+
router.get("/version", ctx => (ctx.body = envCore.VERSION))
|
|
15
14
|
|
|
16
15
|
router.use(middleware.errorHandling)
|
|
17
16
|
|
package/tsconfig.build.json
CHANGED
|
@@ -8,13 +8,11 @@
|
|
|
8
8
|
"esModuleInterop": true,
|
|
9
9
|
"resolveJsonModule": true,
|
|
10
10
|
"incremental": true,
|
|
11
|
-
"types": [
|
|
12
|
-
"outDir": "dist",
|
|
11
|
+
"types": ["node", "jest"],
|
|
12
|
+
"outDir": "dist/src",
|
|
13
13
|
"skipLibCheck": true
|
|
14
14
|
},
|
|
15
|
-
"include": [
|
|
16
|
-
"src/**/*"
|
|
17
|
-
],
|
|
15
|
+
"include": ["src/**/*"],
|
|
18
16
|
"exclude": [
|
|
19
17
|
"node_modules",
|
|
20
18
|
"dist",
|
package/tsconfig.json
CHANGED
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
"declaration": true,
|
|
6
6
|
"sourceMap": true,
|
|
7
7
|
"baseUrl": ".",
|
|
8
|
+
"outDir": "dist",
|
|
8
9
|
"paths": {
|
|
9
10
|
"@budibase/types": ["../types/src"],
|
|
10
11
|
"@budibase/backend-core": ["../backend-core/src"],
|
|
@@ -23,6 +24,6 @@
|
|
|
23
24
|
{ "path": "../shared-core" },
|
|
24
25
|
{ "path": "../../../budibase-pro/packages/pro" }
|
|
25
26
|
],
|
|
26
|
-
"include": ["src/**/*", "specs"
|
|
27
|
+
"include": ["src/**/*", "specs"],
|
|
27
28
|
"exclude": ["node_modules", "dist"]
|
|
28
29
|
}
|
package/dist/package.json
DELETED
|
@@ -1,180 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@budibase/server",
|
|
3
|
-
"email": "hi@budibase.com",
|
|
4
|
-
"version": "2.5.6-alpha.22",
|
|
5
|
-
"description": "Budibase Web Server",
|
|
6
|
-
"main": "src/index.ts",
|
|
7
|
-
"repository": {
|
|
8
|
-
"type": "git",
|
|
9
|
-
"url": "https://github.com/Budibase/budibase.git"
|
|
10
|
-
},
|
|
11
|
-
"scripts": {
|
|
12
|
-
"prebuild": "rimraf dist/",
|
|
13
|
-
"build": "tsc -p tsconfig.build.json && mv dist/src/* dist/ && rimraf dist/src/",
|
|
14
|
-
"build:dev": "yarn prebuild && tsc --build --watch --preserveWatchOutput",
|
|
15
|
-
"debug": "yarn build && node --expose-gc --inspect=9222 dist/index.js",
|
|
16
|
-
"postbuild": "copyfiles -u 1 src/**/*.svelte dist/ && copyfiles -u 1 src/**/*.hbs dist/ && copyfiles -u 1 src/**/*.json dist/",
|
|
17
|
-
"test": "bash scripts/test.sh",
|
|
18
|
-
"test:memory": "jest --maxWorkers=2 --logHeapUsage --forceExit",
|
|
19
|
-
"test:watch": "jest --watch",
|
|
20
|
-
"predocker": "copyfiles -f ../client/dist/budibase-client.js ../client/manifest.json client",
|
|
21
|
-
"build:docker": "yarn run predocker && docker build . -t app-service --label version=$BUDIBASE_RELEASE_VERSION",
|
|
22
|
-
"build:docs": "node ./scripts/docs/generate.js open",
|
|
23
|
-
"run:docker": "node dist/index.js",
|
|
24
|
-
"run:docker:cluster": "pm2-runtime start pm2.config.js",
|
|
25
|
-
"dev:stack:up": "node scripts/dev/manage.js up",
|
|
26
|
-
"dev:stack:down": "node scripts/dev/manage.js down",
|
|
27
|
-
"dev:stack:nuke": "node scripts/dev/manage.js nuke",
|
|
28
|
-
"dev:builder": "yarn run dev:stack:up && nodemon",
|
|
29
|
-
"dev:built": "yarn run dev:stack:up && yarn run run:docker",
|
|
30
|
-
"specs": "ts-node specs/generate.ts && openapi-typescript specs/openapi.yaml --output src/definitions/openapi.ts",
|
|
31
|
-
"initialise": "node scripts/initialise.js",
|
|
32
|
-
"env:multi:enable": "node scripts/multiTenancy.js enable",
|
|
33
|
-
"env:multi:disable": "node scripts/multiTenancy.js disable",
|
|
34
|
-
"env:selfhost:enable": "node scripts/selfhost.js enable",
|
|
35
|
-
"env:selfhost:disable": "node scripts/selfhost.js disable",
|
|
36
|
-
"env:localdomain:enable": "node scripts/localdomain.js enable",
|
|
37
|
-
"env:localdomain:disable": "node scripts/localdomain.js disable",
|
|
38
|
-
"env:account:enable": "node scripts/account.js enable",
|
|
39
|
-
"env:account:disable": "node scripts/account.js disable"
|
|
40
|
-
},
|
|
41
|
-
"keywords": [
|
|
42
|
-
"budibase"
|
|
43
|
-
],
|
|
44
|
-
"author": "Budibase",
|
|
45
|
-
"license": "GPL-3.0",
|
|
46
|
-
"dependencies": {
|
|
47
|
-
"@apidevtools/swagger-parser": "10.0.3",
|
|
48
|
-
"@budibase/backend-core": "2.5.6-alpha.22",
|
|
49
|
-
"@budibase/client": "2.5.6-alpha.22",
|
|
50
|
-
"@budibase/pro": "2.5.6-alpha.20",
|
|
51
|
-
"@budibase/shared-core": "2.5.6-alpha.22",
|
|
52
|
-
"@budibase/string-templates": "2.5.6-alpha.22",
|
|
53
|
-
"@budibase/types": "2.5.6-alpha.22",
|
|
54
|
-
"@bull-board/api": "3.7.0",
|
|
55
|
-
"@bull-board/koa": "3.9.4",
|
|
56
|
-
"@elastic/elasticsearch": "7.10.0",
|
|
57
|
-
"@google-cloud/firestore": "5.0.2",
|
|
58
|
-
"@koa/router": "8.0.8",
|
|
59
|
-
"@sendgrid/mail": "7.1.1",
|
|
60
|
-
"@sentry/node": "6.17.7",
|
|
61
|
-
"airtable": "0.10.1",
|
|
62
|
-
"arangojs": "7.2.0",
|
|
63
|
-
"aws-sdk": "2.1030.0",
|
|
64
|
-
"bcryptjs": "2.4.3",
|
|
65
|
-
"bull": "4.10.1",
|
|
66
|
-
"chmodr": "1.2.0",
|
|
67
|
-
"chokidar": "3.5.3",
|
|
68
|
-
"cookies": "0.8.0",
|
|
69
|
-
"csvtojson": "2.0.10",
|
|
70
|
-
"curlconverter": "3.21.0",
|
|
71
|
-
"dd-trace": "3.13.2",
|
|
72
|
-
"dotenv": "8.2.0",
|
|
73
|
-
"download": "8.0.0",
|
|
74
|
-
"elastic-apm-node": "3.38.0",
|
|
75
|
-
"fix-path": "3.0.0",
|
|
76
|
-
"form-data": "4.0.0",
|
|
77
|
-
"fs-extra": "8.1.0",
|
|
78
|
-
"global-agent": "3.0.0",
|
|
79
|
-
"google-auth-library": "7.12.0",
|
|
80
|
-
"google-spreadsheet": "3.2.0",
|
|
81
|
-
"jimp": "0.16.1",
|
|
82
|
-
"joi": "17.6.0",
|
|
83
|
-
"js-yaml": "4.1.0",
|
|
84
|
-
"jsonschema": "1.4.0",
|
|
85
|
-
"knex": "2.4.0",
|
|
86
|
-
"koa": "2.13.4",
|
|
87
|
-
"koa-body": "4.2.0",
|
|
88
|
-
"koa-compress": "4.0.1",
|
|
89
|
-
"koa-connect": "2.1.0",
|
|
90
|
-
"koa-send": "5.0.0",
|
|
91
|
-
"koa-session": "5.12.0",
|
|
92
|
-
"koa-static": "5.0.0",
|
|
93
|
-
"koa-useragent": "^4.1.0",
|
|
94
|
-
"koa2-ratelimit": "1.1.1",
|
|
95
|
-
"lodash": "4.17.21",
|
|
96
|
-
"memorystream": "0.3.1",
|
|
97
|
-
"mongodb": "4.9",
|
|
98
|
-
"mssql": "6.2.3",
|
|
99
|
-
"mysql2": "2.3.3",
|
|
100
|
-
"node-fetch": "2.6.7",
|
|
101
|
-
"open": "8.4.0",
|
|
102
|
-
"pg": "8.5.1",
|
|
103
|
-
"posthog-node": "1.3.0",
|
|
104
|
-
"pouchdb": "7.3.0",
|
|
105
|
-
"pouchdb-adapter-memory": "7.2.2",
|
|
106
|
-
"pouchdb-all-dbs": "1.0.2",
|
|
107
|
-
"pouchdb-find": "7.2.2",
|
|
108
|
-
"pouchdb-replication-stream": "1.2.9",
|
|
109
|
-
"redis": "4",
|
|
110
|
-
"server-destroy": "1.0.1",
|
|
111
|
-
"snowflake-promise": "^4.5.0",
|
|
112
|
-
"socket.io": "4.6.1",
|
|
113
|
-
"svelte": "3.49.0",
|
|
114
|
-
"swagger-parser": "10.0.3",
|
|
115
|
-
"tar": "6.1.11",
|
|
116
|
-
"to-json-schema": "0.2.5",
|
|
117
|
-
"uuid": "3.3.2",
|
|
118
|
-
"validate.js": "0.13.1",
|
|
119
|
-
"vm2": "3.9.17",
|
|
120
|
-
"worker-farm": "1.7.0",
|
|
121
|
-
"xml2js": "0.5.0",
|
|
122
|
-
"yargs": "13.2.4"
|
|
123
|
-
},
|
|
124
|
-
"devDependencies": {
|
|
125
|
-
"@babel/core": "7.17.4",
|
|
126
|
-
"@babel/preset-env": "7.16.11",
|
|
127
|
-
"@budibase/standard-components": "^0.9.139",
|
|
128
|
-
"@jest/test-sequencer": "29.5.0",
|
|
129
|
-
"@swc/core": "^1.3.25",
|
|
130
|
-
"@swc/jest": "^0.2.24",
|
|
131
|
-
"@trendyol/jest-testcontainers": "^2.1.1",
|
|
132
|
-
"@types/apidoc": "0.50.0",
|
|
133
|
-
"@types/bson": "4.2.0",
|
|
134
|
-
"@types/global-agent": "2.1.1",
|
|
135
|
-
"@types/google-spreadsheet": "3.1.5",
|
|
136
|
-
"@types/ioredis": "4.28.10",
|
|
137
|
-
"@types/jest": "29.5.0",
|
|
138
|
-
"@types/koa": "2.13.4",
|
|
139
|
-
"@types/koa__router": "8.0.8",
|
|
140
|
-
"@types/lodash": "4.14.180",
|
|
141
|
-
"@types/node": "14.18.20",
|
|
142
|
-
"@types/node-fetch": "2.6.1",
|
|
143
|
-
"@types/oracledb": "5.2.2",
|
|
144
|
-
"@types/pouchdb": "6.4.0",
|
|
145
|
-
"@types/redis": "4.0.11",
|
|
146
|
-
"@types/server-destroy": "1.0.1",
|
|
147
|
-
"@types/supertest": "2.0.12",
|
|
148
|
-
"@types/tar": "6.1.3",
|
|
149
|
-
"@typescript-eslint/parser": "5.45.0",
|
|
150
|
-
"apidoc": "0.50.4",
|
|
151
|
-
"babel-jest": "29.5.0",
|
|
152
|
-
"copyfiles": "2.4.1",
|
|
153
|
-
"docker-compose": "0.23.17",
|
|
154
|
-
"eslint": "6.8.0",
|
|
155
|
-
"ioredis-mock": "7.2.0",
|
|
156
|
-
"is-wsl": "2.2.0",
|
|
157
|
-
"jest": "29.5.0",
|
|
158
|
-
"jest-openapi": "0.14.2",
|
|
159
|
-
"jest-runner": "29.5.0",
|
|
160
|
-
"jest-serial-runner": "^1.2.1",
|
|
161
|
-
"nodemon": "2.0.15",
|
|
162
|
-
"openapi-types": "9.3.1",
|
|
163
|
-
"openapi-typescript": "5.2.0",
|
|
164
|
-
"path-to-regexp": "6.2.0",
|
|
165
|
-
"prettier": "2.5.1",
|
|
166
|
-
"rimraf": "3.0.2",
|
|
167
|
-
"supertest": "6.2.2",
|
|
168
|
-
"swagger-jsdoc": "6.1.0",
|
|
169
|
-
"timekeeper": "2.2.0",
|
|
170
|
-
"ts-jest": "29.0.5",
|
|
171
|
-
"ts-node": "10.8.1",
|
|
172
|
-
"tsconfig-paths": "4.0.0",
|
|
173
|
-
"typescript": "4.7.3",
|
|
174
|
-
"update-dotenv": "1.1.1"
|
|
175
|
-
},
|
|
176
|
-
"optionalDependencies": {
|
|
177
|
-
"oracledb": "5.3.0"
|
|
178
|
-
},
|
|
179
|
-
"gitHead": "d1836a898cab3f8ab80ee6d8f42be1a9eed7dcdc"
|
|
180
|
-
}
|