@archildata/just-bash 0.1.8 → 0.1.9
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/index.cjs +6 -9
- package/dist/index.js +6 -9
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -459,10 +459,7 @@ var init_ArchilFs = __esm({
|
|
|
459
459
|
}
|
|
460
460
|
async chmod(path, mode) {
|
|
461
461
|
const { inodeId } = await this.resolve(path);
|
|
462
|
-
await this.client.setattr(inodeId, {
|
|
463
|
-
mode,
|
|
464
|
-
user: this.user ?? { uid: 0, gid: 0 }
|
|
465
|
-
});
|
|
462
|
+
await this.client.setattr(inodeId, { mode }, { user: this.user ?? { uid: 0, gid: 0 } });
|
|
466
463
|
}
|
|
467
464
|
async utimes(path, atime, mtime) {
|
|
468
465
|
debug("utimes path=%s atime=%d mtime=%d", path, atime, mtime);
|
|
@@ -471,11 +468,11 @@ var init_ArchilFs = __esm({
|
|
|
471
468
|
const atimeMs = atime === -1 ? -1 : Math.floor(atime * 1e3);
|
|
472
469
|
const mtimeMs = mtime === -1 ? -1 : Math.floor(mtime * 1e3);
|
|
473
470
|
debug("utimes calling setattr inodeId=%d atimeMs=%d mtimeMs=%d", inodeId, atimeMs, mtimeMs);
|
|
474
|
-
await this.client.setattr(
|
|
475
|
-
|
|
476
|
-
mtimeMs,
|
|
477
|
-
user: this.user ?? { uid: 0, gid: 0 }
|
|
478
|
-
|
|
471
|
+
await this.client.setattr(
|
|
472
|
+
inodeId,
|
|
473
|
+
{ atimeMs, mtimeMs },
|
|
474
|
+
{ user: this.user ?? { uid: 0, gid: 0 } }
|
|
475
|
+
);
|
|
479
476
|
debug("utimes setattr succeeded inodeId=%d", inodeId);
|
|
480
477
|
}
|
|
481
478
|
// ========================================================================
|
package/dist/index.js
CHANGED
|
@@ -448,10 +448,7 @@ var init_ArchilFs = __esm({
|
|
|
448
448
|
}
|
|
449
449
|
async chmod(path, mode) {
|
|
450
450
|
const { inodeId } = await this.resolve(path);
|
|
451
|
-
await this.client.setattr(inodeId, {
|
|
452
|
-
mode,
|
|
453
|
-
user: this.user ?? { uid: 0, gid: 0 }
|
|
454
|
-
});
|
|
451
|
+
await this.client.setattr(inodeId, { mode }, { user: this.user ?? { uid: 0, gid: 0 } });
|
|
455
452
|
}
|
|
456
453
|
async utimes(path, atime, mtime) {
|
|
457
454
|
debug("utimes path=%s atime=%d mtime=%d", path, atime, mtime);
|
|
@@ -460,11 +457,11 @@ var init_ArchilFs = __esm({
|
|
|
460
457
|
const atimeMs = atime === -1 ? -1 : Math.floor(atime * 1e3);
|
|
461
458
|
const mtimeMs = mtime === -1 ? -1 : Math.floor(mtime * 1e3);
|
|
462
459
|
debug("utimes calling setattr inodeId=%d atimeMs=%d mtimeMs=%d", inodeId, atimeMs, mtimeMs);
|
|
463
|
-
await this.client.setattr(
|
|
464
|
-
|
|
465
|
-
mtimeMs,
|
|
466
|
-
user: this.user ?? { uid: 0, gid: 0 }
|
|
467
|
-
|
|
460
|
+
await this.client.setattr(
|
|
461
|
+
inodeId,
|
|
462
|
+
{ atimeMs, mtimeMs },
|
|
463
|
+
{ user: this.user ?? { uid: 0, gid: 0 } }
|
|
464
|
+
);
|
|
468
465
|
debug("utimes setattr succeeded inodeId=%d", inodeId);
|
|
469
466
|
}
|
|
470
467
|
// ========================================================================
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@archildata/just-bash",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.9",
|
|
4
4
|
"description": "Archil filesystem adapter for just-bash",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"shell": "tsx bin/shell.ts"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@archildata/client": "^0.1.
|
|
29
|
+
"@archildata/client": "^0.1.10",
|
|
30
30
|
"commander": "^14.0.3",
|
|
31
31
|
"debug": "^4.3.4",
|
|
32
32
|
"just-bash": "^2.7.0"
|