si-funciona 2.2.3 → 2.2.5

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 (153) hide show
  1. package/README.md +65 -27
  2. package/browser/siFunciona.js +1349 -1344
  3. package/browser/siFunciona.min.js +1 -1
  4. package/dist/helpers/arrays/addUniqueToArray.d.ts +0 -1
  5. package/dist/helpers/arrays/addUniqueToArray.js +0 -1
  6. package/dist/helpers/arrays/buildArray.d.ts +0 -1
  7. package/dist/helpers/arrays/buildArray.js +0 -1
  8. package/dist/helpers/arrays/buildArrayOfReferences.d.ts +0 -1
  9. package/dist/helpers/arrays/buildArrayOfReferences.js +0 -1
  10. package/dist/helpers/arrays/compareArrays.d.ts +0 -1
  11. package/dist/helpers/arrays/compareArrays.js +4 -5
  12. package/dist/helpers/arrays/compareArrays.min.js +1 -1
  13. package/dist/helpers/arrays/mergeArrays.d.ts +0 -1
  14. package/dist/helpers/arrays/mergeArrays.js +4 -5
  15. package/dist/helpers/arrays/mergeArrays.min.js +1 -1
  16. package/dist/helpers/arrays/uniqueArray.d.ts +1 -2
  17. package/dist/helpers/arrays/uniqueArray.js +1 -2
  18. package/dist/helpers/descriptors/assignDescriptor.d.ts +0 -1
  19. package/dist/helpers/descriptors/assignDescriptor.js +9 -10
  20. package/dist/helpers/descriptors/assignDescriptor.min.js +1 -1
  21. package/dist/helpers/descriptors/assignDescriptorDetail.d.ts +0 -1
  22. package/dist/helpers/descriptors/assignDescriptorDetail.js +2 -3
  23. package/dist/helpers/descriptors/assignDescriptorDetail.min.js +1 -1
  24. package/dist/helpers/descriptors/checkClearValues.d.ts +0 -1
  25. package/dist/helpers/descriptors/checkClearValues.js +0 -1
  26. package/dist/helpers/descriptors/checkDescriptorComplete.d.ts +0 -1
  27. package/dist/helpers/descriptors/checkDescriptorComplete.js +1 -2
  28. package/dist/helpers/descriptors/checkDescriptorComplete.min.js +1 -1
  29. package/dist/helpers/descriptors/cloneDescriptor.d.ts +0 -1
  30. package/dist/helpers/descriptors/cloneDescriptor.js +0 -1
  31. package/dist/helpers/descriptors/cloneDescriptorDetail.d.ts +0 -1
  32. package/dist/helpers/descriptors/cloneDescriptorDetail.js +1 -2
  33. package/dist/helpers/descriptors/cloneDescriptorDetail.min.js +1 -1
  34. package/dist/helpers/descriptors/compareDescriptor.d.ts +0 -1
  35. package/dist/helpers/descriptors/compareDescriptor.js +3 -4
  36. package/dist/helpers/descriptors/compareDescriptor.min.js +1 -1
  37. package/dist/helpers/descriptors/describeObject.d.ts +0 -1
  38. package/dist/helpers/descriptors/describeObject.js +0 -1
  39. package/dist/helpers/descriptors/describeObjectDetail.d.ts +0 -1
  40. package/dist/helpers/descriptors/describeObjectDetail.js +0 -1
  41. package/dist/helpers/descriptors/describeObjectMap.d.ts +0 -1
  42. package/dist/helpers/descriptors/describeObjectMap.js +2 -3
  43. package/dist/helpers/descriptors/describeObjectMap.min.js +1 -1
  44. package/dist/helpers/descriptors/nextReference.d.ts +0 -1
  45. package/dist/helpers/descriptors/nextReference.js +0 -1
  46. package/dist/helpers/descriptors/sameDescriptor.d.ts +0 -1
  47. package/dist/helpers/descriptors/sameDescriptor.js +1 -2
  48. package/dist/helpers/descriptors/sameDescriptor.min.js +1 -1
  49. package/dist/helpers/functions/callWithParams.d.ts +0 -1
  50. package/dist/helpers/functions/callWithParams.js +0 -1
  51. package/dist/helpers/functions/curry.d.ts +0 -1
  52. package/dist/helpers/functions/curry.js +0 -1
  53. package/dist/helpers/functions/delay.d.ts +0 -1
  54. package/dist/helpers/functions/delay.js +0 -1
  55. package/dist/helpers/functions/onBodyLoad.d.ts +0 -1
  56. package/dist/helpers/functions/onBodyLoad.js +0 -1
  57. package/dist/helpers/functions/pipe.d.ts +0 -1
  58. package/dist/helpers/functions/pipe.js +0 -1
  59. package/dist/helpers/functions/preloadParams.d.ts +0 -1
  60. package/dist/helpers/functions/preloadParams.js +0 -1
  61. package/dist/helpers/functions/queueManager.d.ts +0 -1
  62. package/dist/helpers/functions/queueManager.js +0 -1
  63. package/dist/helpers/functions/queueTimeout.d.ts +0 -1
  64. package/dist/helpers/functions/queueTimeout.js +0 -1
  65. package/dist/helpers/functions/relevancyFilter.d.ts +0 -1
  66. package/dist/helpers/functions/relevancyFilter.js +1 -2
  67. package/dist/helpers/functions/relevancyFilter.min.js +1 -1
  68. package/dist/helpers/functions/trace.d.ts +0 -1
  69. package/dist/helpers/functions/trace.js +0 -1
  70. package/dist/helpers/numbers/absoluteMax.d.ts +0 -1
  71. package/dist/helpers/numbers/absoluteMax.js +0 -1
  72. package/dist/helpers/numbers/absoluteMin.d.ts +0 -1
  73. package/dist/helpers/numbers/absoluteMin.js +0 -1
  74. package/dist/helpers/numbers/compare.d.ts +0 -1
  75. package/dist/helpers/numbers/compare.js +0 -1
  76. package/dist/helpers/numbers/randomInteger.d.ts +0 -1
  77. package/dist/helpers/numbers/randomInteger.js +0 -1
  78. package/dist/helpers/numbers/randomNumber.d.ts +0 -1
  79. package/dist/helpers/numbers/randomNumber.js +0 -1
  80. package/dist/helpers/objects/cloneObject.d.ts +0 -1
  81. package/dist/helpers/objects/cloneObject.js +0 -1
  82. package/dist/helpers/objects/dotGet.d.ts +0 -1
  83. package/dist/helpers/objects/dotGet.js +0 -1
  84. package/dist/helpers/objects/dotNotate.d.ts +0 -1
  85. package/dist/helpers/objects/dotNotate.js +0 -1
  86. package/dist/helpers/objects/dotSet.d.ts +0 -1
  87. package/dist/helpers/objects/dotSet.js +0 -1
  88. package/dist/helpers/objects/dotUnset.d.ts +0 -1
  89. package/dist/helpers/objects/dotUnset.js +0 -1
  90. package/dist/helpers/objects/emptyObject.d.ts +0 -1
  91. package/dist/helpers/objects/emptyObject.js +0 -1
  92. package/dist/helpers/objects/filterObject.d.ts +0 -1
  93. package/dist/helpers/objects/filterObject.js +1 -2
  94. package/dist/helpers/objects/filterObject.min.js +1 -1
  95. package/dist/helpers/objects/isCloneable.d.ts +0 -1
  96. package/dist/helpers/objects/isCloneable.js +0 -1
  97. package/dist/helpers/objects/isInstanceObject.d.ts +0 -1
  98. package/dist/helpers/objects/isInstanceObject.js +0 -1
  99. package/dist/helpers/objects/isObject.d.ts +0 -1
  100. package/dist/helpers/objects/isObject.js +0 -1
  101. package/dist/helpers/objects/mapObject.d.ts +0 -1
  102. package/dist/helpers/objects/mapObject.js +1 -2
  103. package/dist/helpers/objects/mapObject.min.js +1 -1
  104. package/dist/helpers/objects/mergeObjects.d.ts +0 -1
  105. package/dist/helpers/objects/mergeObjects.js +0 -1
  106. package/dist/helpers/objects/mergeObjectsBase.d.ts +0 -1
  107. package/dist/helpers/objects/mergeObjectsBase.js +3 -4
  108. package/dist/helpers/objects/mergeObjectsBase.min.js +1 -1
  109. package/dist/helpers/objects/mergeObjectsMutable.d.ts +0 -1
  110. package/dist/helpers/objects/mergeObjectsMutable.js +0 -1
  111. package/dist/helpers/objects/objectKeys.d.ts +0 -1
  112. package/dist/helpers/objects/objectKeys.js +0 -1
  113. package/dist/helpers/objects/objectValues.d.ts +0 -1
  114. package/dist/helpers/objects/objectValues.js +0 -1
  115. package/dist/helpers/objects/reduceObject.d.ts +0 -1
  116. package/dist/helpers/objects/reduceObject.js +0 -1
  117. package/dist/helpers/objects/setAndReturnValue.d.ts +0 -1
  118. package/dist/helpers/objects/setAndReturnValue.js +0 -1
  119. package/dist/helpers/objects/setValue.d.ts +0 -1
  120. package/dist/helpers/objects/setValue.js +0 -1
  121. package/dist/helpers/strings/camelCase.d.ts +0 -1
  122. package/dist/helpers/strings/camelCase.js +0 -1
  123. package/dist/helpers/strings/kabobCase.d.ts +0 -1
  124. package/dist/helpers/strings/kabobCase.js +0 -1
  125. package/dist/helpers/strings/makeFilepath.d.ts +9 -0
  126. package/dist/helpers/strings/makeFilepath.js +50 -0
  127. package/dist/helpers/strings/makeFilepath.min.js +1 -0
  128. package/dist/helpers/strings/makeRelativePath.d.ts +9 -0
  129. package/dist/helpers/strings/makeRelativePath.js +43 -0
  130. package/dist/helpers/strings/makeRelativePath.min.js +1 -0
  131. package/dist/helpers/strings/regexEscape.d.ts +8 -0
  132. package/dist/helpers/strings/regexEscape.js +15 -0
  133. package/dist/helpers/strings/regexEscape.min.js +1 -0
  134. package/dist/helpers/strings/snakeCase.d.ts +0 -1
  135. package/dist/helpers/strings/snakeCase.js +0 -1
  136. package/dist/helpers/strings/strAfter.d.ts +0 -1
  137. package/dist/helpers/strings/strAfter.js +0 -1
  138. package/dist/helpers/strings/strAfterLast.d.ts +0 -1
  139. package/dist/helpers/strings/strAfterLast.js +0 -1
  140. package/dist/helpers/strings/strBefore.d.ts +0 -1
  141. package/dist/helpers/strings/strBefore.js +0 -1
  142. package/dist/helpers/strings/strBeforeLast.d.ts +0 -1
  143. package/dist/helpers/strings/strBeforeLast.js +0 -1
  144. package/dist/helpers/strings/titleCase.d.ts +0 -1
  145. package/dist/helpers/strings/titleCase.js +0 -1
  146. package/dist/helpers/strings/ucFirst.d.ts +0 -1
  147. package/dist/helpers/strings/ucFirst.js +0 -1
  148. package/dist/helpers/strings/words.d.ts +0 -1
  149. package/dist/helpers/strings/words.js +0 -1
  150. package/dist/helpers/strings.d.ts +3 -0
  151. package/dist/helpers/strings.js +6 -0
  152. package/dist/helpers/strings.min.js +1 -1
  153. package/package.json +7 -6
@@ -15,7 +15,6 @@ function _interopRequireDefault (obj) { return obj && obj.__esModule ? obj : { d
15
15
  * This function is intended to replicate behaviour of the Array.reduce() function but for Objects.
16
16
  * If an array is passed in instead then it will perform standard reduce(). It is recommended to
17
17
  * always use the standard reduce() function when it is known that the object is actually an array.
18
- * @function
19
18
  * @memberOf module:objectHelpers
20
19
  * @param {Object|Array} obj - The Object (or Array) to be filtered
21
20
  * @param {module:objectHelpers~reduceCallback|Function|reduceCallback} fn - The function to be processed for each filtered property
@@ -4,7 +4,6 @@ type settableItem = Array<any> | {
4
4
  };
5
5
  /**
6
6
  * Set a value on an item, then return the value
7
- * @function
8
7
  * @memberOf module:objectHelpers
9
8
  * @param {Object|Array} item - An object or array to be updated
10
9
  * @param {string|number} key - The key on the item which will have its value set
@@ -7,7 +7,6 @@ exports.default = void 0
7
7
  require('core-js/stable')
8
8
  /**
9
9
  * Set a value on an item, then return the value
10
- * @function
11
10
  * @memberOf module:objectHelpers
12
11
  * @param {Object|Array} item - An object or array to be updated
13
12
  * @param {string|number} key - The key on the item which will have its value set
@@ -5,7 +5,6 @@ type settableItem = Array<any> | {
5
5
  /**
6
6
  * Set a value on an item, then return the item.
7
7
  * NOTE: Argument order designed for usage with pipe
8
- * @function
9
8
  * @memberOf module:objectHelpers
10
9
  * @param {string|number} key - The key on the item which will have its value set
11
10
  * @param {*} value - Any value to be applied to the key
@@ -8,7 +8,6 @@ require('core-js/stable')
8
8
  /**
9
9
  * Set a value on an item, then return the item.
10
10
  * NOTE: Argument order designed for usage with pipe
11
- * @function
12
11
  * @memberOf module:objectHelpers
13
12
  * @param {string|number} key - The key on the item which will have its value set
14
13
  * @param {*} value - Any value to be applied to the key
@@ -1,7 +1,6 @@
1
1
  import 'core-js/stable';
2
2
  /**
3
3
  * Given a string in kebab-case, snake_case or 'Sentence case', convert to camelCase.
4
- * @function
5
4
  * @memberOf module:stringHelpers
6
5
  * @param {string} str
7
6
  * @returns {string}
@@ -13,7 +13,6 @@ var _words = _interopRequireDefault(require('./words'))
13
13
  function _interopRequireDefault (obj) { return obj && obj.__esModule ? obj : { default: obj } }
14
14
  /**
15
15
  * Given a string in kebab-case, snake_case or 'Sentence case', convert to camelCase.
16
- * @function
17
16
  * @memberOf module:stringHelpers
18
17
  * @param {string} str
19
18
  * @returns {string}
@@ -1,7 +1,6 @@
1
1
  import 'core-js/stable';
2
2
  /**
3
3
  * Given a string in snake_case, camelCase or 'Sentence case', convert to kabob-case.
4
- * @function
5
4
  * @memberOf module:stringHelpers
6
5
  * @param {string} str
7
6
  * @returns {string}
@@ -12,7 +12,6 @@ var _words = _interopRequireDefault(require('./words'))
12
12
  function _interopRequireDefault (obj) { return obj && obj.__esModule ? obj : { default: obj } }
13
13
  /**
14
14
  * Given a string in snake_case, camelCase or 'Sentence case', convert to kabob-case.
15
- * @function
16
15
  * @memberOf module:stringHelpers
17
16
  * @param {string} str
18
17
  * @returns {string}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Format the given path so that it does not have trailing slashes and also correctly appends a path.
3
+ * @memberOf module:stringHelpers
4
+ * @param {string} root
5
+ * @param {string} [append='']
6
+ * @returns {string}
7
+ */
8
+ export declare const makeFilepath: (root: string, append?: string) => string;
9
+ export default makeFilepath;
@@ -0,0 +1,50 @@
1
+ 'use strict'
2
+
3
+ Object.defineProperty(exports, '__esModule', {
4
+ value: true
5
+ })
6
+ exports.makeFilepath = exports.default = void 0
7
+ var _strBeforeLast = _interopRequireDefault(require('./strBeforeLast'))
8
+ function _interopRequireDefault (obj) { return obj && obj.__esModule ? obj : { default: obj } }
9
+ /**
10
+ * Format the given path so that it does not have trailing slashes and also correctly appends a path.
11
+ * @memberOf module:stringHelpers
12
+ * @param {string} root
13
+ * @param {string} [append='']
14
+ * @returns {string}
15
+ */
16
+ const makeFilepath = function (root) {
17
+ let append = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ''
18
+ if (root.startsWith('./')) {
19
+ root = root.slice(2)
20
+ }
21
+ if (root.startsWith('/')) {
22
+ root = root.slice(1)
23
+ }
24
+ if (root.endsWith('/')) {
25
+ root = root.slice(0, -1)
26
+ }
27
+ if (append.startsWith('/')) {
28
+ append = append.slice(1)
29
+ }
30
+ if (append.startsWith('./')) {
31
+ append = append.slice(2)
32
+ }
33
+ if (append.startsWith('../')) {
34
+ if (!root) {
35
+ return append.endsWith('/') ? append.slice(0, -1) : append
36
+ }
37
+ append = append.slice(3)
38
+ root = (0, _strBeforeLast.default)(root, '/')
39
+ return makeFilepath(root, append)
40
+ }
41
+ if (append.endsWith('/')) {
42
+ append = append.slice(0, -1)
43
+ }
44
+ if (!root) {
45
+ return append
46
+ }
47
+ return append ? `${root}/${append}` : root
48
+ }
49
+ exports.makeFilepath = makeFilepath
50
+ var _default = exports.default = makeFilepath
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.makeFilepath=exports.default=void 0;var _strBeforeLast=_interopRequireDefault(require("./strBeforeLast"));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const makeFilepath=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.startsWith("./")&&(e=e.slice(2)),e.startsWith("/")&&(e=e.slice(1)),e.endsWith("/")&&(e=e.slice(0,-1)),t.startsWith("/")&&(t=t.slice(1)),t.startsWith("./")&&(t=t.slice(2)),t.startsWith("../")?e?(t=t.slice(3),e=(0,_strBeforeLast.default)(e,"/"),makeFilepath(e,t)):t.endsWith("/")?t.slice(0,-1):t:(t.endsWith("/")&&(t=t.slice(0,-1)),e?t?`${e}/${t}`:e:t)};exports.makeFilepath=makeFilepath;var _default=exports.default=makeFilepath;
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Compare two file paths and simplify them to a relative path.
3
+ * @memberOf module:stringHelpers
4
+ * @param {string} fromFile
5
+ * @param {string} toFile
6
+ * @return {string}
7
+ */
8
+ export declare const makeRelativePath: (fromFile: string, toFile: string) => string;
9
+ export default makeRelativePath;
@@ -0,0 +1,43 @@
1
+ 'use strict'
2
+
3
+ Object.defineProperty(exports, '__esModule', {
4
+ value: true
5
+ })
6
+ exports.makeRelativePath = exports.default = void 0
7
+ var _strBefore = _interopRequireDefault(require('./strBefore'))
8
+ var _strAfter = _interopRequireDefault(require('./strAfter'))
9
+ function _interopRequireDefault (obj) { return obj && obj.__esModule ? obj : { default: obj } }
10
+ /**
11
+ * Compare two file paths and simplify them to a relative path.
12
+ * @memberOf module:stringHelpers
13
+ * @param {string} fromFile
14
+ * @param {string} toFile
15
+ * @return {string}
16
+ */
17
+ const makeRelativePath = (fromFile, toFile) => {
18
+ let relativePath = toFile
19
+ let nextPart = fromFile
20
+ let firstPart = (0, _strBefore.default)(nextPart, '/')
21
+ let hasMatches = false
22
+ while (firstPart && relativePath.startsWith(firstPart)) {
23
+ relativePath = (0, _strAfter.default)(relativePath, `${firstPart}/`)
24
+ nextPart = (0, _strAfter.default)(nextPart, `${firstPart}/`)
25
+ firstPart = (0, _strBefore.default)(nextPart, '/')
26
+ hasMatches = true
27
+ }
28
+ if (!hasMatches) {
29
+ // No similar base paths, use the path as-is
30
+ return relativePath
31
+ }
32
+ let relativePrefix = ''
33
+ const nextParts = nextPart.split('/')
34
+ if (nextParts.length < 2) {
35
+ relativePrefix = './'
36
+ }
37
+ for (let i = 1; i < nextParts.length; ++i) {
38
+ relativePrefix += '../'
39
+ }
40
+ return relativePrefix + relativePath
41
+ }
42
+ exports.makeRelativePath = makeRelativePath
43
+ var _default = exports.default = makeRelativePath
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.makeRelativePath=exports.default=void 0;var _strBefore=_interopRequireDefault(require("./strBefore")),_strAfter=_interopRequireDefault(require("./strAfter"));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const makeRelativePath=(e,t)=>{let r=t,a=e,l=(0,_strBefore.default)(a,"/"),f=!1;for(;l&&r.startsWith(l);)r=(0,_strAfter.default)(r,`${l}/`),a=(0,_strAfter.default)(a,`${l}/`),l=(0,_strBefore.default)(a,"/"),f=!0;if(!f)return r;let u="";const s=a.split("/");s.length<2&&(u="./");for(let e=1;e<s.length;++e)u+="../";return u+r};exports.makeRelativePath=makeRelativePath;var _default=exports.default=makeRelativePath;
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Take a string and escape the regex characters.
3
+ * @memberOf module:stringHelpers
4
+ * @param {string} str
5
+ * @returns {string}
6
+ */
7
+ export declare const regexEscape: (str: string) => string;
8
+ export default regexEscape;
@@ -0,0 +1,15 @@
1
+ 'use strict'
2
+
3
+ Object.defineProperty(exports, '__esModule', {
4
+ value: true
5
+ })
6
+ exports.regexEscape = exports.default = void 0
7
+ /**
8
+ * Take a string and escape the regex characters.
9
+ * @memberOf module:stringHelpers
10
+ * @param {string} str
11
+ * @returns {string}
12
+ */
13
+ const regexEscape = str => str.replace(/[.*+?^${}()|[\]\\]/g, '\\$&')
14
+ exports.regexEscape = regexEscape
15
+ var _default = exports.default = regexEscape
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.regexEscape=exports.default=void 0;const regexEscape=e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");exports.regexEscape=regexEscape;var _default=exports.default=regexEscape;
@@ -1,7 +1,6 @@
1
1
  import 'core-js/stable';
2
2
  /**
3
3
  * Given a string in kebab-case, camelCase or 'Sentence case', convert to snake_case.
4
- * @function
5
4
  * @memberOf module:stringHelpers
6
5
  * @param {string} str
7
6
  * @returns {string}
@@ -12,7 +12,6 @@ var _words = _interopRequireDefault(require('./words'))
12
12
  function _interopRequireDefault (obj) { return obj && obj.__esModule ? obj : { default: obj } }
13
13
  /**
14
14
  * Given a string in kebab-case, camelCase or 'Sentence case', convert to snake_case.
15
- * @function
16
15
  * @memberOf module:stringHelpers
17
16
  * @param {string} str
18
17
  * @returns {string}
@@ -1,7 +1,6 @@
1
1
  import 'core-js/stable';
2
2
  /**
3
3
  * Retrieve the string part after the search match.
4
- * @function
5
4
  * @memberOf module:stringHelpers
6
5
  * @param {string} str
7
6
  * @param {string} search
@@ -7,7 +7,6 @@ exports.default = void 0
7
7
  require('core-js/stable')
8
8
  /**
9
9
  * Retrieve the string part after the search match.
10
- * @function
11
10
  * @memberOf module:stringHelpers
12
11
  * @param {string} str
13
12
  * @param {string} search
@@ -1,7 +1,6 @@
1
1
  import 'core-js/stable';
2
2
  /**
3
3
  * Retrieve the string part after the last search match.
4
- * @function
5
4
  * @memberOf module:stringHelpers
6
5
  * @param {string} str
7
6
  * @param {string} search
@@ -7,7 +7,6 @@ exports.default = void 0
7
7
  require('core-js/stable')
8
8
  /**
9
9
  * Retrieve the string part after the last search match.
10
- * @function
11
10
  * @memberOf module:stringHelpers
12
11
  * @param {string} str
13
12
  * @param {string} search
@@ -1,7 +1,6 @@
1
1
  import 'core-js/stable';
2
2
  /**
3
3
  * Retrieve the string part before the search match.
4
- * @function
5
4
  * @memberOf module:stringHelpers
6
5
  * @param {string} str
7
6
  * @param {string} search
@@ -7,7 +7,6 @@ exports.default = void 0
7
7
  require('core-js/stable')
8
8
  /**
9
9
  * Retrieve the string part before the search match.
10
- * @function
11
10
  * @memberOf module:stringHelpers
12
11
  * @param {string} str
13
12
  * @param {string} search
@@ -1,7 +1,6 @@
1
1
  import 'core-js/stable';
2
2
  /**
3
3
  * Retrieve the string part after the last search match.
4
- * @function
5
4
  * @memberOf module:stringHelpers
6
5
  * @param {string} str
7
6
  * @param {string} search
@@ -7,7 +7,6 @@ exports.default = void 0
7
7
  require('core-js/stable')
8
8
  /**
9
9
  * Retrieve the string part after the last search match.
10
- * @function
11
10
  * @memberOf module:stringHelpers
12
11
  * @param {string} str
13
12
  * @param {string} search
@@ -1,7 +1,6 @@
1
1
  import 'core-js/stable';
2
2
  /**
3
3
  * Given a string in kebab-case, snake_case, camelCase or 'Sentence case', convert to 'Title Case'.
4
- * @function
5
4
  * @memberOf module:stringHelpers
6
5
  * @param {string} str
7
6
  * @returns {string}
@@ -13,7 +13,6 @@ var _words = _interopRequireDefault(require('./words'))
13
13
  function _interopRequireDefault (obj) { return obj && obj.__esModule ? obj : { default: obj } }
14
14
  /**
15
15
  * Given a string in kebab-case, snake_case, camelCase or 'Sentence case', convert to 'Title Case'.
16
- * @function
17
16
  * @memberOf module:stringHelpers
18
17
  * @param {string} str
19
18
  * @returns {string}
@@ -1,7 +1,6 @@
1
1
  import 'core-js/stable';
2
2
  /**
3
3
  * Given a string, make the first character uppercase and the rest lowercase.
4
- * @function
5
4
  * @memberOf module:stringHelpers
6
5
  * @param {string} str
7
6
  * @returns {string}
@@ -7,7 +7,6 @@ exports.default = void 0
7
7
  require('core-js/stable')
8
8
  /**
9
9
  * Given a string, make the first character uppercase and the rest lowercase.
10
- * @function
11
10
  * @memberOf module:stringHelpers
12
11
  * @param {string} str
13
12
  * @returns {string}
@@ -1,7 +1,6 @@
1
1
  import 'core-js/stable';
2
2
  /**
3
3
  * Split a string into sets of numbers or letters.
4
- * @function
5
4
  * @memberOf module:stringHelpers
6
5
  * @param {string} str
7
6
  * @returns {array}
@@ -7,7 +7,6 @@ exports.default = void 0
7
7
  require('core-js/stable')
8
8
  /**
9
9
  * Split a string into sets of numbers or letters.
10
- * @function
11
10
  * @memberOf module:stringHelpers
12
11
  * @param {string} str
13
12
  * @returns {array}
@@ -10,6 +10,9 @@ import 'core-js/stable';
10
10
  declare const _default: {
11
11
  camelCase: (str: string) => string;
12
12
  kabobCase: (str: string) => string;
13
+ makeFilepath: (root: string, append?: string) => string;
14
+ makeRelativePath: (fromFile: string, toFile: string) => string;
15
+ regexEscape: (str: string) => string;
13
16
  snakeCase: (str: string) => string;
14
17
  strAfter: (str: string, search: string) => string;
15
18
  strAfterLast: (str: string, search: string) => string;
@@ -7,6 +7,9 @@ exports.default = void 0
7
7
  require('core-js/stable')
8
8
  var _camelCase = _interopRequireDefault(require('./strings/camelCase'))
9
9
  var _kabobCase = _interopRequireDefault(require('./strings/kabobCase'))
10
+ var _makeFilepath = _interopRequireDefault(require('./strings/makeFilepath'))
11
+ var _makeRelativePath = _interopRequireDefault(require('./strings/makeRelativePath'))
12
+ var _regexEscape = _interopRequireDefault(require('./strings/regexEscape'))
10
13
  var _snakeCase = _interopRequireDefault(require('./strings/snakeCase'))
11
14
  var _strAfter = _interopRequireDefault(require('./strings/strAfter'))
12
15
  var _strAfterLast = _interopRequireDefault(require('./strings/strAfterLast'))
@@ -27,6 +30,9 @@ function _interopRequireDefault (obj) { return obj && obj.__esModule ? obj : { d
27
30
  var _default = exports.default = {
28
31
  camelCase: _camelCase.default,
29
32
  kabobCase: _kabobCase.default,
33
+ makeFilepath: _makeFilepath.default,
34
+ makeRelativePath: _makeRelativePath.default,
35
+ regexEscape: _regexEscape.default,
30
36
  snakeCase: _snakeCase.default,
31
37
  strAfter: _strAfter.default,
32
38
  strAfterLast: _strAfterLast.default,
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0,require("core-js/stable");var _camelCase=_interopRequireDefault(require("./strings/camelCase")),_kabobCase=_interopRequireDefault(require("./strings/kabobCase")),_snakeCase=_interopRequireDefault(require("./strings/snakeCase")),_strAfter=_interopRequireDefault(require("./strings/strAfter")),_strAfterLast=_interopRequireDefault(require("./strings/strAfterLast")),_strBefore=_interopRequireDefault(require("./strings/strBefore")),_strBeforeLast=_interopRequireDefault(require("./strings/strBeforeLast")),_titleCase=_interopRequireDefault(require("./strings/titleCase")),_ucFirst=_interopRequireDefault(require("./strings/ucFirst")),_words=_interopRequireDefault(require("./strings/words"));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var _default=exports.default={camelCase:_camelCase.default,kabobCase:_kabobCase.default,snakeCase:_snakeCase.default,strAfter:_strAfter.default,strAfterLast:_strAfterLast.default,strBefore:_strBefore.default,strBeforeLast:_strBeforeLast.default,titleCase:_titleCase.default,ucFirst:_ucFirst.default,words:_words.default};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0,require("core-js/stable");var _camelCase=_interopRequireDefault(require("./strings/camelCase")),_kabobCase=_interopRequireDefault(require("./strings/kabobCase")),_makeFilepath=_interopRequireDefault(require("./strings/makeFilepath")),_makeRelativePath=_interopRequireDefault(require("./strings/makeRelativePath")),_regexEscape=_interopRequireDefault(require("./strings/regexEscape")),_snakeCase=_interopRequireDefault(require("./strings/snakeCase")),_strAfter=_interopRequireDefault(require("./strings/strAfter")),_strAfterLast=_interopRequireDefault(require("./strings/strAfterLast")),_strBefore=_interopRequireDefault(require("./strings/strBefore")),_strBeforeLast=_interopRequireDefault(require("./strings/strBeforeLast")),_titleCase=_interopRequireDefault(require("./strings/titleCase")),_ucFirst=_interopRequireDefault(require("./strings/ucFirst")),_words=_interopRequireDefault(require("./strings/words"));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var _default=exports.default={camelCase:_camelCase.default,kabobCase:_kabobCase.default,makeFilepath:_makeFilepath.default,makeRelativePath:_makeRelativePath.default,regexEscape:_regexEscape.default,snakeCase:_snakeCase.default,strAfter:_strAfter.default,strAfterLast:_strAfterLast.default,strBefore:_strBefore.default,strBeforeLast:_strBeforeLast.default,titleCase:_titleCase.default,ucFirst:_ucFirst.default,words:_words.default};
package/package.json CHANGED
@@ -13,7 +13,7 @@
13
13
  "general",
14
14
  "typescript"
15
15
  ],
16
- "version": "2.2.3",
16
+ "version": "2.2.5",
17
17
  "license": "GPL-3.0-or-later",
18
18
  "bugs": {
19
19
  "url": "https://github.com/jheagle/si-funciona/issues"
@@ -30,14 +30,15 @@
30
30
  "watch:test": "gulp watchTest"
31
31
  },
32
32
  "dependencies": {
33
- "npm": "^10.2.5"
33
+ "npm": "^10.4.0"
34
34
  },
35
35
  "devDependencies": {
36
- "collect-your-stuff": "^1.1.5",
36
+ "collect-your-stuff": "^1.1.7",
37
37
  "gulp": "^4.0.2",
38
- "js-build-tools": "^2.3.1",
38
+ "js-build-tools": "^3.0.1",
39
39
  "jsdoc": "^4.0.2",
40
- "standard": "^17.1.0"
40
+ "standard": "^17.1.0",
41
+ "test-filesystem": "^1.3.1"
41
42
  },
42
43
  "resolutions": {},
43
44
  "repository": {
@@ -45,7 +46,7 @@
45
46
  "url": "git+https://github.com/jheagle/si-funciona.git"
46
47
  },
47
48
  "main": "dist/main.min.js",
48
- "types": "dist/main.js",
49
+ "types": "dist/main.d.ts",
49
50
  "files": [
50
51
  "dist",
51
52
  "browser"