@pubinfo/core 2.0.0-beta.18 → 2.0.0-beta.19

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.
@@ -1,5 +1,6 @@
1
1
  import { AxiosResponse } from 'axios';
2
2
  import { RequestOptions } from './interface';
3
+ export { RESPONSE_CODE } from './enum/code';
3
4
  export declare function createTokenAuthentication(): import('alova/client').TokenAuthenticationResult<import('alova/vue').VueHookType, import('@alova/adapter-axios').AxiosRequestAdapter>;
4
5
  export declare function createRequest(options: RequestOptions): import('alova').Alova<import('alova').AlovaGenerics<any, any, import('@alova/adapter-axios').AlovaAxiosRequestConfig, AxiosResponse<any, any>, import('axios').AxiosResponseHeaders, any, any, {
5
6
  name: "Vue";
@@ -9,4 +10,4 @@ export declare function createRequest(options: RequestOptions): import('alova').
9
10
  StateExport: import('vue').Ref<unknown, unknown>;
10
11
  ComputedExport: import('vue').ComputedRef<unknown>;
11
12
  }>>;
12
- export { RESPONSE_CODE } from './enum/code';
13
+ export * from './interface';
package/dist/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import './assets/styles';
2
+ import '../types/index.d.ts';
2
3
  export * from './components';
3
4
  export * from './composables';
4
5
  export * from './config';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pubinfo/core",
3
3
  "type": "module",
4
- "version": "2.0.0-beta.18",
4
+ "version": "2.0.0-beta.19",
5
5
  "exports": {
6
6
  ".": {
7
7
  "types": "./dist/index.d.ts",
@@ -12,7 +12,7 @@
12
12
  "default": "./dist/request.js"
13
13
  },
14
14
  "./style.css": "./dist/style.css",
15
- "./types": "./types/index.d.ts"
15
+ "./types": "./dist/index.d.ts"
16
16
  },
17
17
  "main": "./dist/index.js",
18
18
  "module": "./dist/index.js",
@@ -28,7 +28,7 @@
28
28
  "vue": "^3.5.13",
29
29
  "vue-i18n": "^10.0.5",
30
30
  "vue-router": "^4.5.0",
31
- "@pubinfo/config": "2.0.0-beta.18"
31
+ "@pubinfo/config": "2.0.0-beta.19"
32
32
  },
33
33
  "dependencies": {
34
34
  "@alova/adapter-axios": "^2.0.13",
@@ -85,7 +85,7 @@
85
85
  "vue": "^3.5.13",
86
86
  "vue-i18n": "^10.0.5",
87
87
  "vue-router": "^4.5.0",
88
- "@pubinfo/config": "2.0.0-beta.18"
88
+ "@pubinfo/config": "2.0.0-beta.19"
89
89
  },
90
90
  "scripts": {
91
91
  "dev": "vite build -w -m watch",
package/src/api/index.ts CHANGED
@@ -14,6 +14,8 @@ import {
14
14
  ReSetTokenAndRefreshToken,
15
15
  } from './helper';
16
16
 
17
+ export { RESPONSE_CODE } from './enum/code';
18
+
17
19
  export function createTokenAuthentication() {
18
20
  return createServerTokenAuthentication<typeof VueHook, typeof axiosRequestAdapter>({
19
21
  /**
@@ -72,4 +74,4 @@ export function createRequest(options: RequestOptions) {
72
74
  return instance;
73
75
  }
74
76
 
75
- export { RESPONSE_CODE } from './enum/code';
77
+ export * from './interface';
package/src/index.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import './assets/styles';
2
+ import '../types/index.d.ts';
2
3
 
3
4
  export * from './components';
4
5
  export * from './composables';