typescript-mock-server 1.0.0 → 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 +6 -5
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -59,11 +59,9 @@ export const data: User[] = [{
|
|
|
59
59
|
creationDate: newDate()
|
|
60
60
|
}];
|
|
61
61
|
|
|
62
|
-
export const config:
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
statusCode: 418
|
|
66
|
-
}
|
|
62
|
+
export const config: RequestConfig = {
|
|
63
|
+
delay: 2000, // or you can use an interval like {min: 2000, max: 5000}
|
|
64
|
+
statusCode: 418
|
|
67
65
|
}
|
|
68
66
|
```
|
|
69
67
|
|
|
@@ -92,6 +90,9 @@ Following dependencies are being used:
|
|
|
92
90
|
|
|
93
91
|
|
|
94
92
|
## Release notes (will be moved to GitHub in the future)
|
|
93
|
+
- v1.0.3 - Updated README to include delay interval example
|
|
94
|
+
- v1.0.2 - Use correct command to push tags
|
|
95
|
+
- v1.0.1 - Include correct files in GIT tag
|
|
95
96
|
- v1.0.0 - Breaking change: renamed Server config to Request and added interval for delay
|
|
96
97
|
- v0.0.11 - Add items to roadmap, bug fixes
|
|
97
98
|
- v0.0.10 - Support multiple http verbs
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "typescript-mock-server",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"description": "Simple mock server that can be used in front end development. Instead of creating json files you can just publish TypeScript objects as json",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"start": "ts-node-dev src/index.ts",
|
|
9
9
|
"update-deps": "npm update",
|
|
10
10
|
"get-version": "echo $npm_package_version",
|
|
11
|
-
"publish-to-npm": "git tag -a ${npm_package_version} -m \"v${npm_package_version}\" && npm publish"
|
|
11
|
+
"publish-to-npm": "git tag -a ${npm_package_version} -m \"v${npm_package_version}\" && git push origin ${npm_package_version} && npm publish"
|
|
12
12
|
},
|
|
13
13
|
"repository": {
|
|
14
14
|
"type": "git",
|