@gukhanmun/opendict-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 Open Korean Dictionary 일반어 FST binary. */
3
3
  export declare const opendictGeneralFstUrl: URL;
4
4
  /** URL of the bundled Open Korean Dictionary 북한어 FST binary. */
@@ -53,25 +53,25 @@ export declare function opendictArchaicFstBytes(url?: URL): Promise<Uint8Array>;
53
53
  /**
54
54
  * Loads the bundled Open Korean Dictionary 일반어 dictionary.
55
55
  *
56
- * @returns A `FileDictionarySource` with `format: "fst"`.
56
+ * @returns A `FileDictionarySource` with `format: "fst"` and `role: "reference"`.
57
57
  */
58
58
  export declare function opendictGeneralFst(): Promise<FileDictionarySource$1>;
59
59
  /**
60
60
  * Loads the bundled Open Korean Dictionary 북한어 dictionary.
61
61
  *
62
- * @returns A `FileDictionarySource` with `format: "fst"`.
62
+ * @returns A `FileDictionarySource` with `format: "fst"` and `role: "reference"`.
63
63
  */
64
64
  export declare function opendictNorthKoreanFst(): Promise<FileDictionarySource$1>;
65
65
  /**
66
66
  * Loads the bundled Open Korean Dictionary 방언 dictionary.
67
67
  *
68
- * @returns A `FileDictionarySource` with `format: "fst"`.
68
+ * @returns A `FileDictionarySource` with `format: "fst"` and `role: "reference"`.
69
69
  */
70
70
  export declare function opendictDialectFst(): Promise<FileDictionarySource$1>;
71
71
  /**
72
72
  * Loads the bundled Open Korean Dictionary 옛말 dictionary.
73
73
  *
74
- * @returns A `FileDictionarySource` with `format: "fst"`.
74
+ * @returns A `FileDictionarySource` with `format: "fst"` and `role: "reference"`.
75
75
  */
76
76
  export declare function opendictArchaicFst(): Promise<FileDictionarySource$1>;
77
- export type { FileDictionarySource };
77
+ export type { FileDictionarySource, SourceRole };
package/dist/index.js CHANGED
@@ -76,45 +76,49 @@ function opendictArchaicFstBytes(url = opendictArchaicFstUrl) {
76
76
  /**
77
77
  * Loads the bundled Open Korean Dictionary 일반어 dictionary.
78
78
  *
79
- * @returns A `FileDictionarySource` with `format: "fst"`.
79
+ * @returns A `FileDictionarySource` with `format: "fst"` and `role: "reference"`.
80
80
  */
81
81
  async function opendictGeneralFst() {
82
82
  return {
83
83
  data: await opendictGeneralFstBytes(),
84
- format: "fst"
84
+ format: "fst",
85
+ role: "reference"
85
86
  };
86
87
  }
87
88
  /**
88
89
  * Loads the bundled Open Korean Dictionary 북한어 dictionary.
89
90
  *
90
- * @returns A `FileDictionarySource` with `format: "fst"`.
91
+ * @returns A `FileDictionarySource` with `format: "fst"` and `role: "reference"`.
91
92
  */
92
93
  async function opendictNorthKoreanFst() {
93
94
  return {
94
95
  data: await opendictNorthKoreanFstBytes(),
95
- format: "fst"
96
+ format: "fst",
97
+ role: "reference"
96
98
  };
97
99
  }
98
100
  /**
99
101
  * Loads the bundled Open Korean Dictionary 방언 dictionary.
100
102
  *
101
- * @returns A `FileDictionarySource` with `format: "fst"`.
103
+ * @returns A `FileDictionarySource` with `format: "fst"` and `role: "reference"`.
102
104
  */
103
105
  async function opendictDialectFst() {
104
106
  return {
105
107
  data: await opendictDialectFstBytes(),
106
- format: "fst"
108
+ format: "fst",
109
+ role: "reference"
107
110
  };
108
111
  }
109
112
  /**
110
113
  * Loads the bundled Open Korean Dictionary 옛말 dictionary.
111
114
  *
112
- * @returns A `FileDictionarySource` with `format: "fst"`.
115
+ * @returns A `FileDictionarySource` with `format: "fst"` and `role: "reference"`.
113
116
  */
114
117
  async function opendictArchaicFst() {
115
118
  return {
116
119
  data: await opendictArchaicFstBytes(),
117
- format: "fst"
120
+ format: "fst",
121
+ role: "reference"
118
122
  };
119
123
  }
120
124
  export { opendictArchaicFst, opendictArchaicFstBytes, opendictArchaicFstUrl, opendictDialectFst, opendictDialectFstBytes, opendictDialectFstUrl, opendictFstBytes, opendictGeneralFst, opendictGeneralFstBytes, opendictGeneralFstUrl, opendictNorthKoreanFst, opendictNorthKoreanFstBytes, opendictNorthKoreanFstUrl };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gukhanmun/opendict-fst",
3
- "version": "0.4.0-dev.245",
3
+ "version": "0.4.0-dev.248",
4
4
  "description": "Open Korean Dictionary categories bundled as FST binaries for @gukhanmun/wasm and @gukhanmun/napi.",
5
5
  "type": "module",
6
6
  "exports": {
@@ -61,7 +61,7 @@
61
61
  "@gukhanmun/types": "*"
62
62
  },
63
63
  "devDependencies": {
64
- "@gukhanmun/types": "0.4.0-dev.245+223a736"
64
+ "@gukhanmun/types": "0.4.0-dev.248+36997e7"
65
65
  },
66
66
  "scripts": {
67
67
  "prebuild": "mise run -C ../.. opendict-fst-data",