open-l2encdec 0.0.9 → 0.0.11
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/dist/index.browser.d.ts +23 -0
- package/dist/index.browser.d.ts.map +1 -0
- package/dist/index.browser.js +48 -0
- package/dist/index.browser.js.map +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +7 -6
- package/dist/index.js.map +1 -1
- package/dist/index.node.d.ts +23 -0
- package/dist/index.node.d.ts.map +1 -0
- package/dist/index.node.js +48 -0
- package/dist/index.node.js.map +1 -0
- package/package.json +4 -2
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Browser-optimized entry point for l2encdec WASM module
|
|
3
|
+
* This version explicitly loads the browser WASM build
|
|
4
|
+
*/
|
|
5
|
+
import type { MainModule, Params, Type, EncodeResult, DecodeResult } from "./l2encdec.js";
|
|
6
|
+
export type { MainModule as L2EncDecModule, Params, Type, EncodeResult, DecodeResult };
|
|
7
|
+
/**
|
|
8
|
+
* Initialize and return the l2encdec WASM module
|
|
9
|
+
*/
|
|
10
|
+
export declare function initL2EncDec(): Promise<MainModule>;
|
|
11
|
+
/**
|
|
12
|
+
* Encode data
|
|
13
|
+
*/
|
|
14
|
+
export declare function encode(input: Uint8Array | number[], params: Params, module?: MainModule): Promise<Uint8Array>;
|
|
15
|
+
/**
|
|
16
|
+
* Decode data
|
|
17
|
+
*/
|
|
18
|
+
export declare function decode(input: Uint8Array | number[], params: Params, module?: MainModule): Promise<Uint8Array>;
|
|
19
|
+
/**
|
|
20
|
+
* Initialize params
|
|
21
|
+
*/
|
|
22
|
+
export declare function initParams(protocol: number, filename?: string, use_legacy_decrypt_rsa?: boolean, module?: MainModule): Promise<Params>;
|
|
23
|
+
//# sourceMappingURL=index.browser.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.browser.d.ts","sourceRoot":"","sources":["../index.browser.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,KAAK,EACV,UAAU,EACV,MAAM,EACN,IAAI,EACJ,YAAY,EACZ,YAAY,EACb,MAAM,eAAe,CAAC;AAGvB,YAAY,EACV,UAAU,IAAI,cAAc,EAC5B,MAAM,EACN,IAAI,EACJ,YAAY,EACZ,YAAY,EACb,CAAC;AAiBF;;GAEG;AACH,wBAAsB,YAAY,IAAI,OAAO,CAAC,UAAU,CAAC,CAExD;AAED;;GAEG;AACH,wBAAsB,MAAM,CAC1B,KAAK,EAAE,UAAU,GAAG,MAAM,EAAE,EAC5B,MAAM,EAAE,MAAM,EACd,MAAM,CAAC,EAAE,UAAU,GAClB,OAAO,CAAC,UAAU,CAAC,CAIrB;AAED;;GAEG;AACH,wBAAsB,MAAM,CAC1B,KAAK,EAAE,UAAU,GAAG,MAAM,EAAE,EAC5B,MAAM,EAAE,MAAM,EACd,MAAM,CAAC,EAAE,UAAU,GAClB,OAAO,CAAC,UAAU,CAAC,CAIrB;AAED;;GAEG;AACH,wBAAsB,UAAU,CAC9B,QAAQ,EAAE,MAAM,EAChB,QAAQ,CAAC,EAAE,MAAM,EACjB,sBAAsB,CAAC,EAAE,OAAO,EAChC,MAAM,CAAC,EAAE,UAAU,GAClB,OAAO,CAAC,MAAM,CAAC,CAUjB"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Browser-optimized entry point for l2encdec WASM module
|
|
3
|
+
* This version explicitly loads the browser WASM build
|
|
4
|
+
*/
|
|
5
|
+
// ---- internal module cache ----
|
|
6
|
+
let cachedModule;
|
|
7
|
+
// ---- internal loader - always uses browser version ----
|
|
8
|
+
async function loadModule() {
|
|
9
|
+
if (cachedModule)
|
|
10
|
+
return cachedModule;
|
|
11
|
+
// Load the browser-optimized WASM module
|
|
12
|
+
// @ts-ignore - l2encdec.browser.js is generated during build
|
|
13
|
+
const mod = await import("./l2encdec.browser.js");
|
|
14
|
+
cachedModule = (await mod.default());
|
|
15
|
+
return cachedModule;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Initialize and return the l2encdec WASM module
|
|
19
|
+
*/
|
|
20
|
+
export async function initL2EncDec() {
|
|
21
|
+
return loadModule();
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Encode data
|
|
25
|
+
*/
|
|
26
|
+
export async function encode(input, params, module) {
|
|
27
|
+
const m = module ?? await loadModule();
|
|
28
|
+
const result = m.encode(input, params);
|
|
29
|
+
return result instanceof Uint8Array ? result : new Uint8Array(result);
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Decode data
|
|
33
|
+
*/
|
|
34
|
+
export async function decode(input, params, module) {
|
|
35
|
+
const m = module ?? await loadModule();
|
|
36
|
+
const result = m.decode(input, params);
|
|
37
|
+
return result instanceof Uint8Array ? result : new Uint8Array(result);
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Initialize params
|
|
41
|
+
*/
|
|
42
|
+
export async function initParams(protocol, filename, use_legacy_decrypt_rsa, module) {
|
|
43
|
+
const m = module ?? await loadModule();
|
|
44
|
+
const params = new m.Params();
|
|
45
|
+
m.init_params(params, protocol, filename ?? "", use_legacy_decrypt_rsa ?? false);
|
|
46
|
+
return params;
|
|
47
|
+
}
|
|
48
|
+
//# sourceMappingURL=index.browser.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.browser.js","sourceRoot":"","sources":["../index.browser.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAoBH,kCAAkC;AAClC,IAAI,YAAoC,CAAC;AAEzC,0DAA0D;AAC1D,KAAK,UAAU,UAAU;IACvB,IAAI,YAAY;QAAE,OAAO,YAAY,CAAC;IAEtC,yCAAyC;IACzC,6DAA6D;IAC7D,MAAM,GAAG,GAAG,MAAM,MAAM,CAAC,uBAAuB,CAAC,CAAC;IAClD,YAAY,GAAG,CAAC,MAAM,GAAG,CAAC,OAAO,EAAE,CAAe,CAAC;IAEnD,OAAO,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-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,KAAK,EACV,UAAU,EACV,MAAM,EACN,IAAI,EACJ,YAAY,EACZ,YAAY,EACb,MAAM,eAAe,CAAC;AAGvB,YAAY,EACV,UAAU,IAAI,cAAc,EAC5B,MAAM,EACN,IAAI,EACJ,YAAY,EACZ,YAAY,EACb,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,KAAK,EACV,UAAU,EACV,MAAM,EACN,IAAI,EACJ,YAAY,EACZ,YAAY,EACb,MAAM,eAAe,CAAC;AAGvB,YAAY,EACV,UAAU,IAAI,cAAc,EAC5B,MAAM,EACN,IAAI,EACJ,YAAY,EACZ,YAAY,EACb,CAAC;AAsBF;;GAEG;AACH,wBAAsB,YAAY,IAAI,OAAO,CAAC,UAAU,CAAC,CAExD;AAED;;GAEG;AACH,wBAAsB,MAAM,CAC1B,KAAK,EAAE,UAAU,GAAG,MAAM,EAAE,EAC5B,MAAM,EAAE,MAAM,EACd,MAAM,CAAC,EAAE,UAAU,GAClB,OAAO,CAAC,UAAU,CAAC,CAIrB;AAED;;GAEG;AACH,wBAAsB,MAAM,CAC1B,KAAK,EAAE,UAAU,GAAG,MAAM,EAAE,EAC5B,MAAM,EAAE,MAAM,EACd,MAAM,CAAC,EAAE,UAAU,GAClB,OAAO,CAAC,UAAU,CAAC,CAIrB;AAED;;GAEG;AACH,wBAAsB,UAAU,CAC9B,QAAQ,EAAE,MAAM,EAChB,QAAQ,CAAC,EAAE,MAAM,EACjB,sBAAsB,CAAC,EAAE,OAAO,EAChC,MAAM,CAAC,EAAE,UAAU,GAClB,OAAO,CAAC,MAAM,CAAC,CAUjB"}
|
package/dist/index.js
CHANGED
|
@@ -7,15 +7,16 @@ let cachedModule;
|
|
|
7
7
|
async function loadModule() {
|
|
8
8
|
if (cachedModule)
|
|
9
9
|
return cachedModule;
|
|
10
|
-
|
|
11
|
-
if (typeof window !== 'undefined') {
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
let mod;
|
|
11
|
+
if (typeof window !== 'undefined' && typeof navigator !== 'undefined') {
|
|
12
|
+
// @ts-ignore - l2encdec.browser.js is generated during build
|
|
13
|
+
mod = await import("./l2encdec.browser.js");
|
|
14
14
|
}
|
|
15
15
|
else {
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
// @ts-ignore - l2encdec.node.js is generated during build
|
|
17
|
+
mod = await import("./l2encdec.node.js");
|
|
18
18
|
}
|
|
19
|
+
cachedModule = (await mod.default());
|
|
19
20
|
return cachedModule;
|
|
20
21
|
}
|
|
21
22
|
/**
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAoBH,kCAAkC;AAClC,IAAI,YAAoC,CAAC;AAEzC,4BAA4B;AAC5B,KAAK,UAAU,UAAU;IACvB,IAAI,YAAY;QAAE,OAAO,YAAY,CAAC;IAEtC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAoBH,kCAAkC;AAClC,IAAI,YAAoC,CAAC;AAEzC,4BAA4B;AAC5B,KAAK,UAAU,UAAU;IACvB,IAAI,YAAY;QAAE,OAAO,YAAY,CAAC;IAEtC,IAAI,GAAG,CAAC;IACR,IAAI,OAAO,MAAM,KAAK,WAAW,IAAI,OAAO,SAAS,KAAK,WAAW,EAAE,CAAC;QACtE,6DAA6D;QAC7D,GAAG,GAAG,MAAM,MAAM,CAAC,uBAAuB,CAAC,CAAC;IAC9C,CAAC;SAAM,CAAC;QACN,0DAA0D;QAC1D,GAAG,GAAG,MAAM,MAAM,CAAC,oBAAoB,CAAC,CAAC;IAC3C,CAAC;IAED,YAAY,GAAG,CAAC,MAAM,G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-0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Node.js-optimized entry point for l2encdec WASM module
|
|
3
|
+
* This version explicitly loads the Node.js WASM build
|
|
4
|
+
*/
|
|
5
|
+
import type { MainModule, Params, Type, EncodeResult, DecodeResult } from "./l2encdec.js";
|
|
6
|
+
export type { MainModule as L2EncDecModule, Params, Type, EncodeResult, DecodeResult };
|
|
7
|
+
/**
|
|
8
|
+
* Initialize and return the l2encdec WASM module
|
|
9
|
+
*/
|
|
10
|
+
export declare function initL2EncDec(): Promise<MainModule>;
|
|
11
|
+
/**
|
|
12
|
+
* Encode data
|
|
13
|
+
*/
|
|
14
|
+
export declare function encode(input: Uint8Array | number[], params: Params, module?: MainModule): Promise<Uint8Array>;
|
|
15
|
+
/**
|
|
16
|
+
* Decode data
|
|
17
|
+
*/
|
|
18
|
+
export declare function decode(input: Uint8Array | number[], params: Params, module?: MainModule): Promise<Uint8Array>;
|
|
19
|
+
/**
|
|
20
|
+
* Initialize params
|
|
21
|
+
*/
|
|
22
|
+
export declare function initParams(protocol: number, filename?: string, use_legacy_decrypt_rsa?: boolean, module?: MainModule): Promise<Params>;
|
|
23
|
+
//# sourceMappingURL=index.node.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.node.d.ts","sourceRoot":"","sources":["../index.node.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,KAAK,EACV,UAAU,EACV,MAAM,EACN,IAAI,EACJ,YAAY,EACZ,YAAY,EACb,MAAM,eAAe,CAAC;AAGvB,YAAY,EACV,UAAU,IAAI,cAAc,EAC5B,MAAM,EACN,IAAI,EACJ,YAAY,EACZ,YAAY,EACb,CAAC;AAiBF;;GAEG;AACH,wBAAsB,YAAY,IAAI,OAAO,CAAC,UAAU,CAAC,CAExD;AAED;;GAEG;AACH,wBAAsB,MAAM,CAC1B,KAAK,EAAE,UAAU,GAAG,MAAM,EAAE,EAC5B,MAAM,EAAE,MAAM,EACd,MAAM,CAAC,EAAE,UAAU,GAClB,OAAO,CAAC,UAAU,CAAC,CAIrB;AAED;;GAEG;AACH,wBAAsB,MAAM,CAC1B,KAAK,EAAE,UAAU,GAAG,MAAM,EAAE,EAC5B,MAAM,EAAE,MAAM,EACd,MAAM,CAAC,EAAE,UAAU,GAClB,OAAO,CAAC,UAAU,CAAC,CAIrB;AAED;;GAEG;AACH,wBAAsB,UAAU,CAC9B,QAAQ,EAAE,MAAM,EAChB,QAAQ,CAAC,EAAE,MAAM,EACjB,sBAAsB,CAAC,EAAE,OAAO,EAChC,MAAM,CAAC,EAAE,UAAU,GAClB,OAAO,CAAC,MAAM,CAAC,CAUjB"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Node.js-optimized entry point for l2encdec WASM module
|
|
3
|
+
* This version explicitly loads the Node.js WASM build
|
|
4
|
+
*/
|
|
5
|
+
// ---- internal module cache ----
|
|
6
|
+
let cachedModule;
|
|
7
|
+
// ---- internal loader - always uses node version ----
|
|
8
|
+
async function loadModule() {
|
|
9
|
+
if (cachedModule)
|
|
10
|
+
return cachedModule;
|
|
11
|
+
// Load the Node.js-optimized WASM module
|
|
12
|
+
// @ts-ignore - l2encdec.node.js is generated during build
|
|
13
|
+
const mod = await import("./l2encdec.node.js");
|
|
14
|
+
cachedModule = (await mod.default());
|
|
15
|
+
return cachedModule;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Initialize and return the l2encdec WASM module
|
|
19
|
+
*/
|
|
20
|
+
export async function initL2EncDec() {
|
|
21
|
+
return loadModule();
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Encode data
|
|
25
|
+
*/
|
|
26
|
+
export async function encode(input, params, module) {
|
|
27
|
+
const m = module ?? await loadModule();
|
|
28
|
+
const result = m.encode(input, params);
|
|
29
|
+
return result instanceof Uint8Array ? result : new Uint8Array(result);
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Decode data
|
|
33
|
+
*/
|
|
34
|
+
export async function decode(input, params, module) {
|
|
35
|
+
const m = module ?? await loadModule();
|
|
36
|
+
const result = m.decode(input, params);
|
|
37
|
+
return result instanceof Uint8Array ? result : new Uint8Array(result);
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Initialize params
|
|
41
|
+
*/
|
|
42
|
+
export async function initParams(protocol, filename, use_legacy_decrypt_rsa, module) {
|
|
43
|
+
const m = module ?? await loadModule();
|
|
44
|
+
const params = new m.Params();
|
|
45
|
+
m.init_params(params, protocol, filename ?? "", use_legacy_decrypt_rsa ?? false);
|
|
46
|
+
return params;
|
|
47
|
+
}
|
|
48
|
+
//# sourceMappingURL=index.node.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.node.js","sourceRoot":"","sources":["../index.node.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAoBH,kCAAkC;AAClC,IAAI,YAAoC,CAAC;AAEzC,uDAAuD;AACvD,KAAK,UAAU,UAAU;IACvB,IAAI,YAAY;QAAE,OAAO,YAAY,CAAC;IAEtC,yCAAyC;IACzC,0DAA0D;IAC1D,MAAM,GAAG,GAAG,MAAM,MAAM,CAAC,oBAAoB,CAAC,CAAC;IAC/C,YAAY,GAAG,CAAC,MAAM,GAAG,CAAC,OAAO,EAAE,CAAe,CAAC;IAEnD,OAAO,YAAY,CAAC;AACtB,CAAC;AAED;;GAEG;AACH,MAAM,CAAC,KAAK,UAAU,YAAY;IAChC,OAAO,UAAU,EAAE,CAAC;AACtB,CAAC;AAED;;GAEG;AACH,MAAM,CAAC,KAAK,UAAU,MAAM,CAC1B,KAA4B,EAC5B,MAAc,EACd,MAAmB;IAEnB,MAAM,CAAC,GAAG,MAAM,IAAI,MAAM,UAAU,EAAE,CAAC;IACvC,MAAM,MAAM,GAAG,CAAC,CAAC,MAAM,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;IACvC,OAAO,MAAM,YAAY,UAAU,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,UAAU,CAAC,MAAM,CAAC,CAAC;AACxE,CAAC;AAED;;GAEG;AACH,MAAM,CAAC,KAAK,UAAU,MAAM,CAC1B,KAA4B,EAC5B,MAAc,EACd,MAAmB;IAEnB,MAAM,CAAC,GAAG,MAAM,IAAI,MAAM,UAAU,EAAE,CAAC;IACvC,MAAM,MAAM,GAAG,CAAC,CAAC,MAAM,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;IACvC,OAAO,MAAM,YAAY,UAAU,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,UAAU,CAAC,MAAM,CAAC,CAAC;AACxE,CAAC;AAED;;GAEG;AACH,MAAM,CAAC,KAAK,UAAU,UAAU,CAC9B,QAAgB,EAChB,QAAiB,EACjB,sBAAgC,EAChC,MAAmB;IAEnB,MAAM,CAAC,GAAG,MAAM,IAAI,MAAM,UAAU,EAAE,CAAC;IACvC,MAAM,MAAM,GAAG,IAAI,CAAC,CAAC,MAAM,EAAE,CAAC;IAC9B,CAAC,CAAC,WAAW,CACX,MAAM,EACN,QAAQ,EACR,QAAQ,IAAI,EAAE,EACd,sBAAsB,IAAI,KAAK,CAChC,CAAC;IACF,OAAO,MAAM,CAAC;AAChB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "open-l2encdec",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.11",
|
|
4
4
|
"description": "TypeScript/JavaScript bindings for open-l2encdec WASM module",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -9,6 +9,8 @@
|
|
|
9
9
|
"exports": {
|
|
10
10
|
".": {
|
|
11
11
|
"types": "./dist/index.d.ts",
|
|
12
|
+
"browser": "./dist/index.browser.js",
|
|
13
|
+
"node": "./dist/index.node.js",
|
|
12
14
|
"import": "./dist/index.js",
|
|
13
15
|
"default": "./dist/index.js"
|
|
14
16
|
}
|
|
@@ -46,4 +48,4 @@
|
|
|
46
48
|
"typescript": "^5.3.0",
|
|
47
49
|
"vite": "^7.3.0"
|
|
48
50
|
}
|
|
49
|
-
}
|
|
51
|
+
}
|