@nu-art/ts-common 0.204.49 → 0.204.51

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.
@@ -1,10 +1,11 @@
1
- import { LogClient } from "./LogClient";
2
- import { LogLevel, LogParam } from "./types";
1
+ import { LogClient } from './LogClient';
2
+ import { LogLevel, LogParam } from './types';
3
3
  declare class BeLogged_Class {
4
4
  private clients;
5
5
  private lineCount;
6
6
  addClient<Client extends LogClient>(client: Client): void;
7
7
  removeConsole<Client extends LogClient>(client: Client): void;
8
+ removeClient<Client extends LogClient>(client: Client): void;
8
9
  log(tag: string, level: LogLevel, bold: boolean, ...toLog: LogParam[]): void;
9
10
  private logImpl;
10
11
  clearFooter(): void;
@@ -30,6 +30,9 @@ class BeLogged_Class {
30
30
  this.clients.push(client);
31
31
  }
32
32
  removeConsole(client) {
33
+ this.removeClient(client);
34
+ }
35
+ removeClient(client) {
33
36
  if (this.clients.indexOf(client) === -1)
34
37
  return;
35
38
  (0, array_tools_1.removeItemFromArray)(this.clients, client);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nu-art/ts-common",
3
- "version": "0.204.49",
3
+ "version": "0.204.51",
4
4
  "description": "js and ts infra",
5
5
  "keywords": [
6
6
  "TacB0sS",