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/aicc.js CHANGED
@@ -729,6 +729,11 @@ var BaseAPI = (function () {
729
729
  };
730
730
  BaseAPI.prototype.loadFromJSON = function (json, CMIElement) {
731
731
  if (CMIElement === void 0) { CMIElement = ""; }
732
+ if ((!CMIElement || CMIElement === "") &&
733
+ !Object.hasOwnProperty.call(json, "cmi") &&
734
+ !Object.hasOwnProperty.call(json, "adl")) {
735
+ CMIElement = "cmi";
736
+ }
732
737
  if (!this.isNotInitialized()) {
733
738
  console.error("loadFromJSON can only be called before the call to lmsInitialize.");
734
739
  return;
@@ -919,7 +924,7 @@ var BaseAPI = (function () {
919
924
 
920
925
  __webpack_require__.r(__webpack_exports__);
921
926
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
922
- /* harmony export */ Scorm12Impl: function() { return /* binding */ Scorm12Impl; }
927
+ /* harmony export */ Scorm12API: function() { return /* binding */ Scorm12Impl; }
923
928
  /* harmony export */ });
924
929
  /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(635);
925
930
  /* harmony import */ var _cmi_scorm12_cmi__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(989);
@@ -3781,7 +3786,7 @@ __webpack_require__.r(__webpack_exports__);
3781
3786
 
3782
3787
  // EXPORTS
3783
3788
  __webpack_require__.d(__webpack_exports__, {
3784
- AICCImpl: function() { return /* binding */ AICCImpl; }
3789
+ AICC: function() { return /* binding */ AICCImpl; }
3785
3790
  });
3786
3791
 
3787
3792
  // EXTERNAL MODULE: ./node_modules/tslib/tslib.es6.mjs
@@ -4762,10 +4767,10 @@ var AICCImpl = (function (_super) {
4762
4767
  this.nav = newAPI.nav;
4763
4768
  };
4764
4769
  return AICCImpl;
4765
- }(Scorm12API.Scorm12Impl));
4770
+ }(Scorm12API.Scorm12API));
4766
4771
 
4767
4772
 
4768
- var __webpack_export_target__ = this;
4773
+ var __webpack_export_target__ = window;
4769
4774
  for(var __webpack_i__ in __webpack_exports__) __webpack_export_target__[__webpack_i__] = __webpack_exports__[__webpack_i__];
4770
4775
  if(__webpack_exports__.__esModule) Object.defineProperty(__webpack_export_target__, "__esModule", { value: true });
4771
4776
  /******/ })()