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

3115
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -6,11 +6,11 @@
"author": "Wieland Schöbl",
"contributors": [],
"scripts": {
"build": "npm run tslint && npm run compile && npm run documentation",
"build": "npm run tslint && npm run compile",
"compile": "rimraf lib && tsc && prepend lib/cli.js '#!/usr/bin/env node\n'",
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0 && git add CHANGELOG.md && git commit -m 'docs: update changelog'",
"check-configuration": "openstapps-configuration",
"documentation": "typedoc --includeDeclarations --excludeExternals --mode modules --out docs src",
"documentation": "typedoc --includeVersion --out docs src",
"start": "node lib/cli.js",
"tslint": "tslint 'src/**/*.ts'",
"prepublishOnly": "npm ci && npm run build",
@@ -19,23 +19,23 @@
"push": "git push && git push origin \"v$npm_package_version\""
},
"dependencies": {
"@openstapps/api": "0.25.0",
"@openstapps/core": "0.38.1",
"@openstapps/core-tools": "0.16.0",
"@openstapps/logger": "0.5.0",
"@openstapps/api": "0.32.0",
"@openstapps/core": "0.50.0",
"@openstapps/core-tools": "0.25.0",
"@openstapps/logger": "0.7.0",
"commander": "8.1.0",
"express": "4.17.1",
"commander": "6.2.0",
"ts-node": "8.10.2"
"ts-node": "10.2.1"
},
"devDependencies": {
"@openstapps/configuration": "0.25.0",
"@types/node": "10.17.46",
"@types/express": "4.17.8",
"@openstapps/configuration": "0.27.0",
"@types/express": "4.17.13",
"@types/node": "14.17.12",
"conventional-changelog-cli": "2.1.1",
"prepend-file-cli": "1.0.6",
"rimraf": "3.0.2",
"tslint": "6.1.3",
"typedoc": "0.18.0",
"typescript": "3.8.3"
"typedoc": "0.21.9",
"typescript": "4.4.2"
}
}

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