Welcome to mirror list, hosted at ThFree Co, Russian Federation.

@gitlab+ui+29.38.1.patch « patches - gitlab.com/gitlab-org/gitlab-docs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 49141f56904132c480536d0be78fcdd3957a7104 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
diff --git a/node_modules/@gitlab/ui/dist/directives/safe_html/safe_html.js b/node_modules/@gitlab/ui/dist/directives/safe_html/safe_html.js
index 0716ba5..7485119 100644
--- a/node_modules/@gitlab/ui/dist/directives/safe_html/safe_html.js
+++ b/node_modules/@gitlab/ui/dist/directives/safe_html/safe_html.js
@@ -1,4 +1,4 @@
-import { sanitize } from 'dompurify';
+import Dompurify from "dompurify";
 
 function _defineProperty(obj, key, value) {
   if (key in obj) {
@@ -65,7 +65,7 @@ var transform = function transform(el, binding) {
     var config = _objectSpread2(_objectSpread2({}, DEFAULT_CONFIG), (_binding$arg = binding.arg) !== null && _binding$arg !== void 0 ? _binding$arg : {});
 
     el.textContent = '';
-    el.appendChild(sanitize(binding.value, config));
+    el.appendChild(Dompurify.sanitize(binding.value, config));
   }
 };