mirror of
https://github.com/jspsych/jsPsych.git
synced 2025-05-12 08:38:11 +00:00

Instead of a global `jsPsych` object, there is a `JsPsych` class now which can be instantiated with the parameters that were previously accepted by `jsPsych.init`. Upon instantiation, the `JsPsych` class also instantiates classes for stateful modules (`jsPsych.data` and `jsPsych.pluginAPI`) and passes relevant `JsPsych` instance information to them. Plugins are expected to be classes now that are instantiated for each trial and receive the `JsPsych` instance as their only constructor argument.
38 lines
846 B
JSON
38 lines
846 B
JSON
{
|
|
"name": "jspsych",
|
|
"version": "7.0.0",
|
|
"description": "Behavioral experiments in a browser",
|
|
"type": "module",
|
|
"main": "dist/index.js",
|
|
"typings": "dist/index.d.ts",
|
|
"unpkg": "dist/index.browser.min.js",
|
|
"files": [
|
|
"src",
|
|
"dist",
|
|
"css"
|
|
],
|
|
"source": "src/index.ts",
|
|
"directories": {
|
|
"test": "tests"
|
|
},
|
|
"scripts": {
|
|
"test": "jest --config jest.config.cjs",
|
|
"build": "rollup --config rollup.config.mjs",
|
|
"watch": "npm run build -- --watch",
|
|
"tsc": "tsc"
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/jspsych/jsPsych.git"
|
|
},
|
|
"author": "Josh de Leeuw",
|
|
"license": "MIT",
|
|
"bugs": {
|
|
"url": "https://github.com/jspsych/jsPsych/issues"
|
|
},
|
|
"homepage": "https://github.com/jspsych/jsPsych#readme",
|
|
"dependencies": {
|
|
"auto-bind": "^4.0.0"
|
|
}
|
|
}
|