fp-ts-contrib
Advanced tools
Comparing version 0.1.18 to 0.1.19
@@ -16,2 +16,7 @@ # Changelog | ||
# 0.1.19 | ||
- **New Feature** | ||
- expose modules without lib/es6 prefix, closes #67 (@gcanti) | ||
# 0.1.18 | ||
@@ -18,0 +23,0 @@ |
@@ -17,5 +17,5 @@ import { URI } from 'fp-ts/es6/Array' | ||
* @example | ||
* import * as O from 'fp-ts/es6/Option' | ||
* import { lpadZipWith } from 'fp-ts-contrib/es6/Align/Array' | ||
* import { pipe } from 'fp-ts/es6/pipeable' | ||
* import * as O from 'fp-ts/Option' | ||
* import { lpadZipWith } from 'fp-ts-contrib/Align/Array' | ||
* import { pipe } from 'fp-ts/function' | ||
* | ||
@@ -40,4 +40,4 @@ * const f = (ma: O.Option<number>, b: string) => | ||
* @example | ||
* import { some, none } from 'fp-ts/es6/Option' | ||
* import { lpadZip } from 'fp-ts-contrib/es6/Align/Array' | ||
* import { some, none } from 'fp-ts/Option' | ||
* import { lpadZip } from 'fp-ts-contrib/Align/Array' | ||
* | ||
@@ -57,4 +57,4 @@ * assert.deepStrictEqual(lpadZip([1, 2], ['a', 'b', 'c']), [[some(1), 'a'], [some(2), 'b'], [none, 'c']]) | ||
* @example | ||
* import { Option, getOrElse } from 'fp-ts/es6/Option' | ||
* import { rpadZipWith } from 'fp-ts-contrib/es6/Align/Array' | ||
* import { Option, getOrElse } from 'fp-ts/Option' | ||
* import { rpadZipWith } from 'fp-ts-contrib/Align/Array' | ||
* | ||
@@ -75,4 +75,4 @@ * const f = (a: number, mb: Option<string>) => a.toString() + getOrElse(() => '*')(mb) | ||
* @example | ||
* import { some, none } from 'fp-ts/es6/Option' | ||
* import { rpadZip } from 'fp-ts-contrib/es6/Align/Array' | ||
* import { some, none } from 'fp-ts/Option' | ||
* import { rpadZip } from 'fp-ts-contrib/Align/Array' | ||
* | ||
@@ -79,0 +79,0 @@ * assert.deepStrictEqual(rpadZip([1, 2, 3], ['a', 'b']), [[1, some('a')], [2, some('b')], [3, none]]) |
@@ -26,5 +26,5 @@ /** | ||
* @example | ||
* import { These } from 'fp-ts/es6/These' | ||
* import { identity } from 'fp-ts/es6/function' | ||
* import { alignArray } from 'fp-ts-contrib/es6/Align/Array' | ||
* import { These } from 'fp-ts/These' | ||
* import { identity } from 'fp-ts/function' | ||
* import { alignArray } from 'fp-ts-contrib/Align/Array' | ||
* | ||
@@ -63,5 +63,5 @@ * const f = (x: These<number, string>) => x.fold(a => a.toString(), identity, (a, b) => a + b) | ||
* @example | ||
* import { These } from 'fp-ts/es6/These' | ||
* import { identity } from 'fp-ts/es6/function' | ||
* import { alignArray } from 'fp-ts-contrib/es6/Align/Array' | ||
* import { These } from 'fp-ts/These' | ||
* import { identity } from 'fp-ts/function' | ||
* import { alignArray } from 'fp-ts-contrib/Align/Array' | ||
* | ||
@@ -85,5 +85,5 @@ * assert.deepStrictEqual(alignArray.align([1, 2], ['a', 'b']), [both(1, 'a'), both(2, 'b')]) | ||
* @example | ||
* import * as O from 'fp-ts/es6/Option' | ||
* import { lpadZipWith } from 'fp-ts-contrib/es6/Align/Array' | ||
* import { pipe } from 'fp-ts/es6/pipeable' | ||
* import * as O from 'fp-ts/Option' | ||
* import { lpadZipWith } from 'fp-ts-contrib/Align/Array' | ||
* import { pipe } from 'fp-ts/function' | ||
* | ||
@@ -108,4 +108,4 @@ * const f = (ma: O.Option<number>, b: string) => | ||
* @example | ||
* import { some, none } from 'fp-ts/es6/Option' | ||
* import { lpadZip } from 'fp-ts-contrib/es6/Align/Array' | ||
* import { some, none } from 'fp-ts/Option' | ||
* import { lpadZip } from 'fp-ts-contrib/Align/Array' | ||
* | ||
@@ -127,4 +127,4 @@ * assert.deepStrictEqual(lpadZip([1, 2], ['a', 'b', 'c']), [[some(1), 'a'], [some(2), 'b'], [none, 'c']]) | ||
* @example | ||
* import { Option, getOrElse } from 'fp-ts/es6/Option' | ||
* import { rpadZipWith } from 'fp-ts-contrib/es6/Align/Array' | ||
* import { Option, getOrElse } from 'fp-ts/Option' | ||
* import { rpadZipWith } from 'fp-ts-contrib/Align/Array' | ||
* | ||
@@ -145,4 +145,4 @@ * const f = (a: number, mb: Option<string>) => a.toString() + getOrElse(() => '*')(mb) | ||
* @example | ||
* import { some, none } from 'fp-ts/es6/Option' | ||
* import { rpadZip } from 'fp-ts-contrib/es6/Align/Array' | ||
* import { some, none } from 'fp-ts/Option' | ||
* import { rpadZip } from 'fp-ts-contrib/Align/Array' | ||
* | ||
@@ -149,0 +149,0 @@ * assert.deepStrictEqual(rpadZip([1, 2, 3], ['a', 'b']), [[1, some('a')], [2, some('b')], [3, none]]) |
@@ -52,5 +52,5 @@ /** | ||
* @example | ||
* import { semigroupSum } from 'fp-ts/es6/Semigroup' | ||
* import { salign } from 'fp-ts-contrib/es6/Align' | ||
* import { alignArray } from 'fp-ts-contrib/es6/Align/Array' | ||
* import { semigroupSum } from 'fp-ts/Semigroup' | ||
* import { salign } from 'fp-ts-contrib/Align' | ||
* import { alignArray } from 'fp-ts-contrib/Align/Array' | ||
* | ||
@@ -84,5 +84,5 @@ * assert.deepStrictEqual(salign(alignArray, semigroupSum)([1, 2, 3], [4, 5]), [5, 7, 3]) | ||
* @example | ||
* import { some, none } from 'fp-ts/es6/Option' | ||
* import { padZip } from 'fp-ts-contrib/es6/Align' | ||
* import { alignArray } from 'fp-ts-contrib/es6/Align/Array' | ||
* import { some, none } from 'fp-ts/Option' | ||
* import { padZip } from 'fp-ts-contrib/Align' | ||
* import { alignArray } from 'fp-ts-contrib/Align/Array' | ||
* | ||
@@ -112,6 +112,6 @@ * assert.deepStrictEqual(padZip(alignArray)([1, 2, 3], [4, 5]), [[some(1), some(4)], [some(2), some(5)], [some(3), none]]) | ||
* @example | ||
* import { Option, fold, getOrElse } from 'fp-ts/es6/Option' | ||
* import { padZipWith } from 'fp-ts-contrib/es6/Align' | ||
* import { alignArray } from 'fp-ts-contrib/es6/Align/Array' | ||
* import { pipe } from 'fp-ts/es6/pipeable' | ||
* import { Option, fold, getOrElse } from 'fp-ts/Option' | ||
* import { padZipWith } from 'fp-ts-contrib/Align' | ||
* import { alignArray } from 'fp-ts-contrib/Align/Array' | ||
* import { pipe } from 'fp-ts/function' | ||
* | ||
@@ -118,0 +118,0 @@ * const f = (ma: Option<number>, mb: Option<string>) => |
@@ -26,6 +26,6 @@ /** | ||
* @example | ||
* import { some, none } from 'fp-ts/es6/Option' | ||
* import { These } from 'fp-ts/es6/These' | ||
* import { identity } from 'fp-ts/es6/function' | ||
* import { alignOption } from 'fp-ts-contrib/es6/Align/Option' | ||
* import { some, none } from 'fp-ts/Option' | ||
* import { These } from 'fp-ts/These' | ||
* import { identity } from 'fp-ts/function' | ||
* import { alignOption } from 'fp-ts-contrib/Align/Option' | ||
* | ||
@@ -59,5 +59,5 @@ * const f = (x: These<number, string>) => x.fold(a => a.toString(), identity, (a, b) => a + b) | ||
* @example | ||
* import { some, none } from 'fp-ts/es6/Option' | ||
* import { both, left, right } from 'fp-ts/es6/These' | ||
* import { alignOption } from 'fp-ts-contrib/es6/Align/Option' | ||
* import { some, none } from 'fp-ts/Option' | ||
* import { both, left, right } from 'fp-ts/These' | ||
* import { alignOption } from 'fp-ts-contrib/Align/Option' | ||
* | ||
@@ -64,0 +64,0 @@ * assert.deepStrictEqual(alignOption.align(some(1), some('a')), some(both(1, 'a'))) |
@@ -13,8 +13,8 @@ /** | ||
* @example | ||
* import { array } from 'fp-ts/es6/Array' | ||
* import * as E from 'fp-ts/es6/Either' | ||
* import { flow } from 'fp-ts/es6/function' | ||
* import * as O from 'fp-ts/es6/Option' | ||
* import * as TE from 'fp-ts/es6/TaskEither' | ||
* import { collectUntil } from 'fp-ts-contrib/es6/collectUntil' | ||
* import { array } from 'fp-ts/Array' | ||
* import * as E from 'fp-ts/Either' | ||
* import { flow } from 'fp-ts/function' | ||
* import * as O from 'fp-ts/Option' | ||
* import * as TE from 'fp-ts/TaskEither' | ||
* import { collectUntil } from 'fp-ts-contrib/collectUntil' | ||
* | ||
@@ -21,0 +21,0 @@ * interface Page { |
@@ -501,4 +501,4 @@ import { HKT, Kind, Kind2, Kind3, URIS, URIS2, URIS3 } from 'fp-ts/es6/HKT' | ||
* @example | ||
* import { option, some } from 'fp-ts/es6/Option' | ||
* import { Do } from 'fp-ts-contrib/es6/Do' | ||
* import { option, some } from 'fp-ts/Option' | ||
* import { Do } from 'fp-ts-contrib/Do' | ||
* | ||
@@ -505,0 +505,0 @@ * // x: Option<number> |
@@ -17,4 +17,4 @@ /** | ||
* @example | ||
* import { io, IO } from 'fp-ts/es6/IO' | ||
* import { filterA } from 'fp-ts-contrib/es6/filterA' | ||
* import { io, IO } from 'fp-ts/IO' | ||
* import { filterA } from 'fp-ts-contrib/filterA' | ||
* | ||
@@ -21,0 +21,0 @@ * const filterAIO = filterA(io) |
@@ -40,3 +40,3 @@ import * as Eq from 'fp-ts/es6/Eq' | ||
* @example | ||
* import * as L from 'fp-ts-contrib/es6/List' | ||
* import * as L from 'fp-ts-contrib/List' | ||
* | ||
@@ -53,3 +53,3 @@ * assert.deepStrictEqual(L.cons('a', L.nil), { type: 'Cons', head: 'a', tail: L.nil, length: 1 }) | ||
* @example | ||
* import * as L from 'fp-ts-contrib/es6/List' | ||
* import * as L from 'fp-ts-contrib/List' | ||
* | ||
@@ -67,4 +67,4 @@ * assert.deepStrictEqual(L.fromArray([]), L.nil) | ||
* @example | ||
* import * as O from 'fp-ts/es6/Option' | ||
* import * as L from 'fp-ts-contrib/es6/List' | ||
* import * as O from 'fp-ts/Option' | ||
* import * as L from 'fp-ts-contrib/List' | ||
* | ||
@@ -82,4 +82,4 @@ * assert.deepStrictEqual(L.head(L.nil), O.none) | ||
* @example | ||
* import * as O from 'fp-ts/es6/Option' | ||
* import * as L from 'fp-ts-contrib/es6/List' | ||
* import * as O from 'fp-ts/Option' | ||
* import * as L from 'fp-ts-contrib/List' | ||
* | ||
@@ -98,3 +98,3 @@ * assert.deepStrictEqual(L.tail(L.nil), O.none) | ||
* @example | ||
* import * as L from 'fp-ts-contrib/es6/List' | ||
* import * as L from 'fp-ts-contrib/List' | ||
* | ||
@@ -115,3 +115,3 @@ * const len: <A>(as: L.List<A>) => number = L.foldLeft( | ||
* @example | ||
* import * as L from 'fp-ts-contrib/es6/List' | ||
* import * as L from 'fp-ts-contrib/List' | ||
* | ||
@@ -128,3 +128,3 @@ * assert.deepStrictEqual(L.toArray(L.cons('a', L.of('b'))), ['a', 'b']) | ||
* @example | ||
* import * as L from 'fp-ts-contrib/es6/List' | ||
* import * as L from 'fp-ts-contrib/List' | ||
* | ||
@@ -141,3 +141,3 @@ * assert.deepStrictEqual(L.toReversedArray(L.cons('a', L.of('b'))), ['b', 'a']) | ||
* @example | ||
* import * as L from 'fp-ts-contrib/es6/List' | ||
* import * as L from 'fp-ts-contrib/List' | ||
* | ||
@@ -154,3 +154,3 @@ * assert.deepStrictEqual(L.reverse(L.cons(1, L.cons(2, L.of(3)))), L.cons(3, L.cons(2, L.of(1)))) | ||
* @example | ||
* import * as L from 'fp-ts-contrib/es6/List' | ||
* import * as L from 'fp-ts-contrib/List' | ||
* | ||
@@ -169,3 +169,3 @@ * assert.deepStrictEqual(L.dropLeft(1)(L.nil), L.nil) | ||
* @example | ||
* import * as L from 'fp-ts-contrib/es6/List' | ||
* import * as L from 'fp-ts-contrib/List' | ||
* | ||
@@ -210,3 +210,3 @@ * const isLTThree = (n: number) => n < 3 | ||
* @example | ||
* import * as L from 'fp-ts-contrib/es6/List' | ||
* import * as L from 'fp-ts-contrib/List' | ||
* | ||
@@ -223,4 +223,4 @@ * assert.deepStrictEqual(L.of('a'), L.cons('a', L.nil)) | ||
* @example | ||
* import * as O from 'fp-ts/es6/Option' | ||
* import * as L from 'fp-ts-contrib/es6/List' | ||
* import * as O from 'fp-ts/Option' | ||
* import * as L from 'fp-ts-contrib/List' | ||
* | ||
@@ -258,4 +258,4 @@ * const f = (a: number): boolean => a % 2 === 0 | ||
* @example | ||
* import { eqString } from 'fp-ts/es6/Eq' | ||
* import * as L from 'fp-ts-contrib/es6/List' | ||
* import { eqString } from 'fp-ts/Eq' | ||
* import * as L from 'fp-ts-contrib/List' | ||
* | ||
@@ -294,3 +294,3 @@ * const E = L.getEq(eqString) | ||
* @example | ||
* import * as L from 'fp-ts-contrib/es6/List' | ||
* import * as L from 'fp-ts-contrib/List' | ||
* | ||
@@ -307,3 +307,3 @@ * assert.strictEqual(L.isNil(L.nil), true) | ||
* @example | ||
* import * as L from 'fp-ts-contrib/es6/List' | ||
* import * as L from 'fp-ts-contrib/List' | ||
* | ||
@@ -310,0 +310,0 @@ * assert.strictEqual(L.isCons(L.nil), false) |
@@ -15,3 +15,3 @@ import * as A from 'fp-ts/es6/Array'; | ||
* @example | ||
* import * as L from 'fp-ts-contrib/es6/List' | ||
* import * as L from 'fp-ts-contrib/List' | ||
* | ||
@@ -33,3 +33,3 @@ * assert.deepStrictEqual(L.cons('a', L.nil), { type: 'Cons', head: 'a', tail: L.nil, length: 1 }) | ||
* @example | ||
* import * as L from 'fp-ts-contrib/es6/List' | ||
* import * as L from 'fp-ts-contrib/List' | ||
* | ||
@@ -50,4 +50,4 @@ * assert.deepStrictEqual(L.fromArray([]), L.nil) | ||
* @example | ||
* import * as O from 'fp-ts/es6/Option' | ||
* import * as L from 'fp-ts-contrib/es6/List' | ||
* import * as O from 'fp-ts/Option' | ||
* import * as L from 'fp-ts-contrib/List' | ||
* | ||
@@ -65,4 +65,4 @@ * assert.deepStrictEqual(L.head(L.nil), O.none) | ||
* @example | ||
* import * as O from 'fp-ts/es6/Option' | ||
* import * as L from 'fp-ts-contrib/es6/List' | ||
* import * as O from 'fp-ts/Option' | ||
* import * as L from 'fp-ts-contrib/List' | ||
* | ||
@@ -81,3 +81,3 @@ * assert.deepStrictEqual(L.tail(L.nil), O.none) | ||
* @example | ||
* import * as L from 'fp-ts-contrib/es6/List' | ||
* import * as L from 'fp-ts-contrib/List' | ||
* | ||
@@ -98,3 +98,3 @@ * const len: <A>(as: L.List<A>) => number = L.foldLeft( | ||
* @example | ||
* import * as L from 'fp-ts-contrib/es6/List' | ||
* import * as L from 'fp-ts-contrib/List' | ||
* | ||
@@ -120,3 +120,3 @@ * assert.deepStrictEqual(L.toArray(L.cons('a', L.of('b'))), ['a', 'b']) | ||
* @example | ||
* import * as L from 'fp-ts-contrib/es6/List' | ||
* import * as L from 'fp-ts-contrib/List' | ||
* | ||
@@ -145,3 +145,3 @@ * assert.deepStrictEqual(L.toReversedArray(L.cons('a', L.of('b'))), ['b', 'a']) | ||
* @example | ||
* import * as L from 'fp-ts-contrib/es6/List' | ||
* import * as L from 'fp-ts-contrib/List' | ||
* | ||
@@ -166,3 +166,3 @@ * assert.deepStrictEqual(L.reverse(L.cons(1, L.cons(2, L.of(3)))), L.cons(3, L.cons(2, L.of(1)))) | ||
* @example | ||
* import * as L from 'fp-ts-contrib/es6/List' | ||
* import * as L from 'fp-ts-contrib/List' | ||
* | ||
@@ -282,3 +282,3 @@ * assert.deepStrictEqual(L.dropLeft(1)(L.nil), L.nil) | ||
* @example | ||
* import * as L from 'fp-ts-contrib/es6/List' | ||
* import * as L from 'fp-ts-contrib/List' | ||
* | ||
@@ -298,4 +298,4 @@ * assert.deepStrictEqual(L.of('a'), L.cons('a', L.nil)) | ||
* @example | ||
* import * as O from 'fp-ts/es6/Option' | ||
* import * as L from 'fp-ts-contrib/es6/List' | ||
* import * as O from 'fp-ts/Option' | ||
* import * as L from 'fp-ts-contrib/List' | ||
* | ||
@@ -336,4 +336,4 @@ * const f = (a: number): boolean => a % 2 === 0 | ||
* @example | ||
* import { eqString } from 'fp-ts/es6/Eq' | ||
* import * as L from 'fp-ts-contrib/es6/List' | ||
* import { eqString } from 'fp-ts/Eq' | ||
* import * as L from 'fp-ts-contrib/List' | ||
* | ||
@@ -413,3 +413,3 @@ * const E = L.getEq(eqString) | ||
* @example | ||
* import * as L from 'fp-ts-contrib/es6/List' | ||
* import * as L from 'fp-ts-contrib/List' | ||
* | ||
@@ -426,3 +426,3 @@ * assert.strictEqual(L.isNil(L.nil), true) | ||
* @example | ||
* import * as L from 'fp-ts-contrib/es6/List' | ||
* import * as L from 'fp-ts-contrib/List' | ||
* | ||
@@ -429,0 +429,0 @@ * assert.strictEqual(L.isCons(L.nil), false) |
@@ -15,5 +15,5 @@ /** | ||
* @example | ||
* import * as O from 'fp-ts/es6/Option' | ||
* import { match } from 'fp-ts-contrib/es6/RegExp' | ||
* import { pipe } from 'fp-ts/es6/pipeable' | ||
* import * as O from 'fp-ts/Option' | ||
* import { match } from 'fp-ts-contrib/RegExp' | ||
* import { pipe } from 'fp-ts/function' | ||
* | ||
@@ -32,3 +32,3 @@ * const myMatch = match(/^(\d)(\w)$/) | ||
* @example | ||
* import { test } from 'fp-ts-contrib/es6/RegExp' | ||
* import { test } from 'fp-ts-contrib/RegExp' | ||
* | ||
@@ -47,3 +47,3 @@ * const myTest = test(/^(\d)(\w)$/) | ||
* @example | ||
* import { sub } from 'fp-ts-contrib/es6/RegExp' | ||
* import { sub } from 'fp-ts-contrib/RegExp' | ||
* | ||
@@ -61,3 +61,3 @@ * const sanitiseSpaces = sub(/\s/g, '_') | ||
* @example | ||
* import { split } from 'fp-ts-contrib/es6/RegExp' | ||
* import { split } from 'fp-ts-contrib/RegExp' | ||
* | ||
@@ -64,0 +64,0 @@ * const splitByHash = split(/#/) |
@@ -13,5 +13,5 @@ /** | ||
* @example | ||
* import * as O from 'fp-ts/es6/Option' | ||
* import { match } from 'fp-ts-contrib/es6/RegExp' | ||
* import { pipe } from 'fp-ts/es6/pipeable' | ||
* import * as O from 'fp-ts/Option' | ||
* import { match } from 'fp-ts-contrib/RegExp' | ||
* import { pipe } from 'fp-ts/function' | ||
* | ||
@@ -30,3 +30,3 @@ * const myMatch = match(/^(\d)(\w)$/) | ||
* @example | ||
* import { test } from 'fp-ts-contrib/es6/RegExp' | ||
* import { test } from 'fp-ts-contrib/RegExp' | ||
* | ||
@@ -45,3 +45,3 @@ * const myTest = test(/^(\d)(\w)$/) | ||
* @example | ||
* import { sub } from 'fp-ts-contrib/es6/RegExp' | ||
* import { sub } from 'fp-ts-contrib/RegExp' | ||
* | ||
@@ -61,3 +61,3 @@ * const sanitiseSpaces = sub(/\s/g, '_') | ||
* @example | ||
* import { split } from 'fp-ts-contrib/es6/RegExp' | ||
* import { split } from 'fp-ts-contrib/RegExp' | ||
* | ||
@@ -64,0 +64,0 @@ * const splitByHash = split(/#/) |
@@ -20,5 +20,5 @@ /** | ||
* @example | ||
* import { These } from 'fp-ts/es6/These' | ||
* import { identity } from 'fp-ts/es6/function' | ||
* import { alignNonEmptyArray } from 'fp-ts-contrib/es6/Semialign/NonEmptyArray' | ||
* import { These } from 'fp-ts/These' | ||
* import { identity } from 'fp-ts/function' | ||
* import { alignNonEmptyArray } from 'fp-ts-contrib/Semialign/NonEmptyArray' | ||
* | ||
@@ -40,5 +40,5 @@ * const f = (x: These<number, string>) => x.fold(a => a.toString(), identity, (a, b) => a + b) | ||
* @example | ||
* import { These } from 'fp-ts/es6/These' | ||
* import { identity } from 'fp-ts/es6/function' | ||
* import { alignNonEmptyArray } from 'fp-ts-contrib/es6/Semialign/NonEmptyArray' | ||
* import { These } from 'fp-ts/These' | ||
* import { identity } from 'fp-ts/function' | ||
* import { alignNonEmptyArray } from 'fp-ts-contrib/Semialign/NonEmptyArray' | ||
* | ||
@@ -45,0 +45,0 @@ * assert.deepStrictEqual(semialignNonEmptyArray.align(new NonEmptyArray(1, [2, 3]), new NonEmptyArray('a', ['b', 'c']), new NonEmptyArray(both(1, 'a'), [both(2, 'b'), both(3, 'c')])) |
@@ -9,4 +9,4 @@ /** | ||
* @example | ||
* import { withTimeout } from 'fp-ts-contrib/es6/Task/withTimeout' | ||
* import { delay, of } from 'fp-ts/es6/Task' | ||
* import { withTimeout } from 'fp-ts-contrib/Task/withTimeout' | ||
* import { delay, of } from 'fp-ts/Task' | ||
* | ||
@@ -13,0 +13,0 @@ * const completeAfter2s = delay(2000)(of('result')) |
@@ -9,4 +9,4 @@ /** | ||
* @example | ||
* import { withTimeout } from 'fp-ts-contrib/es6/Task/withTimeout' | ||
* import { delay, of } from 'fp-ts/es6/Task' | ||
* import { withTimeout } from 'fp-ts-contrib/Task/withTimeout' | ||
* import { delay, of } from 'fp-ts/Task' | ||
* | ||
@@ -13,0 +13,0 @@ * const completeAfter2s = delay(2000)(of('result')) |
@@ -8,5 +8,5 @@ import { HKT, Kind, Kind2, Kind3, URIS, URIS2, URIS3 } from 'fp-ts/es6/HKT' | ||
* @example | ||
* import { io } from 'fp-ts/es6/IO' | ||
* import { randomInt } from 'fp-ts/es6/Random' | ||
* import { time } from 'fp-ts-contrib/es6/time' | ||
* import { io } from 'fp-ts/IO' | ||
* import { randomInt } from 'fp-ts/Random' | ||
* import { time } from 'fp-ts-contrib/time' | ||
* | ||
@@ -13,0 +13,0 @@ * const timeIO = time(io) |
@@ -17,5 +17,5 @@ import { URI } from 'fp-ts/lib/Array' | ||
* @example | ||
* import * as O from 'fp-ts/lib/Option' | ||
* import { lpadZipWith } from 'fp-ts-contrib/lib/Align/Array' | ||
* import { pipe } from 'fp-ts/lib/pipeable' | ||
* import * as O from 'fp-ts/Option' | ||
* import { lpadZipWith } from 'fp-ts-contrib/Align/Array' | ||
* import { pipe } from 'fp-ts/function' | ||
* | ||
@@ -40,4 +40,4 @@ * const f = (ma: O.Option<number>, b: string) => | ||
* @example | ||
* import { some, none } from 'fp-ts/lib/Option' | ||
* import { lpadZip } from 'fp-ts-contrib/lib/Align/Array' | ||
* import { some, none } from 'fp-ts/Option' | ||
* import { lpadZip } from 'fp-ts-contrib/Align/Array' | ||
* | ||
@@ -57,4 +57,4 @@ * assert.deepStrictEqual(lpadZip([1, 2], ['a', 'b', 'c']), [[some(1), 'a'], [some(2), 'b'], [none, 'c']]) | ||
* @example | ||
* import { Option, getOrElse } from 'fp-ts/lib/Option' | ||
* import { rpadZipWith } from 'fp-ts-contrib/lib/Align/Array' | ||
* import { Option, getOrElse } from 'fp-ts/Option' | ||
* import { rpadZipWith } from 'fp-ts-contrib/Align/Array' | ||
* | ||
@@ -75,4 +75,4 @@ * const f = (a: number, mb: Option<string>) => a.toString() + getOrElse(() => '*')(mb) | ||
* @example | ||
* import { some, none } from 'fp-ts/lib/Option' | ||
* import { rpadZip } from 'fp-ts-contrib/lib/Align/Array' | ||
* import { some, none } from 'fp-ts/Option' | ||
* import { rpadZip } from 'fp-ts-contrib/Align/Array' | ||
* | ||
@@ -79,0 +79,0 @@ * assert.deepStrictEqual(rpadZip([1, 2, 3], ['a', 'b']), [[1, some('a')], [2, some('b')], [3, none]]) |
@@ -28,5 +28,5 @@ "use strict"; | ||
* @example | ||
* import { These } from 'fp-ts/lib/These' | ||
* import { identity } from 'fp-ts/lib/function' | ||
* import { alignArray } from 'fp-ts-contrib/lib/Align/Array' | ||
* import { These } from 'fp-ts/These' | ||
* import { identity } from 'fp-ts/function' | ||
* import { alignArray } from 'fp-ts-contrib/Align/Array' | ||
* | ||
@@ -65,5 +65,5 @@ * const f = (x: These<number, string>) => x.fold(a => a.toString(), identity, (a, b) => a + b) | ||
* @example | ||
* import { These } from 'fp-ts/lib/These' | ||
* import { identity } from 'fp-ts/lib/function' | ||
* import { alignArray } from 'fp-ts-contrib/lib/Align/Array' | ||
* import { These } from 'fp-ts/These' | ||
* import { identity } from 'fp-ts/function' | ||
* import { alignArray } from 'fp-ts-contrib/Align/Array' | ||
* | ||
@@ -87,5 +87,5 @@ * assert.deepStrictEqual(alignArray.align([1, 2], ['a', 'b']), [both(1, 'a'), both(2, 'b')]) | ||
* @example | ||
* import * as O from 'fp-ts/lib/Option' | ||
* import { lpadZipWith } from 'fp-ts-contrib/lib/Align/Array' | ||
* import { pipe } from 'fp-ts/lib/pipeable' | ||
* import * as O from 'fp-ts/Option' | ||
* import { lpadZipWith } from 'fp-ts-contrib/Align/Array' | ||
* import { pipe } from 'fp-ts/function' | ||
* | ||
@@ -110,4 +110,4 @@ * const f = (ma: O.Option<number>, b: string) => | ||
* @example | ||
* import { some, none } from 'fp-ts/lib/Option' | ||
* import { lpadZip } from 'fp-ts-contrib/lib/Align/Array' | ||
* import { some, none } from 'fp-ts/Option' | ||
* import { lpadZip } from 'fp-ts-contrib/Align/Array' | ||
* | ||
@@ -129,4 +129,4 @@ * assert.deepStrictEqual(lpadZip([1, 2], ['a', 'b', 'c']), [[some(1), 'a'], [some(2), 'b'], [none, 'c']]) | ||
* @example | ||
* import { Option, getOrElse } from 'fp-ts/lib/Option' | ||
* import { rpadZipWith } from 'fp-ts-contrib/lib/Align/Array' | ||
* import { Option, getOrElse } from 'fp-ts/Option' | ||
* import { rpadZipWith } from 'fp-ts-contrib/Align/Array' | ||
* | ||
@@ -147,4 +147,4 @@ * const f = (a: number, mb: Option<string>) => a.toString() + getOrElse(() => '*')(mb) | ||
* @example | ||
* import { some, none } from 'fp-ts/lib/Option' | ||
* import { rpadZip } from 'fp-ts-contrib/lib/Align/Array' | ||
* import { some, none } from 'fp-ts/Option' | ||
* import { rpadZip } from 'fp-ts-contrib/Align/Array' | ||
* | ||
@@ -151,0 +151,0 @@ * assert.deepStrictEqual(rpadZip([1, 2, 3], ['a', 'b']), [[1, some('a')], [2, some('b')], [3, none]]) |
@@ -52,5 +52,5 @@ /** | ||
* @example | ||
* import { semigroupSum } from 'fp-ts/lib/Semigroup' | ||
* import { salign } from 'fp-ts-contrib/lib/Align' | ||
* import { alignArray } from 'fp-ts-contrib/lib/Align/Array' | ||
* import { semigroupSum } from 'fp-ts/Semigroup' | ||
* import { salign } from 'fp-ts-contrib/Align' | ||
* import { alignArray } from 'fp-ts-contrib/Align/Array' | ||
* | ||
@@ -84,5 +84,5 @@ * assert.deepStrictEqual(salign(alignArray, semigroupSum)([1, 2, 3], [4, 5]), [5, 7, 3]) | ||
* @example | ||
* import { some, none } from 'fp-ts/lib/Option' | ||
* import { padZip } from 'fp-ts-contrib/lib/Align' | ||
* import { alignArray } from 'fp-ts-contrib/lib/Align/Array' | ||
* import { some, none } from 'fp-ts/Option' | ||
* import { padZip } from 'fp-ts-contrib/Align' | ||
* import { alignArray } from 'fp-ts-contrib/Align/Array' | ||
* | ||
@@ -112,6 +112,6 @@ * assert.deepStrictEqual(padZip(alignArray)([1, 2, 3], [4, 5]), [[some(1), some(4)], [some(2), some(5)], [some(3), none]]) | ||
* @example | ||
* import { Option, fold, getOrElse } from 'fp-ts/lib/Option' | ||
* import { padZipWith } from 'fp-ts-contrib/lib/Align' | ||
* import { alignArray } from 'fp-ts-contrib/lib/Align/Array' | ||
* import { pipe } from 'fp-ts/lib/pipeable' | ||
* import { Option, fold, getOrElse } from 'fp-ts/Option' | ||
* import { padZipWith } from 'fp-ts-contrib/Align' | ||
* import { alignArray } from 'fp-ts-contrib/Align/Array' | ||
* import { pipe } from 'fp-ts/function' | ||
* | ||
@@ -118,0 +118,0 @@ * const f = (ma: Option<number>, mb: Option<string>) => |
@@ -28,6 +28,6 @@ "use strict"; | ||
* @example | ||
* import { some, none } from 'fp-ts/lib/Option' | ||
* import { These } from 'fp-ts/lib/These' | ||
* import { identity } from 'fp-ts/lib/function' | ||
* import { alignOption } from 'fp-ts-contrib/lib/Align/Option' | ||
* import { some, none } from 'fp-ts/Option' | ||
* import { These } from 'fp-ts/These' | ||
* import { identity } from 'fp-ts/function' | ||
* import { alignOption } from 'fp-ts-contrib/Align/Option' | ||
* | ||
@@ -61,5 +61,5 @@ * const f = (x: These<number, string>) => x.fold(a => a.toString(), identity, (a, b) => a + b) | ||
* @example | ||
* import { some, none } from 'fp-ts/lib/Option' | ||
* import { both, left, right } from 'fp-ts/lib/These' | ||
* import { alignOption } from 'fp-ts-contrib/lib/Align/Option' | ||
* import { some, none } from 'fp-ts/Option' | ||
* import { both, left, right } from 'fp-ts/These' | ||
* import { alignOption } from 'fp-ts-contrib/Align/Option' | ||
* | ||
@@ -66,0 +66,0 @@ * assert.deepStrictEqual(alignOption.align(some(1), some('a')), some(both(1, 'a'))) |
"use strict"; | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k]; | ||
result["default"] = mod; | ||
return result; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -6,3 +13,3 @@ /** | ||
*/ | ||
var R = require("fp-ts/lib/Record"); | ||
var R = __importStar(require("fp-ts/lib/Record")); | ||
var These_1 = require("fp-ts/lib/These"); | ||
@@ -9,0 +16,0 @@ var function_1 = require("fp-ts/lib/function"); |
@@ -13,8 +13,8 @@ /** | ||
* @example | ||
* import { array } from 'fp-ts/lib/Array' | ||
* import * as E from 'fp-ts/lib/Either' | ||
* import { flow } from 'fp-ts/lib/function' | ||
* import * as O from 'fp-ts/lib/Option' | ||
* import * as TE from 'fp-ts/lib/TaskEither' | ||
* import { collectUntil } from 'fp-ts-contrib/lib/collectUntil' | ||
* import { array } from 'fp-ts/Array' | ||
* import * as E from 'fp-ts/Either' | ||
* import { flow } from 'fp-ts/function' | ||
* import * as O from 'fp-ts/Option' | ||
* import * as TE from 'fp-ts/TaskEither' | ||
* import { collectUntil } from 'fp-ts-contrib/collectUntil' | ||
* | ||
@@ -21,0 +21,0 @@ * interface Page { |
@@ -501,4 +501,4 @@ import { HKT, Kind, Kind2, Kind3, URIS, URIS2, URIS3 } from 'fp-ts/lib/HKT' | ||
* @example | ||
* import { option, some } from 'fp-ts/lib/Option' | ||
* import { Do } from 'fp-ts-contrib/lib/Do' | ||
* import { option, some } from 'fp-ts/Option' | ||
* import { Do } from 'fp-ts-contrib/Do' | ||
* | ||
@@ -505,0 +505,0 @@ * // x: Option<number> |
@@ -17,4 +17,4 @@ /** | ||
* @example | ||
* import { io, IO } from 'fp-ts/lib/IO' | ||
* import { filterA } from 'fp-ts-contrib/lib/filterA' | ||
* import { io, IO } from 'fp-ts/IO' | ||
* import { filterA } from 'fp-ts-contrib/filterA' | ||
* | ||
@@ -21,0 +21,0 @@ * const filterAIO = filterA(io) |
"use strict"; | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k]; | ||
result["default"] = mod; | ||
return result; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var A = require("fp-ts/lib/Array"); | ||
var O = require("fp-ts/lib/Option"); | ||
var A = __importStar(require("fp-ts/lib/Array")); | ||
var O = __importStar(require("fp-ts/lib/Option")); | ||
function filterA(F) { | ||
@@ -6,0 +13,0 @@ var wither = A.array.wither(F); |
@@ -13,4 +13,11 @@ "use strict"; | ||
}; | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k]; | ||
result["default"] = mod; | ||
return result; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var O = require("fp-ts/lib/Option"); | ||
var O = __importStar(require("fp-ts/lib/Option")); | ||
var OptionT_1 = require("fp-ts/lib/OptionT"); | ||
@@ -17,0 +24,0 @@ var Filterable_1 = require("fp-ts/lib/Filterable"); |
@@ -40,3 +40,3 @@ import * as Eq from 'fp-ts/lib/Eq' | ||
* @example | ||
* import * as L from 'fp-ts-contrib/lib/List' | ||
* import * as L from 'fp-ts-contrib/List' | ||
* | ||
@@ -53,3 +53,3 @@ * assert.deepStrictEqual(L.cons('a', L.nil), { type: 'Cons', head: 'a', tail: L.nil, length: 1 }) | ||
* @example | ||
* import * as L from 'fp-ts-contrib/lib/List' | ||
* import * as L from 'fp-ts-contrib/List' | ||
* | ||
@@ -67,4 +67,4 @@ * assert.deepStrictEqual(L.fromArray([]), L.nil) | ||
* @example | ||
* import * as O from 'fp-ts/lib/Option' | ||
* import * as L from 'fp-ts-contrib/lib/List' | ||
* import * as O from 'fp-ts/Option' | ||
* import * as L from 'fp-ts-contrib/List' | ||
* | ||
@@ -82,4 +82,4 @@ * assert.deepStrictEqual(L.head(L.nil), O.none) | ||
* @example | ||
* import * as O from 'fp-ts/lib/Option' | ||
* import * as L from 'fp-ts-contrib/lib/List' | ||
* import * as O from 'fp-ts/Option' | ||
* import * as L from 'fp-ts-contrib/List' | ||
* | ||
@@ -98,3 +98,3 @@ * assert.deepStrictEqual(L.tail(L.nil), O.none) | ||
* @example | ||
* import * as L from 'fp-ts-contrib/lib/List' | ||
* import * as L from 'fp-ts-contrib/List' | ||
* | ||
@@ -115,3 +115,3 @@ * const len: <A>(as: L.List<A>) => number = L.foldLeft( | ||
* @example | ||
* import * as L from 'fp-ts-contrib/lib/List' | ||
* import * as L from 'fp-ts-contrib/List' | ||
* | ||
@@ -128,3 +128,3 @@ * assert.deepStrictEqual(L.toArray(L.cons('a', L.of('b'))), ['a', 'b']) | ||
* @example | ||
* import * as L from 'fp-ts-contrib/lib/List' | ||
* import * as L from 'fp-ts-contrib/List' | ||
* | ||
@@ -141,3 +141,3 @@ * assert.deepStrictEqual(L.toReversedArray(L.cons('a', L.of('b'))), ['b', 'a']) | ||
* @example | ||
* import * as L from 'fp-ts-contrib/lib/List' | ||
* import * as L from 'fp-ts-contrib/List' | ||
* | ||
@@ -154,3 +154,3 @@ * assert.deepStrictEqual(L.reverse(L.cons(1, L.cons(2, L.of(3)))), L.cons(3, L.cons(2, L.of(1)))) | ||
* @example | ||
* import * as L from 'fp-ts-contrib/lib/List' | ||
* import * as L from 'fp-ts-contrib/List' | ||
* | ||
@@ -169,3 +169,3 @@ * assert.deepStrictEqual(L.dropLeft(1)(L.nil), L.nil) | ||
* @example | ||
* import * as L from 'fp-ts-contrib/lib/List' | ||
* import * as L from 'fp-ts-contrib/List' | ||
* | ||
@@ -210,3 +210,3 @@ * const isLTThree = (n: number) => n < 3 | ||
* @example | ||
* import * as L from 'fp-ts-contrib/lib/List' | ||
* import * as L from 'fp-ts-contrib/List' | ||
* | ||
@@ -223,4 +223,4 @@ * assert.deepStrictEqual(L.of('a'), L.cons('a', L.nil)) | ||
* @example | ||
* import * as O from 'fp-ts/lib/Option' | ||
* import * as L from 'fp-ts-contrib/lib/List' | ||
* import * as O from 'fp-ts/Option' | ||
* import * as L from 'fp-ts-contrib/List' | ||
* | ||
@@ -258,4 +258,4 @@ * const f = (a: number): boolean => a % 2 === 0 | ||
* @example | ||
* import { eqString } from 'fp-ts/lib/Eq' | ||
* import * as L from 'fp-ts-contrib/lib/List' | ||
* import { eqString } from 'fp-ts/Eq' | ||
* import * as L from 'fp-ts-contrib/List' | ||
* | ||
@@ -294,3 +294,3 @@ * const E = L.getEq(eqString) | ||
* @example | ||
* import * as L from 'fp-ts-contrib/lib/List' | ||
* import * as L from 'fp-ts-contrib/List' | ||
* | ||
@@ -307,3 +307,3 @@ * assert.strictEqual(L.isNil(L.nil), true) | ||
* @example | ||
* import * as L from 'fp-ts-contrib/lib/List' | ||
* import * as L from 'fp-ts-contrib/List' | ||
* | ||
@@ -310,0 +310,0 @@ * assert.strictEqual(L.isCons(L.nil), false) |
"use strict"; | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k]; | ||
result["default"] = mod; | ||
return result; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var A = require("fp-ts/lib/Array"); | ||
var O = require("fp-ts/lib/Option"); | ||
var A = __importStar(require("fp-ts/lib/Array")); | ||
var O = __importStar(require("fp-ts/lib/Option")); | ||
// ------------------------------------------------------------------------------------- | ||
@@ -17,3 +24,3 @@ // constructors | ||
* @example | ||
* import * as L from 'fp-ts-contrib/lib/List' | ||
* import * as L from 'fp-ts-contrib/List' | ||
* | ||
@@ -35,3 +42,3 @@ * assert.deepStrictEqual(L.cons('a', L.nil), { type: 'Cons', head: 'a', tail: L.nil, length: 1 }) | ||
* @example | ||
* import * as L from 'fp-ts-contrib/lib/List' | ||
* import * as L from 'fp-ts-contrib/List' | ||
* | ||
@@ -52,4 +59,4 @@ * assert.deepStrictEqual(L.fromArray([]), L.nil) | ||
* @example | ||
* import * as O from 'fp-ts/lib/Option' | ||
* import * as L from 'fp-ts-contrib/lib/List' | ||
* import * as O from 'fp-ts/Option' | ||
* import * as L from 'fp-ts-contrib/List' | ||
* | ||
@@ -67,4 +74,4 @@ * assert.deepStrictEqual(L.head(L.nil), O.none) | ||
* @example | ||
* import * as O from 'fp-ts/lib/Option' | ||
* import * as L from 'fp-ts-contrib/lib/List' | ||
* import * as O from 'fp-ts/Option' | ||
* import * as L from 'fp-ts-contrib/List' | ||
* | ||
@@ -83,3 +90,3 @@ * assert.deepStrictEqual(L.tail(L.nil), O.none) | ||
* @example | ||
* import * as L from 'fp-ts-contrib/lib/List' | ||
* import * as L from 'fp-ts-contrib/List' | ||
* | ||
@@ -100,3 +107,3 @@ * const len: <A>(as: L.List<A>) => number = L.foldLeft( | ||
* @example | ||
* import * as L from 'fp-ts-contrib/lib/List' | ||
* import * as L from 'fp-ts-contrib/List' | ||
* | ||
@@ -122,3 +129,3 @@ * assert.deepStrictEqual(L.toArray(L.cons('a', L.of('b'))), ['a', 'b']) | ||
* @example | ||
* import * as L from 'fp-ts-contrib/lib/List' | ||
* import * as L from 'fp-ts-contrib/List' | ||
* | ||
@@ -147,3 +154,3 @@ * assert.deepStrictEqual(L.toReversedArray(L.cons('a', L.of('b'))), ['b', 'a']) | ||
* @example | ||
* import * as L from 'fp-ts-contrib/lib/List' | ||
* import * as L from 'fp-ts-contrib/List' | ||
* | ||
@@ -168,3 +175,3 @@ * assert.deepStrictEqual(L.reverse(L.cons(1, L.cons(2, L.of(3)))), L.cons(3, L.cons(2, L.of(1)))) | ||
* @example | ||
* import * as L from 'fp-ts-contrib/lib/List' | ||
* import * as L from 'fp-ts-contrib/List' | ||
* | ||
@@ -285,3 +292,3 @@ * assert.deepStrictEqual(L.dropLeft(1)(L.nil), L.nil) | ||
* @example | ||
* import * as L from 'fp-ts-contrib/lib/List' | ||
* import * as L from 'fp-ts-contrib/List' | ||
* | ||
@@ -301,4 +308,4 @@ * assert.deepStrictEqual(L.of('a'), L.cons('a', L.nil)) | ||
* @example | ||
* import * as O from 'fp-ts/lib/Option' | ||
* import * as L from 'fp-ts-contrib/lib/List' | ||
* import * as O from 'fp-ts/Option' | ||
* import * as L from 'fp-ts-contrib/List' | ||
* | ||
@@ -339,4 +346,4 @@ * const f = (a: number): boolean => a % 2 === 0 | ||
* @example | ||
* import { eqString } from 'fp-ts/lib/Eq' | ||
* import * as L from 'fp-ts-contrib/lib/List' | ||
* import { eqString } from 'fp-ts/Eq' | ||
* import * as L from 'fp-ts-contrib/List' | ||
* | ||
@@ -416,3 +423,3 @@ * const E = L.getEq(eqString) | ||
* @example | ||
* import * as L from 'fp-ts-contrib/lib/List' | ||
* import * as L from 'fp-ts-contrib/List' | ||
* | ||
@@ -429,3 +436,3 @@ * assert.strictEqual(L.isNil(L.nil), true) | ||
* @example | ||
* import * as L from 'fp-ts-contrib/lib/List' | ||
* import * as L from 'fp-ts-contrib/List' | ||
* | ||
@@ -432,0 +439,0 @@ * assert.strictEqual(L.isCons(L.nil), false) |
"use strict"; | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k]; | ||
result["default"] = mod; | ||
return result; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var function_1 = require("fp-ts/lib/function"); | ||
var I = require("fp-ts/lib/IO"); | ||
var I = __importStar(require("fp-ts/lib/IO")); | ||
var pipeable_1 = require("fp-ts/lib/pipeable"); | ||
@@ -6,0 +13,0 @@ var ReaderT_1 = require("fp-ts/lib/ReaderT"); |
@@ -15,5 +15,5 @@ /** | ||
* @example | ||
* import * as O from 'fp-ts/lib/Option' | ||
* import { match } from 'fp-ts-contrib/lib/RegExp' | ||
* import { pipe } from 'fp-ts/lib/pipeable' | ||
* import * as O from 'fp-ts/Option' | ||
* import { match } from 'fp-ts-contrib/RegExp' | ||
* import { pipe } from 'fp-ts/function' | ||
* | ||
@@ -32,3 +32,3 @@ * const myMatch = match(/^(\d)(\w)$/) | ||
* @example | ||
* import { test } from 'fp-ts-contrib/lib/RegExp' | ||
* import { test } from 'fp-ts-contrib/RegExp' | ||
* | ||
@@ -47,3 +47,3 @@ * const myTest = test(/^(\d)(\w)$/) | ||
* @example | ||
* import { sub } from 'fp-ts-contrib/lib/RegExp' | ||
* import { sub } from 'fp-ts-contrib/RegExp' | ||
* | ||
@@ -61,3 +61,3 @@ * const sanitiseSpaces = sub(/\s/g, '_') | ||
* @example | ||
* import { split } from 'fp-ts-contrib/lib/RegExp' | ||
* import { split } from 'fp-ts-contrib/RegExp' | ||
* | ||
@@ -64,0 +64,0 @@ * const splitByHash = split(/#/) |
@@ -9,4 +9,11 @@ "use strict"; | ||
*/ | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k]; | ||
result["default"] = mod; | ||
return result; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var O = require("fp-ts/lib/Option"); | ||
var O = __importStar(require("fp-ts/lib/Option")); | ||
/** | ||
@@ -16,5 +23,5 @@ * Returns the list of subexpression matches, or `None` if the match fails. | ||
* @example | ||
* import * as O from 'fp-ts/lib/Option' | ||
* import { match } from 'fp-ts-contrib/lib/RegExp' | ||
* import { pipe } from 'fp-ts/lib/pipeable' | ||
* import * as O from 'fp-ts/Option' | ||
* import { match } from 'fp-ts-contrib/RegExp' | ||
* import { pipe } from 'fp-ts/function' | ||
* | ||
@@ -33,3 +40,3 @@ * const myMatch = match(/^(\d)(\w)$/) | ||
* @example | ||
* import { test } from 'fp-ts-contrib/lib/RegExp' | ||
* import { test } from 'fp-ts-contrib/RegExp' | ||
* | ||
@@ -48,3 +55,3 @@ * const myTest = test(/^(\d)(\w)$/) | ||
* @example | ||
* import { sub } from 'fp-ts-contrib/lib/RegExp' | ||
* import { sub } from 'fp-ts-contrib/RegExp' | ||
* | ||
@@ -64,3 +71,3 @@ * const sanitiseSpaces = sub(/\s/g, '_') | ||
* @example | ||
* import { split } from 'fp-ts-contrib/lib/RegExp' | ||
* import { split } from 'fp-ts-contrib/RegExp' | ||
* | ||
@@ -67,0 +74,0 @@ * const splitByHash = split(/#/) |
@@ -22,5 +22,5 @@ "use strict"; | ||
* @example | ||
* import { These } from 'fp-ts/lib/These' | ||
* import { identity } from 'fp-ts/lib/function' | ||
* import { alignNonEmptyArray } from 'fp-ts-contrib/lib/Semialign/NonEmptyArray' | ||
* import { These } from 'fp-ts/These' | ||
* import { identity } from 'fp-ts/function' | ||
* import { alignNonEmptyArray } from 'fp-ts-contrib/Semialign/NonEmptyArray' | ||
* | ||
@@ -42,5 +42,5 @@ * const f = (x: These<number, string>) => x.fold(a => a.toString(), identity, (a, b) => a + b) | ||
* @example | ||
* import { These } from 'fp-ts/lib/These' | ||
* import { identity } from 'fp-ts/lib/function' | ||
* import { alignNonEmptyArray } from 'fp-ts-contrib/lib/Semialign/NonEmptyArray' | ||
* import { These } from 'fp-ts/These' | ||
* import { identity } from 'fp-ts/function' | ||
* import { alignNonEmptyArray } from 'fp-ts-contrib/Semialign/NonEmptyArray' | ||
* | ||
@@ -47,0 +47,0 @@ * assert.deepStrictEqual(semialignNonEmptyArray.align(new NonEmptyArray(1, [2, 3]), new NonEmptyArray('a', ['b', 'c']), new NonEmptyArray(both(1, 'a'), [both(2, 'b'), both(3, 'c')])) |
"use strict"; | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k]; | ||
result["default"] = mod; | ||
return result; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var E = require("fp-ts/lib/Either"); | ||
var E = __importStar(require("fp-ts/lib/Either")); | ||
var function_1 = require("fp-ts/lib/function"); | ||
@@ -5,0 +12,0 @@ var pipeable_1 = require("fp-ts/lib/pipeable"); |
"use strict"; | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k]; | ||
result["default"] = mod; | ||
return result; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var function_1 = require("fp-ts/lib/function"); | ||
var I = require("fp-ts/lib/IO"); | ||
var I = __importStar(require("fp-ts/lib/IO")); | ||
var pipeable_1 = require("fp-ts/lib/pipeable"); | ||
@@ -6,0 +13,0 @@ var StateT_1 = require("fp-ts/lib/StateT"); |
@@ -13,2 +13,9 @@ "use strict"; | ||
}; | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k]; | ||
result["default"] = mod; | ||
return result; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -18,3 +25,3 @@ var function_1 = require("fp-ts/lib/function"); | ||
var StateT_1 = require("fp-ts/lib/StateT"); | ||
var TE = require("fp-ts/lib/TaskEither"); | ||
var TE = __importStar(require("fp-ts/lib/TaskEither")); | ||
var T = StateT_1.getStateM(TE.taskEither); | ||
@@ -21,0 +28,0 @@ // ------------------------------------------------------------------------------------- |
@@ -9,4 +9,4 @@ /** | ||
* @example | ||
* import { withTimeout } from 'fp-ts-contrib/lib/Task/withTimeout' | ||
* import { delay, of } from 'fp-ts/lib/Task' | ||
* import { withTimeout } from 'fp-ts-contrib/Task/withTimeout' | ||
* import { delay, of } from 'fp-ts/Task' | ||
* | ||
@@ -13,0 +13,0 @@ * const completeAfter2s = delay(2000)(of('result')) |
@@ -11,4 +11,4 @@ "use strict"; | ||
* @example | ||
* import { withTimeout } from 'fp-ts-contrib/lib/Task/withTimeout' | ||
* import { delay, of } from 'fp-ts/lib/Task' | ||
* import { withTimeout } from 'fp-ts-contrib/Task/withTimeout' | ||
* import { delay, of } from 'fp-ts/Task' | ||
* | ||
@@ -15,0 +15,0 @@ * const completeAfter2s = delay(2000)(of('result')) |
@@ -13,6 +13,13 @@ "use strict"; | ||
}; | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k]; | ||
result["default"] = mod; | ||
return result; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var Filterable_1 = require("fp-ts/lib/Filterable"); | ||
var function_1 = require("fp-ts/lib/function"); | ||
var O = require("fp-ts/lib/Option"); | ||
var O = __importStar(require("fp-ts/lib/Option")); | ||
var OptionT_1 = require("fp-ts/lib/OptionT"); | ||
@@ -19,0 +26,0 @@ var pipeable_1 = require("fp-ts/lib/pipeable"); |
@@ -8,5 +8,5 @@ import { HKT, Kind, Kind2, Kind3, URIS, URIS2, URIS3 } from 'fp-ts/lib/HKT' | ||
* @example | ||
* import { io } from 'fp-ts/lib/IO' | ||
* import { randomInt } from 'fp-ts/lib/Random' | ||
* import { time } from 'fp-ts-contrib/lib/time' | ||
* import { io } from 'fp-ts/IO' | ||
* import { randomInt } from 'fp-ts/Random' | ||
* import { time } from 'fp-ts-contrib/time' | ||
* | ||
@@ -13,0 +13,0 @@ * const timeIO = time(io) |
@@ -13,4 +13,11 @@ "use strict"; | ||
}; | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k]; | ||
result["default"] = mod; | ||
return result; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var A = require("fp-ts/lib/Array"); | ||
var A = __importStar(require("fp-ts/lib/Array")); | ||
var function_1 = require("fp-ts/lib/function"); | ||
@@ -17,0 +24,0 @@ var Option_1 = require("fp-ts/lib/Option"); |
{ | ||
"name": "fp-ts-contrib", | ||
"version": "0.1.18", | ||
"version": "0.1.19", | ||
"description": "A community driven utility package for fp-ts", | ||
"files": [ | ||
"lib", | ||
"es6" | ||
], | ||
"main": "lib/index.js", | ||
@@ -13,18 +9,2 @@ "module": "es6/index.js", | ||
"sideEffects": false, | ||
"scripts": { | ||
"tsc": "tsc", | ||
"lint": "tslint -p tsconfig.tslint.json", | ||
"jest": "jest", | ||
"prettier": "prettier --no-semi --single-quote --print-width 120 --parser typescript --list-different \"{src,test}/**/*.ts\"", | ||
"fix-prettier": "prettier --no-semi --single-quote --print-width 120 --parser typescript --write \"{src,test}/**/*.ts\"", | ||
"test": "npm run lint && npm run prettier && npm run dtslint && npm run jest && npm run docs", | ||
"clean": "rimraf rm -rf lib/* es6/*", | ||
"build": "npm run clean && tsc && tsc -p tsconfig.es6.json && npm run import-path-rewrite", | ||
"postbuild": "prettier --write \"./{lib,es6}/**/*.ts\"", | ||
"prepublish": "npm run build", | ||
"dtslint": "dtslint dtslint", | ||
"mocha": "mocha -r ts-node/register test/*.ts", | ||
"docs": "docs-ts", | ||
"import-path-rewrite": "import-path-rewrite" | ||
}, | ||
"repository": { | ||
@@ -43,23 +23,2 @@ "type": "git", | ||
}, | ||
"devDependencies": { | ||
"@types/benchmark": "^1.0.31", | ||
"@types/jest": "^23.3.13", | ||
"@types/node": "^12.7.12", | ||
"benchmark": "^2.1.4", | ||
"docs-ts": "^0.5.1", | ||
"doctoc": "^1.4.0", | ||
"dtslint": "github:gcanti/dtslint", | ||
"fast-check": "^1.20.0", | ||
"fp-ts": "^2.1.2", | ||
"import-path-rewrite": "github:gcanti/import-path-rewrite", | ||
"jest": "^24.8.0", | ||
"mocha": "^5.2.0", | ||
"prettier": "^2.0.2", | ||
"rimraf": "^2.6.3", | ||
"ts-jest": "^24.0.2", | ||
"ts-node": "^8.0.2", | ||
"tslint": "^5.12.1", | ||
"tslint-config-standard": "^8.0.1", | ||
"typescript": "^3.7.2" | ||
}, | ||
"tags": [ | ||
@@ -75,2 +34,2 @@ "typescript", | ||
] | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
370263
0
128
13170