@kapeta/local-cluster-service 0.28.0 → 0.28.1

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/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## [0.28.1](https://github.com/kapetacom/local-cluster-service/compare/v0.28.0...v0.28.1) (2023-12-12)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * return all imported asset types from import endpoint [KAP-2187] ([#103](https://github.com/kapetacom/local-cluster-service/issues/103)) ([02ac22c](https://github.com/kapetacom/local-cluster-service/commit/02ac22c4a54db05b0e80943daba0b5496e5bb319))
7
+
1
8
  # [0.28.0](https://github.com/kapetacom/local-cluster-service/compare/v0.27.0...v0.28.0) (2023-11-15)
2
9
 
3
10
 
@@ -183,7 +183,8 @@ class AssetManager {
183
183
  cacheManager_1.cacheManager.remove(key);
184
184
  });
185
185
  definitionsManager_1.definitionsManager.clearCache();
186
- const assets = await this.getAssets();
186
+ // Get all possible asset kinds, to make sure we return the result if possible
187
+ const assets = await this.getAssets([]);
187
188
  return assets.filter((a) => refs.some((ref) => compareRefs(ref, a.ref)));
188
189
  }
189
190
  async unregisterAsset(ref) {
@@ -183,7 +183,8 @@ class AssetManager {
183
183
  cacheManager_1.cacheManager.remove(key);
184
184
  });
185
185
  definitionsManager_1.definitionsManager.clearCache();
186
- const assets = await this.getAssets();
186
+ // Get all possible asset kinds, to make sure we return the result if possible
187
+ const assets = await this.getAssets([]);
187
188
  return assets.filter((a) => refs.some((ref) => compareRefs(ref, a.ref)));
188
189
  }
189
190
  async unregisterAsset(ref) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kapeta/local-cluster-service",
3
- "version": "0.28.0",
3
+ "version": "0.28.1",
4
4
  "description": "Manages configuration, ports and service discovery for locally running Kapeta systems",
5
5
  "type": "commonjs",
6
6
  "exports": {
@@ -244,7 +244,8 @@ class AssetManager {
244
244
 
245
245
  definitionsManager.clearCache();
246
246
 
247
- const assets = await this.getAssets();
247
+ // Get all possible asset kinds, to make sure we return the result if possible
248
+ const assets = await this.getAssets([]);
248
249
 
249
250
  return assets.filter((a) => refs.some((ref) => compareRefs(ref, a.ref)));
250
251
  }