@nsshunt/stsuxvue 0.0.7 → 0.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/stsuxvue.mjs CHANGED
@@ -8176,7 +8176,7 @@ var Filter = /* @__PURE__ */ function() {
8176
8176
  }();
8177
8177
  var ansi_to_html = Filter;
8178
8178
  const Convert = /* @__PURE__ */ getDefaultExportFromCjs(ansi_to_html);
8179
- /*! @license DOMPurify 3.1.5 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.1.5/LICENSE */
8179
+ /*! @license DOMPurify 3.1.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.1.6/LICENSE */
8180
8180
  const {
8181
8181
  entries,
8182
8182
  setPrototypeOf,
@@ -8392,7 +8392,7 @@ const _createTrustedTypesPolicy = function _createTrustedTypesPolicy2(trustedTyp
8392
8392
  function createDOMPurify() {
8393
8393
  let window2 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : getGlobal();
8394
8394
  const DOMPurify = (root) => createDOMPurify(root);
8395
- DOMPurify.version = "3.1.5";
8395
+ DOMPurify.version = "3.1.6";
8396
8396
  DOMPurify.removed = [];
8397
8397
  if (!window2 || !window2.document || window2.document.nodeType !== NODE_TYPE.document) {
8398
8398
  DOMPurify.isSupported = false;
@@ -8416,6 +8416,7 @@ function createDOMPurify() {
8416
8416
  } = window2;
8417
8417
  const ElementPrototype = Element2.prototype;
8418
8418
  const cloneNode = lookupGetter(ElementPrototype, "cloneNode");
8419
+ const remove = lookupGetter(ElementPrototype, "remove");
8419
8420
  const getNextSibling = lookupGetter(ElementPrototype, "nextSibling");
8420
8421
  const getChildNodes = lookupGetter(ElementPrototype, "childNodes");
8421
8422
  const getParentNode = lookupGetter(ElementPrototype, "parentNode");
@@ -8716,9 +8717,9 @@ function createDOMPurify() {
8716
8717
  element: node
8717
8718
  });
8718
8719
  try {
8719
- node.parentNode.removeChild(node);
8720
+ getParentNode(node).removeChild(node);
8720
8721
  } catch (_) {
8721
- node.remove();
8722
+ remove(node);
8722
8723
  }
8723
8724
  };
8724
8725
  const _removeAttribute = function _removeAttribute2(name, node) {
@@ -8937,6 +8938,10 @@ function createDOMPurify() {
8937
8938
  hookEvent.forceKeepAttr = void 0;
8938
8939
  _executeHook("uponSanitizeAttribute", currentNode, hookEvent);
8939
8940
  value = hookEvent.attrValue;
8941
+ if (SAFE_FOR_XML && regExpTest(/((--!?|])>)|<\/(style|title)/i, value)) {
8942
+ _removeAttribute(name, currentNode);
8943
+ continue;
8944
+ }
8940
8945
  if (hookEvent.forceKeepAttr) {
8941
8946
  continue;
8942
8947
  }
@@ -8948,10 +8953,6 @@ function createDOMPurify() {
8948
8953
  _removeAttribute(name, currentNode);
8949
8954
  continue;
8950
8955
  }
8951
- if (SAFE_FOR_XML && regExpTest(/((--!?|])>)|<\/(style|title)/i, value)) {
8952
- _removeAttribute(name, currentNode);
8953
- continue;
8954
- }
8955
8956
  if (SAFE_FOR_TEMPLATES) {
8956
8957
  arrayForEach([MUSTACHE_EXPR2, ERB_EXPR2, TMPLIT_EXPR2], (expr) => {
8957
8958
  value = stringReplace(value, expr, " ");