@relicx_/kernel 1.1.22 → 1.1.24

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.
Files changed (3) hide show
  1. package/index.d.ts +3 -3
  2. package/index.js +1 -1
  3. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -265,8 +265,8 @@ declare class Database extends Module {
265
265
  }
266
266
  declare function CreateDatabase(): boolean;
267
267
 
268
- declare function Encrypt(buffer: any, key: any, algorithm: any): Buffer;
269
- declare function Decrypt(buffer: any, key: any, algorithm: any): Buffer;
268
+ declare function Encrypt(buffer: Buffer, key: string, algorithm: string): Buffer;
269
+ declare function Decrypt(buffer: Buffer, key: string, algorithm: string): Buffer;
270
270
  declare function HMACSHA256(sData: string, sKey: string): string;
271
271
  declare function HMACSHA1(sData: string): string;
272
272
  declare function HMACSHA1Base64(sData: string): string;
@@ -316,7 +316,7 @@ declare class EncryptFile {
316
316
  static BufferToJson(buffer: Buffer, key: string): any;
317
317
  static BufferToText(buffer: Buffer, key: string): string;
318
318
  static ReadDirectory(path: string): Array<string>;
319
- static EnumDirectoryFiles(sDirectory: string, filter: Array<string>, pfCallback: Function): void;
319
+ static EnumDirectoryFiles(sDirectory: string, filter: Array<string>, pfCallback: Function, pfCallbackDirectory?: Function): void;
320
320
  }
321
321
 
322
322
  interface FileCacheInfo {