@budibase/shared-core 2.19.5 → 2.20.0

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/dist/index.js CHANGED
@@ -5277,6 +5277,7 @@ var hasFilters = (query) => {
5277
5277
  var utils_exports = {};
5278
5278
  __export(utils_exports, {
5279
5279
  filterValueToLabel: () => filterValueToLabel,
5280
+ hasSchema: () => hasSchema,
5280
5281
  parallelForeach: () => parallelForeach,
5281
5282
  unreachable: () => unreachable
5282
5283
  });
@@ -5321,6 +5322,9 @@ function filterValueToLabel() {
5321
5322
  {}
5322
5323
  );
5323
5324
  }
5325
+ function hasSchema(test) {
5326
+ return typeof test === "object" && !Array.isArray(test) && test !== null && !(test instanceof Date) && Object.keys(test).length > 0;
5327
+ }
5324
5328
 
5325
5329
  // src/sdk/index.ts
5326
5330
  var sdk_exports = {};