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.
@@ -8,7 +8,7 @@ __webpack_require__.r(__webpack_exports__);
8
8
 
9
9
  // EXPORTS
10
10
  __webpack_require__.d(__webpack_exports__, {
11
- AICCImpl: function() { return /* binding */ AICCImpl; }
11
+ AICC: function() { return /* binding */ AICCImpl; }
12
12
  });
13
13
 
14
14
  // EXTERNAL MODULE: ./node_modules/tslib/tslib.es6.mjs
@@ -989,7 +989,7 @@ var AICCImpl = (function (_super) {
989
989
  this.nav = newAPI.nav;
990
990
  };
991
991
  return AICCImpl;
992
- }(Scorm12API.Scorm12Impl));
992
+ }(Scorm12API.Scorm12API));
993
993
 
994
994
 
995
995
 
@@ -1722,6 +1722,11 @@ var BaseAPI = (function () {
1722
1722
  };
1723
1723
  BaseAPI.prototype.loadFromJSON = function (json, CMIElement) {
1724
1724
  if (CMIElement === void 0) { CMIElement = ""; }
1725
+ if ((!CMIElement || CMIElement === "") &&
1726
+ !Object.hasOwnProperty.call(json, "cmi") &&
1727
+ !Object.hasOwnProperty.call(json, "adl")) {
1728
+ CMIElement = "cmi";
1729
+ }
1725
1730
  if (!this.isNotInitialized()) {
1726
1731
  console.error("loadFromJSON can only be called before the call to lmsInitialize.");
1727
1732
  return;
@@ -1912,7 +1917,7 @@ var BaseAPI = (function () {
1912
1917
 
1913
1918
  __webpack_require__.r(__webpack_exports__);
1914
1919
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1915
- /* harmony export */ Scorm12Impl: function() { return /* binding */ Scorm12Impl; }
1920
+ /* harmony export */ Scorm12API: function() { return /* binding */ Scorm12Impl; }
1916
1921
  /* harmony export */ });
1917
1922
  /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(635);
1918
1923
  /* harmony import */ var _cmi_scorm12_cmi__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(989);
@@ -2221,7 +2226,7 @@ __webpack_require__.r(__webpack_exports__);
2221
2226
 
2222
2227
  // EXPORTS
2223
2228
  __webpack_require__.d(__webpack_exports__, {
2224
- Scorm2004Impl: function() { return /* binding */ Scorm2004Impl; }
2229
+ Scorm2004API: function() { return /* binding */ Scorm2004Impl; }
2225
2230
  });
2226
2231
 
2227
2232
  // EXTERNAL MODULE: ./node_modules/tslib/tslib.es6.mjs
@@ -7344,9 +7349,9 @@ function __disposeResources(env) {
7344
7349
  var __webpack_exports__ = {};
7345
7350
  __webpack_require__.r(__webpack_exports__);
7346
7351
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
7347
- /* harmony export */ AICC: function() { return /* binding */ AICC; },
7348
- /* harmony export */ Scorm12API: function() { return /* binding */ Scorm12API; },
7349
- /* harmony export */ Scorm2004API: function() { return /* binding */ Scorm2004API; }
7352
+ /* harmony export */ AICC: function() { return /* reexport safe */ _AICC__WEBPACK_IMPORTED_MODULE_0__.AICC; },
7353
+ /* harmony export */ Scorm12API: function() { return /* reexport safe */ _Scorm12API__WEBPACK_IMPORTED_MODULE_1__.Scorm12API; },
7354
+ /* harmony export */ Scorm2004API: function() { return /* reexport safe */ _Scorm2004API__WEBPACK_IMPORTED_MODULE_2__.Scorm2004API; }
7350
7355
  /* harmony export */ });
7351
7356
  /* harmony import */ var _AICC__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(916);
7352
7357
  /* harmony import */ var _Scorm12API__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(941);
@@ -7354,9 +7359,6 @@ __webpack_require__.r(__webpack_exports__);
7354
7359
 
7355
7360
 
7356
7361
 
7357
- var Scorm12API = _Scorm12API__WEBPACK_IMPORTED_MODULE_1__.Scorm12Impl;
7358
- var Scorm2004API = _Scorm2004API__WEBPACK_IMPORTED_MODULE_2__.Scorm2004Impl;
7359
- var AICC = _AICC__WEBPACK_IMPORTED_MODULE_0__.AICCImpl;
7360
7362
 
7361
7363
 
7362
7364
  var __webpack_exports__AICC = __webpack_exports__.AICC;