@gukhanmun/stdict-fst 0.4.0-dev.245 → 0.4.0-dev.248

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.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { FileDictionarySource, FileDictionarySource as FileDictionarySource$1 } from "@gukhanmun/types";
1
+ import { FileDictionarySource, FileDictionarySource as FileDictionarySource$1, SourceRole } from "@gukhanmun/types";
2
2
  /** URL of the bundled Standard Korean Language Dictionary FST binary. */
3
3
  export declare const stdictFstUrl: URL;
4
4
  /**
@@ -24,7 +24,7 @@ export declare function stdictFstBytes(url?: URL): Promise<Uint8Array<ArrayBuffe
24
24
  * Loads the bundled Standard Korean Language Dictionary as a
25
25
  * {@link FileDictionarySource} ready to pass to `load({ dictionaries: [...] })`.
26
26
  *
27
- * @returns A `FileDictionarySource` with `format: "fst"`.
27
+ * @returns A `FileDictionarySource` with `format: "fst"` and `role: "reference"`.
28
28
  */
29
29
  export declare function stdictFst(): Promise<FileDictionarySource$1>;
30
- export type { FileDictionarySource };
30
+ export type { FileDictionarySource, SourceRole };
package/dist/index.js CHANGED
@@ -35,12 +35,13 @@ async function stdictFstBytes(url = stdictFstUrl) {
35
35
  * Loads the bundled Standard Korean Language Dictionary as a
36
36
  * {@link FileDictionarySource} ready to pass to `load({ dictionaries: [...] })`.
37
37
  *
38
- * @returns A `FileDictionarySource` with `format: "fst"`.
38
+ * @returns A `FileDictionarySource` with `format: "fst"` and `role: "reference"`.
39
39
  */
40
40
  async function stdictFst() {
41
41
  return {
42
42
  data: await stdictFstBytes(),
43
- format: "fst"
43
+ format: "fst",
44
+ role: "reference"
44
45
  };
45
46
  }
46
47
  export { stdictFst, stdictFstBytes, stdictFstUrl };
package/dist/stdict.fst CHANGED
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gukhanmun/stdict-fst",
3
- "version": "0.4.0-dev.245",
3
+ "version": "0.4.0-dev.248",
4
4
  "description": "Standard Korean Language Dictionary bundled as an FST binary for @gukhanmun/wasm and @gukhanmun/napi.",
5
5
  "type": "module",
6
6
  "exports": {
@@ -55,7 +55,7 @@
55
55
  "@gukhanmun/types": "*"
56
56
  },
57
57
  "devDependencies": {
58
- "@gukhanmun/types": "0.4.0-dev.245+223a736"
58
+ "@gukhanmun/types": "0.4.0-dev.248+36997e7"
59
59
  },
60
60
  "scripts": {
61
61
  "build": "tsdown && node -e \"require('node:fs').copyFileSync('stdict.fst','dist/stdict.fst')\""