Skip to content

Commit

Permalink
feat: migration from axios to fetch (#42)
Browse files Browse the repository at this point in the history
* feat: migration from axios to fetch

* feat: timeout, additional typing, always return json on get
  • Loading branch information
Saghen committed Jan 31, 2024
1 parent c860a0c commit d4ff648
Show file tree
Hide file tree
Showing 6 changed files with 268 additions and 361 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ npm install aw-client

## Usage

The library uses Promises for almost everything, so either use `.then()` or the (recommended) async/aways syntax.
The library uses Promises for almost everything, so either use `.then()` or async/await syntax.

The example below is written with `.then()` to make it easy to run in the node REPL.

Expand Down Expand Up @@ -55,5 +55,5 @@ npm run compile
### Run the tests

```sh
npm run test
npm test
```
186 changes: 16 additions & 170 deletions package-lock.json

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

3 changes: 0 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@
"files": [
"out"
],
"dependencies": {
"axios": "*"
},
"devDependencies": {
"@types/mocha": "*",
"@types/node": "*",
Expand Down
Loading

0 comments on commit d4ff648

Please sign in to comment.