@budibase/server 2.3.18-alpha.24 → 2.3.18-alpha.26
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.c4cf26db.js → index.787115c9.js} +287 -287
- package/builder/index.html +1 -1
- package/dist/package.json +6 -6
- package/dist/sdk/app/backups/constants.js +2 -1
- package/dist/sdk/app/backups/exports.js +12 -5
- package/dist/sdk/app/rows/attachments.js +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +7 -7
- package/src/sdk/app/backups/constants.ts +1 -0
- package/src/sdk/app/backups/exports.ts +24 -8
- package/src/sdk/app/rows/attachments.ts +1 -1
package/builder/index.html
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
href="https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@400;600;700&display=swap"
|
|
11
11
|
rel="stylesheet"
|
|
12
12
|
/>
|
|
13
|
-
<script type="module" crossorigin src="/builder/assets/index.
|
|
13
|
+
<script type="module" crossorigin src="/builder/assets/index.787115c9.js"></script>
|
|
14
14
|
<link rel="stylesheet" href="/builder/assets/index.b24b9dea.css">
|
|
15
15
|
</head>
|
|
16
16
|
<body id="app">
|
package/dist/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@budibase/server",
|
|
3
3
|
"email": "hi@budibase.com",
|
|
4
|
-
"version": "2.3.18-alpha.
|
|
4
|
+
"version": "2.3.18-alpha.25",
|
|
5
5
|
"description": "Budibase Web Server",
|
|
6
6
|
"main": "src/index.ts",
|
|
7
7
|
"repository": {
|
|
@@ -43,11 +43,11 @@
|
|
|
43
43
|
"license": "GPL-3.0",
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"@apidevtools/swagger-parser": "10.0.3",
|
|
46
|
-
"@budibase/backend-core": "2.3.18-alpha.
|
|
47
|
-
"@budibase/client": "2.3.18-alpha.
|
|
48
|
-
"@budibase/pro": "2.3.18-alpha.
|
|
49
|
-
"@budibase/string-templates": "2.3.18-alpha.
|
|
50
|
-
"@budibase/types": "2.3.18-alpha.
|
|
46
|
+
"@budibase/backend-core": "2.3.18-alpha.25",
|
|
47
|
+
"@budibase/client": "2.3.18-alpha.25",
|
|
48
|
+
"@budibase/pro": "2.3.18-alpha.25",
|
|
49
|
+
"@budibase/string-templates": "2.3.18-alpha.25",
|
|
50
|
+
"@budibase/types": "2.3.18-alpha.25",
|
|
51
51
|
"@bull-board/api": "3.7.0",
|
|
52
52
|
"@bull-board/koa": "3.9.4",
|
|
53
53
|
"@elastic/elasticsearch": "7.10.0",
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GLOBAL_DB_EXPORT_FILE = exports.DB_EXPORT_FILE = void 0;
|
|
3
|
+
exports.STATIC_APP_FILES = exports.GLOBAL_DB_EXPORT_FILE = exports.DB_EXPORT_FILE = void 0;
|
|
4
4
|
exports.DB_EXPORT_FILE = "db.txt";
|
|
5
5
|
exports.GLOBAL_DB_EXPORT_FILE = "global.txt";
|
|
6
|
+
exports.STATIC_APP_FILES = ["manifest.json", "budibase-client.js"];
|
|
@@ -92,12 +92,19 @@ function exportApp(appId, config) {
|
|
|
92
92
|
const prodAppId = backend_core_1.db.getProdAppID(appId);
|
|
93
93
|
const appPath = `${prodAppId}/`;
|
|
94
94
|
// export bucket contents
|
|
95
|
-
let tmpPath;
|
|
95
|
+
let tmpPath = (0, fileSystem_1.createTempFolder)(uuid());
|
|
96
96
|
if (!environment_1.default.isTest()) {
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
97
|
+
// write just the static files
|
|
98
|
+
if (config === null || config === void 0 ? void 0 : config.excludeRows) {
|
|
99
|
+
for (let path of constants_2.STATIC_APP_FILES) {
|
|
100
|
+
const contents = yield backend_core_1.objectStore.retrieve(constants_1.ObjectStoreBuckets.APPS, (0, path_1.join)(appPath, path));
|
|
101
|
+
fs_1.default.writeFileSync((0, path_1.join)(tmpPath, path), contents);
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
// get all of the files
|
|
105
|
+
else {
|
|
106
|
+
tmpPath = yield backend_core_1.objectStore.retrieveDirectory(constants_1.ObjectStoreBuckets.APPS, appPath);
|
|
107
|
+
}
|
|
101
108
|
}
|
|
102
109
|
const downloadedPath = (0, path_1.join)(tmpPath, appPath);
|
|
103
110
|
if (fs_1.default.existsSync(downloadedPath)) {
|
|
@@ -18,13 +18,13 @@ exports.FIND_LIMIT = 25;
|
|
|
18
18
|
function generateAttachmentFindParams(tableId, attachmentCols, bookmark) {
|
|
19
19
|
const params = {
|
|
20
20
|
selector: {
|
|
21
|
+
$or: attachmentCols.map(col => ({ [col]: { $exists: true } })),
|
|
21
22
|
_id: {
|
|
22
23
|
$regex: `^${utils_1.DocumentType.ROW}${utils_1.SEPARATOR}${tableId}`,
|
|
23
24
|
},
|
|
24
25
|
},
|
|
25
26
|
limit: exports.FIND_LIMIT,
|
|
26
27
|
};
|
|
27
|
-
attachmentCols.forEach(col => (params.selector[col] = { $exists: true }));
|
|
28
28
|
if (bookmark) {
|
|
29
29
|
params.bookmark = bookmark;
|
|
30
30
|
}
|