MCPcopy Create free account
hub / github.com/FlowiseAI/Flowise / tryGetJsonSpaces

Function tryGetJsonSpaces

packages/components/src/handler.ts:184–190  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

182}
183
184function tryGetJsonSpaces() {
185 try {
186 return parseInt(getEnvironmentVariable('LOG_JSON_SPACES') ?? '2')
187 } catch (err) {
188 return 2
189 }
190}
191
192export function tryJsonStringify(obj: unknown, fallback: string) {
193 try {

Callers 1

tryJsonStringifyFunction · 0.85

Calls 1

getEnvironmentVariableFunction · 0.90

Tested by

no test coverage detected