langsmith
Advanced tools
Comparing version 0.2.2-rc.0 to 0.2.2-rc.1
@@ -5,2 +5,2 @@ export { Client, type ClientConfig } from "./client.js"; | ||
export { overrideFetchImplementation } from "./singletons/fetch.js"; | ||
export declare const __version__ = "0.2.2-rc.0"; | ||
export declare const __version__ = "0.2.2-rc.1"; |
@@ -5,2 +5,2 @@ export { Client } from "./client.js"; | ||
// Update using yarn bump-version | ||
export const __version__ = "0.2.2-rc.0"; | ||
export const __version__ = "0.2.2-rc.1"; |
@@ -15,30 +15,39 @@ /* eslint-disable */ | ||
export function stringify(obj, replacer, spacer, options) { | ||
if (typeof options === "undefined") { | ||
options = defaultOptions(); | ||
try { | ||
return JSON.stringify(obj, replacer, spacer); | ||
} | ||
decirc(obj, "", 0, [], undefined, 0, options); | ||
var res; | ||
try { | ||
if (replacerStack.length === 0) { | ||
res = JSON.stringify(obj, replacer, spacer); | ||
catch (e) { | ||
// Fall back to more complex stringify if circular reference | ||
if (!e.message?.includes("Converting circular structure to JSON")) { | ||
return "[Unserializable]"; | ||
} | ||
else { | ||
res = JSON.stringify(obj, replaceGetterValues(replacer), spacer); | ||
if (typeof options === "undefined") { | ||
options = defaultOptions(); | ||
} | ||
} | ||
catch (_) { | ||
return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]"); | ||
} | ||
finally { | ||
while (arr.length !== 0) { | ||
var part = arr.pop(); | ||
if (part.length === 4) { | ||
Object.defineProperty(part[0], part[1], part[3]); | ||
decirc(obj, "", 0, [], undefined, 0, options); | ||
var res; | ||
try { | ||
if (replacerStack.length === 0) { | ||
res = JSON.stringify(obj, replacer, spacer); | ||
} | ||
else { | ||
part[0][part[1]] = part[2]; | ||
res = JSON.stringify(obj, replaceGetterValues(replacer), spacer); | ||
} | ||
} | ||
catch (_) { | ||
return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]"); | ||
} | ||
finally { | ||
while (arr.length !== 0) { | ||
var part = arr.pop(); | ||
if (part.length === 4) { | ||
Object.defineProperty(part[0], part[1], part[3]); | ||
} | ||
else { | ||
part[0][part[1]] = part[2]; | ||
} | ||
} | ||
} | ||
return res; | ||
} | ||
return res; | ||
} | ||
@@ -45,0 +54,0 @@ function setReplace(replace, val, k, parent) { |
{ | ||
"name": "langsmith", | ||
"version": "0.2.2-rc.0", | ||
"version": "0.2.2-rc.1", | ||
"description": "Client library to connect to the LangSmith LLM Tracing and Evaluation Platform.", | ||
@@ -5,0 +5,0 @@ "packageManager": "yarn@1.22.19", |
Sorry, the diff of this file is not supported yet
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
759091
19868