New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

langfuse

Package Overview
Dependencies
Maintainers
4
Versions
220
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

langfuse - npm Package Compare versions

Comparing version 3.29.1 to 3.29.2-alpha.0

13

lib/index.cjs.js

@@ -152,3 +152,3 @@ 'use strict';

var version = "3.29.1";
var version = "3.29.2-alpha.0";

@@ -544,2 +544,13 @@ class Langfuse extends langfuseCore.LangfuseCore {

}
// Add a shutdownAsync method to the OpenAI SDK that flushes the Langfuse client
if (propKey === "shutdownAsync") {
let langfuseClient;
// Flush the correct client depending on whether a parent client is provided
if (langfuseConfig && "parent" in langfuseConfig) {
langfuseClient = langfuseConfig.parent.client;
} else {
langfuseClient = LangfuseSingleton.getInstance();
}
return langfuseClient.shutdownAsync.bind(langfuseClient);
}
// Trace methods of the OpenAI SDK

@@ -546,0 +557,0 @@ if (typeof originalProperty === "function") {

2

lib/index.d.ts

@@ -70,3 +70,3 @@ import { LangfuseCoreOptions, LangfuseCore, LangfusePersistedProperty, LangfuseFetchOptions, LangfuseFetchResponse, LangfuseWebStateless, LangfuseTraceClient, LangfuseSpanClient, LangfuseGenerationClient, LangfusePromptClient, CreateLangfuseTraceBody, CreateLangfuseGenerationBody } from 'langfuse-core';

};
type LangfuseExtension = OpenAI & Pick<ReturnType<typeof LangfuseSingleton.getInstance>, "flushAsync">;
type LangfuseExtension = OpenAI & Pick<ReturnType<typeof LangfuseSingleton.getInstance>, "flushAsync" | "shutdownAsync">;

@@ -73,0 +73,0 @@ /**

{
"name": "langfuse",
"version": "3.29.1",
"version": "3.29.2-alpha.0",
"engines": {

@@ -35,5 +35,5 @@ "node": ">=18"

"dependencies": {
"langfuse-core": "^3.29.1"
"langfuse-core": "^3.29.2-alpha.0"
},
"gitHead": "7961532988cdf5d4de810d3c783e4e98332578ad",
"gitHead": "9a8c31ebf966ce9329e9f48d9ed3132fb3b1634d",
"devDependencies": {

@@ -40,0 +40,0 @@ "typedoc": "^0.26.8"

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

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