jspsych 7.2.1 → 7.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jspsych",
3
- "version": "7.2.1",
3
+ "version": "7.2.2",
4
4
  "description": "Behavioral experiments in a browser",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",
@@ -47,7 +47,7 @@
47
47
  },
48
48
  "devDependencies": {
49
49
  "@fontsource/open-sans": "4.5.3",
50
- "@jspsych/config": "^1.2.0",
50
+ "@jspsych/config": "^1.3.0",
51
51
  "@types/dom-mediacapture-record": "^1.0.11",
52
52
  "base64-inline-loader": "^2.0.1",
53
53
  "css-loader": "^6.6.0",
package/src/JsPsych.ts CHANGED
@@ -242,7 +242,7 @@ export class JsPsych {
242
242
  this.data.write(data);
243
243
 
244
244
  // get back the data with all of the defaults in
245
- const trial_data = this.data.get().filter({ trial_index: this.global_trial_index });
245
+ const trial_data = this.data.getLastTrialData();
246
246
 
247
247
  // for trial-level callbacks, we just want to pass in a reference to the values
248
248
  // of the DataCollection, for easy access and editing.