loggable-error 1.0.2 → 1.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.
@@ -1,5 +1,9 @@
1
1
  name: Unit tests in CI
2
2
 
3
+ permissions:
4
+ contents: read
5
+ pull-requests: write
6
+
3
7
  on:
4
8
  push:
5
9
  branches: [ "main" ]
@@ -13,12 +17,12 @@ jobs:
13
17
 
14
18
  strategy:
15
19
  matrix:
16
- node-version: [18.x, 20.x, 22.x]
20
+ node-version: [20.x, 22.x, 24.x]
17
21
 
18
22
  steps:
19
- - uses: actions/checkout@v4
23
+ - uses: actions/checkout@v5
20
24
  - name: Use Node.js ${{ matrix.node-version }}
21
- uses: actions/setup-node@v4
25
+ uses: actions/setup-node@v6
22
26
  with:
23
27
  node-version: ${{ matrix.node-version }}
24
28
  cache: 'npm'
@@ -0,0 +1,25 @@
1
+ name: NPM Publish
2
+
3
+ on:
4
+ release:
5
+ types: [published]
6
+
7
+ jobs:
8
+ npm-publish:
9
+ runs-on: ubuntu-latest
10
+ permissions:
11
+ contents: read
12
+ id-token: write
13
+ steps:
14
+ - uses: actions/checkout@v5
15
+ # Setup .npmrc file to publish to npm
16
+ - uses: actions/setup-node@v6
17
+ with:
18
+ node-version: 22.x
19
+ registry-url: 'https://registry.npmjs.org'
20
+ # Ensure npm 11.5.1 or later is installed
21
+ - run: npm install -g npm@latest
22
+ - run: npm ci
23
+ - run: npm run build --if-present
24
+ - run: npm publish --provenance --access public
25
+
package/README.md CHANGED
@@ -1,6 +1,15 @@
1
1
  # loggable-error
2
2
 
3
- ![ci status](https://github.com/EvanK/npm-loggable-error/actions/workflows/ci.yml/badge.svg)
3
+ [
4
+ ![ci status](https://github.com/EvanK/npm-loggable-error/actions/workflows/ci.yml/badge.svg)
5
+ ](https://github.com/EvanK/loggable-error/actions/workflows/ci.yml)
6
+ [
7
+ ![node.js supported as of v20](https://img.shields.io/badge/Node.js-v20-yellow)
8
+ ](https://nodejs.org/docs/latest-v20.x/api/)
9
+
10
+ [
11
+ ![npm](https://nodei.co/npm/npm-loggable-error.png)
12
+ ](https://www.npmjs.com/package/npm-loggable-error)
4
13
 
5
14
  In those times when you need to log an error to somewhere other than standard output, this simple module stringifies Error objects in a format akin to `console.log`:
6
15
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "loggable-error",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "Stringifies errors into a format similar to console.log",
5
5
  "main": "./src/main.cjs",
6
6
  "exports": {