mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 01:56:46 +00:00
⚡ Enable esModuleInterop compiler option and upgrade to TypeScript 4.6 (#3106)
* ⚡ Enable `esModuleInterop` for /core * ⚡ Adjust imports in /core * ⚡ Enable `esModuleInterop` for /cli * ⚡ Adjust imports in /cli * ⚡ Enable `esModuleInterop` for /nodes-base * ⚡ Adjust imports in /nodes-base * ⚡ Make imports consistent * ⬆️ Upgrade TypeScript to 4.6 (#3109) * ⬆️ Upgrade TypeScript to 4.6 * 📦 Update package-lock.json * 🔧 Avoid erroring on untyped errors * 📘 Fix type error Co-authored-by: Jan Oberhauser <jan.oberhauser@gmail.com>
This commit is contained in:
@@ -30,7 +30,7 @@ import {
|
||||
filters,
|
||||
} from './Filters';
|
||||
|
||||
import * as moment from 'moment-timezone';
|
||||
import moment from 'moment-timezone';
|
||||
|
||||
import { validate as uuidValidate } from 'uuid';
|
||||
|
||||
@@ -397,7 +397,7 @@ export function mapFilters(filters: IDataObject[], timezone: string) {
|
||||
} else if (key === 'phone_number') {
|
||||
key = 'phone';
|
||||
} else if (key === 'date' && !['is_empty', 'is_not_empty'].includes(value.condition as string)) {
|
||||
valuePropertyName = (value.date === '') ? {} : moment.tz(value.date, timezone).utc().format();
|
||||
valuePropertyName = (value.date === '') ? {} : moment.tz(value.date, timezone).utc().format();
|
||||
} else if (key === 'boolean') {
|
||||
key = 'checkbox';
|
||||
}
|
||||
@@ -945,4 +945,4 @@ export function validateJSON(json: string | undefined): any { // tslint:disable-
|
||||
result = undefined;
|
||||
}
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user