@arex95/vue-core 1.0.8 → 1.1.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.
@@ -21,7 +21,7 @@ export declare class RestStd {
21
21
  * @param options Additional options for the fetch composable.
22
22
  * @returns The result of the fetch composable (typically a promise).
23
23
  */
24
- static getMany<T>(params?: Record<string, any>, options?: object): any;
24
+ static getAll<T>(params?: Record<string, any>, options?: object): any;
25
25
  /**
26
26
  * Fetch a single item by ID from the server.
27
27
  *
@@ -0,0 +1,5 @@
1
+ import { TokenConfig, EndpointsConfig } from "@/types";
2
+ export type AuthConfig = {
3
+ endpoints: EndpointsConfig;
4
+ storageKeys: TokenConfig;
5
+ };
@@ -0,0 +1,5 @@
1
+ export type EndpointsConfig = {
2
+ LOGIN: string;
3
+ REFRESH: string;
4
+ LOGOUT: string;
5
+ };
@@ -0,0 +1,3 @@
1
+ export type SessionConfig = {
2
+ SESSION_ID: string;
3
+ };
@@ -0,0 +1,4 @@
1
+ export type TokenConfig = {
2
+ readonly ACCESS_TOKEN: string;
3
+ readonly REFRESH_TOKEN: string;
4
+ };
@@ -1,3 +1,7 @@
1
1
  export * from './AxiosOptionsParameter';
2
2
  export * from './ExtendedQueryOptions';
3
3
  export * from './ErrorType';
4
+ export * from './EndpointsConfig';
5
+ export * from './TokenConfig';
6
+ export * from './AuthConfig';
7
+ export * from './SessionConfig';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arex95/vue-core",
3
- "version": "1.0.8",
3
+ "version": "1.1.0",
4
4
  "description": "Opinionated Vue Core",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -31,28 +31,35 @@
31
31
  "@tanstack/vue-query": ">=5.0.0",
32
32
  "@vueuse/core": ">=12.8.2",
33
33
  "axios": ">=1.6.0",
34
+ "uuid": ">=11.1.0",
34
35
  "vue": ">=3.0.0",
35
36
  "vue-router": ">=4.5.0"
36
37
  },
37
38
  "devDependencies": {
39
+ "@eslint/js": "^9.23.0",
38
40
  "@rollup/plugin-commonjs": "^28.0.3",
39
41
  "@rollup/plugin-json": "^6.1.0",
40
42
  "@rollup/plugin-node-resolve": "^16.0.0",
41
43
  "@rollup/plugin-typescript": "^12.1.2",
42
44
  "@types/crypto-js": "^4.2.2",
43
45
  "@types/node": "^22.13.10",
46
+ "eslint": "^9.23.0",
47
+ "eslint-plugin-vue": "^10.0.0",
48
+ "globals": "^16.0.0",
44
49
  "rollup": "^4.35.0",
45
50
  "ts-node": "^10.9.2",
46
51
  "tslib": "^2.8.1",
47
- "typescript": "^5.8.2"
52
+ "typescript": "^5.8.2",
53
+ "typescript-eslint": "^8.28.0"
48
54
  },
49
55
  "dependencies": {
50
- "crypto-js": "^4.2.0",
51
- "jwt-decode": "^4.0.0",
52
- "vue-router": ">=4.5.0",
53
56
  "@tanstack/vue-query": ">=5.0.0",
54
57
  "@vueuse/core": ">=12.8.2",
55
58
  "axios": ">=1.6.0",
56
- "vue": ">=3.0.0"
59
+ "crypto-js": "^4.2.0",
60
+ "jwt-decode": "^4.0.0",
61
+ "uuid": ">=11.1.0",
62
+ "vue": ">=3.0.0",
63
+ "vue-router": ">=4.5.0"
57
64
  }
58
65
  }