@qodalis/cli-files 2.0.0-beta.19 → 2.0.0-beta.20
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 +2 -2
- package/public-api.js +5 -3
- package/public-api.js.map +1 -1
- package/public-api.mjs +5 -3
- package/public-api.mjs.map +1 -1
- package/umd/index.global.js +5 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@qodalis/cli-files",
|
|
3
|
-
"version": "2.0.0-beta.
|
|
3
|
+
"version": "2.0.0-beta.20",
|
|
4
4
|
"description": "@qodalis/cli extension for Linux file management commands with in-memory filesystem.",
|
|
5
5
|
"author": "Nicolae Lupei, Qodalis Solutions",
|
|
6
6
|
"license": "MIT",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"umd": "./umd/index.global.js",
|
|
24
24
|
"unpkg": "./umd/index.global.js",
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@qodalis/cli-core": "2.0.0-beta.
|
|
26
|
+
"@qodalis/cli-core": "2.0.0-beta.20"
|
|
27
27
|
},
|
|
28
28
|
"sideEffects": false,
|
|
29
29
|
"main": "./public-api.js",
|
package/public-api.js
CHANGED
|
@@ -6,7 +6,7 @@ var cliCore = require('@qodalis/cli-core');
|
|
|
6
6
|
var IFileSystemService_TOKEN = cliCore.createCliToken("cli-file-system-service");
|
|
7
7
|
|
|
8
8
|
// src/lib/version.ts
|
|
9
|
-
var LIBRARY_VERSION = "2.0.0-beta.
|
|
9
|
+
var LIBRARY_VERSION = "2.0.0-beta.20";
|
|
10
10
|
var API_VERSION = 2;
|
|
11
11
|
function splitArgs(raw) {
|
|
12
12
|
return cliCore.splitShellWords(raw);
|
|
@@ -5308,8 +5308,10 @@ var IndexedDbFileSystemService = class {
|
|
|
5308
5308
|
const tx = db.transaction(STORE_NAME, "readwrite");
|
|
5309
5309
|
const store = tx.objectStore(STORE_NAME);
|
|
5310
5310
|
store.put(this.root, ROOT_KEY);
|
|
5311
|
-
|
|
5312
|
-
|
|
5311
|
+
if (!this.currentUid) {
|
|
5312
|
+
store.put(this.cwd, CWD_KEY);
|
|
5313
|
+
store.put(this.homePath, HOME_KEY);
|
|
5314
|
+
}
|
|
5313
5315
|
await new Promise((resolve, reject) => {
|
|
5314
5316
|
tx.oncomplete = () => resolve();
|
|
5315
5317
|
tx.onerror = () => reject(tx.error);
|