@wg-npm/survey-core 0.5.732 → 0.5.735
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 +4 -4
- package/src/models.ts +2 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wg-npm/survey-core",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.735",
|
|
4
4
|
"description": "",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"scripts": {
|
|
@@ -30,8 +30,8 @@
|
|
|
30
30
|
"eslint-plugin-vue": "^6.2.2",
|
|
31
31
|
"lodash": "^4.17.15",
|
|
32
32
|
"prettier": "^2.0.5",
|
|
33
|
-
"rollup": "
|
|
34
|
-
"rollup-plugin-dts": "
|
|
33
|
+
"rollup": "2.20.0",
|
|
34
|
+
"rollup-plugin-dts": "1.4.7",
|
|
35
35
|
"rollup-plugin-terser": "^6.1.0",
|
|
36
36
|
"rollup-plugin-typescript2": "^0.27.1",
|
|
37
37
|
"tslib": "^2.0.0",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"publishConfig": {
|
|
48
48
|
"access": "public"
|
|
49
49
|
},
|
|
50
|
-
"gitHead": "
|
|
50
|
+
"gitHead": "31890cb2f046e7cb86a10b05a350cce8877d6153",
|
|
51
51
|
"rollup": {
|
|
52
52
|
"external": [
|
|
53
53
|
"lodash"
|
package/src/models.ts
CHANGED
|
@@ -224,10 +224,11 @@ export class BaseQuestionModel {
|
|
|
224
224
|
const score =
|
|
225
225
|
_.max(
|
|
226
226
|
_.map(question.choices, (choice: any) =>
|
|
227
|
-
|
|
227
|
+
// @ts-ignore
|
|
228
228
|
parseFloat(_.get(choice, "options.score", 0) || 0)
|
|
229
229
|
)
|
|
230
230
|
) || 0;
|
|
231
|
+
// @ts-ignore
|
|
231
232
|
return score * question.subQuestions.length;
|
|
232
233
|
} else if (question.type == QuestionType.SCORING) {
|
|
233
234
|
const score = question.options.maxRange;
|