@smartico/public-api 0.0.199 → 0.0.201
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/MiniGames/index.d.ts +1 -0
- package/dist/WSAPI/WSAPI.d.ts +2 -0
- package/dist/index.js +14 -2
- package/dist/index.js.map +1 -1
- package/dist/index.modern.mjs +13 -1
- package/dist/index.modern.mjs.map +1 -1
- package/package.json +1 -1
- package/src/MiniGames/index.ts +1 -0
- package/src/WSAPI/WSAPI.ts +7 -0
package/dist/WSAPI/WSAPI.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -488,6 +488,12 @@ var SAWHistoryTransform = function SAWHistoryTransform(items) {
|
|
|
488
488
|
});
|
|
489
489
|
};
|
|
490
490
|
|
|
491
|
+
exports.SAWGameLayout = void 0;
|
|
492
|
+
(function (SAWGameLayout) {
|
|
493
|
+
SAWGameLayout[SAWGameLayout["Horizontal"] = 1] = "Horizontal";
|
|
494
|
+
SAWGameLayout[SAWGameLayout["VerticalMap"] = 2] = "VerticalMap";
|
|
495
|
+
})(exports.SAWGameLayout || (exports.SAWGameLayout = {}));
|
|
496
|
+
|
|
491
497
|
var NodeCache = /*#__PURE__*/function () {
|
|
492
498
|
function NodeCache() {
|
|
493
499
|
if (NodeCache.ttlChecker === undefined) {
|
|
@@ -1335,6 +1341,13 @@ var WSAPI = /*#__PURE__*/function () {
|
|
|
1335
1341
|
});
|
|
1336
1342
|
}
|
|
1337
1343
|
}
|
|
1344
|
+
/** @private */
|
|
1345
|
+
// AA: this method is used from the _smartico script to clear cache when the context is changed,
|
|
1346
|
+
// e.g. when user is changed or language is changed
|
|
1347
|
+
var _proto = WSAPI.prototype;
|
|
1348
|
+
_proto.clearCaches = function clearCaches() {
|
|
1349
|
+
OCache.clearAll();
|
|
1350
|
+
}
|
|
1338
1351
|
/** Returns information about current user
|
|
1339
1352
|
*
|
|
1340
1353
|
* **Example**:
|
|
@@ -1344,8 +1357,7 @@ var WSAPI = /*#__PURE__*/function () {
|
|
|
1344
1357
|
* });
|
|
1345
1358
|
* ```
|
|
1346
1359
|
* **Visitor mode: not supported**
|
|
1347
|
-
*
|
|
1348
|
-
var _proto = WSAPI.prototype;
|
|
1360
|
+
* */;
|
|
1349
1361
|
_proto.getUserProfile = function getUserProfile() {
|
|
1350
1362
|
if (this.api.tracker) {
|
|
1351
1363
|
var o = Object.assign({}, this.api.tracker.userPublicProps);
|