@mimik/local 5.0.6 → 5.0.7

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/lib/helpers.js CHANGED
@@ -33,11 +33,11 @@ const read = (filename, regType) => {
33
33
  return readFile;
34
34
  };
35
35
 
36
- const write = (fname, origContent, regType, withJSON) => {
37
- let content = origContent;
38
-
39
- if (withJSON) content = json.stringify(content, null, 2);
40
- try { fs.writeFileSync(fname, content); }
36
+ const write = (fname, content, regType, withJSON) => {
37
+ try {
38
+ if (withJSON) fs.writeFileSync(fname, json.stringify(content, null, 2));
39
+ else fs.writeFileSync(fname, content, null, 2);
40
+ }
41
41
  catch (err) { exitError(regType, err, fname); }
42
42
  return content;
43
43
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mimik/local",
3
- "version": "5.0.6",
3
+ "version": "5.0.7",
4
4
  "description": "Local setup configuration for normal and test opreration",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/scripts.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "lint": "eslint --ignore-path .gitignore .",
4
4
  "docs": "jsdoc2md ./src/configuration/config.js > README.md",
5
5
  "pretest": "node ./local/testSetup.js",
6
- "test": "mocha --reporter mochawesome --bail --check-leaks test/",
6
+ "test": "mocha --reporter mochawesome --bail --check-leaks --exit test/",
7
7
  "test-ci": "nyc --reporter=lcov --reporter=text npm test",
8
8
  "prestart": "node ./local/setup.js",
9
9
  "start": "sh server-start.sh",