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.
@@ -794,7 +794,7 @@ var BaseAPI = (function () {
794
794
  }];
795
795
  }
796
796
  process = function (url, params, settings) { return (0,tslib_es6.__awaiter)(_this, void 0, void 0, function () {
797
- var response, e_1;
797
+ var response, e_1, message;
798
798
  return (0,tslib_es6.__generator)(this, function (_a) {
799
799
  switch (_a.label) {
800
800
  case 0:
@@ -806,7 +806,8 @@ var BaseAPI = (function () {
806
806
  return [2, this.transformResponse(response)];
807
807
  case 2:
808
808
  e_1 = _a.sent();
809
- this.apiLog("processHttpRequest", e_1, enums.LogLevelEnum.ERROR);
809
+ message = e_1 instanceof Error ? e_1.message : String(e_1);
810
+ this.apiLog("processHttpRequest", message, enums.LogLevelEnum.ERROR);
810
811
  api.processListeners("CommitError");
811
812
  return [2, genericError];
812
813
  case 3: return [2];
@@ -1513,7 +1514,7 @@ var scorm12_regex = {
1513
1514
  CMISInteger: "^-?([0-9]+)$",
1514
1515
  CMIDecimal: "^-?([0-9]{0,3})(.[0-9]*)?$",
1515
1516
  CMIIdentifier: "^[\\u0021-\\u007E\\s]{0,255}$",
1516
- CMIFeedback: "^.{0,255}$",
1517
+ CMIFeedback: "^.*$",
1517
1518
  CMIIndex: "[._](\\d+).",
1518
1519
  CMIStatus: "^(passed|completed|failed|incomplete|browsed)$",
1519
1520
  CMIStatus2: "^(passed|completed|failed|incomplete|browsed|not attempted)$",