sevago-library 1.1.4 → 1.1.5

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # sevago-library
2
2
 
3
+ ## 1.1.5
4
+
5
+ ### Patch Changes
6
+
7
+ - feat: add cleanSSOParams function to sanitize URLSearchParams
8
+
3
9
  ## 1.1.4
4
10
 
5
11
  ### Patch Changes
package/dist/index.cjs.js CHANGED
@@ -25840,9 +25840,17 @@ const lightenColor = (hex, percent = 0) => {
25840
25840
  b = Math.round(b + (255 - b) * percent);
25841
25841
  return `rgb(${r2}, ${g}, ${b})`;
25842
25842
  };
25843
+ const cleanSSOParams = (searchParams) => {
25844
+ const nextSearchParams = new URLSearchParams(searchParams);
25845
+ nextSearchParams.delete("deviceId");
25846
+ nextSearchParams.delete("authToken");
25847
+ const search = nextSearchParams.toString();
25848
+ return search ? `?${search}` : "";
25849
+ };
25843
25850
  const other_util = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
25844
25851
  __proto__: null,
25845
25852
  calculatePageAndIndex,
25853
+ cleanSSOParams,
25846
25854
  getAppBlackList,
25847
25855
  getCurrentEnvironment,
25848
25856
  getErrorMessage,