You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+19-8Lines changed: 19 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,13 +27,19 @@ var Avatax = require('avatax');
27
27
// es6/7 import
28
28
// import Avatax from 'avatax';
29
29
30
-
// resolve configurationand credentials
30
+
// resolve configuration, credentials and logOptions
31
31
constconfig= {
32
32
appName:'your-app',
33
33
appVersion:'1.0',
34
34
environment:'sandbox',
35
35
machineName:'your-machine-name'
36
-
timeout:5000// optional, default 20 min
36
+
timeout:5000, // optional, default 20 min
37
+
logOptions: {
38
+
logEnabled:true, // toggle logging on or off, by default its off.
39
+
logLevel:3, // logLevel that will be used, Options are LogLevel.Error (0), LogLevel.Warn (1), LogLevel.Info (2), LogLevel.Debug (3)
40
+
logRequestAndResponseInfo:true, // Toggle logging of the request and response bodies on and off.
41
+
logger: myCustomLogger // (OPTIONAL) Custom logger can be passed in that implements the BaseLogger interface (e.g. debug, info, warn, error, and log functions) Otherwise console.log/error etc will be used by default.
In the JS-SDK 21.2.1 release, the SDK can now return big integers from API responses.
105
-
Big integers in JavaScript are displayed in responses by appending an 'n' to the end of an integer literal. For example, 618368842515476464 -> 618368842515476464n.
106
-
Numbers are presented as before. For example, 8456123 -> 8456123.
107
-
For more information, refer to the following Mozilla documentation: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt
110
+
Please see the [Github releases](https://github.com/avadev/AvaTax-REST-V2-JS-SDK/releases) for in-depth release notes.
111
+
112
+
## Typescript support
113
+
As of version 22.11.0, Typescript support is included in the SDK. Models and Enums included in addition to typing for all of the API methods and parameters. The team welcomes any feedback on this feature.
114
+
115
+
Models and Enums can be imported into Typescript projects as follows:
0 commit comments