@thi.ng/rstream-log-file 2.1.85 → 2.1.87

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.
Files changed (3) hide show
  1. package/CHANGELOG.md +1 -1
  2. package/index.js +11 -8
  3. package/package.json +8 -5
package/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Change Log
2
2
 
3
- - **Last updated**: 2023-12-09T19:12:03Z
3
+ - **Last updated**: 2023-12-18T13:41:20Z
4
4
  - **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
5
5
 
6
6
  All notable changes to this project will be documented in this file.
package/index.js CHANGED
@@ -1,10 +1,13 @@
1
1
  import { appendFile } from "fs";
2
- export const writeFile = (path) => ({
3
- next(msg) {
4
- appendFile(path, msg + "\n", (e) => {
5
- if (e) {
6
- process.stderr.write(e.message);
7
- }
8
- });
9
- },
2
+ const writeFile = (path) => ({
3
+ next(msg) {
4
+ appendFile(path, msg + "\n", (e) => {
5
+ if (e) {
6
+ process.stderr.write(e.message);
7
+ }
8
+ });
9
+ }
10
10
  });
11
+ export {
12
+ writeFile
13
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/rstream-log-file",
3
- "version": "2.1.85",
3
+ "version": "2.1.87",
4
4
  "description": "File output handler for structured, multilevel & hierarchical loggers based on @thi.ng/rstream",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -24,7 +24,9 @@
24
24
  "author": "Karsten Schmidt (https://thi.ng)",
25
25
  "license": "Apache-2.0",
26
26
  "scripts": {
27
- "build": "yarn clean && tsc --declaration",
27
+ "build": "yarn build:esbuild && yarn build:decl",
28
+ "build:decl": "tsc --declaration --emitDeclarationOnly",
29
+ "build:esbuild": "esbuild --format=esm --platform=neutral --target=es2022 --tsconfig=tsconfig.json --outdir=. src/**/*.ts",
28
30
  "clean": "rimraf --glob '*.js' '*.d.ts' '*.map' doc",
29
31
  "doc": "typedoc --excludePrivate --excludeInternal --out doc src/index.ts",
30
32
  "doc:ae": "mkdir -p .ae/doc .ae/temp && api-extractor run --local --verbose",
@@ -33,11 +35,12 @@
33
35
  "test": "bun test"
34
36
  },
35
37
  "dependencies": {
36
- "@thi.ng/rstream": "^8.2.13"
38
+ "@thi.ng/rstream": "^8.2.15"
37
39
  },
38
40
  "devDependencies": {
39
41
  "@microsoft/api-extractor": "^7.38.3",
40
42
  "@types/node": "^20.10.2",
43
+ "esbuild": "^0.19.8",
41
44
  "rimraf": "^5.0.5",
42
45
  "tools": "^0.0.1",
43
46
  "typedoc": "^0.25.4",
@@ -55,7 +58,7 @@
55
58
  "access": "public"
56
59
  },
57
60
  "engines": {
58
- "node": ">=12.7"
61
+ "node": ">=18"
59
62
  },
60
63
  "files": [
61
64
  "./*.js",
@@ -70,5 +73,5 @@
70
73
  "parent": "@thi.ng/rstream-log",
71
74
  "year": 2017
72
75
  },
73
- "gitHead": "25f2ac8ff795a432a930119661b364d4d93b59a0\n"
76
+ "gitHead": "25a42a81fac8603a1e440a7aa8bc343276211ff4\n"
74
77
  }