scorm-again 2.6.0 → 2.6.1

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/esm/aicc.js CHANGED
@@ -727,6 +727,11 @@ var BaseAPI = (function () {
727
727
  };
728
728
  BaseAPI.prototype.loadFromJSON = function (json, CMIElement) {
729
729
  if (CMIElement === void 0) { CMIElement = ""; }
730
+ if ((!CMIElement || CMIElement === "") &&
731
+ !Object.hasOwnProperty.call(json, "cmi") &&
732
+ !Object.hasOwnProperty.call(json, "adl")) {
733
+ CMIElement = "cmi";
734
+ }
730
735
  if (!this.isNotInitialized()) {
731
736
  console.error("loadFromJSON can only be called before the call to lmsInitialize.");
732
737
  return;
@@ -917,7 +922,7 @@ var BaseAPI = (function () {
917
922
 
918
923
  __webpack_require__.r(__webpack_exports__);
919
924
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
920
- /* harmony export */ Scorm12Impl: function() { return /* binding */ Scorm12Impl; }
925
+ /* harmony export */ Scorm12API: function() { return /* binding */ Scorm12Impl; }
921
926
  /* harmony export */ });
922
927
  /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(635);
923
928
  /* harmony import */ var _cmi_scorm12_cmi__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(989);
@@ -3779,7 +3784,7 @@ __webpack_require__.r(__webpack_exports__);
3779
3784
 
3780
3785
  // EXPORTS
3781
3786
  __webpack_require__.d(__webpack_exports__, {
3782
- AICCImpl: function() { return /* binding */ AICCImpl; }
3787
+ AICC: function() { return /* binding */ AICCImpl; }
3783
3788
  });
3784
3789
 
3785
3790
  // EXTERNAL MODULE: ./node_modules/tslib/tslib.es6.mjs
@@ -4760,10 +4765,10 @@ var AICCImpl = (function (_super) {
4760
4765
  this.nav = newAPI.nav;
4761
4766
  };
4762
4767
  return AICCImpl;
4763
- }(Scorm12API.Scorm12Impl));
4768
+ }(Scorm12API.Scorm12API));
4764
4769
 
4765
4770
 
4766
- var __webpack_exports__AICCImpl = __webpack_exports__.AICCImpl;
4767
- export { __webpack_exports__AICCImpl as AICCImpl };
4771
+ var __webpack_exports__AICC = __webpack_exports__.AICC;
4772
+ export { __webpack_exports__AICC as AICC };
4768
4773
 
4769
4774
  //# sourceMappingURL=aicc.js.map