File tree 3 files changed +10
-13
lines changed 3 files changed +10
-13
lines changed Original file line number Diff line number Diff line change @@ -15,8 +15,7 @@ import {
15
15
MutationFetcher
16
16
} from './types'
17
17
18
- const mutation =
19
- < Data , Error > ( ) =>
18
+ const mutation = ( < Data , Error > ( ) =>
20
19
(
21
20
key : Key ,
22
21
fetcher : MutationFetcher < Data > ,
@@ -112,11 +111,8 @@ const mutation =
112
111
return currentState . isMutating
113
112
}
114
113
}
115
- }
114
+ } ) as unknown as Middleware
116
115
117
- export default withMiddleware (
118
- useSWR ,
119
- mutation as unknown as Middleware
120
- ) as unknown as SWRMutationHook
116
+ export default withMiddleware ( useSWR , mutation ) as unknown as SWRMutationHook
121
117
122
- export { SWRMutationConfiguration , SWRMutationResponse }
118
+ export { SWRMutationConfiguration , SWRMutationResponse , SWRMutationHook }
Original file line number Diff line number Diff line change 98
98
"@types/react" : " 17.0.20" ,
99
99
"@typescript-eslint/eslint-plugin" : " 5.8.0" ,
100
100
"@typescript-eslint/parser" : " 5.8.0" ,
101
- "bunchee" : " 1.8.2 " ,
101
+ "bunchee" : " 1.8.3 " ,
102
102
"eslint" : " 8.3.0" ,
103
103
"eslint-config-prettier" : " 8.3.0" ,
104
104
"eslint-plugin-jest-dom" : " 3.9.2" ,
Original file line number Diff line number Diff line change @@ -2296,10 +2296,10 @@ builtin-modules@^3.1.0:
2296
2296
resolved "https://registry.yarnpkg.com/builtin-modules/-/builtin-modules-3.2.0.tgz#45d5db99e7ee5e6bc4f362e008bf917ab5049887"
2297
2297
integrity sha512-lGzLKcioL90C7wMczpkY0n/oART3MbBa8R9OFGE1rJxoVI86u4WAGfEk8Wjv10eKSyTHVGkSo3bvBylCEtk7LA==
2298
2298
2299
-
2300
- version "1.8.2 "
2301
- resolved "https://registry.yarnpkg.com/bunchee/-/bunchee-1.8.2 .tgz#7423e40de5635640c7c792322baf1089f51ca3e0 "
2302
- integrity sha512-i8NfUIQcC7VIGbninHTzM/PnEHD+b0pkCcSMVKb5N8nAK6On32f2N3vHczzYk0FcwxuIt27r2zB0yTMErLTfSA ==
2299
+
2300
+ version "1.8.3 "
2301
+ resolved "https://registry.yarnpkg.com/bunchee/-/bunchee-1.8.3 .tgz#430f1c741b8d048ce158ee883e2f4389380b13f8 "
2302
+ integrity sha512-/kaA+TGhX75AUoGf5u/6KHqYIJjL8UEfCfnVS11cKjZB83NXWZGYMC2/vJhj1CkjBmr3xNoafuiDT6QY0WU7Kw ==
2303
2303
dependencies :
2304
2304
" @rollup/plugin-babel" " 5.2.1"
2305
2305
" @rollup/plugin-commonjs" " 20.0.0"
@@ -6262,6 +6262,7 @@ supports-hyperlinks@^2.0.0:
6262
6262
6263
6263
" swr@link:. " :
6264
6264
version "0.0.0"
6265
+ uid ""
6265
6266
6266
6267
symbol-observable@^1.1.0 :
6267
6268
version "1.2.0"
You can’t perform that action at this time.
0 commit comments