UNPKG

4.32 kBJavaScriptView Raw
1/**
2 * Created by Andy Likuski on 2017.09.04
3 * Copyright (c) 2017 Andy Likuski
4 *
5 * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6 *
7 * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8 *
9 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
10 */
11
12import {mapToMergedResponseAndInputs, mapToMergedResponseAndInputsMDeep} from './monadHelpers';
13
14export {
15 reqStrPath,
16 camelCase,
17 capitalize,
18 compact,
19 compactEmpty,
20 compactJoin,
21 duplicateKey,
22 emptyToNull,
23 filterWithKeys,
24 findOne,
25 findByParams,
26 findOneValueByParams,
27 findMapped,
28 mapKeysAndValues,
29 hasStrPath,
30 idOrIdFromObj,
31 lowercase,
32 mapDefault,
33 mapDefaultAndPrefixOthers,
34 mapKeys,
35 mapKeysForLens,
36 mapProp,
37 mapPropValueAsIndex,
38 mapToObjValue,
39 mergeAllWithKey,
40 mergeDeep,
41 mergeDeepAll,
42 mergeDeepWith,
43 mergeDeepWithConcatArrays,
44 mergeDeepWithRecurseArrayItemsAndMapObjs,
45 mergeDeepWithRecurseArrayItems,
46 mergeDeepWithRecurseArrayItemsByRight,
47 mergeDeepWithRecurseArrayItemsByAndMergeObjectByRight,
48 moveToKeys,
49 onlyOne,
50 onlyOneValue,
51 orEmpty,
52 alwaysFunc,
53 strPathOr,
54 strPathOrNullOk,
55 removeDuplicateObjectsByProp,
56 renameKey,
57 reqPath,
58 reqPathPropEq,
59 strPath,
60 transformKeys,
61 mapObjToValues,
62 chainObjToValues,
63 fromPairsDeep,
64 replaceValuesAtDepth,
65 replaceValuesAtDepthAndStringify,
66 replaceValuesWithCountAtDepth,
67 replaceValuesWithCountAtDepthAndStringify,
68 flattenObj,
69 flattenObjUntil,
70 unflattenObjNoArrays,
71 unflattenObj,
72 filterObjToValues,
73 overDeep,
74 keyStringToLensPath,
75 omitDeep,
76 omitDeepPaths,
77 omitDeepBy,
78 pickDeepPaths,
79 applyDeep,
80 applyDeepAndMapObjs,
81 splitAtInclusive,
82 eqStrPath,
83 eqStrPathsAll,
84 toArrayIfNot,
85 isObject
86} from './functions';
87export {
88 throwIfSingleResultError,
89 mappedThrowIfResultError,
90 throwIfResultError,
91 findOneThrowing,
92 findOneValueByParamsThrowing,
93 onlyOneThrowing,
94 onlyOneValueThrowing,
95 reqPathPropEqThrowing,
96 reqPathThrowing,
97 reqStrPathThrowing
98} from './throwingFunctions';
99export {
100 defaultRunConfig,
101 defaultRunToResultConfig,
102 promiseToTask,
103 taskToPromise,
104 resultToTask,
105 resultToTaskNeedingResult,
106 resultToTaskWithResult,
107 lift1stOf2ForMDeepMonad,
108 objOfMLevelDeepListOfMonadsToListWithPairs,
109 objOfMLevelDeepMonadsToListWithPairs,
110 pairsOfMLevelDeepListOfMonadsToListWithPairs,
111 traverseReduce,
112 traverseReduceDeep,
113 traverseReduceWhile,
114 traverseReduceWhileBucketed,
115 traverseReduceWhileBucketedTasks,
116 traverseReduceError,
117 traverseReduceResultError,
118 mapMDeep,
119 traverseReduceDeepResults,
120 resultTasksToResultObjTask,
121 resultsToResultObj,
122 chainMDeep,
123 mapExceptChainDeepestMDeep,
124 chainExceptMapDeepestMDeep,
125 doMDeep,
126 doMDeepExceptDeepest,
127 mapToResponseAndInputs,
128 mapToMergedResponseAndInputs,
129 mapToMergedResponseAndInputsMDeep,
130 mapToNamedResponseAndInputs,
131 mapToNamedResponseAndInputsMDeep,
132 mapToPath,
133 mapWithArgToPath,
134 mapToNamedPathAndInputs,
135 mapResultMonadWithOtherInputs,
136 toNamedResponseAndInputs,
137 toMergedResponseAndInputs,
138 mapResultTaskWithOtherInputs,
139 taskToResultTask,
140 waitAllBucketed,
141 sequenceBucketed,
142 composeWithChain,
143 composeWithChainMDeep,
144 composeWithMapExceptChainDeepestMDeep,
145 composeWithMapMDeep,
146 retryTask,
147 mapMonadByConfig
148} from './monadHelpers';
149export {memoized, memoizedWith} from './memoizeHelpers';
150export {objectDiff, prettyPrintObjectDiff} from './diffHelpers';
151export {stringifyError} from './errorHelpers';
152