mockaton 7.7.0 → 7.7.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.
package/README.md CHANGED
@@ -58,8 +58,9 @@ _Reset_ button is for registering newly added, removed, or renamed mocks.
58
58
 
59
59
 
60
60
  ## Basic Usage
61
+ `tsx` is only needed if you want to write mocks in TypeScript
61
62
  ```
62
- npm install mockaton
63
+ npm install mockaton tsx
63
64
  ```
64
65
  Create a `my-mockaton.js` file
65
66
  ```js
@@ -74,7 +75,7 @@ Mockaton({
74
75
  ```
75
76
 
76
77
  ```sh
77
- node my-mockaton.js
78
+ node --import=tsx my-mockaton.js
78
79
  ```
79
80
 
80
81
  ## Config Options
@@ -380,7 +381,7 @@ await mockaton.reset()
380
381
 
381
382
  <div style="display: flex; align-items: center; gap: 20px">
382
383
  <img src="./sample-mocks/api/user/avatar.GET.200.png" width="170"/>
383
- <p style="font-size: 18px">“Use Mockaton” - Albert Einstein</p>
384
+ <p style="font-size: 18px">“Use Mockaton”</p>
384
385
  </div>
385
386
 
386
387
 
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": "7.7.0",
5
+ "version": "7.7.1",
6
6
  "main": "index.js",
7
7
  "types": "index.d.ts",
8
8
  "license": "MIT",
@@ -1,4 +1,4 @@
1
- import scores from './scores.GET.200'
1
+ import scores from './typescript-scores.GET.200'
2
2
 
3
3
  export default [
4
4
  ...scores,