langfuse-core
Advanced tools
Comparing version 3.20.1-alpha.0 to 3.20.1-alpha.3
@@ -355,4 +355,7 @@ 'use strict'; | ||
} | ||
function isErrorWithResponse(error) { | ||
return error instanceof Error && "response" in error && error.response !== null && typeof error.response === "object" && "status" in error.response; | ||
} | ||
function logIngestionError(error) { | ||
if (error instanceof Error && 'response' in error && error.response instanceof Response) { | ||
if (isErrorWithResponse(error)) { | ||
const code = error.response.status; | ||
@@ -359,0 +362,0 @@ const errorResponse = getErrorResponseByCode(code); |
{ | ||
"name": "langfuse-core", | ||
"version": "3.20.1-alpha.0", | ||
"version": "3.20.1-alpha.3", | ||
"engines": { | ||
@@ -40,3 +40,3 @@ "node": ">=18" | ||
}, | ||
"gitHead": "acc9d2ef5f77d59a74eb5e7cbd242ecfeb00132c" | ||
"gitHead": "58e226ff016c975cb2ec71d2f1b73fbcfb21961a" | ||
} |
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
584273
6563