@khanacademy/perseus-score 2.1.0 → 2.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/dist/es/index.js +22 -9
- package/dist/es/index.js.map +1 -1
- package/dist/index.js +22 -9
- package/dist/index.js.map +1 -1
- package/dist/score.d.ts +0 -7
- package/package.json +4 -4
package/dist/score.d.ts
CHANGED
|
@@ -5,13 +5,6 @@ import type { PerseusRenderer, PerseusWidgetsMap } from "@khanacademy/perseus-co
|
|
|
5
5
|
* Trying to encapsulate references to the score format.
|
|
6
6
|
*/
|
|
7
7
|
export declare function scoreIsEmpty(score: PerseusScore): boolean;
|
|
8
|
-
/**
|
|
9
|
-
* Combine two score objects.
|
|
10
|
-
*
|
|
11
|
-
* Given two score objects for two different widgets, combine them so that
|
|
12
|
-
* if one is wrong, the total score is wrong, etc.
|
|
13
|
-
*/
|
|
14
|
-
export declare function combineScores(scoreA: PerseusScore, scoreB: PerseusScore): PerseusScore;
|
|
15
8
|
export declare function flattenScores(widgetScoreMap: {
|
|
16
9
|
[widgetId: string]: PerseusScore;
|
|
17
10
|
}): PerseusScore;
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "Perseus score",
|
|
4
4
|
"author": "Khan Academy",
|
|
5
5
|
"license": "MIT",
|
|
6
|
-
"version": "2.1
|
|
6
|
+
"version": "2.2.1",
|
|
7
7
|
"publishConfig": {
|
|
8
8
|
"access": "public"
|
|
9
9
|
},
|
|
@@ -26,9 +26,9 @@
|
|
|
26
26
|
"test": "bash -c 'yarn --silent --cwd \"../..\" test ${@:0} $($([[ ${@: -1} = -* ]] || [[ ${@: -1} = bash ]]) && echo $PWD)'"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@khanacademy/kas": "^0.4.
|
|
30
|
-
"@khanacademy/kmath": "^0.3.
|
|
31
|
-
"@khanacademy/perseus-core": "3.
|
|
29
|
+
"@khanacademy/kas": "^0.4.15",
|
|
30
|
+
"@khanacademy/kmath": "^0.3.4",
|
|
31
|
+
"@khanacademy/perseus-core": "3.6.0"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {},
|
|
34
34
|
"peerDependencies": {},
|