@gukhanmun/loanwords-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 +3 -3
- package/dist/index.js +3 -2
- package/dist/loanwords.cdb +0 -0
- package/package.json +2 -2
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 CDB binary. */
|
|
3
3
|
export declare const loanwordsCdbUrl: URL;
|
|
4
4
|
/**
|
|
@@ -24,7 +24,7 @@ export declare function loanwordsCdbBytes(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: "cdb"`.
|
|
27
|
+
* @returns A `FileDictionarySource` with `format: "cdb"` and `role: "loanword"`.
|
|
28
28
|
*/
|
|
29
29
|
export declare function loanwordsCdb(): Promise<FileDictionarySource$1>;
|
|
30
|
-
export type { FileDictionarySource };
|
|
30
|
+
export type { FileDictionarySource, SourceRole };
|
package/dist/index.js
CHANGED
|
@@ -35,12 +35,13 @@ async function loanwordsCdbBytes(url = loanwordsCdbUrl) {
|
|
|
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: "cdb"`.
|
|
38
|
+
* @returns A `FileDictionarySource` with `format: "cdb"` and `role: "loanword"`.
|
|
39
39
|
*/
|
|
40
40
|
async function loanwordsCdb() {
|
|
41
41
|
return {
|
|
42
42
|
data: await loanwordsCdbBytes(),
|
|
43
|
-
format: "cdb"
|
|
43
|
+
format: "cdb",
|
|
44
|
+
role: "loanword"
|
|
44
45
|
};
|
|
45
46
|
}
|
|
46
47
|
export { loanwordsCdb, loanwordsCdbBytes, loanwordsCdbUrl };
|
package/dist/loanwords.cdb
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gukhanmun/loanwords-cdb",
|
|
3
|
-
"version": "0.4.0-dev.
|
|
3
|
+
"version": "0.4.0-dev.248",
|
|
4
4
|
"description": "NIKL loanword examples bundled as a CDB 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.
|
|
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.cdb','dist/loanwords.cdb')\"",
|