From 52a2e25a25e9a009a536d8a371d9404e75d756f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E0=A4=95=E0=A4=BE=E0=A4=B0=E0=A4=A4=E0=A5=8B=E0=A4=AB?= =?UTF-8?q?=E0=A5=8D=E0=A4=AB=E0=A5=87=E0=A4=B2=E0=A4=B8=E0=A5=8D=E0=A4=95?= =?UTF-8?q?=E0=A5=8D=E0=A4=B0=E0=A4=BF=E0=A4=AA=E0=A5=8D=E0=A4=9F=E2=84=A2?= Date: Mon, 15 Jan 2024 15:45:33 +0100 Subject: [PATCH] fix(core): Replace all `moment` imports with `moment-timezone` (#8337) --- packages/nodes-base/nodes/Airtable/AirtableTrigger.node.ts | 2 +- .../nodes/BambooHr/v1/actions/employee/create/execute.ts | 2 +- .../nodes/BambooHr/v1/actions/employee/update/execute.ts | 2 +- packages/nodes-base/nodes/Cortex/GenericFunctions.ts | 2 +- packages/nodes-base/nodes/DateTime/V2/GenericFunctions.ts | 2 +- packages/nodes-base/nodes/DateTime/test/node/DateTime.test.ts | 2 +- packages/nodes-base/nodes/Filter/V1/GenericFunctions.ts | 2 +- packages/nodes-base/nodes/GoToWebinar/GenericFunctions.ts | 2 +- .../nodes/Google/Calendar/GoogleCalendarTrigger.node.ts | 2 +- .../nodes-base/nodes/Google/Contacts/GoogleContacts.node.ts | 2 +- .../nodes-base/nodes/Google/Drive/GoogleDriveTrigger.node.ts | 2 +- packages/nodes-base/nodes/Hubspot/V1/GenericFunctions.ts | 2 +- packages/nodes-base/nodes/Hubspot/V2/GenericFunctions.ts | 2 +- packages/nodes-base/nodes/If/V1/IfV1.node.ts | 2 +- packages/nodes-base/nodes/Mailchimp/Mailchimp.node.ts | 2 +- packages/nodes-base/nodes/Mandrill/Mandrill.node.ts | 2 +- packages/nodes-base/nodes/Nasa/Nasa.node.ts | 2 +- packages/nodes-base/nodes/Notion/NotionTrigger.node.ts | 2 +- packages/nodes-base/nodes/Orbit/Orbit.node.ts | 2 +- packages/nodes-base/nodes/Oura/Oura.node.ts | 2 +- packages/nodes-base/nodes/Paddle/Paddle.node.ts | 2 +- .../nodes-base/nodes/RssFeedRead/RssFeedReadTrigger.node.ts | 2 +- packages/nodes-base/nodes/SeaTable/SeaTableTrigger.node.ts | 2 +- .../nodes/SecurityScorecard/SecurityScorecard.node.ts | 2 +- packages/nodes-base/nodes/Slack/V1/SlackV1.node.ts | 2 +- packages/nodes-base/nodes/Slack/V2/SlackV2.node.ts | 2 +- packages/nodes-base/nodes/Spontit/Spontit.node.ts | 2 +- packages/nodes-base/nodes/Strava/Strava.node.ts | 2 +- packages/nodes-base/nodes/TheHive/GenericFunctions.ts | 2 +- packages/nodes-base/nodes/Toggl/TogglTrigger.node.ts | 2 +- packages/nodes-base/nodes/Twist/Twist.node.ts | 2 +- .../nodes/UnleashedSoftware/UnleashedSoftware.node.ts | 2 +- .../Datacenter/VenafiTlsProtectDatacenterTrigger.node.ts | 2 +- packages/nodes-base/package.json | 1 - pnpm-lock.yaml | 3 --- 35 files changed, 33 insertions(+), 37 deletions(-) diff --git a/packages/nodes-base/nodes/Airtable/AirtableTrigger.node.ts b/packages/nodes-base/nodes/Airtable/AirtableTrigger.node.ts index 405c8abe6f..6031ae754e 100644 --- a/packages/nodes-base/nodes/Airtable/AirtableTrigger.node.ts +++ b/packages/nodes-base/nodes/Airtable/AirtableTrigger.node.ts @@ -7,7 +7,7 @@ import type { } from 'n8n-workflow'; import { NodeOperationError } from 'n8n-workflow'; -import moment from 'moment'; +import moment from 'moment-timezone'; import type { IRecord } from './v1/GenericFunctions'; import { apiRequestAllItems, downloadRecordAttachments } from './v1/GenericFunctions'; diff --git a/packages/nodes-base/nodes/BambooHr/v1/actions/employee/create/execute.ts b/packages/nodes-base/nodes/BambooHr/v1/actions/employee/create/execute.ts index 9ebe4ce576..33c2982776 100644 --- a/packages/nodes-base/nodes/BambooHr/v1/actions/employee/create/execute.ts +++ b/packages/nodes-base/nodes/BambooHr/v1/actions/employee/create/execute.ts @@ -1,6 +1,6 @@ import type { IExecuteFunctions, IDataObject, INodeExecutionData } from 'n8n-workflow'; -import moment from 'moment'; +import moment from 'moment-timezone'; import { capitalCase } from 'change-case'; import { apiRequest } from '../../../transport'; diff --git a/packages/nodes-base/nodes/BambooHr/v1/actions/employee/update/execute.ts b/packages/nodes-base/nodes/BambooHr/v1/actions/employee/update/execute.ts index aad5031e91..76d1bdd562 100644 --- a/packages/nodes-base/nodes/BambooHr/v1/actions/employee/update/execute.ts +++ b/packages/nodes-base/nodes/BambooHr/v1/actions/employee/update/execute.ts @@ -1,7 +1,7 @@ import type { IExecuteFunctions, IDataObject, INodeExecutionData } from 'n8n-workflow'; import { NodeOperationError } from 'n8n-workflow'; -import moment from 'moment'; +import moment from 'moment-timezone'; import { capitalCase } from 'change-case'; import { apiRequest } from '../../../transport'; diff --git a/packages/nodes-base/nodes/Cortex/GenericFunctions.ts b/packages/nodes-base/nodes/Cortex/GenericFunctions.ts index 8b51c79b8f..31a27cb77e 100644 --- a/packages/nodes-base/nodes/Cortex/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Cortex/GenericFunctions.ts @@ -7,7 +7,7 @@ import type { ILoadOptionsFunctions, } from 'n8n-workflow'; -import moment from 'moment'; +import moment from 'moment-timezone'; export async function cortexApiRequest( this: IHookFunctions | IExecuteFunctions | ILoadOptionsFunctions, diff --git a/packages/nodes-base/nodes/DateTime/V2/GenericFunctions.ts b/packages/nodes-base/nodes/DateTime/V2/GenericFunctions.ts index 7f0dbe8f27..215c0f60d3 100644 --- a/packages/nodes-base/nodes/DateTime/V2/GenericFunctions.ts +++ b/packages/nodes-base/nodes/DateTime/V2/GenericFunctions.ts @@ -1,5 +1,5 @@ import { DateTime } from 'luxon'; -import moment from 'moment'; +import moment from 'moment-timezone'; import type { IExecuteFunctions } from 'n8n-workflow'; import { NodeOperationError } from 'n8n-workflow'; diff --git a/packages/nodes-base/nodes/DateTime/test/node/DateTime.test.ts b/packages/nodes-base/nodes/DateTime/test/node/DateTime.test.ts index 99110c67b0..60c630d076 100644 --- a/packages/nodes-base/nodes/DateTime/test/node/DateTime.test.ts +++ b/packages/nodes-base/nodes/DateTime/test/node/DateTime.test.ts @@ -1,4 +1,4 @@ -import moment from 'moment'; +import moment from 'moment-timezone'; import { testWorkflows, getWorkflowFilenames } from '@test/nodes/Helpers'; const workflows = getWorkflowFilenames(__dirname); diff --git a/packages/nodes-base/nodes/Filter/V1/GenericFunctions.ts b/packages/nodes-base/nodes/Filter/V1/GenericFunctions.ts index d25c7b0ecc..06288535b1 100644 --- a/packages/nodes-base/nodes/Filter/V1/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Filter/V1/GenericFunctions.ts @@ -1,7 +1,7 @@ import type { INode, NodeParameterValue } from 'n8n-workflow'; import { NodeOperationError } from 'n8n-workflow'; -import moment from 'moment'; +import moment from 'moment-timezone'; const isDateObject = (value: NodeParameterValue) => Object.prototype.toString.call(value) === '[object Date]'; diff --git a/packages/nodes-base/nodes/GoToWebinar/GenericFunctions.ts b/packages/nodes-base/nodes/GoToWebinar/GenericFunctions.ts index 1a56ff146d..6ccdcb16bb 100644 --- a/packages/nodes-base/nodes/GoToWebinar/GenericFunctions.ts +++ b/packages/nodes-base/nodes/GoToWebinar/GenericFunctions.ts @@ -10,7 +10,7 @@ import { NodeApiError } from 'n8n-workflow'; import type { OptionsWithUri } from 'request'; -import moment from 'moment'; +import moment from 'moment-timezone'; import * as losslessJSON from 'lossless-json'; diff --git a/packages/nodes-base/nodes/Google/Calendar/GoogleCalendarTrigger.node.ts b/packages/nodes-base/nodes/Google/Calendar/GoogleCalendarTrigger.node.ts index ed3456220e..a79726cef5 100644 --- a/packages/nodes-base/nodes/Google/Calendar/GoogleCalendarTrigger.node.ts +++ b/packages/nodes-base/nodes/Google/Calendar/GoogleCalendarTrigger.node.ts @@ -7,7 +7,7 @@ import type { } from 'n8n-workflow'; import { NodeApiError, NodeOperationError } from 'n8n-workflow'; -import moment from 'moment'; +import moment from 'moment-timezone'; import { encodeURIComponentOnce, diff --git a/packages/nodes-base/nodes/Google/Contacts/GoogleContacts.node.ts b/packages/nodes-base/nodes/Google/Contacts/GoogleContacts.node.ts index cd517ee646..098f991042 100644 --- a/packages/nodes-base/nodes/Google/Contacts/GoogleContacts.node.ts +++ b/packages/nodes-base/nodes/Google/Contacts/GoogleContacts.node.ts @@ -8,7 +8,7 @@ import type { INodeTypeDescription, } from 'n8n-workflow'; -import moment from 'moment'; +import moment from 'moment-timezone'; import { allFields, cleanData, diff --git a/packages/nodes-base/nodes/Google/Drive/GoogleDriveTrigger.node.ts b/packages/nodes-base/nodes/Google/Drive/GoogleDriveTrigger.node.ts index adb1f094a0..50efeade16 100644 --- a/packages/nodes-base/nodes/Google/Drive/GoogleDriveTrigger.node.ts +++ b/packages/nodes-base/nodes/Google/Drive/GoogleDriveTrigger.node.ts @@ -9,7 +9,7 @@ import type { } from 'n8n-workflow'; import { NodeApiError } from 'n8n-workflow'; -import moment from 'moment'; +import moment from 'moment-timezone'; import { GOOGLE_DRIVE_FILE_URL_REGEX, GOOGLE_DRIVE_FOLDER_URL_REGEX } from '../constants'; import { extractId, googleApiRequest, googleApiRequestAllItems } from './v1/GenericFunctions'; import { fileSearch, folderSearch } from './v2/methods/listSearch'; diff --git a/packages/nodes-base/nodes/Hubspot/V1/GenericFunctions.ts b/packages/nodes-base/nodes/Hubspot/V1/GenericFunctions.ts index b93c778ed2..2e9ce210c1 100644 --- a/packages/nodes-base/nodes/Hubspot/V1/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Hubspot/V1/GenericFunctions.ts @@ -11,7 +11,7 @@ import type { } from 'n8n-workflow'; import { NodeApiError } from 'n8n-workflow'; -import moment from 'moment'; +import moment from 'moment-timezone'; export async function hubspotApiRequest( this: IHookFunctions | IExecuteFunctions | ILoadOptionsFunctions, diff --git a/packages/nodes-base/nodes/Hubspot/V2/GenericFunctions.ts b/packages/nodes-base/nodes/Hubspot/V2/GenericFunctions.ts index 9604dba0c6..a0a8a8f570 100644 --- a/packages/nodes-base/nodes/Hubspot/V2/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Hubspot/V2/GenericFunctions.ts @@ -11,7 +11,7 @@ import type { } from 'n8n-workflow'; import { NodeApiError } from 'n8n-workflow'; -import moment from 'moment'; +import moment from 'moment-timezone'; export async function hubspotApiRequest( this: IHookFunctions | IExecuteFunctions | ILoadOptionsFunctions, diff --git a/packages/nodes-base/nodes/If/V1/IfV1.node.ts b/packages/nodes-base/nodes/If/V1/IfV1.node.ts index 16118799d6..39e340c1db 100644 --- a/packages/nodes-base/nodes/If/V1/IfV1.node.ts +++ b/packages/nodes-base/nodes/If/V1/IfV1.node.ts @@ -1,4 +1,4 @@ -import moment from 'moment'; +import moment from 'moment-timezone'; import type { IExecuteFunctions, INodeExecutionData, diff --git a/packages/nodes-base/nodes/Mailchimp/Mailchimp.node.ts b/packages/nodes-base/nodes/Mailchimp/Mailchimp.node.ts index c083770c7e..07d8345826 100644 --- a/packages/nodes-base/nodes/Mailchimp/Mailchimp.node.ts +++ b/packages/nodes-base/nodes/Mailchimp/Mailchimp.node.ts @@ -8,7 +8,7 @@ import type { INodeTypeDescription, } from 'n8n-workflow'; -import moment from 'moment'; +import moment from 'moment-timezone'; import { campaignFieldsMetadata, mailchimpApiRequest, diff --git a/packages/nodes-base/nodes/Mandrill/Mandrill.node.ts b/packages/nodes-base/nodes/Mandrill/Mandrill.node.ts index 21dca7e241..ab740ed87d 100644 --- a/packages/nodes-base/nodes/Mandrill/Mandrill.node.ts +++ b/packages/nodes-base/nodes/Mandrill/Mandrill.node.ts @@ -10,7 +10,7 @@ import type { } from 'n8n-workflow'; import { NodeApiError } from 'n8n-workflow'; -import moment from 'moment'; +import moment from 'moment-timezone'; import map from 'lodash/map'; import isEmpty from 'lodash/isEmpty'; diff --git a/packages/nodes-base/nodes/Nasa/Nasa.node.ts b/packages/nodes-base/nodes/Nasa/Nasa.node.ts index 14e601d99a..ed8c825154 100644 --- a/packages/nodes-base/nodes/Nasa/Nasa.node.ts +++ b/packages/nodes-base/nodes/Nasa/Nasa.node.ts @@ -7,7 +7,7 @@ import type { } from 'n8n-workflow'; import { NodeOperationError } from 'n8n-workflow'; -import moment from 'moment'; +import moment from 'moment-timezone'; import { nasaApiRequest, nasaApiRequestAllItems } from './GenericFunctions'; export class Nasa implements INodeType { diff --git a/packages/nodes-base/nodes/Notion/NotionTrigger.node.ts b/packages/nodes-base/nodes/Notion/NotionTrigger.node.ts index 605f0bb515..5c3576402a 100644 --- a/packages/nodes-base/nodes/Notion/NotionTrigger.node.ts +++ b/packages/nodes-base/nodes/Notion/NotionTrigger.node.ts @@ -6,7 +6,7 @@ import type { INodeTypeDescription, } from 'n8n-workflow'; -import moment from 'moment'; +import moment from 'moment-timezone'; import { notionApiRequest, simplifyObjects } from './GenericFunctions'; import { getDatabases } from './SearchFunctions'; diff --git a/packages/nodes-base/nodes/Orbit/Orbit.node.ts b/packages/nodes-base/nodes/Orbit/Orbit.node.ts index 77f720032a..f5faa28220 100644 --- a/packages/nodes-base/nodes/Orbit/Orbit.node.ts +++ b/packages/nodes-base/nodes/Orbit/Orbit.node.ts @@ -8,7 +8,7 @@ import type { INodeTypeDescription, } from 'n8n-workflow'; -import moment from 'moment'; +import moment from 'moment-timezone'; import { orbitApiRequest, orbitApiRequestAllItems, resolveIdentities } from './GenericFunctions'; import { activityFields, activityOperations } from './ActivityDescription'; diff --git a/packages/nodes-base/nodes/Oura/Oura.node.ts b/packages/nodes-base/nodes/Oura/Oura.node.ts index 68b4239895..ecadcb9fcc 100644 --- a/packages/nodes-base/nodes/Oura/Oura.node.ts +++ b/packages/nodes-base/nodes/Oura/Oura.node.ts @@ -6,7 +6,7 @@ import type { INodeTypeDescription, } from 'n8n-workflow'; -import moment from 'moment'; +import moment from 'moment-timezone'; import { ouraApiRequest } from './GenericFunctions'; import { profileOperations } from './ProfileDescription'; diff --git a/packages/nodes-base/nodes/Paddle/Paddle.node.ts b/packages/nodes-base/nodes/Paddle/Paddle.node.ts index 8d90eb41c3..3f335307fe 100644 --- a/packages/nodes-base/nodes/Paddle/Paddle.node.ts +++ b/packages/nodes-base/nodes/Paddle/Paddle.node.ts @@ -10,7 +10,7 @@ import type { } from 'n8n-workflow'; import { NodeApiError, NodeOperationError } from 'n8n-workflow'; -import moment from 'moment'; +import moment from 'moment-timezone'; import { couponFields, couponOperations } from './CouponDescription'; import { paddleApiRequest, paddleApiRequestAllItems, validateJSON } from './GenericFunctions'; diff --git a/packages/nodes-base/nodes/RssFeedRead/RssFeedReadTrigger.node.ts b/packages/nodes-base/nodes/RssFeedRead/RssFeedReadTrigger.node.ts index 9f7c00ae64..366b5d07b8 100644 --- a/packages/nodes-base/nodes/RssFeedRead/RssFeedReadTrigger.node.ts +++ b/packages/nodes-base/nodes/RssFeedRead/RssFeedReadTrigger.node.ts @@ -7,7 +7,7 @@ import type { } from 'n8n-workflow'; import { NodeOperationError } from 'n8n-workflow'; import Parser from 'rss-parser'; -import moment from 'moment'; +import moment from 'moment-timezone'; export class RssFeedReadTrigger implements INodeType { description: INodeTypeDescription = { diff --git a/packages/nodes-base/nodes/SeaTable/SeaTableTrigger.node.ts b/packages/nodes-base/nodes/SeaTable/SeaTableTrigger.node.ts index cc5aa74b50..ab90e22034 100644 --- a/packages/nodes-base/nodes/SeaTable/SeaTableTrigger.node.ts +++ b/packages/nodes-base/nodes/SeaTable/SeaTableTrigger.node.ts @@ -7,7 +7,7 @@ import type { INodeTypeDescription, } from 'n8n-workflow'; -import moment from 'moment'; +import moment from 'moment-timezone'; import { getColumns, rowFormatColumns, seaTableApiRequest, simplify } from './GenericFunctions'; import type { ICtx, IRow, IRowResponse } from './Interfaces'; diff --git a/packages/nodes-base/nodes/SecurityScorecard/SecurityScorecard.node.ts b/packages/nodes-base/nodes/SecurityScorecard/SecurityScorecard.node.ts index edc11c79d7..978135609e 100644 --- a/packages/nodes-base/nodes/SecurityScorecard/SecurityScorecard.node.ts +++ b/packages/nodes-base/nodes/SecurityScorecard/SecurityScorecard.node.ts @@ -6,7 +6,7 @@ import type { INodeTypeDescription, } from 'n8n-workflow'; -import moment from 'moment'; +import moment from 'moment-timezone'; import { companyFields, companyOperations } from './descriptions/CompanyDescription'; import { industryFields, industryOperations } from './descriptions/IndustryDescription'; diff --git a/packages/nodes-base/nodes/Slack/V1/SlackV1.node.ts b/packages/nodes-base/nodes/Slack/V1/SlackV1.node.ts index 013a53f569..b247a0b810 100644 --- a/packages/nodes-base/nodes/Slack/V1/SlackV1.node.ts +++ b/packages/nodes-base/nodes/Slack/V1/SlackV1.node.ts @@ -11,7 +11,7 @@ import type { } from 'n8n-workflow'; import { NodeOperationError } from 'n8n-workflow'; -import moment from 'moment'; +import moment from 'moment-timezone'; import { channelFields, channelOperations } from './ChannelDescription'; import { messageFields, messageOperations } from './MessageDescription'; import { starFields, starOperations } from './StarDescription'; diff --git a/packages/nodes-base/nodes/Slack/V2/SlackV2.node.ts b/packages/nodes-base/nodes/Slack/V2/SlackV2.node.ts index e29290f76d..5f66519b45 100644 --- a/packages/nodes-base/nodes/Slack/V2/SlackV2.node.ts +++ b/packages/nodes-base/nodes/Slack/V2/SlackV2.node.ts @@ -17,7 +17,7 @@ import type { import { BINARY_ENCODING, NodeOperationError } from 'n8n-workflow'; -import moment from 'moment'; +import moment from 'moment-timezone'; import { channelFields, channelOperations } from './ChannelDescription'; import { messageFields, messageOperations } from './MessageDescription'; import { starFields, starOperations } from './StarDescription'; diff --git a/packages/nodes-base/nodes/Spontit/Spontit.node.ts b/packages/nodes-base/nodes/Spontit/Spontit.node.ts index 850a771807..a2e9475f9e 100644 --- a/packages/nodes-base/nodes/Spontit/Spontit.node.ts +++ b/packages/nodes-base/nodes/Spontit/Spontit.node.ts @@ -6,7 +6,7 @@ import type { INodeTypeDescription, } from 'n8n-workflow'; -import moment from 'moment'; +import moment from 'moment-timezone'; import { spontitApiRequest } from './GenericFunctions'; import { pushFields, pushOperations } from './PushDescription'; diff --git a/packages/nodes-base/nodes/Strava/Strava.node.ts b/packages/nodes-base/nodes/Strava/Strava.node.ts index 565aaf0a63..f88c9c94dc 100644 --- a/packages/nodes-base/nodes/Strava/Strava.node.ts +++ b/packages/nodes-base/nodes/Strava/Strava.node.ts @@ -6,7 +6,7 @@ import type { INodeTypeDescription, } from 'n8n-workflow'; -import moment from 'moment'; +import moment from 'moment-timezone'; import { stravaApiRequest, stravaApiRequestAllItems } from './GenericFunctions'; import { activityFields, activityOperations } from './ActivityDescription'; diff --git a/packages/nodes-base/nodes/TheHive/GenericFunctions.ts b/packages/nodes-base/nodes/TheHive/GenericFunctions.ts index 3e6e5e52e0..14132a0feb 100644 --- a/packages/nodes-base/nodes/TheHive/GenericFunctions.ts +++ b/packages/nodes-base/nodes/TheHive/GenericFunctions.ts @@ -8,7 +8,7 @@ import type { } from 'n8n-workflow'; import { ApplicationError, jsonParse } from 'n8n-workflow'; -import moment from 'moment'; +import moment from 'moment-timezone'; import { Eq } from './QueryFunctions'; export async function theHiveApiRequest( diff --git a/packages/nodes-base/nodes/Toggl/TogglTrigger.node.ts b/packages/nodes-base/nodes/Toggl/TogglTrigger.node.ts index 3278ed27b6..fcfcf87846 100644 --- a/packages/nodes-base/nodes/Toggl/TogglTrigger.node.ts +++ b/packages/nodes-base/nodes/Toggl/TogglTrigger.node.ts @@ -8,7 +8,7 @@ import type { } from 'n8n-workflow'; import { NodeApiError, NodeOperationError } from 'n8n-workflow'; -import moment from 'moment'; +import moment from 'moment-timezone'; import { togglApiRequest } from './GenericFunctions'; export class TogglTrigger implements INodeType { diff --git a/packages/nodes-base/nodes/Twist/Twist.node.ts b/packages/nodes-base/nodes/Twist/Twist.node.ts index 0f49d701b4..c5b35aece3 100644 --- a/packages/nodes-base/nodes/Twist/Twist.node.ts +++ b/packages/nodes-base/nodes/Twist/Twist.node.ts @@ -9,7 +9,7 @@ import type { } from 'n8n-workflow'; import { v4 as uuid } from 'uuid'; -import moment from 'moment'; +import moment from 'moment-timezone'; import { twistApiRequest } from './GenericFunctions'; import { channelFields, channelOperations } from './ChannelDescription'; diff --git a/packages/nodes-base/nodes/UnleashedSoftware/UnleashedSoftware.node.ts b/packages/nodes-base/nodes/UnleashedSoftware/UnleashedSoftware.node.ts index 49c15578fe..6bbab8a80e 100644 --- a/packages/nodes-base/nodes/UnleashedSoftware/UnleashedSoftware.node.ts +++ b/packages/nodes-base/nodes/UnleashedSoftware/UnleashedSoftware.node.ts @@ -6,7 +6,7 @@ import type { INodeTypeDescription, } from 'n8n-workflow'; -import moment from 'moment'; +import moment from 'moment-timezone'; import { convertNETDates, unleashedApiRequest, diff --git a/packages/nodes-base/nodes/Venafi/Datacenter/VenafiTlsProtectDatacenterTrigger.node.ts b/packages/nodes-base/nodes/Venafi/Datacenter/VenafiTlsProtectDatacenterTrigger.node.ts index 7035cbdaf2..518e539a59 100644 --- a/packages/nodes-base/nodes/Venafi/Datacenter/VenafiTlsProtectDatacenterTrigger.node.ts +++ b/packages/nodes-base/nodes/Venafi/Datacenter/VenafiTlsProtectDatacenterTrigger.node.ts @@ -6,7 +6,7 @@ import type { INodeTypeDescription, } from 'n8n-workflow'; -import moment from 'moment'; +import moment from 'moment-timezone'; import { venafiApiRequest } from './GenericFunctions'; diff --git a/packages/nodes-base/package.json b/packages/nodes-base/package.json index e7d75e99f6..eb4fbbb36c 100644 --- a/packages/nodes-base/package.json +++ b/packages/nodes-base/package.json @@ -860,7 +860,6 @@ "luxon": "3.3.0", "mailparser": "3.5.0", "minifaker": "1.34.1", - "moment": "2.29.4", "moment-timezone": "0.5.37", "mongodb": "4.17.1", "mqtt": "5.0.2", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index e838175e21..ccd855c9a5 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1308,9 +1308,6 @@ importers: minifaker: specifier: 1.34.1 version: 1.34.1 - moment: - specifier: 2.29.4 - version: 2.29.4 moment-timezone: specifier: 0.5.37 version: 0.5.37