@getlupa/client 0.7.0-alpha-10 → 0.7.0-alpha-11

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.
@@ -12026,7 +12026,13 @@ const parseParam = (key, params) => {
12026
12026
  if (!value) {
12027
12027
  return undefined;
12028
12028
  }
12029
- return decodeURIComponent(value);
12029
+ try {
12030
+ return decodeURIComponent(value);
12031
+ }
12032
+ catch (_a) {
12033
+ // Invalid parameter, possibly out of LupaSearch plugin scope, return undefined
12034
+ return undefined;
12035
+ }
12030
12036
  };
12031
12037
  const parseRegularKeys = (regularKeys, searchParams) => {
12032
12038
  const params = Object.create({});
@@ -12022,7 +12022,13 @@ const parseParam = (key, params) => {
12022
12022
  if (!value) {
12023
12023
  return undefined;
12024
12024
  }
12025
- return decodeURIComponent(value);
12025
+ try {
12026
+ return decodeURIComponent(value);
12027
+ }
12028
+ catch (_a) {
12029
+ // Invalid parameter, possibly out of LupaSearch plugin scope, return undefined
12030
+ return undefined;
12031
+ }
12026
12032
  };
12027
12033
  const parseRegularKeys = (regularKeys, searchParams) => {
12028
12034
  const params = Object.create({});