sekai-calculator 0.5.1 → 0.5.2

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/index.cjs CHANGED
@@ -354,7 +354,7 @@ class CardCalculator {
354
354
  ret.level = cardRarity.maxLevel;
355
355
  }
356
356
  }
357
- if (episodeRead) {
357
+ if (episodeRead && ret.episodes !== undefined) {
358
358
  ret.episodes.forEach(it => { it.scenarioStatus = 'already_read'; });
359
359
  }
360
360
  if (masterMax) {
package/dist/index.d.ts CHANGED
@@ -45,7 +45,7 @@ interface UserCard {
45
45
  defaultImage: string;
46
46
  duplicateCount: number;
47
47
  createdAt: number;
48
- episodes: Array<{
48
+ episodes?: Array<{
49
49
  cardEpisodeId: number;
50
50
  scenarioStatus: string;
51
51
  scenarioStatusReasons: string[];
package/dist/index.mjs CHANGED
@@ -352,7 +352,7 @@ class CardCalculator {
352
352
  ret.level = cardRarity.maxLevel;
353
353
  }
354
354
  }
355
- if (episodeRead) {
355
+ if (episodeRead && ret.episodes !== undefined) {
356
356
  ret.episodes.forEach(it => { it.scenarioStatus = 'already_read'; });
357
357
  }
358
358
  if (masterMax) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sekai-calculator",
3
- "version": "0.5.1",
3
+ "version": "0.5.2",
4
4
  "description": "Project SEKAI Calculator for deck power, live score, event point and more.",
5
5
  "type": "module",
6
6
  "types": "dist/index.d.ts",