si-funciona 2.6.0 → 2.6.2

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 (245) hide show
  1. package/README.md +40 -10
  2. package/browser/siFunciona.js +3959 -20603
  3. package/browser/siFunciona.min.js +1 -1
  4. package/dist/helpers/arrays/BasicQueue.d.ts +64 -65
  5. package/dist/helpers/arrays/BasicQueue.js +61 -62
  6. package/dist/helpers/arrays/BasicQueue.min.js +1 -1
  7. package/dist/helpers/arrays/addUniqueToArray.d.ts +9 -10
  8. package/dist/helpers/arrays/addUniqueToArray.js +16 -17
  9. package/dist/helpers/arrays/addUniqueToArray.min.js +1 -1
  10. package/dist/helpers/arrays/buildArray.d.ts +10 -11
  11. package/dist/helpers/arrays/buildArray.js +25 -26
  12. package/dist/helpers/arrays/buildArray.min.js +1 -1
  13. package/dist/helpers/arrays/buildArrayOfReferences.d.ts +10 -11
  14. package/dist/helpers/arrays/buildArrayOfReferences.js +22 -23
  15. package/dist/helpers/arrays/buildArrayOfReferences.min.js +1 -1
  16. package/dist/helpers/arrays/compareArrays.d.ts +96 -97
  17. package/dist/helpers/arrays/compareArrays.js +96 -97
  18. package/dist/helpers/arrays/compareArrays.min.js +1 -1
  19. package/dist/helpers/arrays/mergeArrays.d.ts +8 -9
  20. package/dist/helpers/arrays/mergeArrays.js +21 -22
  21. package/dist/helpers/arrays/mergeArrays.min.js +1 -1
  22. package/dist/helpers/arrays/uniqueArray.d.ts +8 -9
  23. package/dist/helpers/arrays/uniqueArray.js +16 -17
  24. package/dist/helpers/arrays/uniqueArray.min.js +1 -1
  25. package/dist/helpers/arrays.d.ts +27 -28
  26. package/dist/helpers/arrays.js +74 -75
  27. package/dist/helpers/arrays.min.js +1 -1
  28. package/dist/helpers/descriptors/assignDescriptor.d.ts +13 -14
  29. package/dist/helpers/descriptors/assignDescriptor.js +57 -58
  30. package/dist/helpers/descriptors/assignDescriptor.min.js +1 -1
  31. package/dist/helpers/descriptors/assignDescriptorDetail.d.ts +13 -14
  32. package/dist/helpers/descriptors/assignDescriptorDetail.js +36 -37
  33. package/dist/helpers/descriptors/assignDescriptorDetail.min.js +1 -1
  34. package/dist/helpers/descriptors/checkClearValues.d.ts +11 -12
  35. package/dist/helpers/descriptors/checkClearValues.js +20 -21
  36. package/dist/helpers/descriptors/checkClearValues.min.js +1 -1
  37. package/dist/helpers/descriptors/checkDescriptorComplete.d.ts +10 -11
  38. package/dist/helpers/descriptors/checkDescriptorComplete.js +19 -20
  39. package/dist/helpers/descriptors/checkDescriptorComplete.min.js +1 -1
  40. package/dist/helpers/descriptors/cloneDescriptor.d.ts +9 -10
  41. package/dist/helpers/descriptors/cloneDescriptor.js +35 -36
  42. package/dist/helpers/descriptors/cloneDescriptor.min.js +1 -1
  43. package/dist/helpers/descriptors/cloneDescriptorDetail.d.ts +9 -10
  44. package/dist/helpers/descriptors/cloneDescriptorDetail.js +26 -27
  45. package/dist/helpers/descriptors/cloneDescriptorDetail.min.js +1 -1
  46. package/dist/helpers/descriptors/compareDescriptor.d.ts +12 -13
  47. package/dist/helpers/descriptors/compareDescriptor.js +32 -33
  48. package/dist/helpers/descriptors/compareDescriptor.min.js +1 -1
  49. package/dist/helpers/descriptors/describeObject.d.ts +14 -15
  50. package/dist/helpers/descriptors/describeObject.js +52 -53
  51. package/dist/helpers/descriptors/describeObject.min.js +1 -1
  52. package/dist/helpers/descriptors/describeObjectDetail.d.ts +13 -14
  53. package/dist/helpers/descriptors/describeObjectDetail.js +37 -38
  54. package/dist/helpers/descriptors/describeObjectDetail.min.js +1 -1
  55. package/dist/helpers/descriptors/describeObjectMap.d.ts +35 -36
  56. package/dist/helpers/descriptors/describeObjectMap.js +107 -108
  57. package/dist/helpers/descriptors/describeObjectMap.min.js +1 -1
  58. package/dist/helpers/descriptors/nextReference.d.ts +12 -13
  59. package/dist/helpers/descriptors/nextReference.js +30 -31
  60. package/dist/helpers/descriptors/nextReference.min.js +1 -1
  61. package/dist/helpers/descriptors/sameDescriptor.d.ts +12 -13
  62. package/dist/helpers/descriptors/sameDescriptor.js +21 -22
  63. package/dist/helpers/descriptors/sameDescriptor.min.js +1 -1
  64. package/dist/helpers/descriptors/samples/descriptor.d.ts +34 -34
  65. package/dist/helpers/descriptors/samples/descriptor.js +22 -22
  66. package/dist/helpers/descriptors/samples/descriptorDetail.d.ts +42 -42
  67. package/dist/helpers/descriptors/samples/descriptorDetail.js +24 -24
  68. package/dist/helpers/descriptors/samples/descriptorMap.d.ts +16 -16
  69. package/dist/helpers/descriptors/samples/descriptorMap.js +14 -14
  70. package/dist/helpers/descriptors/samples/mappedDescriptorMap.d.ts +10 -10
  71. package/dist/helpers/descriptors/samples/mappedDescriptorMap.js +287 -287
  72. package/dist/helpers/descriptors.d.ts +56 -57
  73. package/dist/helpers/descriptors.js +129 -130
  74. package/dist/helpers/descriptors.min.js +1 -1
  75. package/dist/helpers/functions/callWithParams.d.ts +10 -11
  76. package/dist/helpers/functions/callWithParams.js +16 -17
  77. package/dist/helpers/functions/callWithParams.min.js +1 -1
  78. package/dist/helpers/functions/curry.d.ts +10 -11
  79. package/dist/helpers/functions/curry.js +16 -17
  80. package/dist/helpers/functions/curry.min.js +1 -1
  81. package/dist/helpers/functions/delay.d.ts +20 -21
  82. package/dist/helpers/functions/delay.js +31 -32
  83. package/dist/helpers/functions/delay.min.js +1 -1
  84. package/dist/helpers/functions/makeBasicQueue.d.ts +9 -10
  85. package/dist/helpers/functions/makeBasicQueue.js +18 -19
  86. package/dist/helpers/functions/makeBasicQueue.min.js +1 -1
  87. package/dist/helpers/functions/onBodyLoad.d.ts +9 -10
  88. package/dist/helpers/functions/onBodyLoad.js +75 -74
  89. package/dist/helpers/functions/onBodyLoad.min.js +1 -1
  90. package/dist/helpers/functions/pipe.d.ts +9 -10
  91. package/dist/helpers/functions/pipe.js +17 -18
  92. package/dist/helpers/functions/pipe.min.js +1 -1
  93. package/dist/helpers/functions/preloadParams.d.ts +19 -20
  94. package/dist/helpers/functions/preloadParams.js +20 -21
  95. package/dist/helpers/functions/preloadParams.min.js +1 -1
  96. package/dist/helpers/functions/queueManager.d.ts +48 -49
  97. package/dist/helpers/functions/queueManager.js +123 -124
  98. package/dist/helpers/functions/queueManager.min.js +1 -1
  99. package/dist/helpers/functions/queueTimeout.d.ts +20 -21
  100. package/dist/helpers/functions/queueTimeout.js +22 -23
  101. package/dist/helpers/functions/queueTimeout.min.js +1 -1
  102. package/dist/helpers/functions/relevancyFilter.d.ts +34 -35
  103. package/dist/helpers/functions/relevancyFilter.js +33 -34
  104. package/dist/helpers/functions/relevancyFilter.min.js +1 -1
  105. package/dist/helpers/functions/trace.d.ts +13 -14
  106. package/dist/helpers/functions/trace.js +24 -25
  107. package/dist/helpers/functions/trace.min.js +1 -1
  108. package/dist/helpers/functions.d.ts +40 -41
  109. package/dist/helpers/functions.js +105 -106
  110. package/dist/helpers/functions.min.js +1 -1
  111. package/dist/helpers/numbers/absoluteMax.d.ts +9 -10
  112. package/dist/helpers/numbers/absoluteMax.js +15 -16
  113. package/dist/helpers/numbers/absoluteMax.min.js +1 -1
  114. package/dist/helpers/numbers/absoluteMin.d.ts +9 -10
  115. package/dist/helpers/numbers/absoluteMin.js +15 -16
  116. package/dist/helpers/numbers/absoluteMin.min.js +1 -1
  117. package/dist/helpers/numbers/compare.d.ts +12 -13
  118. package/dist/helpers/numbers/compare.js +18 -19
  119. package/dist/helpers/numbers/compare.min.js +1 -1
  120. package/dist/helpers/numbers/greatestCommonDivisor.d.ts +9 -10
  121. package/dist/helpers/numbers/greatestCommonDivisor.js +15 -16
  122. package/dist/helpers/numbers/greatestCommonDivisor.min.js +1 -1
  123. package/dist/helpers/numbers/leastCommonMultiple.d.ts +9 -10
  124. package/dist/helpers/numbers/leastCommonMultiple.js +17 -18
  125. package/dist/helpers/numbers/leastCommonMultiple.min.js +1 -1
  126. package/dist/helpers/numbers/lowestCommonDenominator.d.ts +9 -10
  127. package/dist/helpers/numbers/lowestCommonDenominator.js +19 -20
  128. package/dist/helpers/numbers/lowestCommonDenominator.min.js +1 -1
  129. package/dist/helpers/numbers/randomInteger.d.ts +11 -6
  130. package/dist/helpers/numbers/randomInteger.js +12 -7
  131. package/dist/helpers/numbers/randomInteger.min.js +1 -1
  132. package/dist/helpers/numbers/randomNumber.d.ts +7 -7
  133. package/dist/helpers/numbers/randomNumber.js +8 -8
  134. package/dist/helpers/numbers/randomNumber.min.js +1 -1
  135. package/dist/helpers/numbers/simplestRatio.d.ts +8 -9
  136. package/dist/helpers/numbers/simplestRatio.js +28 -29
  137. package/dist/helpers/numbers/simplestRatio.min.js +1 -1
  138. package/dist/helpers/numbers.d.ts +30 -31
  139. package/dist/helpers/numbers.js +89 -90
  140. package/dist/helpers/numbers.min.js +1 -1
  141. package/dist/helpers/objects/cloneObject.d.ts +19 -20
  142. package/dist/helpers/objects/cloneObject.js +31 -32
  143. package/dist/helpers/objects/cloneObject.min.js +1 -1
  144. package/dist/helpers/objects/dotGet.d.ts +11 -12
  145. package/dist/helpers/objects/dotGet.js +59 -60
  146. package/dist/helpers/objects/dotGet.min.js +1 -1
  147. package/dist/helpers/objects/dotNotate.d.ts +27 -28
  148. package/dist/helpers/objects/dotNotate.js +79 -80
  149. package/dist/helpers/objects/dotNotate.min.js +1 -1
  150. package/dist/helpers/objects/dotSet.d.ts +11 -12
  151. package/dist/helpers/objects/dotSet.js +53 -54
  152. package/dist/helpers/objects/dotSet.min.js +1 -1
  153. package/dist/helpers/objects/dotUnset.d.ts +10 -11
  154. package/dist/helpers/objects/dotUnset.js +52 -53
  155. package/dist/helpers/objects/dotUnset.min.js +1 -1
  156. package/dist/helpers/objects/emptyObject.d.ts +8 -9
  157. package/dist/helpers/objects/emptyObject.js +17 -18
  158. package/dist/helpers/objects/emptyObject.min.js +1 -1
  159. package/dist/helpers/objects/filterObject.d.ts +26 -27
  160. package/dist/helpers/objects/filterObject.js +33 -32
  161. package/dist/helpers/objects/filterObject.min.js +1 -1
  162. package/dist/helpers/objects/isCloneable.d.ts +8 -9
  163. package/dist/helpers/objects/isCloneable.js +16 -17
  164. package/dist/helpers/objects/isCloneable.min.js +1 -1
  165. package/dist/helpers/objects/isEqual.d.ts +16 -17
  166. package/dist/helpers/objects/isEqual.js +100 -101
  167. package/dist/helpers/objects/isEqual.min.js +1 -1
  168. package/dist/helpers/objects/isInstanceObject.d.ts +8 -9
  169. package/dist/helpers/objects/isInstanceObject.js +26 -27
  170. package/dist/helpers/objects/isInstanceObject.min.js +1 -1
  171. package/dist/helpers/objects/isObject.d.ts +8 -9
  172. package/dist/helpers/objects/isObject.js +14 -15
  173. package/dist/helpers/objects/isObject.min.js +1 -1
  174. package/dist/helpers/objects/mapObject.d.ts +25 -26
  175. package/dist/helpers/objects/mapObject.js +25 -26
  176. package/dist/helpers/objects/mapObject.min.js +1 -1
  177. package/dist/helpers/objects/mergeObjects.d.ts +12 -13
  178. package/dist/helpers/objects/mergeObjects.js +19 -20
  179. package/dist/helpers/objects/mergeObjects.min.js +1 -1
  180. package/dist/helpers/objects/mergeObjectsBase.d.ts +35 -36
  181. package/dist/helpers/objects/mergeObjectsBase.js +91 -92
  182. package/dist/helpers/objects/mergeObjectsBase.min.js +1 -1
  183. package/dist/helpers/objects/mergeObjectsMutable.d.ts +12 -13
  184. package/dist/helpers/objects/mergeObjectsMutable.js +17 -18
  185. package/dist/helpers/objects/mergeObjectsMutable.min.js +1 -1
  186. package/dist/helpers/objects/objectKeys.d.ts +13 -14
  187. package/dist/helpers/objects/objectKeys.js +39 -40
  188. package/dist/helpers/objects/objectKeys.min.js +1 -1
  189. package/dist/helpers/objects/objectValues.d.ts +13 -14
  190. package/dist/helpers/objects/objectValues.js +20 -21
  191. package/dist/helpers/objects/objectValues.min.js +1 -1
  192. package/dist/helpers/objects/reduceObject.d.ts +30 -31
  193. package/dist/helpers/objects/reduceObject.js +25 -26
  194. package/dist/helpers/objects/reduceObject.min.js +1 -1
  195. package/dist/helpers/objects/setAndReturnValue.d.ts +13 -14
  196. package/dist/helpers/objects/setAndReturnValue.js +19 -20
  197. package/dist/helpers/objects/setAndReturnValue.min.js +1 -1
  198. package/dist/helpers/objects/setValue.d.ts +14 -15
  199. package/dist/helpers/objects/setValue.js +21 -22
  200. package/dist/helpers/objects/setValue.min.js +1 -1
  201. package/dist/helpers/objects.d.ts +121 -122
  202. package/dist/helpers/objects.js +177 -178
  203. package/dist/helpers/objects.min.js +1 -1
  204. package/dist/helpers/strings/camelCase.d.ts +8 -9
  205. package/dist/helpers/strings/camelCase.js +19 -20
  206. package/dist/helpers/strings/camelCase.min.js +1 -1
  207. package/dist/helpers/strings/kabobCase.d.ts +8 -9
  208. package/dist/helpers/strings/kabobCase.js +18 -19
  209. package/dist/helpers/strings/kabobCase.min.js +1 -1
  210. package/dist/helpers/strings/makeFilepath.d.ts +9 -9
  211. package/dist/helpers/strings/makeFilepath.js +49 -49
  212. package/dist/helpers/strings/makeRelativePath.d.ts +9 -9
  213. package/dist/helpers/strings/makeRelativePath.js +43 -43
  214. package/dist/helpers/strings/regexEscape.d.ts +8 -8
  215. package/dist/helpers/strings/regexEscape.js +15 -15
  216. package/dist/helpers/strings/snakeCase.d.ts +8 -9
  217. package/dist/helpers/strings/snakeCase.js +18 -19
  218. package/dist/helpers/strings/snakeCase.min.js +1 -1
  219. package/dist/helpers/strings/strAfter.d.ts +9 -10
  220. package/dist/helpers/strings/strAfter.js +18 -19
  221. package/dist/helpers/strings/strAfter.min.js +1 -1
  222. package/dist/helpers/strings/strAfterLast.d.ts +9 -10
  223. package/dist/helpers/strings/strAfterLast.js +18 -19
  224. package/dist/helpers/strings/strAfterLast.min.js +1 -1
  225. package/dist/helpers/strings/strBefore.d.ts +9 -10
  226. package/dist/helpers/strings/strBefore.js +18 -19
  227. package/dist/helpers/strings/strBefore.min.js +1 -1
  228. package/dist/helpers/strings/strBeforeLast.d.ts +9 -10
  229. package/dist/helpers/strings/strBeforeLast.js +18 -19
  230. package/dist/helpers/strings/strBeforeLast.min.js +1 -1
  231. package/dist/helpers/strings/titleCase.d.ts +8 -9
  232. package/dist/helpers/strings/titleCase.js +19 -20
  233. package/dist/helpers/strings/titleCase.min.js +1 -1
  234. package/dist/helpers/strings/ucFirst.d.ts +8 -9
  235. package/dist/helpers/strings/ucFirst.js +14 -15
  236. package/dist/helpers/strings/ucFirst.min.js +1 -1
  237. package/dist/helpers/strings/words.d.ts +9 -10
  238. package/dist/helpers/strings/words.js +15 -16
  239. package/dist/helpers/strings/words.min.js +1 -1
  240. package/dist/helpers/strings.d.ts +38 -39
  241. package/dist/helpers/strings.js +121 -122
  242. package/dist/helpers/strings.min.js +1 -1
  243. package/dist/main.d.ts +15 -15
  244. package/dist/main.js +103 -103
  245. package/package.json +4 -4
@@ -1,10 +1,9 @@
1
- import 'core-js/stable';
2
- /**
3
- * Given a string in kebab-case, snake_case or 'Sentence case', convert to camelCase.
4
- * @memberOf module:stringHelpers
5
- * @param {string} str - The string to convert.
6
- * @returns {string}
7
- */
8
- declare const camelCase: (str: string) => string;
9
- export default camelCase;
1
+ /**
2
+ * Given a string in kebab-case, snake_case or 'Sentence case', convert to camelCase.
3
+ * @memberOf module:stringHelpers
4
+ * @param {string} str - The string to convert.
5
+ * @returns {string}
6
+ */
7
+ declare const camelCase: (str: string) => string;
8
+ export default camelCase;
10
9
  //# sourceMappingURL=camelCase.d.ts.map
@@ -1,20 +1,19 @@
1
- 'use strict'
2
-
3
- Object.defineProperty(exports, '__esModule', {
4
- value: true
5
- })
6
- exports.default = void 0
7
- require('core-js/modules/esnext.iterator.constructor.js')
8
- require('core-js/modules/esnext.iterator.reduce.js')
9
- require('core-js/stable')
10
- var _ucFirst = _interopRequireDefault(require('./ucFirst'))
11
- var _words = _interopRequireDefault(require('./words'))
12
- function _interopRequireDefault (e) { return e && e.__esModule ? e : { default: e } }
13
- /**
14
- * Given a string in kebab-case, snake_case or 'Sentence case', convert to camelCase.
15
- * @memberOf module:stringHelpers
16
- * @param {string} str - The string to convert.
17
- * @returns {string}
18
- */
19
- const camelCase = str => (0, _words.default)(str).reduce((camel, part) => camel ? camel.concat((0, _ucFirst.default)(part)) : part.toLowerCase(), '')
20
- var _default = exports.default = camelCase
1
+ 'use strict'
2
+
3
+ Object.defineProperty(exports, '__esModule', {
4
+ value: true
5
+ })
6
+ exports.default = void 0
7
+ require('core-js/modules/esnext.iterator.constructor.js')
8
+ require('core-js/modules/esnext.iterator.reduce.js')
9
+ const _ucFirst = _interopRequireDefault(require('./ucFirst'))
10
+ const _words = _interopRequireDefault(require('./words'))
11
+ function _interopRequireDefault (e) { return e && e.__esModule ? e : { default: e } }
12
+ /**
13
+ * Given a string in kebab-case, snake_case or 'Sentence case', convert to camelCase.
14
+ * @memberOf module:stringHelpers
15
+ * @param {string} str - The string to convert.
16
+ * @returns {string}
17
+ */
18
+ const camelCase = str => (0, _words.default)(str).reduce((camel, part) => camel ? camel.concat((0, _ucFirst.default)(part)) : part.toLowerCase(), '')
19
+ const _default = exports.default = camelCase
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0,require("core-js/modules/esnext.iterator.constructor.js"),require("core-js/modules/esnext.iterator.reduce.js"),require("core-js/stable");var _ucFirst=_interopRequireDefault(require("./ucFirst")),_words=_interopRequireDefault(require("./words"));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const camelCase=e=>(0,_words.default)(e).reduce(((e,r)=>e?e.concat((0,_ucFirst.default)(r)):r.toLowerCase()),"");var _default=exports.default=camelCase;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0,require("core-js/modules/esnext.iterator.constructor.js"),require("core-js/modules/esnext.iterator.reduce.js");var _ucFirst=_interopRequireDefault(require("./ucFirst")),_words=_interopRequireDefault(require("./words"));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const camelCase=e=>(0,_words.default)(e).reduce(((e,r)=>e?e.concat((0,_ucFirst.default)(r)):r.toLowerCase()),"");var _default=exports.default=camelCase;
@@ -1,10 +1,9 @@
1
- import 'core-js/stable';
2
- /**
3
- * Given a string in snake_case, camelCase or 'Sentence case', convert to kabob-case.
4
- * @memberOf module:stringHelpers
5
- * @param {string} str - The string to convert.
6
- * @returns {string}
7
- */
8
- declare const kabobCase: (str: string) => string;
9
- export default kabobCase;
1
+ /**
2
+ * Given a string in snake_case, camelCase or 'Sentence case', convert to kabob-case.
3
+ * @memberOf module:stringHelpers
4
+ * @param {string} str - The string to convert.
5
+ * @returns {string}
6
+ */
7
+ declare const kabobCase: (str: string) => string;
8
+ export default kabobCase;
10
9
  //# sourceMappingURL=kabobCase.d.ts.map
@@ -1,19 +1,18 @@
1
- 'use strict'
2
-
3
- Object.defineProperty(exports, '__esModule', {
4
- value: true
5
- })
6
- exports.default = void 0
7
- require('core-js/modules/esnext.iterator.constructor.js')
8
- require('core-js/modules/esnext.iterator.reduce.js')
9
- require('core-js/stable')
10
- var _words = _interopRequireDefault(require('./words'))
11
- function _interopRequireDefault (e) { return e && e.__esModule ? e : { default: e } }
12
- /**
13
- * Given a string in snake_case, camelCase or 'Sentence case', convert to kabob-case.
14
- * @memberOf module:stringHelpers
15
- * @param {string} str - The string to convert.
16
- * @returns {string}
17
- */
18
- const kabobCase = str => (0, _words.default)(str).reduce((kabob, part) => kabob ? kabob.concat('-' + part.toLowerCase()) : part.toLowerCase(), '')
19
- var _default = exports.default = kabobCase
1
+ 'use strict'
2
+
3
+ Object.defineProperty(exports, '__esModule', {
4
+ value: true
5
+ })
6
+ exports.default = void 0
7
+ require('core-js/modules/esnext.iterator.constructor.js')
8
+ require('core-js/modules/esnext.iterator.reduce.js')
9
+ const _words = _interopRequireDefault(require('./words'))
10
+ function _interopRequireDefault (e) { return e && e.__esModule ? e : { default: e } }
11
+ /**
12
+ * Given a string in snake_case, camelCase or 'Sentence case', convert to kabob-case.
13
+ * @memberOf module:stringHelpers
14
+ * @param {string} str - The string to convert.
15
+ * @returns {string}
16
+ */
17
+ const kabobCase = str => (0, _words.default)(str).reduce((kabob, part) => kabob ? kabob.concat('-' + part.toLowerCase()) : part.toLowerCase(), '')
18
+ const _default = exports.default = kabobCase
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0,require("core-js/modules/esnext.iterator.constructor.js"),require("core-js/modules/esnext.iterator.reduce.js"),require("core-js/stable");var _words=_interopRequireDefault(require("./words"));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const kabobCase=e=>(0,_words.default)(e).reduce(((e,r)=>e?e.concat("-"+r.toLowerCase()):r.toLowerCase()),"");var _default=exports.default=kabobCase;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0,require("core-js/modules/esnext.iterator.constructor.js"),require("core-js/modules/esnext.iterator.reduce.js");var _words=_interopRequireDefault(require("./words"));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const kabobCase=e=>(0,_words.default)(e).reduce(((e,r)=>e?e.concat("-"+r.toLowerCase()):r.toLowerCase()),"");var _default=exports.default=kabobCase;
@@ -1,10 +1,10 @@
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 - The base path to start from.
5
- * @param {string} [append=''] - A path to append to `root` - may itself use `./` or `../` segments.
6
- * @returns {string}
7
- */
8
- export declare const makeFilepath: (root: string, append?: string) => string;
9
- export default makeFilepath;
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 - The base path to start from.
5
+ * @param {string} [append=''] - A path to append to `root` - may itself use `./` or `../` segments.
6
+ * @returns {string}
7
+ */
8
+ export declare const makeFilepath: (root: string, append?: string) => string;
9
+ export default makeFilepath;
10
10
  //# sourceMappingURL=makeFilepath.d.ts.map
@@ -1,49 +1,49 @@
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 (e) { return e && e.__esModule ? e : { default: e } }
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 - The base path to start from.
13
- * @param {string} [append=''] - A path to append to `root` - may itself use `./` or `../` segments.
14
- * @returns {string}
15
- */
16
- const makeFilepath = (root, append = '') => {
17
- if (root.startsWith('./')) {
18
- root = root.slice(2)
19
- }
20
- if (root.startsWith('/')) {
21
- root = root.slice(1)
22
- }
23
- if (root.endsWith('/')) {
24
- root = root.slice(0, -1)
25
- }
26
- if (append.startsWith('/')) {
27
- append = append.slice(1)
28
- }
29
- if (append.startsWith('./')) {
30
- append = append.slice(2)
31
- }
32
- if (append.startsWith('../')) {
33
- if (!root) {
34
- return append.endsWith('/') ? append.slice(0, -1) : append
35
- }
36
- append = append.slice(3)
37
- root = (0, _strBeforeLast.default)(root, '/')
38
- return makeFilepath(root, append)
39
- }
40
- if (append.endsWith('/')) {
41
- append = append.slice(0, -1)
42
- }
43
- if (!root) {
44
- return append
45
- }
46
- return append ? `${root}/${append}` : root
47
- }
48
- exports.makeFilepath = makeFilepath
49
- var _default = exports.default = makeFilepath
1
+ 'use strict'
2
+
3
+ Object.defineProperty(exports, '__esModule', {
4
+ value: true
5
+ })
6
+ exports.makeFilepath = exports.default = void 0
7
+ const _strBeforeLast = _interopRequireDefault(require('./strBeforeLast'))
8
+ function _interopRequireDefault (e) { return e && e.__esModule ? e : { default: e } }
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 - The base path to start from.
13
+ * @param {string} [append=''] - A path to append to `root` - may itself use `./` or `../` segments.
14
+ * @returns {string}
15
+ */
16
+ const makeFilepath = (root, append = '') => {
17
+ if (root.startsWith('./')) {
18
+ root = root.slice(2)
19
+ }
20
+ if (root.startsWith('/')) {
21
+ root = root.slice(1)
22
+ }
23
+ if (root.endsWith('/')) {
24
+ root = root.slice(0, -1)
25
+ }
26
+ if (append.startsWith('/')) {
27
+ append = append.slice(1)
28
+ }
29
+ if (append.startsWith('./')) {
30
+ append = append.slice(2)
31
+ }
32
+ if (append.startsWith('../')) {
33
+ if (!root) {
34
+ return append.endsWith('/') ? append.slice(0, -1) : append
35
+ }
36
+ append = append.slice(3)
37
+ root = (0, _strBeforeLast.default)(root, '/')
38
+ return makeFilepath(root, append)
39
+ }
40
+ if (append.endsWith('/')) {
41
+ append = append.slice(0, -1)
42
+ }
43
+ if (!root) {
44
+ return append
45
+ }
46
+ return append ? `${root}/${append}` : root
47
+ }
48
+ exports.makeFilepath = makeFilepath
49
+ const _default = exports.default = makeFilepath
@@ -1,10 +1,10 @@
1
- /**
2
- * Compare two file paths and simplify them to a relative path.
3
- * @memberOf module:stringHelpers
4
- * @param {string} fromFile - The path of the file the resulting relative path will be used from.
5
- * @param {string} toFile - The path of the file being referenced.
6
- * @return {string} `toFile` expressed relative to `fromFile`.
7
- */
8
- export declare const makeRelativePath: (fromFile: string, toFile: string) => string;
9
- export default makeRelativePath;
1
+ /**
2
+ * Compare two file paths and simplify them to a relative path.
3
+ * @memberOf module:stringHelpers
4
+ * @param {string} fromFile - The path of the file the resulting relative path will be used from.
5
+ * @param {string} toFile - The path of the file being referenced.
6
+ * @return {string} `toFile` expressed relative to `fromFile`.
7
+ */
8
+ export declare const makeRelativePath: (fromFile: string, toFile: string) => string;
9
+ export default makeRelativePath;
10
10
  //# sourceMappingURL=makeRelativePath.d.ts.map
@@ -1,43 +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 (e) { return e && e.__esModule ? e : { default: e } }
10
- /**
11
- * Compare two file paths and simplify them to a relative path.
12
- * @memberOf module:stringHelpers
13
- * @param {string} fromFile - The path of the file the resulting relative path will be used from.
14
- * @param {string} toFile - The path of the file being referenced.
15
- * @return {string} `toFile` expressed relative to `fromFile`.
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
1
+ 'use strict'
2
+
3
+ Object.defineProperty(exports, '__esModule', {
4
+ value: true
5
+ })
6
+ exports.makeRelativePath = exports.default = void 0
7
+ const _strBefore = _interopRequireDefault(require('./strBefore'))
8
+ const _strAfter = _interopRequireDefault(require('./strAfter'))
9
+ function _interopRequireDefault (e) { return e && e.__esModule ? e : { default: e } }
10
+ /**
11
+ * Compare two file paths and simplify them to a relative path.
12
+ * @memberOf module:stringHelpers
13
+ * @param {string} fromFile - The path of the file the resulting relative path will be used from.
14
+ * @param {string} toFile - The path of the file being referenced.
15
+ * @return {string} `toFile` expressed relative to `fromFile`.
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
+ const _default = exports.default = makeRelativePath
@@ -1,9 +1,9 @@
1
- /**
2
- * Take a string and escape the regex characters.
3
- * @memberOf module:stringHelpers
4
- * @param {string} str - The string to escape, so it can be used literally inside a `RegExp`.
5
- * @returns {string}
6
- */
7
- export declare const regexEscape: (str: string) => string;
8
- export default regexEscape;
1
+ /**
2
+ * Take a string and escape the regex characters.
3
+ * @memberOf module:stringHelpers
4
+ * @param {string} str - The string to escape, so it can be used literally inside a `RegExp`.
5
+ * @returns {string}
6
+ */
7
+ export declare const regexEscape: (str: string) => string;
8
+ export default regexEscape;
9
9
  //# sourceMappingURL=regexEscape.d.ts.map
@@ -1,15 +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 - The string to escape, so it can be used literally inside a `RegExp`.
11
- * @returns {string}
12
- */
13
- const regexEscape = str => str.replace(/[.*+?^${}()|[\]\\]/g, '\\$&')
14
- exports.regexEscape = regexEscape
15
- var _default = exports.default = regexEscape
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 - The string to escape, so it can be used literally inside a `RegExp`.
11
+ * @returns {string}
12
+ */
13
+ const regexEscape = str => str.replace(/[.*+?^${}()|[\]\\]/g, '\\$&')
14
+ exports.regexEscape = regexEscape
15
+ const _default = exports.default = regexEscape
@@ -1,10 +1,9 @@
1
- import 'core-js/stable';
2
- /**
3
- * Given a string in kebab-case, camelCase or 'Sentence case', convert to snake_case.
4
- * @memberOf module:stringHelpers
5
- * @param {string} str - The string to convert.
6
- * @returns {string}
7
- */
8
- declare const snakeCase: (str: string) => string;
9
- export default snakeCase;
1
+ /**
2
+ * Given a string in kebab-case, camelCase or 'Sentence case', convert to snake_case.
3
+ * @memberOf module:stringHelpers
4
+ * @param {string} str - The string to convert.
5
+ * @returns {string}
6
+ */
7
+ declare const snakeCase: (str: string) => string;
8
+ export default snakeCase;
10
9
  //# sourceMappingURL=snakeCase.d.ts.map
@@ -1,19 +1,18 @@
1
- 'use strict'
2
-
3
- Object.defineProperty(exports, '__esModule', {
4
- value: true
5
- })
6
- exports.default = void 0
7
- require('core-js/modules/esnext.iterator.constructor.js')
8
- require('core-js/modules/esnext.iterator.reduce.js')
9
- require('core-js/stable')
10
- var _words = _interopRequireDefault(require('./words'))
11
- function _interopRequireDefault (e) { return e && e.__esModule ? e : { default: e } }
12
- /**
13
- * Given a string in kebab-case, camelCase or 'Sentence case', convert to snake_case.
14
- * @memberOf module:stringHelpers
15
- * @param {string} str - The string to convert.
16
- * @returns {string}
17
- */
18
- const snakeCase = str => (0, _words.default)(str).reduce((snake, part) => snake ? snake.concat('_' + part.toLowerCase()) : part.toLowerCase(), '')
19
- var _default = exports.default = snakeCase
1
+ 'use strict'
2
+
3
+ Object.defineProperty(exports, '__esModule', {
4
+ value: true
5
+ })
6
+ exports.default = void 0
7
+ require('core-js/modules/esnext.iterator.constructor.js')
8
+ require('core-js/modules/esnext.iterator.reduce.js')
9
+ const _words = _interopRequireDefault(require('./words'))
10
+ function _interopRequireDefault (e) { return e && e.__esModule ? e : { default: e } }
11
+ /**
12
+ * Given a string in kebab-case, camelCase or 'Sentence case', convert to snake_case.
13
+ * @memberOf module:stringHelpers
14
+ * @param {string} str - The string to convert.
15
+ * @returns {string}
16
+ */
17
+ const snakeCase = str => (0, _words.default)(str).reduce((snake, part) => snake ? snake.concat('_' + part.toLowerCase()) : part.toLowerCase(), '')
18
+ const _default = exports.default = snakeCase
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0,require("core-js/modules/esnext.iterator.constructor.js"),require("core-js/modules/esnext.iterator.reduce.js"),require("core-js/stable");var _words=_interopRequireDefault(require("./words"));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const snakeCase=e=>(0,_words.default)(e).reduce(((e,r)=>e?e.concat("_"+r.toLowerCase()):r.toLowerCase()),"");var _default=exports.default=snakeCase;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0,require("core-js/modules/esnext.iterator.constructor.js"),require("core-js/modules/esnext.iterator.reduce.js");var _words=_interopRequireDefault(require("./words"));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const snakeCase=e=>(0,_words.default)(e).reduce(((e,r)=>e?e.concat("_"+r.toLowerCase()):r.toLowerCase()),"");var _default=exports.default=snakeCase;
@@ -1,11 +1,10 @@
1
- import 'core-js/stable';
2
- /**
3
- * Retrieve the string part after the search match.
4
- * @memberOf module:stringHelpers
5
- * @param {string} str - The string to search within.
6
- * @param {string} search - The substring to search for.
7
- * @returns {string} The portion of `str` after the first occurrence of `search`, or `''` if not found.
8
- */
9
- declare const strAfter: (str: string, search: string) => string;
10
- export default strAfter;
1
+ /**
2
+ * Retrieve the string part after the search match.
3
+ * @memberOf module:stringHelpers
4
+ * @param {string} str - The string to search within.
5
+ * @param {string} search - The substring to search for.
6
+ * @returns {string} The portion of `str` after the first occurrence of `search`, or `''` if not found.
7
+ */
8
+ declare const strAfter: (str: string, search: string) => string;
9
+ export default strAfter;
11
10
  //# sourceMappingURL=strAfter.d.ts.map
@@ -1,19 +1,18 @@
1
- 'use strict'
2
-
3
- Object.defineProperty(exports, '__esModule', {
4
- value: true
5
- })
6
- exports.default = void 0
7
- require('core-js/stable')
8
- /**
9
- * Retrieve the string part after the search match.
10
- * @memberOf module:stringHelpers
11
- * @param {string} str - The string to search within.
12
- * @param {string} search - The substring to search for.
13
- * @returns {string} The portion of `str` after the first occurrence of `search`, or `''` if not found.
14
- */
15
- const strAfter = (str, search) => {
16
- const index = str.indexOf(search)
17
- return index === -1 ? '' : str.substring(index + search.length)
18
- }
19
- var _default = exports.default = strAfter
1
+ 'use strict'
2
+
3
+ Object.defineProperty(exports, '__esModule', {
4
+ value: true
5
+ })
6
+ exports.default = void 0
7
+ /**
8
+ * Retrieve the string part after the search match.
9
+ * @memberOf module:stringHelpers
10
+ * @param {string} str - The string to search within.
11
+ * @param {string} search - The substring to search for.
12
+ * @returns {string} The portion of `str` after the first occurrence of `search`, or `''` if not found.
13
+ */
14
+ const strAfter = (str, search) => {
15
+ const index = str.indexOf(search)
16
+ return index === -1 ? '' : str.substring(index + search.length)
17
+ }
18
+ const _default = exports.default = strAfter
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0,require("core-js/stable");const strAfter=(e,t)=>{const r=e.indexOf(t);return-1===r?"":e.substring(r+t.length)};var _default=exports.default=strAfter;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;const strAfter=(e,t)=>{const r=e.indexOf(t);return-1===r?"":e.substring(r+t.length)};var _default=exports.default=strAfter;
@@ -1,11 +1,10 @@
1
- import 'core-js/stable';
2
- /**
3
- * Retrieve the string part after the last search match.
4
- * @memberOf module:stringHelpers
5
- * @param {string} str - The string to search within.
6
- * @param {string} search - The substring to search for.
7
- * @returns {string} The portion of `str` after the last occurrence of `search`, or `''` if not found.
8
- */
9
- declare const strAfterLast: (str: string, search: string) => string;
10
- export default strAfterLast;
1
+ /**
2
+ * Retrieve the string part after the last search match.
3
+ * @memberOf module:stringHelpers
4
+ * @param {string} str - The string to search within.
5
+ * @param {string} search - The substring to search for.
6
+ * @returns {string} The portion of `str` after the last occurrence of `search`, or `''` if not found.
7
+ */
8
+ declare const strAfterLast: (str: string, search: string) => string;
9
+ export default strAfterLast;
11
10
  //# sourceMappingURL=strAfterLast.d.ts.map
@@ -1,19 +1,18 @@
1
- 'use strict'
2
-
3
- Object.defineProperty(exports, '__esModule', {
4
- value: true
5
- })
6
- exports.default = void 0
7
- require('core-js/stable')
8
- /**
9
- * Retrieve the string part after the last search match.
10
- * @memberOf module:stringHelpers
11
- * @param {string} str - The string to search within.
12
- * @param {string} search - The substring to search for.
13
- * @returns {string} The portion of `str` after the last occurrence of `search`, or `''` if not found.
14
- */
15
- const strAfterLast = (str, search) => {
16
- const index = str.lastIndexOf(search)
17
- return index === -1 ? '' : str.substring(index + search.length)
18
- }
19
- var _default = exports.default = strAfterLast
1
+ 'use strict'
2
+
3
+ Object.defineProperty(exports, '__esModule', {
4
+ value: true
5
+ })
6
+ exports.default = void 0
7
+ /**
8
+ * Retrieve the string part after the last search match.
9
+ * @memberOf module:stringHelpers
10
+ * @param {string} str - The string to search within.
11
+ * @param {string} search - The substring to search for.
12
+ * @returns {string} The portion of `str` after the last occurrence of `search`, or `''` if not found.
13
+ */
14
+ const strAfterLast = (str, search) => {
15
+ const index = str.lastIndexOf(search)
16
+ return index === -1 ? '' : str.substring(index + search.length)
17
+ }
18
+ const _default = exports.default = strAfterLast
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0,require("core-js/stable");const strAfterLast=(e,t)=>{const r=e.lastIndexOf(t);return-1===r?"":e.substring(r+t.length)};var _default=exports.default=strAfterLast;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;const strAfterLast=(t,e)=>{const s=t.lastIndexOf(e);return-1===s?"":t.substring(s+e.length)};var _default=exports.default=strAfterLast;
@@ -1,11 +1,10 @@
1
- import 'core-js/stable';
2
- /**
3
- * Retrieve the string part before the search match.
4
- * @memberOf module:stringHelpers
5
- * @param {string} str - The string to search within.
6
- * @param {string} search - The substring to search for.
7
- * @returns {string} The portion of `str` before the first occurrence of `search`, or `''` if not found.
8
- */
9
- declare const strBefore: (str: string, search: string) => string;
10
- export default strBefore;
1
+ /**
2
+ * Retrieve the string part before the search match.
3
+ * @memberOf module:stringHelpers
4
+ * @param {string} str - The string to search within.
5
+ * @param {string} search - The substring to search for.
6
+ * @returns {string} The portion of `str` before the first occurrence of `search`, or `''` if not found.
7
+ */
8
+ declare const strBefore: (str: string, search: string) => string;
9
+ export default strBefore;
11
10
  //# sourceMappingURL=strBefore.d.ts.map