Skip to content

Commit

Permalink
chose: update release
Browse files Browse the repository at this point in the history
  • Loading branch information
meabed committed Feb 2, 2022
1 parent a272f23 commit 00bacda
Show file tree
Hide file tree
Showing 22 changed files with 3,815 additions and 1,874 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Change Log

## v1.1.1
- Remove node-fetch dependency
- Add axios client for request
- Enhance typing

## v1.1.0
- Initial stable release
- Adding tests
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import { CurrencyApi, Configuration } from '@devmehq/sdk-js';
const config = new Configuration({ apiKey: 'demo-key' });
const currencyApi = new CurrencyApi(config);

const result = await currencyApi.v1ConvertCurrency({
const { data } = await currencyApi.v1ConvertCurrency({
amount: 10,
from: 'USD',
to: 'EUR',
Expand All @@ -52,7 +52,7 @@ import { IPApi, Configuration } from '@devmehq/sdk-js';
const config = new Configuration({ apiKey: 'demo-key' });
const ipApi = new IPApi(config);

const result = await ipApi.v1GetIpDetails({ ip: '52.45.23.11' });
const { data } = await ipApi.v1GetIpDetails({ ip: '52.45.23.11' });

// {
// asn: 14618,
Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,14 @@
"__api_flows__/**/*.ts": "prettier --write",
"swagger/**/*.json": "prettier --write"
},
"dependencies": {
"axios": "0.25.0"
},
"devDependencies": {
"@types/chai": "4.3.0",
"@types/mocha": "9.1.0",
"chai": "4.3.6",
"husky": "7.0.4",
"isomorphic-fetch": "3.0.0",
"lint-staged": "12.3.3",
"mocha": "9.2.0",
"prettier": "2.5.1",
Expand Down
Loading

0 comments on commit 00bacda

Please sign in to comment.