@budibase/server 3.23.27 → 3.23.28

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@budibase/server",
3
3
  "email": "hi@budibase.com",
4
- "version": "3.23.27",
4
+ "version": "3.23.28",
5
5
  "description": "Budibase Web Server",
6
6
  "main": "src/index.ts",
7
7
  "repository": {
@@ -222,5 +222,5 @@
222
222
  }
223
223
  }
224
224
  },
225
- "gitHead": "78f31912a1a5454f0188e9e1df2022e236fb054e"
225
+ "gitHead": "bf96741b576cc61b4aae9af4ff390dbcf1eb34e4"
226
226
  }
@@ -307,7 +307,7 @@ export class OpenAPI3 extends OpenAPISource {
307
307
  variableName
308
308
  )
309
309
  const defaultValue = hasStaticVariable
310
- ? `{{ Datasource.Static.${variableName} }}`
310
+ ? `{{ ${variableName} }}`
311
311
  : (variable?.default ?? "")
312
312
  ensureParameter(variableName, defaultValue)
313
313
  }
@@ -163,11 +163,11 @@ describe("OpenAPI3 Import", () => {
163
163
  expect.arrayContaining([
164
164
  {
165
165
  name: "subdomain",
166
- default: "{{ Datasource.Static.subdomain }}",
166
+ default: "{{ subdomain }}",
167
167
  },
168
168
  {
169
169
  name: "domain",
170
- default: "{{ Datasource.Static.domain }}",
170
+ default: "{{ domain }}",
171
171
  },
172
172
  ])
173
173
  )
@@ -674,7 +674,7 @@ describe("rest", () => {
674
674
  parameters: [
675
675
  {
676
676
  name: "localDomain",
677
- default: "{{ Datasource.Static.companyDomain }}",
677
+ default: "{{ companyDomain }}",
678
678
  },
679
679
  ],
680
680
  queryVerb: "read",
@@ -714,7 +714,7 @@ describe("rest", () => {
714
714
  parameters: [
715
715
  {
716
716
  name: "companyDomain",
717
- default: "{{ Datasource.Static.companyDomain }}",
717
+ default: "{{ companyDomain }}",
718
718
  },
719
719
  ],
720
720
  queryVerb: "read",
@@ -396,9 +396,8 @@ class QueryRunner {
396
396
  const cleanedBinding = block
397
397
  .slice(braceLength, -braceLength)
398
398
  .replace(/\s+/g, "")
399
- const binding = cleanedBinding.replace(/^Datasource\.Static\./i, "")
400
399
  const target = staticBindingName.replace(/\s+/g, "")
401
- return binding === target
400
+ return cleanedBinding === target
402
401
  }
403
402
  }
404
403