scorm-again 2.6.2 → 2.6.3

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.
@@ -1789,7 +1789,7 @@ var BaseAPI = (function () {
1789
1789
  }];
1790
1790
  }
1791
1791
  process = function (url, params, settings) { return (0,tslib_es6.__awaiter)(_this, void 0, void 0, function () {
1792
- var response, e_1;
1792
+ var response, e_1, message;
1793
1793
  return (0,tslib_es6.__generator)(this, function (_a) {
1794
1794
  switch (_a.label) {
1795
1795
  case 0:
@@ -1801,7 +1801,8 @@ var BaseAPI = (function () {
1801
1801
  return [2, this.transformResponse(response)];
1802
1802
  case 2:
1803
1803
  e_1 = _a.sent();
1804
- this.apiLog("processHttpRequest", e_1, enums.LogLevelEnum.ERROR);
1804
+ message = e_1 instanceof Error ? e_1.message : String(e_1);
1805
+ this.apiLog("processHttpRequest", message, enums.LogLevelEnum.ERROR);
1805
1806
  api.processListeners("CommitError");
1806
1807
  return [2, genericError];
1807
1808
  case 3: return [2];
@@ -6519,7 +6520,7 @@ var scorm12_regex = {
6519
6520
  CMISInteger: "^-?([0-9]+)$",
6520
6521
  CMIDecimal: "^-?([0-9]{0,3})(.[0-9]*)?$",
6521
6522
  CMIIdentifier: "^[\\u0021-\\u007E\\s]{0,255}$",
6522
- CMIFeedback: "^.{0,255}$",
6523
+ CMIFeedback: "^.*$",
6523
6524
  CMIIndex: "[._](\\d+).",
6524
6525
  CMIStatus: "^(passed|completed|failed|incomplete|browsed)$",
6525
6526
  CMIStatus2: "^(passed|completed|failed|incomplete|browsed|not attempted)$",