mockaton 8.23.1 → 8.23.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/README.md CHANGED
@@ -134,6 +134,7 @@ npx mockaton --port 2345
134
134
  ```
135
135
 
136
136
  ## CLI Options
137
+ CLI options override their counterparts in `mockaton.config.js`
137
138
 
138
139
  ```txt
139
140
  -c, --config <file> (default: ./mockaton.config.js)
@@ -147,7 +148,7 @@ npx mockaton --port 2345
147
148
 
148
149
 
149
150
  ## mockaton.config.js
150
- Optionally, use a `mockaton.config.js` file
151
+ Optionally, use a `mockaton.config.js` file:
151
152
  ```js
152
153
  import { defineConfig } from 'mockaton'
153
154
 
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "mockaton",
3
3
  "description": "HTTP Mock Server",
4
4
  "type": "module",
5
- "version": "8.23.1",
5
+ "version": "8.23.3",
6
6
  "main": "index.js",
7
7
  "types": "index.d.ts",
8
8
  "license": "MIT",
@@ -26,7 +26,7 @@
26
26
  },
27
27
  "devDependencies": {
28
28
  "pixaton": "1.1.2",
29
- "puppeteer": "24.18.0"
29
+ "puppeteer": "24.19.0"
30
30
  },
31
31
  "optionalDependencies": {
32
32
  "open": "10.2.0"
@@ -1,4 +1,4 @@
1
- import { exec } from 'node:child_process'
1
+ import { execFileSync } from 'node:child_process'
2
2
 
3
3
 
4
4
  export const openInBrowser = (async () => {
@@ -13,10 +13,10 @@ export const openInBrowser = (async () => {
13
13
  function _openInBrowser(address) {
14
14
  switch (process.platform) {
15
15
  case 'darwin':
16
- exec(`open ${address}`)
16
+ execFileSync('open', [address])
17
17
  break
18
18
  case 'win32':
19
- exec(`start ${address}`)
19
+ execFileSync('start', [address])
20
20
  break
21
21
  }
22
22
  }