diff --git a/package-lock.json b/package-lock.json index aaf75cd6d..0fbe0a508 100644 --- a/package-lock.json +++ b/package-lock.json @@ -73071,6 +73071,7 @@ "d3-array": "^3.2.3", "d3-format": "^3.1.0", "d3-shape": "^3.2.0", + "date-fns": "^3.4.0", "dompurify": "3.0.5", "echarts": "^5.4.3", "is-hotkey": "^0.2.0", @@ -73138,7 +73139,6 @@ "babel-plugin-formatjs": "10.5.3", "copyfiles": "^2.4.1", "cytoscape": "^3.25.0", - "date-fns": "^3.4.0", "eslint-config-iot-app-kit": "10.4.0", "eslint-plugin-jsx-a11y": "^6.8.0", "flush-promises": "^1.0.2", @@ -73696,7 +73696,6 @@ "version": "3.4.0", "resolved": "https://registry.npmjs.org/date-fns/-/date-fns-3.4.0.tgz", "integrity": "sha512-Akz4R8J9MXBsOgF1QeWeCsbv6pntT5KCPjU0Q9prBxVmWJYPLhwAIsNg3b0QAdr0ttiozYLD3L/af7Ra0jqYXw==", - "dev": true, "funding": { "type": "github", "url": "https://github.com/sponsors/kossnocorp" @@ -90408,8 +90407,7 @@ "date-fns": { "version": "3.4.0", "resolved": "https://registry.npmjs.org/date-fns/-/date-fns-3.4.0.tgz", - "integrity": "sha512-Akz4R8J9MXBsOgF1QeWeCsbv6pntT5KCPjU0Q9prBxVmWJYPLhwAIsNg3b0QAdr0ttiozYLD3L/af7Ra0jqYXw==", - "dev": true + "integrity": "sha512-Akz4R8J9MXBsOgF1QeWeCsbv6pntT5KCPjU0Q9prBxVmWJYPLhwAIsNg3b0QAdr0ttiozYLD3L/af7Ra0jqYXw==" }, "domexception": { "version": "4.0.0", diff --git a/packages/react-components/package.json b/packages/react-components/package.json index ac39d167f..4b389b950 100644 --- a/packages/react-components/package.json +++ b/packages/react-components/package.json @@ -96,7 +96,6 @@ "babel-plugin-formatjs": "10.5.3", "copyfiles": "^2.4.1", "cytoscape": "^3.25.0", - "date-fns": "^3.4.0", "eslint-config-iot-app-kit": "10.4.0", "eslint-plugin-jsx-a11y": "^6.8.0", "flush-promises": "^1.0.2", @@ -125,6 +124,7 @@ "d3-array": "^3.2.3", "d3-format": "^3.1.0", "d3-shape": "^3.2.0", + "date-fns": "^3.4.0", "dompurify": "3.0.5", "echarts": "^5.4.3", "is-hotkey": "^0.2.0", diff --git a/packages/react-components/src/data/transformers/anomaly/object/transformer.ts b/packages/react-components/src/data/transformers/anomaly/object/transformer.ts index dc181c4e9..764ddd760 100644 --- a/packages/react-components/src/data/transformers/anomaly/object/transformer.ts +++ b/packages/react-components/src/data/transformers/anomaly/object/transformer.ts @@ -10,8 +10,7 @@ import { import { AnomalyObjectDataSource } from './datasource'; import { AnomalyObjectDataSourceValue, Diagnostic, Diagnostics } from './input'; import { AnomalyData, AnomalyDescription, DiagnosticData } from './output'; -import { isAfter } from 'date-fns/isAfter'; -import { isBefore } from 'date-fns/isBefore'; +import { isAfter, isBefore } from 'date-fns'; /** * Transformer for AnomalyResult type responses from