diff options
Diffstat (limited to 'patches/@gitlab+ui+29.38.1.patch')
-rw-r--r-- | patches/@gitlab+ui+29.38.1.patch | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/patches/@gitlab+ui+29.38.1.patch b/patches/@gitlab+ui+29.38.1.patch new file mode 100644 index 00000000..49141f56 --- /dev/null +++ b/patches/@gitlab+ui+29.38.1.patch @@ -0,0 +1,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)); + } + }; + |