@grabjs/superapp-sdk 1.7.23 → 1.7.24

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.
@@ -514,8 +514,8 @@ containerModule.getSessionParams().then(({ result, error }) => {
514
514
  if (result) {
515
515
  // Session params can be in any format (primitive, base64 encoded string, etc)
516
516
  // e.g. stringified JSON object '{"param1": 123, "param2": "grab-test"}'
517
- const sessionData = JSON.parse(result.sessionParams);
518
- console.log("Session parameters:", sessionData);
517
+ const sessionParams = JSON.parse(result);
518
+ console.log("Session parameters:", sessionParams);
519
519
  } else if (error) {
520
520
  // Some error happened.
521
521
  console.error("Error getting session params:", error);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@grabjs/superapp-sdk",
3
- "version": "1.7.23",
3
+ "version": "1.7.24",
4
4
  "description": "SDK for Grab SuperApp WebView.",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {