@volant-autonomy/via-sdk 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/fetch.js +3 -1
- package/package.json +2 -1
package/README.md
CHANGED
|
@@ -12,7 +12,7 @@ Run `npm install --save @volant-autonomy/via-sdk` to add the SDK as a dependency
|
|
|
12
12
|
## Basic usage
|
|
13
13
|
|
|
14
14
|
```typescript
|
|
15
|
-
import createSDK from '@volant-autonomy/via-sdk'
|
|
15
|
+
import { createSDK } from '@volant-autonomy/via-sdk'
|
|
16
16
|
|
|
17
17
|
const SDK = createSDK({
|
|
18
18
|
username: "username",
|
package/dist/fetch.js
CHANGED
|
@@ -40,7 +40,9 @@ class Fetcher {
|
|
|
40
40
|
username: this.opts.username,
|
|
41
41
|
password: this.opts.password
|
|
42
42
|
}),
|
|
43
|
-
redirect: 'follow'
|
|
43
|
+
redirect: 'follow',
|
|
44
|
+
method: 'post',
|
|
45
|
+
headers: { 'Content-Type': 'application/json' }
|
|
44
46
|
});
|
|
45
47
|
if (resp.ok) {
|
|
46
48
|
const data = (yield resp.json());
|
package/package.json
CHANGED