@ddunigma/node 2.0.2 → 2.2.0

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 (51) hide show
  1. package/LICENCE +1 -1
  2. package/README.md +342 -78
  3. package/dist/DduStream-KO75MEEM.js +2 -0
  4. package/dist/chunk-CZMUPXSK.js +5 -0
  5. package/dist/index.cjs +8 -0
  6. package/dist/index.d.cts +813 -0
  7. package/dist/index.d.ts +813 -0
  8. package/dist/index.js +5 -0
  9. package/package.json +34 -15
  10. package/dist/cjs/base/BaseDdu.d.ts +0 -53
  11. package/dist/cjs/base/BaseDdu.js +0 -29
  12. package/dist/cjs/base/index.d.ts +0 -1
  13. package/dist/cjs/base/index.js +0 -5
  14. package/dist/cjs/charSets/index.d.ts +0 -18
  15. package/dist/cjs/charSets/index.js +0 -4385
  16. package/dist/cjs/encoders/Ddu64.d.ts +0 -185
  17. package/dist/cjs/encoders/Ddu64.js +0 -941
  18. package/dist/cjs/encoders/index.d.ts +0 -1
  19. package/dist/cjs/encoders/index.js +0 -5
  20. package/dist/cjs/index.d.ts +0 -4
  21. package/dist/cjs/index.js +0 -9
  22. package/dist/cjs/package.json +0 -3
  23. package/dist/cjs/types/DduDefaultTypes.d.ts +0 -3
  24. package/dist/cjs/types/DduDefaultTypes.js +0 -17
  25. package/dist/cjs/types/DduEnums.d.ts +0 -6
  26. package/dist/cjs/types/DduEnums.js +0 -10
  27. package/dist/cjs/types/DduInterface.d.ts +0 -39
  28. package/dist/cjs/types/DduInterface.js +0 -2
  29. package/dist/cjs/types/index.d.ts +0 -3
  30. package/dist/cjs/types/index.js +0 -19
  31. package/dist/mjs/base/BaseDdu.d.ts +0 -53
  32. package/dist/mjs/base/BaseDdu.js +0 -23
  33. package/dist/mjs/base/index.d.ts +0 -1
  34. package/dist/mjs/base/index.js +0 -1
  35. package/dist/mjs/charSets/index.d.ts +0 -18
  36. package/dist/mjs/charSets/index.js +0 -4380
  37. package/dist/mjs/encoders/Ddu64.d.ts +0 -185
  38. package/dist/mjs/encoders/Ddu64.js +0 -964
  39. package/dist/mjs/encoders/index.d.ts +0 -1
  40. package/dist/mjs/encoders/index.js +0 -1
  41. package/dist/mjs/index.d.ts +0 -4
  42. package/dist/mjs/index.js +0 -3
  43. package/dist/mjs/package.json +0 -3
  44. package/dist/mjs/types/DduDefaultTypes.d.ts +0 -3
  45. package/dist/mjs/types/DduDefaultTypes.js +0 -14
  46. package/dist/mjs/types/DduEnums.d.ts +0 -6
  47. package/dist/mjs/types/DduEnums.js +0 -7
  48. package/dist/mjs/types/DduInterface.d.ts +0 -39
  49. package/dist/mjs/types/DduInterface.js +0 -1
  50. package/dist/mjs/types/index.d.ts +0 -3
  51. package/dist/mjs/types/index.js +0 -3
@@ -1 +0,0 @@
1
- export { Ddu64 } from "./Ddu64";
@@ -1 +0,0 @@
1
- export { Ddu64 } from "./Ddu64.js";
@@ -1,4 +0,0 @@
1
- export type { DduOptions, DduConstructorOptions, } from "./types";
2
- export { DduSetSymbol } from "./types";
3
- export { BaseDdu } from "./base";
4
- export { Ddu64 } from "./encoders";
package/dist/mjs/index.js DELETED
@@ -1,3 +0,0 @@
1
- export { DduSetSymbol } from "./types/index.js";
2
- export { BaseDdu } from "./base/index.js";
3
- export { Ddu64 } from "./encoders/index.js";
@@ -1,3 +0,0 @@
1
- {
2
- "type": "module"
3
- }
@@ -1,3 +0,0 @@
1
- import { DduConstructorOptions } from "./DduInterface";
2
- declare const dduDefaultConstructorOptions: DduConstructorOptions;
3
- export { dduDefaultConstructorOptions };
@@ -1,14 +0,0 @@
1
- import { DduSetSymbol } from "./DduEnums.js";
2
- const dduDefaultConstructorOptions = {
3
- /** 기본 charset: DDU (한글 + 특수문자) */
4
- dduSetSymbol: DduSetSymbol.DDU,
5
- /** 2의 제곱수 강제 */
6
- usePowerOfTwo: true,
7
- /** 필요 문자 수: 8개 */
8
- requiredLength: 8,
9
- /** 비트 길이: 3 (2^3 = 8) */
10
- bitLength: 3,
11
- /** 빌드 에러 시 throw하지 않음 */
12
- useBuildErrorReturn: false,
13
- };
14
- export { dduDefaultConstructorOptions };
@@ -1,6 +0,0 @@
1
- export declare enum DduSetSymbol {
2
- DDU = "ddu",
3
- ONECHARSET = "oneCharSet",
4
- TWOCHARSET = "twoCharSet",
5
- THREECHARSET = "threeCharSet"
6
- }
@@ -1,7 +0,0 @@
1
- export var DduSetSymbol;
2
- (function (DduSetSymbol) {
3
- DduSetSymbol["DDU"] = "ddu";
4
- DduSetSymbol["ONECHARSET"] = "oneCharSet";
5
- DduSetSymbol["TWOCHARSET"] = "twoCharSet";
6
- DduSetSymbol["THREECHARSET"] = "threeCharSet";
7
- })(DduSetSymbol || (DduSetSymbol = {}));
@@ -1,39 +0,0 @@
1
- import { DduSetSymbol } from "./DduEnums";
2
- export interface CharSetConfig {
3
- /** charset 식별 심볼 */
4
- symbol: DduSetSymbol;
5
- /** 인코딩에 사용할 문자 배열 */
6
- charSet: string[];
7
- /** 최대 필요 문자 수 */
8
- maxRequiredLength: number;
9
- /** 비트 길이 (log2) */
10
- bitLength: number;
11
- /** 패딩 문자 */
12
- paddingChar: string;
13
- }
14
- export interface DduOptions {
15
- /** 압축 사용 여부 (zlib deflate) */
16
- compress?: boolean;
17
- /** 최대 디코딩 바이트 수 (Zip Bomb 방어) */
18
- maxDecodedBytes?: number;
19
- /** 최대 압축해제 바이트 수 (Zip Bomb 방어) */
20
- maxDecompressedBytes?: number;
21
- }
22
- export interface DduConstructorOptions extends DduOptions {
23
- /** 미리 정의된 charset 심볼 */
24
- dduSetSymbol?: DduSetSymbol;
25
- /** 커스텀 charset 문자 배열 또는 문자열 */
26
- dduChar?: string[] | string;
27
- /** 패딩 문자 */
28
- paddingChar?: string;
29
- /** 필요 문자 수 */
30
- requiredLength?: number;
31
- /** 비트 길이 */
32
- bitLength?: number;
33
- /** 2의 제곱수 강제 여부 */
34
- usePowerOfTwo?: boolean;
35
- /** 빌드 에러 시 throw 여부 */
36
- useBuildErrorReturn?: boolean;
37
- /** Buffer 인코딩 방식 */
38
- encoding?: BufferEncoding;
39
- }
@@ -1 +0,0 @@
1
- export {};
@@ -1,3 +0,0 @@
1
- export * from "./DduEnums";
2
- export * from "./DduInterface";
3
- export * from "./DduDefaultTypes";
@@ -1,3 +0,0 @@
1
- export * from "./DduEnums.js";
2
- export * from "./DduInterface.js";
3
- export * from "./DduDefaultTypes.js";