jsf.js_next_gen 4.0.0-RC.28 → 4.0.0-RC.29

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.
@@ -520,10 +520,10 @@ class DomQuery {
520
520
  const doc = document.implementation.createHTMLDocument("");
521
521
  markup = trim(markup);
522
522
  let lowerMarkup = markup.toLowerCase();
523
- if (lowerMarkup.search(/\<\!doctypeW+/gi) != -1 ||
524
- lowerMarkup.search(/\<html\w+/gi) != -1 ||
525
- lowerMarkup.search(/\<head\W+/gi) != -1 ||
526
- lowerMarkup.search(/\<body\W+/gi) != -1) {
523
+ if (lowerMarkup.search(/\<\!doctype[^\w\-]+/gi) != -1 ||
524
+ lowerMarkup.search(/\<html[^\w\-]+/gi) != -1 ||
525
+ lowerMarkup.search(/\<head[^\w\-]+/gi) != -1 ||
526
+ lowerMarkup.search(/\<body[^\w\-]+/gi) != -1) {
527
527
  doc.documentElement.innerHTML = markup;
528
528
  return new DomQuery(doc.documentElement);
529
529
  }
@@ -7675,15 +7675,10 @@ class XhrFormData extends mona_dish_1.Config {
7675
7675
  }
7676
7676
  let entries = mona_dish_1.LazyStream.of(...Object.keys(this.value))
7677
7677
  .filter(key => this.value.hasOwnProperty(key))
7678
- .flatMap(key => mona_dish_1.Stream.of(...this.value[key])
7679
- .map(val => {
7680
- return this.paramsMapper(key, val);
7681
- }))
7678
+ .flatMap(key => mona_dish_1.Stream.of(...this.value[key]).map(val => this.paramsMapper(key, val)))
7682
7679
  //we cannot encode file elements that is handled by multipart requests anyway
7683
7680
  .filter(([, value]) => !(value instanceof ExtDomQuery_1.ExtDomQuery.global().File))
7684
- .map(keyVal => {
7685
- return `${encodeURIComponent(keyVal[0])}=${encodeURIComponent(keyVal[1])}`;
7686
- })
7681
+ .map(keyVal => `${encodeURIComponent(keyVal[0])}=${encodeURIComponent(keyVal[1])}`)
7687
7682
  .collect(new mona_dish_1.ArrayCollector());
7688
7683
  return entries.join("&");
7689
7684
  }
Binary file
Binary file