@gukhanmun/loanwords-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 NIKL loanword examples FST binary. */
3
3
  export declare const loanwordsFstUrl: URL;
4
4
  /**
@@ -24,7 +24,7 @@ export declare function loanwordsFstBytes(url?: URL): Promise<Uint8Array<ArrayBu
24
24
  * Loads the bundled NIKL loanword examples 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: "loanword"`.
28
28
  */
29
29
  export declare function loanwordsFst(): Promise<FileDictionarySource$1>;
30
- export type { FileDictionarySource };
30
+ export type { FileDictionarySource, SourceRole };
package/dist/index.js CHANGED
@@ -35,12 +35,13 @@ async function loanwordsFstBytes(url = loanwordsFstUrl) {
35
35
  * Loads the bundled NIKL loanword examples 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: "loanword"`.
39
39
  */
40
40
  async function loanwordsFst() {
41
41
  return {
42
42
  data: await loanwordsFstBytes(),
43
- format: "fst"
43
+ format: "fst",
44
+ role: "loanword"
44
45
  };
45
46
  }
46
47
  export { loanwordsFst, loanwordsFstBytes, loanwordsFstUrl };
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gukhanmun/loanwords-fst",
3
- "version": "0.4.0-dev.245",
3
+ "version": "0.4.0-dev.248",
4
4
  "description": "NIKL loanword examples bundled as an FST binary for @gukhanmun/wasm and @gukhanmun/napi.",
5
5
  "type": "module",
6
6
  "exports": {
@@ -57,7 +57,7 @@
57
57
  "@gukhanmun/types": "*"
58
58
  },
59
59
  "devDependencies": {
60
- "@gukhanmun/types": "0.4.0-dev.245+223a736"
60
+ "@gukhanmun/types": "0.4.0-dev.248+36997e7"
61
61
  },
62
62
  "scripts": {
63
63
  "build": "tsdown && node -e \"require('node:fs').copyFileSync('loanwords.fst','dist/loanwords.fst')\"",