@digabi/exam-engine-core 23.1.4-alpha.0 → 23.1.5-alpha.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -3,7 +3,7 @@ import { findChildElement, getAttribute, queryAll } from '../dom-utils';
3
3
  export default function parseExam(examXml, deterministicRendering = false) {
4
4
  const doc = new DOMParser().parseFromString(examXml, 'application/xml');
5
5
  if (!deterministicRendering) {
6
- queryAll(doc.documentElement, ['choice-answer', 'dropdown-answer'], true)
6
+ queryAll(doc.documentElement, ['choice-answer', 'dropdown-answer'])
7
7
  .filter(e => getAttribute(e, 'ordering') !== 'fixed')
8
8
  .forEach(randomizeOptions);
9
9
  }
@@ -1 +1 @@
1
- {"version":3,"file":"parseExam.js","sourceRoot":"","sources":["../../src/parser/parseExam.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,WAAW,CAAA;AAC9B,OAAO,EAAE,gBAAgB,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAA;AAEvE,MAAM,CAAC,OAAO,UAAU,SAAS,CAAC,OAAe,EAAE,sBAAsB,GAAG,KAAK;IAC/E,MAAM,GAAG,GAAG,IAAI,SAAS,EAAE,CAAC,eAAe,CAAC,OAAO,EAAE,iBAAiB,CAAC,CAAA;IACvE,IAAI,CAAC,sBAAsB,EAAE,CAAC;QAC5B,QAAQ,CAAC,GAAG,CAAC,eAAe,EAAE,CAAC,eAAe,EAAE,iBAAiB,CAAC,EAAE,IAAI,CAAC;aACtE,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,YAAY,CAAC,CAAC,EAAE,UAAU,CAAC,KAAK,OAAO,CAAC;aACpD,OAAO,CAAC,gBAAgB,CAAC,CAAA;IAC9B,CAAC;IAED,6EAA6E;IAC7E,kEAAkE;IAClE,4EAA4E;IAC5E,4EAA4E;IAC5E,wEAAwE;IACxE,QAAQ,CAAC,GAAG,CAAC,eAAe,EAAE,WAAW,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE;QAC7D,QAAQ,CAAC,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BAAyB,CAAC,CAAC,WAAY,CAAC,CAAA;IACjH,CAAC;AACH,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digabi/exam-engine-core",
3
- "version": "23.1.4-alpha.0",
3
+ "version": "23.1.5-alpha.0",
4
4
  "main": "dist/main-bundle.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "author": "Matriculation Examination Board, Finland",
@@ -59,5 +59,5 @@
59
59
  "webpack-bundle-analyzer": "^4.1.0",
60
60
  "webpack-cli": "^5.0.2"
61
61
  },
62
- "gitHead": "79f06fa1b98ba90969b246ddee0aa934fd69b9a0"
62
+ "gitHead": "4316e67f6e6c29049e600c53a529d9de4ec348b2"
63
63
  }