From e5f443fb75e91640b52fb5d1b230e42831b370ce Mon Sep 17 00:00:00 2001 From: Simon Cambier Date: Sun, 22 Jan 2023 14:05:00 +0100 Subject: [PATCH] Fixed imports --- lib/src/index.ts | 3 ++- plugin/src/settings.ts | 4 +--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/src/index.ts b/lib/src/index.ts index eccde6f..9e127e6 100644 --- a/lib/src/index.ts +++ b/lib/src/index.ts @@ -4,7 +4,7 @@ import { ocrLangs } from './ocr-langs' import type { TFile } from 'obsidian' import type { OcrOptions } from './types' import { processQueue } from './globals' -import { getCachePath } from './cache' +import { getCacheBasePath, getCachePath } from './cache' /** * Returns a promise that resolves to the text extracted from the file. @@ -81,4 +81,5 @@ export { clearProcessQueue, isInCache, removeFromCache, + getCacheBasePath, } diff --git a/plugin/src/settings.ts b/plugin/src/settings.ts index e49ef30..17bf411 100644 --- a/plugin/src/settings.ts +++ b/plugin/src/settings.ts @@ -2,9 +2,7 @@ import TextExtractorPlugin from './main' import { writable } from 'svelte/store' import { Notice, PluginSettingTab, Setting } from 'obsidian' import LangSelector from './components/LangSelector.svelte' -import { getOcrLangs } from 'obsidian-text-extract' -// Non-public API -import { getCacheBasePath } from 'obsidian-text-extract/src/cache' +import { getOcrLangs, getCacheBasePath } from 'obsidian-text-extract' interface TextExtractorSettings { ocrLanguages: ReturnType[number][]