ayiin 2.0.54 → 2.0.55

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.
@@ -2,7 +2,6 @@ import Async from "./async";
2
2
  import Crypt from "./crypt";
3
3
  import Currency from "./currency";
4
4
  import Dates from "./dates";
5
- import Files from "./files";
6
5
  import Limiter from "./limiter";
7
6
  import Objects from "./objects";
8
7
  import Random from "./random";
@@ -12,6 +11,6 @@ import Token from "./token";
12
11
  import Validation from "./validation";
13
12
  declare class Methods {
14
13
  }
15
- interface Methods extends Async, Crypt, Currency, Dates, Files, Limiter, Objects, Random, ResponseApi, Strings, Token, Validation {
14
+ interface Methods extends Async, Crypt, Currency, Dates, Limiter, Objects, Random, ResponseApi, Strings, Token, Validation {
16
15
  }
17
16
  export default Methods;
@@ -7,7 +7,6 @@ const async_1 = __importDefault(require("./async"));
7
7
  const crypt_1 = __importDefault(require("./crypt"));
8
8
  const currency_1 = __importDefault(require("./currency"));
9
9
  const dates_1 = __importDefault(require("./dates"));
10
- const files_1 = __importDefault(require("./files"));
11
10
  const limiter_1 = __importDefault(require("./limiter"));
12
11
  const objects_1 = __importDefault(require("./objects"));
13
12
  const random_1 = __importDefault(require("./random"));
@@ -22,7 +21,6 @@ Object.assign(Methods.prototype, new async_1.default());
22
21
  Object.assign(Methods.prototype, new crypt_1.default());
23
22
  Object.assign(Methods.prototype, new currency_1.default());
24
23
  Object.assign(Methods.prototype, new dates_1.default());
25
- Object.assign(Methods.prototype, new files_1.default());
26
24
  Object.assign(Methods.prototype, new limiter_1.default());
27
25
  Object.assign(Methods.prototype, new objects_1.default());
28
26
  Object.assign(Methods.prototype, new random_1.default());
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ayiin",
3
- "version": "2.0.54",
3
+ "version": "2.0.55",
4
4
  "author": {
5
5
  "name": "AyiinXd",
6
6
  "url": "https://github.com/AyiinXd"
@@ -1,15 +0,0 @@
1
- declare class Files {
2
- /**
3
- * Pastikan direktori ada
4
- * @param {string} path - path direktori
5
- * @returns {Promise<void>}
6
- */
7
- ensureDir: (path: string) => Promise<void>;
8
- /**
9
- * Baca file JSON
10
- * @param {string} path - path file
11
- * @returns {Promise<T>} data JSON
12
- */
13
- readJSON: <T>(path: string) => Promise<T>;
14
- }
15
- export default Files;
@@ -1,26 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const promises_1 = __importDefault(require("fs/promises"));
7
- class Files {
8
- /**
9
- * Pastikan direktori ada
10
- * @param {string} path - path direktori
11
- * @returns {Promise<void>}
12
- */
13
- ensureDir = async (path) => {
14
- await promises_1.default.mkdir(path, { recursive: true });
15
- };
16
- /**
17
- * Baca file JSON
18
- * @param {string} path - path file
19
- * @returns {Promise<T>} data JSON
20
- */
21
- readJSON = async (path) => {
22
- const data = await promises_1.default.readFile(path, "utf-8");
23
- return JSON.parse(data);
24
- };
25
- }
26
- exports.default = Files;