mockaton 7.3.0 → 7.3.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/index.d.ts CHANGED
@@ -36,19 +36,29 @@ export function jwtCookie(cookieName: string, payload: any): string
36
36
  export class Commander {
37
37
  constructor(addr: string)
38
38
 
39
+ listMocks(): Promise<Response>
40
+
39
41
  select(file: string): Promise<Response>
40
42
 
41
43
  bulkSelectByComment(comment: string): Promise<Response>
42
44
 
45
+
43
46
  setRouteIsDelayed(routeMethod: string, routeUrlMask: string, delayed: boolean): Promise<Response>
44
47
 
48
+
49
+ listCookies(): Promise<Response>
50
+
45
51
  selectCookie(cookieKey: string): Promise<Response>
46
52
 
53
+
54
+ listComments(): Promise<Response>
55
+
47
56
  setProxyFallback(proxyAddr: string): Promise<Response>
48
57
 
49
58
  reset(): Promise<Response>
50
59
 
51
- listCookies(): Promise<Response>
52
60
 
53
- listComments(): Promise<Response>
61
+ getCorsAllowed(): Promise<Response>
62
+
63
+ setCorsAllowed(value: boolean): Promise<Response>
54
64
  }
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.3.0",
5
+ "version": "7.3.1",
6
6
  "main": "index.js",
7
7
  "types": "index.d.ts",
8
8
  "license": "MIT",
@@ -1,12 +1,12 @@
1
1
  <!DOCTYPE html>
2
2
  <html lang="en-US">
3
3
  <head>
4
- <link rel="stylesheet" href="../Dashboard.css">
5
- <link rel="icon" href="data:">
4
+ <link rel="stylesheet" href="/Dashboard.css">
5
+ <link rel="icon" href="data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m235 33.7v202c0 9.19-5.81 14-17.4 14-11.6 0-17.4-4.83-17.4-14v-151c-0.115-4.49-6.72-5.88-8.46-0.87l-48.3 155c-2.22 7.01-7.72 10.1-16 9.9-3.63-0.191-7.01-1.14-9.66-2.89-2.89-1.72-4.83-4.34-5.57-7.72-11.1-37-22.6-74.3-34.1-111-4.34-14-8.95-31.4-14-48.3-1.82-4.83-8.16-5.32-8.46 1.16v156c0 9.19-5.81 14-17.4 14-11.6 0-17.4-4.83-17.4-14v-207c0-5.74 2.62-13.2 9.39-16.3 7.5-3.14 15-4.05 21.8-3.8 3.14 0 6.03 0.686 8.95 1.46 3.14 0.797 6.03 1.98 8.7 3.63 2.65 1.38 5.32 3.14 7.5 5.57 2.22 2.22 3.87 4.83 5.07 7.72l45.8 157c4.63-15.9 32.4-117 33.3-121 4.12-13.8 7.72-26.5 10.9-38.7 1.16-2.65 2.89-5.32 5.07-7.5 2.15-2.15 4.58-4.12 7.5-5.32 2.65-1.57 5.57-2.89 8.46-3.63 3.14-0.797 9.44-0.988 12.1-0.988 11.6 1.07 29.4 9.14 29.4 27z' fill='%23808080'/%3E%3C/svg%3E">
6
6
  <meta name="viewport" content="width=device-width, initial-scale=1">
7
7
  <title>Mock Server</title>
8
8
  </head>
9
9
  <body>
10
- <script src="../Dashboard.js" type="module"></script>
10
+ <script src="/Dashboard.js" type="module"></script>
11
11
  </body>
12
12
  </html>