@kapeta/local-cluster-service 0.0.68 → 0.0.69

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kapeta/local-cluster-service",
3
- "version": "0.0.68",
3
+ "version": "0.0.69",
4
4
  "description": "Manages configuration, ports and service discovery for locally running Kapeta systems",
5
5
  "main": "index.js",
6
6
  "repository": {
@@ -21,8 +21,8 @@ class ProviderManager {
21
21
  const id = `${handle}/${name}/${version}/web.js${sourceMap ? '.map' : ''}`;
22
22
 
23
23
  if (this._webAssetCache[id] &&
24
- await FSExtra.exists(this._webAssetCache[id])) {
25
- return FSExtra.read(this._webAssetCache[id]);
24
+ await FSExtra.pathExists(this._webAssetCache[id])) {
25
+ return FSExtra.readFile(this._webAssetCache[id]);
26
26
  }
27
27
 
28
28
  await repositoryManager.ensureAsset(handle, name, version);
@@ -35,10 +35,10 @@ class ProviderManager {
35
35
  if (installedProvider) {
36
36
  //Check locally installed providers
37
37
  const path = Path.join(installedProvider.path, 'web', handle, `${name}.js${sourceMap ? '.map' : ''}`);
38
- if (await FSExtra.exists(path)) {
38
+ if (await FSExtra.pathExists(path)) {
39
39
  this._webAssetCache[id] = path;
40
40
 
41
- return FSExtra.read(path);
41
+ return FSExtra.readFile(path);
42
42
  }
43
43
  }
44
44