@ngrdt/utils 0.0.95 → 0.0.96

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.
@@ -698,6 +698,19 @@ class RdtStringUtils {
698
698
  const pathEndIdx = (match && match.index) || url.length;
699
699
  return url.slice(0, pathEndIdx);
700
700
  }
701
+ static parseQueryParams(url) {
702
+ const queryStr = url.split('?')[1];
703
+ if (!queryStr) {
704
+ return {};
705
+ }
706
+ const res = {};
707
+ const pairs = decodeURI(queryStr).split('&');
708
+ pairs.forEach((pair) => {
709
+ const [key, value] = pair.split('=');
710
+ res[key] = value;
711
+ });
712
+ return res;
713
+ }
701
714
  }
702
715
 
703
716
  var RdtFormatType;