@wocker/pgsql-plugin
Advanced tools
Comparing version 1.0.7 to 1.0.8-beta.0
@@ -8,2 +8,3 @@ import { PickProperties } from "@wocker/core"; | ||
default?: string; | ||
adminHost?: string; | ||
adminEmail?: string; | ||
@@ -10,0 +11,0 @@ adminPassword?: string; |
@@ -7,3 +7,4 @@ "use strict"; | ||
constructor(data) { | ||
const { adminEmail, adminPassword, adminSkipPassword, default: defaultService, services = [] } = data || {}; | ||
const { adminHost, adminEmail, adminPassword, adminSkipPassword, default: defaultService, services = [] } = data || {}; | ||
this.adminHost = adminHost; | ||
this.adminEmail = adminEmail; | ||
@@ -57,2 +58,3 @@ this.adminPassword = adminPassword; | ||
return { | ||
adminHost: this.adminHost, | ||
adminEmail: this.adminEmail, | ||
@@ -59,0 +61,0 @@ adminPassword: this.adminPassword, |
@@ -24,9 +24,19 @@ "use strict"; | ||
}; | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
}; | ||
var __importStar = (this && this.__importStar) || (function () { | ||
var ownKeys = function(o) { | ||
ownKeys = Object.getOwnPropertyNames || function (o) { | ||
var ar = []; | ||
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; | ||
return ar; | ||
}; | ||
return ownKeys(o); | ||
}; | ||
return function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
}; | ||
})(); | ||
var __metadata = (this && this.__metadata) || function (k, v) { | ||
@@ -139,11 +149,10 @@ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); | ||
const service = config.getServiceOrDefault(name); | ||
const containerName = service.containerName; | ||
if (restart) { | ||
yield this.dockerService.removeContainer(containerName); | ||
yield this.dockerService.removeContainer(service.containerName); | ||
} | ||
let container = yield this.dockerService.getContainer(containerName); | ||
let container = yield this.dockerService.getContainer(service.containerName); | ||
if (!container) { | ||
const { user = "root", password = "root" } = service; | ||
container = yield this.dockerService.createContainer({ | ||
name: containerName, | ||
name: service.containerName, | ||
image: "postgres:latest", | ||
@@ -164,3 +173,3 @@ restart: "always", | ||
} | ||
console.info(`Started ${service.name} at ${containerName}`); | ||
console.info(`Started ${service.name} at ${service.containerName}`); | ||
}); | ||
@@ -167,0 +176,0 @@ } |
{ | ||
"name": "@wocker/pgsql-plugin", | ||
"version": "1.0.7", | ||
"version": "1.0.8-beta.0", | ||
"author": "Kris Papercut <krispcut@gmail.com>", | ||
@@ -28,3 +28,3 @@ "description": "PostgresSQL plugin for wocker", | ||
"dependencies": { | ||
"@wocker/core": "^1.0.19", | ||
"@wocker/core": "^1.0.20", | ||
"@wocker/utils": "^1.0.7" | ||
@@ -31,0 +31,0 @@ }, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Unpublished package
Supply chain riskPackage version was not found on the registry. It may exist on a different registry and need to be configured to pull from that registry.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Unpopular package
QualityThis package is not very popular.
Found 1 instance in 1 package
30666
684
0
3
1
Updated@wocker/core@^1.0.20