core: remove deprecated apis

This commit is contained in:
undefined committed 2023-01-29 11:34:02 +08:00
1 parent 05b27fc1eb
commit ec0ba8a394
9 files changed
+24 -37

No files matched your search

+2 -3
View File
@@ -1,6 +1,7 @@
import { exec } from 'child_process';
import { inspect } from 'util';
import * as yaml from 'js-yaml';
import { omit } from 'lodash';
import Schema from 'schemastery';
import * as check from '../check';
import {
@@ -276,9 +277,7 @@ class SystemUserImportHandler extends SystemHandler {
}
/* eslint-enable no-await-in-loop */
const Priv = Object.fromEntries(Object.entries(PRIV).filter(
(i) => (!i[0].endsWith('SELF') && !['PRIV_DEFAULT', 'PRIV_NEVER', 'PRIV_NONE', 'PRIV_ALL'].includes(i[0])),
));
const Priv = omit(PRIV, ['PRIV_DEFAULT', 'PRIV_NEVER', 'PRIV_NONE', 'PRIV_ALL']);
const allPriv = Math.sum(Object.values(Priv));
class SystemUserPrivHandler extends SystemHandler {