@scalar/mock-server 0.2.53 → 0.2.55
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/CHANGELOG.md +17 -0
- package/dist/createMockServer.js +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @scalar/mock-server
|
|
2
2
|
|
|
3
|
+
## 0.2.55
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [983a5e4]
|
|
8
|
+
- Updated dependencies [aee166c]
|
|
9
|
+
- Updated dependencies [ef49617]
|
|
10
|
+
- @scalar/openapi-parser@0.8.5
|
|
11
|
+
- @scalar/oas-utils@0.2.51
|
|
12
|
+
|
|
13
|
+
## 0.2.54
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- Updated dependencies [9057781]
|
|
18
|
+
- @scalar/oas-utils@0.2.50
|
|
19
|
+
|
|
3
20
|
## 0.2.53
|
|
4
21
|
|
|
5
22
|
### Patch Changes
|
package/dist/createMockServer.js
CHANGED
|
@@ -129,7 +129,7 @@ async function createMockServer(options) {
|
|
|
129
129
|
// Status code
|
|
130
130
|
const statusCode = parseInt(preferredResponseKey === 'default'
|
|
131
131
|
? '200'
|
|
132
|
-
: preferredResponseKey ?? '200', 10);
|
|
132
|
+
: (preferredResponseKey ?? '200'), 10);
|
|
133
133
|
c.status(statusCode);
|
|
134
134
|
return c.body(typeof body === 'object'
|
|
135
135
|
? // XML
|
package/package.json
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"swagger",
|
|
17
17
|
"cli"
|
|
18
18
|
],
|
|
19
|
-
"version": "0.2.
|
|
19
|
+
"version": "0.2.55",
|
|
20
20
|
"engines": {
|
|
21
21
|
"node": ">=18"
|
|
22
22
|
},
|
|
@@ -37,15 +37,15 @@
|
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"hono": "^4.2.7",
|
|
39
39
|
"object-to-xml": "^2.0.0",
|
|
40
|
-
"@scalar/oas-utils": "0.2.
|
|
41
|
-
"@scalar/openapi-parser": "0.8.
|
|
40
|
+
"@scalar/oas-utils": "0.2.51",
|
|
41
|
+
"@scalar/openapi-parser": "0.8.5",
|
|
42
42
|
"@scalar/openapi-types": "0.1.1"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@hono/node-server": "^1.11.0",
|
|
46
46
|
"@types/node": "^20.14.10",
|
|
47
47
|
"@scalar/build-tooling": "0.1.10",
|
|
48
|
-
"@scalar/hono-api-reference": "0.5.
|
|
48
|
+
"@scalar/hono-api-reference": "0.5.150"
|
|
49
49
|
},
|
|
50
50
|
"scripts": {
|
|
51
51
|
"build": "scalar-build-rollup",
|