@feathersjs/rest-client 4.5.8 → 4.5.12

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.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,44 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [4.5.12](https://github.com/feathersjs/feathers/compare/v4.5.11...v4.5.12) (2022-01-06)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * Update all dependencies for crow release ([#2520](https://github.com/feathersjs/feathers/issues/2520)) ([1c63e6b](https://github.com/feathersjs/feathers/commit/1c63e6be37ff85edbe8dd318415ca6919864c033))
12
+
13
+
14
+
15
+
16
+
17
+ ## [4.5.11](https://github.com/feathersjs/feathers/compare/v4.5.10...v4.5.11) (2020-12-05)
18
+
19
+ **Note:** Version bump only for package @feathersjs/rest-client
20
+
21
+
22
+
23
+
24
+
25
+ ## [4.5.10](https://github.com/feathersjs/feathers/compare/v4.5.9...v4.5.10) (2020-11-08)
26
+
27
+ **Note:** Version bump only for package @feathersjs/rest-client
28
+
29
+
30
+
31
+
32
+
33
+ ## [4.5.9](https://github.com/feathersjs/feathers/compare/v4.5.8...v4.5.9) (2020-10-09)
34
+
35
+
36
+ ### Bug Fixes
37
+
38
+ * **rest-client:** Handle non-JSON errors with fetch adapter ([#2086](https://github.com/feathersjs/feathers/issues/2086)) ([e24217a](https://github.com/feathersjs/feathers/commit/e24217ad1e784ad71cd9d64fe1727dd02f039991))
39
+
40
+
41
+
42
+
43
+
6
44
  ## [4.5.8](https://github.com/feathersjs/feathers/compare/v4.5.7...v4.5.8) (2020-08-12)
7
45
 
8
46
  **Note:** Version bump only for package @feathersjs/rest-client
package/lib/fetch.js CHANGED
@@ -30,7 +30,11 @@ class FetchService extends Base {
30
30
  return response;
31
31
  }
32
32
 
33
- return response.json().then(error => {
33
+ return response.json().catch(() => {
34
+ const ErrorClass = errors[response.status] || Error;
35
+
36
+ return new ErrorClass('JSON parsing error');
37
+ }).then(error => {
34
38
  error.response = response;
35
39
  throw error;
36
40
  });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@feathersjs/rest-client",
3
3
  "description": "REST client services for different Ajax libraries",
4
- "version": "4.5.8",
4
+ "version": "4.5.12",
5
5
  "homepage": "https://feathersjs.com",
6
6
  "main": "lib/index.js",
7
7
  "types": "index.d.ts",
@@ -49,27 +49,27 @@
49
49
  "access": "public"
50
50
  },
51
51
  "dependencies": {
52
- "@feathersjs/commons": "^4.5.8",
53
- "@feathersjs/errors": "^4.5.8",
54
- "qs": "^6.9.4"
52
+ "@feathersjs/commons": "^4.5.12",
53
+ "@feathersjs/errors": "^4.5.12",
54
+ "qs": "^6.10.2"
55
55
  },
56
56
  "devDependencies": {
57
- "@angular/common": "^10.0.5",
58
- "@angular/core": "^10.0.5",
57
+ "@angular/common": "^11.0.3",
58
+ "@angular/core": "^11.0.3",
59
59
  "@angular/http": "^7.2.16",
60
- "@angular/platform-browser": "^10.0.5",
61
- "@feathersjs/express": "^4.5.8",
62
- "@feathersjs/feathers": "^4.5.8",
63
- "@feathersjs/tests": "^4.5.8",
64
- "axios": "^0.19.2",
65
- "body-parser": "^1.19.0",
60
+ "@angular/platform-browser": "^11.0.3",
61
+ "@feathersjs/express": "^4.5.12",
62
+ "@feathersjs/feathers": "^4.5.12",
63
+ "@feathersjs/tests": "^4.5.12",
64
+ "axios": "^0.24.0",
65
+ "body-parser": "^1.19.1",
66
66
  "feathers-memory": "^4.1.0",
67
- "mocha": "^8.0.1",
68
- "node-fetch": "^2.6.0",
67
+ "mocha": "^9.1.3",
68
+ "node-fetch": "^2.6.1",
69
69
  "request": "^2.88.2",
70
- "rxjs": "^6.6.0",
71
- "shx": "^0.3.2",
72
- "superagent": "^5.3.1"
70
+ "rxjs": "^7.5.1",
71
+ "shx": "^0.3.3",
72
+ "superagent": "^6.1.0"
73
73
  },
74
- "gitHead": "5df52715647ea14cf1bd1fe295ae0eaa9857d70a"
74
+ "gitHead": "8697ecc85808437e9aab63e5d2327679340c5401"
75
75
  }