mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
fix(HTTP Request Node): Fix paginated requests with HttpBearerAuth (#17005)
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user