@studiometa/js-toolkit 1.7.1 → 1.7.4

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/full.umd.js CHANGED
@@ -7916,7 +7916,7 @@
7916
7916
 
7917
7917
  function objectToURLSearchParams(obj, defaultSearch) {
7918
7918
  if (defaultSearch === void 0) {
7919
- defaultSearch = window.location.search;
7919
+ defaultSearch = typeof window === 'undefined' ? '' : window.location.search;
7920
7920
  }
7921
7921
 
7922
7922
  return Object.entries(obj).reduce(function (urlSearchParams, _ref2) {