@declaro/data 2.0.0-beta.49 → 2.0.0-beta.50

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.
@@ -89975,10 +89975,7 @@ class MockMemoryRepository {
89975
89975
  throw new Error("Primary key is not defined in the schema metadata");
89976
89976
  }
89977
89977
  const item = await this.data.get(input[this.entityMetadata.primaryKey]);
89978
- if (!item) {
89979
- throw new Error("Item not found");
89980
- }
89981
- return item;
89978
+ return item || null;
89982
89979
  }
89983
89980
  async loadMany(inputs) {
89984
89981
  if (!this.entityMetadata?.primaryKey) {
@@ -90074,5 +90071,5 @@ class MockMemoryRepository {
90074
90071
  }
90075
90072
  }
90076
90073
 
90077
- //# debugId=59C89E22506BF4E964756E2164756E21
90074
+ //# debugId=C6AE453EC0D0B8C964756E2164756E21
90078
90075
  //# sourceMappingURL=index.cjs.map