@gukhanmun/opendict-cdb 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
  /**
3
3
  * URL of the bundled Open Korean Dictionary 一般語 CDB binary.
4
4
  *
@@ -77,25 +77,25 @@ export declare function opendictArchaicCdbBytes(url?: URL): Promise<Uint8Array>;
77
77
  /**
78
78
  * Loads the bundled Open Korean Dictionary 일반어 dictionary.
79
79
  *
80
- * @returns A `FileDictionarySource` with `format: "cdb"`.
80
+ * @returns A `FileDictionarySource` with `format: "cdb"` and `role: "reference"`.
81
81
  */
82
82
  export declare function opendictGeneralCdb(): Promise<FileDictionarySource$1>;
83
83
  /**
84
84
  * Loads the bundled Open Korean Dictionary 북한어 dictionary.
85
85
  *
86
- * @returns A `FileDictionarySource` with `format: "cdb"`.
86
+ * @returns A `FileDictionarySource` with `format: "cdb"` and `role: "reference"`.
87
87
  */
88
88
  export declare function opendictNorthKoreanCdb(): Promise<FileDictionarySource$1>;
89
89
  /**
90
90
  * Loads the bundled Open Korean Dictionary 방언 dictionary.
91
91
  *
92
- * @returns A `FileDictionarySource` with `format: "cdb"`.
92
+ * @returns A `FileDictionarySource` with `format: "cdb"` and `role: "reference"`.
93
93
  */
94
94
  export declare function opendictDialectCdb(): Promise<FileDictionarySource$1>;
95
95
  /**
96
96
  * Loads the bundled Open Korean Dictionary 옛말 dictionary.
97
97
  *
98
- * @returns A `FileDictionarySource` with `format: "cdb"`.
98
+ * @returns A `FileDictionarySource` with `format: "cdb"` and `role: "reference"`.
99
99
  */
100
100
  export declare function opendictArchaicCdb(): Promise<FileDictionarySource$1>;
101
- export type { FileDictionarySource };
101
+ export type { FileDictionarySource, SourceRole };
package/dist/index.js CHANGED
@@ -115,45 +115,49 @@ function opendictArchaicCdbBytes(url = opendictArchaicCdbUrl) {
115
115
  /**
116
116
  * Loads the bundled Open Korean Dictionary 일반어 dictionary.
117
117
  *
118
- * @returns A `FileDictionarySource` with `format: "cdb"`.
118
+ * @returns A `FileDictionarySource` with `format: "cdb"` and `role: "reference"`.
119
119
  */
120
120
  async function opendictGeneralCdb() {
121
121
  return {
122
122
  data: await opendictGeneralCdbBytes(),
123
- format: "cdb"
123
+ format: "cdb",
124
+ role: "reference"
124
125
  };
125
126
  }
126
127
  /**
127
128
  * Loads the bundled Open Korean Dictionary 북한어 dictionary.
128
129
  *
129
- * @returns A `FileDictionarySource` with `format: "cdb"`.
130
+ * @returns A `FileDictionarySource` with `format: "cdb"` and `role: "reference"`.
130
131
  */
131
132
  async function opendictNorthKoreanCdb() {
132
133
  return {
133
134
  data: await opendictNorthKoreanCdbBytes(),
134
- format: "cdb"
135
+ format: "cdb",
136
+ role: "reference"
135
137
  };
136
138
  }
137
139
  /**
138
140
  * Loads the bundled Open Korean Dictionary 방언 dictionary.
139
141
  *
140
- * @returns A `FileDictionarySource` with `format: "cdb"`.
142
+ * @returns A `FileDictionarySource` with `format: "cdb"` and `role: "reference"`.
141
143
  */
142
144
  async function opendictDialectCdb() {
143
145
  return {
144
146
  data: await opendictDialectCdbBytes(),
145
- format: "cdb"
147
+ format: "cdb",
148
+ role: "reference"
146
149
  };
147
150
  }
148
151
  /**
149
152
  * Loads the bundled Open Korean Dictionary 옛말 dictionary.
150
153
  *
151
- * @returns A `FileDictionarySource` with `format: "cdb"`.
154
+ * @returns A `FileDictionarySource` with `format: "cdb"` and `role: "reference"`.
152
155
  */
153
156
  async function opendictArchaicCdb() {
154
157
  return {
155
158
  data: await opendictArchaicCdbBytes(),
156
- format: "cdb"
159
+ format: "cdb",
160
+ role: "reference"
157
161
  };
158
162
  }
159
163
  export { opendictArchaicCdb, opendictArchaicCdbBytes, opendictArchaicCdbUrl, opendictCdbBytes, opendictDialectCdb, opendictDialectCdbBytes, opendictDialectCdbUrl, opendictGeneralCdb, opendictGeneralCdbBytes, opendictGeneralCdbUrl, opendictNorthKoreanCdb, opendictNorthKoreanCdbBytes, opendictNorthKoreanCdbUrl };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gukhanmun/opendict-cdb",
3
- "version": "0.4.0-dev.245",
3
+ "version": "0.4.0-dev.248",
4
4
  "description": "Open Korean Dictionary categories bundled as CDB 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-cdb-data",