si-funciona 2.6.1 → 2.7.0
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/README.md +48 -19
- package/browser/siFunciona.js +80 -77
- package/browser/siFunciona.min.js +1 -1
- package/dist/helpers/arrays/BasicQueue.d.ts +64 -64
- package/dist/helpers/arrays/BasicQueue.js +61 -61
- package/dist/helpers/arrays/addUniqueToArray.d.ts +9 -9
- package/dist/helpers/arrays/addUniqueToArray.js +16 -16
- package/dist/helpers/arrays/buildArray.d.ts +10 -10
- package/dist/helpers/arrays/buildArray.js +25 -25
- package/dist/helpers/arrays/buildArrayOfReferences.d.ts +10 -10
- package/dist/helpers/arrays/buildArrayOfReferences.js +22 -22
- package/dist/helpers/arrays/compareArrays.d.ts +96 -96
- package/dist/helpers/arrays/compareArrays.js +96 -96
- package/dist/helpers/arrays/mergeArrays.d.ts +8 -8
- package/dist/helpers/arrays/mergeArrays.js +21 -21
- package/dist/helpers/arrays/uniqueArray.d.ts +8 -8
- package/dist/helpers/arrays/uniqueArray.js +16 -16
- package/dist/helpers/arrays.d.ts +27 -27
- package/dist/helpers/arrays.js +74 -74
- package/dist/helpers/descriptors/assignDescriptor.d.ts +13 -13
- package/dist/helpers/descriptors/assignDescriptor.js +57 -57
- package/dist/helpers/descriptors/assignDescriptorDetail.d.ts +13 -13
- package/dist/helpers/descriptors/assignDescriptorDetail.js +36 -36
- package/dist/helpers/descriptors/checkClearValues.d.ts +11 -11
- package/dist/helpers/descriptors/checkClearValues.js +20 -20
- package/dist/helpers/descriptors/checkDescriptorComplete.d.ts +10 -10
- package/dist/helpers/descriptors/checkDescriptorComplete.js +19 -19
- package/dist/helpers/descriptors/cloneDescriptor.d.ts +9 -9
- package/dist/helpers/descriptors/cloneDescriptor.js +35 -35
- package/dist/helpers/descriptors/cloneDescriptorDetail.d.ts +9 -9
- package/dist/helpers/descriptors/cloneDescriptorDetail.js +26 -26
- package/dist/helpers/descriptors/compareDescriptor.d.ts +12 -12
- package/dist/helpers/descriptors/compareDescriptor.js +32 -32
- package/dist/helpers/descriptors/describeObject.d.ts +14 -14
- package/dist/helpers/descriptors/describeObject.js +52 -52
- package/dist/helpers/descriptors/describeObjectDetail.d.ts +13 -13
- package/dist/helpers/descriptors/describeObjectDetail.js +37 -37
- package/dist/helpers/descriptors/describeObjectMap.d.ts +35 -35
- package/dist/helpers/descriptors/describeObjectMap.js +107 -107
- package/dist/helpers/descriptors/nextReference.d.ts +12 -12
- package/dist/helpers/descriptors/nextReference.js +30 -30
- package/dist/helpers/descriptors/sameDescriptor.d.ts +12 -12
- package/dist/helpers/descriptors/sameDescriptor.js +21 -21
- package/dist/helpers/descriptors/samples/descriptor.d.ts +34 -34
- package/dist/helpers/descriptors/samples/descriptor.js +22 -22
- package/dist/helpers/descriptors/samples/descriptorDetail.d.ts +42 -42
- package/dist/helpers/descriptors/samples/descriptorDetail.js +24 -24
- package/dist/helpers/descriptors/samples/descriptorMap.d.ts +16 -16
- package/dist/helpers/descriptors/samples/descriptorMap.js +14 -14
- package/dist/helpers/descriptors/samples/mappedDescriptorMap.d.ts +10 -10
- package/dist/helpers/descriptors/samples/mappedDescriptorMap.js +287 -287
- package/dist/helpers/descriptors.d.ts +56 -56
- package/dist/helpers/descriptors.js +129 -129
- package/dist/helpers/functions/callWithParams.d.ts +10 -10
- package/dist/helpers/functions/callWithParams.js +16 -16
- package/dist/helpers/functions/curry.d.ts +10 -10
- package/dist/helpers/functions/curry.js +16 -16
- package/dist/helpers/functions/delay.d.ts +20 -20
- package/dist/helpers/functions/delay.js +31 -31
- package/dist/helpers/functions/makeBasicQueue.d.ts +9 -9
- package/dist/helpers/functions/makeBasicQueue.js +18 -18
- package/dist/helpers/functions/onBodyLoad.d.ts +9 -9
- package/dist/helpers/functions/onBodyLoad.js +75 -75
- package/dist/helpers/functions/pipe.d.ts +9 -9
- package/dist/helpers/functions/pipe.js +17 -17
- package/dist/helpers/functions/preloadParams.d.ts +19 -19
- package/dist/helpers/functions/preloadParams.js +20 -20
- package/dist/helpers/functions/queueManager.d.ts +48 -48
- package/dist/helpers/functions/queueManager.js +123 -123
- package/dist/helpers/functions/queueTimeout.d.ts +20 -20
- package/dist/helpers/functions/queueTimeout.js +22 -22
- package/dist/helpers/functions/relevancyFilter.d.ts +34 -34
- package/dist/helpers/functions/relevancyFilter.js +33 -33
- package/dist/helpers/functions/trace.d.ts +13 -13
- package/dist/helpers/functions/trace.js +24 -24
- package/dist/helpers/functions.d.ts +40 -40
- package/dist/helpers/functions.js +105 -105
- package/dist/helpers/numbers/absoluteMax.d.ts +9 -9
- package/dist/helpers/numbers/absoluteMax.js +15 -15
- package/dist/helpers/numbers/absoluteMin.d.ts +9 -9
- package/dist/helpers/numbers/absoluteMin.js +15 -15
- package/dist/helpers/numbers/compare.d.ts +12 -12
- package/dist/helpers/numbers/compare.js +18 -18
- package/dist/helpers/numbers/greatestCommonDivisor.d.ts +9 -9
- package/dist/helpers/numbers/greatestCommonDivisor.js +15 -15
- package/dist/helpers/numbers/leastCommonMultiple.d.ts +9 -9
- package/dist/helpers/numbers/leastCommonMultiple.js +17 -17
- package/dist/helpers/numbers/lowestCommonDenominator.d.ts +9 -9
- package/dist/helpers/numbers/lowestCommonDenominator.js +19 -19
- package/dist/helpers/numbers/randomInteger.d.ts +18 -12
- package/dist/helpers/numbers/randomInteger.js +24 -18
- package/dist/helpers/numbers/randomNumber.d.ts +13 -12
- package/dist/helpers/numbers/randomNumber.js +19 -18
- package/dist/helpers/numbers/simplestRatio.d.ts +8 -8
- package/dist/helpers/numbers/simplestRatio.js +28 -28
- package/dist/helpers/numbers.d.ts +30 -30
- package/dist/helpers/numbers.js +89 -89
- package/dist/helpers/objects/cloneObject.d.ts +2 -4
- package/dist/helpers/objects/cloneObject.js +2 -4
- package/dist/helpers/objects/dotGet.d.ts +11 -11
- package/dist/helpers/objects/dotGet.js +59 -59
- package/dist/helpers/objects/dotNotate.d.ts +27 -27
- package/dist/helpers/objects/dotNotate.js +79 -79
- package/dist/helpers/objects/dotSet.d.ts +11 -11
- package/dist/helpers/objects/dotSet.js +53 -53
- package/dist/helpers/objects/dotUnset.d.ts +10 -10
- package/dist/helpers/objects/dotUnset.js +52 -52
- package/dist/helpers/objects/emptyObject.d.ts +8 -8
- package/dist/helpers/objects/emptyObject.js +17 -17
- package/dist/helpers/objects/filterObject.d.ts +26 -26
- package/dist/helpers/objects/filterObject.js +33 -33
- package/dist/helpers/objects/isCloneable.d.ts +8 -8
- package/dist/helpers/objects/isCloneable.js +16 -16
- package/dist/helpers/objects/isEqual.d.ts +16 -16
- package/dist/helpers/objects/isEqual.js +100 -100
- package/dist/helpers/objects/isInstanceObject.d.ts +8 -8
- package/dist/helpers/objects/isInstanceObject.js +26 -26
- package/dist/helpers/objects/isObject.d.ts +8 -8
- package/dist/helpers/objects/isObject.js +14 -14
- package/dist/helpers/objects/mapObject.d.ts +25 -25
- package/dist/helpers/objects/mapObject.js +25 -25
- package/dist/helpers/objects/mergeObjects.d.ts +12 -12
- package/dist/helpers/objects/mergeObjects.js +19 -19
- package/dist/helpers/objects/mergeObjectsBase.d.ts +9 -6
- package/dist/helpers/objects/mergeObjectsBase.js +59 -61
- package/dist/helpers/objects/mergeObjectsBase.min.js +1 -1
- package/dist/helpers/objects/mergeObjectsMutable.d.ts +12 -12
- package/dist/helpers/objects/mergeObjectsMutable.js +17 -17
- package/dist/helpers/objects/objectKeys.d.ts +13 -13
- package/dist/helpers/objects/objectKeys.js +39 -39
- package/dist/helpers/objects/objectValues.d.ts +13 -13
- package/dist/helpers/objects/objectValues.js +20 -20
- package/dist/helpers/objects/reduceObject.d.ts +30 -30
- package/dist/helpers/objects/reduceObject.js +25 -25
- package/dist/helpers/objects/setAndReturnValue.d.ts +13 -13
- package/dist/helpers/objects/setAndReturnValue.js +19 -19
- package/dist/helpers/objects/setValue.d.ts +14 -14
- package/dist/helpers/objects/setValue.js +21 -21
- package/dist/helpers/objects.d.ts +1 -1
- package/dist/helpers/objects.js +177 -177
- package/dist/helpers/strings/camelCase.d.ts +8 -8
- package/dist/helpers/strings/camelCase.js +19 -19
- package/dist/helpers/strings/kabobCase.d.ts +8 -8
- package/dist/helpers/strings/kabobCase.js +18 -18
- package/dist/helpers/strings/makeFilepath.d.ts +9 -9
- package/dist/helpers/strings/makeFilepath.js +49 -49
- package/dist/helpers/strings/makeRelativePath.d.ts +9 -9
- package/dist/helpers/strings/makeRelativePath.js +43 -43
- package/dist/helpers/strings/regexEscape.d.ts +8 -8
- package/dist/helpers/strings/regexEscape.js +15 -15
- package/dist/helpers/strings/snakeCase.d.ts +8 -8
- package/dist/helpers/strings/snakeCase.js +18 -18
- package/dist/helpers/strings/strAfter.d.ts +9 -9
- package/dist/helpers/strings/strAfter.js +18 -18
- package/dist/helpers/strings/strAfterLast.d.ts +9 -9
- package/dist/helpers/strings/strAfterLast.js +18 -18
- package/dist/helpers/strings/strBefore.d.ts +9 -9
- package/dist/helpers/strings/strBefore.js +18 -18
- package/dist/helpers/strings/strBeforeLast.d.ts +9 -9
- package/dist/helpers/strings/strBeforeLast.js +18 -18
- package/dist/helpers/strings/titleCase.d.ts +8 -8
- package/dist/helpers/strings/titleCase.js +19 -19
- package/dist/helpers/strings/ucFirst.d.ts +8 -8
- package/dist/helpers/strings/ucFirst.js +14 -14
- package/dist/helpers/strings/words.d.ts +9 -9
- package/dist/helpers/strings/words.js +15 -15
- package/dist/helpers/strings.d.ts +38 -38
- package/dist/helpers/strings.js +121 -121
- package/dist/main.d.ts +15 -15
- package/dist/main.js +103 -103
- package/package.json +4 -4
|
@@ -1,39 +1,39 @@
|
|
|
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 camelCase from './strings/camelCase';
|
|
10
|
-
import kabobCase from './strings/kabobCase';
|
|
11
|
-
import makeFilepath from './strings/makeFilepath';
|
|
12
|
-
import makeRelativePath from './strings/makeRelativePath';
|
|
13
|
-
import regexEscape from './strings/regexEscape';
|
|
14
|
-
import snakeCase from './strings/snakeCase';
|
|
15
|
-
import strAfter from './strings/strAfter';
|
|
16
|
-
import strAfterLast from './strings/strAfterLast';
|
|
17
|
-
import strBefore from './strings/strBefore';
|
|
18
|
-
import strBeforeLast from './strings/strBeforeLast';
|
|
19
|
-
import titleCase from './strings/titleCase';
|
|
20
|
-
import ucFirst from './strings/ucFirst';
|
|
21
|
-
import words from './strings/words';
|
|
22
|
-
export { camelCase, kabobCase, makeFilepath, makeRelativePath, regexEscape, snakeCase, strAfter, strAfterLast, strBefore, strBeforeLast, titleCase, ucFirst, words };
|
|
23
|
-
declare const _default: {
|
|
24
|
-
camelCase: (str: string) => string;
|
|
25
|
-
kabobCase: (str: string) => string;
|
|
26
|
-
makeFilepath: (root: string, append?: string) => string;
|
|
27
|
-
makeRelativePath: (fromFile: string, toFile: string) => string;
|
|
28
|
-
regexEscape: (str: string) => string;
|
|
29
|
-
snakeCase: (str: string) => string;
|
|
30
|
-
strAfter: (str: string, search: string) => string;
|
|
31
|
-
strAfterLast: (str: string, search: string) => string;
|
|
32
|
-
strBefore: (str: string, search: string) => string;
|
|
33
|
-
strBeforeLast: (str: string, search: string) => string;
|
|
34
|
-
titleCase: (str: string) => string;
|
|
35
|
-
ucFirst: (str: string) => string;
|
|
36
|
-
words: (str: string) => Array<string>;
|
|
37
|
-
};
|
|
38
|
-
export default _default;
|
|
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 camelCase from './strings/camelCase';
|
|
10
|
+
import kabobCase from './strings/kabobCase';
|
|
11
|
+
import makeFilepath from './strings/makeFilepath';
|
|
12
|
+
import makeRelativePath from './strings/makeRelativePath';
|
|
13
|
+
import regexEscape from './strings/regexEscape';
|
|
14
|
+
import snakeCase from './strings/snakeCase';
|
|
15
|
+
import strAfter from './strings/strAfter';
|
|
16
|
+
import strAfterLast from './strings/strAfterLast';
|
|
17
|
+
import strBefore from './strings/strBefore';
|
|
18
|
+
import strBeforeLast from './strings/strBeforeLast';
|
|
19
|
+
import titleCase from './strings/titleCase';
|
|
20
|
+
import ucFirst from './strings/ucFirst';
|
|
21
|
+
import words from './strings/words';
|
|
22
|
+
export { camelCase, kabobCase, makeFilepath, makeRelativePath, regexEscape, snakeCase, strAfter, strAfterLast, strBefore, strBeforeLast, titleCase, ucFirst, words };
|
|
23
|
+
declare const _default: {
|
|
24
|
+
camelCase: (str: string) => string;
|
|
25
|
+
kabobCase: (str: string) => string;
|
|
26
|
+
makeFilepath: (root: string, append?: string) => string;
|
|
27
|
+
makeRelativePath: (fromFile: string, toFile: string) => string;
|
|
28
|
+
regexEscape: (str: string) => string;
|
|
29
|
+
snakeCase: (str: string) => string;
|
|
30
|
+
strAfter: (str: string, search: string) => string;
|
|
31
|
+
strAfterLast: (str: string, search: string) => string;
|
|
32
|
+
strBefore: (str: string, search: string) => string;
|
|
33
|
+
strBeforeLast: (str: string, search: string) => string;
|
|
34
|
+
titleCase: (str: string) => string;
|
|
35
|
+
ucFirst: (str: string) => string;
|
|
36
|
+
words: (str: string) => Array<string>;
|
|
37
|
+
};
|
|
38
|
+
export default _default;
|
|
39
39
|
//# sourceMappingURL=strings.d.ts.map
|
package/dist/helpers/strings.js
CHANGED
|
@@ -1,121 +1,121 @@
|
|
|
1
|
-
'use strict'
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', {
|
|
4
|
-
value: true
|
|
5
|
-
})
|
|
6
|
-
Object.defineProperty(exports, 'camelCase', {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: function () {
|
|
9
|
-
return _camelCase.default
|
|
10
|
-
}
|
|
11
|
-
})
|
|
12
|
-
exports.default = void 0
|
|
13
|
-
Object.defineProperty(exports, 'kabobCase', {
|
|
14
|
-
enumerable: true,
|
|
15
|
-
get: function () {
|
|
16
|
-
return _kabobCase.default
|
|
17
|
-
}
|
|
18
|
-
})
|
|
19
|
-
Object.defineProperty(exports, 'makeFilepath', {
|
|
20
|
-
enumerable: true,
|
|
21
|
-
get: function () {
|
|
22
|
-
return _makeFilepath.default
|
|
23
|
-
}
|
|
24
|
-
})
|
|
25
|
-
Object.defineProperty(exports, 'makeRelativePath', {
|
|
26
|
-
enumerable: true,
|
|
27
|
-
get: function () {
|
|
28
|
-
return _makeRelativePath.default
|
|
29
|
-
}
|
|
30
|
-
})
|
|
31
|
-
Object.defineProperty(exports, 'regexEscape', {
|
|
32
|
-
enumerable: true,
|
|
33
|
-
get: function () {
|
|
34
|
-
return _regexEscape.default
|
|
35
|
-
}
|
|
36
|
-
})
|
|
37
|
-
Object.defineProperty(exports, 'snakeCase', {
|
|
38
|
-
enumerable: true,
|
|
39
|
-
get: function () {
|
|
40
|
-
return _snakeCase.default
|
|
41
|
-
}
|
|
42
|
-
})
|
|
43
|
-
Object.defineProperty(exports, 'strAfter', {
|
|
44
|
-
enumerable: true,
|
|
45
|
-
get: function () {
|
|
46
|
-
return _strAfter.default
|
|
47
|
-
}
|
|
48
|
-
})
|
|
49
|
-
Object.defineProperty(exports, 'strAfterLast', {
|
|
50
|
-
enumerable: true,
|
|
51
|
-
get: function () {
|
|
52
|
-
return _strAfterLast.default
|
|
53
|
-
}
|
|
54
|
-
})
|
|
55
|
-
Object.defineProperty(exports, 'strBefore', {
|
|
56
|
-
enumerable: true,
|
|
57
|
-
get: function () {
|
|
58
|
-
return _strBefore.default
|
|
59
|
-
}
|
|
60
|
-
})
|
|
61
|
-
Object.defineProperty(exports, 'strBeforeLast', {
|
|
62
|
-
enumerable: true,
|
|
63
|
-
get: function () {
|
|
64
|
-
return _strBeforeLast.default
|
|
65
|
-
}
|
|
66
|
-
})
|
|
67
|
-
Object.defineProperty(exports, 'titleCase', {
|
|
68
|
-
enumerable: true,
|
|
69
|
-
get: function () {
|
|
70
|
-
return _titleCase.default
|
|
71
|
-
}
|
|
72
|
-
})
|
|
73
|
-
Object.defineProperty(exports, 'ucFirst', {
|
|
74
|
-
enumerable: true,
|
|
75
|
-
get: function () {
|
|
76
|
-
return _ucFirst.default
|
|
77
|
-
}
|
|
78
|
-
})
|
|
79
|
-
Object.defineProperty(exports, 'words', {
|
|
80
|
-
enumerable: true,
|
|
81
|
-
get: function () {
|
|
82
|
-
return _words.default
|
|
83
|
-
}
|
|
84
|
-
})
|
|
85
|
-
var _camelCase = _interopRequireDefault(require('./strings/camelCase'))
|
|
86
|
-
var _kabobCase = _interopRequireDefault(require('./strings/kabobCase'))
|
|
87
|
-
var _makeFilepath = _interopRequireDefault(require('./strings/makeFilepath'))
|
|
88
|
-
var _makeRelativePath = _interopRequireDefault(require('./strings/makeRelativePath'))
|
|
89
|
-
var _regexEscape = _interopRequireDefault(require('./strings/regexEscape'))
|
|
90
|
-
var _snakeCase = _interopRequireDefault(require('./strings/snakeCase'))
|
|
91
|
-
var _strAfter = _interopRequireDefault(require('./strings/strAfter'))
|
|
92
|
-
var _strAfterLast = _interopRequireDefault(require('./strings/strAfterLast'))
|
|
93
|
-
var _strBefore = _interopRequireDefault(require('./strings/strBefore'))
|
|
94
|
-
var _strBeforeLast = _interopRequireDefault(require('./strings/strBeforeLast'))
|
|
95
|
-
var _titleCase = _interopRequireDefault(require('./strings/titleCase'))
|
|
96
|
-
var _ucFirst = _interopRequireDefault(require('./strings/ucFirst'))
|
|
97
|
-
var _words = _interopRequireDefault(require('./strings/words'))
|
|
98
|
-
function _interopRequireDefault (e) { return e && e.__esModule ? e : { default: e } }
|
|
99
|
-
/**
|
|
100
|
-
* Manage how strings are manipulated with these utilities.
|
|
101
|
-
* @file
|
|
102
|
-
* @author Joshua Heagle <joshuaheagle@gmail.com>
|
|
103
|
-
* @version 1.0.0
|
|
104
|
-
* @module stringHelpers
|
|
105
|
-
* @memberOf module:siFunciona
|
|
106
|
-
*/
|
|
107
|
-
const _default = exports.default = {
|
|
108
|
-
camelCase: _camelCase.default,
|
|
109
|
-
kabobCase: _kabobCase.default,
|
|
110
|
-
makeFilepath: _makeFilepath.default,
|
|
111
|
-
makeRelativePath: _makeRelativePath.default,
|
|
112
|
-
regexEscape: _regexEscape.default,
|
|
113
|
-
snakeCase: _snakeCase.default,
|
|
114
|
-
strAfter: _strAfter.default,
|
|
115
|
-
strAfterLast: _strAfterLast.default,
|
|
116
|
-
strBefore: _strBefore.default,
|
|
117
|
-
strBeforeLast: _strBeforeLast.default,
|
|
118
|
-
titleCase: _titleCase.default,
|
|
119
|
-
ucFirst: _ucFirst.default,
|
|
120
|
-
words: _words.default
|
|
121
|
-
}
|
|
1
|
+
'use strict'
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', {
|
|
4
|
+
value: true
|
|
5
|
+
})
|
|
6
|
+
Object.defineProperty(exports, 'camelCase', {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return _camelCase.default
|
|
10
|
+
}
|
|
11
|
+
})
|
|
12
|
+
exports.default = void 0
|
|
13
|
+
Object.defineProperty(exports, 'kabobCase', {
|
|
14
|
+
enumerable: true,
|
|
15
|
+
get: function () {
|
|
16
|
+
return _kabobCase.default
|
|
17
|
+
}
|
|
18
|
+
})
|
|
19
|
+
Object.defineProperty(exports, 'makeFilepath', {
|
|
20
|
+
enumerable: true,
|
|
21
|
+
get: function () {
|
|
22
|
+
return _makeFilepath.default
|
|
23
|
+
}
|
|
24
|
+
})
|
|
25
|
+
Object.defineProperty(exports, 'makeRelativePath', {
|
|
26
|
+
enumerable: true,
|
|
27
|
+
get: function () {
|
|
28
|
+
return _makeRelativePath.default
|
|
29
|
+
}
|
|
30
|
+
})
|
|
31
|
+
Object.defineProperty(exports, 'regexEscape', {
|
|
32
|
+
enumerable: true,
|
|
33
|
+
get: function () {
|
|
34
|
+
return _regexEscape.default
|
|
35
|
+
}
|
|
36
|
+
})
|
|
37
|
+
Object.defineProperty(exports, 'snakeCase', {
|
|
38
|
+
enumerable: true,
|
|
39
|
+
get: function () {
|
|
40
|
+
return _snakeCase.default
|
|
41
|
+
}
|
|
42
|
+
})
|
|
43
|
+
Object.defineProperty(exports, 'strAfter', {
|
|
44
|
+
enumerable: true,
|
|
45
|
+
get: function () {
|
|
46
|
+
return _strAfter.default
|
|
47
|
+
}
|
|
48
|
+
})
|
|
49
|
+
Object.defineProperty(exports, 'strAfterLast', {
|
|
50
|
+
enumerable: true,
|
|
51
|
+
get: function () {
|
|
52
|
+
return _strAfterLast.default
|
|
53
|
+
}
|
|
54
|
+
})
|
|
55
|
+
Object.defineProperty(exports, 'strBefore', {
|
|
56
|
+
enumerable: true,
|
|
57
|
+
get: function () {
|
|
58
|
+
return _strBefore.default
|
|
59
|
+
}
|
|
60
|
+
})
|
|
61
|
+
Object.defineProperty(exports, 'strBeforeLast', {
|
|
62
|
+
enumerable: true,
|
|
63
|
+
get: function () {
|
|
64
|
+
return _strBeforeLast.default
|
|
65
|
+
}
|
|
66
|
+
})
|
|
67
|
+
Object.defineProperty(exports, 'titleCase', {
|
|
68
|
+
enumerable: true,
|
|
69
|
+
get: function () {
|
|
70
|
+
return _titleCase.default
|
|
71
|
+
}
|
|
72
|
+
})
|
|
73
|
+
Object.defineProperty(exports, 'ucFirst', {
|
|
74
|
+
enumerable: true,
|
|
75
|
+
get: function () {
|
|
76
|
+
return _ucFirst.default
|
|
77
|
+
}
|
|
78
|
+
})
|
|
79
|
+
Object.defineProperty(exports, 'words', {
|
|
80
|
+
enumerable: true,
|
|
81
|
+
get: function () {
|
|
82
|
+
return _words.default
|
|
83
|
+
}
|
|
84
|
+
})
|
|
85
|
+
var _camelCase = _interopRequireDefault(require('./strings/camelCase'))
|
|
86
|
+
var _kabobCase = _interopRequireDefault(require('./strings/kabobCase'))
|
|
87
|
+
var _makeFilepath = _interopRequireDefault(require('./strings/makeFilepath'))
|
|
88
|
+
var _makeRelativePath = _interopRequireDefault(require('./strings/makeRelativePath'))
|
|
89
|
+
var _regexEscape = _interopRequireDefault(require('./strings/regexEscape'))
|
|
90
|
+
var _snakeCase = _interopRequireDefault(require('./strings/snakeCase'))
|
|
91
|
+
var _strAfter = _interopRequireDefault(require('./strings/strAfter'))
|
|
92
|
+
var _strAfterLast = _interopRequireDefault(require('./strings/strAfterLast'))
|
|
93
|
+
var _strBefore = _interopRequireDefault(require('./strings/strBefore'))
|
|
94
|
+
var _strBeforeLast = _interopRequireDefault(require('./strings/strBeforeLast'))
|
|
95
|
+
var _titleCase = _interopRequireDefault(require('./strings/titleCase'))
|
|
96
|
+
var _ucFirst = _interopRequireDefault(require('./strings/ucFirst'))
|
|
97
|
+
var _words = _interopRequireDefault(require('./strings/words'))
|
|
98
|
+
function _interopRequireDefault (e) { return e && e.__esModule ? e : { default: e } }
|
|
99
|
+
/**
|
|
100
|
+
* Manage how strings are manipulated with these utilities.
|
|
101
|
+
* @file
|
|
102
|
+
* @author Joshua Heagle <joshuaheagle@gmail.com>
|
|
103
|
+
* @version 1.0.0
|
|
104
|
+
* @module stringHelpers
|
|
105
|
+
* @memberOf module:siFunciona
|
|
106
|
+
*/
|
|
107
|
+
const _default = exports.default = {
|
|
108
|
+
camelCase: _camelCase.default,
|
|
109
|
+
kabobCase: _kabobCase.default,
|
|
110
|
+
makeFilepath: _makeFilepath.default,
|
|
111
|
+
makeRelativePath: _makeRelativePath.default,
|
|
112
|
+
regexEscape: _regexEscape.default,
|
|
113
|
+
snakeCase: _snakeCase.default,
|
|
114
|
+
strAfter: _strAfter.default,
|
|
115
|
+
strAfterLast: _strAfterLast.default,
|
|
116
|
+
strBefore: _strBefore.default,
|
|
117
|
+
strBeforeLast: _strBeforeLast.default,
|
|
118
|
+
titleCase: _titleCase.default,
|
|
119
|
+
ucFirst: _ucFirst.default,
|
|
120
|
+
words: _words.default
|
|
121
|
+
}
|
package/dist/main.d.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
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
|
-
export * from './helpers/arrays';
|
|
9
|
-
export * from './helpers/descriptors';
|
|
10
|
-
export * from './helpers/functions';
|
|
11
|
-
export * from './helpers/numbers';
|
|
12
|
-
export * from './helpers/objects';
|
|
13
|
-
export * from './helpers/strings';
|
|
14
|
-
declare const siFunciona: any;
|
|
15
|
-
export default siFunciona;
|
|
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
|
+
export * from './helpers/arrays';
|
|
9
|
+
export * from './helpers/descriptors';
|
|
10
|
+
export * from './helpers/functions';
|
|
11
|
+
export * from './helpers/numbers';
|
|
12
|
+
export * from './helpers/objects';
|
|
13
|
+
export * from './helpers/strings';
|
|
14
|
+
declare const siFunciona: any;
|
|
15
|
+
export default siFunciona;
|
|
16
16
|
//# sourceMappingURL=main.d.ts.map
|
package/dist/main.js
CHANGED
|
@@ -1,103 +1,103 @@
|
|
|
1
|
-
'use strict'
|
|
2
|
-
|
|
3
|
-
require('core-js/modules/esnext.iterator.constructor.js')
|
|
4
|
-
require('core-js/modules/esnext.iterator.for-each.js')
|
|
5
|
-
require('core-js/modules/esnext.weak-map.delete-all.js')
|
|
6
|
-
Object.defineProperty(exports, '__esModule', {
|
|
7
|
-
value: true
|
|
8
|
-
})
|
|
9
|
-
const _exportNames = {}
|
|
10
|
-
exports.default = void 0
|
|
11
|
-
const _arrays = _interopRequireWildcard(require('./helpers/arrays'))
|
|
12
|
-
Object.keys(_arrays).forEach(function (key) {
|
|
13
|
-
if (key === 'default' || key === '__esModule') return
|
|
14
|
-
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return
|
|
15
|
-
if (key in exports && exports[key] === _arrays[key]) return
|
|
16
|
-
Object.defineProperty(exports, key, {
|
|
17
|
-
enumerable: true,
|
|
18
|
-
get: function () {
|
|
19
|
-
return _arrays[key]
|
|
20
|
-
}
|
|
21
|
-
})
|
|
22
|
-
})
|
|
23
|
-
const _descriptors = _interopRequireWildcard(require('./helpers/descriptors'))
|
|
24
|
-
Object.keys(_descriptors).forEach(function (key) {
|
|
25
|
-
if (key === 'default' || key === '__esModule') return
|
|
26
|
-
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return
|
|
27
|
-
if (key in exports && exports[key] === _descriptors[key]) return
|
|
28
|
-
Object.defineProperty(exports, key, {
|
|
29
|
-
enumerable: true,
|
|
30
|
-
get: function () {
|
|
31
|
-
return _descriptors[key]
|
|
32
|
-
}
|
|
33
|
-
})
|
|
34
|
-
})
|
|
35
|
-
const _functions = _interopRequireWildcard(require('./helpers/functions'))
|
|
36
|
-
Object.keys(_functions).forEach(function (key) {
|
|
37
|
-
if (key === 'default' || key === '__esModule') return
|
|
38
|
-
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return
|
|
39
|
-
if (key in exports && exports[key] === _functions[key]) return
|
|
40
|
-
Object.defineProperty(exports, key, {
|
|
41
|
-
enumerable: true,
|
|
42
|
-
get: function () {
|
|
43
|
-
return _functions[key]
|
|
44
|
-
}
|
|
45
|
-
})
|
|
46
|
-
})
|
|
47
|
-
const _numbers = _interopRequireWildcard(require('./helpers/numbers'))
|
|
48
|
-
Object.keys(_numbers).forEach(function (key) {
|
|
49
|
-
if (key === 'default' || key === '__esModule') return
|
|
50
|
-
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return
|
|
51
|
-
if (key in exports && exports[key] === _numbers[key]) return
|
|
52
|
-
Object.defineProperty(exports, key, {
|
|
53
|
-
enumerable: true,
|
|
54
|
-
get: function () {
|
|
55
|
-
return _numbers[key]
|
|
56
|
-
}
|
|
57
|
-
})
|
|
58
|
-
})
|
|
59
|
-
const _objects = _interopRequireWildcard(require('./helpers/objects'))
|
|
60
|
-
Object.keys(_objects).forEach(function (key) {
|
|
61
|
-
if (key === 'default' || key === '__esModule') return
|
|
62
|
-
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return
|
|
63
|
-
if (key in exports && exports[key] === _objects[key]) return
|
|
64
|
-
Object.defineProperty(exports, key, {
|
|
65
|
-
enumerable: true,
|
|
66
|
-
get: function () {
|
|
67
|
-
return _objects[key]
|
|
68
|
-
}
|
|
69
|
-
})
|
|
70
|
-
})
|
|
71
|
-
const _strings = _interopRequireWildcard(require('./helpers/strings'))
|
|
72
|
-
Object.keys(_strings).forEach(function (key) {
|
|
73
|
-
if (key === 'default' || key === '__esModule') return
|
|
74
|
-
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return
|
|
75
|
-
if (key in exports && exports[key] === _strings[key]) return
|
|
76
|
-
Object.defineProperty(exports, key, {
|
|
77
|
-
enumerable: true,
|
|
78
|
-
get: function () {
|
|
79
|
-
return _strings[key]
|
|
80
|
-
}
|
|
81
|
-
})
|
|
82
|
-
})
|
|
83
|
-
function _interopRequireWildcard (e, t) { if (typeof WeakMap === 'function') var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; let o; let i; const f = { __proto__: null, default: e }; if (e === null || typeof e !== 'object' && typeof e !== 'function') return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f) } for (const t in e) t !== 'default' && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f })(e, t) }
|
|
84
|
-
/**
|
|
85
|
-
* All the siFunciona system functions for stringing together functions and simplifying logic.
|
|
86
|
-
* @file
|
|
87
|
-
* @author Joshua Heagle <joshuaheagle@gmail.com>
|
|
88
|
-
* @version 1.0.0
|
|
89
|
-
* @module siFunciona
|
|
90
|
-
*/
|
|
91
|
-
|
|
92
|
-
// Every function is available by name (import { curry } from 'si-funciona', require('si-funciona').curry) ...
|
|
93
|
-
|
|
94
|
-
// ... and all together on the default export (import siFunciona from 'si-funciona', require('si-funciona').default)
|
|
95
|
-
const siFunciona = Object.assign({}, _arrays.default, _descriptors.default, _functions.default, _numbers.default, _objects.default, _strings.default)
|
|
96
|
-
const _default = exports.default = siFunciona
|
|
97
|
-
if (void 0) {
|
|
98
|
-
// @ts-ignore
|
|
99
|
-
(void 0).siFunciona = siFunciona
|
|
100
|
-
} else if (typeof window !== 'undefined') {
|
|
101
|
-
// @ts-ignore
|
|
102
|
-
window.siFunciona = siFunciona
|
|
103
|
-
}
|
|
1
|
+
'use strict'
|
|
2
|
+
|
|
3
|
+
require('core-js/modules/esnext.iterator.constructor.js')
|
|
4
|
+
require('core-js/modules/esnext.iterator.for-each.js')
|
|
5
|
+
require('core-js/modules/esnext.weak-map.delete-all.js')
|
|
6
|
+
Object.defineProperty(exports, '__esModule', {
|
|
7
|
+
value: true
|
|
8
|
+
})
|
|
9
|
+
const _exportNames = {}
|
|
10
|
+
exports.default = void 0
|
|
11
|
+
const _arrays = _interopRequireWildcard(require('./helpers/arrays'))
|
|
12
|
+
Object.keys(_arrays).forEach(function (key) {
|
|
13
|
+
if (key === 'default' || key === '__esModule') return
|
|
14
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return
|
|
15
|
+
if (key in exports && exports[key] === _arrays[key]) return
|
|
16
|
+
Object.defineProperty(exports, key, {
|
|
17
|
+
enumerable: true,
|
|
18
|
+
get: function () {
|
|
19
|
+
return _arrays[key]
|
|
20
|
+
}
|
|
21
|
+
})
|
|
22
|
+
})
|
|
23
|
+
const _descriptors = _interopRequireWildcard(require('./helpers/descriptors'))
|
|
24
|
+
Object.keys(_descriptors).forEach(function (key) {
|
|
25
|
+
if (key === 'default' || key === '__esModule') return
|
|
26
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return
|
|
27
|
+
if (key in exports && exports[key] === _descriptors[key]) return
|
|
28
|
+
Object.defineProperty(exports, key, {
|
|
29
|
+
enumerable: true,
|
|
30
|
+
get: function () {
|
|
31
|
+
return _descriptors[key]
|
|
32
|
+
}
|
|
33
|
+
})
|
|
34
|
+
})
|
|
35
|
+
const _functions = _interopRequireWildcard(require('./helpers/functions'))
|
|
36
|
+
Object.keys(_functions).forEach(function (key) {
|
|
37
|
+
if (key === 'default' || key === '__esModule') return
|
|
38
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return
|
|
39
|
+
if (key in exports && exports[key] === _functions[key]) return
|
|
40
|
+
Object.defineProperty(exports, key, {
|
|
41
|
+
enumerable: true,
|
|
42
|
+
get: function () {
|
|
43
|
+
return _functions[key]
|
|
44
|
+
}
|
|
45
|
+
})
|
|
46
|
+
})
|
|
47
|
+
const _numbers = _interopRequireWildcard(require('./helpers/numbers'))
|
|
48
|
+
Object.keys(_numbers).forEach(function (key) {
|
|
49
|
+
if (key === 'default' || key === '__esModule') return
|
|
50
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return
|
|
51
|
+
if (key in exports && exports[key] === _numbers[key]) return
|
|
52
|
+
Object.defineProperty(exports, key, {
|
|
53
|
+
enumerable: true,
|
|
54
|
+
get: function () {
|
|
55
|
+
return _numbers[key]
|
|
56
|
+
}
|
|
57
|
+
})
|
|
58
|
+
})
|
|
59
|
+
const _objects = _interopRequireWildcard(require('./helpers/objects'))
|
|
60
|
+
Object.keys(_objects).forEach(function (key) {
|
|
61
|
+
if (key === 'default' || key === '__esModule') return
|
|
62
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return
|
|
63
|
+
if (key in exports && exports[key] === _objects[key]) return
|
|
64
|
+
Object.defineProperty(exports, key, {
|
|
65
|
+
enumerable: true,
|
|
66
|
+
get: function () {
|
|
67
|
+
return _objects[key]
|
|
68
|
+
}
|
|
69
|
+
})
|
|
70
|
+
})
|
|
71
|
+
const _strings = _interopRequireWildcard(require('./helpers/strings'))
|
|
72
|
+
Object.keys(_strings).forEach(function (key) {
|
|
73
|
+
if (key === 'default' || key === '__esModule') return
|
|
74
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return
|
|
75
|
+
if (key in exports && exports[key] === _strings[key]) return
|
|
76
|
+
Object.defineProperty(exports, key, {
|
|
77
|
+
enumerable: true,
|
|
78
|
+
get: function () {
|
|
79
|
+
return _strings[key]
|
|
80
|
+
}
|
|
81
|
+
})
|
|
82
|
+
})
|
|
83
|
+
function _interopRequireWildcard (e, t) { if (typeof WeakMap === 'function') var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; let o; let i; const f = { __proto__: null, default: e }; if (e === null || typeof e !== 'object' && typeof e !== 'function') return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f) } for (const t in e) t !== 'default' && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f })(e, t) }
|
|
84
|
+
/**
|
|
85
|
+
* All the siFunciona system functions for stringing together functions and simplifying logic.
|
|
86
|
+
* @file
|
|
87
|
+
* @author Joshua Heagle <joshuaheagle@gmail.com>
|
|
88
|
+
* @version 1.0.0
|
|
89
|
+
* @module siFunciona
|
|
90
|
+
*/
|
|
91
|
+
|
|
92
|
+
// Every function is available by name (import { curry } from 'si-funciona', require('si-funciona').curry) ...
|
|
93
|
+
|
|
94
|
+
// ... and all together on the default export (import siFunciona from 'si-funciona', require('si-funciona').default)
|
|
95
|
+
const siFunciona = Object.assign({}, _arrays.default, _descriptors.default, _functions.default, _numbers.default, _objects.default, _strings.default)
|
|
96
|
+
const _default = exports.default = siFunciona
|
|
97
|
+
if (void 0) {
|
|
98
|
+
// @ts-ignore
|
|
99
|
+
(void 0).siFunciona = siFunciona
|
|
100
|
+
} else if (typeof window !== 'undefined') {
|
|
101
|
+
// @ts-ignore
|
|
102
|
+
window.siFunciona = siFunciona
|
|
103
|
+
}
|
package/package.json
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"general",
|
|
14
14
|
"typescript"
|
|
15
15
|
],
|
|
16
|
-
"version": "2.
|
|
16
|
+
"version": "2.7.0",
|
|
17
17
|
"license": "GPL-3.0-or-later",
|
|
18
18
|
"bugs": {
|
|
19
19
|
"url": "https://github.com/jheagle/si-funciona/issues"
|
|
@@ -30,12 +30,12 @@
|
|
|
30
30
|
"watch:test": "gulp watchTest"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"collect-your-stuff": "^1.2
|
|
33
|
+
"collect-your-stuff": "^2.1.2",
|
|
34
34
|
"gulp": "^5.0.1",
|
|
35
|
-
"js-build-tools": "^5.
|
|
35
|
+
"js-build-tools": "^5.2.0",
|
|
36
36
|
"jsdoc": "^4.0.5",
|
|
37
37
|
"standard": "^17.1.2",
|
|
38
|
-
"test-filesystem": "^1.5.
|
|
38
|
+
"test-filesystem": "^1.5.1"
|
|
39
39
|
},
|
|
40
40
|
"resolutions": {},
|
|
41
41
|
"repository": {
|