@dashadmin/dash-axios-hook 1.0.0 → 1.3.16

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.
package/package.json CHANGED
@@ -1,32 +1,51 @@
1
1
  {
2
2
  "name": "@dashadmin/dash-axios-hook",
3
- "version": "1.0.0",
4
- "description": "dash-axios-hook — DASH framework package",
3
+ "version": "1.3.16",
4
+ "private": false,
5
5
  "license": "MIT",
6
- "author": "Francisco Aranda <farandal@gmail.com>",
7
- "type": "module",
8
- "main": "index.js",
9
- "module": "index.js",
10
- "types": "index.d.ts",
11
- "exports": {
12
- ".": {
13
- "types": "./index.d.ts",
14
- "import": "./index.js"
15
- }
6
+ "main": "src/index.tsx",
7
+ "devDependencies": {
8
+ "@commitlint/cli": "latest",
9
+ "@commitlint/config-conventional": "latest",
10
+ "@types/jest": "latest",
11
+ "@types/node": "latest",
12
+ "@types/react": "latest",
13
+ "@types/react-dom": "latest",
14
+ "@typescript-eslint/eslint-plugin": "latest",
15
+ "@typescript-eslint/parser": "latest",
16
+ "eslint-config-airbnb-typescript": "latest",
17
+ "eslint-config-prettier": "latest",
18
+ "eslint-plugin-html": "latest",
19
+ "eslint-plugin-import": "latest",
20
+ "eslint-plugin-jsdoc": "latest",
21
+ "eslint-plugin-json": "latest",
22
+ "eslint-plugin-prettier": "latest",
23
+ "ts-jest": "latest",
24
+ "ts-loader": "latest",
25
+ "tsconfig-paths": "latest",
26
+ "typescript": "latest",
27
+ "vite": "^5.2.0",
28
+ "rollup": "^4.0.0"
16
29
  },
17
- "files": [
18
- "**/*"
19
- ],
20
- "sideEffects": false,
21
30
  "dependencies": {
22
31
  "@mui/material": "^7.3.10",
23
- "@dashadmin/dash-constants": "^1.0.0",
24
- "@dashadmin/dash-utils": "^1.0.0"
32
+ "@dashadmin/dash-constants": "workspace:*",
33
+ "@dashadmin/dash-utils": "workspace:*"
25
34
  },
26
35
  "publishConfig": {
27
- "access": "public"
36
+ "name": "@dashadmin/dash-axios-hook",
37
+ "access": "public",
38
+ "main": "dist/index.js",
39
+ "exports": {
40
+ ".": {
41
+ "import": "./dist/index.js"
42
+ }
43
+ }
28
44
  },
29
- "engines": {
30
- "node": ">=18"
31
- }
45
+ "scripts": {
46
+ "build": "vite build"
47
+ },
48
+ "files": [
49
+ "dist"
50
+ ]
32
51
  }
package/src/index.tsx ADDED
@@ -0,0 +1,4 @@
1
+ export { default as useAxios, createAxiosInstance } from "./hooks/useAxios";
2
+ export { default as useAxiosGetWithStore } from "./hooks/useAxiosWithStore";
3
+ export type { IDashAutoAdminBackendError,IDashAutoAdminDefaultBackendStructure } from "./interfaces/IDashAutoAdminBackendError";
4
+ export { default as processAxiosError } from "./hooks/processAxiosErrorFunction";
package/index.d.ts DELETED
@@ -1,3 +0,0 @@
1
- // Auto-generated permissive types for @dashadmin/dash-axios-hook.
2
- // Full typings can be regenerated with a tolerant tsc emit.
3
- export {};
File without changes