Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@wocker/pgsql-plugin

Package Overview
Dependencies
Maintainers
0
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@wocker/pgsql-plugin - npm Package Compare versions

Comparing version 1.0.7 to 1.0.8-beta.0

1

lib/makes/Config.d.ts

@@ -8,2 +8,3 @@ import { PickProperties } from "@wocker/core";

default?: string;
adminHost?: string;
adminEmail?: string;

@@ -10,0 +11,0 @@ adminPassword?: string;

4

lib/makes/Config.js

@@ -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 @@ },

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc