@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 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
@@ -1,9 +1,10 @@
1
1
  {
2
2
  "name": "@volant-autonomy/via-sdk",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "license": "MIT",
5
5
  "source": "src/index.ts",
6
6
  "types": "dist/index.d.ts",
7
+ "main": "dist/index.js",
7
8
  "module": "dist/index.js",
8
9
  "files": [
9
10
  "dist/**"