@faasjs/func 6.6.0 → 6.7.0
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.d.ts +2 -2
- package/package.json +5 -5
package/dist/index.d.ts
CHANGED
|
@@ -158,7 +158,7 @@ declare function usePlugin<T extends Plugin>(plugin: T & {
|
|
|
158
158
|
* @example
|
|
159
159
|
* ```ts
|
|
160
160
|
* // pure function
|
|
161
|
-
* export
|
|
161
|
+
* export const func = useFunc(() => {
|
|
162
162
|
* return () => {
|
|
163
163
|
* return 'Hello World'
|
|
164
164
|
* }
|
|
@@ -167,7 +167,7 @@ declare function usePlugin<T extends Plugin>(plugin: T & {
|
|
|
167
167
|
* // with http
|
|
168
168
|
* import { useHttp } from '@faasjs/http'
|
|
169
169
|
*
|
|
170
|
-
* export
|
|
170
|
+
* export const func = useFunc<{
|
|
171
171
|
* params: { name: string }
|
|
172
172
|
* }>(() => {
|
|
173
173
|
* useHttp()
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@faasjs/func",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.7.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
@@ -30,12 +30,12 @@
|
|
|
30
30
|
"dist"
|
|
31
31
|
],
|
|
32
32
|
"peerDependencies": {
|
|
33
|
-
"@faasjs/deep_merge": "6.
|
|
34
|
-
"@faasjs/logger": "6.
|
|
33
|
+
"@faasjs/deep_merge": "6.7.0",
|
|
34
|
+
"@faasjs/logger": "6.7.0"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@faasjs/deep_merge": "6.
|
|
38
|
-
"@faasjs/logger": "6.
|
|
37
|
+
"@faasjs/deep_merge": "6.7.0",
|
|
38
|
+
"@faasjs/logger": "6.7.0"
|
|
39
39
|
},
|
|
40
40
|
"engines": {
|
|
41
41
|
"node": ">=22.0.0",
|