@balancy/wasm 1.0.25 → 1.0.26
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/dist/Balancy.wasm +0 -0
- package/dist/index.cjs.js +11 -3
- package/dist/index.es.js +11 -3
- package/dist/index.umd.js +11 -3
- package/dist/interfaces/core.interface.d.ts +3 -1
- package/dist/interfaces/core.interface.d.ts.map +1 -1
- package/dist/node/index.cjs.js +276 -122
- package/dist/node/index.es.js +276 -122
- package/dist/node/index.umd.js +276 -122
- package/package.json +1 -1
package/dist/node/index.umd.js
CHANGED
|
@@ -390,7 +390,7 @@
|
|
|
390
390
|
"__Z30jsbalancyDataObjectViewPreloadNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEN10emscripten3valE",
|
|
391
391
|
"_balancySetUnzipCallback",
|
|
392
392
|
"__Z23jsbalancyUnzipCompletedNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEES5_",
|
|
393
|
-
"
|
|
393
|
+
"__Z23jsbalancyWebViewRequestNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEN10emscripten3valE",
|
|
394
394
|
"_balancySetDataRequestedCallback",
|
|
395
395
|
"_balancyViewAllowOptimization",
|
|
396
396
|
"_balancyConfigLaunch",
|
|
@@ -419,6 +419,8 @@
|
|
|
419
419
|
"__Z35jsbalancyDailyBonus_claimNextRewardPN7Balancy4Data8BaseDataE",
|
|
420
420
|
"__Z38jsbalancyDailyBonus_canClaimNextRewardPN7Balancy4Data8BaseDataE",
|
|
421
421
|
"__Z47jsbalancyDailyBonus_getSecondsTillTheNextRewardPN7Balancy4Data8BaseDataE",
|
|
422
|
+
"__Z31jsbalancyBattlePass_claimRewardPN7Balancy4Data8BaseDataEi",
|
|
423
|
+
"__Z35jsbalancyBattlePass_getRewardStatusPN7Balancy4Data8BaseDataEi",
|
|
422
424
|
"__Z35jsbalancyOfferGroupInfo_CanPurchasePN7Balancy4Data8BaseDataEPNS_5Utils15JsonBasedObjectE",
|
|
423
425
|
"__Z51jsbalancyOfferInfo_GetSecondsLeftBeforeDeactivationPN7Balancy4Data8BaseDataE",
|
|
424
426
|
"__Z51jsbalancyEventInfo_GetSecondsLeftBeforeDeactivationPN7Balancy4Data8BaseDataE",
|
|
@@ -436,7 +438,7 @@
|
|
|
436
438
|
"__Z18jsbalancyGetStatusv",
|
|
437
439
|
"_balancyGetTimeOffset",
|
|
438
440
|
"_balancySetTimeOffset",
|
|
439
|
-
"
|
|
441
|
+
"__Z24jsbalancyGetParsedObjectPN7Balancy5Utils15JsonBasedObjectEib",
|
|
440
442
|
"_emscripten_websocket_on_connection_status",
|
|
441
443
|
"_emscripten_websocket_on_socketio_event",
|
|
442
444
|
"_emscripten_websocket_on_socketio_error",
|
|
@@ -516,19 +518,23 @@
|
|
|
516
518
|
"_balancyDailyBonus_claimNextReward",
|
|
517
519
|
"_balancyDailyBonus_canClaimNextReward",
|
|
518
520
|
"_balancyDailyBonus_getSecondsTillTheNextReward",
|
|
521
|
+
"_balancyBattlePass_claimReward",
|
|
522
|
+
"_balancyBattlePass_getRewardStatus",
|
|
519
523
|
"_balancySoftPurchaseStoreItem",
|
|
520
524
|
"_balancySoftPurchaseShopSlot",
|
|
521
525
|
"_balancySoftPurchaseGameOffer",
|
|
522
526
|
"_balancySoftPurchaseGameOfferGroup",
|
|
527
|
+
"__Z22_balancyWebViewRequestNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS_8functionIFvS5_EEE",
|
|
523
528
|
"_balancyWebViewRequest",
|
|
524
529
|
"_balancyGetProductsIdAndType",
|
|
525
530
|
"_balancyGetParsedObject",
|
|
526
|
-
"
|
|
527
|
-
"
|
|
528
|
-
"
|
|
529
|
-
"
|
|
530
|
-
"
|
|
531
|
-
"
|
|
531
|
+
"_js_call_typescript_bridge_connect",
|
|
532
|
+
"_js_call_typescript_bridge_disconnect",
|
|
533
|
+
"_js_call_typescript_bridge_is_connected",
|
|
534
|
+
"_js_call_typescript_bridge_subscribe",
|
|
535
|
+
"_js_call_typescript_bridge_send_message",
|
|
536
|
+
"_js_call_typescript_bridge_send_ack",
|
|
537
|
+
"_js_initialize_typescript_bridge",
|
|
532
538
|
"_main",
|
|
533
539
|
"onRuntimeInitialized"
|
|
534
540
|
].forEach(function(prop) {
|
|
@@ -1337,131 +1343,274 @@
|
|
|
1337
1343
|
invokeErrorCallback(-1, error.message, callbackPtr);
|
|
1338
1344
|
});
|
|
1339
1345
|
}
|
|
1340
|
-
function
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
Module: typeof Module !== "undefined" ? Object.keys(Module) : "undefined",
|
|
1352
|
-
windowModule: typeof window !== "undefined" && window.Module ? Object.keys(window.Module) : "undefined",
|
|
1353
|
-
globalThisModule: typeof globalThis !== "undefined" && globalThis.Module ? Object.keys(globalThis.Module) : "undefined"
|
|
1354
|
-
});
|
|
1355
|
-
return false;
|
|
1346
|
+
function js_call_typescript_bridge_connect(connectionId, url, authData) {
|
|
1347
|
+
if (typeof Module !== "undefined" && Module.typescript_websocket_connect_request) {
|
|
1348
|
+
try {
|
|
1349
|
+
var urlStr = UTF8ToString(url);
|
|
1350
|
+
var authStr = UTF8ToString(authData);
|
|
1351
|
+
console.log("[C++ -> TS Bridge] Connect request", connectionId, urlStr);
|
|
1352
|
+
Module.typescript_websocket_connect_request(connectionId, urlStr, authStr);
|
|
1353
|
+
return true;
|
|
1354
|
+
} catch (error) {
|
|
1355
|
+
console.error("[ERROR] calling typescript_websocket_connect_request via Module:", error);
|
|
1356
|
+
}
|
|
1356
1357
|
}
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
}
|
|
1365
|
-
console.error("
|
|
1366
|
-
}
|
|
1367
|
-
return true;
|
|
1368
|
-
} catch (error) {
|
|
1369
|
-
console.error("❌ js_websocket_connect error:", error);
|
|
1370
|
-
return false;
|
|
1358
|
+
if (typeof window !== "undefined" && window.Module && window.Module.typescript_websocket_connect_request) {
|
|
1359
|
+
try {
|
|
1360
|
+
var urlStr1 = UTF8ToString(url);
|
|
1361
|
+
var authStr1 = UTF8ToString(authData);
|
|
1362
|
+
console.log("[C++ -> TS Bridge] Connect request via window.Module", connectionId, urlStr1);
|
|
1363
|
+
window.Module.typescript_websocket_connect_request(connectionId, urlStr1, authStr1);
|
|
1364
|
+
return true;
|
|
1365
|
+
} catch (error) {
|
|
1366
|
+
console.error("[ERROR] calling typescript_websocket_connect_request via window.Module:", error);
|
|
1367
|
+
}
|
|
1371
1368
|
}
|
|
1369
|
+
if (typeof globalThis !== "undefined" && globalThis.Module && globalThis.Module.typescript_websocket_connect_request) {
|
|
1370
|
+
try {
|
|
1371
|
+
var urlStr2 = UTF8ToString(url);
|
|
1372
|
+
var authStr2 = UTF8ToString(authData);
|
|
1373
|
+
console.log("[C++ -> TS Bridge] Connect request via globalThis.Module", connectionId, urlStr2);
|
|
1374
|
+
globalThis.Module.typescript_websocket_connect_request(connectionId, urlStr2, authStr2);
|
|
1375
|
+
return true;
|
|
1376
|
+
} catch (error) {
|
|
1377
|
+
console.error("[ERROR] calling typescript_websocket_connect_request via globalThis.Module:", error);
|
|
1378
|
+
}
|
|
1379
|
+
}
|
|
1380
|
+
console.error("[ERROR] TypeScript WebSocket Bridge connect method not found. Available contexts:", {
|
|
1381
|
+
Module: typeof Module !== "undefined" ? Object.keys(Module).filter(function(k) {
|
|
1382
|
+
return k.includes("websocket") || k.includes("typescript");
|
|
1383
|
+
}) : "undefined",
|
|
1384
|
+
windowModule: typeof window !== "undefined" && window.Module ? Object.keys(window.Module).filter(function(k) {
|
|
1385
|
+
return k.includes("websocket") || k.includes("typescript");
|
|
1386
|
+
}) : "undefined",
|
|
1387
|
+
globalThisModule: typeof globalThis !== "undefined" && globalThis.Module ? Object.keys(globalThis.Module).filter(function(k) {
|
|
1388
|
+
return k.includes("websocket") || k.includes("typescript");
|
|
1389
|
+
}) : "undefined"
|
|
1390
|
+
});
|
|
1391
|
+
return false;
|
|
1372
1392
|
}
|
|
1373
|
-
function
|
|
1374
|
-
var
|
|
1375
|
-
if (typeof Module !== "undefined" && Module.
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1393
|
+
function js_call_typescript_bridge_disconnect(connectionId) {
|
|
1394
|
+
var success = false;
|
|
1395
|
+
if (typeof Module !== "undefined" && Module.typescript_websocket_disconnect_request) {
|
|
1396
|
+
try {
|
|
1397
|
+
console.log("[C++ -> TS Bridge] Disconnect request", connectionId);
|
|
1398
|
+
Module.typescript_websocket_disconnect_request(connectionId);
|
|
1399
|
+
success = true;
|
|
1400
|
+
} catch (error) {
|
|
1401
|
+
console.error("[ERROR] calling typescript_websocket_disconnect_request via Module:", error);
|
|
1402
|
+
}
|
|
1381
1403
|
}
|
|
1382
|
-
if (!
|
|
1383
|
-
|
|
1384
|
-
|
|
1404
|
+
if (!success && typeof window !== "undefined" && window.Module && window.Module.typescript_websocket_disconnect_request) {
|
|
1405
|
+
try {
|
|
1406
|
+
console.log("[C++ -> TS Bridge] Disconnect request via window.Module", connectionId);
|
|
1407
|
+
window.Module.typescript_websocket_disconnect_request(connectionId);
|
|
1408
|
+
success = true;
|
|
1409
|
+
} catch (error) {
|
|
1410
|
+
console.error("[ERROR] calling typescript_websocket_disconnect_request via window.Module:", error);
|
|
1411
|
+
}
|
|
1412
|
+
}
|
|
1413
|
+
if (!success && typeof globalThis !== "undefined" && globalThis.Module && globalThis.Module.typescript_websocket_disconnect_request) {
|
|
1414
|
+
try {
|
|
1415
|
+
console.log("[C++ -> TS Bridge] Disconnect request via globalThis.Module", connectionId);
|
|
1416
|
+
globalThis.Module.typescript_websocket_disconnect_request(connectionId);
|
|
1417
|
+
success = true;
|
|
1418
|
+
} catch (error) {
|
|
1419
|
+
console.error("[ERROR] calling typescript_websocket_disconnect_request via globalThis.Module:", error);
|
|
1420
|
+
}
|
|
1421
|
+
}
|
|
1422
|
+
if (!success) {
|
|
1423
|
+
console.error("[ERROR] TypeScript WebSocket Bridge disconnect method not found");
|
|
1385
1424
|
}
|
|
1386
|
-
console.log("🔌 C++ -> JS: Disconnecting WebSocket", connectionId);
|
|
1387
|
-
socketIOManager.disconnect(connectionId);
|
|
1388
1425
|
}
|
|
1389
|
-
function
|
|
1390
|
-
var
|
|
1391
|
-
if (typeof Module !== "undefined" && Module.
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1426
|
+
function js_call_typescript_bridge_subscribe(connectionId, eventName) {
|
|
1427
|
+
var success = false;
|
|
1428
|
+
if (typeof Module !== "undefined" && Module.typescript_websocket_subscribe_event) {
|
|
1429
|
+
try {
|
|
1430
|
+
var eventStr = UTF8ToString(eventName);
|
|
1431
|
+
console.log("[C++ -> TS Bridge] Subscribe event", connectionId, eventStr);
|
|
1432
|
+
Module.typescript_websocket_subscribe_event(connectionId, eventStr);
|
|
1433
|
+
success = true;
|
|
1434
|
+
} catch (error) {
|
|
1435
|
+
console.error("[ERROR] calling typescript_websocket_subscribe_event via Module:", error);
|
|
1436
|
+
}
|
|
1397
1437
|
}
|
|
1398
|
-
if (!
|
|
1399
|
-
|
|
1438
|
+
if (!success && typeof window !== "undefined" && window.Module && window.Module.typescript_websocket_subscribe_event) {
|
|
1439
|
+
try {
|
|
1440
|
+
var eventStr1 = UTF8ToString(eventName);
|
|
1441
|
+
console.log("[C++ -> TS Bridge] Subscribe event via window.Module", connectionId, eventStr1);
|
|
1442
|
+
window.Module.typescript_websocket_subscribe_event(connectionId, eventStr1);
|
|
1443
|
+
success = true;
|
|
1444
|
+
} catch (error) {
|
|
1445
|
+
console.error("[ERROR] calling typescript_websocket_subscribe_event via window.Module:", error);
|
|
1446
|
+
}
|
|
1447
|
+
}
|
|
1448
|
+
if (!success && typeof globalThis !== "undefined" && globalThis.Module && globalThis.Module.typescript_websocket_subscribe_event) {
|
|
1449
|
+
try {
|
|
1450
|
+
var eventStr2 = UTF8ToString(eventName);
|
|
1451
|
+
console.log("[C++ -> TS Bridge] Subscribe event via globalThis.Module", connectionId, eventStr2);
|
|
1452
|
+
globalThis.Module.typescript_websocket_subscribe_event(connectionId, eventStr2);
|
|
1453
|
+
success = true;
|
|
1454
|
+
} catch (error) {
|
|
1455
|
+
console.error("[ERROR] calling typescript_websocket_subscribe_event via globalThis.Module:", error);
|
|
1456
|
+
}
|
|
1457
|
+
}
|
|
1458
|
+
if (!success) {
|
|
1459
|
+
console.error("[ERROR] TypeScript WebSocket Bridge subscribe method not found");
|
|
1400
1460
|
}
|
|
1401
|
-
return socketIOManager.isConnected(connectionId);
|
|
1402
1461
|
}
|
|
1403
|
-
function
|
|
1404
|
-
var
|
|
1405
|
-
if (typeof Module !== "undefined" && Module.
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1462
|
+
function js_call_typescript_bridge_send_message(connectionId, eventName, data) {
|
|
1463
|
+
var success = false;
|
|
1464
|
+
if (typeof Module !== "undefined" && Module.typescript_websocket_send_message) {
|
|
1465
|
+
try {
|
|
1466
|
+
var eventStr = UTF8ToString(eventName);
|
|
1467
|
+
var dataStr = UTF8ToString(data);
|
|
1468
|
+
console.log("[C++ -> TS Bridge] Send message", connectionId, eventStr);
|
|
1469
|
+
Module.typescript_websocket_send_message(connectionId, eventStr, dataStr);
|
|
1470
|
+
success = true;
|
|
1471
|
+
} catch (error) {
|
|
1472
|
+
console.error("[ERROR] calling typescript_websocket_send_message via Module:", error);
|
|
1473
|
+
}
|
|
1411
1474
|
}
|
|
1412
|
-
if (!
|
|
1413
|
-
|
|
1414
|
-
|
|
1475
|
+
if (!success && typeof window !== "undefined" && window.Module && window.Module.typescript_websocket_send_message) {
|
|
1476
|
+
try {
|
|
1477
|
+
var eventStr1 = UTF8ToString(eventName);
|
|
1478
|
+
var dataStr1 = UTF8ToString(data);
|
|
1479
|
+
console.log("[C++ -> TS Bridge] Send message via window.Module", connectionId, eventStr1);
|
|
1480
|
+
window.Module.typescript_websocket_send_message(connectionId, eventStr1, dataStr1);
|
|
1481
|
+
success = true;
|
|
1482
|
+
} catch (error) {
|
|
1483
|
+
console.error("[ERROR] calling typescript_websocket_send_message via window.Module:", error);
|
|
1484
|
+
}
|
|
1415
1485
|
}
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1486
|
+
if (!success && typeof globalThis !== "undefined" && globalThis.Module && globalThis.Module.typescript_websocket_send_message) {
|
|
1487
|
+
try {
|
|
1488
|
+
var eventStr2 = UTF8ToString(eventName);
|
|
1489
|
+
var dataStr2 = UTF8ToString(data);
|
|
1490
|
+
console.log("[C++ -> TS Bridge] Send message via globalThis.Module", connectionId, eventStr2);
|
|
1491
|
+
globalThis.Module.typescript_websocket_send_message(connectionId, eventStr2, dataStr2);
|
|
1492
|
+
success = true;
|
|
1493
|
+
} catch (error) {
|
|
1494
|
+
console.error("[ERROR] calling typescript_websocket_send_message via globalThis.Module:", error);
|
|
1495
|
+
}
|
|
1496
|
+
}
|
|
1497
|
+
if (!success) {
|
|
1498
|
+
console.error("[ERROR] TypeScript WebSocket Bridge send message method not found");
|
|
1422
1499
|
}
|
|
1423
1500
|
}
|
|
1424
|
-
function
|
|
1425
|
-
var
|
|
1426
|
-
if (typeof Module !== "undefined" && Module.
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1501
|
+
function js_call_typescript_bridge_send_ack(connectionId, ackId, responseData) {
|
|
1502
|
+
var success = false;
|
|
1503
|
+
if (typeof Module !== "undefined" && Module.typescript_websocket_send_ack) {
|
|
1504
|
+
try {
|
|
1505
|
+
var responseStr = UTF8ToString(responseData);
|
|
1506
|
+
console.log("[C++ -> TS Bridge] Send ack", connectionId, ackId);
|
|
1507
|
+
Module.typescript_websocket_send_ack(connectionId, ackId, responseStr);
|
|
1508
|
+
success = true;
|
|
1509
|
+
} catch (error) {
|
|
1510
|
+
console.error("[ERROR] calling typescript_websocket_send_ack via Module:", error);
|
|
1511
|
+
}
|
|
1432
1512
|
}
|
|
1433
|
-
if (!
|
|
1434
|
-
|
|
1435
|
-
|
|
1513
|
+
if (!success && typeof window !== "undefined" && window.Module && window.Module.typescript_websocket_send_ack) {
|
|
1514
|
+
try {
|
|
1515
|
+
var responseStr1 = UTF8ToString(responseData);
|
|
1516
|
+
console.log("[C++ -> TS Bridge] Send ack via window.Module", connectionId, ackId);
|
|
1517
|
+
window.Module.typescript_websocket_send_ack(connectionId, ackId, responseStr1);
|
|
1518
|
+
success = true;
|
|
1519
|
+
} catch (error) {
|
|
1520
|
+
console.error("[ERROR] calling typescript_websocket_send_ack via window.Module:", error);
|
|
1521
|
+
}
|
|
1436
1522
|
}
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1523
|
+
if (!success && typeof globalThis !== "undefined" && globalThis.Module && globalThis.Module.typescript_websocket_send_ack) {
|
|
1524
|
+
try {
|
|
1525
|
+
var responseStr2 = UTF8ToString(responseData);
|
|
1526
|
+
console.log("[C++ -> TS Bridge] Send ack via globalThis.Module", connectionId, ackId);
|
|
1527
|
+
globalThis.Module.typescript_websocket_send_ack(connectionId, ackId, responseStr2);
|
|
1528
|
+
success = true;
|
|
1529
|
+
} catch (error) {
|
|
1530
|
+
console.error("[ERROR] calling typescript_websocket_send_ack via globalThis.Module:", error);
|
|
1531
|
+
}
|
|
1532
|
+
}
|
|
1533
|
+
if (!success) {
|
|
1534
|
+
console.error("[ERROR] TypeScript WebSocket Bridge send ack method not found");
|
|
1444
1535
|
}
|
|
1445
1536
|
}
|
|
1446
|
-
function
|
|
1447
|
-
|
|
1448
|
-
if (typeof
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1537
|
+
function js_initialize_typescript_bridge() {
|
|
1538
|
+
console.log("[INIT] Initializing TypeScript WebSocket Bridge integration...");
|
|
1539
|
+
if (typeof window !== "undefined" && window.initializeTypeScriptWebSocketBridge) {
|
|
1540
|
+
try {
|
|
1541
|
+
window.initializeTypeScriptWebSocketBridge();
|
|
1542
|
+
console.log("[SUCCESS] TypeScript WebSocket Bridge initialized via window");
|
|
1543
|
+
} catch (error) {
|
|
1544
|
+
console.warn("[WARNING] Failed to initialize bridge via window:", error);
|
|
1545
|
+
}
|
|
1454
1546
|
}
|
|
1455
|
-
if (
|
|
1456
|
-
|
|
1457
|
-
|
|
1547
|
+
if (typeof globalThis !== "undefined" && globalThis.initializeTypeScriptWebSocketBridge) {
|
|
1548
|
+
try {
|
|
1549
|
+
globalThis.initializeTypeScriptWebSocketBridge();
|
|
1550
|
+
console.log("[SUCCESS] TypeScript WebSocket Bridge initialized via globalThis");
|
|
1551
|
+
} catch (error) {
|
|
1552
|
+
console.warn("[WARNING] Failed to initialize bridge via globalThis:", error);
|
|
1553
|
+
}
|
|
1458
1554
|
}
|
|
1555
|
+
var bridgeMethods = [
|
|
1556
|
+
"typescript_websocket_connect_request",
|
|
1557
|
+
"typescript_websocket_disconnect_request",
|
|
1558
|
+
"typescript_websocket_subscribe_event",
|
|
1559
|
+
"typescript_websocket_send_message",
|
|
1560
|
+
"typescript_websocket_send_ack"
|
|
1561
|
+
];
|
|
1562
|
+
var bridgeFound = false;
|
|
1563
|
+
var contexts = [];
|
|
1564
|
+
if (typeof Module !== "undefined") {
|
|
1565
|
+
contexts.push({
|
|
1566
|
+
name: "Module",
|
|
1567
|
+
obj: Module
|
|
1568
|
+
});
|
|
1569
|
+
}
|
|
1570
|
+
if (typeof window !== "undefined" && window.Module) {
|
|
1571
|
+
contexts.push({
|
|
1572
|
+
name: "window.Module",
|
|
1573
|
+
obj: window.Module
|
|
1574
|
+
});
|
|
1575
|
+
}
|
|
1576
|
+
if (typeof globalThis !== "undefined" && globalThis.Module) {
|
|
1577
|
+
contexts.push({
|
|
1578
|
+
name: "globalThis.Module",
|
|
1579
|
+
obj: globalThis.Module
|
|
1580
|
+
});
|
|
1581
|
+
}
|
|
1582
|
+
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
1459
1583
|
try {
|
|
1460
|
-
var
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1584
|
+
var _loop = function() {
|
|
1585
|
+
var context = _step.value;
|
|
1586
|
+
var availableMethods = bridgeMethods.filter(function(method) {
|
|
1587
|
+
return typeof context.obj[method] === "function";
|
|
1588
|
+
});
|
|
1589
|
+
if (availableMethods.length > 0) {
|
|
1590
|
+
console.log("[SUCCESS] Bridge methods found in " + context.name + ": " + availableMethods.join(", "));
|
|
1591
|
+
bridgeFound = true;
|
|
1592
|
+
}
|
|
1593
|
+
};
|
|
1594
|
+
for(var _iterator = contexts[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true)_loop();
|
|
1595
|
+
} catch (err) {
|
|
1596
|
+
_didIteratorError = true;
|
|
1597
|
+
_iteratorError = err;
|
|
1598
|
+
} finally{
|
|
1599
|
+
try {
|
|
1600
|
+
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
1601
|
+
_iterator.return();
|
|
1602
|
+
}
|
|
1603
|
+
} finally{
|
|
1604
|
+
if (_didIteratorError) {
|
|
1605
|
+
throw _iteratorError;
|
|
1606
|
+
}
|
|
1607
|
+
}
|
|
1608
|
+
}
|
|
1609
|
+
if (!bridgeFound) {
|
|
1610
|
+
console.warn("[WARNING] No TypeScript WebSocket Bridge methods found in any context");
|
|
1611
|
+
console.log("Available in Module:", typeof Module !== "undefined" ? Object.keys(Module).filter(function(k) {
|
|
1612
|
+
return k.includes("websocket") || k.includes("typescript");
|
|
1613
|
+
}) : "undefined");
|
|
1465
1614
|
}
|
|
1466
1615
|
}
|
|
1467
1616
|
var ExitStatus = function ExitStatus(status) {
|
|
@@ -7381,13 +7530,13 @@
|
|
|
7381
7530
|
invoke_viiiiiiiiii: invoke_viiiiiiiiii,
|
|
7382
7531
|
invoke_viiiiiiiiiiiiiii: invoke_viiiiiiiiiiiiiii,
|
|
7383
7532
|
invoke_viijii: invoke_viijii,
|
|
7533
|
+
js_call_typescript_bridge_connect: js_call_typescript_bridge_connect,
|
|
7534
|
+
js_call_typescript_bridge_disconnect: js_call_typescript_bridge_disconnect,
|
|
7535
|
+
js_call_typescript_bridge_send_ack: js_call_typescript_bridge_send_ack,
|
|
7536
|
+
js_call_typescript_bridge_send_message: js_call_typescript_bridge_send_message,
|
|
7537
|
+
js_call_typescript_bridge_subscribe: js_call_typescript_bridge_subscribe,
|
|
7384
7538
|
js_fetch: js_fetch,
|
|
7385
|
-
|
|
7386
|
-
js_websocket_disconnect: js_websocket_disconnect,
|
|
7387
|
-
js_websocket_is_connected: js_websocket_is_connected,
|
|
7388
|
-
js_websocket_send_ack: js_websocket_send_ack,
|
|
7389
|
-
js_websocket_send_message: js_websocket_send_message,
|
|
7390
|
-
js_websocket_subscribe: js_websocket_subscribe,
|
|
7539
|
+
js_initialize_typescript_bridge: js_initialize_typescript_bridge,
|
|
7391
7540
|
random_get: _random_get
|
|
7392
7541
|
};
|
|
7393
7542
|
var wasmExports;
|
|
@@ -7438,7 +7587,7 @@
|
|
|
7438
7587
|
Module["__Z30jsbalancyDataObjectViewPreloadNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEN10emscripten3valE"] = createExportWrapper("_Z30jsbalancyDataObjectViewPreloadNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEN10emscripten3valE", 2);
|
|
7439
7588
|
Module["_balancySetUnzipCallback"] = createExportWrapper("balancySetUnzipCallback", 1);
|
|
7440
7589
|
Module["__Z23jsbalancyUnzipCompletedNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEES5_"] = createExportWrapper("_Z23jsbalancyUnzipCompletedNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEES5_", 2);
|
|
7441
|
-
Module["
|
|
7590
|
+
Module["__Z23jsbalancyWebViewRequestNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEN10emscripten3valE"] = createExportWrapper("_Z23jsbalancyWebViewRequestNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEN10emscripten3valE", 2);
|
|
7442
7591
|
Module["_balancySetDataRequestedCallback"] = createExportWrapper("balancySetDataRequestedCallback", 1);
|
|
7443
7592
|
Module["_balancyViewAllowOptimization"] = createExportWrapper("balancyViewAllowOptimization", 1);
|
|
7444
7593
|
Module["_balancyConfigLaunch"] = createExportWrapper("balancyConfigLaunch", 1);
|
|
@@ -7467,6 +7616,8 @@
|
|
|
7467
7616
|
Module["__Z35jsbalancyDailyBonus_claimNextRewardPN7Balancy4Data8BaseDataE"] = createExportWrapper("_Z35jsbalancyDailyBonus_claimNextRewardPN7Balancy4Data8BaseDataE", 1);
|
|
7468
7617
|
Module["__Z38jsbalancyDailyBonus_canClaimNextRewardPN7Balancy4Data8BaseDataE"] = createExportWrapper("_Z38jsbalancyDailyBonus_canClaimNextRewardPN7Balancy4Data8BaseDataE", 1);
|
|
7469
7618
|
Module["__Z47jsbalancyDailyBonus_getSecondsTillTheNextRewardPN7Balancy4Data8BaseDataE"] = createExportWrapper("_Z47jsbalancyDailyBonus_getSecondsTillTheNextRewardPN7Balancy4Data8BaseDataE", 1);
|
|
7619
|
+
Module["__Z31jsbalancyBattlePass_claimRewardPN7Balancy4Data8BaseDataEi"] = createExportWrapper("_Z31jsbalancyBattlePass_claimRewardPN7Balancy4Data8BaseDataEi", 2);
|
|
7620
|
+
Module["__Z35jsbalancyBattlePass_getRewardStatusPN7Balancy4Data8BaseDataEi"] = createExportWrapper("_Z35jsbalancyBattlePass_getRewardStatusPN7Balancy4Data8BaseDataEi", 2);
|
|
7470
7621
|
Module["__Z35jsbalancyOfferGroupInfo_CanPurchasePN7Balancy4Data8BaseDataEPNS_5Utils15JsonBasedObjectE"] = createExportWrapper("_Z35jsbalancyOfferGroupInfo_CanPurchasePN7Balancy4Data8BaseDataEPNS_5Utils15JsonBasedObjectE", 2);
|
|
7471
7622
|
Module["__Z51jsbalancyOfferInfo_GetSecondsLeftBeforeDeactivationPN7Balancy4Data8BaseDataE"] = createExportWrapper("_Z51jsbalancyOfferInfo_GetSecondsLeftBeforeDeactivationPN7Balancy4Data8BaseDataE", 1);
|
|
7472
7623
|
Module["__Z51jsbalancyEventInfo_GetSecondsLeftBeforeDeactivationPN7Balancy4Data8BaseDataE"] = createExportWrapper("_Z51jsbalancyEventInfo_GetSecondsLeftBeforeDeactivationPN7Balancy4Data8BaseDataE", 1);
|
|
@@ -7484,7 +7635,7 @@
|
|
|
7484
7635
|
Module["__Z18jsbalancyGetStatusv"] = createExportWrapper("_Z18jsbalancyGetStatusv", 0);
|
|
7485
7636
|
Module["_balancyGetTimeOffset"] = createExportWrapper("balancyGetTimeOffset", 0);
|
|
7486
7637
|
Module["_balancySetTimeOffset"] = createExportWrapper("balancySetTimeOffset", 1);
|
|
7487
|
-
Module["
|
|
7638
|
+
Module["__Z24jsbalancyGetParsedObjectPN7Balancy5Utils15JsonBasedObjectEib"] = createExportWrapper("_Z24jsbalancyGetParsedObjectPN7Balancy5Utils15JsonBasedObjectEib", 4);
|
|
7488
7639
|
Module["_emscripten_websocket_on_connection_status"] = createExportWrapper("emscripten_websocket_on_connection_status", 3);
|
|
7489
7640
|
Module["_emscripten_websocket_on_socketio_event"] = createExportWrapper("emscripten_websocket_on_socketio_event", 5);
|
|
7490
7641
|
Module["_emscripten_websocket_on_socketio_error"] = createExportWrapper("emscripten_websocket_on_socketio_error", 3);
|
|
@@ -7566,13 +7717,16 @@
|
|
|
7566
7717
|
Module["_balancyDailyBonus_claimNextReward"] = createExportWrapper("balancyDailyBonus_claimNextReward", 1);
|
|
7567
7718
|
Module["_balancyDailyBonus_canClaimNextReward"] = createExportWrapper("balancyDailyBonus_canClaimNextReward", 1);
|
|
7568
7719
|
Module["_balancyDailyBonus_getSecondsTillTheNextReward"] = createExportWrapper("balancyDailyBonus_getSecondsTillTheNextReward", 1);
|
|
7720
|
+
Module["_balancyBattlePass_claimReward"] = createExportWrapper("balancyBattlePass_claimReward", 2);
|
|
7721
|
+
Module["_balancyBattlePass_getRewardStatus"] = createExportWrapper("balancyBattlePass_getRewardStatus", 2);
|
|
7569
7722
|
Module["_balancySoftPurchaseStoreItem"] = createExportWrapper("balancySoftPurchaseStoreItem", 1);
|
|
7570
7723
|
Module["_balancySoftPurchaseShopSlot"] = createExportWrapper("balancySoftPurchaseShopSlot", 1);
|
|
7571
7724
|
Module["_balancySoftPurchaseGameOffer"] = createExportWrapper("balancySoftPurchaseGameOffer", 1);
|
|
7572
7725
|
Module["_balancySoftPurchaseGameOfferGroup"] = createExportWrapper("balancySoftPurchaseGameOfferGroup", 2);
|
|
7726
|
+
Module["__Z22_balancyWebViewRequestNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS_8functionIFvS5_EEE"] = createExportWrapper("_Z22_balancyWebViewRequestNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS_8functionIFvS5_EEE", 2);
|
|
7573
7727
|
Module["_balancyWebViewRequest"] = createExportWrapper("balancyWebViewRequest", 1);
|
|
7574
7728
|
Module["_balancyGetProductsIdAndType"] = createExportWrapper("balancyGetProductsIdAndType", 1);
|
|
7575
|
-
Module["_balancyGetParsedObject"] = createExportWrapper("balancyGetParsedObject",
|
|
7729
|
+
Module["_balancyGetParsedObject"] = createExportWrapper("balancyGetParsedObject", 3);
|
|
7576
7730
|
var _fflush = createExportWrapper("fflush", 1);
|
|
7577
7731
|
var _strerror = createExportWrapper("strerror", 1);
|
|
7578
7732
|
var _setThrew = createExportWrapper("setThrew", 2);
|