@quandis/qbo4.ui 4.0.1-CI-20241022-200944 → 4.0.1-CI-20241022-235233
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 +1 -1
- package/src/qbo/RestApiService.js +1 -1
- package/src/qbo/RestApiService.ts +1 -1
- package/src/qbo/qbo-fetch.d.ts +4 -0
- package/src/qbo/qbo-fetch.ts +2 -0
- package/wwwroot/js/esm/qbo4.ui.js +2 -2
- package/wwwroot/js/esm/qbo4.ui.min.js +1 -1
- package/wwwroot/js/esm/qbo4.ui.min.js.map +1 -1
- package/wwwroot/js/qbo4.ui.js +2 -2
- package/wwwroot/js/qbo4.ui.min.js +1 -1
- package/wwwroot/js/qbo4.ui.min.js.map +1 -1
package/package.json
CHANGED
|
@@ -8,7 +8,7 @@ export class RestApiService {
|
|
|
8
8
|
this.method = method;
|
|
9
9
|
}
|
|
10
10
|
async fetch(relativePath, payload) {
|
|
11
|
-
if (this.apiEndpoint.indexOf("//") <
|
|
11
|
+
if (this.apiEndpoint.indexOf("//") < 0)
|
|
12
12
|
this.apiEndpoint = new URL(this.apiEndpoint, document.location.origin).href;
|
|
13
13
|
const endpoint = substitute(new URL(relativePath ?? this.relativePath, this.apiEndpoint).href, payload);
|
|
14
14
|
const method = this.method ?? (payload ? 'POST' : 'GET');
|
|
@@ -17,7 +17,7 @@ export class RestApiService implements IApiService {
|
|
|
17
17
|
|
|
18
18
|
async fetch(relativePath: string | null, payload?: Record<string, string> | null | undefined): Promise<any> {
|
|
19
19
|
|
|
20
|
-
if (this.apiEndpoint.indexOf("//") <
|
|
20
|
+
if (this.apiEndpoint.indexOf("//") < 0)
|
|
21
21
|
this.apiEndpoint = new URL(this.apiEndpoint, document.location.origin).href;
|
|
22
22
|
const endpoint = substitute(new URL(relativePath ?? this.relativePath, this.apiEndpoint).href, payload);
|
|
23
23
|
const method = this.method ?? (payload ? 'POST' : 'GET');
|
package/src/qbo/qbo-fetch.d.ts
CHANGED
|
@@ -5,6 +5,10 @@ export declare class IFetch {
|
|
|
5
5
|
error: boolean;
|
|
6
6
|
jsonData: any | null;
|
|
7
7
|
html: string | null;
|
|
8
|
+
headers: {
|
|
9
|
+
[key: string]: string;
|
|
10
|
+
} | null;
|
|
11
|
+
payload: Record<string, string> | null;
|
|
8
12
|
protected fetchData(headers: {
|
|
9
13
|
[key: string]: string;
|
|
10
14
|
}, payload: Object | null): Promise<void>;
|
package/src/qbo/qbo-fetch.ts
CHANGED
|
@@ -9,6 +9,8 @@ export declare class IFetch {
|
|
|
9
9
|
error: boolean;
|
|
10
10
|
jsonData: any | null;
|
|
11
11
|
html: string | null;
|
|
12
|
+
headers: { [key: string]: string } | null;
|
|
13
|
+
payload: Record<string, string> | null;
|
|
12
14
|
protected fetchData(headers: { [key: string]: string; }, payload: Object | null): Promise<void>;
|
|
13
15
|
protected getPayload(headers: { [key: string]: string; });
|
|
14
16
|
protected getHeaders(): { [key: string]: string };
|