@reltio/components 1.4.1629 → 1.4.1631

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.
@@ -152,7 +152,7 @@ var useCustomScripts = function (config) {
152
152
  }, [config, metadata]);
153
153
  var customScriptRequestInterceptor = function (_a) {
154
154
  var _b;
155
- var url = _a.url, next = _a.next, resolve = _a.resolve, options = _a.options;
155
+ var url = _a.url, next = _a.next, resolve = _a.resolve, _c = _a.options, options = _c === void 0 ? {} : _c;
156
156
  var fakeURL = (0, helpers_1.getRequestFakeUrl)(url, apiPath, reltioPath, tenant);
157
157
  var customScript = customScripts.find(function (_a) {
158
158
  var processApiRequest = _a.processApiRequest;
@@ -166,7 +166,7 @@ var useCustomScripts = function (config) {
166
166
  action: 'apiRequest',
167
167
  id: requestId,
168
168
  url: fakeURL,
169
- method: options.method,
169
+ method: options.method || 'GET',
170
170
  headers: __assign(__assign({}, options.headers), { actionId: actionId }),
171
171
  data: options.body || options.data
172
172
  });
@@ -176,7 +176,7 @@ var useCustomScripts = function (config) {
176
176
  }
177
177
  };
178
178
  var customScriptResponseInterceptor = function (_a) {
179
- var url = _a.url, response = _a.response, next = _a.next, options = _a.options, abort = _a.abort;
179
+ var url = _a.url, response = _a.response, next = _a.next, _b = _a.options, options = _b === void 0 ? {} : _b, abort = _a.abort;
180
180
  var fakeURL = (0, helpers_1.getResponseFakeUrl)(url, apiPath, reltioPath);
181
181
  var customScript = customScripts.find(function (_a) {
182
182
  var processApiResponse = _a.processApiResponse;
@@ -194,7 +194,7 @@ var useCustomScripts = function (config) {
194
194
  action: 'apiResponse',
195
195
  id: responseId_1,
196
196
  url: fakeURL,
197
- method: options.method,
197
+ method: options.method || 'GET',
198
198
  data: data
199
199
  });
200
200
  })
@@ -126,7 +126,7 @@ export var useCustomScripts = function (config) {
126
126
  }, [config, metadata]);
127
127
  var customScriptRequestInterceptor = function (_a) {
128
128
  var _b;
129
- var url = _a.url, next = _a.next, resolve = _a.resolve, options = _a.options;
129
+ var url = _a.url, next = _a.next, resolve = _a.resolve, _c = _a.options, options = _c === void 0 ? {} : _c;
130
130
  var fakeURL = getRequestFakeUrl(url, apiPath, reltioPath, tenant);
131
131
  var customScript = customScripts.find(function (_a) {
132
132
  var processApiRequest = _a.processApiRequest;
@@ -140,7 +140,7 @@ export var useCustomScripts = function (config) {
140
140
  action: 'apiRequest',
141
141
  id: requestId,
142
142
  url: fakeURL,
143
- method: options.method,
143
+ method: options.method || 'GET',
144
144
  headers: __assign(__assign({}, options.headers), { actionId: actionId }),
145
145
  data: options.body || options.data
146
146
  });
@@ -150,7 +150,7 @@ export var useCustomScripts = function (config) {
150
150
  }
151
151
  };
152
152
  var customScriptResponseInterceptor = function (_a) {
153
- var url = _a.url, response = _a.response, next = _a.next, options = _a.options, abort = _a.abort;
153
+ var url = _a.url, response = _a.response, next = _a.next, _b = _a.options, options = _b === void 0 ? {} : _b, abort = _a.abort;
154
154
  var fakeURL = getResponseFakeUrl(url, apiPath, reltioPath);
155
155
  var customScript = customScripts.find(function (_a) {
156
156
  var processApiResponse = _a.processApiResponse;
@@ -168,7 +168,7 @@ export var useCustomScripts = function (config) {
168
168
  action: 'apiResponse',
169
169
  id: responseId_1,
170
170
  url: fakeURL,
171
- method: options.method,
171
+ method: options.method || 'GET',
172
172
  data: data
173
173
  });
174
174
  })
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "@reltio/components",
3
- "version": "1.4.1629",
3
+ "version": "1.4.1631",
4
4
  "license": "SEE LICENSE IN LICENSE FILE",
5
5
  "main": "./cjs/index.js",
6
6
  "module": "./esm/index.js",
7
7
  "dependencies": {
8
8
  "@date-io/moment": "^1.3.5",
9
9
  "@react-google-maps/api": "2.7.0",
10
- "@reltio/mdm-module": "^1.4.1629",
11
- "@reltio/mdm-sdk": "^1.4.1629",
10
+ "@reltio/mdm-module": "^1.4.1631",
11
+ "@reltio/mdm-sdk": "^1.4.1631",
12
12
  "classnames": "^2.2.5",
13
13
  "d3-cloud": "^1.2.5",
14
14
  "d3-geo": "^2.0.1",