@514labs/moose-lib 0.6.268-ci-1-g95d8af35 → 0.6.268-ci-1-g6460eddc

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.mjs CHANGED
@@ -699,11 +699,7 @@ var getMooseInternal = () => globalThis.moose_internal;
699
699
  if (getMooseInternal() === void 0) {
700
700
  globalThis.moose_internal = moose_internal;
701
701
  }
702
- var isRegistryEmpty = () => {
703
- const registry = getMooseInternal();
704
- return registry.tables.size === 0 && registry.streams.size === 0 && registry.ingestApis.size === 0 && registry.apis.size === 0 && registry.sqlResources.size === 0 && registry.workflows.size === 0 && registry.webApps.size === 0;
705
- };
706
- var reloadIndex = () => {
702
+ var loadIndex = () => {
707
703
  const registry = getMooseInternal();
708
704
  registry.tables.clear();
709
705
  registry.streams.clear();
@@ -731,11 +727,6 @@ var reloadIndex = () => {
731
727
  throw new Error(errorMsg, { cause });
732
728
  }
733
729
  };
734
- var ensureIndexLoaded = () => {
735
- if (isRegistryEmpty()) {
736
- reloadIndex();
737
- }
738
- };
739
730
  var dlqSchema = {
740
731
  version: "3.1",
741
732
  components: {
@@ -856,7 +847,7 @@ var dlqColumns = [
856
847
  }
857
848
  ];
858
849
  var getWorkflows = async () => {
859
- ensureIndexLoaded();
850
+ loadIndex();
860
851
  const registry = getMooseInternal();
861
852
  return registry.workflows;
862
853
  };