scorm-again 1.7.0 → 1.7.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 +45 -45
- package/dist/aicc.js.map +1 -1
- package/dist/aicc.min.js +7 -7
- package/dist/scorm-again.js +54 -54
- package/dist/scorm-again.js.map +1 -1
- package/dist/scorm-again.min.js +10 -10
- package/dist/scorm12.js +34 -34
- package/dist/scorm12.js.map +1 -1
- package/dist/scorm12.min.js +7 -7
- package/dist/scorm2004.js +29 -29
- package/dist/scorm2004.js.map +1 -1
- package/dist/scorm2004.min.js +7 -7
- package/package.json +20 -20
package/dist/scorm12.js
CHANGED
|
@@ -1875,7 +1875,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
1875
1875
|
|
|
1876
1876
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
1877
1877
|
|
|
1878
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf
|
|
1878
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
1879
1879
|
|
|
1880
1880
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
1881
1881
|
|
|
@@ -1885,7 +1885,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
|
|
|
1885
1885
|
|
|
1886
1886
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
1887
1887
|
|
|
1888
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
1888
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
1889
1889
|
|
|
1890
1890
|
|
|
1891
1891
|
|
|
@@ -2243,11 +2243,11 @@ var Scorm12API = /*#__PURE__*/function (_BaseAPI) {
|
|
|
2243
2243
|
"use strict";
|
|
2244
2244
|
__webpack_require__.r(__webpack_exports__);
|
|
2245
2245
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2246
|
-
/* harmony export */ "checkValidFormat": function() { return /* binding */ checkValidFormat; },
|
|
2247
|
-
/* harmony export */ "checkValidRange": function() { return /* binding */ checkValidRange; },
|
|
2248
2246
|
/* harmony export */ "BaseCMI": function() { return /* binding */ BaseCMI; },
|
|
2247
|
+
/* harmony export */ "CMIArray": function() { return /* binding */ CMIArray; },
|
|
2249
2248
|
/* harmony export */ "CMIScore": function() { return /* binding */ CMIScore; },
|
|
2250
|
-
/* harmony export */ "
|
|
2249
|
+
/* harmony export */ "checkValidFormat": function() { return /* binding */ checkValidFormat; },
|
|
2250
|
+
/* harmony export */ "checkValidRange": function() { return /* binding */ checkValidRange; }
|
|
2251
2251
|
/* harmony export */ });
|
|
2252
2252
|
/* harmony import */ var _constants_api_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../constants/api_constants */ "./src/constants/api_constants.js");
|
|
2253
2253
|
/* harmony import */ var _constants_error_codes__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../constants/error_codes */ "./src/constants/error_codes.js");
|
|
@@ -2256,7 +2256,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
2256
2256
|
|
|
2257
2257
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
2258
2258
|
|
|
2259
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf
|
|
2259
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
2260
2260
|
|
|
2261
2261
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
2262
2262
|
|
|
@@ -2266,7 +2266,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
|
|
|
2266
2266
|
|
|
2267
2267
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
2268
2268
|
|
|
2269
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
2269
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
2270
2270
|
|
|
2271
2271
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
2272
2272
|
|
|
@@ -2773,18 +2773,18 @@ var CMIArray = /*#__PURE__*/function (_BaseCMI2) {
|
|
|
2773
2773
|
"use strict";
|
|
2774
2774
|
__webpack_require__.r(__webpack_exports__);
|
|
2775
2775
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2776
|
-
/* harmony export */ "throwReadOnlyError": function() { return /* binding */ throwReadOnlyError; },
|
|
2777
|
-
/* harmony export */ "throwWriteOnlyError": function() { return /* binding */ throwWriteOnlyError; },
|
|
2778
|
-
/* harmony export */ "check12ValidFormat": function() { return /* binding */ check12ValidFormat; },
|
|
2779
|
-
/* harmony export */ "check12ValidRange": function() { return /* binding */ check12ValidRange; },
|
|
2780
2776
|
/* harmony export */ "CMI": function() { return /* binding */ CMI; },
|
|
2781
|
-
/* harmony export */ "
|
|
2782
|
-
/* harmony export */ "CMIStudentPreference": function() { return /* binding */ CMIStudentPreference; },
|
|
2777
|
+
/* harmony export */ "CMIInteractionsCorrectResponsesObject": function() { return /* binding */ CMIInteractionsCorrectResponsesObject; },
|
|
2783
2778
|
/* harmony export */ "CMIInteractionsObject": function() { return /* binding */ CMIInteractionsObject; },
|
|
2784
|
-
/* harmony export */ "CMIObjectivesObject": function() { return /* binding */ CMIObjectivesObject; },
|
|
2785
2779
|
/* harmony export */ "CMIInteractionsObjectivesObject": function() { return /* binding */ CMIInteractionsObjectivesObject; },
|
|
2786
|
-
/* harmony export */ "
|
|
2787
|
-
/* harmony export */ "
|
|
2780
|
+
/* harmony export */ "CMIObjectivesObject": function() { return /* binding */ CMIObjectivesObject; },
|
|
2781
|
+
/* harmony export */ "CMIStudentData": function() { return /* binding */ CMIStudentData; },
|
|
2782
|
+
/* harmony export */ "CMIStudentPreference": function() { return /* binding */ CMIStudentPreference; },
|
|
2783
|
+
/* harmony export */ "NAV": function() { return /* binding */ NAV; },
|
|
2784
|
+
/* harmony export */ "check12ValidFormat": function() { return /* binding */ check12ValidFormat; },
|
|
2785
|
+
/* harmony export */ "check12ValidRange": function() { return /* binding */ check12ValidRange; },
|
|
2786
|
+
/* harmony export */ "throwReadOnlyError": function() { return /* binding */ throwReadOnlyError; },
|
|
2787
|
+
/* harmony export */ "throwWriteOnlyError": function() { return /* binding */ throwWriteOnlyError; }
|
|
2788
2788
|
/* harmony export */ });
|
|
2789
2789
|
/* harmony import */ var _common__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./common */ "./src/cmi/common.js");
|
|
2790
2790
|
/* harmony import */ var _constants_api_constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../constants/api_constants */ "./src/constants/api_constants.js");
|
|
@@ -2800,13 +2800,13 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
2800
2800
|
|
|
2801
2801
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
2802
2802
|
|
|
2803
|
-
function _get() { if (typeof Reflect !== "undefined" && Reflect.get) { _get = Reflect.get; } else { _get = function _get(target, property, receiver) { var base = _superPropBase(target, property); if (!base) return; var desc = Object.getOwnPropertyDescriptor(base, property); if (desc.get) { return desc.get.call(arguments.length < 3 ? target : receiver); } return desc.value; }; } return _get.apply(this, arguments); }
|
|
2803
|
+
function _get() { if (typeof Reflect !== "undefined" && Reflect.get) { _get = Reflect.get.bind(); } else { _get = function _get(target, property, receiver) { var base = _superPropBase(target, property); if (!base) return; var desc = Object.getOwnPropertyDescriptor(base, property); if (desc.get) { return desc.get.call(arguments.length < 3 ? target : receiver); } return desc.value; }; } return _get.apply(this, arguments); }
|
|
2804
2804
|
|
|
2805
2805
|
function _superPropBase(object, property) { while (!Object.prototype.hasOwnProperty.call(object, property)) { object = _getPrototypeOf(object); if (object === null) break; } return object; }
|
|
2806
2806
|
|
|
2807
2807
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
2808
2808
|
|
|
2809
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf
|
|
2809
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
2810
2810
|
|
|
2811
2811
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
2812
2812
|
|
|
@@ -2816,7 +2816,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
|
|
|
2816
2816
|
|
|
2817
2817
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
2818
2818
|
|
|
2819
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
2819
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
2820
2820
|
|
|
2821
2821
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
2822
2822
|
|
|
@@ -5012,10 +5012,10 @@ var Regex = {
|
|
|
5012
5012
|
"use strict";
|
|
5013
5013
|
__webpack_require__.r(__webpack_exports__);
|
|
5014
5014
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
5015
|
-
/* harmony export */ "ValidationError": function() { return /* binding */ ValidationError; },
|
|
5016
|
-
/* harmony export */ "Scorm12ValidationError": function() { return /* binding */ Scorm12ValidationError; },
|
|
5017
5015
|
/* harmony export */ "AICCValidationError": function() { return /* binding */ AICCValidationError; },
|
|
5018
|
-
/* harmony export */ "
|
|
5016
|
+
/* harmony export */ "Scorm12ValidationError": function() { return /* binding */ Scorm12ValidationError; },
|
|
5017
|
+
/* harmony export */ "Scorm2004ValidationError": function() { return /* binding */ Scorm2004ValidationError; },
|
|
5018
|
+
/* harmony export */ "ValidationError": function() { return /* binding */ ValidationError; }
|
|
5019
5019
|
/* harmony export */ });
|
|
5020
5020
|
/* harmony import */ var _constants_api_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./constants/api_constants */ "./src/constants/api_constants.js");
|
|
5021
5021
|
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
@@ -5036,15 +5036,15 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
|
|
|
5036
5036
|
|
|
5037
5037
|
function _wrapNativeSuper(Class) { var _cache = typeof Map === "function" ? new Map() : undefined; _wrapNativeSuper = function _wrapNativeSuper(Class) { if (Class === null || !_isNativeFunction(Class)) return Class; if (typeof Class !== "function") { throw new TypeError("Super expression must either be null or a function"); } if (typeof _cache !== "undefined") { if (_cache.has(Class)) return _cache.get(Class); _cache.set(Class, Wrapper); } function Wrapper() { return _construct(Class, arguments, _getPrototypeOf(this).constructor); } Wrapper.prototype = Object.create(Class.prototype, { constructor: { value: Wrapper, enumerable: false, writable: true, configurable: true } }); return _setPrototypeOf(Wrapper, Class); }; return _wrapNativeSuper(Class); }
|
|
5038
5038
|
|
|
5039
|
-
function _construct(Parent, args, Class) { if (_isNativeReflectConstruct()) { _construct = Reflect.construct; } else { _construct = function _construct(Parent, args, Class) { var a = [null]; a.push.apply(a, args); var Constructor = Function.bind.apply(Parent, a); var instance = new Constructor(); if (Class) _setPrototypeOf(instance, Class.prototype); return instance; }; } return _construct.apply(null, arguments); }
|
|
5039
|
+
function _construct(Parent, args, Class) { if (_isNativeReflectConstruct()) { _construct = Reflect.construct.bind(); } else { _construct = function _construct(Parent, args, Class) { var a = [null]; a.push.apply(a, args); var Constructor = Function.bind.apply(Parent, a); var instance = new Constructor(); if (Class) _setPrototypeOf(instance, Class.prototype); return instance; }; } return _construct.apply(null, arguments); }
|
|
5040
5040
|
|
|
5041
5041
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
5042
5042
|
|
|
5043
5043
|
function _isNativeFunction(fn) { return Function.toString.call(fn).indexOf("[native code]") !== -1; }
|
|
5044
5044
|
|
|
5045
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf
|
|
5045
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
5046
5046
|
|
|
5047
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5047
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5048
5048
|
|
|
5049
5049
|
function _classPrivateFieldInitSpec(obj, privateMap, value) { _checkPrivateRedeclaration(obj, privateMap); privateMap.set(obj, value); }
|
|
5050
5050
|
|
|
@@ -5249,19 +5249,19 @@ var Scorm2004ValidationError = /*#__PURE__*/function (_ValidationError3) {
|
|
|
5249
5249
|
"use strict";
|
|
5250
5250
|
__webpack_require__.r(__webpack_exports__);
|
|
5251
5251
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
5252
|
-
/* harmony export */ "SECONDS_PER_SECOND": function() { return /* binding */ SECONDS_PER_SECOND; },
|
|
5253
|
-
/* harmony export */ "SECONDS_PER_MINUTE": function() { return /* binding */ SECONDS_PER_MINUTE; },
|
|
5254
|
-
/* harmony export */ "SECONDS_PER_HOUR": function() { return /* binding */ SECONDS_PER_HOUR; },
|
|
5255
5252
|
/* harmony export */ "SECONDS_PER_DAY": function() { return /* binding */ SECONDS_PER_DAY; },
|
|
5253
|
+
/* harmony export */ "SECONDS_PER_HOUR": function() { return /* binding */ SECONDS_PER_HOUR; },
|
|
5254
|
+
/* harmony export */ "SECONDS_PER_MINUTE": function() { return /* binding */ SECONDS_PER_MINUTE; },
|
|
5255
|
+
/* harmony export */ "SECONDS_PER_SECOND": function() { return /* binding */ SECONDS_PER_SECOND; },
|
|
5256
|
+
/* harmony export */ "addHHMMSSTimeStrings": function() { return /* binding */ addHHMMSSTimeStrings; },
|
|
5257
|
+
/* harmony export */ "addTwoDurations": function() { return /* binding */ addTwoDurations; },
|
|
5258
|
+
/* harmony export */ "countDecimals": function() { return /* binding */ countDecimals; },
|
|
5259
|
+
/* harmony export */ "flatten": function() { return /* binding */ flatten; },
|
|
5260
|
+
/* harmony export */ "getDurationAsSeconds": function() { return /* binding */ getDurationAsSeconds; },
|
|
5256
5261
|
/* harmony export */ "getSecondsAsHHMMSS": function() { return /* binding */ getSecondsAsHHMMSS; },
|
|
5257
5262
|
/* harmony export */ "getSecondsAsISODuration": function() { return /* binding */ getSecondsAsISODuration; },
|
|
5258
5263
|
/* harmony export */ "getTimeAsSeconds": function() { return /* binding */ getTimeAsSeconds; },
|
|
5259
|
-
/* harmony export */ "
|
|
5260
|
-
/* harmony export */ "addTwoDurations": function() { return /* binding */ addTwoDurations; },
|
|
5261
|
-
/* harmony export */ "addHHMMSSTimeStrings": function() { return /* binding */ addHHMMSSTimeStrings; },
|
|
5262
|
-
/* harmony export */ "flatten": function() { return /* binding */ flatten; },
|
|
5263
|
-
/* harmony export */ "unflatten": function() { return /* binding */ unflatten; },
|
|
5264
|
-
/* harmony export */ "countDecimals": function() { return /* binding */ countDecimals; }
|
|
5264
|
+
/* harmony export */ "unflatten": function() { return /* binding */ unflatten; }
|
|
5265
5265
|
/* harmony export */ });
|
|
5266
5266
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
5267
5267
|
|