Fixing an issue with "urn:scormdriver:" values in SCORM 2004 4th edition

This commit is contained in:
Jonathan Putney
2021-09-07 13:45:56 -04:00
parent 674bbf051c
commit 3a19efb91c
12 changed files with 1891 additions and 1605 deletions

228
dist/aicc.js vendored

File diff suppressed because one or more lines are too long

226
dist/aicc.min.js vendored
View File

@@ -419,7 +419,7 @@ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || func
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); }; }
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
@@ -530,7 +530,7 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
function _iterableToArrayLimit(arr, i) { var _i = arr && (typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]); if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
@@ -548,6 +548,10 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
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; }
function _classPrivateFieldInitSpec(obj, privateMap, value) { _checkPrivateRedeclaration(obj, privateMap); privateMap.set(obj, value); }
function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError("Cannot initialize the same private elements twice on an object"); } }
function _classPrivateFieldGet(receiver, privateMap) { var descriptor = _classExtractFieldDescriptor(receiver, privateMap, "get"); return _classApplyDescriptorGet(receiver, descriptor); }
function _classApplyDescriptorGet(receiver, descriptor) { if (descriptor.get) { return descriptor.get.call(receiver); } return descriptor.value; }
@@ -581,17 +585,17 @@ var BaseAPI = /*#__PURE__*/function () {
function BaseAPI(error_codes, settings) {
_classCallCheck(this, BaseAPI);
_timeout.set(this, {
_classPrivateFieldInitSpec(this, _timeout, {
writable: true,
value: void 0
});
_error_codes.set(this, {
_classPrivateFieldInitSpec(this, _error_codes, {
writable: true,
value: void 0
});
_settings.set(this, {
_classPrivateFieldInitSpec(this, _settings, {
writable: true,
value: {
autocommit: false,
@@ -1861,22 +1865,22 @@ var ScheduledCommit = /*#__PURE__*/function () {
function ScheduledCommit(API, when, callback) {
_classCallCheck(this, ScheduledCommit);
_API.set(this, {
_classPrivateFieldInitSpec(this, _API, {
writable: true,
value: void 0
});
_cancelled.set(this, {
_classPrivateFieldInitSpec(this, _cancelled, {
writable: true,
value: false
});
_timeout2.set(this, {
_classPrivateFieldInitSpec(this, _timeout2, {
writable: true,
value: void 0
});
_callback.set(this, {
_classPrivateFieldInitSpec(this, _callback, {
writable: true,
value: void 0
});
@@ -1961,7 +1965,7 @@ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || func
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); }; }
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
@@ -2337,6 +2341,10 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
function _classPrivateFieldInitSpec(obj, privateMap, value) { _checkPrivateRedeclaration(obj, privateMap); privateMap.set(obj, value); }
function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError("Cannot initialize the same private elements twice on an object"); } }
function _classPrivateFieldSet(receiver, privateMap, value) { var descriptor = _classExtractFieldDescriptor(receiver, privateMap, "set"); _classApplyDescriptorSet(receiver, descriptor, value); return value; }
function _classApplyDescriptorSet(receiver, descriptor, value) { if (descriptor.set) { descriptor.set.call(receiver, value); } else { if (!descriptor.writable) { throw new TypeError("attempted to set read only private field"); } descriptor.value = value; } }
@@ -2363,7 +2371,7 @@ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || func
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); }; }
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
@@ -2595,27 +2603,27 @@ var AICCStudentPreferences = /*#__PURE__*/function (_Scorm12CMI$CMIStuden) {
_this3 = _super4.call(this, aicc_constants.student_preference_children);
_lesson_type.set(_assertThisInitialized(_this3), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this3), _lesson_type, {
writable: true,
value: ''
});
_text_color.set(_assertThisInitialized(_this3), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this3), _text_color, {
writable: true,
value: ''
});
_text_location.set(_assertThisInitialized(_this3), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this3), _text_location, {
writable: true,
value: ''
});
_text_size.set(_assertThisInitialized(_this3), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this3), _text_size, {
writable: true,
value: ''
});
_video.set(_assertThisInitialized(_this3), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this3), _video, {
writable: true,
value: ''
});
@@ -2799,7 +2807,7 @@ var AICCCMIStudentData = /*#__PURE__*/function (_Scorm12CMI$CMIStuden2) {
_this4 = _super5.call(this, aicc_constants.student_data_children);
_tries_during_lesson.set(_assertThisInitialized(_this4), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this4), _tries_during_lesson, {
writable: true,
value: ''
});
@@ -2917,72 +2925,72 @@ var CMIStudentDemographics = /*#__PURE__*/function (_BaseCMI2) {
_this5 = _super6.call(this);
_children.set(_assertThisInitialized(_this5), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this5), _children, {
writable: true,
value: aicc_constants.student_demographics_children
});
_city.set(_assertThisInitialized(_this5), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this5), _city, {
writable: true,
value: ''
});
_class.set(_assertThisInitialized(_this5), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this5), _class, {
writable: true,
value: ''
});
_company.set(_assertThisInitialized(_this5), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this5), _company, {
writable: true,
value: ''
});
_country.set(_assertThisInitialized(_this5), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this5), _country, {
writable: true,
value: ''
});
_experience.set(_assertThisInitialized(_this5), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this5), _experience, {
writable: true,
value: ''
});
_familiar_name.set(_assertThisInitialized(_this5), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this5), _familiar_name, {
writable: true,
value: ''
});
_instructor_name.set(_assertThisInitialized(_this5), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this5), _instructor_name, {
writable: true,
value: ''
});
_title.set(_assertThisInitialized(_this5), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this5), _title, {
writable: true,
value: ''
});
_native_language.set(_assertThisInitialized(_this5), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this5), _native_language, {
writable: true,
value: ''
});
_state.set(_assertThisInitialized(_this5), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this5), _state, {
writable: true,
value: ''
});
_street_address.set(_assertThisInitialized(_this5), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this5), _street_address, {
writable: true,
value: ''
});
_telephone.set(_assertThisInitialized(_this5), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this5), _telephone, {
writable: true,
value: ''
});
_years_experience.set(_assertThisInitialized(_this5), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this5), _years_experience, {
writable: true,
value: ''
});
@@ -3353,32 +3361,32 @@ var CMIPathsObject = /*#__PURE__*/function (_BaseCMI3) {
_this6 = _super8.call(this);
_location_id.set(_assertThisInitialized(_this6), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this6), _location_id, {
writable: true,
value: ''
});
_date.set(_assertThisInitialized(_this6), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this6), _date, {
writable: true,
value: ''
});
_time.set(_assertThisInitialized(_this6), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this6), _time, {
writable: true,
value: ''
});
_status.set(_assertThisInitialized(_this6), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this6), _status, {
writable: true,
value: ''
});
_why_left.set(_assertThisInitialized(_this6), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this6), _why_left, {
writable: true,
value: ''
});
_time_in_element.set(_assertThisInitialized(_this6), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this6), _time_in_element, {
writable: true,
value: ''
});
@@ -3590,12 +3598,12 @@ var CMITriesObject = /*#__PURE__*/function (_BaseCMI4) {
_this7 = _super10.call(this);
_status2.set(_assertThisInitialized(_this7), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this7), _status2, {
writable: true,
value: ''
});
_time2.set(_assertThisInitialized(_this7), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this7), _time2, {
writable: true,
value: ''
});
@@ -3740,7 +3748,7 @@ var CMIAttemptRecordsObject = /*#__PURE__*/function (_BaseCMI5) {
_this8 = _super12.call(this);
_lesson_status.set(_assertThisInitialized(_this8), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this8), _lesson_status, {
writable: true,
value: ''
});
@@ -3843,17 +3851,17 @@ var CMIEvaluationCommentsObject = /*#__PURE__*/function (_BaseCMI6) {
_this9 = _super13.call(this);
_content.set(_assertThisInitialized(_this9), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this9), _content, {
writable: true,
value: ''
});
_location.set(_assertThisInitialized(_this9), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this9), _location, {
writable: true,
value: ''
});
_time3.set(_assertThisInitialized(_this9), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this9), _time3, {
writable: true,
value: ''
});
@@ -3977,7 +3985,7 @@ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || func
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); }; }
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
@@ -3991,6 +3999,10 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
function _classPrivateFieldInitSpec(obj, privateMap, value) { _checkPrivateRedeclaration(obj, privateMap); privateMap.set(obj, value); }
function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError("Cannot initialize the same private elements twice on an object"); } }
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; }
function _classPrivateFieldSet(receiver, privateMap, value) { var descriptor = _classExtractFieldDescriptor(receiver, privateMap, "set"); _classApplyDescriptorSet(receiver, descriptor, value); return value; }
@@ -4074,12 +4086,12 @@ var BaseCMI = /*#__PURE__*/function () {
_defineProperty(this, "jsonString", false);
_initialized.set(this, {
_classPrivateFieldInitSpec(this, _initialized, {
writable: true,
value: false
});
_start_time.set(this, {
_classPrivateFieldInitSpec(this, _start_time, {
writable: true,
value: void 0
});
@@ -4191,52 +4203,52 @@ var CMIScore = /*#__PURE__*/function (_BaseCMI) {
_this = _super.call(this);
_children2.set(_assertThisInitialized(_this), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this), _children2, {
writable: true,
value: void 0
});
_score_range.set(_assertThisInitialized(_this), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this), _score_range, {
writable: true,
value: void 0
});
_invalid_error_code.set(_assertThisInitialized(_this), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this), _invalid_error_code, {
writable: true,
value: void 0
});
_invalid_type_code.set(_assertThisInitialized(_this), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this), _invalid_type_code, {
writable: true,
value: void 0
});
_invalid_range_code.set(_assertThisInitialized(_this), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this), _invalid_range_code, {
writable: true,
value: void 0
});
_decimal_regex.set(_assertThisInitialized(_this), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this), _decimal_regex, {
writable: true,
value: void 0
});
_error_class.set(_assertThisInitialized(_this), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this), _error_class, {
writable: true,
value: void 0
});
_raw.set(_assertThisInitialized(_this), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this), _raw, {
writable: true,
value: ''
});
_min.set(_assertThisInitialized(_this), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this), _min, {
writable: true,
value: ''
});
_max.set(_assertThisInitialized(_this), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this), _max, {
writable: true,
value: void 0
});
@@ -4396,17 +4408,17 @@ var CMIArray = /*#__PURE__*/function (_BaseCMI2) {
_this2 = _super2.call(this);
_errorCode.set(_assertThisInitialized(_this2), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this2), _errorCode, {
writable: true,
value: void 0
});
_errorClass.set(_assertThisInitialized(_this2), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this2), _errorClass, {
writable: true,
value: void 0
});
_children3.set(_assertThisInitialized(_this2), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this2), _children3, {
writable: true,
value: void 0
});
@@ -4532,7 +4544,7 @@ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || func
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); }; }
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
@@ -4542,6 +4554,10 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
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; }
function _classPrivateFieldInitSpec(obj, privateMap, value) { _checkPrivateRedeclaration(obj, privateMap); privateMap.set(obj, value); }
function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError("Cannot initialize the same private elements twice on an object"); } }
function _classPrivateFieldGet(receiver, privateMap) { var descriptor = _classExtractFieldDescriptor(receiver, privateMap, "get"); return _classApplyDescriptorGet(receiver, descriptor); }
function _classApplyDescriptorGet(receiver, descriptor) { if (descriptor.get) { return descriptor.get.call(receiver); } return descriptor.value; }
@@ -4635,27 +4651,27 @@ var CMI = /*#__PURE__*/function (_BaseCMI) {
_this = _super.call(this);
_children2.set(_assertThisInitialized(_this), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this), _children2, {
writable: true,
value: ''
});
_version2.set(_assertThisInitialized(_this), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this), _version2, {
writable: true,
value: '3.4'
});
_launch_data.set(_assertThisInitialized(_this), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this), _launch_data, {
writable: true,
value: ''
});
_comments.set(_assertThisInitialized(_this), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this), _comments, {
writable: true,
value: ''
});
_comments_from_lms.set(_assertThisInitialized(_this), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this), _comments_from_lms, {
writable: true,
value: ''
});
@@ -4903,62 +4919,62 @@ var CMICore = /*#__PURE__*/function (_BaseCMI2) {
_this2 = _super2.call(this);
_children3.set(_assertThisInitialized(_this2), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this2), _children3, {
writable: true,
value: scorm12_constants.core_children
});
_student_id.set(_assertThisInitialized(_this2), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this2), _student_id, {
writable: true,
value: ''
});
_student_name.set(_assertThisInitialized(_this2), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this2), _student_name, {
writable: true,
value: ''
});
_lesson_location.set(_assertThisInitialized(_this2), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this2), _lesson_location, {
writable: true,
value: ''
});
_credit.set(_assertThisInitialized(_this2), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this2), _credit, {
writable: true,
value: ''
});
_lesson_status.set(_assertThisInitialized(_this2), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this2), _lesson_status, {
writable: true,
value: 'not attempted'
});
_entry.set(_assertThisInitialized(_this2), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this2), _entry, {
writable: true,
value: ''
});
_total_time.set(_assertThisInitialized(_this2), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this2), _total_time, {
writable: true,
value: ''
});
_lesson_mode.set(_assertThisInitialized(_this2), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this2), _lesson_mode, {
writable: true,
value: 'normal'
});
_exit.set(_assertThisInitialized(_this2), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this2), _exit, {
writable: true,
value: ''
});
_session_time.set(_assertThisInitialized(_this2), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this2), _session_time, {
writable: true,
value: '00:00:00'
});
_suspend_data.set(_assertThisInitialized(_this2), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this2), _suspend_data, {
writable: true,
value: ''
});
@@ -5339,22 +5355,22 @@ var CMIStudentData = /*#__PURE__*/function (_BaseCMI3) {
_this3 = _super4.call(this);
_children4.set(_assertThisInitialized(_this3), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this3), _children4, {
writable: true,
value: void 0
});
_mastery_score.set(_assertThisInitialized(_this3), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this3), _mastery_score, {
writable: true,
value: ''
});
_max_time_allowed.set(_assertThisInitialized(_this3), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this3), _max_time_allowed, {
writable: true,
value: ''
});
_time_limit_action.set(_assertThisInitialized(_this3), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this3), _time_limit_action, {
writable: true,
value: ''
});
@@ -5500,27 +5516,27 @@ var CMIStudentPreference = /*#__PURE__*/function (_BaseCMI4) {
_this4 = _super5.call(this);
_children5.set(_assertThisInitialized(_this4), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this4), _children5, {
writable: true,
value: void 0
});
_audio.set(_assertThisInitialized(_this4), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this4), _audio, {
writable: true,
value: ''
});
_language.set(_assertThisInitialized(_this4), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this4), _language, {
writable: true,
value: ''
});
_speed.set(_assertThisInitialized(_this4), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this4), _speed, {
writable: true,
value: ''
});
_text.set(_assertThisInitialized(_this4), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this4), _text, {
writable: true,
value: ''
});
@@ -5723,37 +5739,37 @@ var CMIInteractionsObject = /*#__PURE__*/function (_BaseCMI5) {
_this5 = _super7.call(this);
_id.set(_assertThisInitialized(_this5), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this5), _id, {
writable: true,
value: ''
});
_time.set(_assertThisInitialized(_this5), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this5), _time, {
writable: true,
value: ''
});
_type.set(_assertThisInitialized(_this5), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this5), _type, {
writable: true,
value: ''
});
_weighting.set(_assertThisInitialized(_this5), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this5), _weighting, {
writable: true,
value: ''
});
_student_response.set(_assertThisInitialized(_this5), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this5), _student_response, {
writable: true,
value: ''
});
_result.set(_assertThisInitialized(_this5), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this5), _result, {
writable: true,
value: ''
});
_latency.set(_assertThisInitialized(_this5), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this5), _latency, {
writable: true,
value: ''
});
@@ -5992,12 +6008,12 @@ var CMIObjectivesObject = /*#__PURE__*/function (_BaseCMI6) {
_this6 = _super8.call(this);
_id2.set(_assertThisInitialized(_this6), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this6), _id2, {
writable: true,
value: ''
});
_status.set(_assertThisInitialized(_this6), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this6), _status, {
writable: true,
value: ''
});
@@ -6105,7 +6121,7 @@ var CMIInteractionsObjectivesObject = /*#__PURE__*/function (_BaseCMI7) {
_this7 = _super9.call(this);
_id3.set(_assertThisInitialized(_this7), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this7), _id3, {
writable: true,
value: ''
});
@@ -6181,7 +6197,7 @@ var CMIInteractionsCorrectResponsesObject = /*#__PURE__*/function (_BaseCMI8) {
_this8 = _super10.call(this);
_pattern.set(_assertThisInitialized(_this8), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this8), _pattern, {
writable: true,
value: ''
});
@@ -6256,7 +6272,7 @@ var NAV = /*#__PURE__*/function (_BaseCMI9) {
_this9 = _super11.call(this);
_event.set(_assertThisInitialized(_this9), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this9), _event, {
writable: true,
value: ''
});
@@ -6760,7 +6776,7 @@ function _inherits(subClass, superClass) { if (typeof superClass !== "function"
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); }; }
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
@@ -6776,6 +6792,10 @@ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || func
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
function _classPrivateFieldInitSpec(obj, privateMap, value) { _checkPrivateRedeclaration(obj, privateMap); privateMap.set(obj, value); }
function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError("Cannot initialize the same private elements twice on an object"); } }
function _classPrivateFieldGet(receiver, privateMap) { var descriptor = _classExtractFieldDescriptor(receiver, privateMap, "get"); return _classApplyDescriptorGet(receiver, descriptor); }
function _classApplyDescriptorGet(receiver, descriptor) { if (descriptor.get) { return descriptor.get.call(receiver); } return descriptor.value; }
@@ -6817,17 +6837,17 @@ var ValidationError = /*#__PURE__*/function (_Error) {
_this = _super.call(this, errorMessage);
_errorCode.set(_assertThisInitialized(_this), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this), _errorCode, {
writable: true,
value: void 0
});
_errorMessage.set(_assertThisInitialized(_this), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this), _errorMessage, {
writable: true,
value: void 0
});
_detailedMessage.set(_assertThisInitialized(_this), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this), _detailedMessage, {
writable: true,
value: void 0
});
@@ -7008,7 +7028,7 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
function _iterableToArrayLimit(arr, i) { var _i = arr && (typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]); if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }

342
dist/scorm-again.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

156
dist/scorm12.js vendored

File diff suppressed because one or more lines are too long

154
dist/scorm12.min.js vendored
View File

@@ -409,7 +409,7 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
function _iterableToArrayLimit(arr, i) { var _i = arr && (typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]); if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
@@ -427,6 +427,10 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
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; }
function _classPrivateFieldInitSpec(obj, privateMap, value) { _checkPrivateRedeclaration(obj, privateMap); privateMap.set(obj, value); }
function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError("Cannot initialize the same private elements twice on an object"); } }
function _classPrivateFieldGet(receiver, privateMap) { var descriptor = _classExtractFieldDescriptor(receiver, privateMap, "get"); return _classApplyDescriptorGet(receiver, descriptor); }
function _classApplyDescriptorGet(receiver, descriptor) { if (descriptor.get) { return descriptor.get.call(receiver); } return descriptor.value; }
@@ -460,17 +464,17 @@ var BaseAPI = /*#__PURE__*/function () {
function BaseAPI(error_codes, settings) {
_classCallCheck(this, BaseAPI);
_timeout.set(this, {
_classPrivateFieldInitSpec(this, _timeout, {
writable: true,
value: void 0
});
_error_codes.set(this, {
_classPrivateFieldInitSpec(this, _error_codes, {
writable: true,
value: void 0
});
_settings.set(this, {
_classPrivateFieldInitSpec(this, _settings, {
writable: true,
value: {
autocommit: false,
@@ -1740,22 +1744,22 @@ var ScheduledCommit = /*#__PURE__*/function () {
function ScheduledCommit(API, when, callback) {
_classCallCheck(this, ScheduledCommit);
_API.set(this, {
_classPrivateFieldInitSpec(this, _API, {
writable: true,
value: void 0
});
_cancelled.set(this, {
_classPrivateFieldInitSpec(this, _cancelled, {
writable: true,
value: false
});
_timeout2.set(this, {
_classPrivateFieldInitSpec(this, _timeout2, {
writable: true,
value: void 0
});
_callback.set(this, {
_classPrivateFieldInitSpec(this, _callback, {
writable: true,
value: void 0
});
@@ -1840,7 +1844,7 @@ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || func
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); }; }
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
@@ -2214,7 +2218,7 @@ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || func
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); }; }
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
@@ -2228,6 +2232,10 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
function _classPrivateFieldInitSpec(obj, privateMap, value) { _checkPrivateRedeclaration(obj, privateMap); privateMap.set(obj, value); }
function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError("Cannot initialize the same private elements twice on an object"); } }
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; }
function _classPrivateFieldSet(receiver, privateMap, value) { var descriptor = _classExtractFieldDescriptor(receiver, privateMap, "set"); _classApplyDescriptorSet(receiver, descriptor, value); return value; }
@@ -2311,12 +2319,12 @@ var BaseCMI = /*#__PURE__*/function () {
_defineProperty(this, "jsonString", false);
_initialized.set(this, {
_classPrivateFieldInitSpec(this, _initialized, {
writable: true,
value: false
});
_start_time.set(this, {
_classPrivateFieldInitSpec(this, _start_time, {
writable: true,
value: void 0
});
@@ -2428,52 +2436,52 @@ var CMIScore = /*#__PURE__*/function (_BaseCMI) {
_this = _super.call(this);
_children2.set(_assertThisInitialized(_this), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this), _children2, {
writable: true,
value: void 0
});
_score_range.set(_assertThisInitialized(_this), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this), _score_range, {
writable: true,
value: void 0
});
_invalid_error_code.set(_assertThisInitialized(_this), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this), _invalid_error_code, {
writable: true,
value: void 0
});
_invalid_type_code.set(_assertThisInitialized(_this), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this), _invalid_type_code, {
writable: true,
value: void 0
});
_invalid_range_code.set(_assertThisInitialized(_this), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this), _invalid_range_code, {
writable: true,
value: void 0
});
_decimal_regex.set(_assertThisInitialized(_this), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this), _decimal_regex, {
writable: true,
value: void 0
});
_error_class.set(_assertThisInitialized(_this), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this), _error_class, {
writable: true,
value: void 0
});
_raw.set(_assertThisInitialized(_this), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this), _raw, {
writable: true,
value: ''
});
_min.set(_assertThisInitialized(_this), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this), _min, {
writable: true,
value: ''
});
_max.set(_assertThisInitialized(_this), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this), _max, {
writable: true,
value: void 0
});
@@ -2633,17 +2641,17 @@ var CMIArray = /*#__PURE__*/function (_BaseCMI2) {
_this2 = _super2.call(this);
_errorCode.set(_assertThisInitialized(_this2), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this2), _errorCode, {
writable: true,
value: void 0
});
_errorClass.set(_assertThisInitialized(_this2), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this2), _errorClass, {
writable: true,
value: void 0
});
_children3.set(_assertThisInitialized(_this2), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this2), _children3, {
writable: true,
value: void 0
});
@@ -2769,7 +2777,7 @@ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || func
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); }; }
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
@@ -2779,6 +2787,10 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
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; }
function _classPrivateFieldInitSpec(obj, privateMap, value) { _checkPrivateRedeclaration(obj, privateMap); privateMap.set(obj, value); }
function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError("Cannot initialize the same private elements twice on an object"); } }
function _classPrivateFieldGet(receiver, privateMap) { var descriptor = _classExtractFieldDescriptor(receiver, privateMap, "get"); return _classApplyDescriptorGet(receiver, descriptor); }
function _classApplyDescriptorGet(receiver, descriptor) { if (descriptor.get) { return descriptor.get.call(receiver); } return descriptor.value; }
@@ -2872,27 +2884,27 @@ var CMI = /*#__PURE__*/function (_BaseCMI) {
_this = _super.call(this);
_children2.set(_assertThisInitialized(_this), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this), _children2, {
writable: true,
value: ''
});
_version2.set(_assertThisInitialized(_this), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this), _version2, {
writable: true,
value: '3.4'
});
_launch_data.set(_assertThisInitialized(_this), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this), _launch_data, {
writable: true,
value: ''
});
_comments.set(_assertThisInitialized(_this), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this), _comments, {
writable: true,
value: ''
});
_comments_from_lms.set(_assertThisInitialized(_this), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this), _comments_from_lms, {
writable: true,
value: ''
});
@@ -3140,62 +3152,62 @@ var CMICore = /*#__PURE__*/function (_BaseCMI2) {
_this2 = _super2.call(this);
_children3.set(_assertThisInitialized(_this2), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this2), _children3, {
writable: true,
value: scorm12_constants.core_children
});
_student_id.set(_assertThisInitialized(_this2), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this2), _student_id, {
writable: true,
value: ''
});
_student_name.set(_assertThisInitialized(_this2), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this2), _student_name, {
writable: true,
value: ''
});
_lesson_location.set(_assertThisInitialized(_this2), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this2), _lesson_location, {
writable: true,
value: ''
});
_credit.set(_assertThisInitialized(_this2), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this2), _credit, {
writable: true,
value: ''
});
_lesson_status.set(_assertThisInitialized(_this2), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this2), _lesson_status, {
writable: true,
value: 'not attempted'
});
_entry.set(_assertThisInitialized(_this2), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this2), _entry, {
writable: true,
value: ''
});
_total_time.set(_assertThisInitialized(_this2), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this2), _total_time, {
writable: true,
value: ''
});
_lesson_mode.set(_assertThisInitialized(_this2), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this2), _lesson_mode, {
writable: true,
value: 'normal'
});
_exit.set(_assertThisInitialized(_this2), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this2), _exit, {
writable: true,
value: ''
});
_session_time.set(_assertThisInitialized(_this2), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this2), _session_time, {
writable: true,
value: '00:00:00'
});
_suspend_data.set(_assertThisInitialized(_this2), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this2), _suspend_data, {
writable: true,
value: ''
});
@@ -3576,22 +3588,22 @@ var CMIStudentData = /*#__PURE__*/function (_BaseCMI3) {
_this3 = _super4.call(this);
_children4.set(_assertThisInitialized(_this3), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this3), _children4, {
writable: true,
value: void 0
});
_mastery_score.set(_assertThisInitialized(_this3), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this3), _mastery_score, {
writable: true,
value: ''
});
_max_time_allowed.set(_assertThisInitialized(_this3), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this3), _max_time_allowed, {
writable: true,
value: ''
});
_time_limit_action.set(_assertThisInitialized(_this3), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this3), _time_limit_action, {
writable: true,
value: ''
});
@@ -3737,27 +3749,27 @@ var CMIStudentPreference = /*#__PURE__*/function (_BaseCMI4) {
_this4 = _super5.call(this);
_children5.set(_assertThisInitialized(_this4), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this4), _children5, {
writable: true,
value: void 0
});
_audio.set(_assertThisInitialized(_this4), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this4), _audio, {
writable: true,
value: ''
});
_language.set(_assertThisInitialized(_this4), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this4), _language, {
writable: true,
value: ''
});
_speed.set(_assertThisInitialized(_this4), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this4), _speed, {
writable: true,
value: ''
});
_text.set(_assertThisInitialized(_this4), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this4), _text, {
writable: true,
value: ''
});
@@ -3960,37 +3972,37 @@ var CMIInteractionsObject = /*#__PURE__*/function (_BaseCMI5) {
_this5 = _super7.call(this);
_id.set(_assertThisInitialized(_this5), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this5), _id, {
writable: true,
value: ''
});
_time.set(_assertThisInitialized(_this5), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this5), _time, {
writable: true,
value: ''
});
_type.set(_assertThisInitialized(_this5), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this5), _type, {
writable: true,
value: ''
});
_weighting.set(_assertThisInitialized(_this5), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this5), _weighting, {
writable: true,
value: ''
});
_student_response.set(_assertThisInitialized(_this5), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this5), _student_response, {
writable: true,
value: ''
});
_result.set(_assertThisInitialized(_this5), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this5), _result, {
writable: true,
value: ''
});
_latency.set(_assertThisInitialized(_this5), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this5), _latency, {
writable: true,
value: ''
});
@@ -4229,12 +4241,12 @@ var CMIObjectivesObject = /*#__PURE__*/function (_BaseCMI6) {
_this6 = _super8.call(this);
_id2.set(_assertThisInitialized(_this6), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this6), _id2, {
writable: true,
value: ''
});
_status.set(_assertThisInitialized(_this6), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this6), _status, {
writable: true,
value: ''
});
@@ -4342,7 +4354,7 @@ var CMIInteractionsObjectivesObject = /*#__PURE__*/function (_BaseCMI7) {
_this7 = _super9.call(this);
_id3.set(_assertThisInitialized(_this7), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this7), _id3, {
writable: true,
value: ''
});
@@ -4418,7 +4430,7 @@ var CMIInteractionsCorrectResponsesObject = /*#__PURE__*/function (_BaseCMI8) {
_this8 = _super10.call(this);
_pattern.set(_assertThisInitialized(_this8), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this8), _pattern, {
writable: true,
value: ''
});
@@ -4493,7 +4505,7 @@ var NAV = /*#__PURE__*/function (_BaseCMI9) {
_this9 = _super11.call(this);
_event.set(_assertThisInitialized(_this9), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this9), _event, {
writable: true,
value: ''
});
@@ -4997,7 +5009,7 @@ function _inherits(subClass, superClass) { if (typeof superClass !== "function"
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); }; }
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
@@ -5013,6 +5025,10 @@ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || func
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
function _classPrivateFieldInitSpec(obj, privateMap, value) { _checkPrivateRedeclaration(obj, privateMap); privateMap.set(obj, value); }
function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError("Cannot initialize the same private elements twice on an object"); } }
function _classPrivateFieldGet(receiver, privateMap) { var descriptor = _classExtractFieldDescriptor(receiver, privateMap, "get"); return _classApplyDescriptorGet(receiver, descriptor); }
function _classApplyDescriptorGet(receiver, descriptor) { if (descriptor.get) { return descriptor.get.call(receiver); } return descriptor.value; }
@@ -5054,17 +5070,17 @@ var ValidationError = /*#__PURE__*/function (_Error) {
_this = _super.call(this, errorMessage);
_errorCode.set(_assertThisInitialized(_this), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this), _errorCode, {
writable: true,
value: void 0
});
_errorMessage.set(_assertThisInitialized(_this), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this), _errorMessage, {
writable: true,
value: void 0
});
_detailedMessage.set(_assertThisInitialized(_this), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this), _detailedMessage, {
writable: true,
value: void 0
});
@@ -5245,7 +5261,7 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
function _iterableToArrayLimit(arr, i) { var _i = arr && (typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]); if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }

186
dist/scorm2004.js vendored

File diff suppressed because one or more lines are too long

184
dist/scorm2004.min.js vendored
View File

@@ -409,7 +409,7 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
function _iterableToArrayLimit(arr, i) { var _i = arr && (typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]); if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
@@ -427,6 +427,10 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
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; }
function _classPrivateFieldInitSpec(obj, privateMap, value) { _checkPrivateRedeclaration(obj, privateMap); privateMap.set(obj, value); }
function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError("Cannot initialize the same private elements twice on an object"); } }
function _classPrivateFieldGet(receiver, privateMap) { var descriptor = _classExtractFieldDescriptor(receiver, privateMap, "get"); return _classApplyDescriptorGet(receiver, descriptor); }
function _classApplyDescriptorGet(receiver, descriptor) { if (descriptor.get) { return descriptor.get.call(receiver); } return descriptor.value; }
@@ -460,17 +464,17 @@ var BaseAPI = /*#__PURE__*/function () {
function BaseAPI(error_codes, settings) {
_classCallCheck(this, BaseAPI);
_timeout.set(this, {
_classPrivateFieldInitSpec(this, _timeout, {
writable: true,
value: void 0
});
_error_codes.set(this, {
_classPrivateFieldInitSpec(this, _error_codes, {
writable: true,
value: void 0
});
_settings.set(this, {
_classPrivateFieldInitSpec(this, _settings, {
writable: true,
value: {
autocommit: false,
@@ -1740,22 +1744,22 @@ var ScheduledCommit = /*#__PURE__*/function () {
function ScheduledCommit(API, when, callback) {
_classCallCheck(this, ScheduledCommit);
_API.set(this, {
_classPrivateFieldInitSpec(this, _API, {
writable: true,
value: void 0
});
_cancelled.set(this, {
_classPrivateFieldInitSpec(this, _cancelled, {
writable: true,
value: false
});
_timeout2.set(this, {
_classPrivateFieldInitSpec(this, _timeout2, {
writable: true,
value: void 0
});
_callback.set(this, {
_classPrivateFieldInitSpec(this, _callback, {
writable: true,
value: void 0
});
@@ -1844,7 +1848,7 @@ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || func
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); }; }
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
@@ -1854,6 +1858,10 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
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; }
function _classPrivateFieldInitSpec(obj, privateMap, value) { _checkPrivateRedeclaration(obj, privateMap); privateMap.set(obj, value); }
function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError("Cannot initialize the same private elements twice on an object"); } }
function _classPrivateFieldGet(receiver, privateMap) { var descriptor = _classExtractFieldDescriptor(receiver, privateMap, "get"); return _classApplyDescriptorGet(receiver, descriptor); }
function _classExtractFieldDescriptor(receiver, privateMap, action) { if (!privateMap.has(receiver)) { throw new TypeError("attempted to " + action + " private field on non-instance"); } return privateMap.get(receiver); }
@@ -1891,7 +1899,7 @@ var Scorm2004API = /*#__PURE__*/function (_BaseAPI) {
_this = _super.call(this, scorm2004_error_codes, finalSettings);
_version.set(_assertThisInitialized(_this), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this), _version, {
writable: true,
value: void 0
});
@@ -2507,7 +2515,7 @@ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || func
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); }; }
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
@@ -2521,6 +2529,10 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
function _classPrivateFieldInitSpec(obj, privateMap, value) { _checkPrivateRedeclaration(obj, privateMap); privateMap.set(obj, value); }
function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError("Cannot initialize the same private elements twice on an object"); } }
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; }
function _classPrivateFieldSet(receiver, privateMap, value) { var descriptor = _classExtractFieldDescriptor(receiver, privateMap, "set"); _classApplyDescriptorSet(receiver, descriptor, value); return value; }
@@ -2604,12 +2616,12 @@ var BaseCMI = /*#__PURE__*/function () {
_defineProperty(this, "jsonString", false);
_initialized.set(this, {
_classPrivateFieldInitSpec(this, _initialized, {
writable: true,
value: false
});
_start_time.set(this, {
_classPrivateFieldInitSpec(this, _start_time, {
writable: true,
value: void 0
});
@@ -2721,52 +2733,52 @@ var CMIScore = /*#__PURE__*/function (_BaseCMI) {
_this = _super.call(this);
_children2.set(_assertThisInitialized(_this), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this), _children2, {
writable: true,
value: void 0
});
_score_range.set(_assertThisInitialized(_this), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this), _score_range, {
writable: true,
value: void 0
});
_invalid_error_code.set(_assertThisInitialized(_this), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this), _invalid_error_code, {
writable: true,
value: void 0
});
_invalid_type_code.set(_assertThisInitialized(_this), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this), _invalid_type_code, {
writable: true,
value: void 0
});
_invalid_range_code.set(_assertThisInitialized(_this), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this), _invalid_range_code, {
writable: true,
value: void 0
});
_decimal_regex.set(_assertThisInitialized(_this), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this), _decimal_regex, {
writable: true,
value: void 0
});
_error_class.set(_assertThisInitialized(_this), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this), _error_class, {
writable: true,
value: void 0
});
_raw.set(_assertThisInitialized(_this), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this), _raw, {
writable: true,
value: ''
});
_min.set(_assertThisInitialized(_this), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this), _min, {
writable: true,
value: ''
});
_max.set(_assertThisInitialized(_this), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this), _max, {
writable: true,
value: void 0
});
@@ -2926,17 +2938,17 @@ var CMIArray = /*#__PURE__*/function (_BaseCMI2) {
_this2 = _super2.call(this);
_errorCode.set(_assertThisInitialized(_this2), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this2), _errorCode, {
writable: true,
value: void 0
});
_errorClass.set(_assertThisInitialized(_this2), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this2), _errorClass, {
writable: true,
value: void 0
});
_children3.set(_assertThisInitialized(_this2), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this2), _children3, {
writable: true,
value: void 0
});
@@ -3060,7 +3072,7 @@ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || func
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); }; }
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
@@ -3068,6 +3080,10 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
function _classPrivateFieldInitSpec(obj, privateMap, value) { _checkPrivateRedeclaration(obj, privateMap); privateMap.set(obj, value); }
function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError("Cannot initialize the same private elements twice on an object"); } }
function _classPrivateFieldSet(receiver, privateMap, value) { var descriptor = _classExtractFieldDescriptor(receiver, privateMap, "set"); _classApplyDescriptorSet(receiver, descriptor, value); return value; }
function _classApplyDescriptorSet(receiver, descriptor, value) { if (descriptor.set) { descriptor.set.call(receiver, value); } else { if (!descriptor.writable) { throw new TypeError("attempted to set read only private field"); } descriptor.value = value; } }
@@ -3205,102 +3221,102 @@ var CMI = /*#__PURE__*/function (_BaseCMI) {
_this = _super.call(this);
_version2.set(_assertThisInitialized(_this), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this), _version2, {
writable: true,
value: '1.0'
});
_children2.set(_assertThisInitialized(_this), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this), _children2, {
writable: true,
value: scorm2004_constants.cmi_children
});
_completion_status.set(_assertThisInitialized(_this), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this), _completion_status, {
writable: true,
value: 'unknown'
});
_completion_threshold.set(_assertThisInitialized(_this), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this), _completion_threshold, {
writable: true,
value: ''
});
_credit.set(_assertThisInitialized(_this), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this), _credit, {
writable: true,
value: 'credit'
});
_entry.set(_assertThisInitialized(_this), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this), _entry, {
writable: true,
value: ''
});
_exit.set(_assertThisInitialized(_this), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this), _exit, {
writable: true,
value: ''
});
_launch_data.set(_assertThisInitialized(_this), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this), _launch_data, {
writable: true,
value: ''
});
_learner_id.set(_assertThisInitialized(_this), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this), _learner_id, {
writable: true,
value: ''
});
_learner_name.set(_assertThisInitialized(_this), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this), _learner_name, {
writable: true,
value: ''
});
_location.set(_assertThisInitialized(_this), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this), _location, {
writable: true,
value: ''
});
_max_time_allowed.set(_assertThisInitialized(_this), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this), _max_time_allowed, {
writable: true,
value: ''
});
_mode.set(_assertThisInitialized(_this), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this), _mode, {
writable: true,
value: 'normal'
});
_progress_measure.set(_assertThisInitialized(_this), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this), _progress_measure, {
writable: true,
value: ''
});
_scaled_passing_score.set(_assertThisInitialized(_this), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this), _scaled_passing_score, {
writable: true,
value: ''
});
_session_time.set(_assertThisInitialized(_this), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this), _session_time, {
writable: true,
value: 'PT0H0M0S'
});
_success_status.set(_assertThisInitialized(_this), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this), _success_status, {
writable: true,
value: 'unknown'
});
_suspend_data.set(_assertThisInitialized(_this), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this), _suspend_data, {
writable: true,
value: ''
});
_time_limit_action.set(_assertThisInitialized(_this), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this), _time_limit_action, {
writable: true,
value: 'continue,no message'
});
_total_time.set(_assertThisInitialized(_this), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this), _total_time, {
writable: true,
value: ''
});
@@ -3831,27 +3847,27 @@ var CMILearnerPreference = /*#__PURE__*/function (_BaseCMI2) {
_this2 = _super2.call(this);
_children3.set(_assertThisInitialized(_this2), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this2), _children3, {
writable: true,
value: scorm2004_constants.student_preference_children
});
_audio_level.set(_assertThisInitialized(_this2), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this2), _audio_level, {
writable: true,
value: '1'
});
_language.set(_assertThisInitialized(_this2), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this2), _language, {
writable: true,
value: ''
});
_delivery_speed.set(_assertThisInitialized(_this2), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this2), _delivery_speed, {
writable: true,
value: '1'
});
_audio_captioning.set(_assertThisInitialized(_this2), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this2), _audio_captioning, {
writable: true,
value: '0'
});
@@ -4125,42 +4141,42 @@ var CMIInteractionsObject = /*#__PURE__*/function (_BaseCMI3) {
_this3 = _super7.call(this);
_id.set(_assertThisInitialized(_this3), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this3), _id, {
writable: true,
value: ''
});
_type.set(_assertThisInitialized(_this3), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this3), _type, {
writable: true,
value: ''
});
_timestamp.set(_assertThisInitialized(_this3), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this3), _timestamp, {
writable: true,
value: ''
});
_weighting.set(_assertThisInitialized(_this3), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this3), _weighting, {
writable: true,
value: ''
});
_learner_response.set(_assertThisInitialized(_this3), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this3), _learner_response, {
writable: true,
value: ''
});
_result.set(_assertThisInitialized(_this3), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this3), _result, {
writable: true,
value: ''
});
_latency.set(_assertThisInitialized(_this3), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this3), _latency, {
writable: true,
value: ''
});
_description.set(_assertThisInitialized(_this3), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this3), _description, {
writable: true,
value: ''
});
@@ -4498,27 +4514,27 @@ var CMIObjectivesObject = /*#__PURE__*/function (_BaseCMI4) {
_this4 = _super8.call(this);
_id2.set(_assertThisInitialized(_this4), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this4), _id2, {
writable: true,
value: ''
});
_success_status2.set(_assertThisInitialized(_this4), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this4), _success_status2, {
writable: true,
value: 'unknown'
});
_completion_status2.set(_assertThisInitialized(_this4), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this4), _completion_status2, {
writable: true,
value: 'unknown'
});
_progress_measure2.set(_assertThisInitialized(_this4), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this4), _progress_measure2, {
writable: true,
value: ''
});
_description2.set(_assertThisInitialized(_this4), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this4), _description2, {
writable: true,
value: ''
});
@@ -4722,7 +4738,7 @@ var Scorm2004CMIScore = /*#__PURE__*/function (_CMIScore) {
errorClass: _exceptions.Scorm2004ValidationError
});
_scaled.set(_assertThisInitialized(_this5), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this5), _scaled, {
writable: true,
value: ''
});
@@ -4811,22 +4827,22 @@ var CMICommentsObject = /*#__PURE__*/function (_BaseCMI5) {
_this6 = _super10.call(this);
_comment.set(_assertThisInitialized(_this6), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this6), _comment, {
writable: true,
value: ''
});
_location2.set(_assertThisInitialized(_this6), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this6), _location2, {
writable: true,
value: ''
});
_timestamp2.set(_assertThisInitialized(_this6), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this6), _timestamp2, {
writable: true,
value: ''
});
_readOnlyAfterInit.set(_assertThisInitialized(_this6), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this6), _readOnlyAfterInit, {
writable: true,
value: void 0
});
@@ -4965,7 +4981,7 @@ var CMIInteractionsObjectivesObject = /*#__PURE__*/function (_BaseCMI6) {
_this7 = _super11.call(this);
_id3.set(_assertThisInitialized(_this7), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this7), _id3, {
writable: true,
value: ''
});
@@ -5040,7 +5056,7 @@ var CMIInteractionsCorrectResponsesObject = /*#__PURE__*/function (_BaseCMI7) {
_this8 = _super12.call(this);
_pattern.set(_assertThisInitialized(_this8), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this8), _pattern, {
writable: true,
value: ''
});
@@ -5178,7 +5194,7 @@ var ADLNav = /*#__PURE__*/function (_BaseCMI9) {
_this10 = _super14.call(this);
_request.set(_assertThisInitialized(_this10), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this10), _request, {
writable: true,
value: '_none_'
});
@@ -5268,12 +5284,12 @@ var ADLNavRequestValid = /*#__PURE__*/function (_BaseCMI10) {
_this11 = _super15.call(this);
_continue.set(_assertThisInitialized(_this11), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this11), _continue, {
writable: true,
value: 'unknown'
});
_previous.set(_assertThisInitialized(_this11), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this11), _previous, {
writable: true,
value: 'unknown'
});
@@ -6218,7 +6234,7 @@ var learner = {
unique: false
},
'choice': {
format: scorm2004_regex.CMIShortIdentifier,
format: scorm2004_regex.CMILongIdentifier,
max: 36,
delimiter: '[,]',
unique: true
@@ -6290,7 +6306,7 @@ var correct = {
delimiter: '[,]',
unique: true,
duplicate: false,
format: scorm2004_regex.CMIShortIdentifier
format: scorm2004_regex.CMILongIdentifier
},
'fill-in': {
max: 10,
@@ -6387,7 +6403,7 @@ function _inherits(subClass, superClass) { if (typeof superClass !== "function"
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); }; }
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
@@ -6403,6 +6419,10 @@ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || func
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
function _classPrivateFieldInitSpec(obj, privateMap, value) { _checkPrivateRedeclaration(obj, privateMap); privateMap.set(obj, value); }
function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError("Cannot initialize the same private elements twice on an object"); } }
function _classPrivateFieldGet(receiver, privateMap) { var descriptor = _classExtractFieldDescriptor(receiver, privateMap, "get"); return _classApplyDescriptorGet(receiver, descriptor); }
function _classApplyDescriptorGet(receiver, descriptor) { if (descriptor.get) { return descriptor.get.call(receiver); } return descriptor.value; }
@@ -6444,17 +6464,17 @@ var ValidationError = /*#__PURE__*/function (_Error) {
_this = _super.call(this, errorMessage);
_errorCode.set(_assertThisInitialized(_this), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this), _errorCode, {
writable: true,
value: void 0
});
_errorMessage.set(_assertThisInitialized(_this), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this), _errorMessage, {
writable: true,
value: void 0
});
_detailedMessage.set(_assertThisInitialized(_this), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this), _detailedMessage, {
writable: true,
value: void 0
});
@@ -6635,7 +6655,7 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
function _iterableToArrayLimit(arr, i) { var _i = arr && (typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]); if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }

View File

@@ -1,30 +1,30 @@
{
"name": "scorm-again",
"version": "1.6.0",
"version": "1.6.1",
"description": "A modern SCORM JavaScript run-time library for AICC, SCORM 1.2, and SCORM 2004",
"main": "dist/scorm-again.min.js",
"directories": {
"test": "test"
},
"devDependencies": {
"@babel/cli": "^7.14.3",
"@babel/core": "^7.14.3",
"@babel/node": "^7.14.2",
"@babel/plugin-proposal-class-properties": "^7.13.0",
"@babel/plugin-proposal-optional-chaining": "^7.14.2",
"@babel/plugin-proposal-private-methods": "^7.13.0",
"@babel/preset-env": "^7.14.2",
"@babel/preset-flow": "^7.13.13",
"@babel/register": "^7.13.16",
"@types/chai": "^4.2.18",
"@types/mocha": "^8.2.2",
"@babel/cli": "^7.15.4",
"@babel/core": "^7.15.5",
"@babel/node": "^7.15.4",
"@babel/plugin-proposal-class-properties": "^7.14.5",
"@babel/plugin-proposal-optional-chaining": "^7.14.5",
"@babel/plugin-proposal-private-methods": "^7.14.5",
"@babel/preset-env": "^7.15.4",
"@babel/preset-flow": "^7.14.5",
"@babel/register": "^7.15.3",
"@types/chai": "^4.2.21",
"@types/mocha": "^9.0.0",
"babel-eslint": "^11.0.0-beta.2",
"babelify": "^10.0.0",
"browserify": "^17.0.0",
"chai": "^4.3.4",
"eslint": "^7.27.0",
"eslint": "^7.32.0",
"eslint-config-google": "^0.14.0",
"eslint-plugin-import": "^2.23.3",
"eslint-plugin-import": "^2.24.2",
"fetch-pretender": "^1.5.0",
"grunt": "^1.4.1",
"grunt-browserify": "^6.0.0",
@@ -35,11 +35,11 @@
"jsdoc-babel": "^0.5.0",
"lodash.debounce": "^4.0.8",
"minimist": "^1.2.5",
"mocha": "^8.4.0",
"mocha": "^9.1.1",
"mocha-junit-reporter": "^2.0.0",
"mochawesome": "^6.2.1",
"nyc": "^15.1.0",
"sinon": "^11.1.1",
"sinon": "^11.1.2",
"uglifyify": "^5.0.2"
},
"scripts": {

View File

@@ -11,7 +11,7 @@ const learner = {
unique: false,
},
'choice': {
format: scorm2004_regex.CMIShortIdentifier,
format: scorm2004_regex.CMILongIdentifier,
max: 36,
delimiter: '[,]',
unique: true,
@@ -85,7 +85,7 @@ const correct = {
delimiter: '[,]',
unique: true,
duplicate: false,
format: scorm2004_regex.CMIShortIdentifier,
format: scorm2004_regex.CMILongIdentifier,
},
'fill-in': {
max: 10,

View File

@@ -356,6 +356,19 @@ describe('SCORM 2004 API Tests', () => {
String(scorm2004API.lmsGetLastError()),
).to.equal(String(0));
});
it('should allow cmi.interactions.0.correct_responses.0.pattern to be set - choice for SCORM 2004 4th Edition',
() => {
const scorm2004API = apiInitialized();
scorm2004API.setCMIValue('cmi.interactions.0.id',
'urn:scormdriver:Test_Your_Knowledge.Select_the_ONE_TRUE_answer._0');
scorm2004API.setCMIValue('cmi.interactions.0.type', 'choice');
scorm2004API.setCMIValue(
'cmi.interactions.0.correct_responses.0.pattern',
'urn:scormdriver:This%20is%20a%20choice.');
expect(
String(scorm2004API.lmsGetLastError()),
).to.equal(String(0));
});
it('should allow cmi.interactions.0.objectives.0.id to be set',
() => {
const scorm2004API = apiInitialized();
@@ -386,6 +399,27 @@ describe('SCORM 2004 API Tests', () => {
scorm2004API.getCMIValue('cmi.interactions.0.learner_response'),
).to.equal('VP_on-call_or_President');
});
it('should allow cmi.interactions.0.learner_response to be set for SCORM 2004 4th Edition',
() => {
const scorm2004API = apiInitialized();
scorm2004API.setCMIValue('cmi.interactions.0.id',
'urn:scormdriver:Test_Your_Knowledge.Select_the_ONE_TRUE_answer._0');
scorm2004API.setCMIValue('cmi.interactions.0.type', 'choice');
scorm2004API.setCMIValue('cmi.interactions.0.learner_response',
'urn:scormdriver:This%20is%20an%20incorrect%20response.');
expect(
String(scorm2004API.lmsGetLastError()),
).to.equal(String(0));
expect(
scorm2004API.getCMIValue('cmi.interactions.0.id'),
).to.equal('urn:scormdriver:Test_Your_Knowledge.Select_the_ONE_TRUE_answer._0');
expect(
scorm2004API.getCMIValue('cmi.interactions.0.type'),
).to.equal('choice');
expect(
scorm2004API.getCMIValue('cmi.interactions.0.learner_response'),
).to.equal('urn:scormdriver:This%20is%20an%20incorrect%20response.');
});
it('should allow `long-fill-in` cmi.interactions.0.learner_response to be set to 4000 characters',
() => {
const scorm2004API = apiInitialized();
@@ -405,10 +439,8 @@ describe('SCORM 2004 API Tests', () => {
).to.equal('long-fill-in');
expect(
scorm2004API.getCMIValue('cmi.interactions.0.learner_response'),
).
to.
equal(
'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer et sodales purus, in aliquam ex. Nunc suscipit interdum tortor ut hendrerit. Donec auctor erat suscipit justo hendrerit, at lacinia ipsum ullamcorper. Cras sollicitudin vestibulum malesuada. Sed non nibh pharetra, suscipit ipsum sed, maximus tortor. Morbi pharetra accumsan turpis id fringilla. In volutpat metus a dui semper, nec tincidunt nibh aliquam. Praesent viverra neque in elementum commodo. Integer hendrerit placerat ante, ac finibus urna tincidunt at. Phasellus consectetur mauris vitae orci viverra luctus. Proin vestibulum blandit mauris quis pellentesque. Proin volutpat hendrerit nisi. Etiam pellentesque urna nec massa congue ultricies. Mauris at eros viverra, posuere tortor id, elementum nisi. In hac habitasse platea dictumst. Pellentesque semper tristique arcu, in tristique metus. Vestibulum ut lacus dui. Aenean mattis malesuada arcu non ullamcorper. Suspendisse tincidunt euismod tincidunt. In tincidunt at nunc rhoncus vehicula. Quisque nulla massa, vestibulum nec laoreet sit amet, posuere eu massa. Donec accumsan efficitur turpis, quis eleifend odio aliquam a. Phasellus placerat ante id dui consectetur dictum. Morbi aliquam, nibh id elementum suscipit, neque ante scelerisque velit, at feugiat turpis odio ac ligula. Phasellus vel urna nulla. Donec vulputate nulla vel purus pellentesque gravida. Vestibulum rutrum, est vel cursus ultrices, orci arcu scelerisque magna, id facilisis mauris arcu ut turpis. Vestibulum consectetur faucibus ante, eu posuere quam ornare et. Aenean vitae dictum neque. Donec nisl justo, porta a sapien quis, luctus congue diam. Integer id metus dolor. Maecenas euismod vulputate leo in lobortis. Vestibulum dignissim finibus est, sed sollicitudin ipsum hendrerit ac. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia curae; Pellentesque diam lorem, mattis vel orci interdum, tempor luctus elit. Ut id porta nisi. In dignissim quam urna, et iaculis lectus eleifend ut. Nam vitae felis ac risus tincidunt elementum. Nunc hendrerit augue a nulla hendrerit rutrum. Integer euismod est at orci eleifend, sed laoreet justo auctor. Sed sem orci, imperdiet at erat non, vehicula convallis libero. Aenean hendrerit cursus leo ut malesuada. Donec eu placerat lorem. Sed mattis tristique lorem, eget placerat erat scelerisque faucibus. Vivamus eleifend in augue id mollis. Nulla vehicula, metus eu auctor accumsan, lectus sapien pretium dui, non scelerisque magna augue a sem. Suspendisse sem enim, mattis ac augue non, placerat accumsan sem. Vivamus hendrerit, sapien sit amet consectetur pulvinar, ante nisl pulvinar purus, a ullamcorper dolor leo id arcu. Aliquam sed metus arcu. Quisque erat libero, tincidunt non dictum vel, bibendum ut ante. Nunc vel imperdiet risus. Sed sit amet porta enim. Mauris metus tortor, mattis vitae convallis vitae, dictum nec dui. Aliquam volutpat nisi consequat, gravida tellus eget, cursus purus. Nunc at venenatis enim. Proin dictum, magna ultrices tempor aliquam, metus lacus consectetur odio, quis pharetra massa est at est. Nullam non nibh massa. Duis scelerisque massa a luctus vehicula. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Donec tortor lacus, consequat eget neque sit amet, imperdiet porttitor felis. Duis ante erat, cursus sed venenatis nec, semper sollicitudin felis. Sed tincidunt et tortor quis vehicula. Morbi porta dapibus quam quis iaculis. Nunc mauris dolor, rutrum non pellentesque consectetur, ornare quis lacus. Maecenas eget feugiat odio. Proin vitae magna ut justo bibendum lacinia consequat at orci. Phasellus tincidunt lorem eu justo mollis sagittis. Maecenas fermentum nunc augue, et bibendum augue varius venenatis. Donec eu purus at tellus ullamcorper imperdiet. Duis id orci laoreet, semper eros et, tincidunt nisl. Suspendisse vehicula sed enim ut dignissim. Nam ornare leo eu nibh malesuada, eget ullamcorper sapien egestas. In at commod');
).to.equal(
'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer et sodales purus, in aliquam ex. Nunc suscipit interdum tortor ut hendrerit. Donec auctor erat suscipit justo hendrerit, at lacinia ipsum ullamcorper. Cras sollicitudin vestibulum malesuada. Sed non nibh pharetra, suscipit ipsum sed, maximus tortor. Morbi pharetra accumsan turpis id fringilla. In volutpat metus a dui semper, nec tincidunt nibh aliquam. Praesent viverra neque in elementum commodo. Integer hendrerit placerat ante, ac finibus urna tincidunt at. Phasellus consectetur mauris vitae orci viverra luctus. Proin vestibulum blandit mauris quis pellentesque. Proin volutpat hendrerit nisi. Etiam pellentesque urna nec massa congue ultricies. Mauris at eros viverra, posuere tortor id, elementum nisi. In hac habitasse platea dictumst. Pellentesque semper tristique arcu, in tristique metus. Vestibulum ut lacus dui. Aenean mattis malesuada arcu non ullamcorper. Suspendisse tincidunt euismod tincidunt. In tincidunt at nunc rhoncus vehicula. Quisque nulla massa, vestibulum nec laoreet sit amet, posuere eu massa. Donec accumsan efficitur turpis, quis eleifend odio aliquam a. Phasellus placerat ante id dui consectetur dictum. Morbi aliquam, nibh id elementum suscipit, neque ante scelerisque velit, at feugiat turpis odio ac ligula. Phasellus vel urna nulla. Donec vulputate nulla vel purus pellentesque gravida. Vestibulum rutrum, est vel cursus ultrices, orci arcu scelerisque magna, id facilisis mauris arcu ut turpis. Vestibulum consectetur faucibus ante, eu posuere quam ornare et. Aenean vitae dictum neque. Donec nisl justo, porta a sapien quis, luctus congue diam. Integer id metus dolor. Maecenas euismod vulputate leo in lobortis. Vestibulum dignissim finibus est, sed sollicitudin ipsum hendrerit ac. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia curae; Pellentesque diam lorem, mattis vel orci interdum, tempor luctus elit. Ut id porta nisi. In dignissim quam urna, et iaculis lectus eleifend ut. Nam vitae felis ac risus tincidunt elementum. Nunc hendrerit augue a nulla hendrerit rutrum. Integer euismod est at orci eleifend, sed laoreet justo auctor. Sed sem orci, imperdiet at erat non, vehicula convallis libero. Aenean hendrerit cursus leo ut malesuada. Donec eu placerat lorem. Sed mattis tristique lorem, eget placerat erat scelerisque faucibus. Vivamus eleifend in augue id mollis. Nulla vehicula, metus eu auctor accumsan, lectus sapien pretium dui, non scelerisque magna augue a sem. Suspendisse sem enim, mattis ac augue non, placerat accumsan sem. Vivamus hendrerit, sapien sit amet consectetur pulvinar, ante nisl pulvinar purus, a ullamcorper dolor leo id arcu. Aliquam sed metus arcu. Quisque erat libero, tincidunt non dictum vel, bibendum ut ante. Nunc vel imperdiet risus. Sed sit amet porta enim. Mauris metus tortor, mattis vitae convallis vitae, dictum nec dui. Aliquam volutpat nisi consequat, gravida tellus eget, cursus purus. Nunc at venenatis enim. Proin dictum, magna ultrices tempor aliquam, metus lacus consectetur odio, quis pharetra massa est at est. Nullam non nibh massa. Duis scelerisque massa a luctus vehicula. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Donec tortor lacus, consequat eget neque sit amet, imperdiet porttitor felis. Duis ante erat, cursus sed venenatis nec, semper sollicitudin felis. Sed tincidunt et tortor quis vehicula. Morbi porta dapibus quam quis iaculis. Nunc mauris dolor, rutrum non pellentesque consectetur, ornare quis lacus. Maecenas eget feugiat odio. Proin vitae magna ut justo bibendum lacinia consequat at orci. Phasellus tincidunt lorem eu justo mollis sagittis. Maecenas fermentum nunc augue, et bibendum augue varius venenatis. Donec eu purus at tellus ullamcorper imperdiet. Duis id orci laoreet, semper eros et, tincidunt nisl. Suspendisse vehicula sed enim ut dignissim. Nam ornare leo eu nibh malesuada, eget ullamcorper sapien egestas. In at commod');
});
});
@@ -558,9 +590,7 @@ describe('SCORM 2004 API Tests', () => {
'cmi.interactions.0.objectives.0.correct_responses.0.pattern': 'CPR',
}, '');
scorm2004API.lmsInitialize();
expect(scorm2004API.lmsGetValue('cmi.interactions.0.id')).
to.
eq('Question14_1');
expect(scorm2004API.lmsGetValue('cmi.interactions.0.id')).to.eq('Question14_1');
});
});

1600
yarn.lock

File diff suppressed because it is too large Load Diff