@langchain/google-gauth
Advanced tools
Comparing version 0.0.12 to 0.0.13
@@ -1,3 +0,8 @@ | ||
import { GoogleAbstractedClient, GoogleAbstractedClientOps, GoogleBaseLLMInput } from "@langchain/google-common"; | ||
/// <reference types="node" resolution-mode="require"/> | ||
import { Readable } from "stream"; | ||
import { GoogleAbstractedClient, GoogleAbstractedClientOps, GoogleBaseLLMInput, JsonStream } from "@langchain/google-common"; | ||
import { GoogleAuth, GoogleAuthOptions } from "google-auth-library"; | ||
export declare class NodeJsonStream extends JsonStream { | ||
constructor(data: Readable); | ||
} | ||
export declare class GAuthClient implements GoogleAbstractedClient { | ||
@@ -4,0 +9,0 @@ gauth: GoogleAuth; |
import { ensureAuthOptionScopes, JsonStream, } from "@langchain/google-common"; | ||
import { GoogleAuth } from "google-auth-library"; | ||
class NodeJsonStream extends JsonStream { | ||
export class NodeJsonStream extends JsonStream { | ||
constructor(data) { | ||
super(); | ||
data.on("data", (data) => this.appendBuffer(data.toString())); | ||
data.on("end", () => this.closeBuffer()); | ||
const decoder = new TextDecoder("utf-8"); | ||
data.on("data", (data) => { | ||
const text = decoder.decode(data, { stream: true }); | ||
this.appendBuffer(text); | ||
}); | ||
data.on("end", () => { | ||
const rest = decoder.decode(); | ||
this.appendBuffer(rest); | ||
this.closeBuffer(); | ||
}); | ||
} | ||
@@ -9,0 +17,0 @@ } |
{ | ||
"name": "@langchain/google-gauth", | ||
"version": "0.0.12", | ||
"version": "0.0.13", | ||
"description": "Google auth based authentication support for Google services", | ||
@@ -5,0 +5,0 @@ "type": "module", |
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
18598
304