errlens 1.0.3 → 1.0.5

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/bin/index.js CHANGED
@@ -1,4 +1,4 @@
1
- #!/usr/bin/env node
1
+ #!/usr/bin/env node
2
2
 
3
3
  const { Command } = require("commander");
4
4
  const { spawn } = require("child_process");
package/package.json CHANGED
@@ -1,27 +1,54 @@
1
1
  {
2
2
  "name": "errlens",
3
- "version": "1.0.3",
4
- "description": "A CLI tool that explains JavaScript/Node.js errors in plain English.",
3
+ "version": "1.0.5",
4
+ "description": "Professional CLI tool that explains JavaScript and Node.js errors in plain English with actionable fixes directly in your terminal.",
5
5
  "main": "./bin/index.js",
6
+ "bin": {
7
+ "errlens": "./bin/index.js"
8
+ },
6
9
  "author": "BeyteFlow (https://github.com/BeyteFlow)",
7
10
  "license": "MIT",
8
- "bin": {
9
- "errlens": "bin/index.js"
11
+ "keywords": [
12
+ "javascript",
13
+ "nodejs",
14
+ "cli",
15
+ "error",
16
+ "debugging",
17
+ "stacktrace",
18
+ "developer-tools",
19
+ "terminal",
20
+ "diagnostics",
21
+ "productivity",
22
+ "devtools",
23
+ "error-handler"
24
+ ],
25
+ "engines": {
26
+ "node": ">=20.0.0"
10
27
  },
28
+ "files": [
29
+ "bin/",
30
+ "lib/",
31
+ "README.md",
32
+ "LICENSE"
33
+ ],
11
34
  "scripts": {
12
35
  "test": "node --test test/**/*.test.js"
13
36
  },
14
37
  "repository": {
15
38
  "type": "git",
16
- "url": "git+https://github.com/BeyteFlow/errlens.git"
39
+ "url": "https://github.com/BeyteFlow/errlens.git"
17
40
  },
18
41
  "bugs": {
19
42
  "url": "https://github.com/BeyteFlow/errlens/issues"
20
43
  },
21
44
  "homepage": "https://github.com/BeyteFlow/errlens#readme",
45
+ "funding": {
46
+ "type": "github",
47
+ "url": "https://github.com/sponsors/BeyteFlow"
48
+ },
22
49
  "dependencies": {
23
- "boxen": "^8.0.1",
24
- "chalk": "^5.6.2",
50
+ "boxen": "^5.1.2",
51
+ "chalk": "^4.1.2",
25
52
  "commander": "^14.0.3",
26
53
  "fuse.js": "^7.0.0",
27
54
  "ora": "^9.3.0"
@@ -1,21 +0,0 @@
1
- version: 2
2
- updates:
3
- # Maintain dependencies for npm
4
- - package-ecosystem: "npm"
5
- directory: "/" # Location of package.json
6
- schedule:
7
- interval: "weekly"
8
- day: "monday"
9
- open-pull-requests-limit: 5
10
- # Label PRs so they are easy to filter
11
- labels:
12
- - "dependencies"
13
- - "javascript"
14
-
15
- # Maintain GitHub Actions
16
- - package-ecosystem: "github-actions"
17
- directory: "/"
18
- schedule:
19
- interval: "weekly"
20
- labels:
21
- - "ci/cd"
@@ -1,23 +0,0 @@
1
- documentation:
2
- - changed-files:
3
- - any-glob-to-any-file: ['README.md', 'docs/**/*']
4
-
5
- ci/cd:
6
- - changed-files:
7
- - any-glob-to-any-file: ['.github/**/*']
8
-
9
- core:
10
- - changed-files:
11
- - any-glob-to-any-file: ['lib/**/*']
12
-
13
- cli:
14
- - changed-files:
15
- - any-glob-to-any-file: ['bin/**/*']
16
-
17
- testing:
18
- - changed-files:
19
- - any-glob-to-any-file: ['test/**/*']
20
-
21
- dependencies:
22
- - changed-files:
23
- - any-glob-to-any-file: ['package.json', 'package-lock.json']
@@ -1,40 +0,0 @@
1
- name: CodeQL
2
-
3
- on:
4
- push:
5
- branches: [ main ]
6
- pull_request:
7
- branches: [ main ]
8
- schedule:
9
- - cron: '0 0 * * 1'
10
-
11
- jobs:
12
- analyze:
13
- name: Analyze
14
- runs-on: ubuntu-latest
15
- permissions:
16
- actions: read
17
- contents: read
18
- security-events: write
19
-
20
- strategy:
21
- fail-fast: false
22
- matrix:
23
- language: [ 'javascript' ]
24
-
25
- steps:
26
- - name: Checkout repository
27
- uses: actions/checkout@v6.0.2
28
-
29
- - name: Initialize CodeQL
30
- uses: github/codeql-action/init@v4
31
- with:
32
- languages: ${{ matrix.language }}
33
-
34
- - name: Autobuild
35
- uses: github/codeql-action/autobuild@v4
36
-
37
- - name: Perform CodeQL Analysis
38
- uses: github/codeql-action/analyze@v4
39
- with:
40
- category: "/language:${{ matrix.language }}"
@@ -1,42 +0,0 @@
1
- name: Label Issues
2
-
3
- on:
4
- issues:
5
- types: [opened, edited]
6
-
7
- jobs:
8
- label:
9
- runs-on: ubuntu-latest
10
- permissions:
11
- issues: write
12
- steps:
13
- - uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
14
- with:
15
- github-token: ${{ secrets.GITHUB_TOKEN }}
16
- script: |
17
- const title = context.payload.issue.title.toLowerCase();
18
- const body = (context.payload.issue.body || '').toLowerCase();
19
- const text = title + ' ' + body;
20
- const labels = [];
21
-
22
- if (/\b(bug|error|crash|broken|fail|problem|not working)\b/.test(text)) {
23
- labels.push('bug');
24
- }
25
- if (/\b(feature|enhancement|request|add|improve|suggest)\b/.test(text)) {
26
- labels.push('enhancement');
27
- }
28
- if (/\b(doc|documentation|readme|guide|example)\b/.test(text)) {
29
- labels.push('documentation');
30
- }
31
- if (/\b(question|help wanted)\b/.test(text) || /\bhow (to|do|does|can)\b/.test(text)) {
32
- labels.push('question');
33
- }
34
-
35
- if (labels.length > 0) {
36
- await github.rest.issues.addLabels({
37
- owner: context.repo.owner,
38
- repo: context.repo.repo,
39
- issue_number: context.payload.issue.number,
40
- labels: labels
41
- });
42
- }
@@ -1,16 +0,0 @@
1
- name: Label Pull Requests
2
-
3
- on:
4
- pull_request_target:
5
- types: [opened, synchronize, reopened]
6
-
7
- jobs:
8
- labeler:
9
- runs-on: ubuntu-latest
10
- permissions:
11
- contents: read
12
- pull-requests: write
13
- steps:
14
- - uses: actions/labeler@634933edcd8ababfe52f92936142cc22ac488b1b # v6.0.1
15
- with:
16
- repo-token: ${{ secrets.GITHUB_TOKEN }}
@@ -1,25 +0,0 @@
1
- # .github/workflows/nodejs.yml
2
- name: Node.js CI
3
-
4
- on:
5
- push:
6
- branches: [ main ]
7
- pull_request:
8
- branches: [ main ]
9
-
10
- jobs:
11
- build:
12
- runs-on: ubuntu-latest
13
- permissions:
14
- contents: read
15
-
16
- steps:
17
- - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
18
- - name: Use Node.js 18
19
- uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
20
- with:
21
- node-version: 18
22
-
23
- - run: npm install
24
- - run: npm run lint || echo "Skipping lint if not set"
25
- - run: npm test || echo "Skipping test if not set"
@@ -1,20 +0,0 @@
1
- name: Publish Package
2
-
3
- on:
4
- push:
5
- tags:
6
- - 'v*'
7
-
8
- jobs:
9
- publish:
10
- runs-on: ubuntu-latest
11
- steps:
12
- - uses: actions/checkout@v6.0.2
13
- - uses: actions/setup-node@v6.2.0
14
- with:
15
- node-version: 24
16
- registry-url: https://registry.npmjs.org/
17
- - run: npm ci
18
- - run: npm publish --access public
19
- env:
20
- NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
Binary file
Binary file