@mimik/local 5.0.2 → 5.0.3
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/index.js +3 -0
- package/lib/helpers.js +4 -4
- package/package.json +1 -1
- package/scripts.json +2 -2
package/index.js
CHANGED
package/lib/helpers.js
CHANGED
|
@@ -191,17 +191,17 @@ const retrieve = (regType, filename, options) => {
|
|
|
191
191
|
if (!options.sourceFileName) {
|
|
192
192
|
if (!options.default) exitError(regType, { statusCode: 404, message: `no files or default (${errAltFilename})` }, filename);
|
|
193
193
|
console.log('- using ' + 'default'.warn + ' for ' + filename.info);
|
|
194
|
-
return write(filename, options.default, regType);
|
|
194
|
+
return write(filename, options.default, regType, true);
|
|
195
195
|
}
|
|
196
|
-
return write(filename, readSourceDefault(options.sourceFilename, options.sourceFilenameSupp, options.default, filename), regType);
|
|
196
|
+
return write(filename, readSourceDefault(options.sourceFilename, options.sourceFilenameSupp, options.default, filename), regType, true);
|
|
197
197
|
}
|
|
198
198
|
}
|
|
199
199
|
if (!options.sourceFilename) {
|
|
200
200
|
if (!options.default) exitError(regType, { statusCode: 404, message: `no files or default (${errFilename.message})` }, filename);
|
|
201
201
|
console.log('- using ' + 'default'.warn + ' for ' + filename.info);
|
|
202
|
-
return write(filename, options.default, regType);
|
|
202
|
+
return write(filename, options.default, regType, true);
|
|
203
203
|
}
|
|
204
|
-
return write(filename, readSourceDefault(options.sourceFilename, options.sourceFilenameSupp, options.default, filename), regType);
|
|
204
|
+
return write(filename, readSourceDefault(options.sourceFilename, options.sourceFilenameSupp, options.default, filename), regType, true);
|
|
205
205
|
}
|
|
206
206
|
};
|
|
207
207
|
|
package/package.json
CHANGED
package/scripts.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"scripts": {
|
|
3
3
|
"lint": "eslint --ignore-path .gitignore .",
|
|
4
|
-
"docs": "jsdoc2md
|
|
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",
|