@didask/scol-r 2.7.0-beta.1 → 2.8.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.
@@ -128,8 +128,9 @@ var SCORMAdapter = /** @class */ (function () {
128
128
  else if (!this._isSCORM2004 && !(fun.indexOf("LMS") == 0)) {
129
129
  fun = "LMS" + fun;
130
130
  }
131
- console.info("[SCOL-R] Calling a scorm api function", { fun: fun, args: args });
132
- return this._API[fun].apply(this._API, args);
131
+ var result = this._API[fun].apply(this._API, args);
132
+ console.info("[SCOL-R] ".concat(fun, "(").concat(args.join(", "), ") = ").concat(JSON.stringify(result)));
133
+ return result;
133
134
  };
134
135
  SCORMAdapter.prototype._handleError = function (functionName) {
135
136
  var lastErrorCode = this.LMSGetLastError();
@@ -104,8 +104,7 @@ function loadContent() {
104
104
  "scorm" +
105
105
  "&learner_id=".concat(learnerId) +
106
106
  "&learner_name=".concat(learnerName) +
107
- "&lms_origin=".concat(encodeURIComponent(location.origin)) +
108
- "&data_from_lms=".concat(ADAPTER.getDataFromLMS());
107
+ "&lms_origin=".concat(encodeURIComponent(location.origin));
109
108
  var iframe = document.createElement("iframe");
110
109
  iframe.setAttribute("src", sourceUrlParser.href);
111
110
  iframe.setAttribute("frameborder", "0");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@didask/scol-r",
3
- "version": "2.7.0-beta.1",
3
+ "version": "2.8.0",
4
4
  "description": "Shareable Cross-Origin Learning Resources",
5
5
  "main": "index.html",
6
6
  "types": "lib/index.d.ts",