snaptrade-typescript-sdk 6.0.0 → 6.1.0
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/.konfig/generate-id.txt +1 -1
- package/README.md +3 -5
- package/configuration.ts +1 -1
- package/dist/configuration.js +1 -1
- package/package.json +1 -1
package/.konfig/generate-id.txt
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
ad266aa9-80cf-402e-ba8a-ca28db5f917a
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## snaptrade-typescript-sdk@6.
|
|
1
|
+
## snaptrade-typescript-sdk@6.1.0
|
|
2
2
|
|
|
3
3
|
This library that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -28,7 +28,7 @@ npm run build
|
|
|
28
28
|
navigate to the folder of your consuming project and run the following command.
|
|
29
29
|
|
|
30
30
|
```
|
|
31
|
-
npm install snaptrade-typescript-sdk@6.
|
|
31
|
+
npm install snaptrade-typescript-sdk@6.1.0 --save
|
|
32
32
|
```
|
|
33
33
|
|
|
34
34
|
### Getting Started
|
|
@@ -51,9 +51,7 @@ async function main() {
|
|
|
51
51
|
const userId = uuid();
|
|
52
52
|
const { userSecret } = (
|
|
53
53
|
await snaptrade.authentication.registerSnapTradeUser({
|
|
54
|
-
|
|
55
|
-
userId,
|
|
56
|
-
},
|
|
54
|
+
userId,
|
|
57
55
|
})
|
|
58
56
|
).data;
|
|
59
57
|
|
package/configuration.ts
CHANGED
|
@@ -109,7 +109,7 @@ export class Configuration {
|
|
|
109
109
|
this.accessToken = param.accessToken;
|
|
110
110
|
this.basePath = param.basePath;
|
|
111
111
|
this.baseOptions = param.baseOptions;
|
|
112
|
-
this.userAgent = param.userAgent === undefined ? "Konfig/6.
|
|
112
|
+
this.userAgent = param.userAgent === undefined ? "Konfig/6.1.0/typescript" : param.userAgent;
|
|
113
113
|
this.formDataCtor = param.formDataCtor;
|
|
114
114
|
}
|
|
115
115
|
|
package/dist/configuration.js
CHANGED
|
@@ -33,7 +33,7 @@ var Configuration = /** @class */ (function () {
|
|
|
33
33
|
this.accessToken = param.accessToken;
|
|
34
34
|
this.basePath = param.basePath;
|
|
35
35
|
this.baseOptions = param.baseOptions;
|
|
36
|
-
this.userAgent = param.userAgent === undefined ? "Konfig/6.
|
|
36
|
+
this.userAgent = param.userAgent === undefined ? "Konfig/6.1.0/typescript" : param.userAgent;
|
|
37
37
|
this.formDataCtor = param.formDataCtor;
|
|
38
38
|
}
|
|
39
39
|
/**
|