@scifeon/sdk 0.105.0 → 0.106.0

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.
@@ -35,7 +35,7 @@ export declare enum PLUGIN_TYPE {
35
35
  ELN_STEP_FORM_MODE = "eln.step.form.mode",
36
36
  ELN_STEP_CONTROL = "eln.step.control",
37
37
  ELN_STEP_SELECT_PROCEDURE_FILTER = "eln.step.select_procedure_filter",
38
- ELN_BATCH_CREATOR_COLUMN = "eln.batch_create.column",
38
+ ELN_BATCH_RECIPE_COLUMN = "eln.batch_recipe.column",
39
39
  FORM_VARIABLE_INJECTION = "form.variable_injection",
40
40
  PRE_PROCESS_SAVE_ENTITY = "pre_process_save_entity",
41
41
  ADMINISTRATION_SETTINGS = "administration.settings",
@@ -39,7 +39,7 @@ var PLUGIN_TYPE;
39
39
  PLUGIN_TYPE["ELN_STEP_FORM_MODE"] = "eln.step.form.mode";
40
40
  PLUGIN_TYPE["ELN_STEP_CONTROL"] = "eln.step.control";
41
41
  PLUGIN_TYPE["ELN_STEP_SELECT_PROCEDURE_FILTER"] = "eln.step.select_procedure_filter";
42
- PLUGIN_TYPE["ELN_BATCH_CREATOR_COLUMN"] = "eln.batch_create.column";
42
+ PLUGIN_TYPE["ELN_BATCH_RECIPE_COLUMN"] = "eln.batch_recipe.column";
43
43
  PLUGIN_TYPE["FORM_VARIABLE_INJECTION"] = "form.variable_injection";
44
44
  PLUGIN_TYPE["PRE_PROCESS_SAVE_ENTITY"] = "pre_process_save_entity";
45
45
  PLUGIN_TYPE["ADMINISTRATION_SETTINGS"] = "administration.settings";
@@ -21,8 +21,8 @@ const Mocha = require("mocha");
21
21
  function unitTestRunner(options, config, appType = "sdk") {
22
22
  const unitTestsJs = [];
23
23
  unitTestsJs.push(`import 'aurelia-polyfills';`);
24
- unitTestsJs.push(`const contextTest = require.context('../test', true, /\.test.ts$/);`);
25
- unitTestsJs.push("contextTest.keys().forEach(contextTest);");
24
+ unitTestsJs.push(`const contextSrc = require.context('../src', true, /\.test.ts$/);`);
25
+ unitTestsJs.push("contextSrc.keys().forEach(contextSrc);");
26
26
  if (!options.cli) {
27
27
  }
28
28
  file_utils_1.FileUtils.createDirRecurSync(path.resolve(config.tempDir));
@@ -46,13 +46,13 @@ function unitTestRunner(options, config, appType = "sdk") {
46
46
  return `${source}\n\nmodule.exports = ${transformBundleName(bundleName)};`;
47
47
  });
48
48
  for (const manifest of config.manifests) {
49
- global[transformBundleName(manifest)] = require(path.resolve(config.wwwDir, `${manifest}.bundle`));
49
+ global[transformBundleName(manifest)] = require(path.resolve(config.wwwDir, manifest + ".bundle"));
50
50
  }
51
- global.scifeon_vendor = require(path.resolve(config.wwwDir, "vendor.bundle.js"));
51
+ global["scifeon_vendor"] = require(path.resolve(config.wwwDir, "vendor.bundle.js"));
52
52
  nodeHook.unhook(".js");
53
53
  const mocha = new Mocha();
54
54
  mocha.addFile(path.resolve(config.tempDir, "test-bundle.js"));
55
- const runner = mocha.run(failures => process.on("exit", () => process.exit(failures)));
55
+ const runner = mocha.run((failures) => process.on("exit", () => process.exit(failures)));
56
56
  const reportsPath = path.resolve(config.appPath, "test", "reports");
57
57
  if (options.htmlReport) {
58
58
  file_utils_1.FileUtils.createDirRecurSync(reportsPath);
@@ -76,7 +76,7 @@ exports.unitTestRunner = unitTestRunner;
76
76
  function transformBundleName(name) {
77
77
  name = name.replace("-", "_");
78
78
  if (!name.startsWith("scifeon")) {
79
- name = `scifeon_${name}`;
79
+ name = "scifeon_" + name;
80
80
  }
81
81
  return name;
82
82
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scifeon/sdk",
3
- "version": "0.105.0",
3
+ "version": "0.106.0",
4
4
  "description": "A tool for developing Apps for Scifeon.",
5
5
  "author": {
6
6
  "name": "Scifeon",
@@ -69,4 +69,4 @@
69
69
  "@types/node": "17.0.41",
70
70
  "rimraf": "3.0.2"
71
71
  }
72
- }
72
+ }