@christianriedl/media 1.0.267 → 1.0.268

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@christianriedl/media",
3
- "version": "1.0.267",
3
+ "version": "1.0.268",
4
4
  "description": "RIC media interfaces",
5
5
 
6
6
  "main": "dist/index.js",
@@ -18,7 +18,7 @@
18
18
  "author": "Christian Riedl",
19
19
  "license": "ISC",
20
20
  "dependencies": {
21
- "@christianriedl/utils": "^1.0.119",
21
+ "@christianriedl/utils": "^1.0.120",
22
22
  "@christianriedl/rest": "^1.0.84",
23
23
  "@christianriedl/epg": "^1.0.43"
24
24
  },
@@ -155,7 +155,7 @@
155
155
  }
156
156
  return undefined;
157
157
  }
158
- async function vectorStore(file: string) {
158
+ async function vectorStore(file: string, folder?: string) {
159
159
  if (inVectorStore[file]) {
160
160
  if (window.confirm(`File is in vectorstore ${inVectorStore[file]}, delete ?`)) {
161
161
  const store = aiService.vectorStore[inVectorStore[file]]
@@ -174,7 +174,7 @@
174
174
  if (!folder)
175
175
  folder = path.value;
176
176
  let url = mediaService.getFileUrl(folder.length > 0 ? (folder + '/' + name) : name);
177
- if (await aiService.addFile(url, name) {
177
+ if (await aiService.addFile(url, name)) {
178
178
  inVectorStore[file] = name;
179
179
  }
180
180
  }