fix(HTTP Request Node): Fix paginated requests with HttpBearerAuth (#17005)

This commit is contained in:
Tomi Turtiainen
2025-07-04 21:53:01 +03:00
committed by GitHub
parent 621745e291
commit 3b14830966
7 changed files with 49 additions and 10 deletions

View File

@@ -1,12 +1,9 @@
import { i18n } from '@n8n/i18n';
import { useWorkflowsStore } from '@/stores/workflows.store';
import type { ResolvableState } from '@/types/expressions';
import { ExpressionError, ExpressionParser, type Result } from 'n8n-workflow';
import { ExpressionError, ExpressionParser, isExpression, type Result } from 'n8n-workflow';
export const isExpression = (expr: unknown) => {
if (typeof expr !== 'string') return false;
return expr.startsWith('=');
};
export { isExpression };
export const isEmptyExpression = (expr: string) => {
return /\{\{\s*\}\}/.test(expr);
@@ -17,7 +14,7 @@ export const unwrapExpression = (expr: string) => {
};
export const removeExpressionPrefix = <T = unknown>(expr: T): T | string => {
return typeof expr === 'string' && expr.startsWith('=') ? expr.slice(1) : (expr ?? '');
return isExpression(expr) ? expr.slice(1) : (expr ?? '');
};
export const isTestableExpression = (expr: string) => {