mirror of
https://github.com/oven-sh/setup-bun.git
synced 2026-06-15 22:40:47 +00:00
Next release of setup-bun
This commit is contained in:
+9
-4
@@ -9,10 +9,15 @@ var parser = new DOMParser();
|
||||
// according to the spec. There are no HTML/XSS security concerns on the usage of
|
||||
// parseFromString() here.
|
||||
var ttPolicy;
|
||||
if (typeof self.trustedTypes !== "undefined") {
|
||||
ttPolicy = self.trustedTypes.createPolicy("@azure/ms-rest-js#xml.browser", {
|
||||
createHTML: function (s) { return s; },
|
||||
});
|
||||
try {
|
||||
if (typeof self.trustedTypes !== "undefined") {
|
||||
ttPolicy = self.trustedTypes.createPolicy("@azure/ms-rest-js#xml.browser", {
|
||||
createHTML: function (s) { return s; },
|
||||
});
|
||||
}
|
||||
}
|
||||
catch (e) {
|
||||
console.warn('Could not create trusted types policy "@azure/ms-rest-js#xml.browser"');
|
||||
}
|
||||
export function parseXML(str) {
|
||||
var _a;
|
||||
|
||||
Reference in New Issue
Block a user