@harishmano/react-enterprise-api 1.0.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.
package/package.json ADDED
@@ -0,0 +1,65 @@
1
+ {
2
+ "name": "@harishmano/react-enterprise-api",
3
+ "version": "1.0.0",
4
+ "description": "Enterprise-level CRUD hooks built on TanStack Query + Axios with caching, auth, pagination, and TypeScript support",
5
+ "main": "dist/index.js",
6
+ "module": "dist/index.mjs",
7
+ "types": "dist/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "types": "./dist/index.d.ts",
11
+ "import": "./dist/index.mjs",
12
+ "require": "./dist/index.js"
13
+ }
14
+ },
15
+ "scripts": {
16
+ "build": "tsup src/index.ts --format esm,cjs --dts --clean",
17
+ "dev": "tsup src/index.ts --format esm,cjs --dts --watch",
18
+ "test": "vitest",
19
+ "test:ui": "vitest --ui",
20
+ "coverage": "vitest run --coverage",
21
+ "prepublishOnly": "npm run build"
22
+ },
23
+ "keywords": [
24
+ "react",
25
+ "tanstack-query",
26
+ "react-query",
27
+ "tanstack",
28
+ "axios",
29
+ "crud",
30
+ "hooks",
31
+ "enterprise",
32
+ "api",
33
+ "typescript",
34
+ "cache",
35
+ "auth",
36
+ "pagination",
37
+ "infinite-scroll",
38
+ "upload",
39
+ "download",
40
+ "optimistic",
41
+ "rest",
42
+ "data-fetching"
43
+ ],
44
+ "author": "Harish Kumar M",
45
+ "license": "MIT",
46
+ "peerDependencies": {
47
+ "react": ">=18",
48
+ "@tanstack/react-query": ">=5",
49
+ "axios": ">=1"
50
+ },
51
+ "devDependencies": {
52
+ "@tanstack/react-query": "^5.90.21",
53
+ "axios": "^1.13.5",
54
+ "react": "^18.0.0",
55
+ "@types/react": "^18.0.0",
56
+ "@testing-library/react": "^14.3.1",
57
+ "@testing-library/jest-dom": "^6.9.1",
58
+ "@testing-library/user-event": "^14.6.1",
59
+ "@vitest/ui": "^1.0.0",
60
+ "jsdom": "^24.1.3",
61
+ "tsup": "^8.5.1",
62
+ "typescript": "^5.9.3",
63
+ "vitest": "^1.6.1"
64
+ }
65
+ }
package/vite.config.ts ADDED
@@ -0,0 +1,9 @@
1
+ import { defineConfig } from "vitest/config";
2
+
3
+ export default defineConfig({
4
+ test: {
5
+ environment: "jsdom",
6
+ globals: true,
7
+ setupFiles: [],
8
+ },
9
+ });