@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;CA8BpB;AAED,eAAe,UAAU,CAAC"}
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"}
@@ -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
- console.error("API Response Error:", {
79
- status,
80
- data,
81
- headers: error.response.headers,
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rinse-dental/open-dental",
3
- "version": "2.4.14",
3
+ "version": "2.4.15",
4
4
  "description": "A TypeScript library for easily accessing Open Dental APIs.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -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
- console.error("API Response Error:", {
81
- status,
82
- data,
83
- headers: error.response.headers,
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(