share dictionary

This commit is contained in:
lingdocs 2022-05-17 13:46:22 -05:00
parent e67afc89cc
commit 3bd52e9672
3 changed files with 14 additions and 2 deletions

View File

@ -7,6 +7,14 @@ import {
userObjIsEqual,
objIsEqual,
} from "./website/src/lib/misc-helpers";
import {
DictionaryDb,
} from "./website/src/lib/dictionary-core";
import {
allEntries,
entryFeeder,
dictionary,
} from "./website/src/lib/dictionary";
import {
myFetch,
signOut,
@ -27,6 +35,10 @@ export {
getTimestamp,
objIsEqual,
userObjIsEqual,
DictionaryDb,
allEntries,
entryFeeder,
dictionary,
// fetching
myFetch,
signOut,

View File

@ -1,6 +1,6 @@
{
"name": "@lingdocs/lingdocs-main",
"version": "0.2.5",
"version": "0.2.6",
"description": "types and functions for lingdocs stuff",
"main": "dist/library.js",
"module": "dist/library.js",

View File

@ -13,7 +13,7 @@ export class DictionaryDb {
// config variables
private dictionaryInfoLocalStorageKey: string;
private dictionaryCollectionName: string;
private dictionaryUrl: string;
private dictionaryUrl: string;;
private dictionaryInfoUrl: string;
private lokidb: loki;