@wocker/core
Advanced tools
Comparing version 1.0.18 to 1.0.19-dev.0
import { AppConfig } from "../makes"; | ||
export declare abstract class AppConfigService { | ||
protected config?: AppConfig; | ||
get version(): string; | ||
isVersionGTE(version: string): boolean; | ||
abstract pwd(...parts: string[]): string; | ||
@@ -5,0 +7,0 @@ abstract setPWD(pwd: string): void; |
@@ -12,2 +12,18 @@ "use strict"; | ||
let AppConfigService = class AppConfigService { | ||
get version() { | ||
return "0.0.0"; | ||
} | ||
isVersionGTE(version) { | ||
const current = this.version.split(".").map(Number); | ||
const compare = version.split(".").map(Number); | ||
for (let i = 0; i < 3; i++) { | ||
if (current[i] > compare[i]) { | ||
return true; | ||
} | ||
else if (current[i] < compare[i]) { | ||
return false; | ||
} | ||
} | ||
return true; | ||
} | ||
getConfig() { | ||
@@ -14,0 +30,0 @@ if (!this.config) { |
@@ -30,3 +30,3 @@ import { Container, ImageInfo, VolumeCreateResponse } from "dockerode"; | ||
tag?: string; | ||
reference?: string; | ||
reference?: string[]; | ||
labels?: { | ||
@@ -58,3 +58,3 @@ [key: string]: string; | ||
abstract imageLs(options?: DockerServiceParams.ImageList): Promise<ImageInfo[]>; | ||
abstract imageRm(tag: string): Promise<void>; | ||
abstract imageRm(tag: string, force?: boolean): Promise<void>; | ||
abstract pullImage(tag: string): Promise<void>; | ||
@@ -64,2 +64,3 @@ abstract attach(name: string | Container): Promise<NodeJS.ReadWriteStream>; | ||
abstract exec(name: string, command?: string[], tty?: boolean): Promise<Duplex>; | ||
abstract logs(containerOrName: string | Container): Promise<NodeJS.ReadableStream>; | ||
} |
{ | ||
"name": "@wocker/core", | ||
"version": "1.0.18", | ||
"version": "1.0.19-dev.0", | ||
"author": "Kris Papercut <krispcut@gmail.com>", | ||
@@ -28,3 +28,3 @@ "description": "Core of the Wocker", | ||
"dependencies": { | ||
"@kearisp/cli": "^2.0.5", | ||
"@kearisp/cli": "^2.0.6", | ||
"fs": "^0.0.1-security", | ||
@@ -31,0 +31,0 @@ "path": "^0.12.7", |
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
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
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
100844
2529
1
1
Updated@kearisp/cli@^2.0.6