mirror of
https://github.com/farcasclaudiu/Flowise.git
synced 2026-06-22 11:01:22 +03:00
b126472816
* feat: add JSONPathExtractor tool with lodash-based path extraction - Implement JSONPathExtractor tool for extracting values from JSON using path notation - Use lodash.get for robust path extraction supporting edge cases (numeric string keys, array indexing) - Add configurable error handling with returnNullOnError parameter - Include comprehensive test suite with 34 tests covering all scenarios - Support JSON strings, objects, and arrays as input * fix lint * Update pnpm-lock.yaml * fix: exclude test files from TypeScript compilation Prevents test files from being included in the dist folder which was causing "jest is not defined" errors during server startup. --------- Co-authored-by: Henry Heng <henryheng@flowiseai.com>
22 lines
1.1 KiB
JSON
22 lines
1.1 KiB
JSON
{
|
|
"compilerOptions": {
|
|
"lib": ["ES2020", "ES2021.String"],
|
|
"experimentalDecorators": true /* Enable experimental support for TC39 stage 2 draft decorators. */,
|
|
"emitDecoratorMetadata": true /* Emit design-type metadata for decorated declarations in source files. */,
|
|
"target": "ES2020", // or higher
|
|
"outDir": "./dist/",
|
|
"resolveJsonModule": true,
|
|
"esModuleInterop": true /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables `allowSyntheticDefaultImports` for type compatibility. */,
|
|
"forceConsistentCasingInFileNames": true /* Ensure that casing is correct in imports. */,
|
|
"strict": true /* Enable all strict type-checking options. */,
|
|
"skipLibCheck": true /* Skip type checking all .d.ts files. */,
|
|
"sourceMap": true,
|
|
"strictPropertyInitialization": false,
|
|
"useUnknownInCatchVariables": false,
|
|
"declaration": true,
|
|
"module": "commonjs"
|
|
},
|
|
"include": ["src", "nodes", "credentials"],
|
|
"exclude": ["gulpfile.ts", "node_modules", "dist", "**/*.test.ts", "**/*.test.js", "**/*.spec.ts", "**/*.spec.js"]
|
|
}
|