Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@langchain/google-gauth

Package Overview
Dependencies
Maintainers
6
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@langchain/google-gauth - npm Package Compare versions

Comparing version 0.0.12 to 0.0.13

7

dist/auth.d.ts

@@ -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;

14

dist/auth.js
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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc