mockaton 8.1.5 → 8.1.7

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
@@ -45,7 +45,7 @@ node --import=tsx my-mockaton.js
45
45
  ```
46
46
 
47
47
 
48
- ## Running the Example Demo
48
+ ## Running the Example
49
49
  This demo uses the [sample-mocks/](./sample-mocks) directory of this repository.
50
50
 
51
51
  - Checkout this repo
@@ -216,8 +216,7 @@ Defaults to `/(\.DS_Store|~)$/`
216
216
 
217
217
 
218
218
  ### `delay?: number` 🕓
219
- The clock icon next to the mock selector is a checkbox for delaying a
220
- particular response. They are handy for testing spinners.
219
+ The clock icon next to the mock selector is a checkbox for delaying a particular response.
221
220
 
222
221
  The delay is globally configurable via `Config.delay = 1200` (milliseconds).
223
222
 
@@ -229,7 +228,7 @@ For example, `Config.proxyFallback = 'http://example.com:8080'`
229
228
 
230
229
  ### `staticDir?: string`
231
230
  Files under `Config.staticDir` don’t use the filename convention.
232
- Also, they take precedence over the `GET` mocks in `Config.mockDir`.
231
+ Also, they take precedence over the `GET` mocks in `Config.mocksDir`.
233
232
 
234
233
  For example, if you have two files for `GET /foo/bar.jpg`
235
234
  ```
@@ -250,8 +249,8 @@ The key is just a label used for selecting a particular cookie in the
250
249
  dashboard. In the dashboard, only one cookie can be selected. If you need
251
250
  more cookies you can inject additional cookies globally in `Config.extraHeaders`.
252
251
 
253
- `jwtCookie` has a hardcoded header and signature. In other
254
- words, it’s useful if you only care about its payload.
252
+ By the way, there’s a `jwtCookie` helper, which has a hardcoded header and
253
+ signature. In other words, it’s useful if you only care about its payload.
255
254
 
256
255
  ```js
257
256
  import { jwtCookie } from 'mockaton'
@@ -281,7 +280,7 @@ Config.extraHeaders = [
281
280
  ### `extraMimes?: { [fileExt: string]: string }`
282
281
  ```js
283
282
  Config.extraMimes = {
284
- jpg: 'application/jpeg'
283
+ jpe: 'application/jpeg'
285
284
  }
286
285
  ```
287
286
 
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": "8.1.5",
5
+ "version": "8.1.7",
6
6
  "main": "index.js",
7
7
  "types": "index.d.ts",
8
8
  "license": "MIT",
package/src/Dashboard.css CHANGED
@@ -6,12 +6,12 @@
6
6
  :root {
7
7
  --color4xxBackground: #ffedd1;
8
8
  --colorAccent: #0072d6;
9
- --colorAccentAlt: #01873b;
9
+ --colorAccentAlt: #0e906c;
10
10
  --colorBackground: #fff;
11
11
  --colorHeaderBackground: #f4f4f4;
12
12
  --colorComboBoxBackground: #fafafa;
13
13
  --colorComboBoxHeaderBackground: #fff;
14
- --colorDisabled: #555;
14
+ --colorDisabled: #444;
15
15
  --colorHover: #dfefff;
16
16
  --colorLabel: #666;
17
17
  --colorLightRed: #ffe4ee;
@@ -190,7 +190,7 @@ main {
190
190
  display: inline-block;
191
191
  width: 280px;
192
192
  padding: 8px 6px;
193
- border-radius: 4px;
193
+ border-radius: 0;
194
194
  color: var(--colorAccent);
195
195
  text-decoration: none;
196
196
 
@@ -205,10 +205,11 @@ main {
205
205
 
206
206
  .MockSelector {
207
207
  width: 300px;
208
+ height: 30px;
208
209
  padding: 8px 1px;
209
210
  border: 0;
210
211
  border-left: 3px solid transparent;
211
- border-radius: 4px;
212
+ border-radius: 0;
212
213
  text-align: right;
213
214
  direction: rtl;
214
215
  text-overflow: ellipsis;
@@ -218,6 +219,7 @@ main {
218
219
  background: var(--color4xxBackground);
219
220
  }
220
221
  &:disabled {
222
+ padding-right: 4px;
221
223
  appearance: none;
222
224
  background: transparent;
223
225
  cursor: default;