refactor: update dependencies

This commit is contained in:
Rainer Killinger
2021-09-07 10:03:06 +02:00
parent c22957efe3
commit 581e60267d
3 changed files with 1467 additions and 1680 deletions

View File

@@ -40,13 +40,15 @@ const program = new Command()
.option('-p, --port <number>', 'The port of the plugin', '4000') // TODO: adjust default
.parse(process.argv);
const options = program.opts();
// create an instance of the PluginClient
const pluginClient = new PluginClient(new HttpClient(), program.backendUrl);
const pluginClient = new PluginClient(new HttpClient(), options.backendUrl);
// create an instance of your plugin
const plugin = new MinimalPlugin(
// tslint:disable-next-line:no-magic-numbers
Number.parseInt(program.port, 10), program.pluginName, program.url, `/${program.routeName}`, program.backendUrl,
Number.parseInt(options.port, 10), options.pluginName, options.url, `/${options.routeName}`, options.backendUrl,
new Converter(resolve(__dirname, '..', 'src', 'plugin', 'protocol')), // an instance of the converter. Required
// because your requests and response schemas are defined in the plugin. The path should lead to your request and
// response interfaces