@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 +1 -1
- package/src/providerManager.js +4 -4
package/package.json
CHANGED
package/src/providerManager.js
CHANGED
@@ -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.
|
25
|
-
return FSExtra.
|
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.
|
38
|
+
if (await FSExtra.pathExists(path)) {
|
39
39
|
this._webAssetCache[id] = path;
|
40
40
|
|
41
|
-
return FSExtra.
|
41
|
+
return FSExtra.readFile(path);
|
42
42
|
}
|
43
43
|
}
|
44
44
|
|