Comparing version 1.5.3 to 1.5.4
@@ -39,3 +39,3 @@ import { IncludeEnum, Metadata, Metadatas, Embedding, Embeddings, Document, Documents, Where, WhereDocument, ID, IDs, PositiveInteger, GetResponse, QueryResponse, AddResponse, CollectionMetadata } from "./types"; | ||
* @param {Document | Documents} [params.documents] - Optional documents of the items to add. | ||
* @returns {Promise<AddResponse>} - The response from the API. True if successful. | ||
* @returns {Promise<AddResponse>} - The response from the API. True if successful. | ||
* | ||
@@ -42,0 +42,0 @@ * @example |
@@ -95,3 +95,3 @@ "use strict"; | ||
* @param {Document | Documents} [params.documents] - Optional documents of the items to add. | ||
* @returns {Promise<AddResponse>} - The response from the API. True if successful. | ||
* @returns {Promise<AddResponse>} - The response from the API. True if successful. | ||
* | ||
@@ -98,0 +98,0 @@ * @example |
@@ -0,1 +1,2 @@ | ||
import 'isomorphic-fetch'; | ||
/** | ||
@@ -2,0 +3,0 @@ * FastAPI |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.RequiredError = exports.BaseAPI = exports.COLLECTION_FORMATS = exports.BASE_PATH = exports.defaultFetch = void 0; | ||
require("isomorphic-fetch"); | ||
/* eslint-disable */ | ||
@@ -15,4 +18,2 @@ // tslint:disable | ||
*/ | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.RequiredError = exports.BaseAPI = exports.COLLECTION_FORMATS = exports.BASE_PATH = exports.defaultFetch = void 0; | ||
exports.defaultFetch = fetch; | ||
@@ -19,0 +20,0 @@ exports.BASE_PATH = ""; |
@@ -39,3 +39,3 @@ import { IncludeEnum, Metadata, Metadatas, Embedding, Embeddings, Document, Documents, Where, WhereDocument, ID, IDs, PositiveInteger, GetResponse, QueryResponse, AddResponse, CollectionMetadata } from "./types"; | ||
* @param {Document | Documents} [params.documents] - Optional documents of the items to add. | ||
* @returns {Promise<AddResponse>} - The response from the API. True if successful. | ||
* @returns {Promise<AddResponse>} - The response from the API. True if successful. | ||
* | ||
@@ -42,0 +42,0 @@ * @example |
@@ -92,3 +92,3 @@ import { handleError, handleSuccess } from "./utils"; | ||
* @param {Document | Documents} [params.documents] - Optional documents of the items to add. | ||
* @returns {Promise<AddResponse>} - The response from the API. True if successful. | ||
* @returns {Promise<AddResponse>} - The response from the API. True if successful. | ||
* | ||
@@ -95,0 +95,0 @@ * @example |
@@ -0,1 +1,2 @@ | ||
import 'isomorphic-fetch'; | ||
/** | ||
@@ -2,0 +3,0 @@ * FastAPI |
@@ -0,1 +1,2 @@ | ||
import 'isomorphic-fetch'; | ||
/* eslint-disable */ | ||
@@ -2,0 +3,0 @@ // tslint:disable |
{ | ||
"name": "chromadb", | ||
"version": "1.5.3", | ||
"version": "1.5.4", | ||
"description": "A JavaScript interface for chroma", | ||
@@ -42,3 +42,6 @@ "keywords": [], | ||
"release": "run-s build test:run && npm publish" | ||
}, | ||
"dependencies": { | ||
"isomorphic-fetch": "^3.0.0" | ||
} | ||
} | ||
} |
@@ -244,2 +244,3 @@ import { IEmbeddingFunction } from './embeddings/IEmbeddingFunction'; | ||
); | ||
} | ||
@@ -246,0 +247,0 @@ |
@@ -159,3 +159,3 @@ import { | ||
* @param {Document | Documents} [params.documents] - Optional documents of the items to add. | ||
* @returns {Promise<AddResponse>} - The response from the API. True if successful. | ||
* @returns {Promise<AddResponse>} - The response from the API. True if successful. | ||
* | ||
@@ -162,0 +162,0 @@ * @example |
@@ -0,1 +1,2 @@ | ||
import 'isomorphic-fetch'; | ||
/* eslint-disable */ | ||
@@ -2,0 +3,0 @@ // tslint:disable |
@@ -37,2 +37,3 @@ import { Api } from "./generated" | ||
export async function handleError(error: unknown) { | ||
if (error instanceof Response) { | ||
@@ -39,0 +40,0 @@ try { |
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
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
591690
10383
1
+ Addedisomorphic-fetch@^3.0.0
+ Addedisomorphic-fetch@3.0.0(transitive)
+ Addednode-fetch@2.7.0(transitive)
+ Addedtr46@0.0.3(transitive)
+ Addedwebidl-conversions@3.0.1(transitive)
+ Addedwhatwg-fetch@3.6.20(transitive)
+ Addedwhatwg-url@5.0.0(transitive)