@mirodan/ai-insight 0.1.4 → 0.1.5

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.
@@ -1,4 +1,4 @@
1
- const messages: Record<string, Record<string, string>> = {
1
+ const messages = {
2
2
  ru: {
3
3
  CONFIG_ENDPOINT_MISSING: 'Не указан endpoint AI Insight',
4
4
  CONFIG_KEY_MISSING: 'Не указан API-ключ AI Insight',
@@ -13,6 +13,6 @@ const messages: Record<string, Record<string, string>> = {
13
13
  }
14
14
  }
15
15
 
16
- export function tError(key: string, lang?: string): string {
16
+ export function tError(key, lang) {
17
17
  return messages[lang === 'en' ? 'en' : 'ru']?.[key] || key
18
18
  }
@@ -1,4 +1,4 @@
1
- import { tError } from './_errors'
1
+ import { tError } from './_errors.js'
2
2
 
3
3
  export default defineEventHandler(async (event) => {
4
4
  const config = useRuntimeConfig(event)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mirodan/ai-insight",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "description": "AI-powered insight tooltip component for Mirodan",
5
5
  "type": "module",
6
6
  "main": "./dist/module.js",