jspsych 8.2.0 → 8.2.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.
package/README.md CHANGED
@@ -25,7 +25,7 @@ You can learn more about setting up a project by following the [hello world tuto
25
25
 
26
26
  Once you've got a project set up, the [reaction time task tutorial](https://www.jspsych.org/latest/tutorials/rt-task/) is a great next step, since it covers many core topics and features.
27
27
 
28
- There are also a number of [video tutorials](https://www.jspsych.org/latest/tutorials/video-tutorials) available on the website.
28
+ There are also a number of [community tutorials](https://www.jspsych.org/latest/tutorials/community-tutorials) available on the website.
29
29
 
30
30
  ## Examples
31
31
 
@@ -51,7 +51,7 @@ var jsPsychModule = (function (exports) {
51
51
 
52
52
  var autoBind$1 = /*@__PURE__*/getDefaultExportFromCjs(autoBind);
53
53
 
54
- var version = "8.2.0";
54
+ var version = "8.2.1";
55
55
 
56
56
  class ExtensionManager {
57
57
  constructor(dependencies, extensionsConfiguration) {
@@ -3673,6 +3673,11 @@ var jsPsychModule = (function (exports) {
3673
3673
  this.turk = turk;
3674
3674
  this.randomization = randomization;
3675
3675
  this.utils = utils;
3676
+ // prettier-ignore
3677
+ this.citation = {
3678
+ "apa": "de Leeuw, J. R., Gilbert, R. A., & Luchterhandt, B. (2023). jsPsych: Enabling an Open-Source Collaborative Ecosystem of Behavioral Experiments. Journal of Open Source Software, 8(85), 5351. https://doi.org/10.21105/joss.05351 ",
3679
+ "bibtex": '@article{Leeuw2023jsPsych, author = {de Leeuw, Joshua R. and Gilbert, Rebecca A. and Luchterhandt, Bj{\\" o}rn}, journal = {Journal of Open Source Software}, doi = {10.21105/joss.05351}, issn = {2475-9066}, number = {85}, year = {2023}, month = {may 11}, pages = {5351}, publisher = {Open Journals}, title = {jsPsych: Enabling an {Open}-{Source} {Collaborative} {Ecosystem} of {Behavioral} {Experiments}}, url = {https://joss.theoj.org/papers/10.21105/joss.05351}, volume = {8}, } '
3680
+ };
3676
3681
  /** Options */
3677
3682
  this.options = {};
3678
3683
  /**
@@ -3892,17 +3897,13 @@ var jsPsychModule = (function (exports) {
3892
3897
  */
3893
3898
  getCitations(plugins = [], format = "apa") {
3894
3899
  const formatOptions = ["apa", "bibtex"];
3895
- const jsPsychCitations = {
3896
- "apa": "de Leeuw, J. R., Gilbert, R. A., & Luchterhandt, B. (2023). jsPsych: Enabling an Open-Source Collaborative Ecosystem of Behavioral Experiments. Journal of Open Source Software, 8(85), 5351. https://doi.org/10.21105/joss.05351 ",
3897
- "bibtex": '@article{Leeuw2023jsPsych, author = {de Leeuw, Joshua R. and Gilbert, Rebecca A. and Luchterhandt, Bj{\\" o}rn}, journal = {Journal of Open Source Software}, doi = {10.21105/joss.05351}, issn = {2475-9066}, number = {85}, year = {2023}, month = {may 11}, pages = {5351}, publisher = {Open Journals}, title = {jsPsych: Enabling an {Open}-{Source} {Collaborative} {Ecosystem} of {Behavioral} {Experiments}}, url = {https://joss.theoj.org/papers/10.21105/joss.05351}, volume = {8}, } '
3898
- };
3899
3900
  format = format.toLowerCase();
3900
3901
  if (!Array.isArray(plugins)) {
3901
3902
  throw new Error("Expected array of plugins/extensions");
3902
3903
  } else if (!formatOptions.includes(format)) {
3903
3904
  throw new Error("Unsupported citation format");
3904
3905
  } else {
3905
- const jsPsychCitation = jsPsychCitations[format];
3906
+ const jsPsychCitation = this.citation[format];
3906
3907
  const citationSet = /* @__PURE__ */ new Set([jsPsychCitation]);
3907
3908
  for (const plugin of plugins) {
3908
3909
  try {
@@ -4050,4 +4051,4 @@ var jsPsychModule = (function (exports) {
4050
4051
 
4051
4052
  })({});
4052
4053
  var initJsPsych = jsPsychModule.initJsPsych;
4053
- //# sourceMappingURL=https://unpkg.com/jspsych@8.2.0/dist/index.browser.js.map
4054
+ //# sourceMappingURL=https://unpkg.com/jspsych@8.2.1/dist/index.browser.js.map