@jaredwray/mockhttp 0.4.0 → 0.4.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/README.md +1 -1
- package/dist/index.js +20 -13
- package/package.json +20 -13
package/README.md
CHANGED
|
@@ -39,7 +39,7 @@ await mockhttp.stop(); // stop the server
|
|
|
39
39
|
|
|
40
40
|
# About mockhttp.org
|
|
41
41
|
|
|
42
|
-
[mockhttp.org](https://mockhttp.org) is a free service that runs this codebase and allows you to use it for testing purposes. It is a simple way to mock HTTP responses for testing purposes. It is globally available has some limitations on it to prevent abuse
|
|
42
|
+
[mockhttp.org](https://mockhttp.org) is a free service that runs this codebase and allows you to use it for testing purposes. It is a simple way to mock HTTP responses for testing purposes. It is globally available has some limitations on it to prevent abuse such as requests per second. It is ran via [Cloudflare](https://cloudflare.com) and [Google Cloud Run](https://cloud.google.com/run/) across 7 regions globally and can do millions of requests per second.
|
|
43
43
|
|
|
44
44
|
# Contributing
|
|
45
45
|
|
package/dist/index.js
CHANGED
|
@@ -18,7 +18,7 @@ import { fastifySwaggerUi } from "@fastify/swagger-ui";
|
|
|
18
18
|
// package.json
|
|
19
19
|
var package_default = {
|
|
20
20
|
name: "@jaredwray/mockhttp",
|
|
21
|
-
version: "0.4.
|
|
21
|
+
version: "0.4.1",
|
|
22
22
|
description: "Mock Http - Easy way to mock http with httpbin replacement",
|
|
23
23
|
type: "module",
|
|
24
24
|
main: "dist/index.js",
|
|
@@ -54,24 +54,24 @@ var package_default = {
|
|
|
54
54
|
},
|
|
55
55
|
homepage: "https://github.com/jaredwray/mockhttp#readme",
|
|
56
56
|
devDependencies: {
|
|
57
|
-
"@swc/core": "^1.
|
|
58
|
-
"@types/html-escaper": "^3.0.
|
|
59
|
-
"@vitest/coverage-v8": "^3.0.
|
|
57
|
+
"@swc/core": "^1.11.5",
|
|
58
|
+
"@types/html-escaper": "^3.0.4",
|
|
59
|
+
"@vitest/coverage-v8": "^3.0.7",
|
|
60
60
|
rimraf: "^6.0.1",
|
|
61
|
-
tsup: "^8.
|
|
62
|
-
tsx: "^4.19.
|
|
63
|
-
typescript: "^5.
|
|
64
|
-
vitest: "^3.0.
|
|
61
|
+
tsup: "^8.4.0",
|
|
62
|
+
tsx: "^4.19.3",
|
|
63
|
+
typescript: "^5.8.2",
|
|
64
|
+
vitest: "^3.0.7",
|
|
65
65
|
xo: "^0.60.0"
|
|
66
66
|
},
|
|
67
67
|
dependencies: {
|
|
68
68
|
"@fastify/helmet": "^13.0.1",
|
|
69
|
-
"@fastify/static": "^8.
|
|
69
|
+
"@fastify/static": "^8.1.1",
|
|
70
70
|
"@fastify/swagger": "^9.4.2",
|
|
71
|
-
"@fastify/swagger-ui": "^5.2.
|
|
72
|
-
"@scalar/api-reference": "^1.25.
|
|
71
|
+
"@fastify/swagger-ui": "^5.2.2",
|
|
72
|
+
"@scalar/api-reference": "^1.25.124",
|
|
73
73
|
fastify: "^5.2.1",
|
|
74
|
-
hookified: "^1.7.
|
|
74
|
+
hookified: "^1.7.1",
|
|
75
75
|
"html-escaper": "^3.0.3",
|
|
76
76
|
pino: "^9.6.0",
|
|
77
77
|
"pino-pretty": "^13.0.0"
|
|
@@ -80,7 +80,14 @@ var package_default = {
|
|
|
80
80
|
"dist",
|
|
81
81
|
"public",
|
|
82
82
|
"LICENCE"
|
|
83
|
-
]
|
|
83
|
+
],
|
|
84
|
+
pnpm: {
|
|
85
|
+
onlyBuiltDependencies: [
|
|
86
|
+
"@swc/core",
|
|
87
|
+
"esbuild",
|
|
88
|
+
"vue-demi"
|
|
89
|
+
]
|
|
90
|
+
}
|
|
84
91
|
};
|
|
85
92
|
|
|
86
93
|
// src/swagger.ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jaredwray/mockhttp",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.1",
|
|
4
4
|
"description": "Mock Http - Easy way to mock http with httpbin replacement",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -36,24 +36,24 @@
|
|
|
36
36
|
},
|
|
37
37
|
"homepage": "https://github.com/jaredwray/mockhttp#readme",
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@swc/core": "^1.
|
|
40
|
-
"@types/html-escaper": "^3.0.
|
|
41
|
-
"@vitest/coverage-v8": "^3.0.
|
|
39
|
+
"@swc/core": "^1.11.5",
|
|
40
|
+
"@types/html-escaper": "^3.0.4",
|
|
41
|
+
"@vitest/coverage-v8": "^3.0.7",
|
|
42
42
|
"rimraf": "^6.0.1",
|
|
43
|
-
"tsup": "^8.
|
|
44
|
-
"tsx": "^4.19.
|
|
45
|
-
"typescript": "^5.
|
|
46
|
-
"vitest": "^3.0.
|
|
43
|
+
"tsup": "^8.4.0",
|
|
44
|
+
"tsx": "^4.19.3",
|
|
45
|
+
"typescript": "^5.8.2",
|
|
46
|
+
"vitest": "^3.0.7",
|
|
47
47
|
"xo": "^0.60.0"
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
50
|
"@fastify/helmet": "^13.0.1",
|
|
51
|
-
"@fastify/static": "^8.
|
|
51
|
+
"@fastify/static": "^8.1.1",
|
|
52
52
|
"@fastify/swagger": "^9.4.2",
|
|
53
|
-
"@fastify/swagger-ui": "^5.2.
|
|
54
|
-
"@scalar/api-reference": "^1.25.
|
|
53
|
+
"@fastify/swagger-ui": "^5.2.2",
|
|
54
|
+
"@scalar/api-reference": "^1.25.124",
|
|
55
55
|
"fastify": "^5.2.1",
|
|
56
|
-
"hookified": "^1.7.
|
|
56
|
+
"hookified": "^1.7.1",
|
|
57
57
|
"html-escaper": "^3.0.3",
|
|
58
58
|
"pino": "^9.6.0",
|
|
59
59
|
"pino-pretty": "^13.0.0"
|
|
@@ -62,5 +62,12 @@
|
|
|
62
62
|
"dist",
|
|
63
63
|
"public",
|
|
64
64
|
"LICENCE"
|
|
65
|
-
]
|
|
65
|
+
],
|
|
66
|
+
"pnpm": {
|
|
67
|
+
"onlyBuiltDependencies": [
|
|
68
|
+
"@swc/core",
|
|
69
|
+
"esbuild",
|
|
70
|
+
"vue-demi"
|
|
71
|
+
]
|
|
72
|
+
}
|
|
66
73
|
}
|