@meadown/logger 1.8.2 → 1.8.4

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/README.md +15 -10
  2. package/SECURITY.md +5 -5
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -1,3 +1,5 @@
1
+ ![meadown/logger — a development-focused logger for Node.js](media/header.png)
2
+
1
3
  # @meadown/logger
2
4
 
3
5
  A **development-focused logger** for Node.js and TypeScript — built to make your
@@ -7,15 +9,18 @@ No dependencies. No config. Import it and you're done.
7
9
 
8
10
  ## Why this exists
9
11
 
10
- I kept writing the same custom log wrapper in every project the one that
11
- silences itself in production and shows a timestamp. I kept forgetting to use
12
- it, shipping stray `console.log` calls, and having no idea which file a log
13
- message came from. So I built the version I always wanted: zero dependencies,
14
- automatic production silence, and every line tells you exactly where it came
15
- from as a clickable link.
12
+ I kept writing the same `console.log` wrapper in every project. Every time.
13
+ Copy, paste, rename. And I still shipped it to production by accident. And I
14
+ still spent ten minutes staring at logs trying to figure out which file they
15
+ came from.
16
+
17
+ At some point I just built the thing I always wanted.
18
+
19
+ One import. No config. No dependencies. It shows you exactly where every log
20
+ came from, and it gets out of the way when you ship.
16
21
 
17
- > Full story — problem, research, design, build, and what got cut along the
18
- > way — in [`docs/STORY.md`](docs/STORY.md).
22
+ > The full story — the problem, the research, every design decision, and
23
+ > everything that got cut is in [`docs/STORY.md`](docs/STORY.md).
19
24
 
20
25
  ## Features
21
26
 
@@ -63,7 +68,7 @@ actual response body. The promise flows through untouched. One line of code.
63
68
  ```ts
64
69
  const user = await logger.tap(
65
70
  fetch("https://api.example.com/users/1"),
66
- "GET /users/1"
71
+ "GET /users/1",
67
72
  )
68
73
  // user is the real Response — your code doesn't change at all
69
74
  ```
@@ -93,7 +98,7 @@ back? Without opening DevTools.
93
98
  Works with plain values too — logs it, returns it, nothing changes:
94
99
 
95
100
  ```ts
96
- const port = logger.tap(5000, "port") // port is still 5000
101
+ const port = logger.tap(5000, "port") // port is still 5000
97
102
  const user = logger.tap(await getUser(), "user") // same as without tap
98
103
  ```
99
104
 
package/SECURITY.md CHANGED
@@ -2,15 +2,15 @@
2
2
 
3
3
  ## Reporting a vulnerability
4
4
 
5
- Please report security issues **privately** by email to
6
- [inbox.meadown@gmail.com](mailto:inbox.meadown@gmail.com).
5
+ Please report security issues **privately** do not open a public issue for
6
+ anything exploitable.
7
+
8
+ - **Preferred:** [Open a private security advisory →](https://github.com/meadown/meadown-logger/security/advisories/new)
9
+ - **Alternative:** email [inbox.meadown@gmail.com](mailto:inbox.meadown@gmail.com)
7
10
 
8
11
  Include a description, the affected version, and steps to reproduce. We aim to
9
12
  acknowledge reports within a few days and to coordinate a fix and disclosure.
10
13
 
11
- > Once this repository is public, reports can also be filed via GitHub Security
12
- > Advisories ("Report a vulnerability" under the Security tab).
13
-
14
14
  ## Supported versions
15
15
 
16
16
  Only the latest published `@meadown/logger` release receives security fixes.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meadown/logger",
3
- "version": "1.8.2",
3
+ "version": "1.8.4",
4
4
  "description": "A development-focused logger for Node.js and TypeScript — zero dependencies, clickable source links, and API response logging built in.",
5
5
  "keywords": [
6
6
  "logger",