@didask/scol-r 2.11.0-beta.1 → 2.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -40,6 +40,7 @@ var MessageReceiver = /** @class */ (function () {
40
40
  };
41
41
  MessageReceiver.prototype.setLessonStatus = function (lessonStatus) {
42
42
  this.adapter.setLessonStatus(lessonStatus);
43
+ this.adapter.LMSCommit(); // We commit the changes to the LMS each time the lesson status is updated.
43
44
  };
44
45
  MessageReceiver.prototype.setObjectives = function (objectivesIds) {
45
46
  if (this.adapter.objectivesAreAvailable) {
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ var bun_test_1 = require("bun:test");
4
+ var SCORMAdapter_1 = require("./SCORMAdapter");
5
+ bun_test_1.test('convertMsToCMITimespan ("0000:00:00.00")', function () {
6
+ var milliseconds = (36 * 60 * 60 * 1000) + (6 * 60 * 1000) + (2 * 1000) + (23 * 10);
7
+ var CMITimespan = SCORMAdapter_1.convertMsToCMITimespan(milliseconds);
8
+ bun_test_1.expect(CMITimespan).toBe('0036:06:02.23');
9
+ });
10
+ bun_test_1.test('convertToTimeInterval', function () {
11
+ var milliseconds = (36 * 60 * 60 * 1000) + (6 * 60 * 1000) + (2 * 1000) + (23 * 10);
12
+ var timeInterval = SCORMAdapter_1.convertToTimeInterval(milliseconds);
13
+ bun_test_1.expect(timeInterval).toBe('P1DT12H6M2');
14
+ });
@@ -162,6 +162,7 @@ function loadContent(_a) {
162
162
  iframe.setAttribute("frameborder", "0");
163
163
  iframe.setAttribute("height", "100%");
164
164
  iframe.setAttribute("width", "100%");
165
+ iframe.setAttribute("allow", "microphone");
165
166
  document.body.insertBefore(iframe, document.getElementById("wrapper"));
166
167
  sessionStart = new Date();
167
168
  host = sourceUrlParser.host;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@didask/scol-r",
3
- "version": "2.11.0-beta.1",
3
+ "version": "2.12.0",
4
4
  "description": "Shareable Cross-Origin Learning Resources",
5
5
  "main": "index.html",
6
6
  "types": "lib/index.d.ts",