scorm-again 3.1.0 → 3.1.1

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.
@@ -6179,18 +6179,12 @@ class Scorm12API extends BaseAPI {
6179
6179
  if (terminateCommit || includeTotalTime) {
6180
6180
  cmiExport.cmi.core.total_time = this.cmi.getCurrentTotalTime();
6181
6181
  }
6182
- const result = [];
6183
6182
  const flattened = flatten(cmiExport);
6184
6183
  switch (this.settings.dataCommitFormat) {
6185
6184
  case "flattened":
6186
6185
  return flattened;
6187
6186
  case "params":
6188
- for (const item in flattened) {
6189
- if ({}.hasOwnProperty.call(flattened, item)) {
6190
- result.push(`${item}=${flattened[item]}`);
6191
- }
6192
- }
6193
- return result;
6187
+ return Object.entries(flattened).map(([item, value]) => `${item}=${value}`);
6194
6188
  case "json":
6195
6189
  default:
6196
6190
  return cmiExport;