From 38dacc0c058bcf61e5afa9d8f411b998ef528cc8 Mon Sep 17 00:00:00 2001 From: amitjoshi438 <54068463+amitjoshi438@users.noreply.github.com> Date: Tue, 2 Apr 2024 11:16:09 +0530 Subject: [PATCH] Update xmldom package version (#892) Co-authored-by: amitjoshi Co-authored-by: tyaginidhi --- package-lock.json | 24 +++++++++--------------- package.json | 3 +-- src/common/copilot/dataverseMetadata.ts | 2 +- 3 files changed, 11 insertions(+), 18 deletions(-) diff --git a/package-lock.json b/package-lock.json index c6a86fdb..a5bd47a3 100644 --- a/package-lock.json +++ b/package-lock.json @@ -15,8 +15,8 @@ "@microsoft/generator-powerpages": "1.21.19", "@types/jwt-decode": "2.2.0", "@types/node-fetch": "^2.6.2", - "@types/xmldom": "^0.1.34", "@vscode/extension-telemetry": "^0.6.2", + "@xmldom/xmldom": "^0.8.10", "cockatiel": "^3.1.1", "command-exists": "^1.2.9", "find-process": "^1.4.7", @@ -36,7 +36,6 @@ "vscode-languageserver": "^7.0.0", "vscode-languageserver-textdocument": "^1.0.1", "worker-loader": "^3.0.8", - "xmldom": "^0.6.0", "yaml": "^2.2.2" }, "devDependencies": { @@ -3442,11 +3441,6 @@ "integrity": "sha512-56/MAlX5WMsPVbOg7tAxnYvNYMMWr/QJiIp6BxVSW3JJXUVzzOn64qW8TzQyMSqSUFM2+PVI4aUHcHOzIz/1tg==", "dev": true }, - "node_modules/@types/xmldom": { - "version": "0.1.34", - "resolved": "https://registry.npmjs.org/@types/xmldom/-/xmldom-0.1.34.tgz", - "integrity": "sha512-7eZFfxI9XHYjJJuugddV6N5YNeXgQE1lArWOcd1eCOKWb/FGs5SIjacSYuEJuwhsGS3gy4RuZ5EUIcqYscuPDA==" - }, "node_modules/@types/yauzl": { "version": "2.10.0", "resolved": "https://registry.npmjs.org/@types/yauzl/-/yauzl-2.10.0.tgz", @@ -4211,6 +4205,14 @@ } } }, + "node_modules/@xmldom/xmldom": { + "version": "0.8.10", + "resolved": "https://registry.npmjs.org/@xmldom/xmldom/-/xmldom-0.8.10.tgz", + "integrity": "sha512-2WALfTl4xo2SkGCYRt6rDTFfk9R1czmBvUQy12gK2KuRKIpWEhcbbzy8EZXtz/jkRqHX8bFEc6FC1HjX4TUWYw==", + "engines": { + "node": ">=10.0.0" + } + }, "node_modules/@xtuc/ieee754": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/@xtuc/ieee754/-/ieee754-1.2.0.tgz", @@ -21421,14 +21423,6 @@ "node": ">=4.0" } }, - "node_modules/xmldom": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/xmldom/-/xmldom-0.6.0.tgz", - "integrity": "sha512-iAcin401y58LckRZ0TkI4k0VSM1Qg0KGSc3i8rU+xrxe19A/BN1zHyVSJY7uoutVlaTSzYyk/v5AmkewAP7jtg==", - "engines": { - "node": ">=10.0.0" - } - }, "node_modules/xmlhttprequest-ssl": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/xmlhttprequest-ssl/-/xmlhttprequest-ssl-2.0.0.tgz", diff --git a/package.json b/package.json index aa9cd1da..1ddf0c51 100644 --- a/package.json +++ b/package.json @@ -1091,8 +1091,8 @@ "@microsoft/generator-powerpages": "1.21.19", "@types/jwt-decode": "2.2.0", "@types/node-fetch": "^2.6.2", - "@types/xmldom": "^0.1.34", "@vscode/extension-telemetry": "^0.6.2", + "@xmldom/xmldom": "^0.8.10", "cockatiel": "^3.1.1", "command-exists": "^1.2.9", "find-process": "^1.4.7", @@ -1112,7 +1112,6 @@ "vscode-languageserver": "^7.0.0", "vscode-languageserver-textdocument": "^1.0.1", "worker-loader": "^3.0.8", - "xmldom": "^0.6.0", "yaml": "^2.2.2" }, "__metadata": { diff --git a/src/common/copilot/dataverseMetadata.ts b/src/common/copilot/dataverseMetadata.ts index e3563f5b..f4ee4469 100644 --- a/src/common/copilot/dataverseMetadata.ts +++ b/src/common/copilot/dataverseMetadata.ts @@ -11,7 +11,7 @@ import { ITelemetry } from "../../client/telemetry/ITelemetry"; import { sendTelemetryEvent } from "./telemetry/copilotTelemetry"; import { CopilotDataverseMetadataFailureEvent, CopilotDataverseMetadataSuccessEvent, CopilotGetEntityFailureEvent, CopilotYamlParsingFailureEvent } from "./telemetry/telemetryConstants"; import { getEntityMetadata } from "../../web/client/utilities/fileAndEntityUtil"; -import { DOMParser } from "xmldom"; +import { DOMParser } from "@xmldom/xmldom"; import { ATTRIBUTE_CLASSID, ATTRIBUTE_DATAFIELD_NAME, ATTRIBUTE_DESCRIPTION, ControlClassIdMap, SYSTEFORMS_API_PATH } from "./constants";