@kapeta/local-cluster-service 0.24.1 → 0.24.2

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.24.2](https://github.com/kapetacom/local-cluster-service/compare/v0.24.1...v0.24.2) (2023-10-27)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * Do not ensure when unregistering ([#91](https://github.com/kapetacom/local-cluster-service/issues/91)) ([3957d51](https://github.com/kapetacom/local-cluster-service/commit/3957d513ce3fd9064a36cea438967ae5a0a50720))
7
+
1
8
  ## [0.24.1](https://github.com/kapetacom/local-cluster-service/compare/v0.24.0...v0.24.1) (2023-10-27)
2
9
 
3
10
 
@@ -166,7 +166,7 @@ class AssetManager {
166
166
  return assets.filter((a) => refs.some((ref) => compareRefs(ref, a.ref)));
167
167
  }
168
168
  async unregisterAsset(ref) {
169
- const asset = await this.getAsset(ref, true);
169
+ const asset = await this.getAsset(ref, true, false);
170
170
  if (!asset) {
171
171
  throw new Error('Asset does not exists: ' + ref);
172
172
  }
@@ -166,7 +166,7 @@ class AssetManager {
166
166
  return assets.filter((a) => refs.some((ref) => compareRefs(ref, a.ref)));
167
167
  }
168
168
  async unregisterAsset(ref) {
169
- const asset = await this.getAsset(ref, true);
169
+ const asset = await this.getAsset(ref, true, false);
170
170
  if (!asset) {
171
171
  throw new Error('Asset does not exists: ' + ref);
172
172
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kapeta/local-cluster-service",
3
- "version": "0.24.1",
3
+ "version": "0.24.2",
4
4
  "description": "Manages configuration, ports and service discovery for locally running Kapeta systems",
5
5
  "type": "commonjs",
6
6
  "exports": {
@@ -227,7 +227,7 @@ class AssetManager {
227
227
  }
228
228
 
229
229
  async unregisterAsset(ref: string) {
230
- const asset = await this.getAsset(ref, true);
230
+ const asset = await this.getAsset(ref, true, false);
231
231
  if (!asset) {
232
232
  throw new Error('Asset does not exists: ' + ref);
233
233
  }