@rinse-dental/open-dental 1.7.0 → 1.7.1

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.
@@ -0,0 +1,12 @@
1
+ {
2
+ "files.readonlyInclude": {
3
+ "**": true
4
+ },
5
+ "files.readonlyExclude": {
6
+ "lib/custom_code/**": true,
7
+ "lib/flutter_flow/custom_functions.dart": true,
8
+ "pubspec.yaml": true,
9
+ "lib/flutter_flow/function_changes.json": true,
10
+ ".vscode/settings.json": true
11
+ }
12
+ }
@@ -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;CA4BpB;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;CA8BpB;AAED,eAAe,UAAU,CAAC"}
@@ -80,7 +80,10 @@ class HttpClient {
80
80
  data,
81
81
  headers: error.response.headers,
82
82
  });
83
- throw new Error(`API Error (Status ${status}): ${data?.message || JSON.stringify(data)}`);
83
+ throw error.response;
84
+ /*throw new Error(
85
+ `API Error (Status ${status}): ${data?.message || JSON.stringify(data)}`
86
+ );*/
84
87
  }
85
88
  else if (error.request) {
86
89
  // The request was made, but no response received
File without changes
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rinse-dental/open-dental",
3
- "version": "1.7.0",
3
+ "version": "1.7.1",
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",
@@ -81,10 +81,12 @@ class HttpClient {
81
81
  status,
82
82
  data,
83
83
  headers: error.response.headers,
84
- });
85
- throw new Error(
84
+ });
85
+
86
+ throw error.response;
87
+ /*throw new Error(
86
88
  `API Error (Status ${status}): ${data?.message || JSON.stringify(data)}`
87
- );
89
+ );*/
88
90
  } else if (error.request) {
89
91
  // The request was made, but no response received
90
92
  console.error("No Response Error:", error.request);