@modern-js/main-doc 0.0.0-next-1685343732023 → 0.0.0-next-1685369216913
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
CHANGED
@@ -1,16 +1,17 @@
|
|
1
1
|
# @modern-js/main-doc
|
2
2
|
|
3
|
-
## 0.0.0-next-
|
3
|
+
## 0.0.0-next-1685369216913
|
4
4
|
|
5
5
|
### Minor Changes
|
6
6
|
|
7
|
-
-
|
7
|
+
- 7d1b96e5a: feat(changeset): optimize release note display
|
8
8
|
|
9
9
|
feat(changeset): 优化生成 Release Note 文案
|
10
10
|
|
11
11
|
### Patch Changes
|
12
12
|
|
13
|
-
-
|
13
|
+
- Updated dependencies [850cde667]
|
14
|
+
- @modern-js/builder-doc@0.0.0-next-1685369216913
|
14
15
|
|
15
16
|
## 2.21.1
|
16
17
|
|
@@ -32,7 +32,7 @@ export default {
|
|
32
32
|
/* the default method is GET */
|
33
33
|
'/api/getExample': { id: 1 },
|
34
34
|
|
35
|
-
/* You can use custom functions to dynamically return data */
|
35
|
+
/* You can use custom functions to dynamically return data, req and res are both Node.js HTTP objects. */
|
36
36
|
'POST /api/addInfo': (req, res, next) => {
|
37
37
|
res.setHeader('Access-Control-Allow-Origin', '*');
|
38
38
|
res.end('200');
|
@@ -32,7 +32,7 @@ export default {
|
|
32
32
|
/* method 默认为 GET */
|
33
33
|
'/api/getExample': { id: 1 },
|
34
34
|
|
35
|
-
/*
|
35
|
+
/* 可以使用自定义函数根据请求动态返回数据, req & res 都是 Node.js HTTP 原生对象 */
|
36
36
|
'POST /api/addInfo': (req, res, next) => {
|
37
37
|
res.setHeader('Access-Control-Allow-Origin', '*');
|
38
38
|
res.end('200');
|
package/package.json
CHANGED
@@ -15,13 +15,13 @@
|
|
15
15
|
"modern",
|
16
16
|
"modern.js"
|
17
17
|
],
|
18
|
-
"version": "0.0.0-next-
|
18
|
+
"version": "0.0.0-next-1685369216913",
|
19
19
|
"publishConfig": {
|
20
20
|
"registry": "https://registry.npmjs.org/",
|
21
21
|
"access": "public"
|
22
22
|
},
|
23
23
|
"peerDependencies": {
|
24
|
-
"@modern-js/builder-doc": "0.0.0-next-
|
24
|
+
"@modern-js/builder-doc": "0.0.0-next-1685369216913"
|
25
25
|
},
|
26
26
|
"devDependencies": {
|
27
27
|
"classnames": "^2",
|
@@ -33,9 +33,9 @@
|
|
33
33
|
"fs-extra": "^10",
|
34
34
|
"@types/node": "^16",
|
35
35
|
"@types/fs-extra": "^9",
|
36
|
-
"@modern-js/builder-doc": "0.0.0-next-
|
37
|
-
"@modern-js/doc-tools": "0.0.0-next-
|
38
|
-
"@modern-js/doc-plugin-auto-sidebar": "0.0.0-next-
|
36
|
+
"@modern-js/builder-doc": "0.0.0-next-1685369216913",
|
37
|
+
"@modern-js/doc-tools": "0.0.0-next-1685369216913",
|
38
|
+
"@modern-js/doc-plugin-auto-sidebar": "0.0.0-next-1685369216913"
|
39
39
|
},
|
40
40
|
"scripts": {
|
41
41
|
"dev": "modern dev",
|