@budibase/server 2.5.6-alpha.32 → 2.5.6-alpha.34

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
  <link rel="preconnect" href="https://fonts.gstatic.com" />
9
9
  <link href="https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@400;600;700&display=swap"
10
10
  rel="stylesheet" />
11
- <script type="module" crossorigin src="/builder/assets/index.cab99ece.js"></script>
11
+ <script type="module" crossorigin src="/builder/assets/index.362628bd.js"></script>
12
12
  <link rel="stylesheet" href="/builder/assets/index.44a18341.css">
13
13
  </head>
14
14
 
@@ -173,7 +173,7 @@ function fetchAppPackage(ctx) {
173
173
  }
174
174
  const clientLibPath = backend_core_1.objectStore.clientLibraryUrl(ctx.params.appId, application.version);
175
175
  ctx.body = {
176
- application,
176
+ application: Object.assign(Object.assign({}, application), { upgradableVersion: backend_core_1.env.VERSION }),
177
177
  screens,
178
178
  layouts,
179
179
  clientLibPath,
@@ -168,7 +168,7 @@ function save(ctx) {
168
168
  const db = backend_core_1.context.getAppDB();
169
169
  const plus = ctx.request.body.datasource.plus;
170
170
  const fetchSchema = ctx.request.body.fetchSchema;
171
- const datasource = Object.assign({ _id: (0, utils_1.generateDatasourceID)({ plus }), type: plus ? utils_1.DocumentType.DATASOURCE_PLUS : utils_1.DocumentType.DATASOURCE }, ctx.request.body.datasource);
171
+ const datasource = Object.assign(Object.assign({ _id: (0, utils_1.generateDatasourceID)({ plus }) }, ctx.request.body.datasource), { type: plus ? utils_1.DocumentType.DATASOURCE_PLUS : utils_1.DocumentType.DATASOURCE });
172
172
  let schemaError = null;
173
173
  if (fetchSchema) {
174
174
  const { tables, error } = yield buildSchemaHelper(datasource);