Skip to content

Commit

Permalink
v2.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Marco Ricupero committed Feb 15, 2023
1 parent 8d8ccc1 commit 6b51fce
Show file tree
Hide file tree
Showing 19 changed files with 1,139 additions and 2,064 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,8 @@ npx mockettaro -r services


## Changelog
### 2.1.1
- Added default Access-Control-Allow-Origin Header to *
### 2.1.0
- Added support for txt (text/plain) files
### 2.0.0
Expand Down
4 changes: 2 additions & 2 deletions docs/Mockettaro.html
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,7 @@ <h5>Parameters</h5>
<div class="form-group">
<label class="col-sm-3 control-label">Source</label>
<div class="col-sm-9">
<p class="form-control-static"><a href="mockettaro.class.js.html">mockettaro.class.js</a>, <a href="mockettaro.class.js.html#line-116">line 116</a></p>
<p class="form-control-static"><a href="mockettaro.class.js.html">mockettaro.class.js</a>, <a href="mockettaro.class.js.html#line-117">line 117</a></p>
</div>
</div>

Expand All @@ -510,7 +510,7 @@ <h5>Parameters</h5>
</div>
<footer>
<div class="copyright">FooDoc Copyright © 2016 The contributors to the JSDoc3 and FooDoc projects.</div>
<div class="generated-by">Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.5</a> on 24th Aug 2020 using the <a href="https://github.com/steveush/foodoc">FooDoc template</a>.</div>
<div class="generated-by">Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.11</a> on 16th Feb 2023 using the <a href="https://github.com/steveush/foodoc">FooDoc template</a>.</div>
</footer>
<script src="js/jquery.min.js"></script>
<script src="js/bootstrap.min.js"></script>
Expand Down
2 changes: 1 addition & 1 deletion docs/MockettaroProgram.html
Original file line number Diff line number Diff line change
Expand Up @@ -963,7 +963,7 @@ <h5>Parameters</h5>
</div>
<footer>
<div class="copyright">FooDoc Copyright © 2016 The contributors to the JSDoc3 and FooDoc projects.</div>
<div class="generated-by">Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.5</a> on 24th Aug 2020 using the <a href="https://github.com/steveush/foodoc">FooDoc template</a>.</div>
<div class="generated-by">Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.11</a> on 16th Feb 2023 using the <a href="https://github.com/steveush/foodoc">FooDoc template</a>.</div>
</footer>
<script src="js/jquery.min.js"></script>
<script src="js/bootstrap.min.js"></script>
Expand Down
2 changes: 1 addition & 1 deletion docs/PathRetriever.html
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,7 @@ <h5>Parameters</h5>
</div>
<footer>
<div class="copyright">FooDoc Copyright © 2016 The contributors to the JSDoc3 and FooDoc projects.</div>
<div class="generated-by">Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.5</a> on 24th Aug 2020 using the <a href="https://github.com/steveush/foodoc">FooDoc template</a>.</div>
<div class="generated-by">Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.11</a> on 16th Feb 2023 using the <a href="https://github.com/steveush/foodoc">FooDoc template</a>.</div>
</footer>
<script src="js/jquery.min.js"></script>
<script src="js/bootstrap.min.js"></script>
Expand Down
2 changes: 1 addition & 1 deletion docs/RequestValidator.html
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ <h5>Parameters</h5>
</div>
<footer>
<div class="copyright">FooDoc Copyright © 2016 The contributors to the JSDoc3 and FooDoc projects.</div>
<div class="generated-by">Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.5</a> on 24th Aug 2020 using the <a href="https://github.com/steveush/foodoc">FooDoc template</a>.</div>
<div class="generated-by">Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.11</a> on 16th Feb 2023 using the <a href="https://github.com/steveush/foodoc">FooDoc template</a>.</div>
</footer>
<script src="js/jquery.min.js"></script>
<script src="js/bootstrap.min.js"></script>
Expand Down
2 changes: 1 addition & 1 deletion docs/ResourceLoader.html
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@ <h5>Parameters</h5>
</div>
<footer>
<div class="copyright">FooDoc Copyright © 2016 The contributors to the JSDoc3 and FooDoc projects.</div>
<div class="generated-by">Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.5</a> on 24th Aug 2020 using the <a href="https://github.com/steveush/foodoc">FooDoc template</a>.</div>
<div class="generated-by">Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.11</a> on 16th Feb 2023 using the <a href="https://github.com/steveush/foodoc">FooDoc template</a>.</div>
</footer>
<script src="js/jquery.min.js"></script>
<script src="js/bootstrap.min.js"></script>
Expand Down
2 changes: 1 addition & 1 deletion docs/global.html
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ <h1><span class="name">Globals</span></h1>
</div>
<footer>
<div class="copyright">FooDoc Copyright © 2016 The contributors to the JSDoc3 and FooDoc projects.</div>
<div class="generated-by">Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.5</a> on 24th Aug 2020 using the <a href="https://github.com/steveush/foodoc">FooDoc template</a>.</div>
<div class="generated-by">Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.11</a> on 16th Feb 2023 using the <a href="https://github.com/steveush/foodoc">FooDoc template</a>.</div>
</footer>
<script src="js/jquery.min.js"></script>
<script src="js/bootstrap.min.js"></script>
Expand Down
6 changes: 5 additions & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,10 @@ <h4>URL to test</h4>
<li>http://localhost:8080/services/customer/anything GET, PUT</li>
</ul>
<h2>Changelog</h2>
<h3>2.1.1</h3>
<ul>
<li>Added default Access-Control-Allow-Origin Header to *</li>
</ul>
<h3>2.1.0</h3>
<ul>
<li>Added support for txt (text/plain) files</li>
Expand Down Expand Up @@ -493,7 +497,7 @@ <h2>AUTHOR</h2>
</div>
<footer>
<div class="copyright">FooDoc Copyright © 2016 The contributors to the JSDoc3 and FooDoc projects.</div>
<div class="generated-by">Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.5</a> on 24th Aug 2020 using the <a href="https://github.com/steveush/foodoc">FooDoc template</a>.</div>
<div class="generated-by">Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.11</a> on 16th Feb 2023 using the <a href="https://github.com/steveush/foodoc">FooDoc template</a>.</div>
</footer>
<script src="js/jquery.min.js"></script>
<script src="js/bootstrap.min.js"></script>
Expand Down
2 changes: 1 addition & 1 deletion docs/list_class.html
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ <h4 id="ResourceLoader" class="class public"><a href="ResourceLoader.html"><span
</div>
<footer>
<div class="copyright">FooDoc Copyright © 2016 The contributors to the JSDoc3 and FooDoc projects.</div>
<div class="generated-by">Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.5</a> on 24th Aug 2020 using the <a href="https://github.com/steveush/foodoc">FooDoc template</a>.</div>
<div class="generated-by">Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.11</a> on 16th Feb 2023 using the <a href="https://github.com/steveush/foodoc">FooDoc template</a>.</div>
</footer>
<script src="js/jquery.min.js"></script>
<script src="js/bootstrap.min.js"></script>
Expand Down
2 changes: 1 addition & 1 deletion docs/mockettaro-program.class.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ <h1><span class="name">mockettaro-program.class.js</span></h1>
</div>
<footer>
<div class="copyright">FooDoc Copyright © 2016 The contributors to the JSDoc3 and FooDoc projects.</div>
<div class="generated-by">Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.5</a> on 24th Aug 2020 using the <a href="https://github.com/steveush/foodoc">FooDoc template</a>.</div>
<div class="generated-by">Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.11</a> on 16th Feb 2023 using the <a href="https://github.com/steveush/foodoc">FooDoc template</a>.</div>
</footer>
<script src="js/jquery.min.js"></script>
<script src="js/bootstrap.min.js"></script>
Expand Down
3 changes: 2 additions & 1 deletion docs/mockettaro.class.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ <h1><span class="name">mockettaro.class.js</span></h1>
*/
returnResponse( req, res ) {
const {responseDelay} = this;
res.append('Access-Control-Allow-Origin', '*');
if (req.resConfig || req.resBody){
const config = req.resConfig || {};
setTimeout(() => {
Expand Down Expand Up @@ -212,7 +213,7 @@ <h1><span class="name">mockettaro.class.js</span></h1>
</div>
<footer>
<div class="copyright">FooDoc Copyright © 2016 The contributors to the JSDoc3 and FooDoc projects.</div>
<div class="generated-by">Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.5</a> on 24th Aug 2020 using the <a href="https://github.com/steveush/foodoc">FooDoc template</a>.</div>
<div class="generated-by">Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.11</a> on 16th Feb 2023 using the <a href="https://github.com/steveush/foodoc">FooDoc template</a>.</div>
</footer>
<script src="js/jquery.min.js"></script>
<script src="js/bootstrap.min.js"></script>
Expand Down
2 changes: 1 addition & 1 deletion docs/path-retriever.class.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ <h1><span class="name">path-retriever.class.js</span></h1>
</div>
<footer>
<div class="copyright">FooDoc Copyright © 2016 The contributors to the JSDoc3 and FooDoc projects.</div>
<div class="generated-by">Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.5</a> on 24th Aug 2020 using the <a href="https://github.com/steveush/foodoc">FooDoc template</a>.</div>
<div class="generated-by">Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.11</a> on 16th Feb 2023 using the <a href="https://github.com/steveush/foodoc">FooDoc template</a>.</div>
</footer>
<script src="js/jquery.min.js"></script>
<script src="js/bootstrap.min.js"></script>
Expand Down
2 changes: 1 addition & 1 deletion docs/request-validator.class.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ <h1><span class="name">request-validator.class.js</span></h1>
</div>
<footer>
<div class="copyright">FooDoc Copyright © 2016 The contributors to the JSDoc3 and FooDoc projects.</div>
<div class="generated-by">Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.5</a> on 24th Aug 2020 using the <a href="https://github.com/steveush/foodoc">FooDoc template</a>.</div>
<div class="generated-by">Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.11</a> on 16th Feb 2023 using the <a href="https://github.com/steveush/foodoc">FooDoc template</a>.</div>
</footer>
<script src="js/jquery.min.js"></script>
<script src="js/bootstrap.min.js"></script>
Expand Down
2 changes: 1 addition & 1 deletion docs/resource-loader.class.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ <h1><span class="name">resource-loader.class.js</span></h1>
</div>
<footer>
<div class="copyright">FooDoc Copyright © 2016 The contributors to the JSDoc3 and FooDoc projects.</div>
<div class="generated-by">Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.5</a> on 24th Aug 2020 using the <a href="https://github.com/steveush/foodoc">FooDoc template</a>.</div>
<div class="generated-by">Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.11</a> on 16th Feb 2023 using the <a href="https://github.com/steveush/foodoc">FooDoc template</a>.</div>
</footer>
<script src="js/jquery.min.js"></script>
<script src="js/bootstrap.min.js"></script>
Expand Down
2 changes: 1 addition & 1 deletion docs/type-handler.class.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ <h1><span class="name">type-handler.class.js</span></h1>
</div>
<footer>
<div class="copyright">FooDoc Copyright © 2016 The contributors to the JSDoc3 and FooDoc projects.</div>
<div class="generated-by">Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.5</a> on 24th Aug 2020 using the <a href="https://github.com/steveush/foodoc">FooDoc template</a>.</div>
<div class="generated-by">Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.11</a> on 16th Feb 2023 using the <a href="https://github.com/steveush/foodoc">FooDoc template</a>.</div>
</footer>
<script src="js/jquery.min.js"></script>
<script src="js/bootstrap.min.js"></script>
Expand Down
1 change: 1 addition & 0 deletions lib/mockettaro.class.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ class Mockettaro {
*/
returnResponse( req, res ) {
const {responseDelay} = this;
res.append('Access-Control-Allow-Origin', '*');
if (req.resConfig || req.resBody){
const config = req.resConfig || {};
setTimeout(() => {
Expand Down
Loading

0 comments on commit 6b51fce

Please sign in to comment.