rubico 2.7.4 → 2.7.6
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/LICENSE +1 -1
- package/README.md +16 -16
- package/dist/Transducer.es.js +1 -1
- package/dist/Transducer.es.min.js +1 -1
- package/dist/Transducer.js +1 -1
- package/dist/Transducer.min.js +1 -1
- package/dist/Transducer.mjs +1 -1
- package/dist/__.es.js +1 -1
- package/dist/__.es.min.js +1 -1
- package/dist/__.js +1 -1
- package/dist/__.min.js +1 -1
- package/dist/__.mjs +1 -1
- package/dist/all.es.js +1 -1
- package/dist/all.es.min.js +1 -1
- package/dist/all.js +1 -1
- package/dist/all.min.js +1 -1
- package/dist/all.mjs +1 -1
- package/dist/always.es.js +1 -1
- package/dist/always.es.min.js +1 -1
- package/dist/always.js +1 -1
- package/dist/always.min.js +1 -1
- package/dist/always.mjs +1 -1
- package/dist/and.es.js +1 -1
- package/dist/and.es.min.js +1 -1
- package/dist/and.js +1 -1
- package/dist/and.min.js +1 -1
- package/dist/and.mjs +1 -1
- package/dist/assign.es.js +1 -1
- package/dist/assign.es.min.js +1 -1
- package/dist/assign.js +1 -1
- package/dist/assign.min.js +1 -1
- package/dist/assign.mjs +1 -1
- package/dist/compose.es.js +1 -1
- package/dist/compose.es.min.js +1 -1
- package/dist/compose.js +1 -1
- package/dist/compose.min.js +1 -1
- package/dist/compose.mjs +1 -1
- package/dist/curry.es.js +1 -1
- package/dist/curry.es.min.js +1 -1
- package/dist/curry.js +1 -1
- package/dist/curry.min.js +1 -1
- package/dist/curry.mjs +1 -1
- package/dist/eq.es.js +1 -1
- package/dist/eq.es.min.js +1 -1
- package/dist/eq.js +1 -1
- package/dist/eq.min.js +1 -1
- package/dist/eq.mjs +1 -1
- package/dist/every.es.js +1 -1
- package/dist/every.es.min.js +1 -1
- package/dist/every.js +1 -1
- package/dist/every.min.js +1 -1
- package/dist/every.mjs +1 -1
- package/dist/filter.es.js +1 -1
- package/dist/filter.es.min.js +1 -1
- package/dist/filter.js +1 -1
- package/dist/filter.min.js +1 -1
- package/dist/filter.mjs +1 -1
- package/dist/flatMap.es.js +1 -1
- package/dist/flatMap.es.min.js +1 -1
- package/dist/flatMap.js +1 -1
- package/dist/flatMap.min.js +1 -1
- package/dist/flatMap.mjs +1 -1
- package/dist/forEach.es.js +1 -1
- package/dist/forEach.es.min.js +1 -1
- package/dist/forEach.js +1 -1
- package/dist/forEach.min.js +1 -1
- package/dist/forEach.mjs +1 -1
- package/dist/get.es.js +1 -1
- package/dist/get.es.min.js +1 -1
- package/dist/get.js +1 -1
- package/dist/get.min.js +1 -1
- package/dist/get.mjs +1 -1
- package/dist/gt.es.js +1 -1
- package/dist/gt.es.min.js +1 -1
- package/dist/gt.js +1 -1
- package/dist/gt.min.js +1 -1
- package/dist/gt.mjs +1 -1
- package/dist/gte.es.js +1 -1
- package/dist/gte.es.min.js +1 -1
- package/dist/gte.js +1 -1
- package/dist/gte.min.js +1 -1
- package/dist/gte.mjs +1 -1
- package/dist/lt.es.js +1 -1
- package/dist/lt.es.min.js +1 -1
- package/dist/lt.js +1 -1
- package/dist/lt.min.js +1 -1
- package/dist/lt.mjs +1 -1
- package/dist/lte.es.js +1 -1
- package/dist/lte.es.min.js +1 -1
- package/dist/lte.js +1 -1
- package/dist/lte.min.js +1 -1
- package/dist/lte.mjs +1 -1
- package/dist/map.es.js +1 -1
- package/dist/map.es.min.js +1 -1
- package/dist/map.js +1 -1
- package/dist/map.min.js +1 -1
- package/dist/map.mjs +1 -1
- package/dist/not.es.js +1 -1
- package/dist/not.es.min.js +1 -1
- package/dist/not.js +1 -1
- package/dist/not.min.js +1 -1
- package/dist/not.mjs +1 -1
- package/dist/omit.es.js +1 -1
- package/dist/omit.es.min.js +1 -1
- package/dist/omit.js +1 -1
- package/dist/omit.min.js +1 -1
- package/dist/omit.mjs +1 -1
- package/dist/or.es.js +1 -1
- package/dist/or.es.min.js +1 -1
- package/dist/or.js +1 -1
- package/dist/or.min.js +1 -1
- package/dist/or.mjs +1 -1
- package/dist/pick.es.js +1 -1
- package/dist/pick.es.min.js +1 -1
- package/dist/pick.js +1 -1
- package/dist/pick.min.js +1 -1
- package/dist/pick.mjs +1 -1
- package/dist/pipe.es.js +1 -1
- package/dist/pipe.es.min.js +1 -1
- package/dist/pipe.js +1 -1
- package/dist/pipe.min.js +1 -1
- package/dist/pipe.mjs +1 -1
- package/dist/reduce.es.js +1 -1
- package/dist/reduce.es.min.js +1 -1
- package/dist/reduce.js +1 -1
- package/dist/reduce.min.js +1 -1
- package/dist/reduce.mjs +1 -1
- package/dist/rubico.es.js +1 -1
- package/dist/rubico.es.min.js +1 -1
- package/dist/rubico.global.js +1 -1
- package/dist/rubico.global.min.js +1 -1
- package/dist/rubico.js +1 -1
- package/dist/rubico.min.js +1 -1
- package/dist/rubico.mjs +1 -1
- package/dist/set.es.js +1 -1
- package/dist/set.es.min.js +1 -1
- package/dist/set.js +1 -1
- package/dist/set.min.js +1 -1
- package/dist/set.mjs +1 -1
- package/dist/some.es.js +1 -1
- package/dist/some.es.min.js +1 -1
- package/dist/some.js +1 -1
- package/dist/some.min.js +1 -1
- package/dist/some.mjs +1 -1
- package/dist/switchCase.es.js +1 -1
- package/dist/switchCase.es.min.js +1 -1
- package/dist/switchCase.js +1 -1
- package/dist/switchCase.min.js +1 -1
- package/dist/switchCase.mjs +1 -1
- package/dist/tap.es.js +1 -1
- package/dist/tap.es.min.js +1 -1
- package/dist/tap.js +1 -1
- package/dist/tap.min.js +1 -1
- package/dist/tap.mjs +1 -1
- package/dist/thunkify.es.js +1 -1
- package/dist/thunkify.es.min.js +1 -1
- package/dist/thunkify.js +1 -1
- package/dist/thunkify.min.js +1 -1
- package/dist/thunkify.mjs +1 -1
- package/dist/transform.es.js +1 -1
- package/dist/transform.es.min.js +1 -1
- package/dist/transform.js +1 -1
- package/dist/transform.min.js +1 -1
- package/dist/transform.mjs +1 -1
- package/dist/tryCatch.es.js +1 -1
- package/dist/tryCatch.es.min.js +1 -1
- package/dist/tryCatch.js +1 -1
- package/dist/tryCatch.min.js +1 -1
- package/dist/tryCatch.mjs +1 -1
- package/dist/x/append.es.js +1 -1
- package/dist/x/append.es.min.js +1 -1
- package/dist/x/append.js +1 -1
- package/dist/x/append.min.js +1 -1
- package/dist/x/append.mjs +1 -1
- package/dist/x/callProp.es.js +1 -1
- package/dist/x/callProp.es.min.js +1 -1
- package/dist/x/callProp.js +1 -1
- package/dist/x/callProp.min.js +1 -1
- package/dist/x/callProp.mjs +1 -1
- package/dist/x/defaultsDeep.es.js +1 -1
- package/dist/x/defaultsDeep.es.min.js +1 -1
- package/dist/x/defaultsDeep.js +1 -1
- package/dist/x/defaultsDeep.min.js +1 -1
- package/dist/x/defaultsDeep.mjs +1 -1
- package/dist/x/differenceWith.es.js +1 -1
- package/dist/x/differenceWith.es.min.js +1 -1
- package/dist/x/differenceWith.js +1 -1
- package/dist/x/differenceWith.min.js +1 -1
- package/dist/x/differenceWith.mjs +1 -1
- package/dist/x/filterOut.es.js +1 -1
- package/dist/x/filterOut.es.min.js +1 -1
- package/dist/x/filterOut.js +1 -1
- package/dist/x/filterOut.min.js +1 -1
- package/dist/x/filterOut.mjs +1 -1
- package/dist/x/find.es.js +1 -1
- package/dist/x/find.es.min.js +1 -1
- package/dist/x/find.js +1 -1
- package/dist/x/find.min.js +1 -1
- package/dist/x/find.mjs +1 -1
- package/dist/x/findIndex.es.js +1 -1
- package/dist/x/findIndex.es.min.js +1 -1
- package/dist/x/findIndex.js +1 -1
- package/dist/x/findIndex.min.js +1 -1
- package/dist/x/findIndex.mjs +1 -1
- package/dist/x/first.es.js +1 -1
- package/dist/x/first.es.min.js +1 -1
- package/dist/x/first.js +1 -1
- package/dist/x/first.min.js +1 -1
- package/dist/x/first.mjs +1 -1
- package/dist/x/flatten.es.js +1 -1
- package/dist/x/flatten.es.min.js +1 -1
- package/dist/x/flatten.js +1 -1
- package/dist/x/flatten.min.js +1 -1
- package/dist/x/flatten.mjs +1 -1
- package/dist/x/groupBy.es.js +1 -1
- package/dist/x/groupBy.es.min.js +1 -1
- package/dist/x/groupBy.js +1 -1
- package/dist/x/groupBy.min.js +1 -1
- package/dist/x/groupBy.mjs +1 -1
- package/dist/x/has.es.js +1 -1
- package/dist/x/has.es.min.js +1 -1
- package/dist/x/has.js +1 -1
- package/dist/x/has.min.js +1 -1
- package/dist/x/has.mjs +1 -1
- package/dist/x/identity.es.js +1 -1
- package/dist/x/identity.es.min.js +1 -1
- package/dist/x/identity.js +1 -1
- package/dist/x/identity.min.js +1 -1
- package/dist/x/identity.mjs +1 -1
- package/dist/x/includes.es.js +1 -1
- package/dist/x/includes.es.min.js +1 -1
- package/dist/x/includes.js +1 -1
- package/dist/x/includes.min.js +1 -1
- package/dist/x/includes.mjs +1 -1
- package/dist/x/isDeepEqual.es.js +1 -1
- package/dist/x/isDeepEqual.es.min.js +1 -1
- package/dist/x/isDeepEqual.js +1 -1
- package/dist/x/isDeepEqual.min.js +1 -1
- package/dist/x/isDeepEqual.mjs +1 -1
- package/dist/x/isEmpty.es.js +1 -1
- package/dist/x/isEmpty.es.min.js +1 -1
- package/dist/x/isEmpty.js +1 -1
- package/dist/x/isEmpty.min.js +1 -1
- package/dist/x/isEmpty.mjs +1 -1
- package/dist/x/isEqual.es.js +1 -1
- package/dist/x/isEqual.es.min.js +1 -1
- package/dist/x/isEqual.js +1 -1
- package/dist/x/isEqual.min.js +1 -1
- package/dist/x/isEqual.mjs +1 -1
- package/dist/x/isFunction.es.js +1 -1
- package/dist/x/isFunction.es.min.js +1 -1
- package/dist/x/isFunction.js +1 -1
- package/dist/x/isFunction.min.js +1 -1
- package/dist/x/isFunction.mjs +1 -1
- package/dist/x/isIn.es.js +1 -1
- package/dist/x/isIn.es.min.js +1 -1
- package/dist/x/isIn.js +1 -1
- package/dist/x/isIn.min.js +1 -1
- package/dist/x/isIn.mjs +1 -1
- package/dist/x/isObject.es.js +1 -1
- package/dist/x/isObject.es.min.js +1 -1
- package/dist/x/isObject.js +1 -1
- package/dist/x/isObject.min.js +1 -1
- package/dist/x/isObject.mjs +1 -1
- package/dist/x/isString.es.js +1 -1
- package/dist/x/isString.es.min.js +1 -1
- package/dist/x/isString.js +1 -1
- package/dist/x/isString.min.js +1 -1
- package/dist/x/isString.mjs +1 -1
- package/dist/x/keys.es.js +1 -1
- package/dist/x/keys.es.min.js +1 -1
- package/dist/x/keys.js +1 -1
- package/dist/x/keys.min.js +1 -1
- package/dist/x/keys.mjs +1 -1
- package/dist/x/last.es.js +1 -1
- package/dist/x/last.es.min.js +1 -1
- package/dist/x/last.js +1 -1
- package/dist/x/last.min.js +1 -1
- package/dist/x/last.mjs +1 -1
- package/dist/x/maxBy.es.js +1 -1
- package/dist/x/maxBy.es.min.js +1 -1
- package/dist/x/maxBy.js +1 -1
- package/dist/x/maxBy.min.js +1 -1
- package/dist/x/maxBy.mjs +1 -1
- package/dist/x/noop.es.js +1 -1
- package/dist/x/noop.es.min.js +1 -1
- package/dist/x/noop.js +1 -1
- package/dist/x/noop.min.js +1 -1
- package/dist/x/noop.mjs +1 -1
- package/dist/x/pluck.es.js +1 -1
- package/dist/x/pluck.es.min.js +1 -1
- package/dist/x/pluck.js +1 -1
- package/dist/x/pluck.min.js +1 -1
- package/dist/x/pluck.mjs +1 -1
- package/dist/x/prepend.es.js +1 -1
- package/dist/x/prepend.es.min.js +1 -1
- package/dist/x/prepend.js +1 -1
- package/dist/x/prepend.min.js +1 -1
- package/dist/x/prepend.mjs +1 -1
- package/dist/x/size.es.js +1 -1
- package/dist/x/size.es.min.js +1 -1
- package/dist/x/size.js +1 -1
- package/dist/x/size.min.js +1 -1
- package/dist/x/size.mjs +1 -1
- package/dist/x/trace.es.js +1 -1
- package/dist/x/trace.es.min.js +1 -1
- package/dist/x/trace.js +1 -1
- package/dist/x/trace.min.js +1 -1
- package/dist/x/trace.mjs +1 -1
- package/dist/x/unionWith.es.js +1 -1
- package/dist/x/unionWith.es.min.js +1 -1
- package/dist/x/unionWith.js +1 -1
- package/dist/x/unionWith.min.js +1 -1
- package/dist/x/unionWith.mjs +1 -1
- package/dist/x/uniq.es.js +1 -1
- package/dist/x/uniq.es.min.js +1 -1
- package/dist/x/uniq.js +1 -1
- package/dist/x/uniq.min.js +1 -1
- package/dist/x/uniq.mjs +1 -1
- package/dist/x/unless.es.js +1 -1
- package/dist/x/unless.es.min.js +1 -1
- package/dist/x/unless.js +1 -1
- package/dist/x/unless.min.js +1 -1
- package/dist/x/unless.mjs +1 -1
- package/dist/x/values.es.js +1 -1
- package/dist/x/values.es.min.js +1 -1
- package/dist/x/values.js +1 -1
- package/dist/x/values.min.js +1 -1
- package/dist/x/values.mjs +1 -1
- package/dist/x/when.es.js +1 -1
- package/dist/x/when.es.min.js +1 -1
- package/dist/x/when.js +1 -1
- package/dist/x/when.min.js +1 -1
- package/dist/x/when.mjs +1 -1
- package/es.js +1 -1
- package/global.js +1 -0
- package/index.js +1 -1
- package/package.json +2 -38
- package/AggregateReducer.d.ts +0 -10
- package/Transducer.d.ts +0 -231
- package/__.d.ts +0 -2
- package/_internal/ComparisonOperator.d.ts +0 -2
- package/_internal/EmptyMap.d.ts +0 -2
- package/_internal/FilteringAsyncIterator.d.ts +0 -29
- package/_internal/FilteringIterator.d.ts +0 -25
- package/_internal/FlatMappingAsyncIterator.d.ts +0 -34
- package/_internal/FlatMappingIterator.d.ts +0 -15
- package/_internal/MappingAsyncIterator.d.ts +0 -21
- package/_internal/MappingIterator.d.ts +0 -29
- package/_internal/NextIteration.d.ts +0 -14
- package/_internal/SelfReferencingPromise.d.ts +0 -10
- package/_internal/add.d.ts +0 -11
- package/_internal/always.d.ts +0 -13
- package/_internal/areAllValuesNonfunctions.d.ts +0 -10
- package/_internal/areAnyValuesPromises.d.ts +0 -10
- package/_internal/arrayConditional.d.ts +0 -20
- package/_internal/arrayEvery.d.ts +0 -10
- package/_internal/arrayExtend.d.ts +0 -13
- package/_internal/arrayExtendMap.d.ts +0 -20
- package/_internal/arrayFilter.d.ts +0 -16
- package/_internal/arrayFilterByConditions.d.ts +0 -20
- package/_internal/arrayFind.d.ts +0 -15
- package/_internal/arrayFlatMap.d.ts +0 -20
- package/_internal/arrayFlatten.d.ts +0 -20
- package/_internal/arrayForEach.d.ts +0 -19
- package/_internal/arrayJoin.d.ts +0 -13
- package/_internal/arrayMap.d.ts +0 -16
- package/_internal/arrayMapPool.d.ts +0 -19
- package/_internal/arrayMapSeries.d.ts +0 -17
- package/_internal/arrayPush.d.ts +0 -11
- package/_internal/arrayReduce.d.ts +0 -14
- package/_internal/arraySome.d.ts +0 -13
- package/_internal/asyncIteratorEvery.d.ts +0 -16
- package/_internal/asyncIteratorFind.d.ts +0 -12
- package/_internal/asyncIteratorForEach.d.ts +0 -17
- package/_internal/asyncIteratorReduce.d.ts +0 -14
- package/_internal/asyncIteratorSome.d.ts +0 -16
- package/_internal/binaryExtend.d.ts +0 -16
- package/_internal/bufferAlloc.d.ts +0 -8
- package/_internal/callConcat.d.ts +0 -8
- package/_internal/callPropBinary.d.ts +0 -18
- package/_internal/callPropUnary.d.ts +0 -17
- package/_internal/catcherApply.d.ts +0 -17
- package/_internal/copyDeep.d.ts +0 -13
- package/_internal/curry2.d.ts +0 -21
- package/_internal/curry3.d.ts +0 -22
- package/_internal/curry4.d.ts +0 -23
- package/_internal/curry5.d.ts +0 -24
- package/_internal/curryArgs2.d.ts +0 -21
- package/_internal/curryArgs3.d.ts +0 -22
- package/_internal/curryArgs4.d.ts +0 -23
- package/_internal/curryArity.d.ts +0 -20
- package/_internal/deleteByPath.d.ts +0 -13
- package/_internal/equals.d.ts +0 -10
- package/_internal/funcApply.d.ts +0 -16
- package/_internal/funcConcat.d.ts +0 -17
- package/_internal/funcConcatSync.d.ts +0 -17
- package/_internal/functionArrayAll.d.ts +0 -10
- package/_internal/functionArrayAllSeries.d.ts +0 -10
- package/_internal/functionObjectAll.d.ts +0 -13
- package/_internal/genericReduce.d.ts +0 -26
- package/_internal/genericTransform.d.ts +0 -18
- package/_internal/getArg1.d.ts +0 -8
- package/_internal/getByPath.d.ts +0 -13
- package/_internal/globalThisHasBuffer.d.ts +0 -11
- package/_internal/greaterThan.d.ts +0 -10
- package/_internal/greaterThanOrEqual.d.ts +0 -10
- package/_internal/identity.d.ts +0 -11
- package/_internal/isArray.d.ts +0 -11
- package/_internal/isAsyncGeneratorFunction.d.ts +0 -11
- package/_internal/isBinary.d.ts +0 -11
- package/_internal/isGeneratorFunction.d.ts +0 -11
- package/_internal/isNodeReadStream.d.ts +0 -11
- package/_internal/isObject.d.ts +0 -11
- package/_internal/isPromise.d.ts +0 -11
- package/_internal/iteratorEvery.d.ts +0 -12
- package/_internal/iteratorFind.d.ts +0 -12
- package/_internal/iteratorForEach.d.ts +0 -19
- package/_internal/iteratorReduce.d.ts +0 -18
- package/_internal/iteratorSome.d.ts +0 -13
- package/_internal/leftResolverRightResolverCompare.d.ts +0 -2
- package/_internal/leftResolverRightValueCompare.d.ts +0 -2
- package/_internal/leftValueRightResolverCompare.d.ts +0 -2
- package/_internal/lessThan.d.ts +0 -10
- package/_internal/lessThanOrEqual.d.ts +0 -10
- package/_internal/mapFilter.d.ts +0 -21
- package/_internal/mapFrom.d.ts +0 -13
- package/_internal/mapMap.d.ts +0 -16
- package/_internal/mapMapEntries.d.ts +0 -13
- package/_internal/mapReduce.d.ts +0 -14
- package/_internal/mapSet.d.ts +0 -10
- package/_internal/memoizeCappedUnary.d.ts +0 -18
- package/_internal/nonfunctionsConditional.d.ts +0 -10
- package/_internal/noop.d.ts +0 -11
- package/_internal/objectAssign.d.ts +0 -15
- package/_internal/objectFilter.d.ts +0 -13
- package/_internal/objectFlatMap.d.ts +0 -26
- package/_internal/objectFlatten.d.ts +0 -21
- package/_internal/objectForEach.d.ts +0 -17
- package/_internal/objectKeys.d.ts +0 -11
- package/_internal/objectKeysLength.d.ts +0 -10
- package/_internal/objectMap.d.ts +0 -17
- package/_internal/objectMapEntries.d.ts +0 -13
- package/_internal/objectReduce.d.ts +0 -14
- package/_internal/objectSet.d.ts +0 -14
- package/_internal/objectSetIf.d.ts +0 -15
- package/_internal/objectToString.d.ts +0 -11
- package/_internal/objectValues.d.ts +0 -11
- package/_internal/placeholder.d.ts +0 -2
- package/_internal/promiseAll.d.ts +0 -11
- package/_internal/promiseObjectAll.d.ts +0 -13
- package/_internal/promiseRace.d.ts +0 -11
- package/_internal/propertyPathToArray.d.ts +0 -10
- package/_internal/reducerAllSync.d.ts +0 -10
- package/_internal/reducerAnySync.d.ts +0 -10
- package/_internal/reducerConcat.d.ts +0 -15
- package/_internal/reducerEvery.d.ts +0 -12
- package/_internal/reducerFilter.d.ts +0 -19
- package/_internal/reducerFlatMap.d.ts +0 -20
- package/_internal/reducerForEach.d.ts +0 -18
- package/_internal/reducerMap.d.ts +0 -19
- package/_internal/reducerSome.d.ts +0 -16
- package/_internal/reducerTryCatch.d.ts +0 -15
- package/_internal/sameValueZero.d.ts +0 -13
- package/_internal/setByPath.d.ts +0 -14
- package/_internal/setExtend.d.ts +0 -12
- package/_internal/setFilter.d.ts +0 -16
- package/_internal/setFlatMap.d.ts +0 -21
- package/_internal/setFlatten.d.ts +0 -19
- package/_internal/setMap.d.ts +0 -17
- package/_internal/sha256.d.ts +0 -2
- package/_internal/sleep.d.ts +0 -10
- package/_internal/spread2.d.ts +0 -14
- package/_internal/streamExtend.d.ts +0 -17
- package/_internal/stringFilter.d.ts +0 -17
- package/_internal/stringFlatMap.d.ts +0 -22
- package/_internal/stringMap.d.ts +0 -19
- package/_internal/symbolAsyncIterator.d.ts +0 -11
- package/_internal/symbolIterator.d.ts +0 -11
- package/_internal/tapSync.d.ts +0 -16
- package/_internal/thunkConditional.d.ts +0 -17
- package/_internal/thunkify1.d.ts +0 -16
- package/_internal/thunkify2.d.ts +0 -17
- package/_internal/thunkify3.d.ts +0 -18
- package/_internal/thunkify4.d.ts +0 -19
- package/_internal/thunkify5.d.ts +0 -20
- package/_internal/thunkifyArgs.d.ts +0 -13
- package/_internal/timeInLoop.d.ts +0 -25
- package/_internal/timeInLoopAsync.d.ts +0 -23
- package/all.d.ts +0 -100
- package/always.d.ts +0 -2
- package/and.d.ts +0 -45
- package/assign.d.ts +0 -46
- package/compose.d.ts +0 -25
- package/curry.d.ts +0 -70
- package/eq.d.ts +0 -51
- package/es.d.ts +0 -80
- package/every.d.ts +0 -52
- package/filter.d.ts +0 -148
- package/flatMap.d.ts +0 -109
- package/forEach.d.ts +0 -35
- package/get.d.ts +0 -70
- package/global.d.ts +0 -1
- package/gt.d.ts +0 -49
- package/gte.d.ts +0 -51
- package/index.d.ts +0 -1
- package/lt.d.ts +0 -49
- package/lte.d.ts +0 -49
- package/map.d.ts +0 -246
- package/not.d.ts +0 -34
- package/omit.d.ts +0 -50
- package/or.d.ts +0 -43
- package/pick.d.ts +0 -43
- package/pipe.d.ts +0 -49
- package/reduce.d.ts +0 -166
- package/set.d.ts +0 -61
- package/some.d.ts +0 -65
- package/switchCase.d.ts +0 -76
- package/tap.d.ts +0 -53
- package/thunkify.d.ts +0 -21
- package/transform.d.ts +0 -131
- package/tryCatch.d.ts +0 -47
package/_internal/setFilter.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export = setFilter;
|
|
2
|
-
/**
|
|
3
|
-
* @name setFilter
|
|
4
|
-
*
|
|
5
|
-
* @synopsis
|
|
6
|
-
* ```coffeescript [specscript]
|
|
7
|
-
* setFilter<T>(
|
|
8
|
-
* set Set<T>,
|
|
9
|
-
* predicate T=>Promise|boolean,
|
|
10
|
-
* ) -> filteredSet Promise|Set<T>
|
|
11
|
-
* ```
|
|
12
|
-
*
|
|
13
|
-
* @description
|
|
14
|
-
* Filter elements of a Set concurrently by predicate. `predicate` may be asynchronous.
|
|
15
|
-
*/
|
|
16
|
-
declare function setFilter(value: any, predicate: any): any;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
export = setFlatMap;
|
|
2
|
-
/**
|
|
3
|
-
* @name setFlatMap
|
|
4
|
-
*
|
|
5
|
-
* @synopsis
|
|
6
|
-
* ```coffeescript [specscript]
|
|
7
|
-
* Stream<T> = { read: ()=>T, write: T=>() }
|
|
8
|
-
* Monad<T> = Array<T>|String<T>|Set<T>
|
|
9
|
-
* |TypedArray<T>|Stream<T>|Iterator<Promise|T>
|
|
10
|
-
* |{ chain: T=>Monad<T> }|{ flatMap: T=>Monad<T> }|Object<T>
|
|
11
|
-
* Reducer<T> = (any, T)=>Promise|any
|
|
12
|
-
* Foldable<T> = Iterable<T>|AsyncIterable<T>|{ reduce: Reducer<T> }|Object<T>
|
|
13
|
-
*
|
|
14
|
-
* setFlatMap<
|
|
15
|
-
* T any,
|
|
16
|
-
* set Set<T>,
|
|
17
|
-
* flatMapper T=>Promise|Monad<T>|Foldable<T>|T,
|
|
18
|
-
* >(set, flatMapper) -> Promise|Set<T>
|
|
19
|
-
* ```
|
|
20
|
-
*/
|
|
21
|
-
declare function setFlatMap(set: any, flatMapper: any): any;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
export = setFlatten;
|
|
2
|
-
/**
|
|
3
|
-
* @name setFlatten
|
|
4
|
-
*
|
|
5
|
-
* @synopsis
|
|
6
|
-
* ```coffeescript [specscript]
|
|
7
|
-
* Stream<T> = { read: ()=>T, write: T=>() }
|
|
8
|
-
* Monad<T> = Array<T>|String<T>|Set<T>
|
|
9
|
-
* |TypedArray<T>|Stream<T>|Iterator<Promise|T>
|
|
10
|
-
* |{ chain: T=>Monad<T> }|{ flatMap: T=>Monad<T> }|Object<T>
|
|
11
|
-
* Reducer<T> = (any, T)=>Promise|any
|
|
12
|
-
* Foldable<T> = Iterable<T>|AsyncIterable<T>|{ reduce: Reducer<T> }|Object<T>
|
|
13
|
-
*
|
|
14
|
-
* setFlatten<T>(
|
|
15
|
-
* set Set<Monad<T>|Foldable<T>|T>,
|
|
16
|
-
* ) -> flattened Set<T>
|
|
17
|
-
* ```
|
|
18
|
-
*/
|
|
19
|
-
declare function setFlatten(set: any): any;
|
package/_internal/setMap.d.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export = setMap;
|
|
2
|
-
/**
|
|
3
|
-
* @name setMap
|
|
4
|
-
*
|
|
5
|
-
* @synopsis
|
|
6
|
-
* ```coffeescript [specscript]
|
|
7
|
-
* setMap<
|
|
8
|
-
* T any,
|
|
9
|
-
* value Set<T>,
|
|
10
|
-
* mapper T=>Promise|any,
|
|
11
|
-
* >(value, mapper) -> Promise|Set
|
|
12
|
-
* ```
|
|
13
|
-
*
|
|
14
|
-
* @description
|
|
15
|
-
* Apply a mapper concurrently to each element of a set, returning a set of results.
|
|
16
|
-
*/
|
|
17
|
-
declare function setMap(set: any, mapper: any): any;
|
package/_internal/sha256.d.ts
DELETED
package/_internal/sleep.d.ts
DELETED
package/_internal/spread2.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export = spread2;
|
|
2
|
-
/**
|
|
3
|
-
* @name spread2
|
|
4
|
-
*
|
|
5
|
-
* @synopsis
|
|
6
|
-
* ```coffeescript [specscript]
|
|
7
|
-
* spread2<
|
|
8
|
-
* func function,
|
|
9
|
-
* arg0 any,
|
|
10
|
-
* arg1 any,
|
|
11
|
-
* >(func) -> spreading2 ([arg0, arg1])=>func(arg0, arg1)
|
|
12
|
-
* ```
|
|
13
|
-
*/
|
|
14
|
-
declare function spread2(func: any): ([arg0, arg1]: [any, any]) => any;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export = streamExtend;
|
|
2
|
-
/**
|
|
3
|
-
* @name streamExtend
|
|
4
|
-
*
|
|
5
|
-
* @synopsis
|
|
6
|
-
* ```coffeescript [specscript]
|
|
7
|
-
* Stream = { read: function, write: function }
|
|
8
|
-
*
|
|
9
|
-
* streamExtend<
|
|
10
|
-
* stream Stream,
|
|
11
|
-
* values Stream|any,
|
|
12
|
-
* >(stream, values) -> Promise|stream
|
|
13
|
-
* ```
|
|
14
|
-
*
|
|
15
|
-
* @TODO maybe support `.read`
|
|
16
|
-
*/
|
|
17
|
-
declare function streamExtend(stream: any, values: any): any;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export = stringFilter;
|
|
2
|
-
/**
|
|
3
|
-
* @name stringMap
|
|
4
|
-
*
|
|
5
|
-
* @synopsis
|
|
6
|
-
* ```coffeescript [specscript]
|
|
7
|
-
* stringMap<
|
|
8
|
-
* character string,
|
|
9
|
-
* str String<character>,
|
|
10
|
-
* mapper character=>Promise|string|any,
|
|
11
|
-
* >(str, mapper) -> stringWithCharactersMapped string
|
|
12
|
-
* ```
|
|
13
|
-
*
|
|
14
|
-
* @description
|
|
15
|
-
* Filter a string's characters by predicate.
|
|
16
|
-
*/
|
|
17
|
-
declare function stringFilter(string: any, predicate: any): any;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
export = stringFlatMap;
|
|
2
|
-
/**
|
|
3
|
-
* @name stringFlatMap
|
|
4
|
-
*
|
|
5
|
-
* @synopsis
|
|
6
|
-
* ```coffeescript [specscript]
|
|
7
|
-
* Stream<T> = { read: ()=>T, write: T=>() }
|
|
8
|
-
* Monad<T> = Array<T>|String<T>|Set<T>
|
|
9
|
-
* |TypedArray<T>|Stream<T>|Iterator<Promise|T>
|
|
10
|
-
* |{ chain: T=>Monad<T> }|{ flatMap: T=>Monad<T> }|Object<T>
|
|
11
|
-
* Reducer<T> = (any, T)=>Promise|any
|
|
12
|
-
* Foldable<T> = Iterable<T>|AsyncIterable<T>|{ reduce: Reducer<T> }|Object<T>
|
|
13
|
-
*
|
|
14
|
-
* stringFlatMap<T>(
|
|
15
|
-
* string String<T>,
|
|
16
|
-
* flatMapper T=>Promise|Monad<T>|Foldable<T>|T,
|
|
17
|
-
* ) -> Promise|String<T>
|
|
18
|
-
* ```
|
|
19
|
-
*
|
|
20
|
-
* @related arrayFlatMap
|
|
21
|
-
*/
|
|
22
|
-
declare function stringFlatMap(string: any, flatMapper: any): any;
|
package/_internal/stringMap.d.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
export = stringMap;
|
|
2
|
-
/**
|
|
3
|
-
* @name stringMap
|
|
4
|
-
*
|
|
5
|
-
* @synopsis
|
|
6
|
-
* ```coffeescript [specscript]
|
|
7
|
-
* stringMap<
|
|
8
|
-
* character string,
|
|
9
|
-
* str String<character>,
|
|
10
|
-
* mapper character=>Promise|string|any,
|
|
11
|
-
* >(str, mapper) -> stringWithCharactersMapped string
|
|
12
|
-
* ```
|
|
13
|
-
*
|
|
14
|
-
* @description
|
|
15
|
-
* Apply a mapper concurrently to each character of a string, returning a string result. `mapper` may be asynchronous.
|
|
16
|
-
*
|
|
17
|
-
* @related stringFlatMap
|
|
18
|
-
*/
|
|
19
|
-
declare function stringMap(string: any, mapper: any): any;
|
package/_internal/tapSync.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export = tapSync;
|
|
2
|
-
/**
|
|
3
|
-
* @name tapSync
|
|
4
|
-
*
|
|
5
|
-
* @synopsis
|
|
6
|
-
* ```coffeescript [specscript]
|
|
7
|
-
* tapSync<
|
|
8
|
-
* tapper function,
|
|
9
|
-
* args ...any,
|
|
10
|
-
* >(tapper)(...args) -> args[0]
|
|
11
|
-
* ```
|
|
12
|
-
*
|
|
13
|
-
* @description
|
|
14
|
-
* Call a function with arguments, returning the first argument. Promises are not handled.
|
|
15
|
-
*/
|
|
16
|
-
declare function tapSync(func: any): (...args: any[]) => any;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export = thunkConditional;
|
|
2
|
-
/**
|
|
3
|
-
* @name thunkConditional
|
|
4
|
-
*
|
|
5
|
-
* @synopsis
|
|
6
|
-
* ```coffeescript [specscript]
|
|
7
|
-
* thunkConditional<
|
|
8
|
-
* conditionalExpression boolean,
|
|
9
|
-
* thunkOnTruthy ()=>any,
|
|
10
|
-
* thunkOnFalsy ()=>any,
|
|
11
|
-
* >(conditionalExpression, thunkOnTruthy, thunkOnFalsy) -> any
|
|
12
|
-
* ```
|
|
13
|
-
*
|
|
14
|
-
* @description
|
|
15
|
-
* Like the conditional operator `a ? b : c` but for thunks.
|
|
16
|
-
*/
|
|
17
|
-
declare function thunkConditional(conditionalExpression: any, thunkOnTruthy: any, thunkOnFalsy: any): any;
|
package/_internal/thunkify1.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export = thunkify1;
|
|
2
|
-
/**
|
|
3
|
-
* @name thunkify1
|
|
4
|
-
*
|
|
5
|
-
* @synopsis
|
|
6
|
-
* ```coffeescript [specscript]
|
|
7
|
-
* thunkify1<
|
|
8
|
-
* arg0 any,
|
|
9
|
-
* func arg0=>any,
|
|
10
|
-
* >(func, arg0) -> thunk ()=>func(arg0)
|
|
11
|
-
* ```
|
|
12
|
-
*
|
|
13
|
-
* @description
|
|
14
|
-
* Create a thunk from a function and one argument.
|
|
15
|
-
*/
|
|
16
|
-
declare function thunkify1(func: any, arg0: any): () => any;
|
package/_internal/thunkify2.d.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export = thunkify2;
|
|
2
|
-
/**
|
|
3
|
-
* @name thunkify2
|
|
4
|
-
*
|
|
5
|
-
* @synopsis
|
|
6
|
-
* ```coffeescript [specscript]
|
|
7
|
-
* thunkify2<
|
|
8
|
-
* arg0 any,
|
|
9
|
-
* arg1 any,
|
|
10
|
-
* func (arg0, arg1)=>any,
|
|
11
|
-
* >(func, arg0, arg1) -> thunk ()=>func(arg0, arg1)
|
|
12
|
-
* ```
|
|
13
|
-
*
|
|
14
|
-
* @description
|
|
15
|
-
* Create a thunk from a function and two arguments.
|
|
16
|
-
*/
|
|
17
|
-
declare function thunkify2(func: any, arg0: any, arg1: any): () => any;
|
package/_internal/thunkify3.d.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
export = thunkify3;
|
|
2
|
-
/**
|
|
3
|
-
* @name thunkify3
|
|
4
|
-
*
|
|
5
|
-
* @synopsis
|
|
6
|
-
* ```coffeescript [specscript]
|
|
7
|
-
* thunkify3<
|
|
8
|
-
* arg0 any,
|
|
9
|
-
* arg1 any,
|
|
10
|
-
* arg2 any,
|
|
11
|
-
* func (arg0, arg1, arg2)=>any,
|
|
12
|
-
* >(func, arg0, arg1, arg2) -> thunk ()=>func(arg0, arg1, arg2)
|
|
13
|
-
* ```
|
|
14
|
-
*
|
|
15
|
-
* @description
|
|
16
|
-
* Create a thunk from a function and three arguments.
|
|
17
|
-
*/
|
|
18
|
-
declare function thunkify3(func: any, arg0: any, arg1: any, arg2: any): () => any;
|
package/_internal/thunkify4.d.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
export = thunkify4;
|
|
2
|
-
/**
|
|
3
|
-
* @name thunkify4
|
|
4
|
-
*
|
|
5
|
-
* @synopsis
|
|
6
|
-
* ```coffeescript [specscript]
|
|
7
|
-
* thunkify4<
|
|
8
|
-
* arg0 any,
|
|
9
|
-
* arg1 any,
|
|
10
|
-
* arg2 any,
|
|
11
|
-
* arg3 any,
|
|
12
|
-
* func (arg0, arg1, arg2, arg3)=>any,
|
|
13
|
-
* >(func, arg0, arg1, arg2, arg3) -> thunk ()=>func(arg0, arg1, arg2, arg3)
|
|
14
|
-
* ```
|
|
15
|
-
*
|
|
16
|
-
* @description
|
|
17
|
-
* Create a thunk from a function and four arguments.
|
|
18
|
-
*/
|
|
19
|
-
declare function thunkify4(func: any, arg0: any, arg1: any, arg2: any, arg3: any): () => any;
|
package/_internal/thunkify5.d.ts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
export = thunkify5;
|
|
2
|
-
/**
|
|
3
|
-
* @name thunkify5
|
|
4
|
-
*
|
|
5
|
-
* @synopsis
|
|
6
|
-
* ```coffeescript [specscript]
|
|
7
|
-
* thunkify5<
|
|
8
|
-
* arg0 any,
|
|
9
|
-
* arg1 any,
|
|
10
|
-
* arg2 any,
|
|
11
|
-
* arg3 any,
|
|
12
|
-
* arg4 any,
|
|
13
|
-
* func (arg0, arg1, arg2, arg3, arg4)=>any,
|
|
14
|
-
* >(func, arg0, arg1, arg2, arg3, arg4) -> thunk ()=>func(arg0, arg1, arg2, arg3, arg4)
|
|
15
|
-
* ```
|
|
16
|
-
*
|
|
17
|
-
* @description
|
|
18
|
-
* Create a thunk from a function and five arguments.
|
|
19
|
-
*/
|
|
20
|
-
declare function thunkify5(func: any, arg0: any, arg1: any, arg2: any, arg3: any, arg4: any): () => any;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export = thunkifyArgs;
|
|
2
|
-
/**
|
|
3
|
-
* @name thunkifyArgs
|
|
4
|
-
*
|
|
5
|
-
* @synopsis
|
|
6
|
-
* ```coffeescript [specscript]
|
|
7
|
-
* thunkifyArgs(func function, args Array) -> ()=>func(...args)
|
|
8
|
-
* ```
|
|
9
|
-
*
|
|
10
|
-
* @synopsis
|
|
11
|
-
* Create a thunk from a function and an arguments array.
|
|
12
|
-
*/
|
|
13
|
-
declare function thunkifyArgs(func: any, args: any): () => any;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
export = timeInLoop;
|
|
2
|
-
/**
|
|
3
|
-
* @name timeInLoop
|
|
4
|
-
*
|
|
5
|
-
* @synopsis
|
|
6
|
-
* ```coffeescript [specscript]
|
|
7
|
-
* timeInLoop(description string, loopCount number, fn function, options? {
|
|
8
|
-
* silent?: boolean,
|
|
9
|
-
* }) -> undefined
|
|
10
|
-
* ```
|
|
11
|
-
*
|
|
12
|
-
* @description
|
|
13
|
-
* Logs the amount of time required for a function to run a certain number of times
|
|
14
|
-
*
|
|
15
|
-
* ```js
|
|
16
|
-
* timeInLoop('hello', 1e6, () => 'hello') // hello: 1e+6: 3.474ms
|
|
17
|
-
* ```
|
|
18
|
-
*
|
|
19
|
-
* Reference: https://gist.github.com/funfunction/91b5876a5f562e1e352aed0fcabc3858
|
|
20
|
-
*/
|
|
21
|
-
declare function timeInLoop(description: any, loopCount: any, fn: any, options?: {}): {
|
|
22
|
-
description: any;
|
|
23
|
-
loopCount: any;
|
|
24
|
-
duration: number;
|
|
25
|
-
};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
export = timeInLoopAsync;
|
|
2
|
-
/**
|
|
3
|
-
* @name timeInLoopAsync
|
|
4
|
-
*
|
|
5
|
-
* @synopsis
|
|
6
|
-
* ```coffeescript [specscript]
|
|
7
|
-
* timeInLoop.async(description string, loopCount number, fn function, options? {
|
|
8
|
-
* silent?: boolean,
|
|
9
|
-
* }) -> undefined
|
|
10
|
-
* ```
|
|
11
|
-
*
|
|
12
|
-
* @description
|
|
13
|
-
* Like timeInLoop, but every call is awaited
|
|
14
|
-
*
|
|
15
|
-
* ```js
|
|
16
|
-
* timeInLoop.async('async hello', 1e6, async () => 'hello') // async hello: 1e+6: 116.006ms
|
|
17
|
-
* ```
|
|
18
|
-
*/
|
|
19
|
-
declare function timeInLoopAsync(description: any, loopCount: any, fn: any, options?: {}): Promise<{
|
|
20
|
-
description: any;
|
|
21
|
-
loopCount: any;
|
|
22
|
-
duration: number;
|
|
23
|
-
}>;
|
package/all.d.ts
DELETED
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
export = all;
|
|
2
|
-
/**
|
|
3
|
-
* @name all
|
|
4
|
-
*
|
|
5
|
-
* @synopsis
|
|
6
|
-
* ```coffeescript [specscript]
|
|
7
|
-
* all(...args, funcsArray Array<function>) -> result Promise|Array
|
|
8
|
-
*
|
|
9
|
-
* all(funcsArray Array<function>)(...args) -> result Promise|Array
|
|
10
|
-
*
|
|
11
|
-
* all(...args, funcsObject Object<function>) -> result Promise|Object
|
|
12
|
-
*
|
|
13
|
-
* all(funcsObject Object<function>)(...args) -> result Promise|Object
|
|
14
|
-
* ```
|
|
15
|
-
*
|
|
16
|
-
* @description
|
|
17
|
-
* Function executor and composer. Accepts either an array of functions or an object of functions as the values. Calls each function of the provided array or object in parallel with the provided arguments. Returns either an array or object of the results of the function executions.
|
|
18
|
-
*
|
|
19
|
-
* ```javascript [playground]
|
|
20
|
-
* const createArrayOfGreetingsFor = all([
|
|
21
|
-
* name => `Hi ${name}`,
|
|
22
|
-
* name => `Hey ${name}`,
|
|
23
|
-
* name => `Hello ${name}`,
|
|
24
|
-
* ])
|
|
25
|
-
*
|
|
26
|
-
* const arrayOfGreetingsForFred = createArrayOfGreetingsFor('Fred')
|
|
27
|
-
*
|
|
28
|
-
* console.log(arrayOfGreetingsForFred)
|
|
29
|
-
* // ['Hi Fred', 'Hey Fred', 'Hello Fred']
|
|
30
|
-
*
|
|
31
|
-
* const createObjectOfGreetingsFor = all({
|
|
32
|
-
* hi: name => `Hi ${name}`,
|
|
33
|
-
* hey: name => `Hey ${name}`,
|
|
34
|
-
* hello: name => `Hello ${name}`,
|
|
35
|
-
* })
|
|
36
|
-
*
|
|
37
|
-
* const objectOfGreetingsForJane = createObjectOfGreetingsFor('Jane')
|
|
38
|
-
*
|
|
39
|
-
* console.log(objectOfGreetingsForJane)
|
|
40
|
-
* // { hi: 'Hi Jane', hey: 'Hey Jane', hello: 'Hello Jane' }
|
|
41
|
-
* ```
|
|
42
|
-
*
|
|
43
|
-
* `all` can simultaneously compose objects and handle promises.
|
|
44
|
-
*
|
|
45
|
-
* ```javascript [playground]
|
|
46
|
-
* const identity = value => value
|
|
47
|
-
*
|
|
48
|
-
* const userbase = new Map()
|
|
49
|
-
* userbase.set('1', { _id: 1, name: 'John' })
|
|
50
|
-
*
|
|
51
|
-
* const getUserByID = async id => userbase.get(id)
|
|
52
|
-
*
|
|
53
|
-
* const getAndLogUserById = pipe([
|
|
54
|
-
* all({
|
|
55
|
-
* id: identity,
|
|
56
|
-
* user: getUserByID,
|
|
57
|
-
* }),
|
|
58
|
-
* tap(({ id, user }) => {
|
|
59
|
-
* console.log(`Got user ${JSON.stringify(user)} by id ${id}`)
|
|
60
|
-
* }),
|
|
61
|
-
* ])
|
|
62
|
-
*
|
|
63
|
-
* getAndLogUserById('1') // Got user {"_id":1,"name":"John"} by id 1
|
|
64
|
-
* ```
|
|
65
|
-
*
|
|
66
|
-
* @execution concurrent
|
|
67
|
-
*/
|
|
68
|
-
declare function all(...args: any[]): any;
|
|
69
|
-
declare namespace all {
|
|
70
|
-
/**
|
|
71
|
-
* @name all.series
|
|
72
|
-
*
|
|
73
|
-
* @synopsis
|
|
74
|
-
* ```coffeescript [specscript]
|
|
75
|
-
* all.series(...args, funcsArray Array<function>) -> result Promise|Array
|
|
76
|
-
*
|
|
77
|
-
* all.series(funcsArray Array<function>)(...args) -> result Promise|Array
|
|
78
|
-
* ```
|
|
79
|
-
*
|
|
80
|
-
* @description
|
|
81
|
-
* `all` with serial execution.
|
|
82
|
-
*
|
|
83
|
-
* ```javascript [playground]
|
|
84
|
-
* const sleep = ms => () => new Promise(resolve => setTimeout(resolve, ms))
|
|
85
|
-
*
|
|
86
|
-
* all.series([
|
|
87
|
-
* greeting => console.log(greeting + ' world'),
|
|
88
|
-
* sleep(1000),
|
|
89
|
-
* greeting => console.log(greeting + ' mom'),
|
|
90
|
-
* sleep(1000),
|
|
91
|
-
* greeting => console.log(greeting + ' goodbye'),
|
|
92
|
-
* ])('hello') // hello world
|
|
93
|
-
* // hello mom
|
|
94
|
-
* // hello goodbye
|
|
95
|
-
* ```
|
|
96
|
-
*
|
|
97
|
-
* @execution series
|
|
98
|
-
*/
|
|
99
|
-
function series(...args: any[]): any;
|
|
100
|
-
}
|
package/always.d.ts
DELETED
package/and.d.ts
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
export = and;
|
|
2
|
-
/**
|
|
3
|
-
* @name and
|
|
4
|
-
*
|
|
5
|
-
* @synopsis
|
|
6
|
-
* ```coffeescript [specscript]
|
|
7
|
-
* and(values Array<boolean>) -> result boolean
|
|
8
|
-
*
|
|
9
|
-
* and(...args, predicatesOrValues Array<function|boolean>) -> Promise|boolean
|
|
10
|
-
*
|
|
11
|
-
* and(predicatesOrValues Array<function|boolean>)(...args) -> Promise|boolean
|
|
12
|
-
* ```
|
|
13
|
-
*
|
|
14
|
-
* @description
|
|
15
|
-
* Tests an array of boolean values, returning true if all boolean values are truthy.
|
|
16
|
-
*
|
|
17
|
-
* ```javascript [playground]
|
|
18
|
-
* const oneIsLessThanThree = 1 < 3
|
|
19
|
-
* const twoIsGreaterThanOne = 2 > 1
|
|
20
|
-
* const threeIsEqualToThree = 3 === 3
|
|
21
|
-
*
|
|
22
|
-
* console.log(
|
|
23
|
-
* and([oneIsLessThanThree, twoIsGreaterThanOne, threeIsEqualToThree]),
|
|
24
|
-
* ) // true
|
|
25
|
-
* ```
|
|
26
|
-
*
|
|
27
|
-
* If any values in the array are synchronous or asynchronous predicate functions, `and` takes another argument to test concurrently against the predicate functions, returning true if all array values and resolved values from the predicates are truthy.
|
|
28
|
-
*
|
|
29
|
-
* ```javascript [playground]
|
|
30
|
-
* const isOdd = number => number % 2 == 1
|
|
31
|
-
*
|
|
32
|
-
* const isPositive = number => number > 0
|
|
33
|
-
*
|
|
34
|
-
* const isLessThan3 = number => number < 3
|
|
35
|
-
*
|
|
36
|
-
* console.log(
|
|
37
|
-
* and([isOdd, isPositive, isLessThan3])(1),
|
|
38
|
-
* ) // true
|
|
39
|
-
* ```
|
|
40
|
-
*
|
|
41
|
-
* @execution series
|
|
42
|
-
*
|
|
43
|
-
* @note ...args slows down here by an order of magnitude
|
|
44
|
-
*/
|
|
45
|
-
declare function and(...args: any[]): any;
|
package/assign.d.ts
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
export = assign;
|
|
2
|
-
/**
|
|
3
|
-
* @name assign
|
|
4
|
-
*
|
|
5
|
-
* @synopsis
|
|
6
|
-
* ```coffeescript [specscript]
|
|
7
|
-
* assign(object Object, resolvers Object<function>) -> result Promise|Object
|
|
8
|
-
*
|
|
9
|
-
* assign(resolvers Object<function>)(object Object) -> result Promise|Object
|
|
10
|
-
* ```
|
|
11
|
-
*
|
|
12
|
-
* @description
|
|
13
|
-
* Function executor and composer. Accepts an object of resolver functions and an argument object. Creates a result object from the argument object, evaluates each resolver with the argument object, and assigns to the result object the evaluations at the corresponding resolver keys.
|
|
14
|
-
*
|
|
15
|
-
* ```javascript [playground]
|
|
16
|
-
* const assignSquaredAndCubed = assign({
|
|
17
|
-
* squared: ({ number }) => number ** 2,
|
|
18
|
-
* cubed: ({ number }) => number ** 3,
|
|
19
|
-
* })
|
|
20
|
-
*
|
|
21
|
-
* console.log(assignSquaredAndCubed({ number: 2 }))
|
|
22
|
-
* // { number: 2, squared: 4, cubed: 8 }
|
|
23
|
-
*
|
|
24
|
-
* console.log(assignSquaredAndCubed({ number: 3 }))
|
|
25
|
-
* // { number: 3, squared: 9, cubed: 27 }
|
|
26
|
-
* ```
|
|
27
|
-
*
|
|
28
|
-
* Any of the resolvers may be asynchronous and return Promises.
|
|
29
|
-
*
|
|
30
|
-
* ```javascript [playground]
|
|
31
|
-
* const sleep = ms => new Promise(resolve => setTimeout(resolve, ms))
|
|
32
|
-
*
|
|
33
|
-
* const asyncAssignTotal = assign({
|
|
34
|
-
* async total({ numbers }) {
|
|
35
|
-
* await sleep(500)
|
|
36
|
-
* return numbers.reduce((a, b) => a + b)
|
|
37
|
-
* },
|
|
38
|
-
* })
|
|
39
|
-
*
|
|
40
|
-
* asyncAssignTotal({ numbers: [1, 2, 3, 4, 5] }).then(console.log)
|
|
41
|
-
* // { numbers: [1, 2, 3, 4, 5], total: 15 }
|
|
42
|
-
* ```
|
|
43
|
-
*
|
|
44
|
-
* @execution concurrent
|
|
45
|
-
*/
|
|
46
|
-
declare function assign(arg0: any, arg1: any): any;
|
package/compose.d.ts
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
export = compose;
|
|
2
|
-
/**
|
|
3
|
-
* @name compose
|
|
4
|
-
*
|
|
5
|
-
* @synopsis
|
|
6
|
-
* ```coffeescript [specscript]
|
|
7
|
-
* compose(funcs Array<function>)(...args) -> result Promise|any
|
|
8
|
-
*
|
|
9
|
-
* compose(...args, funcs Array<function>) -> result Promise|any
|
|
10
|
-
* ```
|
|
11
|
-
*
|
|
12
|
-
* @description
|
|
13
|
-
* Creates a function composition from an array of functions, where each function passes its return value as a single argument to the previous function until all functions have executed. The last function is called with the arguments to the composition, while the result of a function composition is the return value of its first function. If any function of the composition is asynchronous, the result of the execution is a Promise. `compose` is effectively `pipe` in reverse.
|
|
14
|
-
*
|
|
15
|
-
* ```javascript [playground]
|
|
16
|
-
* const f = number => number * 2
|
|
17
|
-
*
|
|
18
|
-
* const g = number => number + 3
|
|
19
|
-
*
|
|
20
|
-
* console.log(
|
|
21
|
-
* compose(5, [f, g]),
|
|
22
|
-
* ) // 16
|
|
23
|
-
* ```
|
|
24
|
-
*/
|
|
25
|
-
declare function compose(...args: any[]): any;
|