apimock-rs 4.6.2 → 4.6.4
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 +7 -4
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
# apimock-rs (API Mock)
|
|
2
2
|
|
|
3
3
|
[](https://www.npmjs.com/package/apimock-rs)
|
|
4
|
+
[](https://crates.io/crates/apimock)
|
|
4
5
|
[](https://github.com/apimokka/apimock-rs/blob/main/LICENSE)
|
|
5
6
|
|
|
6
|
-
[](https://crates.io/crates/apimock)
|
|
7
7
|
[](https://docs.rs/apimock)
|
|
8
8
|
[](https://deps.rs/crate/apimock)
|
|
9
9
|
[](https://github.com/apimokka/apimock-rs/actions/workflows/release-executable.yaml)
|
|
@@ -21,7 +21,7 @@ Drop JSON files into a folder and your API immediately exists.
|
|
|
21
21
|
Easy to start with [npm package](https://www.npmjs.com/package/apimock-rs).
|
|
22
22
|
|
|
23
23
|
```sh
|
|
24
|
-
# install
|
|
24
|
+
# install into your app project
|
|
25
25
|
npm install -D apimock-rs
|
|
26
26
|
# and go
|
|
27
27
|
npx apimock
|
|
@@ -81,7 +81,7 @@ npm run dev
|
|
|
81
81
|
| --- | --- |
|
|
82
82
|
| `npx apimock` | Run with all default parameters. |
|
|
83
83
|
| `npx apimock -p 4000` | Run with custom port. |
|
|
84
|
-
| `npx apimock -d tests/
|
|
84
|
+
| `npx apimock -d tests/apimock-dyn-route` | Run with custom root dir on server response. |
|
|
85
85
|
| `npx apimock -c apimock.toml` | Run with config file giving rich features. Running `npx apimock --init` beforehand is required. |
|
|
86
86
|
|
|
87
87
|
## Mock APIs easily 🎈 — just JSON and go
|
|
@@ -110,12 +110,15 @@ As your project grows, your mock API grows, too. Large mock datasets often cause
|
|
|
110
110
|
- Crashes during UI testing
|
|
111
111
|
- Unstable CI runs
|
|
112
112
|
|
|
113
|
-
apimock-rs does not preload responses. Each response file is read only when a request arrives using non-blocking I/O. This keeps
|
|
113
|
+
apimock-rs does not preload responses. Each response file is read only when a request arrives using non-blocking I/O. This keeps:
|
|
114
114
|
|
|
115
115
|
- Startup nearly instant
|
|
116
116
|
- Memory usage minimal
|
|
117
117
|
- Stable behavior under repeated requests
|
|
118
118
|
|
|
119
|
+
as validated with k6 load testing.
|
|
120
|
+
You can run UI development and automated tests continuously without worrying about server instability.
|
|
121
|
+
|
|
119
122
|
### 📖 Documentation
|
|
120
123
|
|
|
121
124
|
For more details, **🧭 check out [the docs](https://apimokka.github.io/apimock-rs/)**.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "apimock-rs",
|
|
3
|
-
"version": "4.6.
|
|
3
|
+
"version": "4.6.4",
|
|
4
4
|
"description": "A developer-friendly, featherlight and functional HTTP(S) mock server built in Rust.",
|
|
5
5
|
"author": "nabbisen<nabbisen@scqr.net>",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -19,9 +19,9 @@
|
|
|
19
19
|
"postinstall": "node postinstall.js"
|
|
20
20
|
},
|
|
21
21
|
"optionalDependencies": {
|
|
22
|
-
"@apimock-rs/bin-linux-x64-gnu": "4.6.
|
|
23
|
-
"@apimock-rs/bin-darwin-arm64": "4.6.
|
|
24
|
-
"@apimock-rs/bin-win32-x64-msvc": "4.6.
|
|
22
|
+
"@apimock-rs/bin-linux-x64-gnu": "4.6.4",
|
|
23
|
+
"@apimock-rs/bin-darwin-arm64": "4.6.4",
|
|
24
|
+
"@apimock-rs/bin-win32-x64-msvc": "4.6.4"
|
|
25
25
|
},
|
|
26
26
|
"keywords": [
|
|
27
27
|
"api",
|