errlens 1.0.3 → 1.0.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.
- package/package.json +34 -5
- package/.github/dependabot.yml +0 -21
- package/.github/labeler.yml +0 -23
- package/.github/workflows/codeql.yml +0 -40
- package/.github/workflows/issue-labeler.yml +0 -42
- package/.github/workflows/labeler.yml +0 -16
- package/.github/workflows/nodejs.yml +0 -25
- package/.github/workflows/publish.yml +0 -20
- package/assets/errlens.png +0 -0
- package/assets/terminal.png +0 -0
package/package.json
CHANGED
|
@@ -1,24 +1,53 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "errlens",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "1.0.4",
|
|
4
|
+
"description": "Professional CLI tool that explains JavaScript and Node.js errors in plain English with actionable fixes directly in your terminal.",
|
|
5
|
+
"type": "module",
|
|
5
6
|
"main": "./bin/index.js",
|
|
7
|
+
"bin": {
|
|
8
|
+
"errlens": "./bin/index.js"
|
|
9
|
+
},
|
|
10
|
+
"preferGlobal": true,
|
|
6
11
|
"author": "BeyteFlow (https://github.com/BeyteFlow)",
|
|
7
12
|
"license": "MIT",
|
|
8
|
-
"
|
|
9
|
-
"
|
|
13
|
+
"keywords": [
|
|
14
|
+
"javascript",
|
|
15
|
+
"nodejs",
|
|
16
|
+
"cli",
|
|
17
|
+
"error",
|
|
18
|
+
"debugging",
|
|
19
|
+
"stacktrace",
|
|
20
|
+
"developer-tools",
|
|
21
|
+
"terminal",
|
|
22
|
+
"diagnostics",
|
|
23
|
+
"productivity",
|
|
24
|
+
"devtools",
|
|
25
|
+
"error-handler"
|
|
26
|
+
],
|
|
27
|
+
"engines": {
|
|
28
|
+
"node": ">=18.0.0"
|
|
10
29
|
},
|
|
30
|
+
"files": [
|
|
31
|
+
"bin/",
|
|
32
|
+
"lib/",
|
|
33
|
+
"README.md",
|
|
34
|
+
"LICENSE"
|
|
35
|
+
],
|
|
11
36
|
"scripts": {
|
|
12
37
|
"test": "node --test test/**/*.test.js"
|
|
13
38
|
},
|
|
14
39
|
"repository": {
|
|
15
40
|
"type": "git",
|
|
16
|
-
"url": "
|
|
41
|
+
"url": "https://github.com/BeyteFlow/errlens.git"
|
|
17
42
|
},
|
|
18
43
|
"bugs": {
|
|
19
44
|
"url": "https://github.com/BeyteFlow/errlens/issues"
|
|
20
45
|
},
|
|
21
46
|
"homepage": "https://github.com/BeyteFlow/errlens#readme",
|
|
47
|
+
"funding": {
|
|
48
|
+
"type": "github",
|
|
49
|
+
"url": "https://github.com/sponsors/BeyteFlow"
|
|
50
|
+
},
|
|
22
51
|
"dependencies": {
|
|
23
52
|
"boxen": "^8.0.1",
|
|
24
53
|
"chalk": "^5.6.2",
|
package/.github/dependabot.yml
DELETED
|
@@ -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"
|
package/.github/labeler.yml
DELETED
|
@@ -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 }}
|
package/assets/errlens.png
DELETED
|
Binary file
|
package/assets/terminal.png
DELETED
|
Binary file
|