@etsoo/appscript 1.5.56 → 1.5.57

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.
@@ -1527,7 +1527,7 @@ class CoreApp {
1527
1527
  */
1528
1528
  async apiRefreshTokenData(api, token) {
1529
1529
  // Call the API quietly, no loading bar and no error popup
1530
- return new AuthApi_1.AuthApi(this).apiRefreshToken({ token }, {
1530
+ return new AuthApi_1.AuthApi(this, api).apiRefreshToken({ token }, {
1531
1531
  showLoading: false,
1532
1532
  onError: (error) => {
1533
1533
  console.error(`CoreApp.${api.name}.apiRefreshToken error`, error);
@@ -1524,7 +1524,7 @@ export class CoreApp {
1524
1524
  */
1525
1525
  async apiRefreshTokenData(api, token) {
1526
1526
  // Call the API quietly, no loading bar and no error popup
1527
- return new AuthApi(this).apiRefreshToken({ token }, {
1527
+ return new AuthApi(this, api).apiRefreshToken({ token }, {
1528
1528
  showLoading: false,
1529
1529
  onError: (error) => {
1530
1530
  console.error(`CoreApp.${api.name}.apiRefreshToken error`, error);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@etsoo/appscript",
3
- "version": "1.5.56",
3
+ "version": "1.5.57",
4
4
  "description": "Applications shared TypeScript framework",
5
5
  "main": "lib/cjs/index.js",
6
6
  "module": "lib/mjs/index.js",
@@ -2093,7 +2093,7 @@ export abstract class CoreApp<
2093
2093
  token: string
2094
2094
  ): Promise<ApiRefreshTokenDto | undefined> {
2095
2095
  // Call the API quietly, no loading bar and no error popup
2096
- return new AuthApi(this).apiRefreshToken(
2096
+ return new AuthApi(this, api).apiRefreshToken(
2097
2097
  { token },
2098
2098
  {
2099
2099
  showLoading: false,