@smartico/public-api 0.0.395 → 0.0.397
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/GamePick/GamePickTypes.d.ts +1 -1
- package/dist/SmarticoLib/index.d.ts +1 -1
- package/dist/WSAPI/WSAPIGamePick.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.modern.mjs +1 -1
- package/dist/index.modern.mjs.map +1 -1
- package/package.json +1 -1
- package/src/GamePick/GamePickTypes.ts +1 -1
- package/src/Missions/MissionsUtils.ts +1 -1
- package/src/SmarticoAPI.ts +1 -0
- package/src/SmarticoLib/index.ts +1 -1
- package/src/WSAPI/WSAPIGamePick.ts +1 -1
- package/src/WSAPI/WSAPIMiniGames.ts +0 -2
package/package.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IntUtils } from "
|
|
1
|
+
import { IntUtils } from "../IntUtils";
|
|
2
2
|
import { AchievementAvailabilityStatus } from "./AchievementAvailabilityStatus";
|
|
3
3
|
import { AchievementStatus } from "./AchievementStatus";
|
|
4
4
|
import { UserAchievement } from "./UserAchievement";
|
package/src/SmarticoAPI.ts
CHANGED
|
@@ -269,6 +269,7 @@ class SmarticoAPI {
|
|
|
269
269
|
|
|
270
270
|
const isString = typeof value === 'string';
|
|
271
271
|
const source = isString ? (value as string) : JSON.stringify(value);
|
|
272
|
+
if (!source.includes('smr.vc')) return value as T; // ← skip even the regex
|
|
272
273
|
|
|
273
274
|
const replaced = source.replace(SMR_DOMAIN_REGEX, (match) => SMR_TO_CLOUDFRONT_DOMAINS[match]);
|
|
274
275
|
|
package/src/SmarticoLib/index.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GamePickGameInfo, GamePickRequestParams, GamePickRound, GamePickRoundBoard, GamePickRoundRequestParams, GamePickUserInfo, GamesApiResponse } from '
|
|
1
|
+
import { GamePickGameInfo, GamePickRequestParams, GamePickRound, GamePickRoundBoard, GamePickRoundRequestParams, GamePickUserInfo, GamesApiResponse } from '../GamePick';
|
|
2
2
|
import { WSAPIAvatars } from './WSAPIAvatars';
|
|
3
3
|
|
|
4
4
|
/** @group GamePick */
|
|
@@ -374,8 +374,6 @@ export class WSAPIMiniGames extends WSAPIRaffles {
|
|
|
374
374
|
}
|
|
375
375
|
|
|
376
376
|
const r = await this.api.sawSpinRequest(this.userExtId, template_id);
|
|
377
|
-
this.api.doAcknowledgeRequest(this.userExtId, r.request_id);
|
|
378
|
-
|
|
379
377
|
const o: TMiniGamePlayResult = {
|
|
380
378
|
err_code: r.errCode,
|
|
381
379
|
err_message: r.errMsg,
|