abmp-npm 1.8.13 → 1.8.15

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": "abmp-npm",
3
- "version": "1.8.13",
3
+ "version": "1.8.15",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1",
@@ -103,8 +103,13 @@ async function personalDetailsOnReady({
103
103
 
104
104
  // Main initialization
105
105
  console.log('memberTokenId', memberTokenId);
106
- console.log('baseUrl on api', wixLocation.baseUrl);
107
- console.log('memberTokenId on api', wixLocation.query);
106
+ console.log('baseUrl', baseUrl);
107
+
108
+ const memberTokenIdAPI = await wixLocation.query.then(query => query.token);
109
+ console.log('memberTokenIdAPI with await', memberTokenIdAPI);
110
+
111
+ const baseUrlAPI = await wixLocation.baseUrl;
112
+ console.log('baseUrlAPI with await', baseUrlAPI);
108
113
 
109
114
  if (!memberTokenId) {
110
115
  showUnauthorizedState();