Skip to content

Commit

Permalink
fix(js): fixed a few random imports to make them node 23 compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
pavelgj committed Feb 18, 2025
1 parent b6e1c2a commit efcc32b
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion js/plugins/express/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

import * as bodyParser from 'body-parser';
import bodyParser from 'body-parser';
import cors, { CorsOptions } from 'cors';
import express from 'express';
import {
Expand Down
10 changes: 5 additions & 5 deletions js/plugins/vertexai/src/vectorsearch/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,8 @@ import { GenkitPlugin, genkitPlugin } from 'genkit/plugin';
import { getDerivedParams } from '../common/index.js';
import { PluginOptions } from './types.js';
import { vertexAiIndexers, vertexAiRetrievers } from './vector_search/index.js';
export { PluginOptions } from '../common/types.js';
export { type PluginOptions } from '../common/types.js';
export {
DocumentIndexer,
DocumentRetriever,
Neighbor,
VectorSearchOptions,
getBigQueryDocumentIndexer,
getBigQueryDocumentRetriever,
getFirestoreDocumentIndexer,
Expand All @@ -33,6 +29,10 @@ export {
vertexAiIndexers,
vertexAiRetrieverRef,
vertexAiRetrievers,
type DocumentIndexer,
type DocumentRetriever,
type Neighbor,
type VectorSearchOptions,
} from './vector_search/index.js';
/**
* Add Google Cloud Vertex AI to Genkit. Includes Gemini and Imagen models and text embedder.
Expand Down
22 changes: 11 additions & 11 deletions js/plugins/vertexai/src/vectorsearch/vector_search/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,20 @@
export {
getBigQueryDocumentIndexer,
getBigQueryDocumentRetriever,
} from './bigquery';
} from './bigquery.js';
export {
getFirestoreDocumentIndexer,
getFirestoreDocumentRetriever,
} from './firestore';
export { vertexAiIndexerRef, vertexAiIndexers } from './indexers';
export { vertexAiRetrieverRef, vertexAiRetrievers } from './retrievers';
} from './firestore.js';
export { vertexAiIndexerRef, vertexAiIndexers } from './indexers.js';
export { vertexAiRetrieverRef, vertexAiRetrievers } from './retrievers.js';
export {
DocumentIndexer,
DocumentRetriever,
Neighbor,
VectorSearchOptions,
VertexAIVectorIndexerOptions,
VertexAIVectorIndexerOptionsSchema,
VertexAIVectorRetrieverOptions,
VertexAIVectorRetrieverOptionsSchema,
} from './types';
type DocumentIndexer,
type DocumentRetriever,
type Neighbor,
type VectorSearchOptions,
type VertexAIVectorIndexerOptions,
type VertexAIVectorRetrieverOptions,
} from './types.js';

0 comments on commit efcc32b

Please sign in to comment.