@cenk1cenk2/oclif-common 1.2.0 → 1.2.1

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.d.ts CHANGED
@@ -201,8 +201,6 @@ declare class FileSystemService {
201
201
  removeFileSync(file: string): void;
202
202
  removeDirectory(directory: string): Promise<void>;
203
203
  removeDirectorySync(directory: string): void;
204
- readDir(directory: string): Promise<string[]>;
205
- readDirSync(directory: string): string[];
206
204
  }
207
205
 
208
206
  interface ValidatorServiceOptions {
package/dist/index.js CHANGED
@@ -614,24 +614,6 @@ var FileSystemService = class {
614
614
  throw e;
615
615
  }
616
616
  }
617
- async readDir(directory) {
618
- try {
619
- const results = await import_fs_extra.default.readdir(directory);
620
- return results;
621
- } catch (e) {
622
- this.logger.fatal('Error while reading directory from "%s": %s', directory, e.message);
623
- throw e;
624
- }
625
- }
626
- readDirSync(directory) {
627
- try {
628
- const results = import_fs_extra.default.readdirSync(directory);
629
- return results;
630
- } catch (e) {
631
- this.logger.fatal('Error while reading directory from "%s": %s', directory, e.message);
632
- throw e;
633
- }
634
- }
635
617
  };
636
618
 
637
619
  // src/lib/parser/parser.service.ts
package/dist/index.mjs CHANGED
@@ -617,24 +617,6 @@ var FileSystemService = class {
617
617
  throw e;
618
618
  }
619
619
  }
620
- async readDir(directory) {
621
- try {
622
- const results = await fs.readdir(directory);
623
- return results;
624
- } catch (e) {
625
- this.logger.fatal('Error while reading directory from "%s": %s', directory, e.message);
626
- throw e;
627
- }
628
- }
629
- readDirSync(directory) {
630
- try {
631
- const results = fs.readdirSync(directory);
632
- return results;
633
- } catch (e) {
634
- this.logger.fatal('Error while reading directory from "%s": %s', directory, e.message);
635
- throw e;
636
- }
637
- }
638
620
  };
639
621
 
640
622
  // src/lib/parser/parser.service.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cenk1cenk2/oclif-common",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "description": "Oclif common package for oclif2 projects.",
5
5
  "repository": "https://gitlab.kilic.dev/libraries/oclif-tools",
6
6
  "author": {
@@ -67,13 +67,13 @@
67
67
  "through": "^2.3.8",
68
68
  "winston": "^3.8.1",
69
69
  "yaml": "^2.1.1",
70
- "fs-extra": "^10.1.0"
70
+ "fs-extra": "^10.1.0",
71
+ "@types/config": "^3.3.0",
72
+ "@types/fs-extra": "^9.0.13",
73
+ "@types/through": "^0.0.30"
71
74
  },
72
75
  "devDependencies": {
73
76
  "@oclif/core": "^1.13.10",
74
- "@types/config": "^3.3.0",
75
- "@types/fs-extra": "^9.0.13",
76
- "@types/through": "^0.0.30",
77
77
  "execa": "^6.1.0"
78
78
  }
79
79
  }