@sheinx/base 3.8.2-beta.7 → 3.8.2-beta.8

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.
@@ -1 +1 @@
1
- {"version":3,"file":"result-more.d.ts","sourceRoot":"","sources":["result-more.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAKrD,wBAAgB,YAAY,CAC1B,QAAQ,EAAE,OAAO,EACjB,SAAS,EAAE,WAAW,EACtB,IAAI,EAAE,UAAU,CAAC,WAAW,CAAC,UA6D9B;;AA4GD,wBAAyC"}
1
+ {"version":3,"file":"result-more.d.ts","sourceRoot":"","sources":["result-more.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAKrD,wBAAgB,YAAY,CAC1B,QAAQ,EAAE,OAAO,EACjB,SAAS,EAAE,WAAW,EACtB,IAAI,EAAE,UAAU,CAAC,WAAW,CAAC,UA6D9B;;AAiHD,wBAAyC"}
@@ -100,10 +100,15 @@ var More = function More(props) {
100
100
  return data[index];
101
101
  });
102
102
  var afterCount = Math.max(0, data.length - validShowNum);
103
- after = new Array(afterCount).fill(undefined).map(function (_item, index) {
104
- return data[validShowNum + index];
105
- });
106
- afterLength = after.length;
103
+ try {
104
+ after = new Array(afterCount).fill(undefined).map(function (_item, index) {
105
+ return data[validShowNum + index];
106
+ });
107
+ afterLength = after.length;
108
+ } catch (error) {
109
+ after = [];
110
+ afterLength = 0;
111
+ }
107
112
  }
108
113
  if (shouldShowMore) {
109
114
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_react.default.Fragment, {
@@ -1 +1 @@
1
- {"version":3,"file":"result-more.d.ts","sourceRoot":"","sources":["result-more.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAKrD,wBAAgB,YAAY,CAC1B,QAAQ,EAAE,OAAO,EACjB,SAAS,EAAE,WAAW,EACtB,IAAI,EAAE,UAAU,CAAC,WAAW,CAAC,UA6D9B;;AA4GD,wBAAyC"}
1
+ {"version":3,"file":"result-more.d.ts","sourceRoot":"","sources":["result-more.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAKrD,wBAAgB,YAAY,CAC1B,QAAQ,EAAE,OAAO,EACjB,SAAS,EAAE,WAAW,EACtB,IAAI,EAAE,UAAU,CAAC,WAAW,CAAC,UA6D9B;;AAiHD,wBAAyC"}
@@ -90,10 +90,15 @@ var More = function More(props) {
90
90
  return data[index];
91
91
  });
92
92
  var afterCount = Math.max(0, data.length - validShowNum);
93
- after = new Array(afterCount).fill(undefined).map(function (_item, index) {
94
- return data[validShowNum + index];
95
- });
96
- afterLength = after.length;
93
+ try {
94
+ after = new Array(afterCount).fill(undefined).map(function (_item, index) {
95
+ return data[validShowNum + index];
96
+ });
97
+ afterLength = after.length;
98
+ } catch (error) {
99
+ after = [];
100
+ afterLength = 0;
101
+ }
97
102
  }
98
103
  if (shouldShowMore) {
99
104
  return /*#__PURE__*/_jsxs(React.Fragment, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sheinx/base",
3
- "version": "3.8.2-beta.7",
3
+ "version": "3.8.2-beta.8",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "license": "MIT",
@@ -10,7 +10,7 @@
10
10
  "module": "./esm/index.js",
11
11
  "typings": "./cjs/index.d.ts",
12
12
  "dependencies": {
13
- "@sheinx/hooks": "3.8.2-beta.7",
13
+ "@sheinx/hooks": "3.8.2-beta.8",
14
14
  "immer": "^10.0.0",
15
15
  "classnames": "^2.0.0",
16
16
  "@shined/reactive": "^0.1.3-alpha.0"