@bbn/bbn 1.0.90 → 1.0.92

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.
Files changed (150) hide show
  1. package/dist/_.js +1 -1
  2. package/dist/bundle.js +772 -772
  3. package/dist/db.js +4 -4
  4. package/dist/fn/ajax/_addLoader.js +1 -1
  5. package/dist/fn/ajax/_deleteLoader.js +3 -3
  6. package/dist/fn/ajax/abort.js +1 -1
  7. package/dist/fn/ajax/abortURL.js +2 -2
  8. package/dist/fn/ajax/ajax.js +9 -9
  9. package/dist/fn/ajax/callback.js +3 -3
  10. package/dist/fn/ajax/download.js +6 -6
  11. package/dist/fn/ajax/downloadContent.js +4 -4
  12. package/dist/fn/ajax/getLoader.js +1 -1
  13. package/dist/fn/ajax/getRequestId.js +2 -2
  14. package/dist/fn/ajax/link.js +8 -8
  15. package/dist/fn/ajax/post.js +3 -3
  16. package/dist/fn/ajax/postOut.js +3 -3
  17. package/dist/fn/ajax/setNavigationVars.js +4 -4
  18. package/dist/fn/ajax/treatAjaxArguments.js +4 -4
  19. package/dist/fn/ajax/upload.js +2 -2
  20. package/dist/fn/browser/copy.js +2 -2
  21. package/dist/fn/browser/error.js +1 -1
  22. package/dist/fn/browser/getEventData.js +2 -2
  23. package/dist/fn/browser/happy.js +1 -1
  24. package/dist/fn/browser/info.js +1 -1
  25. package/dist/fn/browser/isDesktopDevice.js +1 -1
  26. package/dist/fn/browser/isMobile.js +2 -2
  27. package/dist/fn/browser/isMobileDevice.js +1 -1
  28. package/dist/fn/browser/isTabletDevice.js +1 -1
  29. package/dist/fn/browser/log.js +1 -1
  30. package/dist/fn/browser/toggleFullScreen.js +1 -1
  31. package/dist/fn/browser/warning.js +1 -1
  32. package/dist/fn/convert/imgToBase64.js +1 -1
  33. package/dist/fn/convert/toCSV.js +3 -3
  34. package/dist/fn/datetime/calendar.js +4 -4
  35. package/dist/fn/datetime/chrono.js +1 -1
  36. package/dist/fn/datetime/date.js +3 -3
  37. package/dist/fn/datetime/dateSQL.js +1 -1
  38. package/dist/fn/datetime/daysInMonth.js +1 -1
  39. package/dist/fn/datetime/fdate.js +4 -4
  40. package/dist/fn/datetime/fdatetime.js +3 -3
  41. package/dist/fn/datetime/ftime.js +3 -3
  42. package/dist/fn/datetime/getDay.js +1 -1
  43. package/dist/fn/default/defaultAjaxAbortFunction.js +1 -1
  44. package/dist/fn/default/defaultAjaxErrorFunction.js +1 -1
  45. package/dist/fn/default/defaultConfirmFunction.js +1 -1
  46. package/dist/fn/default/defaultErrorFunction.js +1 -1
  47. package/dist/fn/default/defaultPreLinkFunction.js +1 -1
  48. package/dist/fn/form/addInputs.js +1 -1
  49. package/dist/fn/form/formdata.js +4 -4
  50. package/dist/fn/form/objectToFormData.js +5 -5
  51. package/dist/fn/form/submit.js +2 -2
  52. package/dist/fn/html/adjustHeight.js +2 -2
  53. package/dist/fn/html/adjustSize.js +1 -1
  54. package/dist/fn/html/adjustWidth.js +2 -2
  55. package/dist/fn/html/getAllTags.js +1 -1
  56. package/dist/fn/html/getAttributes.js +1 -1
  57. package/dist/fn/html/getHTMLOfSelection.js +1 -1
  58. package/dist/fn/html/getHtml.js +1 -1
  59. package/dist/fn/html/getPath.js +1 -1
  60. package/dist/fn/html/isInside.js +3 -3
  61. package/dist/fn/html/makeReactive.js +8 -8
  62. package/dist/fn/init.js +11 -11
  63. package/dist/fn/loop/each.js +3 -3
  64. package/dist/fn/loop/fori.js +2 -2
  65. package/dist/fn/loop/forir.js +2 -2
  66. package/dist/fn/loop/iterate.js +1 -1
  67. package/dist/fn/loop/riterate.js +1 -1
  68. package/dist/fn/misc/analyzeFunction.js +1 -1
  69. package/dist/fn/misc/money.js +1 -1
  70. package/dist/fn/misc/translate.js +1 -1
  71. package/dist/fn/object/_compareValues.js +4 -4
  72. package/dist/fn/object/arrayFromProp.js +2 -2
  73. package/dist/fn/object/autoExtend.js +1 -1
  74. package/dist/fn/object/checkProps.js +1 -1
  75. package/dist/fn/object/checkPropsDetails.js +4 -4
  76. package/dist/fn/object/checkPropsOrDie.js +1 -1
  77. package/dist/fn/object/circularReplacer.js +3 -3
  78. package/dist/fn/object/clone.js +3 -3
  79. package/dist/fn/object/compare.js +5 -5
  80. package/dist/fn/object/compareConditions.js +4 -4
  81. package/dist/fn/object/count.js +1 -1
  82. package/dist/fn/object/createObject.js +1 -1
  83. package/dist/fn/object/deepPath.js +3 -3
  84. package/dist/fn/object/deleteProp.js +1 -1
  85. package/dist/fn/object/diffObj.js +6 -6
  86. package/dist/fn/object/extend.js +4 -4
  87. package/dist/fn/object/extendOut.js +1 -1
  88. package/dist/fn/object/filter.js +3 -3
  89. package/dist/fn/object/filterToConditions.js +3 -3
  90. package/dist/fn/object/findAll.js +3 -3
  91. package/dist/fn/object/getField.js +1 -1
  92. package/dist/fn/object/getFieldValues.js +3 -3
  93. package/dist/fn/object/getProp.js +1 -1
  94. package/dist/fn/object/getRow.js +1 -1
  95. package/dist/fn/object/map.js +1 -1
  96. package/dist/fn/object/multiorder.js +1 -1
  97. package/dist/fn/object/order.js +1 -1
  98. package/dist/fn/object/removeEmpty.js +3 -3
  99. package/dist/fn/object/removePrivateProp.js +1 -1
  100. package/dist/fn/object/search.js +5 -5
  101. package/dist/fn/object/setProperty.js +1 -1
  102. package/dist/fn/object/shortenObj.js +4 -4
  103. package/dist/fn/object/sum.js +2 -2
  104. package/dist/fn/string/baseName.js +2 -2
  105. package/dist/fn/string/br2nl.js +1 -1
  106. package/dist/fn/string/dirName.js +2 -2
  107. package/dist/fn/string/escapeDquotes.js +1 -1
  108. package/dist/fn/string/escapeSquotes.js +1 -1
  109. package/dist/fn/string/escapeTicks.js +1 -1
  110. package/dist/fn/string/escapeUrl.js +4 -4
  111. package/dist/fn/string/fileExt.js +1 -1
  112. package/dist/fn/string/format.js +1 -1
  113. package/dist/fn/string/formatSize.js +2 -2
  114. package/dist/fn/string/hash.js +5 -5
  115. package/dist/fn/string/nl2br.js +1 -1
  116. package/dist/fn/string/quotes2html.js +1 -1
  117. package/dist/fn/string/randomString.js +1 -1
  118. package/dist/fn/string/removeAccents.js +2 -2
  119. package/dist/fn/string/removeHtmlComments.js +1 -1
  120. package/dist/fn/string/removeTrailingChars.js +1 -1
  121. package/dist/fn/string/replaceAll.js +2 -2
  122. package/dist/fn/string/sanitize.js +2 -2
  123. package/dist/fn/string/shorten.js +2 -2
  124. package/dist/fn/string/simpleHash.js +2 -2
  125. package/dist/fn/string/substr.js +3 -3
  126. package/dist/fn/string/trim.js +1 -1
  127. package/dist/fn/string/uniqString.js +3 -3
  128. package/dist/fn/style/addColors.js +2 -2
  129. package/dist/fn/style/addStyle.js +2 -2
  130. package/dist/fn/style/cssExists.js +2 -2
  131. package/dist/fn/style/outerHeight.js +1 -1
  132. package/dist/fn/style/outerWidth.js +1 -1
  133. package/dist/fn/style/resize.js +2 -2
  134. package/dist/fn/type/checkType.js +7 -7
  135. package/dist/fn/type/isColor.js +1 -1
  136. package/dist/fn/type/isCp.js +1 -1
  137. package/dist/fn/type/isDimension.js +1 -1
  138. package/dist/fn/type/isEmail.js +1 -1
  139. package/dist/fn/type/isEmpty.js +2 -2
  140. package/dist/fn/type/isHostname.js +2 -2
  141. package/dist/fn/type/isIP.js +1 -1
  142. package/dist/fn/type/isPropSize.js +1 -1
  143. package/dist/fn/type/isSame.js +2 -2
  144. package/dist/fn/type/isValidDimension.js +2 -2
  145. package/dist/fn/type/isValidName.js +1 -1
  146. package/dist/fn/type/isValue.js +1 -1
  147. package/dist/fn.d.ts +3 -3
  148. package/dist/fn.js +227 -227
  149. package/dist/index.js +6 -6
  150. package/package.json +1 -1
package/dist/fn/init.js CHANGED
@@ -1,14 +1,14 @@
1
- import { substr } from "./string/substr";
2
- import { each } from "./loop/each";
3
- import { extend } from "./object/extend";
4
- import { addColors } from "./style/addColors";
5
- import { link } from "./ajax/link";
6
- import { submit } from "./form/submit";
7
- import { resize } from "./style/resize";
8
- import { isMobile } from "./browser/isMobile";
9
- import { isTabletDevice } from "./browser/isTabletDevice";
10
- import { isFunction } from "./type/isFunction";
11
- import { log } from "./browser/log";
1
+ import { substr } from "./string/substr.js";
2
+ import { each } from "./loop/each.js";
3
+ import { extend } from "./object/extend.js";
4
+ import { addColors } from "./style/addColors.js";
5
+ import { link } from "./ajax/link.js";
6
+ import { submit } from "./form/submit.js";
7
+ import { resize } from "./style/resize.js";
8
+ import { isMobile } from "./browser/isMobile.js";
9
+ import { isTabletDevice } from "./browser/isTabletDevice.js";
10
+ import { isFunction } from "./type/isFunction.js";
11
+ import { log } from "./browser/log.js";
12
12
  /**
13
13
  * Initializes the library bbn basing on the given configuration object.
14
14
  * - Gives to the environment the dimension of the window.innerWidth and window.innerHeight
@@ -1,6 +1,6 @@
1
- import { isNumber } from "../type/isNumber";
2
- import { isIterable } from "../type/isIterable";
3
- import { iterate } from "./iterate";
1
+ import { isNumber } from "../type/isNumber.js";
2
+ import { isIterable } from "../type/isIterable.js";
3
+ import { iterate } from "./iterate.js";
4
4
  /**
5
5
  * Executes the provided function on each element of the given array.
6
6
  *
@@ -1,5 +1,5 @@
1
- import { isArray } from "../type/isArray";
2
- import { isNumber } from "../type/isNumber";
1
+ import { isArray } from "../type/isArray.js";
2
+ import { isNumber } from "../type/isNumber.js";
3
3
  /**
4
4
  * Executes the provided function on each element of the given array.
5
5
  *
@@ -1,5 +1,5 @@
1
- import { isArray } from "../type/isArray";
2
- import { isNumber } from "../type/isNumber";
1
+ import { isArray } from "../type/isArray.js";
2
+ import { isNumber } from "../type/isNumber.js";
3
3
  /**
4
4
  * Executes the provided function on each element of the given array, going backward.
5
5
  *
@@ -1,4 +1,4 @@
1
- import { removePrivateProp } from "../object/removePrivateProp";
1
+ import { removePrivateProp } from "../object/removePrivateProp.js";
2
2
  /**
3
3
  * Executes the provided function on each property of the given object.
4
4
  *
@@ -1,4 +1,4 @@
1
- import { iterate } from "./iterate";
1
+ import { iterate } from "./iterate.js";
2
2
  /**
3
3
  * Executes the provided function on each property of the given object.
4
4
  *
@@ -1,4 +1,4 @@
1
- import { md5 } from '../string/md5';
1
+ import { md5 } from "../string/md5.js";
2
2
  /**
3
3
  * Analyzes the given function and extracts details about its structure.
4
4
  *
@@ -1,4 +1,4 @@
1
- import { isNumber } from '../type/isNumber';
1
+ import { isNumber } from "../type/isNumber.js";
2
2
  /**
3
3
  * Returns the given value to money format basing on the given configuration.
4
4
  *
@@ -1,4 +1,4 @@
1
- import { iterate } from '../loop/iterate';
1
+ import { iterate } from "../loop/iterate.js";
2
2
  const translate = function (o, namespace) {
3
3
  let lng = namespace ? bbn.lng[namespace.indexOf('_') === 0 ? namespace : '_' + namespace] : bbn.lng;
4
4
  iterate(o, (v, k) => {
@@ -1,7 +1,7 @@
1
- import { getProperty } from "./getProperty";
2
- import { isString } from "../type/isString";
3
- import { removeAccents } from "../string/removeAccents";
4
- import { isDate } from "../type/isDate";
1
+ import { getProperty } from "./getProperty.js";
2
+ import { isString } from "../type/isString.js";
3
+ import { removeAccents } from "../string/removeAccents.js";
4
+ import { isDate } from "../type/isDate.js";
5
5
  /**
6
6
  * Compares the given property in the given objects and returns -1, 1, or 0 depending on their difference.
7
7
  *
@@ -1,5 +1,5 @@
1
- import { each } from "../loop/each";
2
- import { getProperty } from "./getProperty";
1
+ import { each } from "../loop/each.js";
2
+ import { getProperty } from "./getProperty.js";
3
3
  /**
4
4
  * Creates and returns a new array made of the given property's values from the given array of objects.
5
5
  *
@@ -1,4 +1,4 @@
1
- import { extend } from "./extend";
1
+ import { extend } from "./extend.js";
2
2
  /**
3
3
  * Extends the bbn object by passing the namespace and the object it will merge with.
4
4
  *
@@ -1,4 +1,4 @@
1
- import { checkPropsDetails } from './checkPropsDetails';
1
+ import { checkPropsDetails } from "./checkPropsDetails.js";
2
2
  const checkProps = function (obj, props, checkEmpty = false) {
3
3
  return checkPropsDetails(obj, props, checkEmpty).result;
4
4
  };
@@ -1,7 +1,7 @@
1
- import { isArray } from "../type/isArray";
2
- import { isObject } from "../type/isObject";
3
- import { each } from "../loop/each";
4
- import { substr } from "../string/substr";
1
+ import { isArray } from "../type/isArray.js";
2
+ import { isObject } from "../type/isObject.js";
3
+ import { each } from "../loop/each.js";
4
+ import { substr } from "../string/substr.js";
5
5
  const checkPropsDetails = function (obj, props, checkEmpty = false) {
6
6
  let res = {
7
7
  error: false,
@@ -1,4 +1,4 @@
1
- import { checkPropsDetails } from "./checkPropsDetails";
1
+ import { checkPropsDetails } from "./checkPropsDetails.js";
2
2
  const checkPropsOrDie = function (obj, props, checkEmpty = false) {
3
3
  let res = checkPropsDetails(obj, props, checkEmpty);
4
4
  if (res.error) {
@@ -1,6 +1,6 @@
1
- import { isDom } from "../type/isDom";
2
- import { isCp } from "../type/isCp";
3
- import { log } from "../browser/log";
1
+ import { isDom } from "../type/isDom.js";
2
+ import { isCp } from "../type/isCp.js";
3
+ import { log } from "../browser/log.js";
4
4
  /**
5
5
  * Returns a function to give to JSON.stringify in order to avoid circular values.
6
6
  *
@@ -1,6 +1,6 @@
1
- import { isArray } from "../type/isArray";
2
- import { isObject } from "../type/isObject";
3
- import { extend } from "./extend";
1
+ import { isArray } from "../type/isArray.js";
2
+ import { isObject } from "../type/isObject.js";
3
+ import { extend } from "./extend.js";
4
4
  /**
5
5
  * Creates and returns a perfect clone - but different - from the given object.
6
6
  *
@@ -1,8 +1,8 @@
1
- import { isEmpty } from '../type/isEmpty';
2
- import { removeAccents } from '../string/removeAccents';
3
- import { isNull } from '../type/isNull';
4
- import { isObject } from '../type/isObject';
5
- import { isSame } from '../type/isSame';
1
+ import { isEmpty } from "../type/isEmpty.js";
2
+ import { removeAccents } from "../string/removeAccents.js";
3
+ import { isNull } from "../type/isNull.js";
4
+ import { isObject } from "../type/isObject.js";
5
+ import { isSame } from "../type/isSame.js";
6
6
  /**
7
7
  * Performs a comparison between two values based on the given operator and returns a boolean.
8
8
  *
@@ -1,7 +1,7 @@
1
- import { isArray } from "../type/isArray";
2
- import { each } from "../loop/each";
3
- import { compare } from "./compare";
4
- import { getProperty } from "./getProperty";
1
+ import { isArray } from "../type/isArray.js";
2
+ import { each } from "../loop/each.js";
3
+ import { compare } from "./compare.js";
4
+ import { getProperty } from "./getProperty.js";
5
5
  /**
6
6
  * Checks whether the given data object complies or not with the given filter.
7
7
  *
@@ -1,4 +1,4 @@
1
- import { filter } from './filter';
1
+ import { filter } from "./filter.js";
2
2
  /**
3
3
  * Counts the number of objects matching the given filter in the given array.
4
4
  *
@@ -1,4 +1,4 @@
1
- import { extend } from './extend';
1
+ import { extend } from "./extend.js";
2
2
  const createObject = function (...args) {
3
3
  const obj = Object.create(null);
4
4
  if (args.length) {
@@ -1,6 +1,6 @@
1
- import { search } from './search';
2
- import { each } from '../loop/each';
3
- import { isArray } from '../type/isArray';
1
+ import { search } from "./search.js";
2
+ import { each } from "../loop/each.js";
3
+ import { isArray } from "../type/isArray.js";
4
4
  /**
5
5
  * Retrieves all elements of a hierarchical array corresponding to the filter.
6
6
  *
@@ -1,4 +1,4 @@
1
- import { checkType } from "../type/checkType";
1
+ import { checkType } from "../type/checkType.js";
2
2
  /**
3
3
  * Gets the given property from the given object
4
4
  * @param {Object} obj
@@ -1,9 +1,9 @@
1
- import { isDate } from '../type/isDate';
2
- import { createObject } from './createObject';
3
- import { isFunction } from '../type/isFunction';
4
- import { isValue } from '../type/isValue';
5
- import { isDom } from '../type/isDom';
6
- import { numProperties } from './numProperties';
1
+ import { isDate } from "../type/isDate.js";
2
+ import { createObject } from "./createObject.js";
3
+ import { isFunction } from "../type/isFunction.js";
4
+ import { isValue } from "../type/isValue.js";
5
+ import { isDom } from "../type/isDom.js";
6
+ import { numProperties } from "./numProperties.js";
7
7
  let diffObjProcessed = [];
8
8
  /**
9
9
  * Returns an object describing the differences for transforming the first given object into the second.
@@ -1,7 +1,7 @@
1
- import { iterate } from "../loop/iterate";
2
- import { isArray } from "../type/isArray";
3
- import { each } from "../loop/each";
4
- import { isObject } from "../type/isObject";
1
+ import { iterate } from "../loop/iterate.js";
2
+ import { isArray } from "../type/isArray.js";
3
+ import { each } from "../loop/each.js";
4
+ import { isObject } from "../type/isObject.js";
5
5
  /**
6
6
  * Merges the contents of two or more objects together into the first object.
7
7
  *
@@ -1,4 +1,4 @@
1
- import { isObject } from "../type/isObject";
1
+ import { isObject } from "../type/isObject.js";
2
2
  /**
3
3
  * Returns a new object made of the properties from all the given objects.
4
4
  *
@@ -1,7 +1,7 @@
1
- import { isArray } from '../type/isArray';
2
- import { each } from '../loop/each';
1
+ import { isArray } from "../type/isArray.js";
2
+ import { each } from "../loop/each.js";
3
3
  import { filterToConditions } from './filterToConditions';
4
- import { compareConditions } from './compareConditions';
4
+ import { compareConditions } from "./compareConditions.js";
5
5
  /**
6
6
  * Returns a new array with only the data matching the given filter.
7
7
  *
@@ -1,6 +1,6 @@
1
- import { isObject } from "../type/isObject";
2
- import { isArray } from "../type/isArray";
3
- import { iterate } from "../loop/iterate";
1
+ import { isObject } from "../type/isObject.js";
2
+ import { isArray } from "../type/isArray.js";
3
+ import { iterate } from "../loop/iterate.js";
4
4
  /**
5
5
  * Converts the given object 'filter' to a valid format of condition.
6
6
  *
@@ -1,6 +1,6 @@
1
- import { search } from './search';
2
- import { each } from '../loop/each';
3
- import { isArray } from '../type/isArray';
1
+ import { search } from "./search.js";
2
+ import { each } from "../loop/each.js";
3
+ import { isArray } from "../type/isArray.js";
4
4
  /**
5
5
  * Retrieves all elements of a hierarchical array corresponding to the filter.
6
6
  *
@@ -1,4 +1,4 @@
1
- import { getRow } from './getRow';
1
+ import { getRow } from "./getRow.js";
2
2
  /**
3
3
  * Returns the value of the given field (property) from the first object matching the given filter in an array of objects.
4
4
  *
@@ -1,6 +1,6 @@
1
- import { checkType } from '../type/checkType';
2
- import { filter } from './filter';
3
- import { each } from '../loop/each';
1
+ import { checkType } from "../type/checkType.js";
2
+ import { filter } from "./filter.js";
3
+ import { each } from "../loop/each.js";
4
4
  /**
5
5
  * Returns all the unique values of the given field (property) from the first object matching the given filter in an array.
6
6
  *
@@ -1,4 +1,4 @@
1
- import { checkType } from "../type/checkType";
1
+ import { checkType } from "../type/checkType.js";
2
2
  /**
3
3
  * Gets the given property from the given object
4
4
  * @param {Object} obj
@@ -1,4 +1,4 @@
1
- import { search } from './search';
1
+ import { search } from "./search.js";
2
2
  /**
3
3
  * Returns the first object matching the given filter in an array of objects.
4
4
  *
@@ -1,4 +1,4 @@
1
- import { isArray } from "../type/isArray";
1
+ import { isArray } from "../type/isArray.js";
2
2
  /**
3
3
  * Returns a new array generated by the execution of a function for each item of the given array.
4
4
  *
@@ -1,4 +1,4 @@
1
- import { _compareValues } from './_compareValues';
1
+ import { _compareValues } from "./_compareValues.js";
2
2
  /**
3
3
  * Sorts an array of objects based on a set of properties.
4
4
  *
@@ -1,4 +1,4 @@
1
- import { _compareValues } from './_compareValues';
1
+ import { _compareValues } from "./_compareValues.js";
2
2
  /**
3
3
  * Sorts an array of objects based on the given property.
4
4
  *
@@ -1,6 +1,6 @@
1
- import { isArray } from "../type/isArray";
2
- import { isObject } from "../type/isObject";
3
- import { numProperties } from "./numProperties";
1
+ import { isArray } from "../type/isArray.js";
2
+ import { isObject } from "../type/isObject.js";
3
+ import { numProperties } from "./numProperties.js";
4
4
  /**
5
5
  * Returns a new array, having removed all elements deemed empty from the given array.
6
6
  *
@@ -1,4 +1,4 @@
1
- import { substr } from '../string/substr';
1
+ import { substr } from "../string/substr.js";
2
2
  /**
3
3
  * Returns an object with the original objects' properties starting with an alphanumeric character.
4
4
  *
@@ -1,9 +1,9 @@
1
- import { isIterable } from '../type/isIterable';
2
- import { compareConditions } from './compareConditions';
1
+ import { isIterable } from "../type/isIterable.js";
2
+ import { compareConditions } from "./compareConditions.js";
3
3
  import { filterToConditions } from './filterToConditions';
4
- import { isObject } from '../type/isObject';
5
- import { numProperties } from './numProperties';
6
- import { isNumber } from '../type/isNumber';
4
+ import { isObject } from "../type/isObject.js";
5
+ import { numProperties } from "./numProperties.js";
6
+ import { isNumber } from "../type/isNumber.js";
7
7
  /**
8
8
  * Retrieves the index of the array's first element corresponding to the given filter.
9
9
  *
@@ -1,4 +1,4 @@
1
- import { each } from '../loop/each';
1
+ import { each } from "../loop/each.js";
2
2
  /**
3
3
  * Returns the value of the given property from the given object.
4
4
  *
@@ -1,7 +1,7 @@
1
- import { clone } from "./clone";
2
- import { each } from "../loop/each";
3
- import { isString } from "../type/isString";
4
- import { shorten } from "../string/shorten";
1
+ import { clone } from "./clone.js";
2
+ import { each } from "../loop/each.js";
3
+ import { isString } from "../type/isString.js";
4
+ import { shorten } from "../string/shorten.js";
5
5
  /**
6
6
  * Shortens all the strings contained in the object properties or element in a array.
7
7
  *
@@ -1,5 +1,5 @@
1
- import { each } from '../loop/each';
2
- import { filter } from './filter';
1
+ import { each } from "../loop/each.js";
2
+ import { filter } from "./filter.js";
3
3
  /**
4
4
  * Returns the sum of the given property or function for the array's elements matching the filter.
5
5
  *
@@ -1,5 +1,5 @@
1
- import { isString } from "../type/isString";
2
- import { substr } from "./substr";
1
+ import { isString } from "../type/isString.js";
2
+ import { substr } from "./substr.js";
3
3
  /**
4
4
  * Returns the name of the element indicated by path given to it as an argument.
5
5
  *
@@ -1,4 +1,4 @@
1
- import { replaceAll } from "./replaceAll";
1
+ import { replaceAll } from "./replaceAll.js";
2
2
  /**
3
3
  * Replaces the html <br> tag with new line characters '\ n' if present in the string.
4
4
  *
@@ -1,5 +1,5 @@
1
- import { isString } from "../type/isString";
2
- import { substr } from "./substr";
1
+ import { isString } from "../type/isString.js";
2
+ import { substr } from "./substr.js";
3
3
  /**
4
4
  * Returns the path of the folder containing the last hierarchical element of the path.
5
5
  *
@@ -1,4 +1,4 @@
1
- import { isString } from "../type/isString";
1
+ import { isString } from "../type/isString.js";
2
2
  const escapeDquotes = function (str) {
3
3
  if (!isString(str)) {
4
4
  return str;
@@ -1,4 +1,4 @@
1
- import { isString } from '../type/isString';
1
+ import { isString } from "../type/isString.js";
2
2
  const escapeSquotes = function (str) {
3
3
  if (!isString(str)) {
4
4
  return str;
@@ -1,4 +1,4 @@
1
- import { isString } from '../type/isString';
1
+ import { isString } from "../type/isString.js";
2
2
  const escapeTicks = function (str) {
3
3
  if (!isString(str)) {
4
4
  return str;
@@ -1,7 +1,7 @@
1
- import { each } from "../loop/each";
2
- import { dirName } from "./dirName";
3
- import { baseName } from "./baseName";
4
- import { isString } from "../type/isString";
1
+ import { each } from "../loop/each.js";
2
+ import { dirName } from "./dirName.js";
3
+ import { baseName } from "./baseName.js";
4
+ import { isString } from "../type/isString.js";
5
5
  /**
6
6
  * Escapes a URL or a file path, optionally adding parameters (get type, to append to the URL without the first separator).
7
7
  *
@@ -1,4 +1,4 @@
1
- import { isString } from "../type/isString";
1
+ import { isString } from "../type/isString.js";
2
2
  /**
3
3
  * Gets the extension from a file's name.
4
4
  *
@@ -1,4 +1,4 @@
1
- import { checkType } from '../type/checkType';
1
+ import { checkType } from "../type/checkType.js";
2
2
  const format = function (str) {
3
3
  let args = Array.prototype.slice.call(arguments, 1);
4
4
  if (args.length) {
@@ -1,5 +1,5 @@
1
- import { isNumber } from '../type/isNumber';
2
- import { isString } from '../type/isString';
1
+ import { isNumber } from "../type/isNumber.js";
2
+ import { isString } from "../type/isString.js";
3
3
  const formatSize = function (st, noValid) {
4
4
  if (isNumber(st)) {
5
5
  return st + 'px';
@@ -1,8 +1,8 @@
1
- import { log } from "../browser/log";
2
- import { isDom } from "../type/isDom";
3
- import { isCp } from "../type/isCp";
4
- import { circularReplacer } from "../object/circularReplacer";
5
- import { simpleHash } from "./simpleHash";
1
+ import { log } from "../browser/log.js";
2
+ import { isDom } from "../type/isDom.js";
3
+ import { isCp } from "../type/isCp.js";
4
+ import { circularReplacer } from "../object/circularReplacer.js";
5
+ import { simpleHash } from "./simpleHash.js";
6
6
  /**
7
7
  * Makes a hash out of anything
8
8
  * @param {Object|Array} obj
@@ -1,4 +1,4 @@
1
- import { replaceAll } from "./replaceAll";
1
+ import { replaceAll } from "./replaceAll.js";
2
2
  /**
3
3
  * Replaces all new line characters '\ n' with html tag '<br>'.
4
4
  *
@@ -1,4 +1,4 @@
1
- import { replaceAll } from "./replaceAll";
1
+ import { replaceAll } from "./replaceAll.js";
2
2
  /**
3
3
  * Replace quotes in ASCII code
4
4
  *
@@ -1,4 +1,4 @@
1
- import { randomInt } from "../misc/randomInt";
1
+ import { randomInt } from "../misc/randomInt.js";
2
2
  /**
3
3
  * Returns a random String with random lenght,
4
4
  *
@@ -1,5 +1,5 @@
1
- import { isString } from "../type/isString";
2
- import { log } from "../browser/log";
1
+ import { isString } from "../type/isString.js";
2
+ import { log } from "../browser/log.js";
3
3
  /**
4
4
  * Returns the string passed as an argument without accents.
5
5
  *
@@ -1,4 +1,4 @@
1
- import { isString } from '../type/isString';
1
+ import { isString } from "../type/isString.js";
2
2
  const removeHtmlComments = function (str) {
3
3
  if (!isString(str)) {
4
4
  return str;
@@ -1,4 +1,4 @@
1
- import { substr } from "./substr";
1
+ import { substr } from "./substr.js";
2
2
  /**
3
3
  * @method removeTrailingChars
4
4
  * @todo Add method description for removeTrailingChars
@@ -1,5 +1,5 @@
1
- import { isObject } from "../type/isObject";
2
- import { escapeRegExp } from "./escapeRegExp";
1
+ import { isObject } from "../type/isObject.js";
2
+ import { escapeRegExp } from "./escapeRegExp.js";
3
3
  /**
4
4
  * Looks for and replaces parts of string with what we want.
5
5
  *
@@ -1,5 +1,5 @@
1
- import { removeAccents } from "./removeAccents";
2
- import { trim } from "./trim";
1
+ import { removeAccents } from "./removeAccents.js";
2
+ import { trim } from "./trim.js";
3
3
  /**
4
4
  * Removes all unacceptable characters in a DOM node.
5
5
  *
@@ -1,5 +1,5 @@
1
- import { isString } from "../type/isString";
2
- import { substr } from "./substr";
1
+ import { isString } from "../type/isString.js";
2
+ import { substr } from "./substr.js";
3
3
  /**
4
4
  * Shortens the given string after *len* characters.
5
5
  *
@@ -1,5 +1,5 @@
1
- import { simpleHash1 } from './simpleHash1';
2
- import { simpleHash2 } from './simpleHash2';
1
+ import { simpleHash1 } from "./simpleHash1.js";
2
+ import { simpleHash2 } from "./simpleHash2.js";
3
3
  const simpleHash = function (str) {
4
4
  const part1 = simpleHash1(str).toString(16).padStart(8, '0');
5
5
  const part2 = simpleHash2(str).toString(16).padStart(8, '0');