sharpcodes-heroui 1.0.4 → 1.0.5

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.
@@ -42,8 +42,7 @@ export const toFailedAxiosResponse = (error) => {
42
42
  return {
43
43
  ok: false,
44
44
  errors: {},
45
- // @ts-expect-error message
46
- message: error?.message || error
45
+ message: error instanceof Error ? error.message : String(error)
47
46
  };
48
47
  };
49
48
  // prettier-ignore
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "sharpcodes-heroui",
3
3
  "private": false,
4
- "version": "1.0.4",
4
+ "version": "1.0.5",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",
@@ -25,30 +25,31 @@
25
25
  },
26
26
  "dependencies": {
27
27
  "@hookform/resolvers": "^5.2.2",
28
+ "ajv": "^8",
28
29
  "axios": "^1.15.0",
30
+ "lodash": "^4.18.1",
29
31
  "lucide-react": "^1.8.0",
30
32
  "m3-ripple": "^1.1.3",
31
- "moment-timezone": "^0.6.1",
32
- "ajv": "^8",
33
33
  "mime": "^4.1.0",
34
- "lodash": "^4.18.1",
34
+ "moment-timezone": "^0.6.1",
35
+ "react-haiku": "^2.4.1",
35
36
  "react-hook-form": "^7.72.1",
36
37
  "use-local-storage-state": "^19.5.0",
37
38
  "zod": "^4.3.6"
38
39
  },
39
40
  "devDependencies": {
41
+ "@eslint/js": "^9.39.4",
40
42
  "@types/lodash": "^4.17.24",
41
- "typescript": "~6.0.2",
42
- "vite": "^8.0.4",
43
- "@vitejs/plugin-react": "^6.0.1",
44
- "vite-plugin-dts": "^4.5.4",
45
43
  "@types/node": "^24.12.2",
46
44
  "@types/react": "^19.2.14",
47
45
  "@types/react-dom": "^19.2.3",
46
+ "@vitejs/plugin-react": "^6.0.1",
48
47
  "eslint": "^9.39.4",
49
- "@eslint/js": "^9.39.4",
50
- "typescript-eslint": "^8.58.0",
51
48
  "eslint-plugin-react-hooks": "^7.0.1",
52
- "eslint-plugin-react-refresh": "^0.5.2"
49
+ "eslint-plugin-react-refresh": "^0.5.2",
50
+ "typescript": "~6.0.2",
51
+ "typescript-eslint": "^8.58.0",
52
+ "vite": "^8.0.4",
53
+ "vite-plugin-dts": "^4.5.4"
53
54
  }
54
55
  }