xshell 1.3.22 → 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.
@@ -19488,58 +19488,34 @@ class FormStore {
19488
19488
  };
19489
19489
  getFieldsValue = (nameList, filterFunc) => {
19490
19490
  this.warningUnhooked();
19491
+
19492
+ return this.store
19491
19493
 
19492
19494
  // Fill args
19493
- let mergedNameList;
19494
- let mergedFilterFunc;
19495
- if (nameList === true || Array.isArray(nameList)) {
19496
- mergedNameList = nameList;
19497
- mergedFilterFunc = filterFunc;
19498
- } else if (nameList && typeof nameList === 'object') {
19499
- mergedFilterFunc = nameList.filter;
19500
- }
19501
- if (mergedNameList === true && !mergedFilterFunc) {
19502
- return this.store;
19503
- }
19504
- const fieldEntities = this.getFieldEntitiesForNamePathList(Array.isArray(mergedNameList) ? mergedNameList : null);
19505
- const filteredNameList = [];
19506
- const listNamePaths = [];
19507
- fieldEntities.forEach(entity => {
19508
- const namePath = entity.INVALIDATE_NAME_PATH || entity.getNamePath();
19509
-
19510
- // Ignore when it's a list item and not specific the namePath,
19511
- // since parent field is already take in count
19512
- if (entity.isList?.()) {
19513
- listNamePaths.push(namePath);
19514
- return;
19515
- }
19516
- if (!mergedFilterFunc) {
19517
- filteredNameList.push(namePath);
19518
- } else {
19519
- const meta = 'getMeta' in entity ? entity.getMeta() : null;
19520
- if (mergedFilterFunc(meta)) {
19521
- filteredNameList.push(namePath);
19522
- }
19523
- }
19524
- });
19525
- let mergedValues = (0,_utils_valueUtil__WEBPACK_IMPORTED_MODULE_8__.cloneByNamePathList)(this.store, filteredNameList.map(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_8__.getNamePath));
19495
+ // removed by dead control flow
19496
+
19497
+ // removed by dead control flow
19498
+
19499
+ // removed by dead control flow
19500
+
19501
+ // removed by dead control flow
19502
+
19503
+ // removed by dead control flow
19504
+
19505
+ // removed by dead control flow
19506
+
19507
+ // removed by dead control flow
19508
+
19509
+ // removed by dead control flow
19510
+
19511
+ // removed by dead control flow
19512
+
19526
19513
 
19527
19514
  // We need fill the list as [] if Form.List is empty
19528
- listNamePaths.forEach(namePath => {
19529
- const listValue = (0,_utils_valueUtil__WEBPACK_IMPORTED_MODULE_8__.getValue)(mergedValues, namePath);
19530
-
19531
- // NOTE: `getFieldsValue(['list'])` may not include list root when Form.List isn't wrapped by a parent Field.
19532
- // In this case we should fallback to store value first, and only fill `[]` when store doesn't have it.
19533
- if (listValue === undefined) {
19534
- const storeListValue = (0,_utils_valueUtil__WEBPACK_IMPORTED_MODULE_8__.getValue)(this.store, namePath);
19535
- mergedValues = (0,_utils_valueUtil__WEBPACK_IMPORTED_MODULE_8__.setValue)(
19536
- mergedValues,
19537
- namePath,
19538
- storeListValue === undefined ? [] : storeListValue,
19539
- );
19540
- }
19541
- });
19542
- return mergedValues;
19515
+ // removed by dead control flow
19516
+
19517
+ // removed by dead control flow
19518
+
19543
19519
  };
19544
19520
  getFieldValue = name => {
19545
19521
  this.warningUnhooked();