@magalu/webzord 1.3.3 → 1.4.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/CHANGELOG.md +24 -0
- package/lib/magaluService.d.ts +2 -1
- package/lib/magaluService.js +3 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,29 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.4.1](https://gitlab.luizalabs.com/luizalabs/plataforma-mobile/webzord/compare/v1.4.0...v1.4.1) (2025-04-08)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* fix env ([](https://gitlab.luizalabs.com/luizalabs/plataforma-mobile/webzord/commit/14739fb))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Continuous Integration
|
|
12
|
+
|
|
13
|
+
* update dependency.yaml ([](https://gitlab.luizalabs.com/luizalabs/plataforma-mobile/webzord/commit/b0e8c26))
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### Improvements
|
|
17
|
+
|
|
18
|
+
* add authid as argument in request ([](https://gitlab.luizalabs.com/luizalabs/plataforma-mobile/webzord/commit/8a9751a))
|
|
19
|
+
|
|
20
|
+
# [1.4.0](https://gitlab.luizalabs.com/luizalabs/plataforma-mobile/webzord/compare/v1.3.3...v1.4.0) (2024-12-17)
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
### Features
|
|
24
|
+
|
|
25
|
+
* turn did-found-sdk method public ([](https://gitlab.luizalabs.com/luizalabs/plataforma-mobile/webzord/commit/60da9c1))
|
|
26
|
+
|
|
3
27
|
## [1.3.3](https://gitlab.luizalabs.com/luizalabs/plataforma-mobile/webzord/compare/v1.3.2...v1.3.3) (2024-09-17)
|
|
4
28
|
|
|
5
29
|
|
package/lib/magaluService.d.ts
CHANGED
|
@@ -27,6 +27,7 @@ export interface ServiceCall {
|
|
|
27
27
|
serviceArgs?: any;
|
|
28
28
|
callbackId?: string;
|
|
29
29
|
showLoading?: boolean;
|
|
30
|
+
authId?: string;
|
|
30
31
|
callback?: ServiceCallback | undefined;
|
|
31
32
|
}
|
|
32
33
|
/**
|
|
@@ -108,7 +109,7 @@ declare class MagaluService {
|
|
|
108
109
|
static request({ serviceName, serviceArgs, callbackId, callback }: ServiceCall, mockMode?: boolean): void;
|
|
109
110
|
private static returnMockedResponse;
|
|
110
111
|
private static buildPromise;
|
|
111
|
-
|
|
112
|
+
static didFoundSDK(): boolean;
|
|
112
113
|
private static callSDK;
|
|
113
114
|
/**
|
|
114
115
|
* @param {string} callbackId - The id of the callback to be removed
|
package/lib/magaluService.js
CHANGED
|
@@ -10,8 +10,8 @@ class MagaluService {
|
|
|
10
10
|
* @ignore
|
|
11
11
|
*/
|
|
12
12
|
constructor() { }
|
|
13
|
-
static request({ serviceName, serviceArgs, callbackId, callback, showLoading }, mockMode) {
|
|
14
|
-
var _a;
|
|
13
|
+
static request({ serviceName, serviceArgs, callbackId, callback, showLoading, authId }, mockMode) {
|
|
14
|
+
var _a, _b;
|
|
15
15
|
if (!this.didFoundSDK()) {
|
|
16
16
|
console.warn("didn't found any sdk");
|
|
17
17
|
return;
|
|
@@ -35,7 +35,7 @@ class MagaluService {
|
|
|
35
35
|
const payload = {
|
|
36
36
|
callbackId,
|
|
37
37
|
serviceName,
|
|
38
|
-
authId: (_a = this.hash) !== null && _a !== void 0 ? _a : '',
|
|
38
|
+
authId: (_b = (_a = this.hash) !== null && _a !== void 0 ? _a : authId) !== null && _b !== void 0 ? _b : '',
|
|
39
39
|
arguments: argsString,
|
|
40
40
|
showLoading
|
|
41
41
|
};
|