Socket
Socket
Sign inDemoInstall

langsmith

Package Overview
Dependencies
Maintainers
1
Versions
151
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

langsmith - npm Package Compare versions

Comparing version 0.0.34 to 0.0.35

4

dist/cli/main.js

@@ -6,3 +6,3 @@ import * as fs from "fs";

import * as child_process from "child_process";
import { getDockerEnvironment, getLangChainEnvVars, getRuntimeEnvironment, setEnvironmentVariable, } from "../utils/env.js";
import { getLangChainEnvVars, getRuntimeEnvironment, setEnvironmentVariable, } from "../utils/env.js";
import { spawn } from "child_process";

@@ -265,7 +265,5 @@ const currentFileName = __filename;

const env = await getRuntimeEnvironment();
const dockerEnv = await getDockerEnvironment();
const envVars = await getLangChainEnvVars();
const envDict = {
...env,
...dockerEnv,
...envVars,

@@ -272,0 +270,0 @@ };

@@ -7,3 +7,2 @@ import * as fs from "fs";

import {
getDockerEnvironment,
getLangChainEnvVars,

@@ -299,7 +298,5 @@ getRuntimeEnvironment,

const env = await getRuntimeEnvironment();
const dockerEnv = await getDockerEnvironment();
const envVars = await getLangChainEnvVars();
const envDict = {
...env,
...dockerEnv,
...envVars,

@@ -306,0 +303,0 @@ };

@@ -21,7 +21,2 @@ declare global {

export declare function getRuntimeEnvironment(): Promise<RuntimeEnvironment>;
export declare function getDockerEnvironment(): Promise<{
dockerVersion: string | undefined;
dockerComposeCommand: string | undefined;
dockerComposeVersion: string | undefined;
}>;
/**

@@ -28,0 +23,0 @@ * Retrieves the LangChain-specific environment variables from the current runtime environment.

@@ -1,2 +0,1 @@

import { exec } from "child_process";
export const isBrowser = () => typeof window !== "undefined" && typeof window.document !== "undefined";

@@ -53,44 +52,2 @@ export const isWebWorker = () => typeof globalThis === "object" &&

}
export async function getDockerEnvironment() {
const getDockerVersion = () => new Promise((resolve) => {
exec("docker --version", (error, stdout) => {
if (error) {
resolve(undefined);
}
else {
resolve(stdout.trim());
}
});
});
const getDockerComposeCommand = () => new Promise((resolve) => {
exec("which docker-compose", (error, stdout) => {
if (error) {
resolve(undefined);
}
else {
resolve(stdout.trim());
}
});
});
const getDockerComposeVersion = () => new Promise((resolve) => {
exec("docker-compose --version", (error, stdout) => {
if (error) {
resolve(undefined);
}
else {
resolve(stdout.trim());
}
});
});
const [dockerVersion, dockerComposeCommand, dockerComposeVersion] = await Promise.all([
getDockerVersion(),
getDockerComposeCommand(),
getDockerComposeVersion(),
]);
return {
dockerVersion,
dockerComposeCommand,
dockerComposeVersion,
};
}
/**

@@ -97,0 +54,0 @@ * Retrieves the LangChain-specific environment variables from the current runtime environment.

{
"name": "langsmith",
"version": "0.0.34",
"version": "0.0.35",
"description": "Client library to connect to the LangSmith LLM Tracing and Evaluation Platform.",

@@ -5,0 +5,0 @@ "files": [

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