isdata-customer-sdk 0.2.37 → 0.2.38

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.
@@ -29612,6 +29612,7 @@ __webpack_require__.d(__webpack_exports__, {
29612
29612
  getUserAllMappngPortal: function() { return /* reexport */ getUserAllMappngPortal; },
29613
29613
  getUserID: function() { return /* reexport */ getUserID; },
29614
29614
  hasListener: function() { return /* reexport */ hasListener; },
29615
+ hasUrlParams: function() { return /* reexport */ hasUrlParams; },
29615
29616
  i18n: function() { return /* reexport */ i18n; },
29616
29617
  i18nText: function() { return /* reexport */ i18nText; },
29617
29618
  initDomNodeI18NObserver: function() { return /* reexport */ initDomNodeI18NObserver; },
@@ -33926,6 +33927,16 @@ const findClosestAncestorByClass = (element, className) => {
33926
33927
  // 未找到匹配的祖先节点
33927
33928
  return null;
33928
33929
  };
33930
+ const hasUrlParams = url => {
33931
+ try {
33932
+ // 浏览器环境
33933
+ const urlObj = new URL(url, window.location.href);
33934
+ return urlObj.search.length > 0;
33935
+ } catch (e) {
33936
+ // Node.js 环境
33937
+ return false;
33938
+ }
33939
+ };
33929
33940
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.some.js
33930
33941
  var es_iterator_some = __webpack_require__(3579);
33931
33942
  ;// ./src/api/iframe.js