@digabi/exam-engine-cli 19.9.7 → 19.9.9
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.
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"create-mex.d.ts","sourceRoot":"","sources":["../../src/commands/create-mex.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"create-mex.d.ts","sourceRoot":"","sources":["../../src/commands/create-mex.ts"],"names":[],"mappings":"AAMA,wBAA8B,aAAa,CAAC,EAC1C,IAAI,EACJ,MAA2B,EAC3B,UAAU,EACV,aAAa,EACb,UAAU,EACV,UAAU,EACV,SAAS,EACT,SAAS,EACV,EAAE;IACD,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,UAAU,EAAE,MAAM,CAAA;IAClB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,UAAU,EAAE,MAAM,CAAA;IAClB,UAAU,EAAE,MAAM,CAAA;IAClB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,GAAG,OAAO,CAAC,IAAI,CAAC,CA6BhB"}
|
@@ -31,7 +31,6 @@ const fs_1 = require("fs");
|
|
31
31
|
const path_1 = __importDefault(require("path"));
|
32
32
|
const uuid = __importStar(require("uuid"));
|
33
33
|
const utils_1 = require("../utils");
|
34
|
-
const exam_engine_rendering_1 = require("@digabi/exam-engine-rendering");
|
35
34
|
async function createMexExam({ exam, outdir = path_1.default.dirname(exam), nsaScripts, securityCodes, passphrase, privateKey, ktpUpdate, koeUpdate }) {
|
36
35
|
const attachmentsDir = path_1.default.resolve(path_1.default.dirname(exam), 'attachments');
|
37
36
|
const resolveAttachment = (attachment) => path_1.default.resolve(attachmentsDir, attachment);
|
@@ -42,15 +41,11 @@ async function createMexExam({ exam, outdir = path_1.default.dirname(exam), nsaS
|
|
42
41
|
for (const { language, xml, attachments, type } of results) {
|
43
42
|
const suffix = type === 'normal' ? '' : type === 'visually-impaired' ? '_vi' : '_hi';
|
44
43
|
const outputFilename = `${(0, utils_1.examName)(exam)}_${language}${suffix}.mex`;
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
contents: (0, fs_1.createReadStream)(await (0, exam_engine_rendering_1.createFileWithCleanExif)(resolveAttachment(filename)))
|
51
|
-
});
|
52
|
-
}
|
53
|
-
await (0, exam_engine_mastering_1.createMex)(xml, attachmentStreams, (0, fs_1.createReadStream)(nsaScripts), securityCodes ? (0, fs_1.createReadStream)(securityCodes) : null, passphrase, answersPrivateKey, (0, fs_1.createWriteStream)(path_1.default.resolve(outdir, outputFilename)), null, ktpUpdate ? (0, fs_1.createReadStream)(ktpUpdate) : undefined, koeUpdate ? (0, fs_1.createReadStream)(koeUpdate) : undefined);
|
44
|
+
await (0, exam_engine_mastering_1.createMex)(xml, attachments.map(({ filename, restricted }) => ({
|
45
|
+
filename,
|
46
|
+
restricted,
|
47
|
+
contents: (0, fs_1.createReadStream)(resolveAttachment(filename))
|
48
|
+
})), (0, fs_1.createReadStream)(nsaScripts), securityCodes ? (0, fs_1.createReadStream)(securityCodes) : null, passphrase, answersPrivateKey, (0, fs_1.createWriteStream)(path_1.default.resolve(outdir, outputFilename)), null, ktpUpdate ? (0, fs_1.createReadStream)(ktpUpdate) : undefined, koeUpdate ? (0, fs_1.createReadStream)(koeUpdate) : undefined);
|
54
49
|
}
|
55
50
|
}
|
56
51
|
exports.default = createMexExam;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"create-mex.js","sourceRoot":"","sources":["../../src/commands/create-mex.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yEAAoG;AACpG,2BAAwE;AACxE,gDAAuB;AACvB,2CAA4B;AAC5B,oCAAmC;
|
1
|
+
{"version":3,"file":"create-mex.js","sourceRoot":"","sources":["../../src/commands/create-mex.ts"],"names":[],"mappings":";;;;;;;;;;;;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AQ,GAAG,MAAM,MAAM,CAAA;QACnE,MAAM,IAAA,iCAAS,EACb,GAAG,EACH,WAAW,CAAC,GAAG,CAAC,CAAC,EAAE,QAAQ,EAAE,UAAU,EAAE,EAAE,EAAE,CAAC,CAAC;YAC7C,QAAQ;YACR,UAAU;YACV,QAAQ,EAAE,IAAA,qBAAgB,EAAC,iBAAiB,CAAC,QAAQ,CAAC,CAAC;SACxD,CAAC,CAAC,EACH,IAAA,qBAAgB,EAAC,UAAU,CAAC,EAC5B,aAAa,CAAC,CAAC,CAAC,IAAA,qBAAgB,EAAC,aAAa,CAAC,CAAC,CAAC,CAAC,IAAI,EACtD,UAAU,EACV,iBAAiB,EACjB,IAAA,sBAAiB,EAAC,cAAI,CAAC,OAAO,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC,EACvD,IAAI,EACJ,SAAS,CAAC,CAAC,CAAC,IAAA,qBAAgB,EAAC,SAAS,CAAC,CAAC,CAAC,CAAC,SAAS,EACnD,SAAS,CAAC,CAAC,CAAC,IAAA,qBAAgB,EAAC,SAAS,CAAC,CAAC,CAAC,CAAC,SAAS,CACpD,CAAA;KACF;AACH,CAAC;AA/CD,gCA+CC"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@digabi/exam-engine-cli",
|
3
|
-
"version": "19.9.
|
3
|
+
"version": "19.9.9",
|
4
4
|
"main": "index.js",
|
5
5
|
"license": "EUPL-1.1",
|
6
6
|
"files": [
|
@@ -10,13 +10,13 @@
|
|
10
10
|
"ee": "./dist/index.js"
|
11
11
|
},
|
12
12
|
"dependencies": {
|
13
|
-
"@digabi/exam-engine-mastering": "19.9.
|
14
|
-
"@digabi/exam-engine-rendering": "19.9.
|
13
|
+
"@digabi/exam-engine-mastering": "19.9.9",
|
14
|
+
"@digabi/exam-engine-rendering": "19.9.9",
|
15
15
|
"lodash": "^4.17.15",
|
16
16
|
"ora": "^5.0.0",
|
17
17
|
"rich-text-editor": "^7.1.6",
|
18
18
|
"uuid": "^9.0.0",
|
19
19
|
"yargs": "^17.0.1"
|
20
20
|
},
|
21
|
-
"gitHead": "
|
21
|
+
"gitHead": "bd7d48b099dd13e0b08e64e04250886ae06f2326"
|
22
22
|
}
|