mindee 1.3.2 → 1.3.3

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
@@ -1,5 +1,10 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## v1.3.3
4
+
5
+ ### Fixes
6
+ * 🐛 reject errors instead of printing them only to the console
7
+
3
8
  ## v1.3.2
4
9
 
5
10
  ### Fixes
@@ -50,7 +50,7 @@ const request = (url, method, headers, input, includeWords = false) => {
50
50
  data: JSON.parse(responseBody),
51
51
  });
52
52
  } catch (error) {
53
- console.error(responseBody, error);
53
+ reject(error);
54
54
  }
55
55
  });
56
56
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mindee",
3
- "version": "1.3.2",
3
+ "version": "1.3.3",
4
4
  "description": "Mindee Client Library for Node.js",
5
5
  "main": "mindee/index.js",
6
6
  "license": "MIT",