@awareness-sdk/local 0.1.8 → 0.1.9
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 +1 -1
- package/src/daemon.mjs +3 -3
package/package.json
CHANGED
package/src/daemon.mjs
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
import http from 'node:http';
|
|
17
17
|
import fs from 'node:fs';
|
|
18
18
|
import path from 'node:path';
|
|
19
|
-
import { fileURLToPath } from 'node:url';
|
|
19
|
+
import { fileURLToPath, pathToFileURL } from 'node:url';
|
|
20
20
|
|
|
21
21
|
import { MemoryStore } from './core/memory-store.mjs';
|
|
22
22
|
import { Indexer } from './core/indexer.mjs';
|
|
@@ -1784,7 +1784,7 @@ ${item.description || item.title || ''}
|
|
|
1784
1784
|
const thisDir = path.dirname(fileURLToPath(import.meta.url));
|
|
1785
1785
|
const modPath = path.join(thisDir, 'core', 'search.mjs');
|
|
1786
1786
|
if (fs.existsSync(modPath)) {
|
|
1787
|
-
const mod = await import(modPath);
|
|
1787
|
+
const mod = await import(pathToFileURL(modPath).href);
|
|
1788
1788
|
const SearchEngine = mod.SearchEngine || mod.default;
|
|
1789
1789
|
if (SearchEngine) {
|
|
1790
1790
|
return new SearchEngine(this.indexer, this.memoryStore);
|
|
@@ -1802,7 +1802,7 @@ ${item.description || item.title || ''}
|
|
|
1802
1802
|
const thisDir = path.dirname(fileURLToPath(import.meta.url));
|
|
1803
1803
|
const modPath = path.join(thisDir, 'core', 'knowledge-extractor.mjs');
|
|
1804
1804
|
if (fs.existsSync(modPath)) {
|
|
1805
|
-
const mod = await import(modPath);
|
|
1805
|
+
const mod = await import(pathToFileURL(modPath).href);
|
|
1806
1806
|
const KnowledgeExtractor = mod.KnowledgeExtractor || mod.default;
|
|
1807
1807
|
if (KnowledgeExtractor) {
|
|
1808
1808
|
return new KnowledgeExtractor(this.memoryStore, this.indexer);
|