@magalu/webzord 1.5.0 → 1.5.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 CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.5.1](https://gitlab.luizalabs.com/luizalabs/plataforma-mobile/webzord/compare/v1.5.0...v1.5.1) (2026-08-20)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * return a real boolean from didFoundSDK ([e26681d](https://gitlab.luizalabs.com/luizalabs/plataforma-mobile/webzord/commit/e26681d))
9
+
3
10
  # [1.5.0](https://gitlab.luizalabs.com/luizalabs/plataforma-mobile/webzord/compare/v1.4.2...v1.5.0) (2026-04-13)
4
11
 
5
12
 
@@ -117,7 +117,7 @@ class MagaluService {
117
117
  }
118
118
  static didFoundSDK() {
119
119
  var _a, _b, _c;
120
- return (((_b = (_a = window === null || window === void 0 ? void 0 : window.webkit) === null || _a === void 0 ? void 0 : _a.messageHandlers) === null || _b === void 0 ? void 0 : _b.magaluSdk) ||
120
+ return Boolean(((_b = (_a = window === null || window === void 0 ? void 0 : window.webkit) === null || _a === void 0 ? void 0 : _a.messageHandlers) === null || _b === void 0 ? void 0 : _b.magaluSdk) ||
121
121
  ((_c = window === null || window === void 0 ? void 0 : window.magaluSdk) === null || _c === void 0 ? void 0 : _c.requestService));
122
122
  }
123
123
  static callSDK(message, callbackId) {
@@ -120,7 +120,7 @@ class MagaluService {
120
120
  }
121
121
  static didFoundSDK() {
122
122
  var _a, _b, _c;
123
- return (((_b = (_a = window === null || window === void 0 ? void 0 : window.webkit) === null || _a === void 0 ? void 0 : _a.messageHandlers) === null || _b === void 0 ? void 0 : _b.magaluSdk) ||
123
+ return Boolean(((_b = (_a = window === null || window === void 0 ? void 0 : window.webkit) === null || _a === void 0 ? void 0 : _a.messageHandlers) === null || _b === void 0 ? void 0 : _b.magaluSdk) ||
124
124
  ((_c = window === null || window === void 0 ? void 0 : window.magaluSdk) === null || _c === void 0 ? void 0 : _c.requestService));
125
125
  }
126
126
  static callSDK(message, callbackId) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@magalu/webzord",
3
- "version": "1.5.0",
3
+ "version": "1.5.1",
4
4
  "description": "Toolkit to consume superapp api",
5
5
  "main": "lib/magaluService.js",
6
6
  "module": "lib/esm/magaluService.js",
@@ -30,6 +30,7 @@
30
30
  "author": "Squad Mini-apps",
31
31
  "license": "ISC",
32
32
  "devDependencies": {
33
+ "@types/node": "^18.11.9",
33
34
  "@types/jest": "^26.0.23",
34
35
  "jest": "^26.6.3",
35
36
  "ts-jest": "^26.5.5",