ic-mops 0.26.1 → 0.26.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/dist/mops.js +7 -1
- package/dist/package.json +1 -1
- package/mops.ts +7 -1
- package/package.json +1 -1
package/dist/mops.js
CHANGED
|
@@ -14,7 +14,13 @@ if (!global.fetch) {
|
|
|
14
14
|
}
|
|
15
15
|
// (!) make changes in pair with backend
|
|
16
16
|
export let apiVersion = '1.2';
|
|
17
|
-
let networkFile =
|
|
17
|
+
let networkFile = '';
|
|
18
|
+
try {
|
|
19
|
+
networkFile = new URL('./network.txt', import.meta.url).toString();
|
|
20
|
+
}
|
|
21
|
+
catch {
|
|
22
|
+
networkFile = path.join(__dirname, 'network.txt');
|
|
23
|
+
}
|
|
18
24
|
export let globalConfigDir = '';
|
|
19
25
|
export let globalCacheDir = '';
|
|
20
26
|
// OS specific dirs
|
package/dist/package.json
CHANGED
package/mops.ts
CHANGED
|
@@ -23,7 +23,13 @@ if (!global.fetch) {
|
|
|
23
23
|
// (!) make changes in pair with backend
|
|
24
24
|
export let apiVersion = '1.2';
|
|
25
25
|
|
|
26
|
-
let networkFile =
|
|
26
|
+
let networkFile = '';
|
|
27
|
+
try {
|
|
28
|
+
networkFile = new URL('./network.txt', import.meta.url).toString();
|
|
29
|
+
}
|
|
30
|
+
catch {
|
|
31
|
+
networkFile = path.join(__dirname, 'network.txt');
|
|
32
|
+
}
|
|
27
33
|
|
|
28
34
|
export let globalConfigDir = '';
|
|
29
35
|
export let globalCacheDir = '';
|