@kiroku-solutions/typefix-wasm-core 0.1.1 → 0.1.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.
- package/package.json +1 -1
- package/typefix.d.ts +1 -1
- package/typefix.js +4 -4
- package/typefix_bg.wasm +0 -0
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"Kiroku Solutions <opensource@kiroku.solutions>"
|
|
6
6
|
],
|
|
7
7
|
"description": "Hyper-lightweight, zero-latency typo correction and language detection engine",
|
|
8
|
-
"version": "0.1.
|
|
8
|
+
"version": "0.1.2",
|
|
9
9
|
"license": "MIT OR Apache-2.0",
|
|
10
10
|
"repository": {
|
|
11
11
|
"type": "git",
|
package/typefix.d.ts
CHANGED
|
@@ -16,7 +16,7 @@ export class TypeFixWeb {
|
|
|
16
16
|
* Load stopwords from a JSON string
|
|
17
17
|
*/
|
|
18
18
|
loadStopwords(lang: string, json_str: string): void;
|
|
19
|
-
constructor(auto_correct: boolean,
|
|
19
|
+
constructor(auto_correct: boolean, enable_distance: boolean, max_distance: number);
|
|
20
20
|
/**
|
|
21
21
|
* Process an entire string statelessly
|
|
22
22
|
* Returns a JSON array of PipelineEvents
|
package/typefix.js
CHANGED
|
@@ -63,11 +63,11 @@ export class TypeFixWeb {
|
|
|
63
63
|
}
|
|
64
64
|
/**
|
|
65
65
|
* @param {boolean} auto_correct
|
|
66
|
-
* @param {boolean}
|
|
67
|
-
* @param {number}
|
|
66
|
+
* @param {boolean} enable_distance
|
|
67
|
+
* @param {number} max_distance
|
|
68
68
|
*/
|
|
69
|
-
constructor(auto_correct,
|
|
70
|
-
const ret = wasm.typefixweb_new(auto_correct,
|
|
69
|
+
constructor(auto_correct, enable_distance, max_distance) {
|
|
70
|
+
const ret = wasm.typefixweb_new(auto_correct, enable_distance, max_distance);
|
|
71
71
|
this.__wbg_ptr = ret;
|
|
72
72
|
TypeFixWebFinalization.register(this, this.__wbg_ptr, this);
|
|
73
73
|
return this;
|
package/typefix_bg.wasm
CHANGED
|
Binary file
|