@wocker/core 1.0.19 → 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 CHANGED
@@ -1,3 +1,4 @@
1
+ import "reflect-metadata";
1
2
  export { Cli } from "@kearisp/cli";
2
3
  export * from "./decorators";
3
4
  export * from "./makes";
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);
@@ -26,7 +26,7 @@ class Module {
26
26
  return wrapper.instance;
27
27
  }
28
28
  getWrapper(type) {
29
- const token = typeof type !== "string"
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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wocker/core",
3
- "version": "1.0.19",
3
+ "version": "1.0.20-dev.0",
4
4
  "author": "Kris Papercut <krispcut@gmail.com>",
5
5
  "description": "Core of the Wocker",
6
6
  "license": "MIT",