mirror of
https://github.com/oven-sh/setup-bun.git
synced 2026-05-23 06:30:46 +00:00
Next release of setup-bun
This commit is contained in:
+1
-1
@@ -7,7 +7,7 @@ export const Constants = {
|
||||
* @const
|
||||
* @type {string}
|
||||
*/
|
||||
msRestVersion: "2.6.2",
|
||||
msRestVersion: "2.6.4",
|
||||
|
||||
/**
|
||||
* Specifies HTTP.
|
||||
|
||||
+8
-4
@@ -10,10 +10,14 @@ const parser = new DOMParser();
|
||||
// according to the spec. There are no HTML/XSS security concerns on the usage of
|
||||
// parseFromString() here.
|
||||
let ttPolicy: Pick<TrustedTypePolicy, "createHTML"> | undefined;
|
||||
if (typeof self.trustedTypes !== "undefined") {
|
||||
ttPolicy = self.trustedTypes.createPolicy("@azure/ms-rest-js#xml.browser", {
|
||||
createHTML: (s) => s,
|
||||
});
|
||||
try {
|
||||
if (typeof self.trustedTypes !== "undefined") {
|
||||
ttPolicy = self.trustedTypes.createPolicy("@azure/ms-rest-js#xml.browser", {
|
||||
createHTML: (s) => s,
|
||||
});
|
||||
}
|
||||
} catch (e) {
|
||||
console.warn('Could not create trusted types policy "@azure/ms-rest-js#xml.browser"');
|
||||
}
|
||||
|
||||
export function parseXML(str: string): Promise<any> {
|
||||
|
||||
Reference in New Issue
Block a user