@eximchain/dappbot-api-client
Advanced tools
Comparing version 1.2.0 to 1.2.1
@@ -0,1 +1,7 @@ | ||
# v1.2.1 | ||
Made the `apiUrl` a `readonly` attribute on the API object, making it easy to determine the current configured API endpoint from any code with access to an API object. | ||
# v1.2.0 | ||
Added support for new API methods related to enabling and using MFA authentication. | ||
# v1.1.0 | ||
@@ -2,0 +8,0 @@ Upgraded `requestBuilder`'s `reqFactory` methods to include a fifth key, `call()`. While the previous four keys just return the configuration objects for various request libraries, the new `call()` function uses `request-promise-native` to actually perform the request and return `Promise<Response>`. This is ideal for small apps which are mostly just consuming DappBot data. |
{ | ||
"name": "@eximchain/dappbot-api-client", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"description": "Typescript client for the DappBot API", | ||
@@ -26,3 +26,3 @@ "main": "dist/index.js", | ||
"dependencies": { | ||
"@eximchain/dappbot-types": "^1.7.0", | ||
"@eximchain/dappbot-types": "^1.7.4", | ||
"@types/axios": "^0.14.0", | ||
@@ -29,0 +29,0 @@ "@types/lodash.omit": "^4.5.6", |
@@ -1,2 +0,2 @@ | ||
import Auth, { | ||
import { | ||
Login, NewPassChallenge, Refresh, BeginPassReset, ConfirmPassReset, | ||
@@ -3,0 +3,0 @@ MfaLoginChallenge, BeginSetupAppMfa, ConfirmSetupAppMfa, SetMfaPreference |
@@ -38,4 +38,4 @@ import User from '@eximchain/dappbot-types/spec/user'; | ||
private dappbotUrl:string | ||
private authData:User.AuthData | ||
readonly dappbotUrl:string | ||
readonly authData:User.AuthData | ||
private setAuthData:AuthSetter | ||
@@ -42,0 +42,0 @@ private builder:RequestBuilder |
@@ -6,3 +6,2 @@ import { Request as FetchRequest } from 'node-fetch'; | ||
import { HttpMethods } from '@eximchain/dappbot-types/spec/responses'; | ||
import { RootResources } from '@eximchain/dappbot-types/spec/methods'; | ||
import { Headers, ReqTypes, ReqFactoryWithArgs, ReqFactoryWithArgsAndPath } from './types'; | ||
@@ -9,0 +8,0 @@ const url = require('url') |
@@ -8,4 +8,7 @@ { | ||
"strict": true, /* Enable all strict type-checking options. */ | ||
"esModuleInterop": true /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */ | ||
"esModuleInterop": true, /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */ | ||
"noImplicitAny": true, | ||
"allowSyntheticDefaultImports": true, | ||
"alwaysStrict": true | ||
} | ||
} |
316041
1012
27