feat: optimistic subpackage @sa/alova

This commit is contained in:
胡镇
2024-10-17 16:47:23 +08:00
parent 3fbf2e2a5f
commit 688377aba3
11 changed files with 329 additions and 1 deletions

View File

@@ -3,7 +3,9 @@
"version": "0.1.0",
"exports": {
".": "./src/index.ts",
"./client": "./src/client.ts"
"./fetch": "./src/fetch.ts",
"./client": "./src/client.ts",
"./mock": "./src/mock.ts"
},
"typesVersions": {
"*": {
@@ -11,6 +13,7 @@
}
},
"dependencies": {
"@alova/mock": "^2.0.7",
"@sa/utils": "workspace:*",
"alova": "3.0.20"
}

View File

@@ -0,0 +1,2 @@
import adapterFetch from 'alova/fetch';
export default adapterFetch;

View File

@@ -0,0 +1 @@
export * from '@alova/mock';