analogger 1.26.0 → 1.26.1

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/demo.js CHANGED
@@ -2,7 +2,7 @@ const AnaLogger = require("./");
2
2
 
3
3
  const anaLogger = new AnaLogger();
4
4
 
5
- anaLogger.setOptions({silent: false, lidLenMax: 8});
5
+ anaLogger.setOptions({silent: false, lidLenMax: 8, logToRemote: true});
6
6
  anaLogger.setDefaultContext({
7
7
  "contextName": "DEFAULT",
8
8
  "target": "USER",
@@ -16,4 +16,4 @@ anaLogger.setDefaultContext({
16
16
  anaLogger.setActiveTargets("localhost, api");
17
17
  anaLogger.log({lid: "WEB35382", target: "localhost", color: "yellow"}, `Log with target`);
18
18
  anaLogger.log({lid: "WEB35382", target: "localhost"}, `Log with target`);
19
- anaLogger.log({lid: "WEB35382", color: "yellow"}, `Log without target`);
19
+ anaLogger.log({lid: "WEB35382", color: "green", target: "localhost"}, `Log without target`);
@@ -7,7 +7,6 @@
7
7
  import path from "path";
8
8
  import fs from "fs";
9
9
  import os from "os";
10
- import fetch from "node-fetch";
11
10
  import toAnsi from "to-ansi";
12
11
  import {
13
12
  COLOR_TABLE, SYSTEM, MAX_CHILDREN_DOM_ANALOGGER, CLASS_REMOVED_NOTIF, ADD_TYPE, CONSOLE_AREA_CLASSNAME,
@@ -21,8 +20,6 @@ import {CONSOLE_HEADER_CLASSNAME, CONSOLE_FOOTER_CLASSNAME} from "./constants.m
21
20
 
22
21
 
23
22
 
24
-
25
-
26
23
  // to-ansi is also used by the browser
27
24
 
28
25
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "analogger",
3
- "version": "1.26.0",
3
+ "version": "1.26.1",
4
4
  "description": "Js Logger",
5
5
  "main": "./src/ana-logger.cjs",
6
6
  "module": "./esm/src/ana-logger.mjs",
@@ -2,8 +2,6 @@
2
2
  const path = require("path");
3
3
  const fs = require("fs");
4
4
  const os = require("os");
5
-
6
- let fetch = require("node-fetch-cjs");
7
5
  /** to-esm-browser: end-remove **/
8
6
 
9
7
  // to-ansi is also used by the browser