@doreamonjs/page-detail 1.12.29 → 1.12.30
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.
- package/CHANGELOG.md +8 -0
- package/lib/index.js +16 -10
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [1.12.30](https://github.com/doreamonjs/doreamon/compare/v1.12.29...v1.12.30) (2024-10-15)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @doreamonjs/page-detail
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
## [1.12.29](https://github.com/doreamonjs/doreamon/compare/v1.12.28...v1.12.29) (2024-10-15)
|
|
7
15
|
|
|
8
16
|
|
package/lib/index.js
CHANGED
|
@@ -89,17 +89,23 @@ const DetailPage = (props) => {
|
|
|
89
89
|
if (Object.keys(values).length === 0) {
|
|
90
90
|
return true;
|
|
91
91
|
}
|
|
92
|
-
|
|
93
|
-
|
|
92
|
+
// check values.id
|
|
93
|
+
if (!!(values === null || values === void 0 ? void 0 : values.id)) {
|
|
94
|
+
if (typeof (values === null || values === void 0 ? void 0 : values.id) === 'string') {
|
|
95
|
+
return id !== (values === null || values === void 0 ? void 0 : values.id);
|
|
96
|
+
}
|
|
97
|
+
else if (typeof (values === null || values === void 0 ? void 0 : values.id) === 'number') {
|
|
98
|
+
return +id !== (values === null || values === void 0 ? void 0 : values.id);
|
|
99
|
+
}
|
|
94
100
|
}
|
|
95
|
-
else if (
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
101
|
+
else if (!!(values === null || values === void 0 ? void 0 : values._id)) {
|
|
102
|
+
// check values._id
|
|
103
|
+
if (typeof (values === null || values === void 0 ? void 0 : values._id) === 'string') {
|
|
104
|
+
return id !== (values === null || values === void 0 ? void 0 : values._id);
|
|
105
|
+
}
|
|
106
|
+
else if (typeof (values === null || values === void 0 ? void 0 : values._id) === 'number') {
|
|
107
|
+
return +id !== (values === null || values === void 0 ? void 0 : values._id);
|
|
108
|
+
}
|
|
103
109
|
}
|
|
104
110
|
return false;
|
|
105
111
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@doreamonjs/page-detail",
|
|
3
|
-
"version": "1.12.
|
|
3
|
+
"version": "1.12.30",
|
|
4
4
|
"description": "detail page",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"doreamonjs",
|
|
@@ -80,5 +80,5 @@
|
|
|
80
80
|
"xterm-addon-attach": "^0.6.0",
|
|
81
81
|
"xterm-addon-fit": "^0.5.0"
|
|
82
82
|
},
|
|
83
|
-
"gitHead": "
|
|
83
|
+
"gitHead": "d1063c845562a1359d0cae27d7e1da821900d823"
|
|
84
84
|
}
|