mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-18 15:42:54 +00:00
refactor: update all
This commit is contained in:
committed by
Rainer Killinger
parent
d27bf7ea94
commit
aeebbf9656
2450
package-lock.json
generated
2450
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
26
package.json
26
package.json
@@ -4,11 +4,11 @@
|
||||
"description": "NGINX proxy that is dynamically configured by a Node.js script",
|
||||
"main": "./lib/cli.js",
|
||||
"dependencies": {
|
||||
"@openstapps/logger": "0.6.0",
|
||||
"@types/config": "0.0.38",
|
||||
"@types/dockerode": "3.2.3",
|
||||
"@types/node": "14.14.42",
|
||||
"@types/sha1": "1.1.2",
|
||||
"@openstapps/logger": "0.7.0",
|
||||
"@types/config": "0.0.39",
|
||||
"@types/dockerode": "3.2.7",
|
||||
"@types/node": "14.17.14",
|
||||
"@types/sha1": "1.1.3",
|
||||
"config": "3.3.6",
|
||||
"dockerode": "3.3.0",
|
||||
"mustache": "4.2.0"
|
||||
@@ -16,33 +16,33 @@
|
||||
"devDependencies": {
|
||||
"@openstapps/configuration": "0.27.0",
|
||||
"@testdeck/mocha": "0.1.2",
|
||||
"@types/chai": "4.2.17",
|
||||
"@types/chai": "4.2.21",
|
||||
"@types/chai-spies": "1.0.3",
|
||||
"@types/mustache": "4.1.1",
|
||||
"@types/mustache": "4.1.2",
|
||||
"chai": "4.3.4",
|
||||
"chai-spies": "1.0.0",
|
||||
"conventional-changelog-cli": "2.1.1",
|
||||
"mocha": "9.0.3",
|
||||
"mocha": "9.1.1",
|
||||
"nyc": "15.1.0",
|
||||
"prepend-file-cli": "1.0.6",
|
||||
"rimraf": "3.0.2",
|
||||
"ts-node": "10.1.0",
|
||||
"ts-node": "10.2.1",
|
||||
"tslint": "6.1.3",
|
||||
"typedoc": "0.18.0",
|
||||
"typescript": "3.8.3"
|
||||
"typedoc": "0.21.9",
|
||||
"typescript": "4.4.2"
|
||||
},
|
||||
"scripts": {
|
||||
"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'",
|
||||
"check-configuration": "openstapps-configuration",
|
||||
"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",
|
||||
"prepublishOnly": "npm ci && npm run build",
|
||||
"preversion": "npm run prepublishOnly",
|
||||
"push": "git push && git push origin \"v$npm_package_version\"",
|
||||
"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": {
|
||||
"type": "git",
|
||||
|
||||
@@ -236,14 +236,17 @@ upstream 1__0___d_ {
|
||||
await getContainers();
|
||||
return false;
|
||||
} catch (e) {
|
||||
if (e.message.startsWith('No')) {
|
||||
if ((e as Error).message.startsWith('No')) {
|
||||
// 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)`);
|
||||
} else {
|
||||
// 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);
|
||||
return false;
|
||||
} catch (e) {
|
||||
expect(e.message).to.equal(
|
||||
expect((e as Error).message).to.equal(
|
||||
`Multiple backends for one version found.`);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user