@lvce-editor/api 9.39.0 → 9.40.1
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.
|
@@ -11,12 +11,7 @@ const getType = (value) => {
|
|
|
11
11
|
return typeof value;
|
|
12
12
|
};
|
|
13
13
|
const sanitizeCompletionItem = (item) => {
|
|
14
|
-
const sanitizedItem =
|
|
15
|
-
for (const [key, value] of Object.entries(item)) {
|
|
16
|
-
if (typeof value !== 'function') {
|
|
17
|
-
sanitizedItem[key] = value;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
14
|
+
const sanitizedItem = Object.fromEntries(Object.entries(item).filter(([, value]) => typeof value !== 'function'));
|
|
20
15
|
const { kind: itemKind, type } = item;
|
|
21
16
|
let kind = 0;
|
|
22
17
|
if (typeof itemKind === 'number') {
|