@moluoxixi/ajax-package 0.0.32 → 0.0.34

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.
@@ -5,8 +5,22 @@ declare global {
5
5
  $http?: vueHttpServiceType;
6
6
  }
7
7
  }
8
+ /**
9
+ * 创建 HTTP 服务实例
10
+ * @param options - API 配置对象
11
+ * @returns BaseApi 实例
12
+ */
8
13
  declare function createHttpService(options?: BaseApiConfig): BaseApi;
14
+ /**
15
+ * Vue Axios 插件,用于在 Vue 应用中全局注册 HTTP 服务
16
+ * 提供 this.$http、inject('$http') 和 window.$http 三种使用方式
17
+ */
9
18
  declare const VueAxiosPlugin: vueAxiosPluginType;
19
+ /**
20
+ * 获取 HTTP 服务实例,与 createHttpService 功能相同
21
+ * @param options - API 配置对象
22
+ * @returns BaseApi 实例
23
+ */
10
24
  declare function getHttpService(options?: BaseApiConfig): BaseApi;
11
25
  export default VueAxiosPlugin;
12
26
  export { createHttpService, getHttpService };
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@moluoxixi/ajax-package",
3
- "version": "0.0.32",
3
+ "version": "0.0.34",
4
4
  "description": "AjaxPackage 组件",
5
5
  "sideEffects": [
6
6
  "*.css",
7
7
  "*.scss"
8
8
  ],
9
9
  "peerDependencies": {
10
- "vue": "3.5.25"
10
+ "vue": "3.5.18"
11
11
  },
12
12
  "dependencies": {},
13
13
  "publishConfig": {