scorm-again 3.0.2 → 3.0.4

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.
@@ -1610,7 +1610,8 @@ class LoggingService {
1610
1610
  getNumericLevel(level) {
1611
1611
  if (level === void 0) return LogLevelEnum.NONE;
1612
1612
  if (typeof level === "number") return level;
1613
- switch (level) {
1613
+ const normalized = typeof level === "string" ? level.toUpperCase() : level;
1614
+ switch (normalized) {
1614
1615
  case "1":
1615
1616
  case "DEBUG":
1616
1617
  return LogLevelEnum.DEBUG;
@@ -1983,6 +1984,7 @@ class OfflineStorageService {
1983
1984
  window.addEventListener("offline", this.boundOnlineStatusChangeHandler);
1984
1985
  window.addEventListener("scorm-again:network-status", this.boundCustomNetworkStatusHandler);
1985
1986
  }
1987
+ apiLog;
1986
1988
  settings;
1987
1989
  error_codes;
1988
1990
  storeName = "scorm_again_offline_data";