intelicoreact 1.4.14 → 1.4.15

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.
@@ -82,13 +82,11 @@ class RESTAPI extends _ApiBase.default {
82
82
  const {
83
83
  getBodyAs
84
84
  } = item;
85
- const finalIsGetBodyFirst = (() => {
86
- if (item.isGetBody) return item.isGetBody && item.isGetBody === "first";
87
- return isGetBodyFirst;
88
- })();
85
+ const finalIsGetBody = 'isGetBody' in item ? item.isGetBody : isGetBody;
86
+ const finalIsGetBodyFirst = finalIsGetBody === 'first';
89
87
  const checkResponseCallback = finalIsGetBodyFirst ? async (res, mesageOptions) => API_CONTEXT.getResponseBody(await API_CONTEXT.checkResponseCode(res, mesageOptions), getBodyAs) : async (res, mesageOptions) => API_CONTEXT.checkResponseCode(res, mesageOptions);
90
88
  const callback = item.callback ? async res => item.callback(await checkResponseCallback(res, mesageOptions)) : async res => checkResponseCallback(res, mesageOptions);
91
- return isGetBody && !isGetBodyFirst ? async res => API_CONTEXT.getResponseBody(await callback(res), getBodyAs) : callback;
89
+ return finalIsGetBody && !finalIsGetBodyFirst ? async res => API_CONTEXT.getResponseBody(await callback(res), getBodyAs) : callback;
92
90
  }
93
91
  async function getRequestItem(item, idx) {
94
92
  const {
@@ -136,7 +136,7 @@ const FormWithDependOn = /*#__PURE__*/_react.default.forwardRef((_ref, ref) => {
136
136
  }
137
137
  });
138
138
  });
139
- }, []);
139
+ }, [isInitializeByDependOn]);
140
140
 
141
141
  // ***** output *****
142
142
  return /*#__PURE__*/_react.default.createElement("div", (0, _extends2.default)({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "intelicoreact",
3
- "version": "1.4.14",
3
+ "version": "1.4.15",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "files": [