updated osquery autocomplete to v4.7.0 schema (#95741)

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
Bryan Clement 2021-03-30 12:09:23 -07:00 committed by GitHub
parent 9c21f41da9
commit d6370f4e51
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 2 deletions

File diff suppressed because one or more lines are too long

View file

@ -20,7 +20,7 @@ let osqueryTables: TablesJSON | null = null;
export const getOsqueryTables = () => {
if (!osqueryTables) {
// eslint-disable-next-line @typescript-eslint/no-var-requires
osqueryTables = normalizeTables(require('./osquery_schema/v4.6.0.json'));
osqueryTables = normalizeTables(require('./osquery_schema/v4.7.0.json'));
}
return osqueryTables;
};

View file

@ -15,7 +15,7 @@ interface DestField {
run(
async ({ flags }) => {
const schemaPath = path.resolve('../../public/editor/osquery_schema/');
const schemaPath = path.resolve('./public/editor/osquery_schema/');
const schemaFile = path.join(schemaPath, flags.schema_version as string);
const schemaData = await require(schemaFile);
// eslint-disable-next-line @typescript-eslint/no-explicit-any