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