@laisuk/opencc-fmmseg-wasm 0.2.1 → 0.2.2

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 (2) hide show
  1. package/bin/opencc.js +2 -2
  2. package/package.json +1 -1
package/bin/opencc.js CHANGED
@@ -7,7 +7,7 @@ import process from "process";
7
7
  import init, {
8
8
  OpenccWasm,
9
9
  convert_office_bytes
10
- } from "../pkg/opencc_fmmseg_wasm.js";
10
+ } from "../opencc_fmmseg_wasm.js";
11
11
 
12
12
  const OFFICE_FORMATS = new Set([
13
13
  "docx",
@@ -26,7 +26,7 @@ async function ensureWasmInitialized() {
26
26
  return;
27
27
  }
28
28
 
29
- const wasmPath = new URL("../pkg/opencc_fmmseg_wasm_bg.wasm", import.meta.url);
29
+ const wasmPath = new URL("../opencc_fmmseg_wasm_bg.wasm", import.meta.url);
30
30
  const wasmBytes = fs.readFileSync(wasmPath);
31
31
 
32
32
  await init({
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@laisuk/opencc-fmmseg-wasm",
3
3
  "type": "module",
4
4
  "description": "WebAssembly bindings for opencc-fmmseg, a high-performance OpenCC-compatible Simplified/Traditional Chinese converter.",
5
- "version": "0.2.1",
5
+ "version": "0.2.2",
6
6
  "license": "MIT",
7
7
  "repository": {
8
8
  "type": "git",