@emilgroup/accounting-sdk-node 1.18.0 → 1.18.1-beta.1
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 +2 -2
- package/base.ts +1 -1
- package/dist/base.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
|
|
|
17
17
|
Navigate to the folder of your consuming project and run one of the following commands:
|
|
18
18
|
|
|
19
19
|
```
|
|
20
|
-
npm install @emilgroup/accounting-sdk-node@1.18.
|
|
20
|
+
npm install @emilgroup/accounting-sdk-node@1.18.1-beta.1 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/accounting-sdk-node@1.18.
|
|
24
|
+
yarn add @emilgroup/accounting-sdk-node@1.18.1-beta.1
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `FinancialAccountsApi`.
|
package/base.ts
CHANGED
|
@@ -225,7 +225,7 @@ export class BaseAPI {
|
|
|
225
225
|
const tokenString = await this.refreshTokenInternal();
|
|
226
226
|
const accessToken = `Bearer ${tokenString}`;
|
|
227
227
|
|
|
228
|
-
originalConfig.headers['Authorization'] =
|
|
228
|
+
originalConfig.headers['Authorization'] = accessToken;
|
|
229
229
|
|
|
230
230
|
this.configuration.accessToken = accessToken;
|
|
231
231
|
|
package/dist/base.js
CHANGED
|
@@ -330,7 +330,7 @@ var BaseAPI = /** @class */ (function () {
|
|
|
330
330
|
case 2:
|
|
331
331
|
tokenString = _a.sent();
|
|
332
332
|
accessToken = "Bearer ".concat(tokenString);
|
|
333
|
-
originalConfig.headers['Authorization'] =
|
|
333
|
+
originalConfig.headers['Authorization'] = accessToken;
|
|
334
334
|
this.configuration.accessToken = accessToken;
|
|
335
335
|
return [2 /*return*/, axios.request(originalConfig)];
|
|
336
336
|
case 3:
|