si-funciona 2.0.0 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/helpers/arrays/addUniqueToArray.d.ts +11 -0
- package/dist/helpers/arrays/buildArray.d.ts +12 -0
- package/dist/helpers/arrays/buildArrayOfReferences.d.ts +12 -0
- package/dist/helpers/arrays/compareArrays.d.ts +98 -0
- package/dist/helpers/arrays/mergeArrays.d.ts +10 -0
- package/dist/helpers/arrays/uniqueArray.d.ts +10 -0
- package/dist/helpers/arrays.d.ts +18 -0
- package/dist/helpers/descriptors/assignDescriptor.d.ts +12 -0
- package/dist/helpers/descriptors/assignDescriptorDetail.d.ts +12 -0
- package/dist/helpers/descriptors/checkClearValues.d.ts +12 -0
- package/dist/helpers/descriptors/checkDescriptorComplete.d.ts +11 -0
- package/dist/helpers/descriptors/cloneDescriptor.d.ts +11 -0
- package/dist/helpers/descriptors/cloneDescriptorDetail.d.ts +11 -0
- package/dist/helpers/descriptors/compareDescriptor.d.ts +12 -0
- package/dist/helpers/descriptors/describeObject.d.ts +14 -0
- package/dist/helpers/descriptors/describeObjectDetail.d.ts +13 -0
- package/dist/helpers/descriptors/describeObjectMap.d.ts +21 -0
- package/dist/helpers/descriptors/nextReference.d.ts +12 -0
- package/dist/helpers/descriptors/sameDescriptor.d.ts +12 -0
- package/dist/helpers/descriptors/samples/descriptor.d.ts +27 -0
- package/dist/helpers/descriptors/samples/descriptorDetail.d.ts +34 -0
- package/dist/helpers/descriptors/samples/descriptorMap.d.ts +12 -0
- package/dist/helpers/descriptors/samples/mappedDescriptorMap.d.ts +7 -0
- package/dist/helpers/descriptors.d.ts +28 -0
- package/dist/helpers/functions/callWithParams.d.ts +12 -0
- package/dist/helpers/functions/curry.d.ts +12 -0
- package/dist/helpers/functions/delay.d.ts +22 -0
- package/dist/helpers/functions/onBodyLoad.d.ts +11 -0
- package/dist/helpers/functions/pipe.d.ts +11 -0
- package/dist/helpers/functions/preloadParams.d.ts +21 -0
- package/dist/helpers/functions/queueManager.d.ts +28 -0
- package/dist/helpers/functions/queueTimeout.d.ts +22 -0
- package/dist/helpers/functions/relevancyFilter.d.ts +36 -0
- package/dist/helpers/functions/trace.d.ts +13 -0
- package/dist/helpers/functions.d.ts +28 -0
- package/dist/helpers/numbers/absoluteMax.d.ts +11 -0
- package/dist/helpers/numbers/absoluteMin.d.ts +11 -0
- package/dist/helpers/numbers/compare.d.ts +14 -0
- package/dist/helpers/numbers/randomInteger.d.ts +14 -0
- package/dist/helpers/numbers/randomNumber.d.ts +14 -0
- package/dist/helpers/numbers.d.ts +17 -0
- package/dist/helpers/objects/cloneObject.d.ts +21 -0
- package/dist/helpers/objects/dotGet.d.ts +13 -0
- package/dist/helpers/objects/dotNotate.d.ts +29 -0
- package/dist/helpers/objects/dotSet.d.ts +13 -0
- package/dist/helpers/objects/dotUnset.d.ts +12 -0
- package/dist/helpers/objects/emptyObject.d.ts +10 -0
- package/dist/helpers/objects/filterObject.d.ts +28 -0
- package/dist/helpers/objects/isCloneable.d.ts +10 -0
- package/dist/helpers/objects/isInstanceObject.d.ts +10 -0
- package/dist/helpers/objects/isObject.d.ts +10 -0
- package/dist/helpers/objects/mapObject.d.ts +27 -0
- package/dist/helpers/objects/mergeObjects.d.ts +14 -0
- package/dist/helpers/objects/mergeObjectsBase.d.ts +37 -0
- package/dist/helpers/objects/mergeObjectsMutable.d.ts +14 -0
- package/dist/helpers/objects/objectKeys.d.ts +15 -0
- package/dist/helpers/objects/objectValues.d.ts +15 -0
- package/dist/helpers/objects/reduceObject.d.ts +32 -0
- package/dist/helpers/objects/setAndReturnValue.d.ts +15 -0
- package/dist/helpers/objects/setValue.d.ts +16 -0
- package/dist/helpers/objects.d.ts +100 -0
- package/dist/helpers/strings/camelCase.d.ts +10 -0
- package/dist/helpers/strings/kabobCase.d.ts +10 -0
- package/dist/helpers/strings/snakeCase.d.ts +10 -0
- package/dist/helpers/strings/strAfter.d.ts +11 -0
- package/dist/helpers/strings/strAfterLast.d.ts +11 -0
- package/dist/helpers/strings/strBefore.d.ts +11 -0
- package/dist/helpers/strings/strBeforeLast.d.ts +11 -0
- package/dist/helpers/strings/titleCase.d.ts +10 -0
- package/dist/helpers/strings/ucFirst.d.ts +10 -0
- package/dist/helpers/strings/words.d.ts +10 -0
- package/dist/helpers/strings.d.ts +22 -0
- package/dist/main.d.ts +9 -0
- package/package.json +3 -2
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import 'core-js/stable';
|
|
2
|
+
/**
|
|
3
|
+
* Given a string in kebab-case, snake_case or 'Sentence case', convert to camelCase.
|
|
4
|
+
* @function
|
|
5
|
+
* @memberOf module:stringHelpers
|
|
6
|
+
* @param {string} str
|
|
7
|
+
* @returns {string}
|
|
8
|
+
*/
|
|
9
|
+
declare const camelCase: (str: string) => string;
|
|
10
|
+
export default camelCase;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import 'core-js/stable';
|
|
2
|
+
/**
|
|
3
|
+
* Given a string in snake_case, camelCase or 'Sentence case', convert to kabob-case.
|
|
4
|
+
* @function
|
|
5
|
+
* @memberOf module:stringHelpers
|
|
6
|
+
* @param {string} str
|
|
7
|
+
* @returns {string}
|
|
8
|
+
*/
|
|
9
|
+
declare const kabobCase: (str: string) => string;
|
|
10
|
+
export default kabobCase;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import 'core-js/stable';
|
|
2
|
+
/**
|
|
3
|
+
* Given a string in kebab-case, camelCase or 'Sentence case', convert to snake_case.
|
|
4
|
+
* @function
|
|
5
|
+
* @memberOf module:stringHelpers
|
|
6
|
+
* @param {string} str
|
|
7
|
+
* @returns {string}
|
|
8
|
+
*/
|
|
9
|
+
declare const snakeCase: (str: string) => string;
|
|
10
|
+
export default snakeCase;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import 'core-js/stable';
|
|
2
|
+
/**
|
|
3
|
+
* Retrieve the string part after the search match.
|
|
4
|
+
* @function
|
|
5
|
+
* @memberOf module:stringHelpers
|
|
6
|
+
* @param {string} str
|
|
7
|
+
* @param {string} search
|
|
8
|
+
* @returns {string}
|
|
9
|
+
*/
|
|
10
|
+
declare const strAfter: (str: string, search: string) => string;
|
|
11
|
+
export default strAfter;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import 'core-js/stable';
|
|
2
|
+
/**
|
|
3
|
+
* Retrieve the string part after the last search match.
|
|
4
|
+
* @function
|
|
5
|
+
* @memberOf module:stringHelpers
|
|
6
|
+
* @param {string} str
|
|
7
|
+
* @param {string} search
|
|
8
|
+
* @returns {string}
|
|
9
|
+
*/
|
|
10
|
+
declare const strAfterLast: (str: string, search: string) => string;
|
|
11
|
+
export default strAfterLast;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import 'core-js/stable';
|
|
2
|
+
/**
|
|
3
|
+
* Retrieve the string part before the search match.
|
|
4
|
+
* @function
|
|
5
|
+
* @memberOf module:stringHelpers
|
|
6
|
+
* @param {string} str
|
|
7
|
+
* @param {string} search
|
|
8
|
+
* @returns {string}
|
|
9
|
+
*/
|
|
10
|
+
declare const strBefore: (str: string, search: string) => string;
|
|
11
|
+
export default strBefore;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import 'core-js/stable';
|
|
2
|
+
/**
|
|
3
|
+
* Retrieve the string part after the last search match.
|
|
4
|
+
* @function
|
|
5
|
+
* @memberOf module:stringHelpers
|
|
6
|
+
* @param {string} str
|
|
7
|
+
* @param {string} search
|
|
8
|
+
* @returns {string}
|
|
9
|
+
*/
|
|
10
|
+
declare const strBeforeLast: (str: string, search: string) => string;
|
|
11
|
+
export default strBeforeLast;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import 'core-js/stable';
|
|
2
|
+
/**
|
|
3
|
+
* Given a string in kebab-case, snake_case, camelCase or 'Sentence case', convert to 'Title Case'.
|
|
4
|
+
* @function
|
|
5
|
+
* @memberOf module:stringHelpers
|
|
6
|
+
* @param {string} str
|
|
7
|
+
* @returns {string}
|
|
8
|
+
*/
|
|
9
|
+
declare const titleCase: (str: string) => string;
|
|
10
|
+
export default titleCase;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import 'core-js/stable';
|
|
2
|
+
/**
|
|
3
|
+
* Given a string, make the first character uppercase and the rest lowercase.
|
|
4
|
+
* @function
|
|
5
|
+
* @memberOf module:stringHelpers
|
|
6
|
+
* @param {string} str
|
|
7
|
+
* @returns {string}
|
|
8
|
+
*/
|
|
9
|
+
declare const ucFirst: (str: string) => string;
|
|
10
|
+
export default ucFirst;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import 'core-js/stable';
|
|
2
|
+
/**
|
|
3
|
+
* Split a string into sets of numbers or letters.
|
|
4
|
+
* @function
|
|
5
|
+
* @memberOf module:stringHelpers
|
|
6
|
+
* @param {string} str
|
|
7
|
+
* @returns {array}
|
|
8
|
+
*/
|
|
9
|
+
declare const words: (str: string) => Array<string>;
|
|
10
|
+
export default words;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Manage how strings are manipulated with these utilities.
|
|
3
|
+
* @file
|
|
4
|
+
* @author Joshua Heagle <joshuaheagle@gmail.com>
|
|
5
|
+
* @version 1.0.0
|
|
6
|
+
* @module stringHelpers
|
|
7
|
+
* @memberOf module:siFunciona
|
|
8
|
+
*/
|
|
9
|
+
import 'core-js/stable';
|
|
10
|
+
declare const _default: {
|
|
11
|
+
camelCase: (str: string) => string;
|
|
12
|
+
kabobCase: (str: string) => string;
|
|
13
|
+
snakeCase: (str: string) => string;
|
|
14
|
+
strAfter: (str: string, search: string) => string;
|
|
15
|
+
strAfterLast: (str: string, search: string) => string;
|
|
16
|
+
strBefore: (str: string, search: string) => string;
|
|
17
|
+
strBeforeLast: (str: string, search: string) => string;
|
|
18
|
+
titleCase: (str: string) => string;
|
|
19
|
+
ucFirst: (str: string) => string;
|
|
20
|
+
words: (str: string) => string[];
|
|
21
|
+
};
|
|
22
|
+
export default _default;
|
package/dist/main.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* All the siFunciona system functions for stringing together functions and simplifying logic.
|
|
3
|
+
* @file
|
|
4
|
+
* @author Joshua Heagle <joshuaheagle@gmail.com>
|
|
5
|
+
* @version 1.0.0
|
|
6
|
+
* @module siFunciona
|
|
7
|
+
*/
|
|
8
|
+
declare const siFunciona: any;
|
|
9
|
+
export default siFunciona;
|
package/package.json
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"utilidades",
|
|
13
13
|
"general"
|
|
14
14
|
],
|
|
15
|
-
"version": "2.0.
|
|
15
|
+
"version": "2.0.1",
|
|
16
16
|
"license": "GPL-3.0-or-later",
|
|
17
17
|
"bugs": {
|
|
18
18
|
"url": "https://github.com/jheagle/si-funciona/issues"
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"gulp": "^4.0.2",
|
|
37
|
-
"js-build-tools": "^2.2.
|
|
37
|
+
"js-build-tools": "^2.2.5",
|
|
38
38
|
"jsdoc": "^4.0.2",
|
|
39
39
|
"standard": "^17.1.0"
|
|
40
40
|
},
|
|
@@ -44,6 +44,7 @@
|
|
|
44
44
|
"url": "git+https://github.com/jheagle/si-funciona.git"
|
|
45
45
|
},
|
|
46
46
|
"main": "dist/main.min.js",
|
|
47
|
+
"types": "dist/main.js",
|
|
47
48
|
"files": [
|
|
48
49
|
"dist",
|
|
49
50
|
"browser"
|