@lvce-editor/text-search-worker 6.7.0 → 6.8.0

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.
@@ -4808,10 +4808,7 @@ const getUsePullBasedSearch = async () => {
4808
4808
  };
4809
4809
 
4810
4810
  const hasProperty = (object, key) => {
4811
- if (!object || typeof object !== 'object' || !(key in object)) {
4812
- return false;
4813
- }
4814
- return true;
4811
+ return !!object && typeof object === 'object' && key in object;
4815
4812
  };
4816
4813
 
4817
4814
  const getSavedFocus = savedState => {
@@ -6174,12 +6171,7 @@ const replaceAllAndPrompt = async (workspacePath, items, replacement, matchCount
6174
6171
  confirmMessage: confirmAccept,
6175
6172
  title: confirmTitle
6176
6173
  });
6177
- if (!shouldReplace) {
6178
- return false;
6179
- }
6180
- // TODO
6181
- // await TextSearchReplaceAll.replaceAll(workspacePath, items, replacement)
6182
- return true;
6174
+ return shouldReplace;
6183
6175
  };
6184
6176
 
6185
6177
  const replaceAllInFile = async state => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/text-search-worker",
3
- "version": "6.7.0",
3
+ "version": "6.8.0",
4
4
  "description": "Text Search Worker",
5
5
  "keywords": [
6
6
  "text-search"