mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-19 16:13:06 +00:00
refactor: update dependencies and fix resulting errors
Upgraded JSON Schema from version 6 to version 7 Upgraded TypeDoc version to latest Replaced 'jsonschema' with 'json-schema' package to better comply with 'ts-json-schema-generator' Replace JSON Schema validation with AJV in areas where it wasn't used previously Removed commander help output as it causes strange issues
This commit is contained in:
committed by
Rainer Killinger
parent
b7cdb6a9ad
commit
5330255b7e
10
src/cli.ts
10
src/cli.ts
@@ -15,7 +15,7 @@
|
||||
import {Logger} from '@openstapps/logger';
|
||||
import {Command} from 'commander';
|
||||
import {existsSync, readFileSync, writeFileSync} from 'fs';
|
||||
import * as got from 'got';
|
||||
import got from 'got';
|
||||
import {join, resolve} from 'path';
|
||||
import {exit} from 'process';
|
||||
import {
|
||||
@@ -158,8 +158,7 @@ commander
|
||||
}
|
||||
|
||||
const response = await got.put(`${esAddress}_template/${template}`, {
|
||||
body: result.mappings[template],
|
||||
json: true,
|
||||
json: result.mappings[template],
|
||||
});
|
||||
|
||||
const HTTP_STATUS_OK = 200;
|
||||
@@ -353,8 +352,3 @@ commander
|
||||
});
|
||||
|
||||
commander.parse(process.argv);
|
||||
|
||||
if (commander.args.length < 1) {
|
||||
commander.outputHelp();
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user