universal-api-layer 0.7.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,181 @@
1
+ {
2
+ "name": "universal-api-layer",
3
+ "version": "0.7.0",
4
+ "type": "module",
5
+ "description": "HTTP, SSE and WebSocket clients with optional React, Vue and Angular adapters, managed sessions, validation and cancellable RxJS operations.",
6
+ "license": "MIT",
7
+ "files": [
8
+ "dist",
9
+ "README.md",
10
+ "LICENSE",
11
+ "CHANGELOG.md",
12
+ "SECURITY.md"
13
+ ],
14
+ "bin": {
15
+ "universal-api-layer": "dist/cli/index.js"
16
+ },
17
+ "exports": {
18
+ ".": {
19
+ "types": "./dist/core/index.d.ts",
20
+ "import": "./dist/core/index.js"
21
+ },
22
+ "./react": {
23
+ "types": "./dist/react/index.d.ts",
24
+ "import": "./dist/react/index.js"
25
+ },
26
+ "./vue": {
27
+ "types": "./dist/vue/index.d.ts",
28
+ "import": "./dist/vue/index.js"
29
+ },
30
+ "./websocket": {
31
+ "types": "./dist/websocket/index.d.ts",
32
+ "import": "./dist/websocket/index.js"
33
+ },
34
+ "./websocket/react": {
35
+ "types": "./dist/websocket/react.d.ts",
36
+ "import": "./dist/websocket/react.js"
37
+ },
38
+ "./websocket/vue": {
39
+ "types": "./dist/websocket/vue.d.ts",
40
+ "import": "./dist/websocket/vue.js"
41
+ },
42
+ "./angular": {
43
+ "types": "./dist/angular/index.d.ts",
44
+ "import": "./dist/angular/index.js"
45
+ },
46
+ "./websocket/angular": {
47
+ "types": "./dist/websocket/angular.d.ts",
48
+ "import": "./dist/websocket/angular.js"
49
+ }
50
+ },
51
+ "scripts": {
52
+ "build": "tsup",
53
+ "typecheck": "tsc --noEmit",
54
+ "test": "vitest run",
55
+ "check:consumers": "node scripts/consumers.mjs",
56
+ "prepack": "npm run build",
57
+ "pretest": "npm run build",
58
+ "lint": "eslint src tests scripts tsup.config.ts",
59
+ "format": "prettier --write src tests scripts examples *.json *.md *.ts *.mjs .github",
60
+ "format:check": "prettier --check src tests scripts examples *.json *.md *.ts *.mjs .github",
61
+ "check": "node scripts/check.mjs",
62
+ "audit:all": "npm audit --audit-level=low",
63
+ "prepublishOnly": "node scripts/check.mjs",
64
+ "audit:report": "node scripts/audit-report.mjs"
65
+ },
66
+ "peerDependencies": {
67
+ "@angular/core": ">=20.3 <23",
68
+ "@tanstack/react-query": "^5.0.0",
69
+ "@tanstack/vue-query": "^5.0.0",
70
+ "react": ">=18 <20",
71
+ "react-dom": ">=18 <20",
72
+ "rxjs": "^7.8.2",
73
+ "vue": "^3.3.0"
74
+ },
75
+ "peerDependenciesMeta": {
76
+ "react": {
77
+ "optional": true
78
+ },
79
+ "react-dom": {
80
+ "optional": true
81
+ },
82
+ "vue": {
83
+ "optional": true
84
+ },
85
+ "@tanstack/react-query": {
86
+ "optional": true
87
+ },
88
+ "@tanstack/vue-query": {
89
+ "optional": true
90
+ },
91
+ "@angular/core": {
92
+ "optional": true
93
+ },
94
+ "rxjs": {
95
+ "optional": true
96
+ }
97
+ },
98
+ "devDependencies": {
99
+ "@angular/compiler": "^20.3.34",
100
+ "@angular/core": "^20.3.34",
101
+ "@eslint/js": "^10.0.0",
102
+ "@tanstack/react-query": "^5.0.0",
103
+ "@tanstack/vue-query": "^5.0.0",
104
+ "@testing-library/react": "^16.0.0",
105
+ "@types/node": "^22.0.0",
106
+ "@types/react": "^19.0.0",
107
+ "@types/react-dom": "^19.0.0",
108
+ "@types/ws": "^8.18.2",
109
+ "@vitejs/plugin-vue": "^6.0.10",
110
+ "esbuild": "^0.28.2",
111
+ "eslint": "^10.14.0",
112
+ "globals": "^16.0.0",
113
+ "jsdom": "^26.0.0",
114
+ "prettier": "^3.9.0",
115
+ "react": "^19.0.0",
116
+ "react-dom": "^19.0.0",
117
+ "rxjs": "^7.8.2",
118
+ "tsup": "^9.0.0",
119
+ "typescript": "^5.9.0",
120
+ "typescript-eslint": "^8.0.0",
121
+ "vite": "^8.3.5",
122
+ "vitest": "^5.0.5",
123
+ "vue": "^3.5.0",
124
+ "vue-tsc": "^3.0.0",
125
+ "ws": "^8.22.1",
126
+ "zod": "^4.6.7"
127
+ },
128
+ "engines": {
129
+ "node": ">=22.13.0",
130
+ "npm": ">=11.21.1"
131
+ },
132
+ "publishConfig": {
133
+ "access": "public",
134
+ "registry": "https://registry.npmjs.org/"
135
+ },
136
+ "keywords": [
137
+ "api-client",
138
+ "http-client",
139
+ "fetch",
140
+ "react",
141
+ "vue",
142
+ "javascript",
143
+ "typescript",
144
+ "tanstack-query",
145
+ "react-query",
146
+ "vue-query",
147
+ "hooks",
148
+ "composables",
149
+ "authentication",
150
+ "validation",
151
+ "cache-invalidation",
152
+ "token-refresh",
153
+ "response-validation",
154
+ "session-management",
155
+ "streaming",
156
+ "sse",
157
+ "server-sent-events",
158
+ "chat",
159
+ "websocket",
160
+ "realtime",
161
+ "angular",
162
+ "rxjs",
163
+ "signals"
164
+ ],
165
+ "packageManager": "npm@11.21.1",
166
+ "overrides": {
167
+ "minimatch": "^11.0.1"
168
+ },
169
+ "allowScripts": {
170
+ "vue-demi@0.14.10": true,
171
+ "esbuild@0.28.2": true
172
+ },
173
+ "homepage": "https://github.com/Heshammesalam/universal-api-layer#readme",
174
+ "repository": {
175
+ "type": "git",
176
+ "url": "git+https://github.com/Heshammesalam/universal-api-layer.git"
177
+ },
178
+ "bugs": {
179
+ "url": "https://github.com/Heshammesalam/universal-api-layer/issues"
180
+ }
181
+ }