refactor: update all

This commit is contained in:
openstappsbot
2021-09-06 07:10:31 +00:00
committed by Rainer Killinger
parent d27bf7ea94
commit aeebbf9656
3 changed files with 830 additions and 1657 deletions

2446
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -4,11 +4,11 @@
"description": "NGINX proxy that is dynamically configured by a Node.js script", "description": "NGINX proxy that is dynamically configured by a Node.js script",
"main": "./lib/cli.js", "main": "./lib/cli.js",
"dependencies": { "dependencies": {
"@openstapps/logger": "0.6.0", "@openstapps/logger": "0.7.0",
"@types/config": "0.0.38", "@types/config": "0.0.39",
"@types/dockerode": "3.2.3", "@types/dockerode": "3.2.7",
"@types/node": "14.14.42", "@types/node": "14.17.14",
"@types/sha1": "1.1.2", "@types/sha1": "1.1.3",
"config": "3.3.6", "config": "3.3.6",
"dockerode": "3.3.0", "dockerode": "3.3.0",
"mustache": "4.2.0" "mustache": "4.2.0"
@@ -16,33 +16,33 @@
"devDependencies": { "devDependencies": {
"@openstapps/configuration": "0.27.0", "@openstapps/configuration": "0.27.0",
"@testdeck/mocha": "0.1.2", "@testdeck/mocha": "0.1.2",
"@types/chai": "4.2.17", "@types/chai": "4.2.21",
"@types/chai-spies": "1.0.3", "@types/chai-spies": "1.0.3",
"@types/mustache": "4.1.1", "@types/mustache": "4.1.2",
"chai": "4.3.4", "chai": "4.3.4",
"chai-spies": "1.0.0", "chai-spies": "1.0.0",
"conventional-changelog-cli": "2.1.1", "conventional-changelog-cli": "2.1.1",
"mocha": "9.0.3", "mocha": "9.1.1",
"nyc": "15.1.0", "nyc": "15.1.0",
"prepend-file-cli": "1.0.6", "prepend-file-cli": "1.0.6",
"rimraf": "3.0.2", "rimraf": "3.0.2",
"ts-node": "10.1.0", "ts-node": "10.2.1",
"tslint": "6.1.3", "tslint": "6.1.3",
"typedoc": "0.18.0", "typedoc": "0.21.9",
"typescript": "3.8.3" "typescript": "4.4.2"
}, },
"scripts": { "scripts": {
"build": "npm run tslint && npm run compile", "build": "npm run tslint && npm run compile",
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0 && git add CHANGELOG.md && git commit -m 'docs: update changelog'", "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", "check-configuration": "openstapps-configuration",
"compile": "rimraf lib && tsc && prepend lib/cli.js '#!/usr/bin/env node\n'", "compile": "rimraf lib && tsc && prepend lib/cli.js '#!/usr/bin/env node\n'",
"documentation": "typedoc --includeDeclarations --mode modules --out docs --readme README.md --listInvalidSymbolLinks src", "documentation": "typedoc --out docs --readme README.md --listInvalidSymbolLinks src",
"postversion": "npm run changelog", "postversion": "npm run changelog",
"prepublishOnly": "npm ci && npm run build", "prepublishOnly": "npm ci && npm run build",
"preversion": "npm run prepublishOnly", "preversion": "npm run prepublishOnly",
"push": "git push && git push origin \"v$npm_package_version\"", "push": "git push && git push origin \"v$npm_package_version\"",
"tslint": "tslint -p tsconfig.json -c tslint.json 'src/**/*.ts'", "tslint": "tslint -p tsconfig.json -c tslint.json 'src/**/*.ts'",
"test": "nyc mocha --require source-map-support/register --require ts-node/register 'test/**/*.spec.ts'" "test": "nyc mocha --require ts-node/register 'test/**/*.spec.ts'"
}, },
"repository": { "repository": {
"type": "git", "type": "git",

View File

@@ -236,14 +236,17 @@ upstream 1__0___d_ {
await getContainers(); await getContainers();
return false; return false;
} catch (e) { } catch (e) {
if (e.message.startsWith('No')) { if ((e as Error).message.startsWith('No')) {
// Result, if docker is installed // Result, if docker is installed
expect(e.message).to.equal(`No running docker containers found. expect((e as Error).message).to.equal(`No running docker containers found.
Please check if docker is running and Node.js can access the docker socket (/var/run/docker.sock)`); Please check if docker is running and Node.js can access the docker socket (/var/run/docker.sock)`);
} else { } else {
// Result, if docker is not installed // Result, if docker is not installed
expect(e.message).to.equal(`connect ENOENT /var/run/docker.sock`); expect([
new Error(`connect ENOENT /var/run/docker.sock`).message,
new Error('connect EACCES /var/run/docker.sock').message,
]).to.include((e as Error).message);
} }
} }
@@ -258,7 +261,7 @@ Please check if docker is running and Node.js can access the docker socket (/var
await getTemplateView(containersWithSameVersion); await getTemplateView(containersWithSameVersion);
return false; return false;
} catch (e) { } catch (e) {
expect(e.message).to.equal( expect((e as Error).message).to.equal(
`Multiple backends for one version found.`); `Multiple backends for one version found.`);
} }