Skip to content

Commit

Permalink
fix: remove decoder from src folder
Browse files Browse the repository at this point in the history
  • Loading branch information
nguyentoanit committed Mar 17, 2021
1 parent 7159ec7 commit 10f3b46
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions gulpfile.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { Octokit } from '@octokit/rest' // eslint-disable-line import/no-extraneous-dependencies
import { task } from 'gulp' // eslint-disable-line import/no-extraneous-dependencies
import path from 'path'
import { array, Codec, GetType, nullType, oneOf, string } from 'purify-ts/Codec'
import { array, Codec, GetType, nullType, oneOf, string } from 'purify-ts/Codec' // eslint-disable-line import/no-extraneous-dependencies

import { Decoder } from './src/helpers/decoder'
import { Decoder } from './utils/decoder'

const GithubObject = Codec.interface({
name: string,
Expand Down
4 changes: 3 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
"aws4-axios": "2.3.1",
"axios": "0.21.1",
"http-status-codes": "2.1.4",
"purify-ts": "0.16.1",
"ts-error": "1.0.6"
},
"devDependencies": {
Expand All @@ -58,6 +57,7 @@
"global-agent": "2.1.12",
"gulp": "4.0.2",
"jest": "26.6.3",
"purify-ts": "0.16.1",
"rimraf": "3.0.2",
"ts-jest": "26.5.0",
"ts-node": "9.1.1",
Expand Down
1 change: 0 additions & 1 deletion src/helpers/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
export * from './api-client-helpers'
export * from './api-error-factory'
export * from './decoder'
1 change: 0 additions & 1 deletion src/types/errors/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
export * from './selling-partner-api-errors'
export * from './selling-partner-parsing-error'
4 changes: 2 additions & 2 deletions src/helpers/decoder.ts → utils/decoder.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Codec } from 'purify-ts/Codec'
import { Codec } from 'purify-ts/Codec' // eslint-disable-line import/no-extraneous-dependencies

import { SellingPartnerParsingError } from '../types/errors'
import { SellingPartnerParsingError } from './types/errors/selling-partner-parsing-error'

export class Decoder {
static decode<T>(decoder: Codec<T>, object: unknown): T {
Expand Down

0 comments on commit 10f3b46

Please sign in to comment.