open-l2encdec 0.0.2 → 0.0.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/README.md CHANGED
@@ -1,6 +1,4 @@
1
- # open-l2encdec TypeScript/JavaScript Bindings
2
-
3
- TypeScript and JavaScript bindings for the open-l2encdec WASM module. This package provides a type-safe wrapper around the WebAssembly implementation of the Lineage 2 encryption/decryption library.
1
+ # open-l2encdec typescript bindings
4
2
 
5
3
  ## Installation
6
4
 
@@ -92,7 +90,7 @@ Initializes default parameters for the specified protocol.
92
90
 
93
91
  - `protocol`: Protocol number (last three digits of file header)
94
92
  - `filename`: Filename used for protocol 121 (XOR_FILENAME)
95
- - `use_legacy_decrypt_rsa`: Use legacy RSA decryption for protocols 411-414
93
+ - `use_legacy_decrypt_rsa`: Use legacy (original) RSA decryption for protocols 411-414
96
94
  - `module`: Optional pre-initialized module (for performance)
97
95
 
98
96
  ### Types
@@ -109,8 +107,6 @@ import type {
109
107
  } from 'open-l2encdec';
110
108
  ```
111
109
 
112
- The generated `interface.d.ts` from Emscripten is also available at `open-l2encdec/wasm` for direct WASM module type access.
113
-
114
110
  ## Development
115
111
 
116
112
  ### Prerequisites
@@ -125,33 +121,24 @@ The generated `interface.d.ts` from Emscripten is also available at `open-l2encd
125
121
  1. Install dependencies:
126
122
  ```bash
127
123
  yarn install
128
- # or npm install
129
124
  ```
130
125
 
131
126
  2. Build the WASM module:
132
127
  ```bash
133
128
  yarn wasm:build
134
- # or npm run wasm:build
135
129
  ```
136
130
 
137
131
  3. Build the TypeScript package:
138
132
  ```bash
139
133
  yarn build
140
- # or npm run build
141
134
  ```
142
135
 
143
- This will:
144
- - Compile TypeScript to JavaScript
145
- - Copy WASM artifacts (`l2encdec.js`, `l2encdec.wasm`, `interface.d.ts`) to `dist/`
146
- - Generate type declarations
147
-
148
136
  ### Development Server
149
137
 
150
138
  Run the Vite development server:
151
139
 
152
140
  ```bash
153
141
  yarn dev
154
- # or npm run dev
155
142
  ```
156
143
 
157
144
  ### Publishing to npm
@@ -166,8 +153,6 @@ yarn build
166
153
  npm publish
167
154
  ```
168
155
 
169
- The `prepublishOnly` script will automatically run the build before publishing.
170
-
171
156
  ## License
172
157
 
173
158
  MIT License - see [LICENSE](../../LICENSE) file for details.
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.2",
3
+ "version": "0.0.3",
4
4
  "description": "TypeScript/JavaScript bindings for open-l2encdec WASM module",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",