@mbtest/mountebank 2.9.2-beta.9095 → 2.9.2-beta.9120

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/README.md CHANGED
@@ -40,7 +40,7 @@ and record-playback through proxying.
40
40
 
41
41
  ![how it works](https://github.com/mountebank-testing/mountebank/blob/master/src/public/images/overview.gif?raw=true)
42
42
 
43
- See [getting started](http://localhost:2525/docs/gettingStarted) guide for more information once you have it running locally.
43
+ See [getting started](https://www.mbtest.dev/docs/gettingStarted) guide for more information.
44
44
 
45
45
  ## Install and Run
46
46
 
@@ -52,7 +52,7 @@ Run:
52
52
 
53
53
  mb
54
54
 
55
- There are a number of [command line options](http://localhost:2525/docs/commandLine) if you need
55
+ There are a number of [command line options](https://www.mbtest.dev/docs/commandLine) if you need
56
56
  to customize mountebank.
57
57
 
58
58
  All pre-release versions of mountebank are available with the `beta` [npm tag](https://www.npmjs.com/package/mountebank).
@@ -60,7 +60,8 @@ No `beta` version is published unless it has passed all tests.
60
60
 
61
61
  ## Learn More
62
62
 
63
- After installing and running, view the docs in your browser at <http://localhost:2525>.
63
+ After installing and running, view the docs in your browser at <http://localhost:2525>, or visit the
64
+ [public site](https://www.mbtest.dev/).
64
65
 
65
66
  You can always learn more and support mountebank development by buying the book:
66
67
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mbtest/mountebank",
3
- "version": "2.9.2-beta.9095",
3
+ "version": "2.9.2-beta.9120",
4
4
  "author": "Brandon Byars <brandon.byars@gmail.com>",
5
5
  "description": "Over the wire test doubles",
6
6
  "homepage": "http://www.mbtest.dev",
@@ -53,7 +53,7 @@
53
53
  "https-proxy-agent": "7.0.2",
54
54
  "jsonpath-plus": "8.0.0",
55
55
  "mailparser": "3.6.7",
56
- "mountebank-formatters": "0.0.2",
56
+ "@mbtest/mountebank-formatters": "0.0.2",
57
57
  "nodemailer": "6.9.9",
58
58
  "prom-client": "15.1.0",
59
59
  "proper-lockfile": "4.1.2",
package/src/cli/cli.js CHANGED
@@ -48,7 +48,7 @@ const fs = require('fs-extra'),
48
48
  global: false
49
49
  },
50
50
  formatter: {
51
- default: 'mountebank-formatters',
51
+ default: '@mbtest/mountebank-formatters',
52
52
  description: 'the custom formatter module to interpret --configfile formats and to use during mb save operations',
53
53
  nargs: 1,
54
54
  type: 'string',
@@ -30,6 +30,9 @@ function create (header, server, loadRequests) {
30
30
  if (header.endOfRequestResolver) {
31
31
  result.endOfRequestResolver = header.endOfRequestResolver;
32
32
  }
33
+ if (header.allowCORS) {
34
+ result.allowCORS = header.allowCORS;
35
+ }
33
36
 
34
37
  return result;
35
38
  }
@@ -870,7 +870,7 @@ Connection: keep-alive
870
870
  "localOnly": true, <% if (process.env.MB_PERSISTENT === 'true') { %>
871
871
  "datadir": ".mbdb", <% } %>
872
872
  "noParse": false,
873
- "formatter": "mountebank-formatters",
873
+ "formatter": "@mbtest/mountebank-formatters",
874
874
  "ipWhitelist": [
875
875
  "*"
876
876
  ],