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
@@ -10,10 +10,10 @@ ava-typescript v2 SDK for languages using node.js
10
10
Install the package with:
11
11
```bash
12
12
# using npm
13
-
npm install ava-typescript
13
+
npm install avatax
14
14
15
15
# using yarn
16
-
yarn add ava-typescript
16
+
yarn add avatax
17
17
```
18
18
19
19
## Usage
@@ -22,18 +22,24 @@ yarn add ava-typescript
22
22
```js
23
23
24
24
// es5 import
25
-
var Avatax =require('ava-typescript');
25
+
var Avatax =require('avatax');
26
26
27
27
// es6/7 import
28
-
// import Avatax from 'ava-typescript';
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:LogLevel.Info, // logLevel that will be used, Options are LogLevel.Error, LogLevel.Warn, LogLevel.Info, LogLevel.Debug
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.
0 commit comments