From 31543994040e6131b5de78cd2aa757025d7d6812 Mon Sep 17 00:00:00 2001 From: Yongtae Date: Sat, 5 Aug 2023 03:29:03 +0900 Subject: [PATCH] lint fix GoogleAuth and GoogleVertexAIEmbedding code --- .../components/credentials/GoogleAuth.credential.ts | 2 +- .../GoogleVertexAIEmbedding/GoogleVertexAIEmbedding.ts | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/components/credentials/GoogleAuth.credential.ts b/packages/components/credentials/GoogleAuth.credential.ts index de4c8843..484ff522 100644 --- a/packages/components/credentials/GoogleAuth.credential.ts +++ b/packages/components/credentials/GoogleAuth.credential.ts @@ -22,4 +22,4 @@ class GoogleVertexAuth implements INodeCredential { } } -module.exports = { credClass: GoogleVertexAuth } \ No newline at end of file +module.exports = { credClass: GoogleVertexAuth } diff --git a/packages/components/nodes/embeddings/GoogleVertexAIEmbedding/GoogleVertexAIEmbedding.ts b/packages/components/nodes/embeddings/GoogleVertexAIEmbedding/GoogleVertexAIEmbedding.ts index 9a7525a6..205e12ef 100644 --- a/packages/components/nodes/embeddings/GoogleVertexAIEmbedding/GoogleVertexAIEmbedding.ts +++ b/packages/components/nodes/embeddings/GoogleVertexAIEmbedding/GoogleVertexAIEmbedding.ts @@ -46,7 +46,7 @@ class GoogleVertexAIEmbedding_Embeddings implements INode { type: 'string', additionalParams: true, optional: true - }, + } ] } @@ -56,14 +56,14 @@ class GoogleVertexAIEmbedding_Embeddings implements INode { const credentialData = await getCredentialData(nodeData.credential ?? '', options) const googleApplicationCredentialFilePath = getCredentialParam('googleApplicationCredentialFilePath', credentialData, nodeData) - const authOptions:GoogleAuthOptions = { - keyFile: googleApplicationCredentialFilePath, - }; + const authOptions: GoogleAuthOptions = { + keyFile: googleApplicationCredentialFilePath + } if (projectID) authOptions.projectId = projectID const obj: GoogleVertexAIEmbeddingsParams = { - authOptions, + authOptions } if (location) obj.location = location