xshell 1.3.21 → 1.3.23

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.
@@ -22470,58 +22470,34 @@ class FormStore {
22470
22470
  };
22471
22471
  getFieldsValue = (nameList, filterFunc) => {
22472
22472
  this.warningUnhooked();
22473
+
22474
+ return this.store
22473
22475
 
22474
22476
  // Fill args
22475
- let mergedNameList;
22476
- let mergedFilterFunc;
22477
- if (nameList === true || Array.isArray(nameList)) {
22478
- mergedNameList = nameList;
22479
- mergedFilterFunc = filterFunc;
22480
- } else if (nameList && typeof nameList === 'object') {
22481
- mergedFilterFunc = nameList.filter;
22482
- }
22483
- if (mergedNameList === true && !mergedFilterFunc) {
22484
- return this.store;
22485
- }
22486
- const fieldEntities = this.getFieldEntitiesForNamePathList(Array.isArray(mergedNameList) ? mergedNameList : null);
22487
- const filteredNameList = [];
22488
- const listNamePaths = [];
22489
- fieldEntities.forEach(entity => {
22490
- const namePath = entity.INVALIDATE_NAME_PATH || entity.getNamePath();
22491
-
22492
- // Ignore when it's a list item and not specific the namePath,
22493
- // since parent field is already take in count
22494
- if (entity.isList?.()) {
22495
- listNamePaths.push(namePath);
22496
- return;
22497
- }
22498
- if (!mergedFilterFunc) {
22499
- filteredNameList.push(namePath);
22500
- } else {
22501
- const meta = 'getMeta' in entity ? entity.getMeta() : null;
22502
- if (mergedFilterFunc(meta)) {
22503
- filteredNameList.push(namePath);
22504
- }
22505
- }
22506
- });
22507
- let mergedValues = cloneByNamePathList(this.store, filteredNameList.map(getNamePath));
22477
+ // removed by dead control flow
22478
+
22479
+ // removed by dead control flow
22480
+
22481
+ // removed by dead control flow
22482
+
22483
+ // removed by dead control flow
22484
+
22485
+ // removed by dead control flow
22486
+
22487
+ // removed by dead control flow
22488
+
22489
+ // removed by dead control flow
22490
+
22491
+ // removed by dead control flow
22492
+
22493
+ // removed by dead control flow
22494
+
22508
22495
 
22509
22496
  // We need fill the list as [] if Form.List is empty
22510
- listNamePaths.forEach(namePath => {
22511
- const listValue = get(mergedValues, namePath);
22512
-
22513
- // NOTE: `getFieldsValue(['list'])` may not include list root when Form.List isn't wrapped by a parent Field.
22514
- // In this case we should fallback to store value first, and only fill `[]` when store doesn't have it.
22515
- if (listValue === undefined) {
22516
- const storeListValue = get(this.store, namePath);
22517
- mergedValues = set(
22518
- mergedValues,
22519
- namePath,
22520
- storeListValue === undefined ? [] : storeListValue,
22521
- );
22522
- }
22523
- });
22524
- return mergedValues;
22497
+ // removed by dead control flow
22498
+
22499
+ // removed by dead control flow
22500
+
22525
22501
  };
22526
22502
  getFieldValue = name => {
22527
22503
  this.warningUnhooked();