@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.es.js
CHANGED
|
@@ -385,7 +385,7 @@ var Balancy = function() {
|
|
|
385
385
|
"__Z30jsbalancyDataObjectViewPreloadNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEN10emscripten3valE",
|
|
386
386
|
"_balancySetUnzipCallback",
|
|
387
387
|
"__Z23jsbalancyUnzipCompletedNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEES5_",
|
|
388
|
-
"
|
|
388
|
+
"__Z23jsbalancyWebViewRequestNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEN10emscripten3valE",
|
|
389
389
|
"_balancySetDataRequestedCallback",
|
|
390
390
|
"_balancyViewAllowOptimization",
|
|
391
391
|
"_balancyConfigLaunch",
|
|
@@ -414,6 +414,8 @@ var Balancy = function() {
|
|
|
414
414
|
"__Z35jsbalancyDailyBonus_claimNextRewardPN7Balancy4Data8BaseDataE",
|
|
415
415
|
"__Z38jsbalancyDailyBonus_canClaimNextRewardPN7Balancy4Data8BaseDataE",
|
|
416
416
|
"__Z47jsbalancyDailyBonus_getSecondsTillTheNextRewardPN7Balancy4Data8BaseDataE",
|
|
417
|
+
"__Z31jsbalancyBattlePass_claimRewardPN7Balancy4Data8BaseDataEi",
|
|
418
|
+
"__Z35jsbalancyBattlePass_getRewardStatusPN7Balancy4Data8BaseDataEi",
|
|
417
419
|
"__Z35jsbalancyOfferGroupInfo_CanPurchasePN7Balancy4Data8BaseDataEPNS_5Utils15JsonBasedObjectE",
|
|
418
420
|
"__Z51jsbalancyOfferInfo_GetSecondsLeftBeforeDeactivationPN7Balancy4Data8BaseDataE",
|
|
419
421
|
"__Z51jsbalancyEventInfo_GetSecondsLeftBeforeDeactivationPN7Balancy4Data8BaseDataE",
|
|
@@ -431,7 +433,7 @@ var Balancy = function() {
|
|
|
431
433
|
"__Z18jsbalancyGetStatusv",
|
|
432
434
|
"_balancyGetTimeOffset",
|
|
433
435
|
"_balancySetTimeOffset",
|
|
434
|
-
"
|
|
436
|
+
"__Z24jsbalancyGetParsedObjectPN7Balancy5Utils15JsonBasedObjectEib",
|
|
435
437
|
"_emscripten_websocket_on_connection_status",
|
|
436
438
|
"_emscripten_websocket_on_socketio_event",
|
|
437
439
|
"_emscripten_websocket_on_socketio_error",
|
|
@@ -511,19 +513,23 @@ var Balancy = function() {
|
|
|
511
513
|
"_balancyDailyBonus_claimNextReward",
|
|
512
514
|
"_balancyDailyBonus_canClaimNextReward",
|
|
513
515
|
"_balancyDailyBonus_getSecondsTillTheNextReward",
|
|
516
|
+
"_balancyBattlePass_claimReward",
|
|
517
|
+
"_balancyBattlePass_getRewardStatus",
|
|
514
518
|
"_balancySoftPurchaseStoreItem",
|
|
515
519
|
"_balancySoftPurchaseShopSlot",
|
|
516
520
|
"_balancySoftPurchaseGameOffer",
|
|
517
521
|
"_balancySoftPurchaseGameOfferGroup",
|
|
522
|
+
"__Z22_balancyWebViewRequestNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS_8functionIFvS5_EEE",
|
|
518
523
|
"_balancyWebViewRequest",
|
|
519
524
|
"_balancyGetProductsIdAndType",
|
|
520
525
|
"_balancyGetParsedObject",
|
|
521
|
-
"
|
|
522
|
-
"
|
|
523
|
-
"
|
|
524
|
-
"
|
|
525
|
-
"
|
|
526
|
-
"
|
|
526
|
+
"_js_call_typescript_bridge_connect",
|
|
527
|
+
"_js_call_typescript_bridge_disconnect",
|
|
528
|
+
"_js_call_typescript_bridge_is_connected",
|
|
529
|
+
"_js_call_typescript_bridge_subscribe",
|
|
530
|
+
"_js_call_typescript_bridge_send_message",
|
|
531
|
+
"_js_call_typescript_bridge_send_ack",
|
|
532
|
+
"_js_initialize_typescript_bridge",
|
|
527
533
|
"_main",
|
|
528
534
|
"onRuntimeInitialized"
|
|
529
535
|
].forEach(function(prop) {
|
|
@@ -1332,131 +1338,274 @@ var Balancy = function() {
|
|
|
1332
1338
|
invokeErrorCallback(-1, error.message, callbackPtr);
|
|
1333
1339
|
});
|
|
1334
1340
|
}
|
|
1335
|
-
function
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
Module: typeof Module !== "undefined" ? Object.keys(Module) : "undefined",
|
|
1347
|
-
windowModule: typeof window !== "undefined" && window.Module ? Object.keys(window.Module) : "undefined",
|
|
1348
|
-
globalThisModule: typeof globalThis !== "undefined" && globalThis.Module ? Object.keys(globalThis.Module) : "undefined"
|
|
1349
|
-
});
|
|
1350
|
-
return false;
|
|
1341
|
+
function js_call_typescript_bridge_connect(connectionId, url, authData) {
|
|
1342
|
+
if (typeof Module !== "undefined" && Module.typescript_websocket_connect_request) {
|
|
1343
|
+
try {
|
|
1344
|
+
var urlStr = UTF8ToString(url);
|
|
1345
|
+
var authStr = UTF8ToString(authData);
|
|
1346
|
+
console.log("[C++ -> TS Bridge] Connect request", connectionId, urlStr);
|
|
1347
|
+
Module.typescript_websocket_connect_request(connectionId, urlStr, authStr);
|
|
1348
|
+
return true;
|
|
1349
|
+
} catch (error) {
|
|
1350
|
+
console.error("[ERROR] calling typescript_websocket_connect_request via Module:", error);
|
|
1351
|
+
}
|
|
1351
1352
|
}
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
}
|
|
1360
|
-
console.error("
|
|
1361
|
-
}
|
|
1362
|
-
return true;
|
|
1363
|
-
} catch (error) {
|
|
1364
|
-
console.error("❌ js_websocket_connect error:", error);
|
|
1365
|
-
return false;
|
|
1353
|
+
if (typeof window !== "undefined" && window.Module && window.Module.typescript_websocket_connect_request) {
|
|
1354
|
+
try {
|
|
1355
|
+
var urlStr1 = UTF8ToString(url);
|
|
1356
|
+
var authStr1 = UTF8ToString(authData);
|
|
1357
|
+
console.log("[C++ -> TS Bridge] Connect request via window.Module", connectionId, urlStr1);
|
|
1358
|
+
window.Module.typescript_websocket_connect_request(connectionId, urlStr1, authStr1);
|
|
1359
|
+
return true;
|
|
1360
|
+
} catch (error) {
|
|
1361
|
+
console.error("[ERROR] calling typescript_websocket_connect_request via window.Module:", error);
|
|
1362
|
+
}
|
|
1366
1363
|
}
|
|
1364
|
+
if (typeof globalThis !== "undefined" && globalThis.Module && globalThis.Module.typescript_websocket_connect_request) {
|
|
1365
|
+
try {
|
|
1366
|
+
var urlStr2 = UTF8ToString(url);
|
|
1367
|
+
var authStr2 = UTF8ToString(authData);
|
|
1368
|
+
console.log("[C++ -> TS Bridge] Connect request via globalThis.Module", connectionId, urlStr2);
|
|
1369
|
+
globalThis.Module.typescript_websocket_connect_request(connectionId, urlStr2, authStr2);
|
|
1370
|
+
return true;
|
|
1371
|
+
} catch (error) {
|
|
1372
|
+
console.error("[ERROR] calling typescript_websocket_connect_request via globalThis.Module:", error);
|
|
1373
|
+
}
|
|
1374
|
+
}
|
|
1375
|
+
console.error("[ERROR] TypeScript WebSocket Bridge connect method not found. Available contexts:", {
|
|
1376
|
+
Module: typeof Module !== "undefined" ? Object.keys(Module).filter(function(k) {
|
|
1377
|
+
return k.includes("websocket") || k.includes("typescript");
|
|
1378
|
+
}) : "undefined",
|
|
1379
|
+
windowModule: typeof window !== "undefined" && window.Module ? Object.keys(window.Module).filter(function(k) {
|
|
1380
|
+
return k.includes("websocket") || k.includes("typescript");
|
|
1381
|
+
}) : "undefined",
|
|
1382
|
+
globalThisModule: typeof globalThis !== "undefined" && globalThis.Module ? Object.keys(globalThis.Module).filter(function(k) {
|
|
1383
|
+
return k.includes("websocket") || k.includes("typescript");
|
|
1384
|
+
}) : "undefined"
|
|
1385
|
+
});
|
|
1386
|
+
return false;
|
|
1367
1387
|
}
|
|
1368
|
-
function
|
|
1369
|
-
var
|
|
1370
|
-
if (typeof Module !== "undefined" && Module.
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1388
|
+
function js_call_typescript_bridge_disconnect(connectionId) {
|
|
1389
|
+
var success = false;
|
|
1390
|
+
if (typeof Module !== "undefined" && Module.typescript_websocket_disconnect_request) {
|
|
1391
|
+
try {
|
|
1392
|
+
console.log("[C++ -> TS Bridge] Disconnect request", connectionId);
|
|
1393
|
+
Module.typescript_websocket_disconnect_request(connectionId);
|
|
1394
|
+
success = true;
|
|
1395
|
+
} catch (error) {
|
|
1396
|
+
console.error("[ERROR] calling typescript_websocket_disconnect_request via Module:", error);
|
|
1397
|
+
}
|
|
1376
1398
|
}
|
|
1377
|
-
if (!
|
|
1378
|
-
|
|
1379
|
-
|
|
1399
|
+
if (!success && typeof window !== "undefined" && window.Module && window.Module.typescript_websocket_disconnect_request) {
|
|
1400
|
+
try {
|
|
1401
|
+
console.log("[C++ -> TS Bridge] Disconnect request via window.Module", connectionId);
|
|
1402
|
+
window.Module.typescript_websocket_disconnect_request(connectionId);
|
|
1403
|
+
success = true;
|
|
1404
|
+
} catch (error) {
|
|
1405
|
+
console.error("[ERROR] calling typescript_websocket_disconnect_request via window.Module:", error);
|
|
1406
|
+
}
|
|
1407
|
+
}
|
|
1408
|
+
if (!success && typeof globalThis !== "undefined" && globalThis.Module && globalThis.Module.typescript_websocket_disconnect_request) {
|
|
1409
|
+
try {
|
|
1410
|
+
console.log("[C++ -> TS Bridge] Disconnect request via globalThis.Module", connectionId);
|
|
1411
|
+
globalThis.Module.typescript_websocket_disconnect_request(connectionId);
|
|
1412
|
+
success = true;
|
|
1413
|
+
} catch (error) {
|
|
1414
|
+
console.error("[ERROR] calling typescript_websocket_disconnect_request via globalThis.Module:", error);
|
|
1415
|
+
}
|
|
1416
|
+
}
|
|
1417
|
+
if (!success) {
|
|
1418
|
+
console.error("[ERROR] TypeScript WebSocket Bridge disconnect method not found");
|
|
1380
1419
|
}
|
|
1381
|
-
console.log("🔌 C++ -> JS: Disconnecting WebSocket", connectionId);
|
|
1382
|
-
socketIOManager.disconnect(connectionId);
|
|
1383
1420
|
}
|
|
1384
|
-
function
|
|
1385
|
-
var
|
|
1386
|
-
if (typeof Module !== "undefined" && Module.
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1421
|
+
function js_call_typescript_bridge_subscribe(connectionId, eventName) {
|
|
1422
|
+
var success = false;
|
|
1423
|
+
if (typeof Module !== "undefined" && Module.typescript_websocket_subscribe_event) {
|
|
1424
|
+
try {
|
|
1425
|
+
var eventStr = UTF8ToString(eventName);
|
|
1426
|
+
console.log("[C++ -> TS Bridge] Subscribe event", connectionId, eventStr);
|
|
1427
|
+
Module.typescript_websocket_subscribe_event(connectionId, eventStr);
|
|
1428
|
+
success = true;
|
|
1429
|
+
} catch (error) {
|
|
1430
|
+
console.error("[ERROR] calling typescript_websocket_subscribe_event via Module:", error);
|
|
1431
|
+
}
|
|
1392
1432
|
}
|
|
1393
|
-
if (!
|
|
1394
|
-
|
|
1433
|
+
if (!success && typeof window !== "undefined" && window.Module && window.Module.typescript_websocket_subscribe_event) {
|
|
1434
|
+
try {
|
|
1435
|
+
var eventStr1 = UTF8ToString(eventName);
|
|
1436
|
+
console.log("[C++ -> TS Bridge] Subscribe event via window.Module", connectionId, eventStr1);
|
|
1437
|
+
window.Module.typescript_websocket_subscribe_event(connectionId, eventStr1);
|
|
1438
|
+
success = true;
|
|
1439
|
+
} catch (error) {
|
|
1440
|
+
console.error("[ERROR] calling typescript_websocket_subscribe_event via window.Module:", error);
|
|
1441
|
+
}
|
|
1442
|
+
}
|
|
1443
|
+
if (!success && typeof globalThis !== "undefined" && globalThis.Module && globalThis.Module.typescript_websocket_subscribe_event) {
|
|
1444
|
+
try {
|
|
1445
|
+
var eventStr2 = UTF8ToString(eventName);
|
|
1446
|
+
console.log("[C++ -> TS Bridge] Subscribe event via globalThis.Module", connectionId, eventStr2);
|
|
1447
|
+
globalThis.Module.typescript_websocket_subscribe_event(connectionId, eventStr2);
|
|
1448
|
+
success = true;
|
|
1449
|
+
} catch (error) {
|
|
1450
|
+
console.error("[ERROR] calling typescript_websocket_subscribe_event via globalThis.Module:", error);
|
|
1451
|
+
}
|
|
1452
|
+
}
|
|
1453
|
+
if (!success) {
|
|
1454
|
+
console.error("[ERROR] TypeScript WebSocket Bridge subscribe method not found");
|
|
1395
1455
|
}
|
|
1396
|
-
return socketIOManager.isConnected(connectionId);
|
|
1397
1456
|
}
|
|
1398
|
-
function
|
|
1399
|
-
var
|
|
1400
|
-
if (typeof Module !== "undefined" && Module.
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1457
|
+
function js_call_typescript_bridge_send_message(connectionId, eventName, data) {
|
|
1458
|
+
var success = false;
|
|
1459
|
+
if (typeof Module !== "undefined" && Module.typescript_websocket_send_message) {
|
|
1460
|
+
try {
|
|
1461
|
+
var eventStr = UTF8ToString(eventName);
|
|
1462
|
+
var dataStr = UTF8ToString(data);
|
|
1463
|
+
console.log("[C++ -> TS Bridge] Send message", connectionId, eventStr);
|
|
1464
|
+
Module.typescript_websocket_send_message(connectionId, eventStr, dataStr);
|
|
1465
|
+
success = true;
|
|
1466
|
+
} catch (error) {
|
|
1467
|
+
console.error("[ERROR] calling typescript_websocket_send_message via Module:", error);
|
|
1468
|
+
}
|
|
1406
1469
|
}
|
|
1407
|
-
if (!
|
|
1408
|
-
|
|
1409
|
-
|
|
1470
|
+
if (!success && typeof window !== "undefined" && window.Module && window.Module.typescript_websocket_send_message) {
|
|
1471
|
+
try {
|
|
1472
|
+
var eventStr1 = UTF8ToString(eventName);
|
|
1473
|
+
var dataStr1 = UTF8ToString(data);
|
|
1474
|
+
console.log("[C++ -> TS Bridge] Send message via window.Module", connectionId, eventStr1);
|
|
1475
|
+
window.Module.typescript_websocket_send_message(connectionId, eventStr1, dataStr1);
|
|
1476
|
+
success = true;
|
|
1477
|
+
} catch (error) {
|
|
1478
|
+
console.error("[ERROR] calling typescript_websocket_send_message via window.Module:", error);
|
|
1479
|
+
}
|
|
1410
1480
|
}
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1481
|
+
if (!success && typeof globalThis !== "undefined" && globalThis.Module && globalThis.Module.typescript_websocket_send_message) {
|
|
1482
|
+
try {
|
|
1483
|
+
var eventStr2 = UTF8ToString(eventName);
|
|
1484
|
+
var dataStr2 = UTF8ToString(data);
|
|
1485
|
+
console.log("[C++ -> TS Bridge] Send message via globalThis.Module", connectionId, eventStr2);
|
|
1486
|
+
globalThis.Module.typescript_websocket_send_message(connectionId, eventStr2, dataStr2);
|
|
1487
|
+
success = true;
|
|
1488
|
+
} catch (error) {
|
|
1489
|
+
console.error("[ERROR] calling typescript_websocket_send_message via globalThis.Module:", error);
|
|
1490
|
+
}
|
|
1491
|
+
}
|
|
1492
|
+
if (!success) {
|
|
1493
|
+
console.error("[ERROR] TypeScript WebSocket Bridge send message method not found");
|
|
1417
1494
|
}
|
|
1418
1495
|
}
|
|
1419
|
-
function
|
|
1420
|
-
var
|
|
1421
|
-
if (typeof Module !== "undefined" && Module.
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1496
|
+
function js_call_typescript_bridge_send_ack(connectionId, ackId, responseData) {
|
|
1497
|
+
var success = false;
|
|
1498
|
+
if (typeof Module !== "undefined" && Module.typescript_websocket_send_ack) {
|
|
1499
|
+
try {
|
|
1500
|
+
var responseStr = UTF8ToString(responseData);
|
|
1501
|
+
console.log("[C++ -> TS Bridge] Send ack", connectionId, ackId);
|
|
1502
|
+
Module.typescript_websocket_send_ack(connectionId, ackId, responseStr);
|
|
1503
|
+
success = true;
|
|
1504
|
+
} catch (error) {
|
|
1505
|
+
console.error("[ERROR] calling typescript_websocket_send_ack via Module:", error);
|
|
1506
|
+
}
|
|
1427
1507
|
}
|
|
1428
|
-
if (!
|
|
1429
|
-
|
|
1430
|
-
|
|
1508
|
+
if (!success && typeof window !== "undefined" && window.Module && window.Module.typescript_websocket_send_ack) {
|
|
1509
|
+
try {
|
|
1510
|
+
var responseStr1 = UTF8ToString(responseData);
|
|
1511
|
+
console.log("[C++ -> TS Bridge] Send ack via window.Module", connectionId, ackId);
|
|
1512
|
+
window.Module.typescript_websocket_send_ack(connectionId, ackId, responseStr1);
|
|
1513
|
+
success = true;
|
|
1514
|
+
} catch (error) {
|
|
1515
|
+
console.error("[ERROR] calling typescript_websocket_send_ack via window.Module:", error);
|
|
1516
|
+
}
|
|
1431
1517
|
}
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1518
|
+
if (!success && typeof globalThis !== "undefined" && globalThis.Module && globalThis.Module.typescript_websocket_send_ack) {
|
|
1519
|
+
try {
|
|
1520
|
+
var responseStr2 = UTF8ToString(responseData);
|
|
1521
|
+
console.log("[C++ -> TS Bridge] Send ack via globalThis.Module", connectionId, ackId);
|
|
1522
|
+
globalThis.Module.typescript_websocket_send_ack(connectionId, ackId, responseStr2);
|
|
1523
|
+
success = true;
|
|
1524
|
+
} catch (error) {
|
|
1525
|
+
console.error("[ERROR] calling typescript_websocket_send_ack via globalThis.Module:", error);
|
|
1526
|
+
}
|
|
1527
|
+
}
|
|
1528
|
+
if (!success) {
|
|
1529
|
+
console.error("[ERROR] TypeScript WebSocket Bridge send ack method not found");
|
|
1439
1530
|
}
|
|
1440
1531
|
}
|
|
1441
|
-
function
|
|
1442
|
-
|
|
1443
|
-
if (typeof
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1532
|
+
function js_initialize_typescript_bridge() {
|
|
1533
|
+
console.log("[INIT] Initializing TypeScript WebSocket Bridge integration...");
|
|
1534
|
+
if (typeof window !== "undefined" && window.initializeTypeScriptWebSocketBridge) {
|
|
1535
|
+
try {
|
|
1536
|
+
window.initializeTypeScriptWebSocketBridge();
|
|
1537
|
+
console.log("[SUCCESS] TypeScript WebSocket Bridge initialized via window");
|
|
1538
|
+
} catch (error) {
|
|
1539
|
+
console.warn("[WARNING] Failed to initialize bridge via window:", error);
|
|
1540
|
+
}
|
|
1449
1541
|
}
|
|
1450
|
-
if (
|
|
1451
|
-
|
|
1452
|
-
|
|
1542
|
+
if (typeof globalThis !== "undefined" && globalThis.initializeTypeScriptWebSocketBridge) {
|
|
1543
|
+
try {
|
|
1544
|
+
globalThis.initializeTypeScriptWebSocketBridge();
|
|
1545
|
+
console.log("[SUCCESS] TypeScript WebSocket Bridge initialized via globalThis");
|
|
1546
|
+
} catch (error) {
|
|
1547
|
+
console.warn("[WARNING] Failed to initialize bridge via globalThis:", error);
|
|
1548
|
+
}
|
|
1453
1549
|
}
|
|
1550
|
+
var bridgeMethods = [
|
|
1551
|
+
"typescript_websocket_connect_request",
|
|
1552
|
+
"typescript_websocket_disconnect_request",
|
|
1553
|
+
"typescript_websocket_subscribe_event",
|
|
1554
|
+
"typescript_websocket_send_message",
|
|
1555
|
+
"typescript_websocket_send_ack"
|
|
1556
|
+
];
|
|
1557
|
+
var bridgeFound = false;
|
|
1558
|
+
var contexts = [];
|
|
1559
|
+
if (typeof Module !== "undefined") {
|
|
1560
|
+
contexts.push({
|
|
1561
|
+
name: "Module",
|
|
1562
|
+
obj: Module
|
|
1563
|
+
});
|
|
1564
|
+
}
|
|
1565
|
+
if (typeof window !== "undefined" && window.Module) {
|
|
1566
|
+
contexts.push({
|
|
1567
|
+
name: "window.Module",
|
|
1568
|
+
obj: window.Module
|
|
1569
|
+
});
|
|
1570
|
+
}
|
|
1571
|
+
if (typeof globalThis !== "undefined" && globalThis.Module) {
|
|
1572
|
+
contexts.push({
|
|
1573
|
+
name: "globalThis.Module",
|
|
1574
|
+
obj: globalThis.Module
|
|
1575
|
+
});
|
|
1576
|
+
}
|
|
1577
|
+
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
1454
1578
|
try {
|
|
1455
|
-
var
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1579
|
+
var _loop = function() {
|
|
1580
|
+
var context = _step.value;
|
|
1581
|
+
var availableMethods = bridgeMethods.filter(function(method) {
|
|
1582
|
+
return typeof context.obj[method] === "function";
|
|
1583
|
+
});
|
|
1584
|
+
if (availableMethods.length > 0) {
|
|
1585
|
+
console.log("[SUCCESS] Bridge methods found in " + context.name + ": " + availableMethods.join(", "));
|
|
1586
|
+
bridgeFound = true;
|
|
1587
|
+
}
|
|
1588
|
+
};
|
|
1589
|
+
for(var _iterator = contexts[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true)_loop();
|
|
1590
|
+
} catch (err) {
|
|
1591
|
+
_didIteratorError = true;
|
|
1592
|
+
_iteratorError = err;
|
|
1593
|
+
} finally{
|
|
1594
|
+
try {
|
|
1595
|
+
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
1596
|
+
_iterator.return();
|
|
1597
|
+
}
|
|
1598
|
+
} finally{
|
|
1599
|
+
if (_didIteratorError) {
|
|
1600
|
+
throw _iteratorError;
|
|
1601
|
+
}
|
|
1602
|
+
}
|
|
1603
|
+
}
|
|
1604
|
+
if (!bridgeFound) {
|
|
1605
|
+
console.warn("[WARNING] No TypeScript WebSocket Bridge methods found in any context");
|
|
1606
|
+
console.log("Available in Module:", typeof Module !== "undefined" ? Object.keys(Module).filter(function(k) {
|
|
1607
|
+
return k.includes("websocket") || k.includes("typescript");
|
|
1608
|
+
}) : "undefined");
|
|
1460
1609
|
}
|
|
1461
1610
|
}
|
|
1462
1611
|
var ExitStatus = function ExitStatus(status) {
|
|
@@ -7376,13 +7525,13 @@ var Balancy = function() {
|
|
|
7376
7525
|
invoke_viiiiiiiiii: invoke_viiiiiiiiii,
|
|
7377
7526
|
invoke_viiiiiiiiiiiiiii: invoke_viiiiiiiiiiiiiii,
|
|
7378
7527
|
invoke_viijii: invoke_viijii,
|
|
7528
|
+
js_call_typescript_bridge_connect: js_call_typescript_bridge_connect,
|
|
7529
|
+
js_call_typescript_bridge_disconnect: js_call_typescript_bridge_disconnect,
|
|
7530
|
+
js_call_typescript_bridge_send_ack: js_call_typescript_bridge_send_ack,
|
|
7531
|
+
js_call_typescript_bridge_send_message: js_call_typescript_bridge_send_message,
|
|
7532
|
+
js_call_typescript_bridge_subscribe: js_call_typescript_bridge_subscribe,
|
|
7379
7533
|
js_fetch: js_fetch,
|
|
7380
|
-
|
|
7381
|
-
js_websocket_disconnect: js_websocket_disconnect,
|
|
7382
|
-
js_websocket_is_connected: js_websocket_is_connected,
|
|
7383
|
-
js_websocket_send_ack: js_websocket_send_ack,
|
|
7384
|
-
js_websocket_send_message: js_websocket_send_message,
|
|
7385
|
-
js_websocket_subscribe: js_websocket_subscribe,
|
|
7534
|
+
js_initialize_typescript_bridge: js_initialize_typescript_bridge,
|
|
7386
7535
|
random_get: _random_get
|
|
7387
7536
|
};
|
|
7388
7537
|
var wasmExports;
|
|
@@ -7433,7 +7582,7 @@ var Balancy = function() {
|
|
|
7433
7582
|
Module["__Z30jsbalancyDataObjectViewPreloadNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEN10emscripten3valE"] = createExportWrapper("_Z30jsbalancyDataObjectViewPreloadNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEN10emscripten3valE", 2);
|
|
7434
7583
|
Module["_balancySetUnzipCallback"] = createExportWrapper("balancySetUnzipCallback", 1);
|
|
7435
7584
|
Module["__Z23jsbalancyUnzipCompletedNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEES5_"] = createExportWrapper("_Z23jsbalancyUnzipCompletedNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEES5_", 2);
|
|
7436
|
-
Module["
|
|
7585
|
+
Module["__Z23jsbalancyWebViewRequestNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEN10emscripten3valE"] = createExportWrapper("_Z23jsbalancyWebViewRequestNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEN10emscripten3valE", 2);
|
|
7437
7586
|
Module["_balancySetDataRequestedCallback"] = createExportWrapper("balancySetDataRequestedCallback", 1);
|
|
7438
7587
|
Module["_balancyViewAllowOptimization"] = createExportWrapper("balancyViewAllowOptimization", 1);
|
|
7439
7588
|
Module["_balancyConfigLaunch"] = createExportWrapper("balancyConfigLaunch", 1);
|
|
@@ -7462,6 +7611,8 @@ var Balancy = function() {
|
|
|
7462
7611
|
Module["__Z35jsbalancyDailyBonus_claimNextRewardPN7Balancy4Data8BaseDataE"] = createExportWrapper("_Z35jsbalancyDailyBonus_claimNextRewardPN7Balancy4Data8BaseDataE", 1);
|
|
7463
7612
|
Module["__Z38jsbalancyDailyBonus_canClaimNextRewardPN7Balancy4Data8BaseDataE"] = createExportWrapper("_Z38jsbalancyDailyBonus_canClaimNextRewardPN7Balancy4Data8BaseDataE", 1);
|
|
7464
7613
|
Module["__Z47jsbalancyDailyBonus_getSecondsTillTheNextRewardPN7Balancy4Data8BaseDataE"] = createExportWrapper("_Z47jsbalancyDailyBonus_getSecondsTillTheNextRewardPN7Balancy4Data8BaseDataE", 1);
|
|
7614
|
+
Module["__Z31jsbalancyBattlePass_claimRewardPN7Balancy4Data8BaseDataEi"] = createExportWrapper("_Z31jsbalancyBattlePass_claimRewardPN7Balancy4Data8BaseDataEi", 2);
|
|
7615
|
+
Module["__Z35jsbalancyBattlePass_getRewardStatusPN7Balancy4Data8BaseDataEi"] = createExportWrapper("_Z35jsbalancyBattlePass_getRewardStatusPN7Balancy4Data8BaseDataEi", 2);
|
|
7465
7616
|
Module["__Z35jsbalancyOfferGroupInfo_CanPurchasePN7Balancy4Data8BaseDataEPNS_5Utils15JsonBasedObjectE"] = createExportWrapper("_Z35jsbalancyOfferGroupInfo_CanPurchasePN7Balancy4Data8BaseDataEPNS_5Utils15JsonBasedObjectE", 2);
|
|
7466
7617
|
Module["__Z51jsbalancyOfferInfo_GetSecondsLeftBeforeDeactivationPN7Balancy4Data8BaseDataE"] = createExportWrapper("_Z51jsbalancyOfferInfo_GetSecondsLeftBeforeDeactivationPN7Balancy4Data8BaseDataE", 1);
|
|
7467
7618
|
Module["__Z51jsbalancyEventInfo_GetSecondsLeftBeforeDeactivationPN7Balancy4Data8BaseDataE"] = createExportWrapper("_Z51jsbalancyEventInfo_GetSecondsLeftBeforeDeactivationPN7Balancy4Data8BaseDataE", 1);
|
|
@@ -7479,7 +7630,7 @@ var Balancy = function() {
|
|
|
7479
7630
|
Module["__Z18jsbalancyGetStatusv"] = createExportWrapper("_Z18jsbalancyGetStatusv", 0);
|
|
7480
7631
|
Module["_balancyGetTimeOffset"] = createExportWrapper("balancyGetTimeOffset", 0);
|
|
7481
7632
|
Module["_balancySetTimeOffset"] = createExportWrapper("balancySetTimeOffset", 1);
|
|
7482
|
-
Module["
|
|
7633
|
+
Module["__Z24jsbalancyGetParsedObjectPN7Balancy5Utils15JsonBasedObjectEib"] = createExportWrapper("_Z24jsbalancyGetParsedObjectPN7Balancy5Utils15JsonBasedObjectEib", 4);
|
|
7483
7634
|
Module["_emscripten_websocket_on_connection_status"] = createExportWrapper("emscripten_websocket_on_connection_status", 3);
|
|
7484
7635
|
Module["_emscripten_websocket_on_socketio_event"] = createExportWrapper("emscripten_websocket_on_socketio_event", 5);
|
|
7485
7636
|
Module["_emscripten_websocket_on_socketio_error"] = createExportWrapper("emscripten_websocket_on_socketio_error", 3);
|
|
@@ -7561,13 +7712,16 @@ var Balancy = function() {
|
|
|
7561
7712
|
Module["_balancyDailyBonus_claimNextReward"] = createExportWrapper("balancyDailyBonus_claimNextReward", 1);
|
|
7562
7713
|
Module["_balancyDailyBonus_canClaimNextReward"] = createExportWrapper("balancyDailyBonus_canClaimNextReward", 1);
|
|
7563
7714
|
Module["_balancyDailyBonus_getSecondsTillTheNextReward"] = createExportWrapper("balancyDailyBonus_getSecondsTillTheNextReward", 1);
|
|
7715
|
+
Module["_balancyBattlePass_claimReward"] = createExportWrapper("balancyBattlePass_claimReward", 2);
|
|
7716
|
+
Module["_balancyBattlePass_getRewardStatus"] = createExportWrapper("balancyBattlePass_getRewardStatus", 2);
|
|
7564
7717
|
Module["_balancySoftPurchaseStoreItem"] = createExportWrapper("balancySoftPurchaseStoreItem", 1);
|
|
7565
7718
|
Module["_balancySoftPurchaseShopSlot"] = createExportWrapper("balancySoftPurchaseShopSlot", 1);
|
|
7566
7719
|
Module["_balancySoftPurchaseGameOffer"] = createExportWrapper("balancySoftPurchaseGameOffer", 1);
|
|
7567
7720
|
Module["_balancySoftPurchaseGameOfferGroup"] = createExportWrapper("balancySoftPurchaseGameOfferGroup", 2);
|
|
7721
|
+
Module["__Z22_balancyWebViewRequestNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS_8functionIFvS5_EEE"] = createExportWrapper("_Z22_balancyWebViewRequestNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS_8functionIFvS5_EEE", 2);
|
|
7568
7722
|
Module["_balancyWebViewRequest"] = createExportWrapper("balancyWebViewRequest", 1);
|
|
7569
7723
|
Module["_balancyGetProductsIdAndType"] = createExportWrapper("balancyGetProductsIdAndType", 1);
|
|
7570
|
-
Module["_balancyGetParsedObject"] = createExportWrapper("balancyGetParsedObject",
|
|
7724
|
+
Module["_balancyGetParsedObject"] = createExportWrapper("balancyGetParsedObject", 3);
|
|
7571
7725
|
var _fflush = createExportWrapper("fflush", 1);
|
|
7572
7726
|
var _strerror = createExportWrapper("strerror", 1);
|
|
7573
7727
|
var _setThrew = createExportWrapper("setThrew", 2);
|