@camera.ui/transport 0.0.20 → 0.0.21
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.
|
@@ -102,6 +102,7 @@ function normalizeParams(params) {
|
|
|
102
102
|
}
|
|
103
103
|
function normalizeBody(config) {
|
|
104
104
|
const data = config.data;
|
|
105
|
+
if (data == null) return void 0;
|
|
105
106
|
if (typeof data !== "string") return data;
|
|
106
107
|
if (String(AxiosHeaders.from(config.headers).get("Content-Type") ?? "").includes("application/json")) try {
|
|
107
108
|
return JSON.parse(data);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camera.ui/transport",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.21",
|
|
4
4
|
"description": "camera.ui transport layer — framework-agnostic connection kernel, reducer state, pluggable transports (HTTP/WS/Socket.IO/NATS), lifecycle effects and worker bridge",
|
|
5
5
|
"author": "seydx (https://github.com/cameraui/clients)",
|
|
6
6
|
"type": "module",
|
|
@@ -63,15 +63,15 @@
|
|
|
63
63
|
"devDependencies": {
|
|
64
64
|
"@eslint/js": "9.39.4",
|
|
65
65
|
"@stylistic/eslint-plugin": "^5.10.0",
|
|
66
|
-
"@typescript-eslint/parser": "^8.
|
|
66
|
+
"@typescript-eslint/parser": "^8.65.0",
|
|
67
67
|
"@vue/language-core": "^3.3.7",
|
|
68
68
|
"eslint": "9.39.2",
|
|
69
69
|
"globals": "^17.7.0",
|
|
70
70
|
"jiti": "^2.7.0",
|
|
71
|
-
"prettier": "^3.9.
|
|
71
|
+
"prettier": "^3.9.6",
|
|
72
72
|
"rimraf": "^6.1.3",
|
|
73
73
|
"typescript": "5.9.3",
|
|
74
|
-
"typescript-eslint": "^8.
|
|
74
|
+
"typescript-eslint": "^8.65.0",
|
|
75
75
|
"unplugin-dts": "^1.0.3",
|
|
76
76
|
"updates": "^17.19.1",
|
|
77
77
|
"vite": "^8.1.5",
|