diff --git a/bun.lockb b/bun.lockb index 27cc10f..bd3f45e 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/package.json b/package.json index 645b77f..4e332c0 100644 --- a/package.json +++ b/package.json @@ -47,11 +47,13 @@ "@heroicons/react": "^2.1.3", "@langchain/community": "^0.2.1", "@langchain/openai": "^0.0.33", + "@types/lodash": "^4.17.4", "@vitejs/plugin-react": "^4.3.0", "@vitejs/plugin-react-swc": "^3.7.0", "clsx": "^2.1.1", "i18next": "^23.11.5", "langchain": "^0.2.1", + "lodash": "^4.17.21", "marked": "^4.3.0", "monkey-around": "^2.3.0", "nanoid": "^5.0.7", @@ -61,7 +63,6 @@ "react-i18next": "^14.1.2", "rollup-plugin-copy": "^3.5.0", "tailwind-merge": "^2.3.0", - "ts-deepmerge": "^7.0.0", "usehooks-ts": "^3.1.0" }, "overrides": { diff --git a/src/main.ts b/src/main.ts index 9ed3324..82f8646 100644 --- a/src/main.ts +++ b/src/main.ts @@ -6,7 +6,7 @@ import {MAXSettings} from './types'; import Logger, {LogLvl} from './utils/logging'; import {ChatbotView, VIEW_TYPE_CHATBOT} from './views/chatbot-view'; import {MAXSettingTab} from './views/setting-view'; -import {merge} from 'ts-deepmerge'; +import merge from 'lodash/merge' import './styles.css'; @@ -226,7 +226,6 @@ export default class MAXPlugin extends Plugin { async loadSettings() { const loadedData = (await this.loadData()) as MAXSettings; this.settings = merge(DEFAULT_SETTINGS, loadedData); - console.log(this.settings); } async saveSettings() {