@wocker/core 1.0.19-dev.2 → 1.0.20-dev.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.d.ts +1 -0
- package/lib/index.js +1 -0
- package/lib/makes/Module.js +1 -1
- package/lib/services/DockerService.d.ts +5 -1
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
package/lib/index.js
CHANGED
|
@@ -15,6 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
exports.PLUGIN_DIR_KEY = exports.PLUGIN_NAME_METADATA = exports.MODULE_METADATA = exports.IS_MODULE_METADATA = exports.Cli = void 0;
|
|
18
|
+
require("reflect-metadata");
|
|
18
19
|
var cli_1 = require("@kearisp/cli");
|
|
19
20
|
Object.defineProperty(exports, "Cli", { enumerable: true, get: function () { return cli_1.Cli; } });
|
|
20
21
|
__exportStar(require("./decorators"), exports);
|
package/lib/makes/Module.js
CHANGED
|
@@ -26,7 +26,7 @@ class Module {
|
|
|
26
26
|
return wrapper.instance;
|
|
27
27
|
}
|
|
28
28
|
getWrapper(type) {
|
|
29
|
-
const token = typeof type
|
|
29
|
+
const token = typeof type === "function"
|
|
30
30
|
? Reflect.getMetadata(env_1.INJECT_TOKEN_METADATA, type) || type
|
|
31
31
|
: type;
|
|
32
32
|
const wrapper = this.providers.get(token);
|
|
@@ -43,6 +43,10 @@ export declare namespace DockerServiceParams {
|
|
|
43
43
|
context: string;
|
|
44
44
|
src: string;
|
|
45
45
|
};
|
|
46
|
+
type Exec = {
|
|
47
|
+
cmd: string[];
|
|
48
|
+
tty?: boolean;
|
|
49
|
+
};
|
|
46
50
|
}
|
|
47
51
|
export declare abstract class DockerService {
|
|
48
52
|
abstract createContainer(params: DockerServiceParams.CreateContainer): Promise<Container>;
|
|
@@ -58,6 +62,6 @@ export declare abstract class DockerService {
|
|
|
58
62
|
abstract pullImage(tag: string): Promise<void>;
|
|
59
63
|
abstract attach(name: string | Container): Promise<NodeJS.ReadWriteStream>;
|
|
60
64
|
abstract attachStream(stream: NodeJS.ReadWriteStream): Promise<void>;
|
|
61
|
-
abstract exec(name: string, command?: string[], tty?: boolean): Promise<Duplex>;
|
|
65
|
+
abstract exec(name: string, command?: DockerServiceParams.Exec | string[], tty?: boolean): Promise<Duplex>;
|
|
62
66
|
abstract logs(containerOrName: string | Container): Promise<NodeJS.ReadableStream>;
|
|
63
67
|
}
|