@seamapi/http 2.4.0 → 2.4.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.
@@ -25,7 +25,7 @@ const isApiErrorResponse = (response) => {
25
25
  const { headers, data } = response;
26
26
  if (headers == null)
27
27
  return false;
28
- const contentType = headers['Content-Type'];
28
+ const contentType = headers['content-type'];
29
29
  if (typeof contentType === 'string' &&
30
30
  !contentType.startsWith('application/json')) {
31
31
  return false;
package/lib/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- declare const seamapiJavascriptHttpVersion = "2.4.0";
1
+ declare const seamapiJavascriptHttpVersion = "2.4.1";
2
2
  export default seamapiJavascriptHttpVersion;
package/lib/version.js CHANGED
@@ -1,3 +1,3 @@
1
- const seamapiJavascriptHttpVersion = '2.4.0';
1
+ const seamapiJavascriptHttpVersion = '2.4.1';
2
2
  export default seamapiJavascriptHttpVersion;
3
3
  //# sourceMappingURL=version.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamapi/http",
3
- "version": "2.4.0",
3
+ "version": "2.4.1",
4
4
  "description": "JavaScript HTTP client for the Seam API written in TypeScript.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -39,7 +39,7 @@ const isApiErrorResponse = (
39
39
 
40
40
  if (headers == null) return false
41
41
 
42
- const contentType = headers['Content-Type']
42
+ const contentType = headers['content-type']
43
43
  if (
44
44
  typeof contentType === 'string' &&
45
45
  !contentType.startsWith('application/json')
@@ -1,3 +1,3 @@
1
- const seamapiJavascriptHttpVersion = '2.4.0'
1
+ const seamapiJavascriptHttpVersion = '2.4.1'
2
2
 
3
3
  export default seamapiJavascriptHttpVersion