Comparing version 1.5.1 to 1.5.2
@@ -180,2 +180,5 @@ "use strict"; | ||
.catch(utils_1.handleError); | ||
if (response.error) { | ||
throw new Error(response.error); | ||
} | ||
return new Collection_1.Collection(response.name, response.id, this.api, response.metadata, embeddingFunction); | ||
@@ -182,0 +185,0 @@ } |
@@ -49,6 +49,6 @@ export declare enum IncludeEnum { | ||
ids: IDs[]; | ||
embeddings: null | Embeddings[][]; | ||
embeddings: null | Embeddings[]; | ||
documents: (null | Document)[][]; | ||
metadatas: (null | Metadata)[][]; | ||
distances: null | number[][][]; | ||
distances: null | number[][]; | ||
}; | ||
@@ -55,0 +55,0 @@ export type AddResponse = { |
@@ -177,2 +177,5 @@ import { Configuration, ApiApi as DefaultApi } from "./generated"; | ||
.catch(handleError); | ||
if (response.error) { | ||
throw new Error(response.error); | ||
} | ||
return new Collection(response.name, response.id, this.api, response.metadata, embeddingFunction); | ||
@@ -179,0 +182,0 @@ } |
@@ -49,6 +49,6 @@ export declare enum IncludeEnum { | ||
ids: IDs[]; | ||
embeddings: null | Embeddings[][]; | ||
embeddings: null | Embeddings[]; | ||
documents: (null | Document)[][]; | ||
metadatas: (null | Metadata)[][]; | ||
distances: null | number[][][]; | ||
distances: null | number[][]; | ||
}; | ||
@@ -55,0 +55,0 @@ export type AddResponse = { |
{ | ||
"name": "chromadb", | ||
"version": "1.5.1", | ||
"version": "1.5.2", | ||
"description": "A JavaScript interface for chroma", | ||
@@ -40,4 +40,5 @@ "keywords": [], | ||
"genapi": "./genapi.sh", | ||
"prettier": "prettier --write ." | ||
"prettier": "prettier --write .", | ||
"release": "run-s build test:run && npm publish" | ||
} | ||
} |
@@ -226,2 +226,6 @@ import { IEmbeddingFunction } from './embeddings/IEmbeddingFunction'; | ||
if (response.error) { | ||
throw new Error(response.error); | ||
} | ||
return new Collection( | ||
@@ -261,2 +265,2 @@ response.name, | ||
} | ||
} |
@@ -64,6 +64,6 @@ export enum IncludeEnum { | ||
ids: IDs[]; | ||
embeddings: null | Embeddings[][]; | ||
embeddings: null | Embeddings[]; | ||
documents: (null | Document)[][]; | ||
metadatas: (null | Metadata)[][]; | ||
distances: null | number[][][]; | ||
distances: null | number[][]; | ||
} | ||
@@ -70,0 +70,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
573278
130
10149