@luizleon/sf.prefeiturasp.vuecomponents 0.0.57 → 0.0.59

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@luizleon/sf.prefeiturasp.vuecomponents",
3
- "version": "0.0.57",
3
+ "version": "0.0.59",
4
4
  "type": "module",
5
5
  "main": "dist/sf.prefeiturasp.vuecomponents.umd.js",
6
6
  "module": "dist/sf.prefeiturasp.vuecomponents.es.js",
@@ -3,10 +3,10 @@ import { AppResult } from "../common/appResult";
3
3
  import Keycloak from "../keycloak";
4
4
 
5
5
  class AxiosClient {
6
- constructor(keycloak: Keycloak) {
6
+ constructor(keycloak: Keycloak, baseUrl: string) {
7
7
  this.keycloak = keycloak;
8
8
  this.axios = _axios.create();
9
- this.axios.defaults.baseURL = "https://localhost:5001/api";
9
+ this.axios.defaults.baseURL = baseUrl;
10
10
  this.axios.defaults.headers.common["content-type"] =
11
11
  "application/json";
12
12
  this.axios.defaults.timeout = 1000 * 60 * 5;
@@ -201,7 +201,7 @@ class AxiosClient {
201
201
  }
202
202
  }
203
203
 
204
- const UseAxiosClient = (keycloak: Keycloak) =>
205
- new AxiosClient(keycloak);
204
+ const UseAxiosClient = (keycloak: Keycloak, baseURL: string) =>
205
+ new AxiosClient(keycloak, baseURL);
206
206
 
207
207
  export { AxiosClient, UseAxiosClient };
@@ -43,7 +43,7 @@ declare class SfDrawer extends ClassComponent<
43
43
 
44
44
  declare module "@vue/runtime-core" {
45
45
  interface GlobalComponents {
46
- SfDrawer: typeof SfDrawer;
46
+ SfDrawer: GlobalComponentConstructor<SfDrawer>;
47
47
  }
48
48
  }
49
49