@thi.ng/rstream-log 3.2.32 → 4.0.3

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/CHANGELOG.md CHANGED
@@ -3,7 +3,7 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
- ## [3.2.32](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream-log@3.2.31...@thi.ng/rstream-log@3.2.32) (2021-08-22)
6
+ ## [4.0.3](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream-log@4.0.2...@thi.ng/rstream-log@4.0.3) (2021-10-15)
7
7
 
8
8
  **Note:** Version bump only for package @thi.ng/rstream-log
9
9
 
@@ -11,87 +11,117 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
11
11
 
12
12
 
13
13
 
14
- # [3.2.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream-log@3.1.55...@thi.ng/rstream-log@3.2.0) (2021-01-13)
14
+ ## [4.0.2](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream-log@4.0.1...@thi.ng/rstream-log@4.0.2) (2021-10-15)
15
+
16
+ **Note:** Version bump only for package @thi.ng/rstream-log
15
17
 
16
18
 
17
- ### Features
18
19
 
19
- * **rstream-log:** update default body format for formatString() ([841b062](https://github.com/thi-ng/umbrella/commit/841b06271362c6941176b057d1bfab363c07d104))
20
20
 
21
21
 
22
+ ## [4.0.1](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream-log@4.0.0...@thi.ng/rstream-log@4.0.1) (2021-10-13)
22
23
 
24
+ **Note:** Version bump only for package @thi.ng/rstream-log
23
25
 
24
26
 
25
- # [3.1.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream-log@3.0.14...@thi.ng/rstream-log@3.1.0) (2019-07-07)
26
27
 
27
- ### Features
28
28
 
29
- * **rstream-log:** add maskSecrets() format xform ([481a65d](https://github.com/thi-ng/umbrella/commit/481a65d))
30
29
 
31
- # [3.0.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream-log@2.0.12...@thi.ng/rstream-log@3.0.0) (2019-03-19)
30
+ # [4.0.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream-log@3.2.33...@thi.ng/rstream-log@4.0.0) (2021-10-12)
32
31
 
33
- ### Code Refactoring
34
32
 
35
- * **rstream-log:** remove obsolete writeFile() fn ([1354171](https://github.com/thi-ng/umbrella/commit/1354171))
33
+ ### Build System
34
+
35
+ * major update of ALL pkgs (export maps, ESM only) ([0d1d6ea](https://github.com/thi-ng/umbrella/commit/0d1d6ea9fab2a645d6c5f2bf2591459b939c09b6))
36
+
36
37
 
37
38
  ### BREAKING CHANGES
38
39
 
39
- * **rstream-log:** migrate writeFile() to new pkg @thi.ng/rstream-log-file
40
+ * discontinue CommonJS & UMD versions
40
41
 
41
- # [2.0.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream-log@1.0.76...@thi.ng/rstream-log@2.0.0) (2019-01-21)
42
+ - only ESM modules will be published from now on
43
+ - CJS obsolete due to ESM support in recent versions of node:
44
+ - i.e. launch NodeJS via:
45
+ - `node --experimental-specifier-resolution=node --experimental-repl-await`
46
+ - in the node REPL use `await import(...)` instead of `require()`
47
+ - UMD obsolete due to widespread browser support for ESM
42
48
 
43
- ### Bug Fixes
49
+ Also:
50
+ - normalize/restructure/reorg all package.json files
51
+ - cleanup all build scripts, remove obsolete
52
+ - switch from mocha to @thi.ng/testament for all tests
44
53
 
45
- * **rstream-log:** remove __Level reverse enum lookup, update Level (non const) ([d89f28f](https://github.com/thi-ng/umbrella/commit/d89f28f))
46
54
 
47
- ### Build System
48
55
 
49
- * update package scripts, outputs, imports in remaining packages ([f912a84](https://github.com/thi-ng/umbrella/commit/f912a84))
50
56
 
51
- ### BREAKING CHANGES
52
57
 
53
- * enable multi-outputs (ES6 modules, CJS, UMD)
54
58
 
55
- - build scripts now first build ES6 modules in package root, then call
56
- `scripts/bundle-module` to build minified CJS & UMD bundles in `/lib`
57
- - all imports MUST be updated to only refer to package level
58
- (not individual files anymore). tree shaking in user land will get rid of
59
- all unused imported symbols
59
+ # [3.2.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream-log@3.1.55...@thi.ng/rstream-log@3.2.0) (2021-01-13)
60
60
 
61
- <a name="1.0.60"></a>
62
- ## [1.0.60](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream-log@1.0.59...@thi.ng/rstream-log@1.0.60) (2018-09-24)
61
+ ### Features
63
62
 
64
- ### Performance Improvements
63
+ - **rstream-log:** update default body format for formatString() ([841b062](https://github.com/thi-ng/umbrella/commit/841b06271362c6941176b057d1bfab363c07d104))
65
64
 
66
- * **rstream-log:** `Level` => const enum ([fc6a4d3](https://github.com/thi-ng/umbrella/commit/fc6a4d3))
65
+ # [3.1.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream-log@3.0.14...@thi.ng/rstream-log@3.1.0) (2019-07-07)
67
66
 
68
- <a name="1.0.4"></a>
69
- ## [1.0.4](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream-log@1.0.3...@thi.ng/rstream-log@1.0.4) (2018-04-18)
67
+ ### Features
70
68
 
71
- ### Bug Fixes
69
+ - **rstream-log:** add maskSecrets() format xform ([481a65d](https://github.com/thi-ng/umbrella/commit/481a65d))
72
70
 
73
- * **rstream-log:** ID handling in Logger ctor ([3087776](https://github.com/thi-ng/umbrella/commit/3087776))
71
+ # [3.0.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream-log@2.0.12...@thi.ng/rstream-log@3.0.0) (2019-03-19)
74
72
 
75
- <a name="1.0.0"></a>
76
- # [1.0.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream-log@0.6.9...@thi.ng/rstream-log@1.0.0) (2018-04-15)
73
+ ### Code Refactoring
77
74
 
78
- ### Code Refactoring
75
+ - **rstream-log:** remove obsolete writeFile() fn ([1354171](https://github.com/thi-ng/umbrella/commit/1354171))
79
76
 
80
- * **rstream-log:** update package structure & readme example ([e6c75b4](https://github.com/thi-ng/umbrella/commit/e6c75b4))
77
+ ### BREAKING CHANGES
81
78
 
82
- ### BREAKING CHANGES
79
+ - **rstream-log:** migrate writeFile() to new pkg @thi.ng/rstream-log-file
80
+
81
+ # [2.0.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream-log@1.0.76...@thi.ng/rstream-log@2.0.0) (2019-01-21)
82
+
83
+ ### Bug Fixes
84
+
85
+ - **rstream-log:** remove __Level reverse enum lookup, update Level (non const) ([d89f28f](https://github.com/thi-ng/umbrella/commit/d89f28f))
86
+
87
+ ### Build System
88
+
89
+ - update package scripts, outputs, imports in remaining packages ([f912a84](https://github.com/thi-ng/umbrella/commit/f912a84))
90
+
91
+ ### BREAKING CHANGES
92
+
93
+ - enable multi-outputs (ES6 modules, CJS, UMD)
94
+ - build scripts now first build ES6 modules in package root, then call `scripts/bundle-module` to build minified CJS & UMD bundles in `/lib`
95
+ - all imports MUST be updated to only refer to package level (not individual files anymore). tree shaking in user land will get rid of all unused imported symbols
96
+
97
+ ## [1.0.60](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream-log@1.0.59...@thi.ng/rstream-log@1.0.60) (2018-09-24)
98
+
99
+ ### Performance Improvements
100
+
101
+ - **rstream-log:** `Level` => const enum ([fc6a4d3](https://github.com/thi-ng/umbrella/commit/fc6a4d3))
102
+
103
+ ## [1.0.4](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream-log@1.0.3...@thi.ng/rstream-log@1.0.4) (2018-04-18)
104
+
105
+ ### Bug Fixes
106
+
107
+ - **rstream-log:** ID handling in Logger ctor ([3087776](https://github.com/thi-ng/umbrella/commit/3087776))
108
+
109
+ # [1.0.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream-log@0.6.9...@thi.ng/rstream-log@1.0.0) (2018-04-15)
110
+
111
+ ### Code Refactoring
112
+
113
+ - **rstream-log:** update package structure & readme example ([e6c75b4](https://github.com/thi-ng/umbrella/commit/e6c75b4))
83
114
 
84
- * **rstream-log:** update package structure
115
+ ### BREAKING CHANGES
85
116
 
86
- - rename src/transform => src/xform
87
- - move src/format.ts => src/xform/format.ts
117
+ - **rstream-log:** update package structure
118
+ - rename src/transform => src/xform
119
+ - move src/format.ts => src/xform/format.ts
88
120
 
89
- <a name="0.6.0"></a>
90
- # [0.6.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream-log@0.5.40...@thi.ng/rstream-log@0.6.0) (2018-03-21)
121
+ # [0.6.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream-log@0.5.40...@thi.ng/rstream-log@0.6.0) (2018-03-21)
91
122
 
92
- ### Features
123
+ ### Features
93
124
 
94
- * **rstream-log:** update error handling, add [@thi](https://github.com/thi).ng/api dep ([8a3e72e](https://github.com/thi-ng/umbrella/commit/8a3e72e))
125
+ - **rstream-log:** update error handling, add [@thi](https://github.com/thi).ng/api dep ([8a3e72e](https://github.com/thi-ng/umbrella/commit/8a3e72e))
95
126
 
96
- <a name="0.5.40"></a>
97
- ## [0.5.40](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream-log@0.5.39...@thi.ng/rstream-log@0.5.40) (2018-03-21)
127
+ ## [0.5.40](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream-log@0.5.39...@thi.ng/rstream-log@0.5.40) (2018-03-21)
package/README.md CHANGED
@@ -12,6 +12,7 @@ This project is part of the
12
12
  - [About](#about)
13
13
  - [Status](#status)
14
14
  - [Support packages](#support-packages)
15
+ - [Related packages](#related-packages)
15
16
  - [Installation](#installation)
16
17
  - [Dependencies](#dependencies)
17
18
  - [API](#api)
@@ -42,27 +43,41 @@ filtering.
42
43
 
43
44
  - [@thi.ng/rstream-log-file](https://github.com/thi-ng/umbrella/tree/develop/packages/rstream-log-file) - File output handler for structured, multilevel & hierarchical loggers based on [@thi.ng/rstream](https://github.com/thi-ng/umbrella/tree/develop/packages/rstream)
44
45
 
46
+ ### Related packages
47
+
48
+ - [@thi.ng/logger](https://github.com/thi-ng/umbrella/tree/develop/packages/logger) - Types & basis infrastructure for arbitrary logging (w/ default impls)
49
+
45
50
  ## Installation
46
51
 
47
52
  ```bash
48
53
  yarn add @thi.ng/rstream-log
49
54
  ```
50
55
 
56
+ ES module import:
57
+
51
58
  ```html
52
- // ES module
53
- <script type="module" src="https://unpkg.com/@thi.ng/rstream-log?module" crossorigin></script>
59
+ <script type="module" src="https://cdn.skypack.dev/@thi.ng/rstream-log"></script>
60
+ ```
61
+
62
+ [Skypack documentation](https://docs.skypack.dev/)
63
+
64
+ For Node.js REPL:
65
+
66
+ ```text
67
+ # with flag only for < v16
68
+ node --experimental-repl-await
54
69
 
55
- // UMD
56
- <script src="https://unpkg.com/@thi.ng/rstream-log/lib/index.umd.js" crossorigin></script>
70
+ > const rstreamLog = await import("@thi.ng/rstream-log");
57
71
  ```
58
72
 
59
- Package sizes (gzipped, pre-treeshake): ESM: 760 bytes / CJS: 886 bytes / UMD: 957 bytes
73
+ Package sizes (gzipped, pre-treeshake): ESM: 805 bytes
60
74
 
61
75
  ## Dependencies
62
76
 
63
77
  - [@thi.ng/api](https://github.com/thi-ng/umbrella/tree/develop/packages/api)
64
78
  - [@thi.ng/checks](https://github.com/thi-ng/umbrella/tree/develop/packages/checks)
65
79
  - [@thi.ng/errors](https://github.com/thi-ng/umbrella/tree/develop/packages/errors)
80
+ - [@thi.ng/logger](https://github.com/thi-ng/umbrella/tree/develop/packages/logger)
66
81
  - [@thi.ng/rstream](https://github.com/thi-ng/umbrella/tree/develop/packages/rstream)
67
82
  - [@thi.ng/strings](https://github.com/thi-ng/umbrella/tree/develop/packages/strings)
68
83
  - [@thi.ng/transducers](https://github.com/thi-ng/umbrella/tree/develop/packages/transducers)
package/api.d.ts CHANGED
@@ -1,4 +1,5 @@
1
- import type { IID, ILogger as APILogger, LogLevel } from "@thi.ng/api";
1
+ import type { IID } from "@thi.ng/api";
2
+ import type { ILogger as APILogger, LogLevel } from "@thi.ng/logger";
2
3
  import type { ISubscribable } from "@thi.ng/rstream";
3
4
  export interface LogEntry extends Array<any> {
4
5
  [0]: LogLevel;
package/console.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ export { trace as writeConsole } from "@thi.ng/rstream/trace";
2
+ //# sourceMappingURL=console.d.ts.map
package/console.js ADDED
@@ -0,0 +1 @@
1
+ export { trace as writeConsole } from "@thi.ng/rstream/trace";
@@ -1,6 +1,6 @@
1
- import type { LogLevel } from "@thi.ng/api";
1
+ import type { LogLevel } from "@thi.ng/logger";
2
2
  import type { Transducer } from "@thi.ng/transducers";
3
- import type { LogEntry } from "../api";
3
+ import type { LogEntry } from "./api.js";
4
4
  export declare const onlyLevel: (level: LogLevel) => Transducer<LogEntry, LogEntry>;
5
5
  export declare const minLevel: (level: LogLevel) => Transducer<LogEntry, LogEntry>;
6
6
  export declare const maxLevel: (level: LogLevel) => Transducer<LogEntry, LogEntry>;
@@ -1,5 +1,5 @@
1
- import { isString } from "@thi.ng/checks";
2
- import { filter } from "@thi.ng/transducers";
1
+ import { isString } from "@thi.ng/checks/is-string";
2
+ import { filter } from "@thi.ng/transducers/filter";
3
3
  export const onlyLevel = (level) => filter((l) => l[0] === level);
4
4
  export const minLevel = (level) => filter((l) => l[0] >= level);
5
5
  export const maxLevel = (level) => filter((l) => l[0] <= level);
@@ -1,5 +1,5 @@
1
- import { Transducer } from "@thi.ng/transducers";
2
- import type { BodyFormat, DateFormat, LogEntry, LogEntryObj } from "../api";
1
+ import type { Transducer } from "@thi.ng/transducers";
2
+ import type { BodyFormat, DateFormat, LogEntry, LogEntryObj } from "./api.js";
3
3
  export declare const isoDate: (dt: number) => string;
4
4
  export declare const formatString: (dtFmt?: DateFormat | undefined, bodyFmt?: BodyFormat | undefined) => Transducer<LogEntry, string>;
5
5
  /**
@@ -1,6 +1,6 @@
1
- import { LogLevel } from "@thi.ng/api";
2
- import { stringify } from "@thi.ng/strings";
3
- import { map } from "@thi.ng/transducers";
1
+ import { LogLevel } from "@thi.ng/logger/api";
2
+ import { stringify } from "@thi.ng/strings/stringify";
3
+ import { map } from "@thi.ng/transducers/map";
4
4
  export const isoDate = (dt) => new Date(dt).toISOString();
5
5
  export const formatString = (dtFmt, bodyFmt) => {
6
6
  dtFmt = dtFmt || isoDate;
package/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- export * from "./api";
2
- export * from "./logger";
3
- export * from "./output/console";
4
- export * from "./xform/filter";
5
- export * from "./xform/format";
1
+ export * from "./api.js";
2
+ export * from "./console.js";
3
+ export * from "./filter.js";
4
+ export * from "./format.js";
5
+ export * from "./logger.js";
6
6
  //# sourceMappingURL=index.d.ts.map
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
- export * from "./api";
2
- export * from "./logger";
3
- export * from "./output/console";
4
- export * from "./xform/filter";
5
- export * from "./xform/format";
1
+ export * from "./api.js";
2
+ export * from "./console.js";
3
+ export * from "./filter.js";
4
+ export * from "./format.js";
5
+ export * from "./logger.js";
package/logger.d.ts CHANGED
@@ -1,6 +1,7 @@
1
- import { LogLevel } from "@thi.ng/api";
2
- import { ISubscribable, StreamMerge } from "@thi.ng/rstream";
3
- import type { ILogger, LogEntry } from "./api";
1
+ import { LogLevel } from "@thi.ng/logger/api";
2
+ import { ISubscribable } from "@thi.ng/rstream/api";
3
+ import { StreamMerge } from "@thi.ng/rstream/merge";
4
+ import type { ILogger, LogEntry } from "./api.js";
4
5
  export declare class Logger extends StreamMerge<LogEntry, LogEntry> implements ILogger {
5
6
  level: LogLevel;
6
7
  constructor();
package/logger.js CHANGED
@@ -1,6 +1,8 @@
1
- import { LogLevel } from "@thi.ng/api";
2
- import { illegalArity } from "@thi.ng/errors";
3
- import { CloseMode, nextID, StreamMerge } from "@thi.ng/rstream";
1
+ import { illegalArity } from "@thi.ng/errors/illegal-arity";
2
+ import { LogLevel } from "@thi.ng/logger/api";
3
+ import { CloseMode } from "@thi.ng/rstream/api";
4
+ import { __nextID } from "@thi.ng/rstream/idgen";
5
+ import { StreamMerge } from "@thi.ng/rstream/merge";
4
6
  export class Logger extends StreamMerge {
5
7
  constructor(...args) {
6
8
  let id;
@@ -22,7 +24,7 @@ export class Logger extends StreamMerge {
22
24
  default:
23
25
  illegalArity(args.length);
24
26
  }
25
- id = id || `logger-${nextID()}`;
27
+ id = id || `logger-${__nextID()}`;
26
28
  super({ src, id, closeIn: CloseMode.NEVER, closeOut: CloseMode.NEVER });
27
29
  this.level = level;
28
30
  }
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@thi.ng/rstream-log",
3
- "version": "3.2.32",
3
+ "version": "4.0.3",
4
4
  "description": "Structured, multilevel & hierarchical loggers based on @thi.ng/rstream",
5
+ "type": "module",
5
6
  "module": "./index.js",
6
- "main": "./lib/index.js",
7
- "umd:main": "./lib/index.umd.js",
8
7
  "typings": "./index.d.ts",
8
+ "sideEffects": false,
9
9
  "repository": {
10
10
  "type": "git",
11
11
  "url": "https://github.com/thi-ng/umbrella.git"
@@ -24,34 +24,27 @@
24
24
  "author": "Karsten Schmidt <k+npm@thi.ng>",
25
25
  "license": "Apache-2.0",
26
26
  "scripts": {
27
- "build": "yarn clean && yarn build:es6 && node ../../scripts/bundle-module",
28
- "build:release": "yarn clean && yarn build:es6 && node ../../scripts/bundle-module all",
29
- "build:es6": "tsc --declaration",
30
- "build:test": "rimraf build && tsc -p test/tsconfig.json",
31
- "build:check": "tsc --isolatedModules --noEmit",
32
- "test": "mocha test",
33
- "cover": "nyc mocha test && nyc report --reporter=lcov",
34
- "clean": "rimraf *.js *.d.ts *.map .nyc_output build coverage doc lib output xform",
35
- "doc:readme": "ts-node -P ../../tools/tsconfig.json ../../tools/src/readme.ts",
36
- "doc": "typedoc --excludePrivate --out doc --theme ../../tools/doc/typedoc-theme src/index.ts",
27
+ "build": "yarn clean && tsc --declaration",
28
+ "clean": "rimraf *.js *.d.ts *.map doc output xform",
29
+ "doc": "typedoc --excludePrivate --excludeInternal --out doc src/index.ts",
37
30
  "doc:ae": "mkdir -p .ae/doc .ae/temp && node_modules/.bin/api-extractor run --local --verbose",
38
- "pub": "yarn build:release && yarn publish --access public"
31
+ "doc:readme": "yarn doc:stats && ../../scripts/node-esm ../../tools/src/readme.ts",
32
+ "doc:stats": "../../scripts/node-esm ../../tools/src/module-stats.ts",
33
+ "pub": "yarn build && yarn publish --access public",
34
+ "test": "testament test"
39
35
  },
40
36
  "dependencies": {
41
- "@thi.ng/api": "^7.1.9",
42
- "@thi.ng/checks": "^2.9.10",
43
- "@thi.ng/errors": "^1.3.4",
44
- "@thi.ng/rstream": "^6.0.20",
45
- "@thi.ng/strings": "^2.1.6",
46
- "@thi.ng/transducers": "^7.9.1"
37
+ "@thi.ng/api": "^8.0.3",
38
+ "@thi.ng/checks": "^3.0.3",
39
+ "@thi.ng/errors": "^2.0.3",
40
+ "@thi.ng/logger": "^1.0.3",
41
+ "@thi.ng/rstream": "^7.0.3",
42
+ "@thi.ng/strings": "^3.0.3",
43
+ "@thi.ng/transducers": "^8.0.3"
44
+ },
45
+ "devDependencies": {
46
+ "@thi.ng/testament": "^0.1.3"
47
47
  },
48
- "files": [
49
- "*.js",
50
- "*.d.ts",
51
- "lib",
52
- "output",
53
- "xform"
54
- ],
55
48
  "keywords": [
56
49
  "datastructure",
57
50
  "logger",
@@ -66,10 +59,39 @@
66
59
  "publishConfig": {
67
60
  "access": "public"
68
61
  },
69
- "sideEffects": false,
62
+ "engines": {
63
+ "node": ">=12.7"
64
+ },
65
+ "files": [
66
+ "*.js",
67
+ "*.d.ts"
68
+ ],
69
+ "exports": {
70
+ ".": {
71
+ "import": "./index.js"
72
+ },
73
+ "./api": {
74
+ "import": "./api.js"
75
+ },
76
+ "./console": {
77
+ "import": "./console.js"
78
+ },
79
+ "./filter": {
80
+ "import": "./filter.js"
81
+ },
82
+ "./format": {
83
+ "import": "./format.js"
84
+ },
85
+ "./logger": {
86
+ "import": "./logger.js"
87
+ }
88
+ },
70
89
  "thi.ng": {
71
90
  "parent": "@thi.ng/rstream",
91
+ "related": [
92
+ "logger"
93
+ ],
72
94
  "year": 2017
73
95
  },
74
- "gitHead": "8ead409ded4bf8dceb0f24a538ba5ca00d07108d"
96
+ "gitHead": "1fb38cac74d6c009d96855c28784a267a81badf1"
75
97
  }
package/lib/index.js DELETED
@@ -1,99 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- var api = require('@thi.ng/api');
6
- var errors = require('@thi.ng/errors');
7
- var rstream = require('@thi.ng/rstream');
8
- var checks = require('@thi.ng/checks');
9
- var transducers = require('@thi.ng/transducers');
10
- var strings = require('@thi.ng/strings');
11
-
12
- class Logger extends rstream.StreamMerge {
13
- constructor(...args) {
14
- let id;
15
- let level = api.LogLevel.FINE;
16
- let src;
17
- switch (args.length) {
18
- case 0:
19
- break;
20
- case 1:
21
- id = args[0];
22
- break;
23
- case 2:
24
- [id, level] = args;
25
- break;
26
- case 3:
27
- [id, src, level] = args;
28
- src = [...src];
29
- break;
30
- default:
31
- errors.illegalArity(args.length);
32
- }
33
- id = id || `logger-${rstream.nextID()}`;
34
- super({ src, id, closeIn: rstream.CloseMode.NEVER, closeOut: rstream.CloseMode.NEVER });
35
- this.level = level;
36
- }
37
- next(x) {
38
- x[0] >= this.level && super.next(x);
39
- }
40
- fine(...args) {
41
- this.log(api.LogLevel.FINE, args);
42
- }
43
- debug(...args) {
44
- this.log(api.LogLevel.DEBUG, args);
45
- }
46
- info(...args) {
47
- this.log(api.LogLevel.INFO, args);
48
- }
49
- warn(...args) {
50
- this.log(api.LogLevel.WARN, args);
51
- }
52
- severe(...args) {
53
- this.log(api.LogLevel.SEVERE, args);
54
- }
55
- log(level, args) {
56
- this.level <= level &&
57
- super.next([level, this.id, Date.now(), ...args]);
58
- }
59
- }
60
-
61
- const onlyLevel = (level) => transducers.filter((l) => l[0] === level);
62
- const minLevel = (level) => transducers.filter((l) => l[0] >= level);
63
- const maxLevel = (level) => transducers.filter((l) => l[0] <= level);
64
- const matchID = (id) => transducers.filter(checks.isString(id) ? (l) => l[1] === id : (l) => id.test(l[1]));
65
-
66
- const isoDate = (dt) => new Date(dt).toISOString();
67
- const formatString = (dtFmt, bodyFmt) => {
68
- dtFmt = dtFmt || isoDate;
69
- bodyFmt = bodyFmt || ((x) => x.map(strings.stringify()).join(" "));
70
- return transducers.map(([level, id, time, ...body]) => `[${api.LogLevel[level]}] ${id}: ${dtFmt(time)} ${bodyFmt(body)}`);
71
- };
72
- const maskSecrets = (patterns, mask = "****") => transducers.map((msg) => patterns.reduce((acc, pat) => acc.replace(pat, mask), msg));
73
- const formatObject = () => transducers.map(([level, id, time, ...body]) => ({ level, id, time, body }));
74
- const formatJSON = (dtfmt) => {
75
- dtfmt = dtfmt || isoDate;
76
- return transducers.map(([level, id, time, ...body]) => JSON.stringify({
77
- id,
78
- level: api.LogLevel[level],
79
- time: dtfmt(time),
80
- body,
81
- }));
82
- };
83
-
84
- Object.defineProperty(exports, 'writeConsole', {
85
- enumerable: true,
86
- get: function () {
87
- return rstream.trace;
88
- }
89
- });
90
- exports.Logger = Logger;
91
- exports.formatJSON = formatJSON;
92
- exports.formatObject = formatObject;
93
- exports.formatString = formatString;
94
- exports.isoDate = isoDate;
95
- exports.maskSecrets = maskSecrets;
96
- exports.matchID = matchID;
97
- exports.maxLevel = maxLevel;
98
- exports.minLevel = minLevel;
99
- exports.onlyLevel = onlyLevel;
package/lib/index.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sources":["../logger.js","../xform/filter.js","../xform/format.js"],"sourcesContent":null,"names":["StreamMerge","LogLevel","illegalArity","nextID","CloseMode","filter","isString","stringify","map"],"mappings":";;;;;;;;;;;AAGO,MAAM,MAAM,SAASA,mBAAW,CAAC;AACxC,IAAI,WAAW,CAAC,GAAG,IAAI,EAAE;AACzB,QAAQ,IAAI,EAAE,CAAC;AACf,QAAQ,IAAI,KAAK,GAAGC,YAAQ,CAAC,IAAI,CAAC;AAClC,QAAQ,IAAI,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AAE,EAAE,IAAI,EAAE,GAAG,IAAI,CAAC,KAAK,IAAI,CAAC,SAAS,CAAC;AAC9D,QAAQ,EAAE;AACV,QAAQ,KAAK,EAAEP,YAAQ,CAAC,KAAK,CAAC;AAC9B,QAAQ,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC;AACzB,QAAQ,IAAI;AACZ,KAAK,CAAC,CAAC,CAAC;AACR;;;;;;;;;;;;;;;;;;;"}
package/lib/index.umd.js DELETED
@@ -1 +0,0 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@thi.ng/api"),require("@thi.ng/errors"),require("@thi.ng/rstream"),require("@thi.ng/checks"),require("@thi.ng/transducers"),require("@thi.ng/strings")):"function"==typeof define&&define.amd?define(["exports","@thi.ng/api","@thi.ng/errors","@thi.ng/rstream","@thi.ng/checks","@thi.ng/transducers","@thi.ng/strings"],t):t(((e="undefined"!=typeof globalThis?globalThis:e||self).thi=e.thi||{},e.thi.ng=e.thi.ng||{},e.thi.ng.rstreamLog={}),e.thi.ng.api,e.thi.ng.errors,e.thi.ng.rstream,e.thi.ng.checks,e.thi.ng.transducers,e.thi.ng.strings)}(this,(function(e,t,i,r,n,s,o){"use strict";class g extends r.StreamMerge{constructor(...e){let n,s,o=t.LogLevel.FINE;switch(e.length){case 0:break;case 1:n=e[0];break;case 2:[n,o]=e;break;case 3:[n,s,o]=e,s=[...s];break;default:i.illegalArity(e.length)}n=n||`logger-${r.nextID()}`,super({src:s,id:n,closeIn:r.CloseMode.NEVER,closeOut:r.CloseMode.NEVER}),this.level=o}next(e){e[0]>=this.level&&super.next(e)}fine(...e){this.log(t.LogLevel.FINE,e)}debug(...e){this.log(t.LogLevel.DEBUG,e)}info(...e){this.log(t.LogLevel.INFO,e)}warn(...e){this.log(t.LogLevel.WARN,e)}severe(...e){this.log(t.LogLevel.SEVERE,e)}log(e,t){this.level<=e&&super.next([e,this.id,Date.now(),...t])}}const l=e=>new Date(e).toISOString();Object.defineProperty(e,"writeConsole",{enumerable:!0,get:function(){return r.trace}}),e.Logger=g,e.formatJSON=e=>(e=e||l,s.map((([i,r,n,...s])=>JSON.stringify({id:r,level:t.LogLevel[i],time:e(n),body:s})))),e.formatObject=()=>s.map((([e,t,i,...r])=>({level:e,id:t,time:i,body:r}))),e.formatString=(e,i)=>(e=e||l,i=i||(e=>e.map(o.stringify()).join(" ")),s.map((([r,n,s,...o])=>`[${t.LogLevel[r]}] ${n}: ${e(s)} ${i(o)}`))),e.isoDate=l,e.maskSecrets=(e,t="****")=>s.map((i=>e.reduce(((e,i)=>e.replace(i,t)),i))),e.matchID=e=>s.filter(n.isString(e)?t=>t[1]===e:t=>e.test(t[1])),e.maxLevel=e=>s.filter((t=>t[0]<=e)),e.minLevel=e=>s.filter((t=>t[0]>=e)),e.onlyLevel=e=>s.filter((t=>t[0]===e)),Object.defineProperty(e,"__esModule",{value:!0})}));
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.umd.js","sources":["../logger.js","../xform/filter.js","../xform/format.js"],"sourcesContent":null,"names":["StreamMerge","LogLevel","illegalArity","nextID","CloseMode","filter","isString","stringify","map"],"mappings":";;;;;;IAGO,MAAM,MAAM,SAASA,mBAAW,CAAC;IACxC,IAAI,WAAW,CAAC,GAAG,IAAI,EAAE;IACzB,QAAQ,IAAI,EAAE,CAAC;IACf,QAAQ,IAAI,KAAK,GAAGC,YAAQ,CAAC,IAAI,CAAC;IAClC,QAAQ,IAAI,GAAG,CAAC;IAChB,QAAQ,QAAQ,IAAI,CAAC,MAAM;IAC3B,YAAY,KAAK,CAAC;IAClB,gBAAgB,MAAM;IACtB,YAAY,KAAK,CAAC;IAClB,gBAAgB,EAAE,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC;IAC7B,gBAAgB,MAAM;IACtB,YAAY,KAAK,CAAC;IAClB,gBAAgB,CAAC,EAAE,EAAE,KAAK,CAAC,GAAG,IAAI,CAAC;IACnC,gBAAgB,MAAM;IACtB,YAAY,KAAK,CAAC;IAClB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- //# sourceMappingURL=console.d.ts.map
package/output/console.js DELETED
@@ -1 +0,0 @@
1
- export { trace as writeConsole } from "@thi.ng/rstream";