@lvce-editor/text-search-view 1.17.1 → 1.17.2

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.
@@ -5,7 +5,7 @@
5
5
  "heading": "Exclude",
6
6
  "id": "search.exclude",
7
7
  "type": "array",
8
- "value": {}
8
+ "value": []
9
9
  },
10
10
  {
11
11
  "category": "features",
@@ -3678,7 +3678,10 @@ const openSearchEditor = async state => {
3678
3678
  const getSearchExcludes = async (fallback = []) => {
3679
3679
  try {
3680
3680
  const value = await invoke$3('Preferences.get', 'search.exclude');
3681
- if (!value || typeof value !== 'object' || Array.isArray(value)) {
3681
+ if (Array.isArray(value)) {
3682
+ return value.filter(item => typeof item === 'string');
3683
+ }
3684
+ if (!value || typeof value !== 'object') {
3682
3685
  return [];
3683
3686
  }
3684
3687
  const excludes = [];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/text-search-view",
3
- "version": "1.17.1",
3
+ "version": "1.17.2",
4
4
  "description": "Text Search View",
5
5
  "keywords": [
6
6
  "text-search"