mock-config-server 1.0.1 → 1.0.3
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 +3 -3
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -37,7 +37,7 @@ Create a `mock-server.config.js` file with server configuration
|
|
|
37
37
|
|
|
38
38
|
```javascript
|
|
39
39
|
/** @type {import('mock-config-server').Mock.ServerConfig} */
|
|
40
|
-
const mockServerConfig
|
|
40
|
+
const mockServerConfig = {
|
|
41
41
|
configs: [
|
|
42
42
|
{
|
|
43
43
|
path: '/user',
|
|
@@ -47,13 +47,13 @@ const mockServerConfig: Mock.ServerConfig = {
|
|
|
47
47
|
]
|
|
48
48
|
};
|
|
49
49
|
|
|
50
|
-
|
|
50
|
+
export default mockServerConfig;
|
|
51
51
|
```
|
|
52
52
|
|
|
53
53
|
Start **🎉 Mock Config Server**
|
|
54
54
|
|
|
55
55
|
```bash
|
|
56
|
-
$ mock-config-server
|
|
56
|
+
$ npx mock-config-server
|
|
57
57
|
|
|
58
58
|
# 🎉 Mock Config Server is running at http://localhost:31299
|
|
59
59
|
```
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mock-config-server",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"description": "Tool that easily and quickly imitates server operation, create full fake api in few steps",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "SIBERIA CAN CODE 🧊",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"main": "./dist/index.js",
|
|
25
25
|
"types": "./dist/index.d.ts",
|
|
26
26
|
"bin": {
|
|
27
|
-
"mock-config-server": "dist/bin/mock-server.js"
|
|
27
|
+
"mock-config-server": "dist/bin/mock-config-server.js"
|
|
28
28
|
},
|
|
29
29
|
"files": [
|
|
30
30
|
"dist/**/*"
|