mockaton 4.0.0 → 4.0.1

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.
Binary file
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "mockaton",
3
3
  "description": "A deterministic server-side for developing and testing frontend clients",
4
4
  "type": "module",
5
- "version": "4.0.0",
5
+ "version": "4.0.1",
6
6
  "main": "index.js",
7
7
  "types": "index.d.ts",
8
8
  "license": "MIT",
package/src/Dashboard.js CHANGED
@@ -26,7 +26,7 @@ const CSS = {
26
26
 
27
27
  bold: 'bold',
28
28
  chosen: 'chosen',
29
- status4xx: 'status4xx',
29
+ status4xx: 'status4xx'
30
30
  }
31
31
 
32
32
  const r = createElement
@@ -266,7 +266,7 @@ function InternalServerErrorToggler({ broker }) {
266
266
  method: 'PATCH',
267
267
  body: JSON.stringify({
268
268
  [DF.file]: event.currentTarget.checked
269
- ? items.find(f => f.includes(DEFAULT_500_COMMENT))
269
+ ? items.find(f => Route.parseFilename(f).status === 500)
270
270
  : items[0]
271
271
  })
272
272
  }).then(init)