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 +1 -1
- package/dist/index.browser.js +8 -7
- package/dist/index.browser.js.map +1 -1
- package/dist/index.browser.min.js +3 -3
- package/dist/index.browser.min.js.map +1 -1
- package/dist/index.cjs +7 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +7 -6
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/src/JsPsych.ts +4 -3
- package/src/timeline/Timeline.spec.ts +2 -2
- package/src/timeline/Trial.spec.ts +1 -1
package/dist/index.cjs
CHANGED
|
@@ -4,7 +4,7 @@ var autoBind = require('auto-bind');
|
|
|
4
4
|
var rw = require('random-words');
|
|
5
5
|
var seedrandom = require('seedrandom/lib/alea.js');
|
|
6
6
|
|
|
7
|
-
var version = "8.2.
|
|
7
|
+
var version = "8.2.1";
|
|
8
8
|
|
|
9
9
|
class ExtensionManager {
|
|
10
10
|
constructor(dependencies, extensionsConfiguration) {
|
|
@@ -2312,6 +2312,11 @@ class JsPsych {
|
|
|
2312
2312
|
this.turk = turk;
|
|
2313
2313
|
this.randomization = randomization;
|
|
2314
2314
|
this.utils = utils;
|
|
2315
|
+
// prettier-ignore
|
|
2316
|
+
this.citation = {
|
|
2317
|
+
"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 ",
|
|
2318
|
+
"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}, } '
|
|
2319
|
+
};
|
|
2315
2320
|
/** Options */
|
|
2316
2321
|
this.options = {};
|
|
2317
2322
|
/**
|
|
@@ -2531,17 +2536,13 @@ class JsPsych {
|
|
|
2531
2536
|
*/
|
|
2532
2537
|
getCitations(plugins = [], format = "apa") {
|
|
2533
2538
|
const formatOptions = ["apa", "bibtex"];
|
|
2534
|
-
const jsPsychCitations = {
|
|
2535
|
-
"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 ",
|
|
2536
|
-
"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}, } '
|
|
2537
|
-
};
|
|
2538
2539
|
format = format.toLowerCase();
|
|
2539
2540
|
if (!Array.isArray(plugins)) {
|
|
2540
2541
|
throw new Error("Expected array of plugins/extensions");
|
|
2541
2542
|
} else if (!formatOptions.includes(format)) {
|
|
2542
2543
|
throw new Error("Unsupported citation format");
|
|
2543
2544
|
} else {
|
|
2544
|
-
const jsPsychCitation =
|
|
2545
|
+
const jsPsychCitation = this.citation[format];
|
|
2545
2546
|
const citationSet = /* @__PURE__ */ new Set([jsPsychCitation]);
|
|
2546
2547
|
for (const plugin of plugins) {
|
|
2547
2548
|
try {
|