@rinse-dental/open-dental 2.4.14 → 2.4.15
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"httpClient.d.ts","sourceRoot":"","sources":["../../src/utils/httpClient.ts"],"names":[],"mappings":"AAEA,cAAM,UAAU;IACd,OAAO,CAAC,MAAM,CAAgB;gBAElB,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM;IAU9C;;;;;OAKG;IACU,GAAG,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC;IAI7D;;;;;OAKG;IACU,IAAI,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC;IAI3D;;;;;OAKG;IACU,GAAG,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC;IAI1D;;;;OAIG;IACU,MAAM,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC;IAI/C;;;;;OAKG;YACW,aAAa;IAS3B;;;;OAIG;IACH,OAAO,CAAC,WAAW;
|
|
1
|
+
{"version":3,"file":"httpClient.d.ts","sourceRoot":"","sources":["../../src/utils/httpClient.ts"],"names":[],"mappings":"AAEA,cAAM,UAAU;IACd,OAAO,CAAC,MAAM,CAAgB;gBAElB,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM;IAU9C;;;;;OAKG;IACU,GAAG,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC;IAI7D;;;;;OAKG;IACU,IAAI,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC;IAI3D;;;;;OAKG;IACU,GAAG,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC;IAI1D;;;;OAIG;IACU,MAAM,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC;IAI/C;;;;;OAKG;YACW,aAAa;IAS3B;;;;OAIG;IACH,OAAO,CAAC,WAAW;CAkCpB;AAED,eAAe,UAAU,CAAC"}
|
package/dist/utils/httpClient.js
CHANGED
|
@@ -75,11 +75,14 @@ class HttpClient {
|
|
|
75
75
|
if (error.response) {
|
|
76
76
|
// The server responded with a status code outside 2xx
|
|
77
77
|
const { status, data } = error.response;
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
78
|
+
// Only log if not 404
|
|
79
|
+
if (status !== 404) {
|
|
80
|
+
console.error("API Response Error:", {
|
|
81
|
+
status,
|
|
82
|
+
data,
|
|
83
|
+
headers: error.response.headers,
|
|
84
|
+
});
|
|
85
|
+
}
|
|
83
86
|
throw error.response;
|
|
84
87
|
/*throw new Error(
|
|
85
88
|
`API Error (Status ${status}): ${data?.message || JSON.stringify(data)}`
|
package/package.json
CHANGED
package/src/utils/httpClient.ts
CHANGED
|
@@ -77,11 +77,15 @@ class HttpClient {
|
|
|
77
77
|
if (error.response) {
|
|
78
78
|
// The server responded with a status code outside 2xx
|
|
79
79
|
const { status, data } = error.response;
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
80
|
+
|
|
81
|
+
// Only log if not 404
|
|
82
|
+
if (status !== 404) {
|
|
83
|
+
console.error("API Response Error:", {
|
|
84
|
+
status,
|
|
85
|
+
data,
|
|
86
|
+
headers: error.response.headers,
|
|
87
|
+
});
|
|
88
|
+
}
|
|
85
89
|
|
|
86
90
|
throw error.response;
|
|
87
91
|
/*throw new Error(
|