Comparing version 0.13.3 to 0.13.4
@@ -12,3 +12,2 @@ 'use strict'; | ||
config = fs.readFileSync(path.resolve(relativeRoot, '.mockyeah')); | ||
config = JSON.parse(config); | ||
} catch (err) { | ||
@@ -22,3 +21,2 @@ // noop | ||
config = fs.readFileSync(path.resolve(relativeRoot, '.mock-yeah')); | ||
config = JSON.parse(config); | ||
} | ||
@@ -29,2 +27,8 @@ } catch (err) { | ||
try { | ||
if (config) config = JSON.parse(config); | ||
} catch (err) { | ||
throw new Error('Invalid JSON in .mockyeah configuration file'); | ||
} | ||
module.exports = prepareConfig(config); |
{ | ||
"name": "mockyeah", | ||
"version": "0.13.3", | ||
"version": "0.13.4", | ||
"description": "An invaluable service mocking platform built on Express.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -16,4 +16,4 @@ # mockyeah [![Build Status](https://travis-ci.org/ryanricard/mockyeah.svg)](https://travis-ci.org/ryanricard/mockyeah) | ||
- [Introductory tutorial](#Introductory-tutorial) | ||
- [Testing example](#Testing-example) | ||
- [Introductory tutorial](#introductory-tutorial) | ||
- [Testing example](#testing-example) | ||
@@ -20,0 +20,0 @@ ## API |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
300671
56
1014