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.
package/dist/scorm12.js CHANGED
@@ -2114,7 +2114,8 @@ this.Scorm12API = (function () {
2114
2114
  getNumericLevel(level) {
2115
2115
  if (level === void 0) return LogLevelEnum.NONE;
2116
2116
  if (typeof level === "number") return level;
2117
- switch (level) {
2117
+ const normalized = typeof level === "string" ? level.toUpperCase() : level;
2118
+ switch (normalized) {
2118
2119
  case "1":
2119
2120
  case "DEBUG":
2120
2121
  return LogLevelEnum.DEBUG;
@@ -2495,7 +2496,7 @@ ${stackTrace}`);
2495
2496
  * @param {Function} apiLog - The logging function
2496
2497
  */
2497
2498
  constructor(settings, error_codes, apiLog) {
2498
- this.apiLog = apiLog;
2499
+ __publicField$c(this, "apiLog", apiLog);
2499
2500
  __publicField$c(this, "settings");
2500
2501
  __publicField$c(this, "error_codes");
2501
2502
  __publicField$c(this, "storeName", "scorm_again_offline_data");