@sprucelabs/chroma-data-store 0.1.0 → 0.1.1
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/build/ChromaDatabase.js
CHANGED
|
@@ -180,7 +180,7 @@ class ChromaDatabase {
|
|
|
180
180
|
}
|
|
181
181
|
async dropDatabase() {
|
|
182
182
|
const collections = await this.client.listCollections();
|
|
183
|
-
await Promise.all(collections.map((col) => this.dropCollection(col
|
|
183
|
+
await Promise.all(collections.map((col) => this.dropCollection(col)));
|
|
184
184
|
}
|
|
185
185
|
async findOne(collection, query, options, dbOptions) {
|
|
186
186
|
const matches = await this.find(collection, query, { ...options, limit: 1 }, dbOptions);
|
|
@@ -220,7 +220,7 @@ export default class ChromaDatabase {
|
|
|
220
220
|
dropDatabase() {
|
|
221
221
|
return __awaiter(this, void 0, void 0, function* () {
|
|
222
222
|
const collections = yield this.client.listCollections();
|
|
223
|
-
yield Promise.all(collections.map((col) => this.dropCollection(col
|
|
223
|
+
yield Promise.all(collections.map((col) => this.dropCollection(col)));
|
|
224
224
|
});
|
|
225
225
|
}
|
|
226
226
|
findOne(collection, query, options, dbOptions) {
|
package/package.json
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"sprucebot",
|
|
14
14
|
"sprucelabs"
|
|
15
15
|
],
|
|
16
|
-
"version": "0.1.
|
|
16
|
+
"version": "0.1.1",
|
|
17
17
|
"scripts": {
|
|
18
18
|
"build.ci": "yarn run build.tsc && yarn run build.resolve-paths && yarn run lint",
|
|
19
19
|
"build.copy-files": "mkdir -p build && rsync -avzq --exclude='*.ts' ./src/ ./build/",
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"jest": {
|
|
67
67
|
"testRunner": "jest-circus/runner",
|
|
68
68
|
"maxWorkers": 4,
|
|
69
|
-
"testTimeout":
|
|
69
|
+
"testTimeout": 10000000,
|
|
70
70
|
"testEnvironment": "node",
|
|
71
71
|
"testPathIgnorePatterns": [
|
|
72
72
|
"<rootDir>/tmp/",
|
|
@@ -82,12 +82,12 @@
|
|
|
82
82
|
}
|
|
83
83
|
},
|
|
84
84
|
"dependencies": {
|
|
85
|
-
"@sprucelabs/data-stores": "^28.5.
|
|
85
|
+
"@sprucelabs/data-stores": "^28.5.2",
|
|
86
86
|
"@sprucelabs/error": "^6.0.556",
|
|
87
87
|
"@sprucelabs/schema": "^31.0.3",
|
|
88
88
|
"@sprucelabs/spruce-core-schemas": "^40.1.586",
|
|
89
89
|
"@sprucelabs/spruce-skill-utils": "^31.1.9",
|
|
90
|
-
"chromadb": "^1.
|
|
90
|
+
"chromadb": "^1.10.0",
|
|
91
91
|
"chromadb-default-embed": "^2.13.2"
|
|
92
92
|
}
|
|
93
93
|
}
|