@ikas/app-helpers
Advanced tools
Comparing version 1.0.3 to 1.0.4
@@ -87,6 +87,7 @@ "use strict"; | ||
return new Promise((resolve, reject) => { | ||
const timer = setTimeout(() => reject('Timed out'), 5000); | ||
const timer = setTimeout(() => reject('Timed out'), 30000); | ||
try { | ||
const callback = (msg) => { | ||
var _a, _b, _c; | ||
console.log('msg', msg); | ||
if (((_a = msg.data) === null || _a === void 0 ? void 0 : _a.type) === AppBridgeCallbackMessageType.AUTHORIZED_APP_ID_RESPONSE) { | ||
@@ -93,0 +94,0 @@ const authorizedAppId = (_c = (_b = msg.data) === null || _b === void 0 ? void 0 : _b.data) === null || _c === void 0 ? void 0 : _c.authorizedAppId; |
{ | ||
"name": "@ikas/app-helpers", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "ikas store app helpers", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -101,5 +101,6 @@ export class AppBridgeHelper { | ||
return new Promise((resolve, reject) => { | ||
const timer = setTimeout(() => reject('Timed out'), 5000); | ||
const timer = setTimeout(() => reject('Timed out'), 30000); | ||
try { | ||
const callback = (msg: MessageEvent) => { | ||
console.log('msg', msg) | ||
if (msg.data?.type === AppBridgeCallbackMessageType.AUTHORIZED_APP_ID_RESPONSE) { | ||
@@ -106,0 +107,0 @@ const authorizedAppId = msg.data?.data?.authorizedAppId; |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
24878
414