@azure/core-xml
Advanced tools
Comparing version 1.3.3-alpha.20230106.1 to 1.3.3-alpha.20230223.2
@@ -15,7 +15,12 @@ // Copyright (c) Microsoft Corporation. | ||
let ttPolicy; | ||
if (typeof self.trustedTypes !== "undefined") { | ||
ttPolicy = self.trustedTypes.createPolicy("@azure/core-xml#xml.browser", { | ||
createHTML: (s) => s, | ||
}); | ||
try { | ||
if (typeof self.trustedTypes !== "undefined") { | ||
ttPolicy = self.trustedTypes.createPolicy("@azure/core-xml#xml.browser", { | ||
createHTML: (s) => s, | ||
}); | ||
} | ||
} | ||
catch (e) { | ||
console.warn('Could not create trusted types policy "@azure/core-xml#xml.browser"'); | ||
} | ||
const doc = document.implementation.createDocument(null, null, null); | ||
@@ -22,0 +27,0 @@ const parser = new DOMParser(); |
{ | ||
"name": "@azure/core-xml", | ||
"version": "1.3.3-alpha.20230106.1", | ||
"version": "1.3.3-alpha.20230223.2", | ||
"description": "Core library for interacting with XML payloads", | ||
@@ -5,0 +5,0 @@ "sdk-type": "client", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
54048
464