diff --git a/packages/jspsych/src/ExtensionManager.ts b/packages/jspsych/src/ExtensionManager.ts index 02ce60d2fc..75802759d2 100644 --- a/packages/jspsych/src/ExtensionManager.ts +++ b/packages/jspsych/src/ExtensionManager.ts @@ -67,6 +67,15 @@ export class ExtensionManager { ) ); + const extensionInfo = trialExtensionsConfiguration.length + ? { + extension_type: results.map((result) => result.extension_type), + extension_version: results.map((result) => result.extension_version), + } + : {}; + + results.push(extensionInfo); + return Object.assign({}, ...results); } }