scorm-again 3.1.0 → 3.1.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.
@@ -10776,12 +10776,6 @@ class TerminationHandler {
10776
10776
  }
10777
10777
  }
10778
10778
  } while (processedExit);
10779
- if (!hasSequencingRequest && !postConditionResult.sequencingRequest) {
10780
- const current = this.activityTree.currentActivity || currentActivity;
10781
- if (current.parent) {
10782
- this.activityTree.setCurrentActivityWithoutActivation(current.parent);
10783
- }
10784
- }
10785
10779
  return {
10786
10780
  terminationRequest: SequencingRequestType.EXIT,
10787
10781
  sequencingRequest: postConditionResult.sequencingRequest,
@@ -22306,19 +22300,13 @@ class Scorm2004DataSerializer {
22306
22300
  } else {
22307
22301
  delete cmiExport.cmi.total_time;
22308
22302
  }
22309
- const result = [];
22310
22303
  const flattened = flatten(cmiExport);
22311
22304
  const settings = this.context.getSettings();
22312
22305
  switch (settings.dataCommitFormat) {
22313
22306
  case "flattened":
22314
- return flatten(cmiExport);
22307
+ return flattened;
22315
22308
  case "params":
22316
- for (const item in flattened) {
22317
- if ({}.hasOwnProperty.call(flattened, item)) {
22318
- result.push(`${item}=${flattened[item]}`);
22319
- }
22320
- }
22321
- return result;
22309
+ return Object.entries(flattened).map(([item, value]) => `${item}=${value}`);
22322
22310
  case "json":
22323
22311
  default:
22324
22312
  return cmiExport;