ddan-js 2.10.2 → 2.10.3

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/bin/index.d.ts CHANGED
@@ -745,3 +745,443 @@ declare const dNode: {
745
745
  readFiles: (dir: string, files: string[], callback?: import("./typings").Ddan.Func1<string, any> | undefined) => Promise<void>;
746
746
  };
747
747
  export { dUtil, dHook, dWeb, dMini, dCdn, dStore, dJoker, dTracker, dLogger, dNode, Event, KValue, Mapping, };
748
+ declare const _default: {
749
+ gbk: {
750
+ gbkLength: (str: string) => number;
751
+ gbkCut: (source: string, len: number) => string;
752
+ };
753
+ time: {
754
+ now: () => import("./modules/time/dtime").default;
755
+ isToday: (date: any) => any;
756
+ parseTimestamp: ({ year, month, date, hour, minute, second }: {
757
+ year?: number | undefined;
758
+ month?: number | undefined;
759
+ date?: number | undefined;
760
+ hour?: number | undefined;
761
+ minute?: number | undefined;
762
+ second?: number | undefined;
763
+ }) => number;
764
+ todayZero: () => number;
765
+ format: (time: string | number | Date, reg?: string) => string;
766
+ countdown: (endTime: string | number | Date, reg?: string) => "" | import("./typings").Ddan.ICountdown;
767
+ dtime: (time: string | number | Date) => import("./modules/time/dtime").default;
768
+ loopFrame: (interval?: number) => import("./modules/time/frame").default;
769
+ getTimezoneOffset: () => number;
770
+ getLocalTime: typeof import("./modules/time/dtime").default.getLocalTime;
771
+ oneDay: number;
772
+ oneHour: number;
773
+ oneMinute: number;
774
+ oneSecond: number;
775
+ };
776
+ hook: {
777
+ sleep: (ms?: number) => Promise<unknown>;
778
+ run: <T = any>(task?: import("./typings").Ddan.PFunction<T> | undefined, wait?: number) => Promise<[any, undefined] | [null, T]>;
779
+ exec: (func: import("./typings").Ddan.Function, taskId?: string) => import("./typings").Ddan.PSafeResult<any>;
780
+ debounce: typeof import("./modules/hook/modules/debounce").default;
781
+ throttle: typeof import("./modules/hook/modules/throttle").default;
782
+ task: (param?: import("./typings").Ddan.Func1<any, any> | undefined) => import("./class/pipeTask").default;
783
+ mutex: typeof import("./modules/hook/modules/mutex").default;
784
+ polling: typeof import("./modules/hook/modules/polling").default;
785
+ pipe: (func: import("./typings").Ddan.Function, callback?: ((result: import("./typings").Ddan.SafeResult<any>) => void) | undefined) => import("./modules/hook/modules/pipeline").default;
786
+ pipeline: (max?: number) => import("./modules/hook/modules/pipeline").default;
787
+ safeTask: (func: import("./typings").Ddan.Function, callback?: ((result: import("./typings").Ddan.SafeResult<any>) => void) | undefined) => import("./modules/hook/modules/safeTask").default;
788
+ bezier1: (p0: import("./typings").Ddan.IPoint, p1: import("./typings").Ddan.IPoint, t: number) => import("./typings").Ddan.IPoint;
789
+ bezier2: (p0: import("./typings").Ddan.IPoint, p1: import("./typings").Ddan.IPoint, p2: import("./typings").Ddan.IPoint, t: number) => import("./typings").Ddan.IPoint;
790
+ bezier3: (p0: import("./typings").Ddan.IPoint, p1: import("./typings").Ddan.IPoint, p2: import("./typings").Ddan.IPoint, p3: import("./typings").Ddan.IPoint, t: number) => import("./typings").Ddan.IPoint;
791
+ bezier: (points: import("./typings").Ddan.IPoint[], t: number) => import("./typings").Ddan.IPoint;
792
+ bezierCurve: (points: import("./typings").Ddan.IPoint[], t: number) => import("./typings").Ddan.IPoint;
793
+ lerp: (start: number, end: number, t: number) => number;
794
+ lerpAverage: (points: import("./typings").Ddan.IPoint[], step: number, type?: "" | "lerp") => number;
795
+ proportion: (start: number, end: number, current: number) => number;
796
+ logString: (data: any) => string;
797
+ logParse: (logStr: string) => string;
798
+ logRString: (data: any) => Promise<string>;
799
+ logRParse: (logStr: string) => Promise<string>;
800
+ to: <T_1 = any, U extends object = any>(promise: Promise<T_1>, errorExt?: object | undefined, fn?: import("./typings").Ddan.noop | undefined) => Promise<[null, T_1] | [U, undefined]>;
801
+ go: <T_2 = any>(task?: import("./typings").Ddan.PFunction<T_2> | undefined, fn?: import("./typings").Ddan.noop | undefined) => Promise<[any, undefined] | [null, T_2]>;
802
+ delay: (ms?: number) => Promise<unknown>;
803
+ safeRun: <T_3 = any>(func: any, fn?: import("./typings").Ddan.noop | undefined) => Promise<[any, undefined] | [null, T_3]>;
804
+ toError: (value: any) => any;
805
+ timeout: <T_4 = any>(task?: import("./typings").Ddan.PFunction<T_4> | undefined, ms?: number, desc?: string) => Promise<[any, undefined] | [null, T_4]>;
806
+ };
807
+ math: {
808
+ random: (max: number) => number;
809
+ randomRange: (min: number, max: number) => number;
810
+ lerp: (start: number, end: number, t: number) => number;
811
+ randoms: (max: number, count?: number, repeat?: boolean) => number[];
812
+ strip: (num: string | number, digits?: number) => number;
813
+ float: (num: string | number, { digits, fixed }?: {
814
+ digits?: number | undefined;
815
+ fixed?: boolean | undefined;
816
+ }) => number;
817
+ radian2degree: (radians: number) => number;
818
+ degree2radian: (degrees: number) => number;
819
+ calcDataSize: (data: number) => {
820
+ gb: number;
821
+ mb: number;
822
+ kb: number;
823
+ b: number;
824
+ total: number;
825
+ desc: string;
826
+ };
827
+ };
828
+ util: {
829
+ includes: typeof import("./util/includes").default;
830
+ forof: (source: any, cb: (key: any, val: any) => void) => void;
831
+ singleton: <T_5>() => {
832
+ new (): {};
833
+ __instance__: any;
834
+ readonly Instance: T_5;
835
+ readonly I: T_5;
836
+ };
837
+ getset: <T_6 = any>(t?: T_6 | undefined) => import("./typings").Ddan.IGetset<T_6>;
838
+ copy: (source: any, options?: {
839
+ fields?: string[] | undefined;
840
+ camel?: boolean | undefined;
841
+ pure?: boolean | undefined;
842
+ } & import("./typings").Ddan.IIgnoreParams) => any;
843
+ clone: (source: any) => any;
844
+ merge: (target: any, source: any, options?: import("./typings").Ddan.IIgnoreParams) => {};
845
+ isEmpty: (source: any) => boolean;
846
+ parseValue: (source: any, { number, boolean }?: {
847
+ number?: boolean | undefined;
848
+ boolean?: boolean | undefined;
849
+ }) => any;
850
+ cloneClass: <T_7>(source: T_7) => T_7;
851
+ combine: (target: any, source: any, options?: import("./typings").Ddan.IIgnoreParams) => any;
852
+ combines: (objs: any[], options?: import("./typings").Ddan.IIgnoreParams) => {};
853
+ observe: (obj: any, key: any, watchFun: any, owner: any, deep?: boolean) => void;
854
+ find: (obj: any, cb: (k: string, v: any) => boolean) => [string, unknown] | undefined;
855
+ getTag: (value: any) => string;
856
+ getType: (value: any) => string;
857
+ toString: () => string;
858
+ hasOwnProperty: (v: PropertyKey) => boolean;
859
+ propertyIsEnumerable: (v: PropertyKey) => boolean;
860
+ is: (val: any, type: string) => boolean;
861
+ isNumber: (value: any) => boolean;
862
+ isString: (value: any) => boolean;
863
+ isObject: (value: any) => boolean;
864
+ isObjectLike: (value: any) => boolean;
865
+ isPlainObject: (value: any) => boolean;
866
+ isSymbol: (value: any) => boolean;
867
+ isFunction: (value: any) => boolean;
868
+ isArray: (arg: any) => arg is any[];
869
+ isArrayLikeObject: (value: any) => boolean;
870
+ isIndex: (value: any, length: number) => boolean;
871
+ isArrayLike: (value: any) => boolean;
872
+ isPrototype: (value: any) => boolean;
873
+ isArguments: (value: any) => boolean;
874
+ isPromise: (value: any) => boolean;
875
+ isBrowser: boolean;
876
+ isNode: boolean;
877
+ isBlobOrBuffer: (data: any) => boolean;
878
+ isUint8Array: (data: any) => boolean;
879
+ isArrayBuffer: (data: any) => boolean;
880
+ };
881
+ list: {
882
+ stepAction: <T_8>(list: T_8[], func: import("./typings").Ddan.Task<T_8, void>, stepCount?: number) => void;
883
+ skip: <T_9>(list: T_9[], count: number) => T_9[];
884
+ take: <T_10>(list: T_10[], count: number, skip?: number) => T_10[];
885
+ distinct: <T_11>(list: T_11[]) => T_11[];
886
+ randoms: <T_12>(list: T_12[], count?: number, repeat?: boolean) => T_12[];
887
+ toKV: (list: import("./typings").Ddan.KV<any>[], key: string, value: string) => import("./typings").Ddan.KV<any>;
888
+ groupBy: <T_13>(list: T_13[], key: string) => Record<string, T_13[]>;
889
+ first: <T_14>(list: T_14[]) => T_14 | undefined;
890
+ last: <T_15>(list: T_15[]) => T_15 | undefined;
891
+ toList: <T_16>(val: T_16 | T_16[]) => T_16[];
892
+ };
893
+ string: {
894
+ toString: (value: any) => any;
895
+ startCase: (string: any) => any;
896
+ snakeCase: (string: any) => any;
897
+ kebabCase: (string: any) => any;
898
+ camelCase: (string: any) => any;
899
+ upperCase: (string: any) => any;
900
+ upperFirst: (string: any) => any;
901
+ lowerCase: (string: any) => any;
902
+ lowerFirst: (string: any) => any;
903
+ splitOnFirst: (string: any, separator: any) => string[];
904
+ parseValue: (value?: any, { number, boolean }?: {
905
+ number?: boolean | undefined;
906
+ boolean?: boolean | undefined;
907
+ }) => any;
908
+ replace: (source: string, rules: import("./typings").Ddan.IRegexRule | import("./typings").Ddan.IRegexRule[]) => string;
909
+ jsonFormat: (jsonString: string) => string;
910
+ toLines: (content: string, separator?: string | RegExp) => string[];
911
+ };
912
+ obj: {
913
+ copy: (source: any, options?: {
914
+ fields?: string[] | undefined;
915
+ camel?: boolean | undefined;
916
+ pure?: boolean | undefined;
917
+ } & import("./typings").Ddan.IIgnoreParams) => any;
918
+ clone: (source: any) => any;
919
+ merge: (target: any, source: any, options?: import("./typings").Ddan.IIgnoreParams) => {};
920
+ isEmpty: (source: any) => boolean;
921
+ parseValue: (source: any, { number, boolean }?: {
922
+ number?: boolean | undefined;
923
+ boolean?: boolean | undefined;
924
+ }) => any;
925
+ cloneClass: <T_7>(source: T_7) => T_7;
926
+ combine: (target: any, source: any, options?: import("./typings").Ddan.IIgnoreParams) => any;
927
+ combines: (objs: any[], options?: import("./typings").Ddan.IIgnoreParams) => {};
928
+ observe: (obj: any, key: any, watchFun: any, owner: any, deep?: boolean) => void;
929
+ find: (obj: any, cb: (k: string, v: any) => boolean) => [string, unknown] | undefined;
930
+ };
931
+ crypto: {
932
+ base64: {
933
+ encode: (input: string) => string;
934
+ decode: (base64Str: string) => string;
935
+ encodeByOss: (input: string) => string;
936
+ };
937
+ tea: {
938
+ TEAKey: string;
939
+ encrypt: (v: Uint32Array, teaKey: Uint32Array) => Uint32Array;
940
+ decrypt: (v: Uint32Array, teaKey: Uint32Array) => Uint32Array;
941
+ toTeaKey: (str: string) => Uint32Array;
942
+ encode: (plaintext: string, key: string) => string;
943
+ decode: (ciphertext: string, key: string) => string;
944
+ encodeBytes: (plainbytes: Uint8Array, key: string) => Uint8Array;
945
+ decodeBytes: (cipherbytes: Uint8Array, key: string) => Uint8Array;
946
+ };
947
+ uuid: (len?: number, radix?: number) => string;
948
+ guid: (len: number, prefix?: boolean, sep?: string) => string;
949
+ getHexString: (len: number) => string;
950
+ keyNumber: string;
951
+ keyLower: string;
952
+ keyUpper: string;
953
+ keyChars: string;
954
+ };
955
+ mini: {
956
+ diff: typeof import("./modules/mini/diff").default;
957
+ promixify: (miniapi: any) => any;
958
+ run: (func: any, args?: {}) => Promise<[any, undefined] | [null, any]>;
959
+ formatList: (lists: any[], start: any, name: any) => any;
960
+ ruleValidator: (_: any, value: any) => boolean;
961
+ Http: typeof import("./modules/mini/http").default;
962
+ setWatcher: (page: any) => void;
963
+ };
964
+ qs: {
965
+ parse: (qs: any, { sep, eq, max, multiple, uri, parseNumber, parseBoolean }?: {
966
+ sep?: string | undefined;
967
+ eq?: string | undefined;
968
+ max?: number | undefined;
969
+ multiple?: boolean | undefined;
970
+ uri?: boolean | undefined;
971
+ parseNumber?: boolean | undefined;
972
+ parseBoolean?: boolean | undefined;
973
+ }) => {};
974
+ stringify: (obj: any, { sep, eq, name, uri, cleanZero, cleanNull, cleanWhitespace }?: {
975
+ sep?: string | undefined;
976
+ eq?: string | undefined;
977
+ name?: null | undefined;
978
+ uri?: boolean | undefined;
979
+ cleanZero?: boolean | undefined;
980
+ cleanNull?: boolean | undefined;
981
+ cleanWhitespace?: boolean | undefined;
982
+ }) => string;
983
+ https: (url: string) => string;
984
+ parseUrl: (url: string) => {
985
+ pathname: string;
986
+ params: {};
987
+ route: string;
988
+ page: string;
989
+ name: string;
990
+ withoutExtension: string;
991
+ extname: string;
992
+ href: string;
993
+ url: string;
994
+ origin: string;
995
+ host: string;
996
+ protocol: string;
997
+ port: string;
998
+ query: string;
999
+ };
1000
+ parsePath: (url: string) => {
1001
+ route: string;
1002
+ page: string;
1003
+ name: string;
1004
+ withoutExtension: string;
1005
+ extname: string;
1006
+ };
1007
+ parseHost: (url: string) => import("./typings").Ddan.IHttpHost;
1008
+ join: (...args: string[]) => string;
1009
+ shExpMatch: (text: string, pattern: string) => boolean;
1010
+ isLocalIpAddress: (addr: string) => boolean;
1011
+ parseFileUrl: (url: string) => {
1012
+ href: string;
1013
+ file: string;
1014
+ url: string;
1015
+ protocol: string;
1016
+ host: string;
1017
+ query: string;
1018
+ params: {};
1019
+ };
1020
+ };
1021
+ css: {
1022
+ stringify: (styleObj: Record<string, string | number>) => string;
1023
+ parse: (styleStr: string, { camel, pure }?: {
1024
+ camel?: boolean | undefined;
1025
+ pure?: boolean | undefined;
1026
+ }) => {} | undefined;
1027
+ fixValue: (value: string | number, unit?: string) => string | number;
1028
+ style: (cssKV: Record<string, any>, unit?: string) => string;
1029
+ commonFields: string[];
1030
+ };
1031
+ cdn: {
1032
+ ossImage: (url: string, options?: {
1033
+ webp?: boolean | undefined;
1034
+ resize?: number | undefined;
1035
+ interlace?: boolean | undefined;
1036
+ domain?: string | string[] | undefined;
1037
+ }) => string;
1038
+ ossSnapshot: (url: string, options?: {
1039
+ t?: number | undefined;
1040
+ w?: number | undefined;
1041
+ h?: number | undefined;
1042
+ m?: "" | "fast" | undefined;
1043
+ f?: "jpg" | "png" | undefined;
1044
+ ar?: "auto" | "h" | "w" | undefined;
1045
+ }) => string;
1046
+ ossBase64: (input: string) => string;
1047
+ };
1048
+ html: {
1049
+ dataURLtoFile: (dataurl: any, filename: any) => File;
1050
+ dataURLtoBlob: (dataurl: any) => Blob;
1051
+ blobToFile: (blob: any, fileName: string) => any;
1052
+ readAsDataURL: (file: any, cb: any) => void;
1053
+ downloadUrl: (url: string, filename?: string, checkSomeOrigin?: boolean) => void;
1054
+ download: (urlOrFile: string | Blob | MediaSource, filename?: string) => void;
1055
+ downloadFile: (data: Blob | MediaSource, filename?: string) => void;
1056
+ downloadImage: (url: string) => Promise<void> | undefined;
1057
+ watermark: (text: string, { width, height, angle, fillStyle, font, textAlign, textBaseline, }?: {
1058
+ width?: number | undefined;
1059
+ height?: number | undefined;
1060
+ angle?: number | undefined;
1061
+ fillStyle?: string | undefined;
1062
+ font?: string | undefined;
1063
+ textAlign?: "center" | "end" | "left" | "right" | "start" | undefined;
1064
+ textBaseline?: "alphabetic" | "bottom" | "hanging" | "ideographic" | "middle" | "top" | undefined;
1065
+ }) => string;
1066
+ copyText: (text: string, legacy?: boolean) => Promise<boolean>;
1067
+ queryPermission: (name: string, def?: PermissionState) => Promise<PermissionState>;
1068
+ isAllowed: (status: PermissionState | undefined, prompt?: boolean) => boolean;
1069
+ legacyCopy: (text: string) => boolean;
1070
+ takeHtmlLinks: (htmlContent: string) => never[];
1071
+ takeHtml: (htmlContent: string, regex: RegExp) => string[];
1072
+ toBlobUrl: (part: BlobPart, mime: "application/javascript") => string;
1073
+ };
1074
+ icon: import("./class/icon").DIcon;
1075
+ rule: {
1076
+ validateId: (content: any) => boolean;
1077
+ validatePhone: (content: any) => boolean;
1078
+ validator: (rules: import("./modules/rule/async-validator").Rules) => import("./modules/rule/async-validator").default;
1079
+ validate: (rules: import("./modules/rule/async-validator").Rules, source_: import("./modules/rule/async-validator").Values, o?: any, oc?: any) => Promise<import("./modules/rule/async-validator").Values>;
1080
+ isChinese: (content: string) => boolean;
1081
+ isNumber: (content: string) => boolean;
1082
+ isFloat: (content: string) => boolean;
1083
+ isPhoneNumber: (content: any) => boolean;
1084
+ };
1085
+ regex: {
1086
+ pattern: {
1087
+ num: string;
1088
+ zh: string;
1089
+ en: string;
1090
+ };
1091
+ regex: (patt: string, modifiers?: "i" | "g" | "m" | undefined) => RegExp;
1092
+ entire: {
1093
+ chinese: RegExp;
1094
+ real: RegExp;
1095
+ cssReal: RegExp;
1096
+ id: RegExp;
1097
+ yyyyMMdd: RegExp;
1098
+ };
1099
+ };
1100
+ convert: {
1101
+ str2ab: (content?: string, base64?: boolean) => ArrayBuffer;
1102
+ ab2str: (data: ArrayBuffer, base64?: boolean) => string;
1103
+ utf8ToBase64: (str: string) => string;
1104
+ base64ToUtf8: (base64Str: string) => string;
1105
+ getRandomBytes: (length: number) => Uint8Array;
1106
+ textEncode: (text: string) => Uint8Array;
1107
+ textDecode: (buf: ArrayBufferLike) => string;
1108
+ toDataUrl: (textOrBuf: string | ArrayBuffer, contentType?: string) => string;
1109
+ md5: (input: string | Uint8Array) => string;
1110
+ md5Base64: (input: string | Uint8Array) => string;
1111
+ toBase64: (input?: string) => string;
1112
+ fromBase64: (input?: string) => string;
1113
+ bytesToBase64: (bytes: Uint8Array) => string;
1114
+ base64ToBytes: (input?: string) => Uint8Array;
1115
+ toUtf8: (content: string) => string;
1116
+ fromUtf8: (utftext: string) => string;
1117
+ toUtf8Bytes: (content: string) => Uint8Array;
1118
+ fromUtf8Bytes: (utf8Bytes: Uint8Array) => string;
1119
+ pkcs7Padding: (plaintext: Uint8Array, blockSize: number) => Uint8Array;
1120
+ pkcs7Unpadding: (ciphertext: Uint8Array) => Uint8Array;
1121
+ bytes2str: (bytes: Uint8Array) => string;
1122
+ str2bytes: (str?: string) => Uint8Array;
1123
+ str2hex: (str: string) => string;
1124
+ hex2str: (hexstr: string) => string;
1125
+ concatBytes: (...args: Uint8Array[]) => Uint8Array;
1126
+ uint32ToBytes: (uint32: Uint32Array) => Uint8Array;
1127
+ bytesToUint32: (bytes: Uint8Array) => Uint32Array;
1128
+ hex2bytes: (hex: string) => Uint8Array;
1129
+ bytes2hex: (bytes: Uint8Array) => string;
1130
+ toUint32: (str: string) => Uint32Array;
1131
+ fromUint32: (uint32: Uint32Array) => string;
1132
+ flatten: <T_17>(data: T_17[], recursive?: boolean, list?: T_17[]) => T_17[];
1133
+ };
1134
+ KValue: typeof KValue;
1135
+ Mapping: typeof Mapping;
1136
+ Event: typeof Event;
1137
+ Http: typeof Http;
1138
+ Store: typeof Store;
1139
+ storeRef: (source: import("./typings").Ddan.IDStore, persistConfig?: import("./typings").Ddan.IDPersistConfig | undefined) => any;
1140
+ Persist: typeof Persist;
1141
+ persistConfig: (key: string, fields: string[], storage: import("./typings").Ddan.IStorage) => import("./typings").Ddan.IDPersistConfig;
1142
+ watermark: (bg: string, size?: {
1143
+ width?: number | undefined;
1144
+ height?: number | undefined;
1145
+ } | undefined) => import("./class/watermark").DWatermark;
1146
+ joker: import("./class/joker").Joker;
1147
+ tracker: import("./class/tracker").DTracker;
1148
+ logger: {
1149
+ override: () => void;
1150
+ log: (...args: any[]) => void;
1151
+ info: (...args: any[]) => void;
1152
+ warn: (...args: any[]) => void;
1153
+ error: (...args: any[]) => void;
1154
+ config: ({ tag, format }?: {
1155
+ tag?: boolean | undefined;
1156
+ format?: string | undefined;
1157
+ }) => void;
1158
+ };
1159
+ fetch: {
1160
+ getDataURL: (url: string, cache?: RequestCache | undefined) => Promise<[any, undefined] | [null, {
1161
+ contentType: string;
1162
+ dataUrl: string;
1163
+ }]>;
1164
+ getArrayBuffer: (url: string, cache?: RequestCache | undefined) => Promise<[any, undefined] | [null, ArrayBuffer]>;
1165
+ getJson: (url: string, cache?: RequestCache | undefined) => Promise<[any, undefined] | [null, any]>;
1166
+ download: (url: string, opts?: {
1167
+ success?: ((buffer: Uint8Array) => void) | undefined;
1168
+ progress?: ((percentage: number, current: number, total: number) => void) | undefined;
1169
+ fail?: ((error: Error) => void) | undefined;
1170
+ }) => Promise<Uint8Array | undefined>;
1171
+ getText: (url: string, cache?: RequestCache | undefined) => Promise<[any, undefined] | [null, string]>;
1172
+ cache: (url: string, cache?: RequestCache) => Promise<[any, undefined] | [null, boolean]>;
1173
+ };
1174
+ rsa: {
1175
+ generateKeys: () => Promise<{
1176
+ publicKey: string;
1177
+ publicKeyPem: string;
1178
+ privateKey: string;
1179
+ privateKeyPem: string;
1180
+ }>;
1181
+ encrypt: (data: string, publicKey: string) => Promise<string>;
1182
+ decrypt: (encryptedBase64: string, privateKey: string) => Promise<string>;
1183
+ encode: (data: string) => Promise<string>;
1184
+ decode: (encryptedBase64: string) => Promise<string>;
1185
+ };
1186
+ };
1187
+ export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ddan-js",
3
- "version": "2.10.2",
3
+ "version": "2.10.3",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "ddan-js",