@didask/scol-r 2.2.1 → 2.2.2

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.
@@ -20,7 +20,7 @@ export declare class SCORMAdapter {
20
20
  LMSGetLastError(): number;
21
21
  LMSGetErrorString(errorCode: number): any;
22
22
  LMSGetDiagnostic(errorCode: number): any;
23
- getLastRequest(): {
23
+ get lastRequest(): {
24
24
  method: "get" | "set";
25
25
  key: string;
26
26
  };
@@ -184,9 +184,13 @@ var SCORMAdapter = /** @class */ (function () {
184
184
  SCORMAdapter.prototype.LMSGetDiagnostic = function (errorCode) {
185
185
  return this._callAPIFunction("GetDiagnostic", [errorCode]);
186
186
  };
187
- SCORMAdapter.prototype.getLastRequest = function () {
188
- return this._lastRequest;
189
- };
187
+ Object.defineProperty(SCORMAdapter.prototype, "lastRequest", {
188
+ get: function () {
189
+ return this._lastRequest;
190
+ },
191
+ enumerable: false,
192
+ configurable: true
193
+ });
190
194
  SCORMAdapter.prototype.getDataFromLMS = function () {
191
195
  return this.LMSGetValue("cmi.launch_data");
192
196
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@didask/scol-r",
3
- "version": "2.2.1",
3
+ "version": "2.2.2",
4
4
  "description": "Shareable Cross-Origin Learning Resources",
5
5
  "main": "index.html",
6
6
  "types": "lib/index.d.ts",