open-l2encdec 0.0.3 → 0.0.5
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/README.md +8 -47
- package/dist/l2encdec.js +0 -0
- package/package.json +2 -1
- package/dist/l2encdec.wasm +0 -0
package/README.md
CHANGED
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
## Installation
|
|
4
4
|
|
|
5
5
|
```bash
|
|
6
|
-
npm install open-l2encdec
|
|
6
|
+
$ npm install open-l2encdec
|
|
7
7
|
# or
|
|
8
|
-
yarn add open-l2encdec
|
|
8
|
+
$ yarn add open-l2encdec
|
|
9
9
|
# or
|
|
10
|
-
pnpm add open-l2encdec
|
|
10
|
+
$ pnpm add open-l2encdec
|
|
11
11
|
```
|
|
12
12
|
|
|
13
13
|
## Usage
|
|
@@ -93,24 +93,8 @@ Initializes default parameters for the specified protocol.
|
|
|
93
93
|
- `use_legacy_decrypt_rsa`: Use legacy (original) RSA decryption for protocols 411-414
|
|
94
94
|
- `module`: Optional pre-initialized module (for performance)
|
|
95
95
|
|
|
96
|
-
### Types
|
|
97
|
-
|
|
98
|
-
All types are exported from the package:
|
|
99
|
-
|
|
100
|
-
```typescript
|
|
101
|
-
import type {
|
|
102
|
-
L2EncDecModule, // MainModule alias
|
|
103
|
-
Params,
|
|
104
|
-
Type,
|
|
105
|
-
EncodeResult,
|
|
106
|
-
DecodeResult
|
|
107
|
-
} from 'open-l2encdec';
|
|
108
|
-
```
|
|
109
|
-
|
|
110
96
|
## Development
|
|
111
97
|
|
|
112
|
-
### Prerequisites
|
|
113
|
-
|
|
114
98
|
- [CMake](https://cmake.org/) >= 3.14
|
|
115
99
|
- [Emscripten](https://emscripten.org/) >= 4.0.21
|
|
116
100
|
- [Node.js](https://nodejs.org/) >= 18
|
|
@@ -118,39 +102,16 @@ import type {
|
|
|
118
102
|
|
|
119
103
|
### Building
|
|
120
104
|
|
|
121
|
-
1. Install dependencies:
|
|
122
|
-
```bash
|
|
123
|
-
yarn install
|
|
124
|
-
```
|
|
125
|
-
|
|
126
|
-
2. Build the WASM module:
|
|
127
|
-
```bash
|
|
128
|
-
yarn wasm:build
|
|
129
|
-
```
|
|
130
|
-
|
|
131
|
-
3. Build the TypeScript package:
|
|
132
|
-
```bash
|
|
133
|
-
yarn build
|
|
134
|
-
```
|
|
135
|
-
|
|
136
|
-
### Development Server
|
|
137
|
-
|
|
138
|
-
Run the Vite development server:
|
|
139
|
-
|
|
140
105
|
```bash
|
|
141
|
-
yarn
|
|
106
|
+
$ yarn install
|
|
107
|
+
$ yarn wasm:build
|
|
108
|
+
$ yarn build
|
|
142
109
|
```
|
|
143
110
|
|
|
144
|
-
###
|
|
145
|
-
|
|
146
|
-
1. Build the package:
|
|
147
|
-
```bash
|
|
148
|
-
yarn build
|
|
149
|
-
```
|
|
111
|
+
### Development server
|
|
150
112
|
|
|
151
|
-
2. Publish:
|
|
152
113
|
```bash
|
|
153
|
-
|
|
114
|
+
$ yarn dev
|
|
154
115
|
```
|
|
155
116
|
|
|
156
117
|
## License
|
package/dist/l2encdec.js
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "open-l2encdec",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.5",
|
|
4
4
|
"description": "TypeScript/JavaScript bindings for open-l2encdec WASM module",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -49,6 +49,7 @@
|
|
|
49
49
|
"dev": "vite"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
|
+
"@types/node": "^25.0.3",
|
|
52
53
|
"typescript": "^5.3.0",
|
|
53
54
|
"vite": "^7.3.0"
|
|
54
55
|
}
|
package/dist/l2encdec.wasm
DELETED
|
Binary file
|