Skip to content

Commit

Permalink
Use direct imports of lemons submodules
Browse files Browse the repository at this point in the history
  • Loading branch information
nvie committed Jan 19, 2019
1 parent 877bbe1 commit 8bd5540
Show file tree
Hide file tree
Showing 18 changed files with 26 additions and 27 deletions.
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

{
"name": "decoders",
"version": "1.11.0",
Expand Down Expand Up @@ -90,8 +89,8 @@
"typescript": "^3.2.2"
},
"dependencies": {
"debrief": "^1.2.4",
"lemons": "^1.3.1"
"debrief": "^1.2.5",
"lemons": "^1.4.0"
},
"jest": {
"testPathIgnorePatterns": [
Expand Down
2 changes: 1 addition & 1 deletion src/__tests__/compose.test.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// @flow strict

import { annotate } from 'debrief';
import { Err, Ok } from 'lemons';
import { Err, Ok } from 'lemons/Result';

import { guard } from '../guard';
import { string } from '../string';
Expand Down
2 changes: 1 addition & 1 deletion src/array.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// @flow strict

import { annotate } from 'debrief';
import { Err, Ok } from 'lemons';
import { Err, Ok } from 'lemons/Result';

import type { DecodeResult, Decoder } from './types';
import { compose } from './utils';
Expand Down
2 changes: 1 addition & 1 deletion src/boolean.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// @flow strict

import { annotate } from 'debrief';
import { Err, Ok } from 'lemons';
import { Err, Ok } from 'lemons/Result';

import { number } from './number';
import type { Decoder } from './types';
Expand Down
2 changes: 1 addition & 1 deletion src/constants.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// @flow strict

import { annotate } from 'debrief';
import { Err, Ok } from 'lemons';
import { Err, Ok } from 'lemons/Result';

import type { Decoder } from './types';

Expand Down
2 changes: 1 addition & 1 deletion src/date.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// @flow strict

import { annotate } from 'debrief';
import { Err, Ok } from 'lemons';
import { Err, Ok } from 'lemons/Result';

import type { Decoder } from './types';
import { isDate } from './utils';
Expand Down
2 changes: 1 addition & 1 deletion src/either.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import { annotate, indent } from 'debrief';
import { summarize } from 'debrief';
import { Err, Ok } from 'lemons';
import { Err, Ok } from 'lemons/Result';

import type { Decoder } from './types';

Expand Down
2 changes: 1 addition & 1 deletion src/fail.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// @flow strict

import { annotate } from 'debrief';
import { Err } from 'lemons';
import { Err } from 'lemons/Result';

import type { Decoder } from './types';

Expand Down
2 changes: 1 addition & 1 deletion src/mapping.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import type { Annotation } from 'debrief';
import { annotateFields, isAnnotation } from 'debrief';
import { Err, Ok } from 'lemons';
import { Err, Ok } from 'lemons/Result';

import { pojo } from './object';
import type { Decoder } from './types';
Expand Down
2 changes: 1 addition & 1 deletion src/maybe.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// @flow strict

import { annotate } from 'debrief';
import { Err, Ok } from 'lemons';
import { Err, Ok } from 'lemons/Result';

import { either } from './either';
import type { Decoder } from './types';
Expand Down
2 changes: 1 addition & 1 deletion src/number.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// @flow strict

import { annotate } from 'debrief';
import { Err, Ok } from 'lemons';
import { Err, Ok } from 'lemons/Result';

import type { Decoder } from './types';
import { compose, predicate } from './utils';
Expand Down
2 changes: 1 addition & 1 deletion src/object.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import { annotate, annotateFields, isAnnotation } from 'debrief';
import type { Annotation } from 'debrief';
import { Err, Ok } from 'lemons';
import { Err, Ok } from 'lemons/Result';

import type { $DecoderType, Decoder } from './types';
import { compose, isDate } from './utils';
Expand Down
2 changes: 1 addition & 1 deletion src/string.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// @flow strict

import { annotate } from 'debrief';
import { Err, Ok } from 'lemons';
import { Err, Ok } from 'lemons/Result';

import type { Decoder } from './types';
import { compose, predicate } from './utils';
Expand Down
2 changes: 1 addition & 1 deletion src/tuple.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// @flow strict

import { annotate } from 'debrief';
import { Err, Ok } from 'lemons';
import { Err, Ok } from 'lemons/Result';

import { poja } from './array';
import type { Decoder } from './types';
Expand Down
2 changes: 1 addition & 1 deletion src/types.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Annotation } from 'debrief';
import { Result } from 'lemons';
import Result from 'lemons/Result';

export type $DecoderType<T> = T extends Decoder<infer V> ? V : any;

Expand Down
2 changes: 1 addition & 1 deletion src/types.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// @flow strict

import type { Annotation } from 'debrief';
import { Result } from 'lemons';
import Result from 'lemons/Result';

/**
* A "type function" which informs Flow about how a type will be modified at runtime.
Expand Down
2 changes: 1 addition & 1 deletion src/utils.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// @flow strict

import { annotate } from 'debrief';
import { Err, Ok } from 'lemons';
import { Err, Ok } from 'lemons/Result';

import type { Decoder } from './types';

Expand Down
16 changes: 8 additions & 8 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1674,10 +1674,10 @@ dashdash@^1.12.0:
dependencies:
assert-plus "^1.0.0"

debrief@^1.2.4:
version "1.2.4"
resolved "https://registry.yarnpkg.com/debrief/-/debrief-1.2.4.tgz#d4d33aaaf7a250906a97b2acc5201e33b6390651"
integrity sha512-BPSSNAKid1xWAtaB5IciG5HqVeZz7EYde4BQnDt5qQ5ZABSjAkgQ7FV90bBsUdCLzTVlA446q1MHblht92Bbpw==
debrief@^1.2.5:
version "1.2.5"
resolved "https://registry.yarnpkg.com/debrief/-/debrief-1.2.5.tgz#8f08674f5aa6a8b9b6fcaccc67ea77ccc7d63479"
integrity sha512-NqAbusP5FaN9EGhNNzmXraE2S45jytAIr1eXdsy/uOjG3czwEYxt9R9xkxBVS1/vfAXLsSjAEmeOMa9yfsAXyg==

[email protected], debug@^3.1.0:
version "3.1.0"
Expand Down Expand Up @@ -3873,10 +3873,10 @@ left-pad@^1.2.0:
resolved "https://registry.yarnpkg.com/left-pad/-/left-pad-1.2.0.tgz#d30a73c6b8201d8f7d8e7956ba9616087a68e0ee"
integrity sha1-0wpzxrggHY99jnlWupYWCHpo4O4=

lemons@^1.3.1:
version "1.3.1"
resolved "https://registry.yarnpkg.com/lemons/-/lemons-1.3.1.tgz#c1415d05f6ab5321418d3f472819e4ba1ffcfb29"
integrity sha512-y33wVNr5+4lZV0cen9JJgrqxXfCmjvVrfOqmy07boz07EN8qy371k6thpkHaLjvlruDNkvOfyIoDNN32xS1PHw==
lemons@^1.4.0:
version "1.4.0"
resolved "https://registry.yarnpkg.com/lemons/-/lemons-1.4.0.tgz#78b16e975b20242d382a6d11826ddda6a3d275c9"
integrity sha512-e4+Pk4xLxzLBcEFb8vMNyCDW72vlDXyScbEK/kemiDzSbjZZtgGuUCmcK9PY1vYajT5inGAEPYqA66tAwTwJgg==

leven@^2.1.0:
version "2.1.0"
Expand Down

0 comments on commit 8bd5540

Please sign in to comment.