@ruiapp/rapid-configure-tools 0.2.5 → 0.2.6

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,11 @@
1
1
  # @ruiapp/rapid-configure-tools
2
2
 
3
+ ## 0.2.6
4
+
5
+ ### Patch Changes
6
+
7
+ - 15c31f3: fix axio validateStatus
8
+
3
9
  ## 0.2.5
4
10
 
5
11
  ### Patch Changes
package/dist/mod.js CHANGED
@@ -791,7 +791,9 @@ class RapidModelsUpdater {
791
791
  this.#rapidConfigApi = axiosCookiejarSupport.wrapper(axios__default["default"].create({
792
792
  jar,
793
793
  baseURL: rapidApiUrl,
794
- validateStatus: null,
794
+ validateStatus: (status) => {
795
+ return Math.floor(status / 100) == 2;
796
+ },
795
797
  }));
796
798
  }
797
799
  updateRapidSystemConfigurations() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ruiapp/rapid-configure-tools",
3
- "version": "0.2.5",
3
+ "version": "0.2.6",
4
4
  "description": "",
5
5
  "main": "dist/mod.js",
6
6
  "keywords": [],
@@ -20,7 +20,7 @@
20
20
  "axios-cookiejar-support": "^4.0.7",
21
21
  "lodash": "^4.17.21",
22
22
  "tough-cookie": "^4.1.3",
23
- "@ruiapp/rapid-extension": "^0.3.10"
23
+ "@ruiapp/rapid-extension": "^0.3.13"
24
24
  },
25
25
  "dependencies": {},
26
26
  "scripts": {
@@ -45,7 +45,9 @@ export default class RapidModelsUpdater {
45
45
  axios.create({
46
46
  jar,
47
47
  baseURL: rapidApiUrl,
48
- validateStatus: null,
48
+ validateStatus: (status) => {
49
+ return Math.floor(status / 100) == 2;
50
+ },
49
51
  }),
50
52
  );
51
53
  }