fortepiano 0.1.0 → 0.1.2

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.
Files changed (144) hide show
  1. package/Aggregate/package.json +6 -0
  2. package/Aggregate.d.ts +4 -0
  3. package/Binary/package.json +6 -0
  4. package/Binary.d.ts +5 -0
  5. package/Buffer/package.json +6 -0
  6. package/Buffer.d.ts +5 -0
  7. package/CHANGELOG.md +42 -0
  8. package/CONTRIBUTING.md +51 -0
  9. package/Cache/package.json +6 -0
  10. package/Cache.d.ts +18 -0
  11. package/Console/package.json +6 -0
  12. package/Console.d.ts +20 -0
  13. package/Crypto/package.json +6 -0
  14. package/Crypto.d.ts +5 -0
  15. package/Date/package.json +6 -0
  16. package/Date.d.ts +4 -0
  17. package/Eq/package.json +6 -0
  18. package/Eq.d.ts +4 -0
  19. package/Error/package.json +6 -0
  20. package/Error.d.ts +6 -0
  21. package/GeneratorL/package.json +6 -0
  22. package/GeneratorL.d.ts +208 -0
  23. package/Http/package.json +6 -0
  24. package/Http.d.ts +60 -0
  25. package/IOAsyncGenerator/package.json +6 -0
  26. package/IOAsyncGenerator.d.ts +102 -0
  27. package/LICENSE.md +21 -0
  28. package/Log/package.json +6 -0
  29. package/Log.d.ts +4 -0
  30. package/Magma/package.json +6 -0
  31. package/Magma.d.ts +2 -0
  32. package/Matrix/package.json +6 -0
  33. package/Matrix.d.ts +9 -0
  34. package/Mock/package.json +6 -0
  35. package/Mock.d.ts +76 -0
  36. package/Option/package.json +6 -0
  37. package/Option.d.ts +2 -0
  38. package/README.md +56 -3
  39. package/Random/package.json +6 -0
  40. package/Random.d.ts +7 -0
  41. package/Reader/package.json +6 -0
  42. package/Reader.d.ts +4 -0
  43. package/ReaderEither/package.json +6 -0
  44. package/ReaderEither.d.ts +9 -0
  45. package/ReaderTask/package.json +6 -0
  46. package/ReaderTask.d.ts +8 -0
  47. package/ReaderTaskEither/package.json +6 -0
  48. package/ReaderTaskEither.d.ts +17 -0
  49. package/ReadonlyArray/package.json +6 -0
  50. package/ReadonlyArray.d.ts +75 -0
  51. package/ReadonlyRecord/package.json +6 -0
  52. package/ReadonlyRecord.d.ts +4 -0
  53. package/ReadonlyTuple/package.json +6 -0
  54. package/ReadonlyTuple.d.ts +14 -0
  55. package/Storage/package.json +6 -0
  56. package/Storage.d.ts +15 -0
  57. package/Stream/package.json +6 -0
  58. package/Stream.d.ts +5 -0
  59. package/TaskEither/package.json +6 -0
  60. package/TaskEither.d.ts +2 -0
  61. package/Type/package.json +6 -0
  62. package/Type.d.ts +11 -0
  63. package/Validation/package.json +6 -0
  64. package/Validation.d.ts +4 -0
  65. package/cache/Memcached/package.json +6 -0
  66. package/cache/Memcached.d.ts +4 -0
  67. package/cache/Memory/package.json +6 -0
  68. package/cache/Memory.d.ts +2 -0
  69. package/cache/Redis/package.json +6 -0
  70. package/cache/Redis.d.ts +4 -0
  71. package/cache/Storage/package.json +6 -0
  72. package/cache/Storage.d.ts +4 -0
  73. package/esm/Aggregate.js +1 -0
  74. package/esm/Binary.js +12 -0
  75. package/esm/Buffer.js +22 -0
  76. package/esm/Cache.js +25 -0
  77. package/esm/Console.js +20 -0
  78. package/esm/Crypto.js +12 -0
  79. package/esm/Date.js +5 -0
  80. package/esm/Eq.js +6 -0
  81. package/esm/Error.js +32 -0
  82. package/esm/GeneratorL.js +402 -0
  83. package/esm/Http.js +101 -0
  84. package/esm/IOAsyncGenerator.js +410 -0
  85. package/esm/Log.js +2 -0
  86. package/esm/Magma.js +3 -0
  87. package/esm/Matrix.js +12 -0
  88. package/esm/Mock.js +78 -0
  89. package/esm/Option.js +3 -0
  90. package/esm/Random.js +3 -0
  91. package/esm/Reader.js +6 -0
  92. package/esm/ReaderEither.js +7 -0
  93. package/esm/ReaderTask.js +8 -0
  94. package/esm/ReaderTaskEither.js +11 -0
  95. package/esm/ReadonlyArray.js +44 -0
  96. package/esm/ReadonlyRecord.js +4 -0
  97. package/esm/ReadonlyTuple.js +10 -0
  98. package/esm/Storage.js +34 -0
  99. package/esm/Stream.js +9 -0
  100. package/esm/TaskEither.js +9 -0
  101. package/esm/Type.js +26 -0
  102. package/esm/Validation.js +6 -0
  103. package/esm/cache/Memcached.js +27 -0
  104. package/esm/cache/Memory.js +43 -0
  105. package/esm/cache/Redis.js +35 -0
  106. package/esm/cache/Storage.js +40 -0
  107. package/esm/function.js +92 -0
  108. package/esm/http/Axios.js +36 -0
  109. package/esm/http/Fetch.js +48 -0
  110. package/esm/http/Got.js +40 -0
  111. package/esm/http/Mock.js +30 -0
  112. package/esm/index.js +33 -0
  113. package/esm/log/Void.js +3 -0
  114. package/esm/number.js +5 -0
  115. package/esm/storage/Flydrive.js +44 -0
  116. package/esm/storage/Fs.js +27 -0
  117. package/esm/string.js +6 -0
  118. package/esm/struct.js +19 -0
  119. package/function/package.json +6 -0
  120. package/function.d.ts +52 -0
  121. package/http/Axios/package.json +6 -0
  122. package/http/Axios.d.ts +3 -0
  123. package/http/Fetch/package.json +6 -0
  124. package/http/Fetch.d.ts +2 -0
  125. package/http/Got/package.json +6 -0
  126. package/http/Got.d.ts +6 -0
  127. package/http/Mock/package.json +6 -0
  128. package/http/Mock.d.ts +2 -0
  129. package/index.d.ts +48 -0
  130. package/lib/http/Got.d.ts +3 -0
  131. package/lib/http/Got.js +3 -0
  132. package/log/Void/package.json +6 -0
  133. package/log/Void.d.ts +3 -0
  134. package/number/package.json +6 -0
  135. package/number.d.ts +3 -0
  136. package/package.json +26 -11
  137. package/storage/Flydrive/package.json +6 -0
  138. package/storage/Flydrive.d.ts +4 -0
  139. package/storage/Fs/package.json +6 -0
  140. package/storage/Fs.d.ts +3 -0
  141. package/string/package.json +6 -0
  142. package/string.d.ts +5 -0
  143. package/struct/package.json +6 -0
  144. package/struct.d.ts +9 -0
@@ -0,0 +1,6 @@
1
+ {
2
+ "main": "../lib/Aggregate.js",
3
+ "module": "../esm/Aggregate.js",
4
+ "types": "../Aggregate.d.ts",
5
+ "sideEffects": false
6
+ }
package/Aggregate.d.ts ADDED
@@ -0,0 +1,4 @@
1
+ export interface Aggregate<A> {
2
+ isEmpty: (a: A) => boolean;
3
+ size: (a: A) => number;
4
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "main": "../lib/Binary.js",
3
+ "module": "../esm/Binary.js",
4
+ "types": "../Binary.d.ts",
5
+ "sideEffects": false
6
+ }
package/Binary.d.ts ADDED
@@ -0,0 +1,5 @@
1
+ import * as M from 'fp-ts/Monoid';
2
+ export declare type Binary = 0 | 1;
3
+ export declare const MonoidAnd: M.Monoid<Binary>;
4
+ export declare const MonoidOr: M.Monoid<Binary>;
5
+ export declare const MonoidXor: M.Monoid<Binary>;
@@ -0,0 +1,6 @@
1
+ {
2
+ "main": "../lib/Buffer.js",
3
+ "module": "../esm/Buffer.js",
4
+ "types": "../Buffer.d.ts",
5
+ "sideEffects": false
6
+ }
package/Buffer.d.ts ADDED
@@ -0,0 +1,5 @@
1
+ /// <reference types="node" />
2
+ import * as t from 'io-ts';
3
+ export declare const BufferC: t.Type<Buffer, string, unknown>;
4
+ export declare const BufferFromStringC: t.Type<Buffer, string, unknown>;
5
+ export declare const fromStream: (stream: NodeJS.ReadableStream) => import("fp-ts/lib/TaskEither").TaskEither<Error, Buffer>;
package/CHANGELOG.md ADDED
@@ -0,0 +1,42 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project will be documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
+
7
+ ## [0.1.2](https://github.com/facile-it/fortepiano/compare/v0.1.1...v0.1.2) - 2022-04-29
8
+
9
+ ### Added
10
+
11
+ - Add `LICENSE.md`.
12
+ - Add `CONTRIBUTING.md`.
13
+ - Add `CHANGELOG.md`.
14
+
15
+ ### Changed
16
+
17
+ - Relicense as MIT.
18
+ - Update `README.md`.
19
+
20
+ ### Deprecated
21
+
22
+ - Deprecate `$got` (use `$axios` instead).
23
+
24
+ ## [0.1.1](https://github.com/facile-it/fortepiano/compare/v0.1.0...v0.1.1) - 2022-04-26
25
+
26
+ ### Added
27
+
28
+ - Support [tree shaking](https://webpack.js.org/guides/tree-shaking/) via top-level imports:
29
+ ```
30
+ import { curry } from 'fortepiano/function'
31
+ // ...instead of `import { curry } from 'fortepiano/lib/function'`
32
+ ```
33
+
34
+ ### Deprecated
35
+
36
+ - Discourage imports from `fortepiano/lib/*` as they break tree shaking.
37
+
38
+ ## [0.1.0](https://github.com/facile-it/fortepiano/releases/tag/v0.1.0) - 2022-04-20
39
+
40
+ ### Added
41
+
42
+ - First public release of `fortepiano`.
@@ -0,0 +1,51 @@
1
+ # Contributing
2
+
3
+ Any relevant modification to this project should be duly noted in `CHANGELOG.md`. Changelog entries should come along code patches via pull requests.
4
+
5
+ ## Style guide
6
+
7
+ `fortepiano` modules should mymic `fp-ts` as best as they can regarding scope, naming and structure (see [`fp-ts` code conventions](https://gcanti.github.io/fp-ts/guides/code-conventions.html)). A custom convention should be used instead for imports and exports.
8
+
9
+ ```typescript
10
+ /**
11
+ * Import whole modules (i.e., values) from package index, and types
12
+ * from specific modules. "Function" modules are an exception.
13
+ */
14
+ import { option } from 'fp-ts'
15
+ import { Option } from 'fp-ts/Option'
16
+ import { pipe } from 'fp-ts/function'
17
+ import { curry } from './function'
18
+
19
+ /**
20
+ * Use namespace imports for local modules; don't import from index,
21
+ * it creates circular dependencies. Local modules must be spelled in
22
+ * camel case to stand out from types, and are prefixed with a `$` to
23
+ * avoid collisions.
24
+ */
25
+ import * as $type from './Type'
26
+ // ...instead of `import { $type } from '.'`
27
+
28
+ /**
29
+ * Use namespace imports for io-ts and friends, to avoid collisions
30
+ * and enforce consistency.
31
+ */
32
+ import * as t from 'io-ts'
33
+ import * as tt from 'io-ts-types'
34
+ import * as nt from 'newtype-ts'
35
+
36
+ /**
37
+ * Types must be spelled in Pascal case. Prefix them with a `$` if
38
+ * they collide with an internal type (e.g., `$Record`).
39
+ */
40
+ export interface FooBar {}
41
+
42
+ /**
43
+ * Export functions directly, and don't forget to export the whole
44
+ * module as a namespace from index.
45
+ */
46
+ export const fooBar = () => undefined
47
+ ```
48
+
49
+ ### _A Fistful of `$`s_
50
+
51
+ We're in no way fans of prefixing stuff with `$`, but it's the best way we've found so far to avoid name collisions with internal TypeScript types, `fp-ts` exports, and generic variables.
@@ -0,0 +1,6 @@
1
+ {
2
+ "main": "../lib/Cache.js",
3
+ "module": "../esm/Cache.js",
4
+ "types": "../Cache.d.ts",
5
+ "sideEffects": false
6
+ }
package/Cache.d.ts ADDED
@@ -0,0 +1,18 @@
1
+ import { Endomorphism } from 'fp-ts/function';
2
+ import * as J from 'fp-ts/Json';
3
+ import * as RNEA from 'fp-ts/ReadonlyNonEmptyArray';
4
+ import * as TE from 'fp-ts/TaskEither';
5
+ import * as t from 'io-ts';
6
+ import { memory } from './cache/Memory';
7
+ import { storage } from './cache/Storage';
8
+ import * as $L from './Log';
9
+ export interface Cache {
10
+ readonly get: <A>(key: string, codec: t.Type<A, unknown>) => TE.TaskEither<Error, A>;
11
+ readonly set: <A>(key: string, codec: t.Type<A, J.Json>, ttl?: number) => (value: A) => TE.TaskEither<Error, void>;
12
+ readonly delete: (key: string) => TE.TaskEither<Error, void>;
13
+ readonly clear: TE.TaskEither<Error, void>;
14
+ }
15
+ export declare const chain: (...caches: RNEA.ReadonlyNonEmptyArray<Cache>) => Cache;
16
+ export declare function log(logStart: $L.Logger, logEnd: $L.Logger): Endomorphism<Cache>;
17
+ export declare function log(log: $L.Logger): Endomorphism<Cache>;
18
+ export { memory, storage };
@@ -0,0 +1,6 @@
1
+ {
2
+ "main": "../lib/Console.js",
3
+ "module": "../esm/Console.js",
4
+ "types": "../Console.d.ts",
5
+ "sideEffects": false
6
+ }
package/Console.d.ts ADDED
@@ -0,0 +1,20 @@
1
+ import * as IO from 'fp-ts/IO';
2
+ import * as RR from 'fp-ts/ReadonlyRecord';
3
+ import * as $S from './struct';
4
+ export declare const error: (...as: ReadonlyArray<unknown>) => IO.IO<void>;
5
+ export declare const info: (...as: ReadonlyArray<unknown>) => IO.IO<void>;
6
+ export declare const log: (...as: ReadonlyArray<unknown>) => IO.IO<void>;
7
+ export declare const trace: (...as: ReadonlyArray<unknown>) => IO.IO<void>;
8
+ export declare const warn: (...as: ReadonlyArray<unknown>) => IO.IO<void>;
9
+ export declare const assert: (condition?: boolean | undefined, ...as: ReadonlyArray<unknown>) => IO.IO<void>;
10
+ export declare const count: (a?: unknown) => IO.IO<void>;
11
+ export declare const countReset: (a?: unknown) => IO.IO<void>;
12
+ export declare const group: (...as: ReadonlyArray<unknown>) => IO.IO<void>;
13
+ export declare const groupCollapsed: (...as: ReadonlyArray<unknown>) => IO.IO<void>;
14
+ export declare const groupEnd: IO.IO<void>;
15
+ export declare function table<A extends $S.struct, K extends keyof A>(data: ReadonlyArray<A> | RR.ReadonlyRecord<string, A>, columns?: ReadonlyArray<K>): IO.IO<void>;
16
+ export declare function table(data: $S.struct | ReadonlyArray<unknown>): IO.IO<void>;
17
+ export declare function table(a?: undefined | boolean | number | string, ...as: ReadonlyArray<unknown>): IO.IO<void>;
18
+ export declare const time: (a?: unknown) => IO.IO<void>;
19
+ export declare const timeEnd: (a?: unknown) => IO.IO<void>;
20
+ export declare const timeLog: (a?: unknown) => IO.IO<void>;
@@ -0,0 +1,6 @@
1
+ {
2
+ "main": "../lib/Crypto.js",
3
+ "module": "../esm/Crypto.js",
4
+ "types": "../Crypto.d.ts",
5
+ "sideEffects": false
6
+ }
package/Crypto.d.ts ADDED
@@ -0,0 +1,5 @@
1
+ /// <reference types="node" />
2
+ import * as TE from 'fp-ts/TaskEither';
3
+ export declare const randomBytes: (size: number) => TE.TaskEither<Error, Buffer>;
4
+ export declare const hash: (size: number, encoding?: BufferEncoding) => TE.TaskEither<Error, string>;
5
+ export declare const uuid4: TE.TaskEither<Error, string>;
@@ -0,0 +1,6 @@
1
+ {
2
+ "main": "../lib/Date.js",
3
+ "module": "../esm/Date.js",
4
+ "types": "../Date.d.ts",
5
+ "sideEffects": false
6
+ }
package/Date.d.ts ADDED
@@ -0,0 +1,4 @@
1
+ import * as O from 'fp-ts/Option';
2
+ export declare const fromDate: (date: Date) => O.Option<Date>;
3
+ export declare const fromString: (date: string) => O.Option<Date>;
4
+ export declare const parse: (date: string) => O.Option<number>;
@@ -0,0 +1,6 @@
1
+ {
2
+ "main": "../lib/Eq.js",
3
+ "module": "../esm/Eq.js",
4
+ "types": "../Eq.d.ts",
5
+ "sideEffects": false
6
+ }
package/Eq.d.ts ADDED
@@ -0,0 +1,4 @@
1
+ import * as E from 'fp-ts/Eq';
2
+ import * as $A from './Aggregate';
3
+ export declare const eqType: E.Eq<unknown>;
4
+ export declare const getEqSize: <T>(A: $A.Aggregate<T>) => E.Eq<T>;
@@ -0,0 +1,6 @@
1
+ {
2
+ "main": "../lib/Error.js",
3
+ "module": "../esm/Error.js",
4
+ "types": "../Error.d.ts",
5
+ "sideEffects": false
6
+ }
package/Error.d.ts ADDED
@@ -0,0 +1,6 @@
1
+ import * as t from 'io-ts';
2
+ export declare const ErrorC: t.Type<Error, string, unknown>;
3
+ export declare const fromUnknown: (e: Error) => (u: unknown) => Error;
4
+ export declare const wrap: (e: Error) => (u: unknown) => Error & {
5
+ readonly prev?: Error;
6
+ };
@@ -0,0 +1,6 @@
1
+ {
2
+ "main": "../lib/GeneratorL.js",
3
+ "module": "../esm/GeneratorL.js",
4
+ "types": "../GeneratorL.d.ts",
5
+ "sideEffects": false
6
+ }
@@ -0,0 +1,208 @@
1
+ import * as $generatorL from 'fp-ts/Alt';
2
+ import * as Alte from 'fp-ts/Alternative';
3
+ import * as Appli from 'fp-ts/Applicative';
4
+ import * as _Apply from 'fp-ts/Apply';
5
+ import * as Ch from 'fp-ts/Chain';
6
+ import * as Co from 'fp-ts/Compactable';
7
+ import * as Ei from 'fp-ts/Either';
8
+ import * as Eq from 'fp-ts/Eq';
9
+ import * as Ex from 'fp-ts/Extend';
10
+ import * as Fi from 'fp-ts/Filterable';
11
+ import * as FiWI from 'fp-ts/FilterableWithIndex';
12
+ import * as Fo from 'fp-ts/Foldable';
13
+ import * as FoWI from 'fp-ts/FoldableWithIndex';
14
+ import * as FIO from 'fp-ts/FromIO';
15
+ import { Lazy, Predicate, Refinement } from 'fp-ts/function';
16
+ import * as Fu from 'fp-ts/Functor';
17
+ import * as FuWI from 'fp-ts/FunctorWithIndex';
18
+ import { Kind, Kind2, Kind3, Kind4, URIS, URIS2, URIS3, URIS4 } from 'fp-ts/HKT';
19
+ import * as IO from 'fp-ts/IO';
20
+ import * as Mona from 'fp-ts/Monad';
21
+ import * as MIO from 'fp-ts/MonadIO';
22
+ import * as Mono from 'fp-ts/Monoid';
23
+ import * as Op from 'fp-ts/Option';
24
+ import * as Or from 'fp-ts/Ord';
25
+ import * as P from 'fp-ts/Pointed';
26
+ import * as RNEA from 'fp-ts/ReadonlyNonEmptyArray';
27
+ import * as S from 'fp-ts/Separated';
28
+ import * as T from 'fp-ts/Traversable';
29
+ import * as TWI from 'fp-ts/TraversableWithIndex';
30
+ import * as U from 'fp-ts/Unfoldable';
31
+ import * as W from 'fp-ts/Witherable';
32
+ import { Int } from 'io-ts';
33
+ export declare const URI = "GeneratorL";
34
+ export declare type URI = typeof URI;
35
+ declare module 'fp-ts/HKT' {
36
+ interface URItoKind<A> {
37
+ [URI]: GeneratorL<A>;
38
+ }
39
+ }
40
+ export declare type GeneratorL<A> = Lazy<Generator<A>>;
41
+ export declare const getMonoid: <A>() => Mono.Monoid<GeneratorL<A>>;
42
+ export declare const getEq: <A>(E: Eq.Eq<A>) => Eq.Eq<GeneratorL<A>>;
43
+ export declare const getOrd: <A>(O: Or.Ord<A>) => Or.Ord<GeneratorL<A>>;
44
+ export declare const Functor: Fu.Functor1<URI>;
45
+ export declare const map: <A, B>(a: (a: A) => B) => (b: GeneratorL<A>) => GeneratorL<B>;
46
+ export declare const flap: <A>(a: A) => <B>(fab: GeneratorL<(a: A) => B>) => GeneratorL<B>;
47
+ export declare const bindTo: <N extends string>(name: N) => <A>(fa: GeneratorL<A>) => GeneratorL<{ readonly [K in N]: A; }>;
48
+ export declare const Pointed: P.Pointed1<URI>;
49
+ export declare const of: <A>(a: A) => GeneratorL<A>;
50
+ export declare const Do: GeneratorL<{}>;
51
+ export declare const FunctorWithIndex: FuWI.FunctorWithIndex1<URI, number>;
52
+ export declare const mapWithIndex: <A, B>(a: (i: number, a: A) => B) => (b: GeneratorL<A>) => GeneratorL<B>;
53
+ export declare const Apply: _Apply.Apply1<URI>;
54
+ export declare const ap: <A, B>(a: GeneratorL<A>) => (b: GeneratorL<(a: A) => B>) => GeneratorL<B>;
55
+ export declare const apFirst: <B>(second: GeneratorL<B>) => <A>(first: GeneratorL<A>) => GeneratorL<A>;
56
+ export declare const apSecond: <B>(second: GeneratorL<B>) => <A>(first: GeneratorL<A>) => GeneratorL<B>;
57
+ export declare const apS: <N extends string, A, B>(name: Exclude<N, keyof A>, fb: GeneratorL<B>) => (fa: GeneratorL<A>) => GeneratorL<{ readonly [K in N | keyof A]: K extends keyof A ? A[K] : B; }>;
58
+ export declare const Applicative: Appli.Applicative1<URI>;
59
+ export declare const Chain: Ch.Chain1<URI>;
60
+ export declare const chain: <A, B>(a: (a: A) => GeneratorL<B>) => (b: GeneratorL<A>) => GeneratorL<B>;
61
+ export declare const chainFirst: <A, B>(f: (a: A) => GeneratorL<B>) => (first: GeneratorL<A>) => GeneratorL<A>;
62
+ export declare const bind: <N extends string, A, B>(name: Exclude<N, keyof A>, f: (a: A) => GeneratorL<B>) => (ma: GeneratorL<A>) => GeneratorL<{ readonly [K in N | keyof A]: K extends keyof A ? A[K] : B; }>;
63
+ export declare const chainWithIndex: <A, B>(f: (i: number, a: A) => GeneratorL<B>) => (fa: GeneratorL<A>) => GeneratorL<B>;
64
+ export declare const Monad: Mona.Monad1<URI>;
65
+ export declare const FromIO: FIO.FromIO1<URI>;
66
+ export declare const fromIO: import("fp-ts/lib/NaturalTransformation").NaturalTransformation11<"IO", "GeneratorL">;
67
+ export declare const fromIOK: <A extends readonly unknown[], B>(f: (...a: A) => IO.IO<B>) => (...a: A) => GeneratorL<B>;
68
+ export declare const chainIOK: <A, B>(f: (a: A) => IO.IO<B>) => (first: GeneratorL<A>) => GeneratorL<B>;
69
+ export declare const chainFirstIOK: <A, B>(f: (a: A) => IO.IO<B>) => (first: GeneratorL<A>) => GeneratorL<A>;
70
+ export declare const MonadIO: MIO.MonadIO1<URI>;
71
+ export declare const Unfoldable: U.Unfoldable1<URI>;
72
+ export declare const unfold: <A, B>(a: (b: B) => Op.Option<[A, B]>) => (b: B) => GeneratorL<A>;
73
+ export declare const Alt: $generatorL.Alt1<URI>;
74
+ export declare const alt: <A>(a: Lazy<GeneratorL<A>>) => (b: GeneratorL<A>) => GeneratorL<A>;
75
+ export declare const Alternative: Alte.Alternative1<URI>;
76
+ export declare const zero: <A>() => GeneratorL<A>;
77
+ export declare const Extend: Ex.Extend1<URI>;
78
+ export declare const extend: <A, B>(a: (wa: GeneratorL<A>) => B) => (b: GeneratorL<A>) => GeneratorL<B>;
79
+ export declare const duplicate: <A>(fa: GeneratorL<A>) => GeneratorL<GeneratorL<A>>;
80
+ export declare const Compactable: Co.Compactable1<URI>;
81
+ export declare const compact: <A>(fa: GeneratorL<Op.Option<A>>) => GeneratorL<A>;
82
+ export declare const separate: <A, B>(fa: GeneratorL<Ei.Either<A, B>>) => S.Separated<GeneratorL<A>, GeneratorL<B>>;
83
+ export declare const Filterable: Fi.Filterable1<URI>;
84
+ export declare function filter<A, B extends A>(refinement: Refinement<A, B>): (fa: GeneratorL<A>) => GeneratorL<B>;
85
+ export declare function filter<A>(predicate: Predicate<A>): (fa: GeneratorL<A>) => GeneratorL<A>;
86
+ export declare const filterMap: <A, B>(a: (a: A) => Op.Option<B>) => (b: GeneratorL<A>) => GeneratorL<B>;
87
+ export declare function partition<A, B extends A>(refinement: Refinement<A, B>): (fa: GeneratorL<A>) => S.Separated<GeneratorL<A>, GeneratorL<B>>;
88
+ export declare function partition<A>(predicate: Predicate<A>): (fa: GeneratorL<A>) => S.Separated<GeneratorL<A>, GeneratorL<A>>;
89
+ export declare const partitionMap: <A, B, C>(a: (a: A) => Ei.Either<B, C>) => (b: GeneratorL<A>) => S.Separated<GeneratorL<B>, GeneratorL<C>>;
90
+ export declare const FilterableWithIndex: FiWI.FilterableWithIndex1<URI, number>;
91
+ export declare function filterWithIndex<A, B extends A>(refinementWithIndex: (i: number, a: A) => a is B): (fa: GeneratorL<A>) => GeneratorL<B>;
92
+ export declare function filterWithIndex<A>(predicateWithIndex: (i: number, a: A) => boolean): (fa: GeneratorL<A>) => GeneratorL<A>;
93
+ export declare const filterMapWithIndex: <A, B>(a: (i: number, a: A) => Op.Option<B>) => (b: GeneratorL<A>) => GeneratorL<B>;
94
+ export declare function partitionWithIndex<A, B extends A>(refinementWithIndex: (i: number, a: A) => a is B): (fa: GeneratorL<A>) => S.Separated<GeneratorL<A>, GeneratorL<B>>;
95
+ export declare function partitionWithIndex<A>(predicateWithIndex: (i: number, a: A) => boolean): (fa: GeneratorL<A>) => S.Separated<GeneratorL<A>, GeneratorL<A>>;
96
+ export declare const partitionMapWithIndex: <A, B, C>(a: (i: number, a: A) => Ei.Either<B, C>) => (b: GeneratorL<A>) => S.Separated<GeneratorL<B>, GeneratorL<C>>;
97
+ export declare const Foldable: Fo.Foldable1<URI>;
98
+ export declare const reduce: <A, B>(b: B, f: (b: B, a: A) => B) => (fa: GeneratorL<A>) => B;
99
+ export declare const foldMap: <M>(M: Mono.Monoid<M>) => <A>(f: (a: A) => M) => (fa: GeneratorL<A>) => M;
100
+ export declare const reduceRight: <A, B>(b: B, f: (a: A, b: B) => B) => (fa: GeneratorL<A>) => B;
101
+ export declare const FoldableWithIndex: FoWI.FoldableWithIndex1<URI, number>;
102
+ export declare const reduceWithIndex: <A, B>(b: B, f: (i: number, b: B, a: A) => B) => (fa: GeneratorL<A>) => B;
103
+ export declare const foldMapWithIndex: <M>(M: Mono.Monoid<M>) => <A>(f: (i: number, a: A) => M) => (fa: GeneratorL<A>) => M;
104
+ export declare const reduceRightWithIndex: <A, B>(b: B, f: (i: number, a: A, b: B) => B) => (fa: GeneratorL<A>) => B;
105
+ export declare function sequence<F extends URIS4>(F: Appli.Applicative4<F>): <S, R, E, A>(ta: GeneratorL<Kind4<F, S, R, E, A>>) => Kind4<F, S, R, E, GeneratorL<A>>;
106
+ export declare function sequence<F extends URIS3>(F: Appli.Applicative3<F>): <R, E, A>(ta: GeneratorL<Kind3<F, R, E, A>>) => Kind3<F, R, E, GeneratorL<A>>;
107
+ export declare function sequence<F extends URIS3, E>(F: Appli.Applicative3C<F, E>): <R, A>(ta: GeneratorL<Kind3<F, R, E, A>>) => Kind3<F, R, E, GeneratorL<A>>;
108
+ export declare function sequence<F extends URIS2>(F: Appli.Applicative2<F>): <E, A>(ta: GeneratorL<Kind2<F, E, A>>) => Kind2<F, E, GeneratorL<A>>;
109
+ export declare function sequence<F extends URIS2, E>(F: Appli.Applicative2C<F, E>): <A>(ta: GeneratorL<Kind2<F, E, A>>) => Kind2<F, E, GeneratorL<A>>;
110
+ export declare function sequence<F extends URIS>(F: Appli.Applicative1<F>): <A>(ta: GeneratorL<Kind<F, A>>) => Kind<F, GeneratorL<A>>;
111
+ export declare const Traversable: T.Traversable1<URI>;
112
+ export declare function traverse<F extends URIS4>(F: Appli.Applicative4<F>): <A, S, R, E, B>(f: (a: A) => Kind4<F, S, R, E, B>) => (ta: GeneratorL<A>) => Kind4<F, S, R, E, GeneratorL<B>>;
113
+ export declare function traverse<F extends URIS3>(F: Appli.Applicative3<F>): <A, R, E, B>(f: (a: A) => Kind3<F, R, E, B>) => (ta: GeneratorL<A>) => Kind3<F, R, E, GeneratorL<B>>;
114
+ export declare function traverse<F extends URIS3, E>(F: Appli.Applicative3C<F, E>): <A, R, B>(f: (a: A) => Kind3<F, R, E, B>) => (ta: GeneratorL<A>) => Kind3<F, R, E, GeneratorL<B>>;
115
+ export declare function traverse<F extends URIS2>(F: Appli.Applicative2<F>): <A, E, B>(f: (a: A) => Kind2<F, E, B>) => (ta: GeneratorL<A>) => Kind2<F, E, GeneratorL<B>>;
116
+ export declare function traverse<F extends URIS2, E>(F: Appli.Applicative2C<F, E>): <A, B>(f: (a: A) => Kind2<F, E, B>) => (ta: GeneratorL<A>) => Kind2<F, E, GeneratorL<B>>;
117
+ export declare function traverse<F extends URIS>(F: Appli.Applicative1<F>): <A, B>(f: (a: A) => Kind<F, B>) => (ta: GeneratorL<A>) => Kind<F, GeneratorL<B>>;
118
+ export declare const TraversableWithIndex: TWI.TraversableWithIndex1<URI, number>;
119
+ export declare function traverseWithIndex<F extends URIS4>(F: Appli.Applicative4<F>): <A, S, R, E, B>(f: (i: number, a: A) => Kind4<F, S, R, E, B>) => (ta: GeneratorL<A>) => Kind4<F, S, R, E, GeneratorL<B>>;
120
+ export declare function traverseWithIndex<F extends URIS3>(F: Appli.Applicative3<F>): <A, R, E, B>(f: (i: number, a: A) => Kind3<F, R, E, B>) => (ta: GeneratorL<A>) => Kind3<F, R, E, GeneratorL<B>>;
121
+ export declare function traverseWithIndex<F extends URIS3, E>(F: Appli.Applicative3C<F, E>): <A, R, B>(f: (i: number, a: A) => Kind3<F, R, E, B>) => (ta: GeneratorL<A>) => Kind3<F, R, E, GeneratorL<B>>;
122
+ export declare function traverseWithIndex<F extends URIS2>(F: Appli.Applicative2<F>): <A, E, B>(f: (i: number, a: A) => Kind2<F, E, B>) => (ta: GeneratorL<A>) => Kind2<F, E, GeneratorL<B>>;
123
+ export declare function traverseWithIndex<F extends URIS2, E>(F: Appli.Applicative2C<F, E>): <A, B>(f: (i: number, a: A) => Kind2<F, E, B>) => (ta: GeneratorL<A>) => Kind2<F, E, GeneratorL<B>>;
124
+ export declare function traverseWithIndex<F extends URIS>(F: Appli.Applicative1<F>): <A, B>(f: (i: number, a: A) => Kind<F, B>) => (ta: GeneratorL<A>) => Kind<F, GeneratorL<B>>;
125
+ export declare const Witherable: W.Witherable1<URI>;
126
+ export declare function wilt<F extends URIS3>(F: Appli.Applicative3<F>): <A, R, E, B, C>(f: (a: A) => Kind3<F, R, E, Ei.Either<B, C>>) => (wa: GeneratorL<A>) => Kind3<F, R, E, S.Separated<GeneratorL<B>, GeneratorL<C>>>;
127
+ export declare function wilt<F extends URIS3, E>(F: Appli.Applicative3C<F, E>): <A, R, B, C>(f: (a: A) => Kind3<F, R, E, Ei.Either<B, C>>) => (wa: GeneratorL<A>) => Kind3<F, R, E, S.Separated<GeneratorL<B>, GeneratorL<C>>>;
128
+ export declare function wilt<F extends URIS2>(F: Appli.Applicative2<F>): <A, E, B, C>(f: (a: A) => Kind2<F, E, Ei.Either<B, C>>) => (wa: GeneratorL<A>) => Kind2<F, E, S.Separated<GeneratorL<B>, GeneratorL<C>>>;
129
+ export declare function wilt<F extends URIS2, E>(F: Appli.Applicative2C<F, E>): <A, B, C>(f: (a: A) => Kind2<F, E, Ei.Either<B, C>>) => (wa: GeneratorL<A>) => Kind2<F, E, S.Separated<GeneratorL<B>, GeneratorL<C>>>;
130
+ export declare function wilt<F extends URIS>(F: Appli.Applicative1<F>): <A, B, C>(f: (a: A) => Kind<F, Ei.Either<B, C>>) => (wa: GeneratorL<A>) => Kind<F, S.Separated<GeneratorL<B>, GeneratorL<C>>>;
131
+ export declare function wither<F extends URIS3>(F: Appli.Applicative3<F>): <A, R, E, B>(f: (a: A) => Kind3<F, R, E, Op.Option<B>>) => (ta: GeneratorL<A>) => Kind3<F, R, E, GeneratorL<B>>;
132
+ export declare function wither<F extends URIS3, E>(F: Appli.Applicative3C<F, E>): <A, R, B>(f: (a: A) => Kind3<F, R, E, Op.Option<B>>) => (ta: GeneratorL<A>) => Kind3<F, R, E, GeneratorL<B>>;
133
+ export declare function wither<F extends URIS2>(F: Appli.Applicative2<F>): <A, E, B>(f: (a: A) => Kind2<F, E, Op.Option<B>>) => (ta: GeneratorL<A>) => Kind2<F, E, GeneratorL<B>>;
134
+ export declare function wither<F extends URIS2, E>(F: Appli.Applicative2C<F, E>): <A, B>(f: (a: A) => Kind2<F, E, Op.Option<B>>) => (ta: GeneratorL<A>) => Kind2<F, E, GeneratorL<B>>;
135
+ export declare function wither<F extends URIS>(F: Appli.Applicative1<F>): <A, B>(f: (a: A) => Kind<F, Op.Option<B>>) => (ta: GeneratorL<A>) => Kind<F, GeneratorL<B>>;
136
+ export declare const makeBy: <A>(f: (i: number) => A) => GeneratorL<A>;
137
+ export declare const range: (start: number, end?: number) => GeneratorL<number>;
138
+ export declare const replicate: <A>(a: A) => GeneratorL<A>;
139
+ export declare const fromReadonlyArray: <A>(as: readonly A[]) => GeneratorL<A>;
140
+ export declare const fromReadonlyRecord: <K extends string, A>(r: Readonly<Record<K, A>>) => GeneratorL<readonly [K, A]>;
141
+ export declare const random: GeneratorL<number>;
142
+ export declare const randomInt: (low: number, high: number) => GeneratorL<Int>;
143
+ export declare const randomRange: (min: number, max: number) => GeneratorL<number>;
144
+ export declare const randomBool: GeneratorL<boolean>;
145
+ export declare const randomElem: <A>(as: RNEA.ReadonlyNonEmptyArray<A>) => GeneratorL<A>;
146
+ export declare const prime: GeneratorL<number>;
147
+ export declare const exp: GeneratorL<number>;
148
+ export declare const fibonacci: GeneratorL<number>;
149
+ export declare const flatten: <A>(mma: GeneratorL<GeneratorL<A>>) => GeneratorL<A>;
150
+ export declare const prepend: <A>(a: A) => (ma: GeneratorL<A>) => GeneratorL<A>;
151
+ export declare const append: <A>(a: A) => (ma: GeneratorL<A>) => GeneratorL<A>;
152
+ export declare const takeLeft: (n: number) => <A>(ma: GeneratorL<A>) => GeneratorL<A>;
153
+ export declare const takeRight: (n: number) => <A>(ma: GeneratorL<A>) => GeneratorL<A>;
154
+ export declare function takeLeftWhile<A, B extends A>(refinement: Refinement<A, B>): (ma: GeneratorL<A>) => GeneratorL<B>;
155
+ export declare function takeLeftWhile<A>(predicate: Predicate<A>): (ma: GeneratorL<A>) => GeneratorL<A>;
156
+ export declare const dropLeft: (n: number) => <A>(ma: GeneratorL<A>) => GeneratorL<A>;
157
+ export declare const dropRight: (n: number) => <A>(ma: GeneratorL<A>) => GeneratorL<A>;
158
+ export declare function dropLeftWhile<A, B extends A>(refinement: Refinement<A, B>): (ma: GeneratorL<A>) => GeneratorL<B>;
159
+ export declare function dropLeftWhile<A>(predicate: Predicate<A>): (ma: GeneratorL<A>) => GeneratorL<A>;
160
+ export declare const scanLeft: <A, B>(b: B, f: (b: B, a: A) => B) => (ma: GeneratorL<A>) => GeneratorL<B>;
161
+ export declare const scanRight: <A, B>(b: B, f: (a: A, b: B) => B) => (ma: GeneratorL<A>) => GeneratorL<B>;
162
+ export declare function sieve<A>(f: (init: ReadonlyArray<A>, a: A) => boolean): (ma: GeneratorL<A>) => GeneratorL<A>;
163
+ export declare const uniq: <A>(E: Eq.Eq<A>) => (ma: GeneratorL<A>) => GeneratorL<A>;
164
+ export declare const sort: <B>(O: Or.Ord<B>) => <A extends B>(ma: GeneratorL<A>) => GeneratorL<A>;
165
+ export declare const sortBy: <B>(Os: readonly Or.Ord<B>[]) => <A extends B>(ma: GeneratorL<A>) => GeneratorL<A>;
166
+ export declare const reverse: <A>(ma: GeneratorL<A>) => GeneratorL<A>;
167
+ export declare const zipWith: <A, B, C>(mb: GeneratorL<B>, f: (a: A, b: B) => C) => (ma: GeneratorL<A>) => GeneratorL<C>;
168
+ export declare const zip: <B>(mb: GeneratorL<B>) => <A>(ma: GeneratorL<A>) => GeneratorL<readonly [A, B]>;
169
+ export declare const rights: <E, A>(ma: GeneratorL<Ei.Either<E, A>>) => GeneratorL<A>;
170
+ export declare const lefts: <E, A>(ma: GeneratorL<Ei.Either<E, A>>) => GeneratorL<E>;
171
+ export declare const prependAll: <A>(middle: A) => (ma: GeneratorL<A>) => GeneratorL<A>;
172
+ export declare const intersperse: <A>(middle: A) => (ma: GeneratorL<A>) => GeneratorL<A>;
173
+ export declare const rotate: (n: number) => <A>(ma: GeneratorL<A>) => GeneratorL<A>;
174
+ export declare const chop: <A, B>(f: (ma: GeneratorL<A>) => readonly [B, GeneratorL<A>]) => (ma: GeneratorL<A>) => GeneratorL<B>;
175
+ export declare const chunksOf: (n: number) => <A>(ma: GeneratorL<A>) => GeneratorL<GeneratorL<A>>;
176
+ export declare const matchLeft: <A, B>(onEmpty: Lazy<B>, onNonEmpty: (head: A, tail: GeneratorL<A>) => B) => (ma: GeneratorL<A>) => B;
177
+ export declare const matchRight: <A, B>(onEmpty: Lazy<B>, onNonEmpty: (init: GeneratorL<A>, last: A) => B) => (ma: GeneratorL<A>) => B;
178
+ export declare const toReadonlyArray: <A>(ma: GeneratorL<A>) => readonly A[];
179
+ export declare const lookup: (i: number) => <A>(ma: GeneratorL<A>) => Op.Option<A>;
180
+ export declare const head: <A>(ma: GeneratorL<A>) => Op.Option<A>;
181
+ export declare const last: <A>(ma: GeneratorL<A>) => Op.Option<A>;
182
+ export declare const tail: <A>(ma: GeneratorL<A>) => Op.Option<GeneratorL<A>>;
183
+ export declare const init: <A>(ma: GeneratorL<A>) => Op.Option<GeneratorL<A>>;
184
+ export interface Spanned<I, R> {
185
+ init: GeneratorL<I>;
186
+ rest: GeneratorL<R>;
187
+ }
188
+ export declare function spanLeft<A, B extends A>(refinement: Refinement<A, B>): (ma: GeneratorL<A>) => Spanned<B, A>;
189
+ export declare function spanLeft<A>(predicate: Predicate<A>): (ma: GeneratorL<A>) => Spanned<A, A>;
190
+ export declare const splitAt: (n: number) => <A>(ma: GeneratorL<A>) => readonly [GeneratorL<A>, GeneratorL<A>];
191
+ export declare const unzip: <A, B>(mab: GeneratorL<readonly [A, B]>) => readonly [GeneratorL<A>, GeneratorL<B>];
192
+ export declare const isEmpty: (ma: GeneratorL<unknown>) => boolean;
193
+ export declare const isNonEmpty: Predicate<GeneratorL<unknown>>;
194
+ export declare const size: (b: GeneratorL<unknown>) => number;
195
+ export declare const isOutOfBound: (n: number) => (ma: GeneratorL<unknown>) => boolean;
196
+ export declare function findFirst<A, B extends A>(refinement: Refinement<A, B>): (ma: GeneratorL<A>) => Op.Option<B>;
197
+ export declare function findFirst<A>(predicate: Predicate<A>): (ma: GeneratorL<A>) => Op.Option<A>;
198
+ export declare const findFirstMap: <A, B>(f: (a: A) => Op.Option<B>) => (ma: GeneratorL<A>) => Op.Option<B>;
199
+ export declare const findFirstIndex: <A>(predicate: Predicate<A>) => (ma: GeneratorL<A>) => Op.Option<number>;
200
+ export declare function findLast<A, B extends A>(refinement: Refinement<A, B>): (ma: GeneratorL<A>) => Op.Option<B>;
201
+ export declare function findLast<A>(predicate: Predicate<A>): (ma: GeneratorL<A>) => Op.Option<A>;
202
+ export declare const findLastMap: <A, B>(f: (a: A) => Op.Option<B>) => (ma: GeneratorL<A>) => Op.Option<B>;
203
+ export declare const findLastIndex: <A>(predicate: Predicate<A>) => (ma: GeneratorL<A>) => Op.Option<number>;
204
+ export declare const elem: <A>(Eq: Eq.Eq<A>) => (a: A) => (ma: GeneratorL<A>) => Op.Option<A>;
205
+ export declare const insertAt: <A>(i: number, a: A) => (ma: GeneratorL<A>) => Op.Option<GeneratorL<A>>;
206
+ export declare const modifyAt: <A>(i: number, f: (a: A) => A) => (ma: GeneratorL<A>) => Op.Option<GeneratorL<A>>;
207
+ export declare const updateAt: <A>(i: number, a: A) => (ma: GeneratorL<A>) => Op.Option<GeneratorL<A>>;
208
+ export declare const deleteAt: <A>(i: number) => (ma: GeneratorL<A>) => Op.Option<GeneratorL<A>>;
@@ -0,0 +1,6 @@
1
+ {
2
+ "main": "../lib/Http.js",
3
+ "module": "../esm/Http.js",
4
+ "types": "../Http.d.ts",
5
+ "sideEffects": false
6
+ }
package/Http.d.ts ADDED
@@ -0,0 +1,60 @@
1
+ /// <reference types="node" />
2
+ import * as RR from 'fp-ts/ReadonlyRecord';
3
+ import * as TE from 'fp-ts/TaskEither';
4
+ import * as t from 'io-ts';
5
+ import * as $C from './Cache';
6
+ import { mock } from './http/Mock';
7
+ import * as $L from './Log';
8
+ import * as $Stru from './struct';
9
+ export interface Http {
10
+ readonly delete: HttpRequest<'body'>;
11
+ readonly get: HttpRequest<'body'>;
12
+ readonly patch: HttpRequest;
13
+ readonly post: HttpRequest;
14
+ readonly put: HttpRequest;
15
+ readonly head: HttpRequest<'body'>;
16
+ readonly options: HttpRequest<'body'>;
17
+ }
18
+ export interface HttpResponse<A = unknown> {
19
+ readonly url: string;
20
+ readonly status: number;
21
+ readonly headers: RR.ReadonlyRecord<string, string | ReadonlyArray<string>>;
22
+ readonly body: A;
23
+ }
24
+ export declare class HttpError extends Error {
25
+ readonly response: HttpResponse;
26
+ constructor(response: HttpResponse, message?: string);
27
+ }
28
+ export interface HttpOptions {
29
+ readonly body?: $Stru.struct | Buffer;
30
+ readonly headers?: RR.ReadonlyRecord<string, string>;
31
+ readonly json?: boolean;
32
+ readonly buffer?: boolean;
33
+ readonly query?: RR.ReadonlyRecord<string, boolean | number | string>;
34
+ }
35
+ export interface HttpRequest<A extends keyof HttpOptions = never> {
36
+ (url: string, options?: Omit<HttpOptions, A>): TE.TaskEither<Error | HttpError, HttpResponse>;
37
+ }
38
+ export declare const HttpMethodC: t.KeyofC<{
39
+ readonly get: null;
40
+ readonly delete: null;
41
+ readonly head: null;
42
+ readonly options: null;
43
+ readonly patch: null;
44
+ readonly post: null;
45
+ readonly put: null;
46
+ }>;
47
+ export declare type HttpMethod = t.TypeOf<typeof HttpMethodC>;
48
+ export declare const HttpResponseC: <C extends t.Mixed>(codec: C) => t.TypeC<{
49
+ url: t.StringC;
50
+ status: t.NumberC;
51
+ headers: t.ReadonlyC<t.RecordC<t.StringC, t.UnionC<[t.StringC, t.ReadonlyArrayC<t.StringC>]>>>;
52
+ body: C;
53
+ }>;
54
+ export declare const HttpErrorC: <A extends "BadRequest" | "Unauthorized" | "Forbidden" | "NotFound" | "UnprocessableEntity">(type?: A | undefined) => t.Type<HttpError, HttpError, unknown>;
55
+ export declare const json: (http: Http) => Http;
56
+ export declare const buffer: (http: Http) => Http;
57
+ export declare const cache: (cache: $C.Cache) => (http: Http) => Http;
58
+ export declare const pool: (http: Http) => Http;
59
+ export declare const log: (logStart: $L.Logger, logEnd?: $L.Logger) => (http: Http) => Http;
60
+ export { mock };
@@ -0,0 +1,6 @@
1
+ {
2
+ "main": "../lib/IOAsyncGenerator.js",
3
+ "module": "../esm/IOAsyncGenerator.js",
4
+ "types": "../IOAsyncGenerator.d.ts",
5
+ "sideEffects": false
6
+ }