create-faas-app 8.0.0-beta.27 → 8.0.0-beta.28
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/dist/index.mjs
CHANGED
|
@@ -6,7 +6,7 @@ import { dirname, join } from "node:path";
|
|
|
6
6
|
import { fileURLToPath } from "node:url";
|
|
7
7
|
import enquirer from "enquirer";
|
|
8
8
|
//#region package.json
|
|
9
|
-
var version = "8.0.0-beta.
|
|
9
|
+
var version = "8.0.0-beta.27";
|
|
10
10
|
//#endregion
|
|
11
11
|
//#region src/action/index.ts
|
|
12
12
|
const prompt = enquirer.prompt;
|
|
@@ -112,6 +112,8 @@ ${getTemplateNames().join(", ")}`)).option("--name <name>", "Project name").opti
|
|
|
112
112
|
//#endregion
|
|
113
113
|
//#region src/index.ts
|
|
114
114
|
/**
|
|
115
|
+
* # create-faas-app
|
|
116
|
+
*
|
|
115
117
|
* [](https://github.com/faasjs/faasjs/blob/main/packages/create-faas-app/LICENSE)
|
|
116
118
|
* [](https://www.npmjs.com/package/create-faas-app)
|
|
117
119
|
*
|
package/package.json
CHANGED
|
@@ -1,3 +1,20 @@
|
|
|
1
|
+
declare module '@faasjs/types' {
|
|
2
|
+
interface FaasActions {
|
|
3
|
+
'/pages/home/api/users/list': {
|
|
4
|
+
Params: { limit: number }
|
|
5
|
+
Data: { total?: number; users?: { id: number; name: string }[] }
|
|
6
|
+
}
|
|
7
|
+
'/pages/home/api/users/create': {
|
|
8
|
+
Params: { name?: string | undefined }
|
|
9
|
+
Data: { message?: string; total?: number; user?: { id: number; name: string } }
|
|
10
|
+
}
|
|
11
|
+
'/pages/home/api/auth/me': {
|
|
12
|
+
Params: Record<string, never>
|
|
13
|
+
Data: { current_user?: { id: number; name: string; role: string } }
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
1
18
|
import { faas, useApp } from '@faasjs/ant-design'
|
|
2
19
|
import { Button, Card, Input, Space, Table, Typography } from 'antd'
|
|
3
20
|
import { useState } from 'react'
|