@symbo.ls/scratch 2.11.198 → 2.11.204

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.
@@ -811,22 +811,28 @@ var require_object = __commonJS({
811
811
  delete objectized[prop];
812
812
  return stack;
813
813
  };
814
- var isEqualDeep = (param, element) => {
815
- if (param === element)
814
+ var isEqualDeep = (param, element, visited = /* @__PURE__ */ new Set()) => {
815
+ if (typeof param !== "object" || typeof element !== "object" || param === null || element === null) {
816
+ return param === element;
817
+ }
818
+ if (visited.has(param) || visited.has(element)) {
816
819
  return true;
817
- if (!param || !element)
820
+ }
821
+ visited.add(param);
822
+ visited.add(element);
823
+ const keysParam = Object.keys(param);
824
+ const keysElement = Object.keys(element);
825
+ if (keysParam.length !== keysElement.length) {
818
826
  return false;
819
- for (const prop in param) {
820
- const paramProp = param[prop];
821
- const elementProp = element[prop];
822
- if ((0, import_types.isObjectLike)(paramProp)) {
823
- const isEqual = isEqualDeep(paramProp, elementProp);
824
- if (!isEqual)
825
- return false;
826
- } else {
827
- const isEqual = paramProp === elementProp;
828
- if (!isEqual)
829
- return false;
827
+ }
828
+ for (const key of keysParam) {
829
+ if (!keysElement.includes(key)) {
830
+ return false;
831
+ }
832
+ const paramProp = param[key];
833
+ const elementProp = element[key];
834
+ if (!isEqualDeep(paramProp, elementProp, visited)) {
835
+ return false;
830
836
  }
831
837
  }
832
838
  return true;
@@ -870,6 +876,7 @@ var require_function = __commonJS({
870
876
  var function_exports = {};
871
877
  __export2(function_exports, {
872
878
  debounce: () => debounce,
879
+ isStringFunction: () => isStringFunction,
873
880
  memoize: () => memoize
874
881
  });
875
882
  module2.exports = __toCommonJS2(function_exports);
@@ -895,6 +902,10 @@ var require_function = __commonJS({
895
902
  }
896
903
  };
897
904
  };
905
+ var isStringFunction = (inputString) => {
906
+ const functionRegex = /^((function\s*\([^)]*\)\s*\{[^}]*\})|(\([^)]*\)\s*=>))/;
907
+ return functionRegex.test(inputString);
908
+ };
898
909
  }
899
910
  });
900
911
 
package/dist/cjs/index.js CHANGED
@@ -847,22 +847,28 @@ var require_object = __commonJS({
847
847
  delete objectized[prop];
848
848
  return stack;
849
849
  };
850
- var isEqualDeep = (param, element) => {
851
- if (param === element)
850
+ var isEqualDeep = (param, element, visited = /* @__PURE__ */ new Set()) => {
851
+ if (typeof param !== "object" || typeof element !== "object" || param === null || element === null) {
852
+ return param === element;
853
+ }
854
+ if (visited.has(param) || visited.has(element)) {
852
855
  return true;
853
- if (!param || !element)
856
+ }
857
+ visited.add(param);
858
+ visited.add(element);
859
+ const keysParam = Object.keys(param);
860
+ const keysElement = Object.keys(element);
861
+ if (keysParam.length !== keysElement.length) {
854
862
  return false;
855
- for (const prop in param) {
856
- const paramProp = param[prop];
857
- const elementProp = element[prop];
858
- if ((0, import_types.isObjectLike)(paramProp)) {
859
- const isEqual = isEqualDeep(paramProp, elementProp);
860
- if (!isEqual)
861
- return false;
862
- } else {
863
- const isEqual = paramProp === elementProp;
864
- if (!isEqual)
865
- return false;
863
+ }
864
+ for (const key of keysParam) {
865
+ if (!keysElement.includes(key)) {
866
+ return false;
867
+ }
868
+ const paramProp = param[key];
869
+ const elementProp = element[key];
870
+ if (!isEqualDeep(paramProp, elementProp, visited)) {
871
+ return false;
866
872
  }
867
873
  }
868
874
  return true;
@@ -906,6 +912,7 @@ var require_function = __commonJS({
906
912
  var function_exports = {};
907
913
  __export2(function_exports, {
908
914
  debounce: () => debounce,
915
+ isStringFunction: () => isStringFunction,
909
916
  memoize: () => memoize
910
917
  });
911
918
  module2.exports = __toCommonJS2(function_exports);
@@ -931,6 +938,10 @@ var require_function = __commonJS({
931
938
  }
932
939
  };
933
940
  };
941
+ var isStringFunction = (inputString) => {
942
+ const functionRegex = /^((function\s*\([^)]*\)\s*\{[^}]*\})|(\([^)]*\)\s*=>))/;
943
+ return functionRegex.test(inputString);
944
+ };
934
945
  }
935
946
  });
936
947
 
package/dist/cjs/set.js CHANGED
@@ -811,22 +811,28 @@ var require_object = __commonJS({
811
811
  delete objectized[prop];
812
812
  return stack;
813
813
  };
814
- var isEqualDeep = (param, element) => {
815
- if (param === element)
814
+ var isEqualDeep = (param, element, visited = /* @__PURE__ */ new Set()) => {
815
+ if (typeof param !== "object" || typeof element !== "object" || param === null || element === null) {
816
+ return param === element;
817
+ }
818
+ if (visited.has(param) || visited.has(element)) {
816
819
  return true;
817
- if (!param || !element)
820
+ }
821
+ visited.add(param);
822
+ visited.add(element);
823
+ const keysParam = Object.keys(param);
824
+ const keysElement = Object.keys(element);
825
+ if (keysParam.length !== keysElement.length) {
818
826
  return false;
819
- for (const prop in param) {
820
- const paramProp = param[prop];
821
- const elementProp = element[prop];
822
- if ((0, import_types.isObjectLike)(paramProp)) {
823
- const isEqual = isEqualDeep(paramProp, elementProp);
824
- if (!isEqual)
825
- return false;
826
- } else {
827
- const isEqual = paramProp === elementProp;
828
- if (!isEqual)
829
- return false;
827
+ }
828
+ for (const key of keysParam) {
829
+ if (!keysElement.includes(key)) {
830
+ return false;
831
+ }
832
+ const paramProp = param[key];
833
+ const elementProp = element[key];
834
+ if (!isEqualDeep(paramProp, elementProp, visited)) {
835
+ return false;
830
836
  }
831
837
  }
832
838
  return true;
@@ -870,6 +876,7 @@ var require_function = __commonJS({
870
876
  var function_exports = {};
871
877
  __export2(function_exports, {
872
878
  debounce: () => debounce,
879
+ isStringFunction: () => isStringFunction,
873
880
  memoize: () => memoize
874
881
  });
875
882
  module2.exports = __toCommonJS2(function_exports);
@@ -895,6 +902,10 @@ var require_function = __commonJS({
895
902
  }
896
903
  };
897
904
  };
905
+ var isStringFunction = (inputString) => {
906
+ const functionRegex = /^((function\s*\([^)]*\)\s*\{[^}]*\})|(\([^)]*\)\s*=>))/;
907
+ return functionRegex.test(inputString);
908
+ };
898
909
  }
899
910
  });
900
911
 
@@ -811,22 +811,28 @@ var require_object = __commonJS({
811
811
  delete objectized[prop];
812
812
  return stack;
813
813
  };
814
- var isEqualDeep = (param, element) => {
815
- if (param === element)
814
+ var isEqualDeep = (param, element, visited = /* @__PURE__ */ new Set()) => {
815
+ if (typeof param !== "object" || typeof element !== "object" || param === null || element === null) {
816
+ return param === element;
817
+ }
818
+ if (visited.has(param) || visited.has(element)) {
816
819
  return true;
817
- if (!param || !element)
820
+ }
821
+ visited.add(param);
822
+ visited.add(element);
823
+ const keysParam = Object.keys(param);
824
+ const keysElement = Object.keys(element);
825
+ if (keysParam.length !== keysElement.length) {
818
826
  return false;
819
- for (const prop in param) {
820
- const paramProp = param[prop];
821
- const elementProp = element[prop];
822
- if ((0, import_types.isObjectLike)(paramProp)) {
823
- const isEqual = isEqualDeep(paramProp, elementProp);
824
- if (!isEqual)
825
- return false;
826
- } else {
827
- const isEqual = paramProp === elementProp;
828
- if (!isEqual)
829
- return false;
827
+ }
828
+ for (const key of keysParam) {
829
+ if (!keysElement.includes(key)) {
830
+ return false;
831
+ }
832
+ const paramProp = param[key];
833
+ const elementProp = element[key];
834
+ if (!isEqualDeep(paramProp, elementProp, visited)) {
835
+ return false;
830
836
  }
831
837
  }
832
838
  return true;
@@ -870,6 +876,7 @@ var require_function = __commonJS({
870
876
  var function_exports = {};
871
877
  __export2(function_exports, {
872
878
  debounce: () => debounce,
879
+ isStringFunction: () => isStringFunction,
873
880
  memoize: () => memoize
874
881
  });
875
882
  module2.exports = __toCommonJS2(function_exports);
@@ -895,6 +902,10 @@ var require_function = __commonJS({
895
902
  }
896
903
  };
897
904
  };
905
+ var isStringFunction = (inputString) => {
906
+ const functionRegex = /^((function\s*\([^)]*\)\s*\{[^}]*\})|(\([^)]*\)\s*=>))/;
907
+ return functionRegex.test(inputString);
908
+ };
898
909
  }
899
910
  });
900
911
 
@@ -811,22 +811,28 @@ var require_object = __commonJS({
811
811
  delete objectized[prop];
812
812
  return stack;
813
813
  };
814
- var isEqualDeep = (param, element) => {
815
- if (param === element)
814
+ var isEqualDeep = (param, element, visited = /* @__PURE__ */ new Set()) => {
815
+ if (typeof param !== "object" || typeof element !== "object" || param === null || element === null) {
816
+ return param === element;
817
+ }
818
+ if (visited.has(param) || visited.has(element)) {
816
819
  return true;
817
- if (!param || !element)
820
+ }
821
+ visited.add(param);
822
+ visited.add(element);
823
+ const keysParam = Object.keys(param);
824
+ const keysElement = Object.keys(element);
825
+ if (keysParam.length !== keysElement.length) {
818
826
  return false;
819
- for (const prop in param) {
820
- const paramProp = param[prop];
821
- const elementProp = element[prop];
822
- if ((0, import_types.isObjectLike)(paramProp)) {
823
- const isEqual = isEqualDeep(paramProp, elementProp);
824
- if (!isEqual)
825
- return false;
826
- } else {
827
- const isEqual = paramProp === elementProp;
828
- if (!isEqual)
829
- return false;
827
+ }
828
+ for (const key of keysParam) {
829
+ if (!keysElement.includes(key)) {
830
+ return false;
831
+ }
832
+ const paramProp = param[key];
833
+ const elementProp = element[key];
834
+ if (!isEqualDeep(paramProp, elementProp, visited)) {
835
+ return false;
830
836
  }
831
837
  }
832
838
  return true;
@@ -870,6 +876,7 @@ var require_function = __commonJS({
870
876
  var function_exports = {};
871
877
  __export2(function_exports, {
872
878
  debounce: () => debounce,
879
+ isStringFunction: () => isStringFunction,
873
880
  memoize: () => memoize
874
881
  });
875
882
  module2.exports = __toCommonJS2(function_exports);
@@ -895,6 +902,10 @@ var require_function = __commonJS({
895
902
  }
896
903
  };
897
904
  };
905
+ var isStringFunction = (inputString) => {
906
+ const functionRegex = /^((function\s*\([^)]*\)\s*\{[^}]*\})|(\([^)]*\)\s*=>))/;
907
+ return functionRegex.test(inputString);
908
+ };
898
909
  }
899
910
  });
900
911
 
@@ -811,22 +811,28 @@ var require_object = __commonJS({
811
811
  delete objectized[prop];
812
812
  return stack;
813
813
  };
814
- var isEqualDeep = (param, element) => {
815
- if (param === element)
814
+ var isEqualDeep = (param, element, visited = /* @__PURE__ */ new Set()) => {
815
+ if (typeof param !== "object" || typeof element !== "object" || param === null || element === null) {
816
+ return param === element;
817
+ }
818
+ if (visited.has(param) || visited.has(element)) {
816
819
  return true;
817
- if (!param || !element)
820
+ }
821
+ visited.add(param);
822
+ visited.add(element);
823
+ const keysParam = Object.keys(param);
824
+ const keysElement = Object.keys(element);
825
+ if (keysParam.length !== keysElement.length) {
818
826
  return false;
819
- for (const prop in param) {
820
- const paramProp = param[prop];
821
- const elementProp = element[prop];
822
- if ((0, import_types.isObjectLike)(paramProp)) {
823
- const isEqual = isEqualDeep(paramProp, elementProp);
824
- if (!isEqual)
825
- return false;
826
- } else {
827
- const isEqual = paramProp === elementProp;
828
- if (!isEqual)
829
- return false;
827
+ }
828
+ for (const key of keysParam) {
829
+ if (!keysElement.includes(key)) {
830
+ return false;
831
+ }
832
+ const paramProp = param[key];
833
+ const elementProp = element[key];
834
+ if (!isEqualDeep(paramProp, elementProp, visited)) {
835
+ return false;
830
836
  }
831
837
  }
832
838
  return true;
@@ -870,6 +876,7 @@ var require_function = __commonJS({
870
876
  var function_exports = {};
871
877
  __export2(function_exports, {
872
878
  debounce: () => debounce,
879
+ isStringFunction: () => isStringFunction,
873
880
  memoize: () => memoize
874
881
  });
875
882
  module2.exports = __toCommonJS2(function_exports);
@@ -895,6 +902,10 @@ var require_function = __commonJS({
895
902
  }
896
903
  };
897
904
  };
905
+ var isStringFunction = (inputString) => {
906
+ const functionRegex = /^((function\s*\([^)]*\)\s*\{[^}]*\})|(\([^)]*\)\s*=>))/;
907
+ return functionRegex.test(inputString);
908
+ };
898
909
  }
899
910
  });
900
911
 
@@ -811,22 +811,28 @@ var require_object = __commonJS({
811
811
  delete objectized[prop];
812
812
  return stack;
813
813
  };
814
- var isEqualDeep = (param, element) => {
815
- if (param === element)
814
+ var isEqualDeep = (param, element, visited = /* @__PURE__ */ new Set()) => {
815
+ if (typeof param !== "object" || typeof element !== "object" || param === null || element === null) {
816
+ return param === element;
817
+ }
818
+ if (visited.has(param) || visited.has(element)) {
816
819
  return true;
817
- if (!param || !element)
820
+ }
821
+ visited.add(param);
822
+ visited.add(element);
823
+ const keysParam = Object.keys(param);
824
+ const keysElement = Object.keys(element);
825
+ if (keysParam.length !== keysElement.length) {
818
826
  return false;
819
- for (const prop in param) {
820
- const paramProp = param[prop];
821
- const elementProp = element[prop];
822
- if ((0, import_types.isObjectLike)(paramProp)) {
823
- const isEqual = isEqualDeep(paramProp, elementProp);
824
- if (!isEqual)
825
- return false;
826
- } else {
827
- const isEqual = paramProp === elementProp;
828
- if (!isEqual)
829
- return false;
827
+ }
828
+ for (const key of keysParam) {
829
+ if (!keysElement.includes(key)) {
830
+ return false;
831
+ }
832
+ const paramProp = param[key];
833
+ const elementProp = element[key];
834
+ if (!isEqualDeep(paramProp, elementProp, visited)) {
835
+ return false;
830
836
  }
831
837
  }
832
838
  return true;
@@ -870,6 +876,7 @@ var require_function = __commonJS({
870
876
  var function_exports = {};
871
877
  __export2(function_exports, {
872
878
  debounce: () => debounce,
879
+ isStringFunction: () => isStringFunction,
873
880
  memoize: () => memoize
874
881
  });
875
882
  module2.exports = __toCommonJS2(function_exports);
@@ -895,6 +902,10 @@ var require_function = __commonJS({
895
902
  }
896
903
  };
897
904
  };
905
+ var isStringFunction = (inputString) => {
906
+ const functionRegex = /^((function\s*\([^)]*\)\s*\{[^}]*\})|(\([^)]*\)\s*=>))/;
907
+ return functionRegex.test(inputString);
908
+ };
898
909
  }
899
910
  });
900
911
 
@@ -811,22 +811,28 @@ var require_object = __commonJS({
811
811
  delete objectized[prop];
812
812
  return stack;
813
813
  };
814
- var isEqualDeep = (param, element) => {
815
- if (param === element)
814
+ var isEqualDeep = (param, element, visited = /* @__PURE__ */ new Set()) => {
815
+ if (typeof param !== "object" || typeof element !== "object" || param === null || element === null) {
816
+ return param === element;
817
+ }
818
+ if (visited.has(param) || visited.has(element)) {
816
819
  return true;
817
- if (!param || !element)
820
+ }
821
+ visited.add(param);
822
+ visited.add(element);
823
+ const keysParam = Object.keys(param);
824
+ const keysElement = Object.keys(element);
825
+ if (keysParam.length !== keysElement.length) {
818
826
  return false;
819
- for (const prop in param) {
820
- const paramProp = param[prop];
821
- const elementProp = element[prop];
822
- if ((0, import_types.isObjectLike)(paramProp)) {
823
- const isEqual = isEqualDeep(paramProp, elementProp);
824
- if (!isEqual)
825
- return false;
826
- } else {
827
- const isEqual = paramProp === elementProp;
828
- if (!isEqual)
829
- return false;
827
+ }
828
+ for (const key of keysParam) {
829
+ if (!keysElement.includes(key)) {
830
+ return false;
831
+ }
832
+ const paramProp = param[key];
833
+ const elementProp = element[key];
834
+ if (!isEqualDeep(paramProp, elementProp, visited)) {
835
+ return false;
830
836
  }
831
837
  }
832
838
  return true;
@@ -870,6 +876,7 @@ var require_function = __commonJS({
870
876
  var function_exports = {};
871
877
  __export2(function_exports, {
872
878
  debounce: () => debounce,
879
+ isStringFunction: () => isStringFunction,
873
880
  memoize: () => memoize
874
881
  });
875
882
  module2.exports = __toCommonJS2(function_exports);
@@ -895,6 +902,10 @@ var require_function = __commonJS({
895
902
  }
896
903
  };
897
904
  };
905
+ var isStringFunction = (inputString) => {
906
+ const functionRegex = /^((function\s*\([^)]*\)\s*\{[^}]*\})|(\([^)]*\)\s*=>))/;
907
+ return functionRegex.test(inputString);
908
+ };
898
909
  }
899
910
  });
900
911
 
@@ -811,22 +811,28 @@ var require_object = __commonJS({
811
811
  delete objectized[prop];
812
812
  return stack;
813
813
  };
814
- var isEqualDeep = (param, element) => {
815
- if (param === element)
814
+ var isEqualDeep = (param, element, visited = /* @__PURE__ */ new Set()) => {
815
+ if (typeof param !== "object" || typeof element !== "object" || param === null || element === null) {
816
+ return param === element;
817
+ }
818
+ if (visited.has(param) || visited.has(element)) {
816
819
  return true;
817
- if (!param || !element)
820
+ }
821
+ visited.add(param);
822
+ visited.add(element);
823
+ const keysParam = Object.keys(param);
824
+ const keysElement = Object.keys(element);
825
+ if (keysParam.length !== keysElement.length) {
818
826
  return false;
819
- for (const prop in param) {
820
- const paramProp = param[prop];
821
- const elementProp = element[prop];
822
- if ((0, import_types.isObjectLike)(paramProp)) {
823
- const isEqual = isEqualDeep(paramProp, elementProp);
824
- if (!isEqual)
825
- return false;
826
- } else {
827
- const isEqual = paramProp === elementProp;
828
- if (!isEqual)
829
- return false;
827
+ }
828
+ for (const key of keysParam) {
829
+ if (!keysElement.includes(key)) {
830
+ return false;
831
+ }
832
+ const paramProp = param[key];
833
+ const elementProp = element[key];
834
+ if (!isEqualDeep(paramProp, elementProp, visited)) {
835
+ return false;
830
836
  }
831
837
  }
832
838
  return true;
@@ -870,6 +876,7 @@ var require_function = __commonJS({
870
876
  var function_exports = {};
871
877
  __export2(function_exports, {
872
878
  debounce: () => debounce,
879
+ isStringFunction: () => isStringFunction,
873
880
  memoize: () => memoize
874
881
  });
875
882
  module2.exports = __toCommonJS2(function_exports);
@@ -895,6 +902,10 @@ var require_function = __commonJS({
895
902
  }
896
903
  };
897
904
  };
905
+ var isStringFunction = (inputString) => {
906
+ const functionRegex = /^((function\s*\([^)]*\)\s*\{[^}]*\})|(\([^)]*\)\s*=>))/;
907
+ return functionRegex.test(inputString);
908
+ };
898
909
  }
899
910
  });
900
911
 
@@ -847,22 +847,28 @@ var require_object = __commonJS({
847
847
  delete objectized[prop];
848
848
  return stack;
849
849
  };
850
- var isEqualDeep = (param, element) => {
851
- if (param === element)
850
+ var isEqualDeep = (param, element, visited = /* @__PURE__ */ new Set()) => {
851
+ if (typeof param !== "object" || typeof element !== "object" || param === null || element === null) {
852
+ return param === element;
853
+ }
854
+ if (visited.has(param) || visited.has(element)) {
852
855
  return true;
853
- if (!param || !element)
856
+ }
857
+ visited.add(param);
858
+ visited.add(element);
859
+ const keysParam = Object.keys(param);
860
+ const keysElement = Object.keys(element);
861
+ if (keysParam.length !== keysElement.length) {
854
862
  return false;
855
- for (const prop in param) {
856
- const paramProp = param[prop];
857
- const elementProp = element[prop];
858
- if ((0, import_types.isObjectLike)(paramProp)) {
859
- const isEqual = isEqualDeep(paramProp, elementProp);
860
- if (!isEqual)
861
- return false;
862
- } else {
863
- const isEqual = paramProp === elementProp;
864
- if (!isEqual)
865
- return false;
863
+ }
864
+ for (const key of keysParam) {
865
+ if (!keysElement.includes(key)) {
866
+ return false;
867
+ }
868
+ const paramProp = param[key];
869
+ const elementProp = element[key];
870
+ if (!isEqualDeep(paramProp, elementProp, visited)) {
871
+ return false;
866
872
  }
867
873
  }
868
874
  return true;
@@ -906,6 +912,7 @@ var require_function = __commonJS({
906
912
  var function_exports = {};
907
913
  __export2(function_exports, {
908
914
  debounce: () => debounce,
915
+ isStringFunction: () => isStringFunction,
909
916
  memoize: () => memoize
910
917
  });
911
918
  module2.exports = __toCommonJS2(function_exports);
@@ -931,6 +938,10 @@ var require_function = __commonJS({
931
938
  }
932
939
  };
933
940
  };
941
+ var isStringFunction = (inputString) => {
942
+ const functionRegex = /^((function\s*\([^)]*\)\s*\{[^}]*\})|(\([^)]*\)\s*=>))/;
943
+ return functionRegex.test(inputString);
944
+ };
934
945
  }
935
946
  });
936
947
 
@@ -811,22 +811,28 @@ var require_object = __commonJS({
811
811
  delete objectized[prop];
812
812
  return stack;
813
813
  };
814
- var isEqualDeep = (param, element) => {
815
- if (param === element)
814
+ var isEqualDeep = (param, element, visited = /* @__PURE__ */ new Set()) => {
815
+ if (typeof param !== "object" || typeof element !== "object" || param === null || element === null) {
816
+ return param === element;
817
+ }
818
+ if (visited.has(param) || visited.has(element)) {
816
819
  return true;
817
- if (!param || !element)
820
+ }
821
+ visited.add(param);
822
+ visited.add(element);
823
+ const keysParam = Object.keys(param);
824
+ const keysElement = Object.keys(element);
825
+ if (keysParam.length !== keysElement.length) {
818
826
  return false;
819
- for (const prop in param) {
820
- const paramProp = param[prop];
821
- const elementProp = element[prop];
822
- if ((0, import_types.isObjectLike)(paramProp)) {
823
- const isEqual = isEqualDeep(paramProp, elementProp);
824
- if (!isEqual)
825
- return false;
826
- } else {
827
- const isEqual = paramProp === elementProp;
828
- if (!isEqual)
829
- return false;
827
+ }
828
+ for (const key of keysParam) {
829
+ if (!keysElement.includes(key)) {
830
+ return false;
831
+ }
832
+ const paramProp = param[key];
833
+ const elementProp = element[key];
834
+ if (!isEqualDeep(paramProp, elementProp, visited)) {
835
+ return false;
830
836
  }
831
837
  }
832
838
  return true;
@@ -870,6 +876,7 @@ var require_function = __commonJS({
870
876
  var function_exports = {};
871
877
  __export2(function_exports, {
872
878
  debounce: () => debounce,
879
+ isStringFunction: () => isStringFunction,
873
880
  memoize: () => memoize
874
881
  });
875
882
  module2.exports = __toCommonJS2(function_exports);
@@ -895,6 +902,10 @@ var require_function = __commonJS({
895
902
  }
896
903
  };
897
904
  };
905
+ var isStringFunction = (inputString) => {
906
+ const functionRegex = /^((function\s*\([^)]*\)\s*\{[^}]*\})|(\([^)]*\)\s*=>))/;
907
+ return functionRegex.test(inputString);
908
+ };
898
909
  }
899
910
  });
900
911
 
@@ -811,22 +811,28 @@ var require_object = __commonJS({
811
811
  delete objectized[prop];
812
812
  return stack;
813
813
  };
814
- var isEqualDeep = (param, element) => {
815
- if (param === element)
814
+ var isEqualDeep = (param, element, visited = /* @__PURE__ */ new Set()) => {
815
+ if (typeof param !== "object" || typeof element !== "object" || param === null || element === null) {
816
+ return param === element;
817
+ }
818
+ if (visited.has(param) || visited.has(element)) {
816
819
  return true;
817
- if (!param || !element)
820
+ }
821
+ visited.add(param);
822
+ visited.add(element);
823
+ const keysParam = Object.keys(param);
824
+ const keysElement = Object.keys(element);
825
+ if (keysParam.length !== keysElement.length) {
818
826
  return false;
819
- for (const prop in param) {
820
- const paramProp = param[prop];
821
- const elementProp = element[prop];
822
- if ((0, import_types.isObjectLike)(paramProp)) {
823
- const isEqual = isEqualDeep(paramProp, elementProp);
824
- if (!isEqual)
825
- return false;
826
- } else {
827
- const isEqual = paramProp === elementProp;
828
- if (!isEqual)
829
- return false;
827
+ }
828
+ for (const key of keysParam) {
829
+ if (!keysElement.includes(key)) {
830
+ return false;
831
+ }
832
+ const paramProp = param[key];
833
+ const elementProp = element[key];
834
+ if (!isEqualDeep(paramProp, elementProp, visited)) {
835
+ return false;
830
836
  }
831
837
  }
832
838
  return true;
@@ -870,6 +876,7 @@ var require_function = __commonJS({
870
876
  var function_exports = {};
871
877
  __export2(function_exports, {
872
878
  debounce: () => debounce,
879
+ isStringFunction: () => isStringFunction,
873
880
  memoize: () => memoize
874
881
  });
875
882
  module2.exports = __toCommonJS2(function_exports);
@@ -895,6 +902,10 @@ var require_function = __commonJS({
895
902
  }
896
903
  };
897
904
  };
905
+ var isStringFunction = (inputString) => {
906
+ const functionRegex = /^((function\s*\([^)]*\)\s*\{[^}]*\})|(\([^)]*\)\s*=>))/;
907
+ return functionRegex.test(inputString);
908
+ };
898
909
  }
899
910
  });
900
911
 
@@ -811,22 +811,28 @@ var require_object = __commonJS({
811
811
  delete objectized[prop];
812
812
  return stack;
813
813
  };
814
- var isEqualDeep = (param, element) => {
815
- if (param === element)
814
+ var isEqualDeep = (param, element, visited = /* @__PURE__ */ new Set()) => {
815
+ if (typeof param !== "object" || typeof element !== "object" || param === null || element === null) {
816
+ return param === element;
817
+ }
818
+ if (visited.has(param) || visited.has(element)) {
816
819
  return true;
817
- if (!param || !element)
820
+ }
821
+ visited.add(param);
822
+ visited.add(element);
823
+ const keysParam = Object.keys(param);
824
+ const keysElement = Object.keys(element);
825
+ if (keysParam.length !== keysElement.length) {
818
826
  return false;
819
- for (const prop in param) {
820
- const paramProp = param[prop];
821
- const elementProp = element[prop];
822
- if ((0, import_types.isObjectLike)(paramProp)) {
823
- const isEqual = isEqualDeep(paramProp, elementProp);
824
- if (!isEqual)
825
- return false;
826
- } else {
827
- const isEqual = paramProp === elementProp;
828
- if (!isEqual)
829
- return false;
827
+ }
828
+ for (const key of keysParam) {
829
+ if (!keysElement.includes(key)) {
830
+ return false;
831
+ }
832
+ const paramProp = param[key];
833
+ const elementProp = element[key];
834
+ if (!isEqualDeep(paramProp, elementProp, visited)) {
835
+ return false;
830
836
  }
831
837
  }
832
838
  return true;
@@ -870,6 +876,7 @@ var require_function = __commonJS({
870
876
  var function_exports = {};
871
877
  __export2(function_exports, {
872
878
  debounce: () => debounce,
879
+ isStringFunction: () => isStringFunction,
873
880
  memoize: () => memoize
874
881
  });
875
882
  module2.exports = __toCommonJS2(function_exports);
@@ -895,6 +902,10 @@ var require_function = __commonJS({
895
902
  }
896
903
  };
897
904
  };
905
+ var isStringFunction = (inputString) => {
906
+ const functionRegex = /^((function\s*\([^)]*\)\s*\{[^}]*\})|(\([^)]*\)\s*=>))/;
907
+ return functionRegex.test(inputString);
908
+ };
898
909
  }
899
910
  });
900
911
 
@@ -811,22 +811,28 @@ var require_object = __commonJS({
811
811
  delete objectized[prop];
812
812
  return stack;
813
813
  };
814
- var isEqualDeep = (param, element) => {
815
- if (param === element)
814
+ var isEqualDeep = (param, element, visited = /* @__PURE__ */ new Set()) => {
815
+ if (typeof param !== "object" || typeof element !== "object" || param === null || element === null) {
816
+ return param === element;
817
+ }
818
+ if (visited.has(param) || visited.has(element)) {
816
819
  return true;
817
- if (!param || !element)
820
+ }
821
+ visited.add(param);
822
+ visited.add(element);
823
+ const keysParam = Object.keys(param);
824
+ const keysElement = Object.keys(element);
825
+ if (keysParam.length !== keysElement.length) {
818
826
  return false;
819
- for (const prop in param) {
820
- const paramProp = param[prop];
821
- const elementProp = element[prop];
822
- if ((0, import_types.isObjectLike)(paramProp)) {
823
- const isEqual = isEqualDeep(paramProp, elementProp);
824
- if (!isEqual)
825
- return false;
826
- } else {
827
- const isEqual = paramProp === elementProp;
828
- if (!isEqual)
829
- return false;
827
+ }
828
+ for (const key of keysParam) {
829
+ if (!keysElement.includes(key)) {
830
+ return false;
831
+ }
832
+ const paramProp = param[key];
833
+ const elementProp = element[key];
834
+ if (!isEqualDeep(paramProp, elementProp, visited)) {
835
+ return false;
830
836
  }
831
837
  }
832
838
  return true;
@@ -870,6 +876,7 @@ var require_function = __commonJS({
870
876
  var function_exports = {};
871
877
  __export2(function_exports, {
872
878
  debounce: () => debounce,
879
+ isStringFunction: () => isStringFunction,
873
880
  memoize: () => memoize
874
881
  });
875
882
  module2.exports = __toCommonJS2(function_exports);
@@ -895,6 +902,10 @@ var require_function = __commonJS({
895
902
  }
896
903
  };
897
904
  };
905
+ var isStringFunction = (inputString) => {
906
+ const functionRegex = /^((function\s*\([^)]*\)\s*\{[^}]*\})|(\([^)]*\)\s*=>))/;
907
+ return functionRegex.test(inputString);
908
+ };
898
909
  }
899
910
  });
900
911
 
@@ -847,22 +847,28 @@ var require_object = __commonJS({
847
847
  delete objectized[prop];
848
848
  return stack;
849
849
  };
850
- var isEqualDeep = (param, element) => {
851
- if (param === element)
850
+ var isEqualDeep = (param, element, visited = /* @__PURE__ */ new Set()) => {
851
+ if (typeof param !== "object" || typeof element !== "object" || param === null || element === null) {
852
+ return param === element;
853
+ }
854
+ if (visited.has(param) || visited.has(element)) {
852
855
  return true;
853
- if (!param || !element)
856
+ }
857
+ visited.add(param);
858
+ visited.add(element);
859
+ const keysParam = Object.keys(param);
860
+ const keysElement = Object.keys(element);
861
+ if (keysParam.length !== keysElement.length) {
854
862
  return false;
855
- for (const prop in param) {
856
- const paramProp = param[prop];
857
- const elementProp = element[prop];
858
- if ((0, import_types.isObjectLike)(paramProp)) {
859
- const isEqual = isEqualDeep(paramProp, elementProp);
860
- if (!isEqual)
861
- return false;
862
- } else {
863
- const isEqual = paramProp === elementProp;
864
- if (!isEqual)
865
- return false;
863
+ }
864
+ for (const key of keysParam) {
865
+ if (!keysElement.includes(key)) {
866
+ return false;
867
+ }
868
+ const paramProp = param[key];
869
+ const elementProp = element[key];
870
+ if (!isEqualDeep(paramProp, elementProp, visited)) {
871
+ return false;
866
872
  }
867
873
  }
868
874
  return true;
@@ -906,6 +912,7 @@ var require_function = __commonJS({
906
912
  var function_exports = {};
907
913
  __export2(function_exports, {
908
914
  debounce: () => debounce,
915
+ isStringFunction: () => isStringFunction,
909
916
  memoize: () => memoize
910
917
  });
911
918
  module2.exports = __toCommonJS2(function_exports);
@@ -931,6 +938,10 @@ var require_function = __commonJS({
931
938
  }
932
939
  };
933
940
  };
941
+ var isStringFunction = (inputString) => {
942
+ const functionRegex = /^((function\s*\([^)]*\)\s*\{[^}]*\})|(\([^)]*\)\s*=>))/;
943
+ return functionRegex.test(inputString);
944
+ };
934
945
  }
935
946
  });
936
947
 
@@ -847,22 +847,28 @@ var require_object = __commonJS({
847
847
  delete objectized[prop];
848
848
  return stack;
849
849
  };
850
- var isEqualDeep = (param, element) => {
851
- if (param === element)
850
+ var isEqualDeep = (param, element, visited = /* @__PURE__ */ new Set()) => {
851
+ if (typeof param !== "object" || typeof element !== "object" || param === null || element === null) {
852
+ return param === element;
853
+ }
854
+ if (visited.has(param) || visited.has(element)) {
852
855
  return true;
853
- if (!param || !element)
856
+ }
857
+ visited.add(param);
858
+ visited.add(element);
859
+ const keysParam = Object.keys(param);
860
+ const keysElement = Object.keys(element);
861
+ if (keysParam.length !== keysElement.length) {
854
862
  return false;
855
- for (const prop in param) {
856
- const paramProp = param[prop];
857
- const elementProp = element[prop];
858
- if ((0, import_types.isObjectLike)(paramProp)) {
859
- const isEqual = isEqualDeep(paramProp, elementProp);
860
- if (!isEqual)
861
- return false;
862
- } else {
863
- const isEqual = paramProp === elementProp;
864
- if (!isEqual)
865
- return false;
863
+ }
864
+ for (const key of keysParam) {
865
+ if (!keysElement.includes(key)) {
866
+ return false;
867
+ }
868
+ const paramProp = param[key];
869
+ const elementProp = element[key];
870
+ if (!isEqualDeep(paramProp, elementProp, visited)) {
871
+ return false;
866
872
  }
867
873
  }
868
874
  return true;
@@ -906,6 +912,7 @@ var require_function = __commonJS({
906
912
  var function_exports = {};
907
913
  __export2(function_exports, {
908
914
  debounce: () => debounce,
915
+ isStringFunction: () => isStringFunction,
909
916
  memoize: () => memoize
910
917
  });
911
918
  module2.exports = __toCommonJS2(function_exports);
@@ -931,6 +938,10 @@ var require_function = __commonJS({
931
938
  }
932
939
  };
933
940
  };
941
+ var isStringFunction = (inputString) => {
942
+ const functionRegex = /^((function\s*\([^)]*\)\s*\{[^}]*\})|(\([^)]*\)\s*=>))/;
943
+ return functionRegex.test(inputString);
944
+ };
934
945
  }
935
946
  });
936
947
 
@@ -811,22 +811,28 @@ var require_object = __commonJS({
811
811
  delete objectized[prop];
812
812
  return stack;
813
813
  };
814
- var isEqualDeep = (param, element) => {
815
- if (param === element)
814
+ var isEqualDeep = (param, element, visited = /* @__PURE__ */ new Set()) => {
815
+ if (typeof param !== "object" || typeof element !== "object" || param === null || element === null) {
816
+ return param === element;
817
+ }
818
+ if (visited.has(param) || visited.has(element)) {
816
819
  return true;
817
- if (!param || !element)
820
+ }
821
+ visited.add(param);
822
+ visited.add(element);
823
+ const keysParam = Object.keys(param);
824
+ const keysElement = Object.keys(element);
825
+ if (keysParam.length !== keysElement.length) {
818
826
  return false;
819
- for (const prop in param) {
820
- const paramProp = param[prop];
821
- const elementProp = element[prop];
822
- if ((0, import_types.isObjectLike)(paramProp)) {
823
- const isEqual = isEqualDeep(paramProp, elementProp);
824
- if (!isEqual)
825
- return false;
826
- } else {
827
- const isEqual = paramProp === elementProp;
828
- if (!isEqual)
829
- return false;
827
+ }
828
+ for (const key of keysParam) {
829
+ if (!keysElement.includes(key)) {
830
+ return false;
831
+ }
832
+ const paramProp = param[key];
833
+ const elementProp = element[key];
834
+ if (!isEqualDeep(paramProp, elementProp, visited)) {
835
+ return false;
830
836
  }
831
837
  }
832
838
  return true;
@@ -870,6 +876,7 @@ var require_function = __commonJS({
870
876
  var function_exports = {};
871
877
  __export2(function_exports, {
872
878
  debounce: () => debounce,
879
+ isStringFunction: () => isStringFunction,
873
880
  memoize: () => memoize
874
881
  });
875
882
  module2.exports = __toCommonJS2(function_exports);
@@ -895,6 +902,10 @@ var require_function = __commonJS({
895
902
  }
896
903
  };
897
904
  };
905
+ var isStringFunction = (inputString) => {
906
+ const functionRegex = /^((function\s*\([^)]*\)\s*\{[^}]*\})|(\([^)]*\)\s*=>))/;
907
+ return functionRegex.test(inputString);
908
+ };
898
909
  }
899
910
  });
900
911
 
@@ -811,22 +811,28 @@ var require_object = __commonJS({
811
811
  delete objectized[prop];
812
812
  return stack;
813
813
  };
814
- var isEqualDeep = (param, element) => {
815
- if (param === element)
814
+ var isEqualDeep = (param, element, visited = /* @__PURE__ */ new Set()) => {
815
+ if (typeof param !== "object" || typeof element !== "object" || param === null || element === null) {
816
+ return param === element;
817
+ }
818
+ if (visited.has(param) || visited.has(element)) {
816
819
  return true;
817
- if (!param || !element)
820
+ }
821
+ visited.add(param);
822
+ visited.add(element);
823
+ const keysParam = Object.keys(param);
824
+ const keysElement = Object.keys(element);
825
+ if (keysParam.length !== keysElement.length) {
818
826
  return false;
819
- for (const prop in param) {
820
- const paramProp = param[prop];
821
- const elementProp = element[prop];
822
- if ((0, import_types.isObjectLike)(paramProp)) {
823
- const isEqual = isEqualDeep(paramProp, elementProp);
824
- if (!isEqual)
825
- return false;
826
- } else {
827
- const isEqual = paramProp === elementProp;
828
- if (!isEqual)
829
- return false;
827
+ }
828
+ for (const key of keysParam) {
829
+ if (!keysElement.includes(key)) {
830
+ return false;
831
+ }
832
+ const paramProp = param[key];
833
+ const elementProp = element[key];
834
+ if (!isEqualDeep(paramProp, elementProp, visited)) {
835
+ return false;
830
836
  }
831
837
  }
832
838
  return true;
@@ -870,6 +876,7 @@ var require_function = __commonJS({
870
876
  var function_exports = {};
871
877
  __export2(function_exports, {
872
878
  debounce: () => debounce,
879
+ isStringFunction: () => isStringFunction,
873
880
  memoize: () => memoize
874
881
  });
875
882
  module2.exports = __toCommonJS2(function_exports);
@@ -895,6 +902,10 @@ var require_function = __commonJS({
895
902
  }
896
903
  };
897
904
  };
905
+ var isStringFunction = (inputString) => {
906
+ const functionRegex = /^((function\s*\([^)]*\)\s*\{[^}]*\})|(\([^)]*\)\s*=>))/;
907
+ return functionRegex.test(inputString);
908
+ };
898
909
  }
899
910
  });
900
911
 
@@ -811,22 +811,28 @@ var require_object = __commonJS({
811
811
  delete objectized[prop];
812
812
  return stack;
813
813
  };
814
- var isEqualDeep = (param, element) => {
815
- if (param === element)
814
+ var isEqualDeep = (param, element, visited = /* @__PURE__ */ new Set()) => {
815
+ if (typeof param !== "object" || typeof element !== "object" || param === null || element === null) {
816
+ return param === element;
817
+ }
818
+ if (visited.has(param) || visited.has(element)) {
816
819
  return true;
817
- if (!param || !element)
820
+ }
821
+ visited.add(param);
822
+ visited.add(element);
823
+ const keysParam = Object.keys(param);
824
+ const keysElement = Object.keys(element);
825
+ if (keysParam.length !== keysElement.length) {
818
826
  return false;
819
- for (const prop in param) {
820
- const paramProp = param[prop];
821
- const elementProp = element[prop];
822
- if ((0, import_types.isObjectLike)(paramProp)) {
823
- const isEqual = isEqualDeep(paramProp, elementProp);
824
- if (!isEqual)
825
- return false;
826
- } else {
827
- const isEqual = paramProp === elementProp;
828
- if (!isEqual)
829
- return false;
827
+ }
828
+ for (const key of keysParam) {
829
+ if (!keysElement.includes(key)) {
830
+ return false;
831
+ }
832
+ const paramProp = param[key];
833
+ const elementProp = element[key];
834
+ if (!isEqualDeep(paramProp, elementProp, visited)) {
835
+ return false;
830
836
  }
831
837
  }
832
838
  return true;
@@ -870,6 +876,7 @@ var require_function = __commonJS({
870
876
  var function_exports = {};
871
877
  __export2(function_exports, {
872
878
  debounce: () => debounce,
879
+ isStringFunction: () => isStringFunction,
873
880
  memoize: () => memoize
874
881
  });
875
882
  module2.exports = __toCommonJS2(function_exports);
@@ -895,6 +902,10 @@ var require_function = __commonJS({
895
902
  }
896
903
  };
897
904
  };
905
+ var isStringFunction = (inputString) => {
906
+ const functionRegex = /^((function\s*\([^)]*\)\s*\{[^}]*\})|(\([^)]*\)\s*=>))/;
907
+ return functionRegex.test(inputString);
908
+ };
898
909
  }
899
910
  });
900
911
 
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@symbo.ls/scratch",
3
3
  "description": "Φ / CSS framework and methodology.",
4
4
  "author": "symbo.ls",
5
- "version": "2.11.198",
5
+ "version": "2.11.204",
6
6
  "files": [
7
7
  "src",
8
8
  "dist"
@@ -29,5 +29,5 @@
29
29
  "@symbo.ls/utils": "latest",
30
30
  "color-contrast-checker": "^1.5.0"
31
31
  },
32
- "gitHead": "18f8fcfd01b3be21bd04d98d7fe6291eb920b729"
32
+ "gitHead": "dab7f6d84335bca5af356b849c51204910670e76"
33
33
  }
package/src/set.js CHANGED
@@ -18,8 +18,6 @@ import {
18
18
 
19
19
  import { isFunction } from '@domql/utils'
20
20
 
21
- const ENV = process.env.NODE_ENV // eslint-disable-line no-unused-vars
22
-
23
21
  const setCases = (val, key) => {
24
22
  if (isFunction(val)) return val()
25
23
  return val
@@ -10,8 +10,6 @@ import {
10
10
  setCustomFontMedia
11
11
  } from '../utils'
12
12
 
13
- // const ENV = process.env.NODE_ENV
14
-
15
13
  export const setFont = (val, key) => {
16
14
  const CSSvar = `--font-${key}`
17
15
  const fontFace = val[0]
@@ -10,8 +10,6 @@ import {
10
10
  isArray
11
11
  } from '@domql/utils'
12
12
 
13
- const ENV = process.env.NODE_ENV // eslint-disable-line
14
-
15
13
  const setThemeValue = theme => {
16
14
  const value = {}
17
15
  const { state, media, helpers, ...rest } = theme