@uipath/filesystem 0.2.0 → 0.9.0

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.js CHANGED
@@ -654,6 +654,13 @@ class NodeFileSystem {
654
654
  }
655
655
  await fs6.writeFile(filePath, data);
656
656
  }
657
+ async appendFile(filePath, data) {
658
+ const dir = path2.dirname(filePath);
659
+ if (dir) {
660
+ await fs6.mkdir(dir, { recursive: true });
661
+ }
662
+ await fs6.appendFile(filePath, data);
663
+ }
657
664
  async readdir(dirPath) {
658
665
  try {
659
666
  return await fs6.readdir(dirPath);
@@ -27,6 +27,7 @@ export interface IFileSystem {
27
27
  encoding: "utf-8";
28
28
  } | "utf-8"): Promise<string | null>;
29
29
  writeFile(path: string, data: string | Uint8Array): Promise<void>;
30
+ appendFile(path: string, data: string | Uint8Array): Promise<void>;
30
31
  readdir(path: string): Promise<string[]>;
31
32
  stat(path: string): Promise<FileSystemStats | null>;
32
33
  exists(path: string): Promise<boolean>;
package/dist/node.d.ts CHANGED
@@ -8,6 +8,7 @@ export declare class NodeFileSystem implements IFileSystem {
8
8
  encoding: "utf-8";
9
9
  } | "utf-8"): Promise<string | null>;
10
10
  writeFile(filePath: string, data: string | Uint8Array): Promise<void>;
11
+ appendFile(filePath: string, data: string | Uint8Array): Promise<void>;
11
12
  readdir(dirPath: string): Promise<string[]>;
12
13
  stat(filePath: string): Promise<FileSystemStats | null>;
13
14
  exists(filePath: string): Promise<boolean>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uipath/filesystem",
3
- "version": "0.2.0",
3
+ "version": "0.9.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/UiPath/cli.git",
@@ -44,10 +44,11 @@
44
44
  "test:coverage": "vitest run --coverage"
45
45
  },
46
46
  "devDependencies": {
47
+ "@isomorphic-git/lightning-fs": "^4.6.2",
47
48
  "@types/node": "^25.5.0",
48
- "@zenfs/core": "^2.5.0",
49
- "@zenfs/dom": "^1.2.7",
49
+ "fake-indexeddb": "^6.2.4",
50
50
  "open": "^11.0.0",
51
51
  "typescript": "^5"
52
- }
52
+ },
53
+ "gitHead": "3f1b4d8e9f910be81e4cab956537f21dbd5d63ac"
53
54
  }