@scalar/mock-server 0.8.2 → 0.8.6
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 +60 -0
- package/README.md +13 -8
- package/package.json +22 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,65 @@
|
|
|
1
1
|
# @scalar/mock-server
|
|
2
2
|
|
|
3
|
+
## 0.8.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#7581](https://github.com/scalar/scalar/pull/7581): fix: npm publish job
|
|
8
|
+
|
|
9
|
+
#### Updated Dependencies
|
|
10
|
+
|
|
11
|
+
- **@scalar/helpers@0.2.4**
|
|
12
|
+
- [#7581](https://github.com/scalar/scalar/pull/7581): fix: npm publish job
|
|
13
|
+
- [#7567](https://github.com/scalar/scalar/pull/7567): feat: add code samples to client v2
|
|
14
|
+
|
|
15
|
+
- **@scalar/json-magic@0.8.8**
|
|
16
|
+
- [#7581](https://github.com/scalar/scalar/pull/7581): fix: npm publish job
|
|
17
|
+
|
|
18
|
+
- **@scalar/oas-utils@0.6.11**
|
|
19
|
+
- [#7581](https://github.com/scalar/scalar/pull/7581): fix: npm publish job
|
|
20
|
+
|
|
21
|
+
- **@scalar/openapi-parser@0.23.9**
|
|
22
|
+
- [#7581](https://github.com/scalar/scalar/pull/7581): fix: npm publish job
|
|
23
|
+
|
|
24
|
+
- **@scalar/openapi-upgrader@0.1.6**
|
|
25
|
+
|
|
26
|
+
## 0.8.5
|
|
27
|
+
|
|
28
|
+
### Patch Changes
|
|
29
|
+
|
|
30
|
+
#### Updated Dependencies
|
|
31
|
+
|
|
32
|
+
- **@scalar/helpers@0.2.3**
|
|
33
|
+
- [#7575](https://github.com/scalar/scalar/pull/7575): feat: add support for object examples + hide body when empty
|
|
34
|
+
|
|
35
|
+
- **@scalar/oas-utils@0.6.10**
|
|
36
|
+
|
|
37
|
+
- **@scalar/json-magic@0.8.7**
|
|
38
|
+
|
|
39
|
+
- **@scalar/openapi-parser@0.23.8**
|
|
40
|
+
|
|
41
|
+
## 0.8.4
|
|
42
|
+
|
|
43
|
+
### Patch Changes
|
|
44
|
+
|
|
45
|
+
- Updated dependencies []:
|
|
46
|
+
- @scalar/oas-utils@0.6.9
|
|
47
|
+
- @scalar/openapi-parser@0.23.7
|
|
48
|
+
- @scalar/openapi-upgrader@0.1.6
|
|
49
|
+
- @scalar/helpers@0.2.2
|
|
50
|
+
- @scalar/json-magic@0.8.6
|
|
51
|
+
- @scalar/openapi-types@0.5.3
|
|
52
|
+
|
|
53
|
+
## 0.8.3
|
|
54
|
+
|
|
55
|
+
### Patch Changes
|
|
56
|
+
|
|
57
|
+
- Updated dependencies [[`f7c24e4`](https://github.com/scalar/scalar/commit/f7c24e4995580649dbc3cb87007a683f5dd91f7c)]:
|
|
58
|
+
- @scalar/helpers@0.2.2
|
|
59
|
+
- @scalar/oas-utils@0.6.8
|
|
60
|
+
- @scalar/json-magic@0.8.6
|
|
61
|
+
- @scalar/openapi-parser@0.23.7
|
|
62
|
+
|
|
3
63
|
## 0.8.2
|
|
4
64
|
|
|
5
65
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
This file is auto-generated by the Scalar README generator.
|
|
3
|
+
Command: pnpm --filter @scalar-internal/build-scripts start generate-readme
|
|
4
|
+
|
|
5
|
+
Do not edit this file manually. Changes will be lost when the file is regenerated.
|
|
6
|
+
-->
|
|
7
|
+
|
|
1
8
|
# Scalar Mock Server
|
|
2
9
|
|
|
3
10
|
[](https://www.npmjs.com/package/@scalar/mock-server)
|
|
@@ -5,21 +12,19 @@
|
|
|
5
12
|
[](https://www.npmjs.com/package/@scalar/mock-server)
|
|
6
13
|
[](https://discord.gg/scalar)
|
|
7
14
|
|
|
8
|
-
A powerful Node.js mock server that automatically generates realistic API responses from your OpenAPI/Swagger documents
|
|
9
|
-
|
|
10
|
-
## Usage
|
|
11
|
-
|
|
12
|
-
```bash
|
|
13
|
-
npx @scalar/cli document mock openapi.json --watch
|
|
14
|
-
```
|
|
15
|
+
A powerful Node.js mock server that automatically generates realistic API responses from your OpenAPI/Swagger documents
|
|
15
16
|
|
|
16
17
|
## Documentation
|
|
17
18
|
|
|
18
19
|
[Read the documentation here](https://guides.scalar.com/scalar/scalar-mock-server/getting-started)
|
|
19
20
|
|
|
21
|
+
## Changelog
|
|
22
|
+
|
|
23
|
+
See [CHANGELOG.md](https://github.com/scalar/scalar/blob/main/packages/mock-server/CHANGELOG.md) for a list of changes.
|
|
24
|
+
|
|
20
25
|
## Community
|
|
21
26
|
|
|
22
|
-
We are API nerds. You too? Let
|
|
27
|
+
We are API nerds. You too? Let’s chat on Discord: <https://discord.gg/scalar>
|
|
23
28
|
|
|
24
29
|
## License
|
|
25
30
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scalar/mock-server",
|
|
3
|
-
"description": "
|
|
3
|
+
"description": "A powerful Node.js mock server that automatically generates realistic API responses from your OpenAPI/Swagger documents",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "Scalar (https://github.com/scalar)",
|
|
6
6
|
"homepage": "https://github.com/scalar/scalar",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"swagger",
|
|
17
17
|
"cli"
|
|
18
18
|
],
|
|
19
|
-
"version": "0.8.
|
|
19
|
+
"version": "0.8.6",
|
|
20
20
|
"engines": {
|
|
21
21
|
"node": ">=20"
|
|
22
22
|
},
|
|
@@ -35,20 +35,35 @@
|
|
|
35
35
|
"./dist",
|
|
36
36
|
"CHANGELOG.md"
|
|
37
37
|
],
|
|
38
|
+
"readme": {
|
|
39
|
+
"title": "Scalar Mock Server",
|
|
40
|
+
"badges": [
|
|
41
|
+
{
|
|
42
|
+
"type": "npm-version"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"type": "npm-downloads"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"type": "npm-license"
|
|
49
|
+
}
|
|
50
|
+
],
|
|
51
|
+
"documentation": "https://guides.scalar.com/scalar/scalar-mock-server/getting-started"
|
|
52
|
+
},
|
|
38
53
|
"dependencies": {
|
|
39
54
|
"@faker-js/faker": "^9.0.0",
|
|
40
55
|
"hono": "4.10.3",
|
|
41
|
-
"@scalar/helpers": "0.2.
|
|
42
|
-
"@scalar/
|
|
43
|
-
"@scalar/
|
|
44
|
-
"@scalar/openapi-parser": "0.23.
|
|
56
|
+
"@scalar/helpers": "0.2.4",
|
|
57
|
+
"@scalar/json-magic": "0.8.8",
|
|
58
|
+
"@scalar/oas-utils": "0.6.11",
|
|
59
|
+
"@scalar/openapi-parser": "0.23.9",
|
|
45
60
|
"@scalar/openapi-upgrader": "0.1.6",
|
|
46
61
|
"@scalar/openapi-types": "0.5.3"
|
|
47
62
|
},
|
|
48
63
|
"devDependencies": {
|
|
49
64
|
"@types/node": "^22.9.0",
|
|
50
65
|
"vite": "7.1.11",
|
|
51
|
-
"@scalar/build-tooling": "0.
|
|
66
|
+
"@scalar/build-tooling": "0.4.0"
|
|
52
67
|
},
|
|
53
68
|
"scripts": {
|
|
54
69
|
"build": "scalar-build-esbuild",
|