Skip to content

Commit

Permalink
feat!: add request options type (#61)
Browse files Browse the repository at this point in the history
* feat: add RequestOptions type

* chore: bump packages

* feat!: drop node 12.x support
  • Loading branch information
chybisov committed May 13, 2022
1 parent 827e7cb commit 0345946
Show file tree
Hide file tree
Showing 4 changed files with 1,840 additions and 2,202 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
os:
- ubuntu-latest
- windows-latest
node: [12.x, 14.x, 16.x]
node: [14.x, 16.x]

steps:
- uses: actions/checkout@v2
Expand Down
38 changes: 19 additions & 19 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,29 +47,29 @@
"url": "https://github.com/lifinance/types"
},
"dependencies": {
"ethers": "^5.4.7"
"ethers": "^5.6.5"
},
"devDependencies": {
"@commitlint/cli": "^13.1.0",
"@commitlint/config-conventional": "^13.1.0",
"@types/jest": "^27.0.1",
"@typescript-eslint/eslint-plugin": "^4.31.1",
"@typescript-eslint/parser": "^4.31.1",
"eslint": "^7.32.0",
"eslint-config-prettier": "^8.3.0",
"@commitlint/cli": "^16.2.4",
"@commitlint/config-conventional": "^16.2.4",
"@types/jest": "^27.5.1",
"@typescript-eslint/eslint-plugin": "^5.23.0",
"@typescript-eslint/parser": "^5.23.0",
"eslint": "^8.15.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-prettier": "^4.0.0",
"husky": "^7.0.2",
"jest": "^27.2.0",
"lint-staged": ">=10",
"husky": "^8.0.1",
"jest": "^28.1.0",
"lint-staged": ">=12.4.1",
"npm-run-all": "^4.1.5",
"pinst": "^2.1.6",
"prettier": "^2.4.0",
"ts-jest": "^27.0.5",
"ts-loader": "^9.2.5",
"typescript": "^4.4.3",
"webpack": "^5.52.1",
"webpack-cli": "^4.8.0",
"standard-version": "^9.3.2"
"pinst": "^3.0.0",
"prettier": "^2.6.2",
"standard-version": "^9.3.2",
"ts-jest": "^28.0.2",
"ts-loader": "^9.3.0",
"typescript": "^4.6.4",
"webpack": "^5.72.1",
"webpack-cli": "^4.9.2"
},
"directories": {
"test": "test"
Expand Down
6 changes: 5 additions & 1 deletion src/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {
ChainId,
ExchangeDefinition,
Step,
Token,
Token
} from '.'
import { Bridge } from './bridges'
import { Exchange, ExchangeAggregator } from './exchanges'
Expand Down Expand Up @@ -180,6 +180,10 @@ export type TokensResponse = {
tokens: { [chainId: number]: Token[] }
}

export type RequestOptions = {
signal?: AbortSignal
}

export type StatusMessage = 'NOT_FOUND' | 'PENDING' | 'DONE' | 'FAILED'

export declare class LifiAPI {
Expand Down

0 comments on commit 0345946

Please sign in to comment.