dce-reactkit 3.7.36 → 3.7.37

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/dist/cjs/index.js CHANGED
@@ -789,12 +789,21 @@ const visitServerEndpoint = (opts) => __awaiter(void 0, void 0, void 0, function
789
789
  // Error
790
790
  throw new ErrorWithCode(stubResponse.errorMessage, stubResponse.errorCode);
791
791
  }
792
+ // Remove properties with undefined values
793
+ let params;
794
+ if (opts.params) {
795
+ params = Object.fromEntries(Object
796
+ .entries(opts.params)
797
+ .filter(([key, value]) => {
798
+ return value !== undefined;
799
+ }));
800
+ }
792
801
  // Send the request
793
802
  const sendRequest = yield getSendRequest();
794
803
  const response = yield sendRequest({
795
804
  path: opts.path,
796
805
  method: (_c = opts.method) !== null && _c !== void 0 ? _c : 'GET',
797
- params: opts.params,
806
+ params,
798
807
  });
799
808
  // Check for failure
800
809
  if (!response || !response.body) {