@relicx_/kernel 1.1.49 → 1.1.50
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/index.d.ts +3 -5
- package/index.js +1 -1
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -267,16 +267,14 @@ declare class Database extends Module {
|
|
|
267
267
|
}
|
|
268
268
|
declare function CreateDatabase(): boolean;
|
|
269
269
|
|
|
270
|
-
declare function Encrypt(buffer: Buffer, key: string, algorithm: string, randiv?: boolean): Buffer;
|
|
271
|
-
declare function Decrypt(buffer: Buffer, key: string, algorithm: string): Buffer;
|
|
270
|
+
declare function Encrypt(buffer: Buffer, key: string, algorithm: string, randiv?: boolean, ivlen?: number): Buffer;
|
|
271
|
+
declare function Decrypt(buffer: Buffer, key: string, algorithm: string, ivlen?: number): Buffer;
|
|
272
272
|
declare function HMACSHA256(sData: string, sKey: string): string;
|
|
273
273
|
declare function HMACSHA1(sData: string): string;
|
|
274
274
|
declare function HMACSHA1Base64(sData: string): string;
|
|
275
275
|
declare function Base64Encode(sData: string): string;
|
|
276
276
|
declare function SHA256(sData: string): string;
|
|
277
277
|
declare function MD5(sData: Buffer | string): string;
|
|
278
|
-
declare function MakeGameKey(uKey: number): string;
|
|
279
|
-
declare function MakeToken(sInputString: string, sKey: string): string;
|
|
280
278
|
|
|
281
279
|
interface ITimerEvent {
|
|
282
280
|
OnTimer(timerid: number, data: any): boolean;
|
|
@@ -930,4 +928,4 @@ declare class Validate {
|
|
|
930
928
|
static IsExpired(uSeconds: number): boolean;
|
|
931
929
|
}
|
|
932
930
|
|
|
933
|
-
export { AppsflyerAds, type AppsflyerAdsEvent, Base64Encode, BigMap, ConnId, ConnStatus, CreateAdWorker, CreateDatabase, CreateFileCache, CreateHTTPWorker, CreateNetworker, CreateResourceLoader, CreateScriptLoader, CreateTimer, DBConnection, Database, Decrypt, type DeserializeFunc, Deserialize_KernelHeartbeat, Encrypt, EncryptFile, FacebookAds, type FacebookAdsEvent, GAdWorker, GConfig, GDatabase, GFileCache, GGameApplication, GHttpWorker, GListHeadIterManager, GNetWorker, GPercentBase, GRandRatioBase, GResourceLoader, GScriptLoader, GTimer, GameApplication, GeoIP, type GetMessageSizeFunc, GetMessageSize_KernelHeartbeat, GoogleAds, type GoogleAdsEvent, HMACSHA1, HMACSHA1Base64, HMACSHA256, HTTPRequest, HitRate, type IPCache, type IRedisInterface, type ISQLInterface, type ITimerEvent, InitList, IsLocal, type JsonBody, type KernelHeartbeat, KernelMessageId, KwaiAds, List, ListAdd, ListAddHead, ListAddTail, ListDel, ListHead, ListInit, ListRemoveHead, ListRemoveTail, LoadGlobalConfig, Logger, MD5,
|
|
931
|
+
export { AppsflyerAds, type AppsflyerAdsEvent, Base64Encode, BigMap, ConnId, ConnStatus, CreateAdWorker, CreateDatabase, CreateFileCache, CreateHTTPWorker, CreateNetworker, CreateResourceLoader, CreateScriptLoader, CreateTimer, DBConnection, Database, Decrypt, type DeserializeFunc, Deserialize_KernelHeartbeat, Encrypt, EncryptFile, FacebookAds, type FacebookAdsEvent, GAdWorker, GConfig, GDatabase, GFileCache, GGameApplication, GHttpWorker, GListHeadIterManager, GNetWorker, GPercentBase, GRandRatioBase, GResourceLoader, GScriptLoader, GTimer, GameApplication, GeoIP, type GetMessageSizeFunc, GetMessageSize_KernelHeartbeat, GoogleAds, type GoogleAdsEvent, HMACSHA1, HMACSHA1Base64, HMACSHA256, HTTPRequest, HitRate, type IPCache, type IRedisInterface, type ISQLInterface, type ITimerEvent, InitList, IsLocal, type JsonBody, type KernelHeartbeat, KernelMessageId, KwaiAds, List, ListAdd, ListAddHead, ListAddTail, ListDel, ListHead, ListInit, ListRemoveHead, ListRemoveTail, LoadGlobalConfig, Logger, MD5, MakeSocketId, type MessageDealerFunc, Module, type NetConfigure, NetConnection, Random, RedisConnection, ResTypes, RoundId, SHA256, SQLConnection, type SerializeFunc, Serialize_KernelHeartbeat, Thread, Timer, Utils, Validate, WSCloseReason };
|