mockaton 6.3.4 → 6.3.5

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
@@ -44,7 +44,7 @@ node my-mockaton.js
44
44
  ```ts
45
45
  interface Config {
46
46
  mocksDir: string
47
- ignore?: RegExp // defaults to /(.DS_Store|~)$/
47
+ ignore?: RegExp // defaults to /(\.DS_Store|~)$/
48
48
 
49
49
  staticDir?: string
50
50
 
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": "6.3.4",
5
+ "version": "6.3.5",
6
6
  "main": "index.js",
7
7
  "types": "index.d.ts",
8
8
  "license": "MIT",
package/src/MockBroker.js CHANGED
@@ -63,6 +63,7 @@ export class MockBroker {
63
63
  }
64
64
  #registerTemp500() {
65
65
  const { urlMask, method } = Route.parseFilename(this.mocks[0])
66
- this.register(`${urlMask}${DEFAULT_500_COMMENT}.${method}.500.txt`)
66
+ const file = urlMask.replace(/^\//, '') // Removes leading slash TESTME
67
+ this.register(`${file}${DEFAULT_500_COMMENT}.${method}.500.txt`)
67
68
  }
68
69
  }