Skip to content

Commit 83c92f0

Browse files
authored
Merge pull request #11 from jflbr/decode-from-clipboard
feat: decode jwt from clipboard
2 parents a5e298c + bae22cf commit 83c92f0

11 files changed

Lines changed: 1640 additions & 990 deletions

File tree

.vscode/launch.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@
1515
],
1616
"outFiles": [
1717
"${workspaceFolder}/out/**/*.js"
18-
],
19-
"preLaunchTask": "npm: watch"
18+
]
2019
},
2120
{
2221
"name": "Extension Tests",
@@ -29,8 +28,7 @@
2928
],
3029
"outFiles": [
3130
"${workspaceFolder}/out/test/**/*.js"
32-
],
33-
"preLaunchTask": "npm: watch"
31+
]
3432
}
3533
]
3634
}

.vscode/tasks.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@
1515
"kind": "build",
1616
"isDefault": true
1717
}
18+
},
19+
{
20+
"type": "npm",
21+
"script": "compile",
22+
"problemMatcher": "$tsc",
23+
"group": "build"
1824
}
1925
]
2026
}

CHANGELOG.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,35 @@
33
All notable changes to the "jwt-decoder" extension will be documented in this file.
44

55
Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how to structure this file.
6+
7+
## [1.3.0] 2026-01-09
8+
### Added
9+
- Automatic clipboard detection for JWT tokens
10+
- When no text is selected, the extension automatically checks clipboard for valid JWT
11+
- Smart validation ensures only valid JWTs are auto-decoded
12+
- Seamless fallback to input box if clipboard doesn't contain a valid JWT
13+
- JWT validation function to verify token structure and format
14+
- Comprehensive test suite with 23 tests covering:
15+
- JWT token decoding functionality
16+
- JWT validation (valid/invalid tokens, edge cases)
17+
- Hover content management
18+
- Extension activation and command registration
19+
- Edge cases and error handling
20+
21+
### Changed
22+
- Updated all dependencies to latest versions to fix security vulnerabilities
23+
- Migrated from deprecated `vscode-test` to `@vscode/test-electron`
24+
- Upgraded to TypeScript 5.7.2
25+
- Upgraded to Mocha 10.8.2
26+
- Updated minimum VS Code engine to 1.85.0
27+
- Removed deprecated `tslint` package
28+
- Removed `activationEvents` from package.json (auto-generated by VS Code)
29+
30+
### Fixed
31+
- Resolved 18 security vulnerabilities (2 low, 5 moderate, 6 high, 5 critical)
32+
- Fixed deprecated glob API usage
33+
- Fixed Mocha configuration for latest version
34+
635
## [1.1.1] 2019-07-20
736
### Added
837
- GIF demo in README 🎉🎉

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ If you call the extension cammand against a `selected JWT string` from an Untitl
2222

2323
![](images/demo-from-untitled-document.gif)
2424

25-
### From input box to message box
25+
### From Clipboard or Input Box (fallback)
2626

27-
From any document, fire the extension command without text selection. Paste your JWT, hit enter and your decoded token will appear in a message box at the right bottom corner.
27+
From any document, fire the extension command without text selection. The extension will attempt to decode the clipboard value if it's a valid JWT. Otherwise, you'll be prompted to enter your JWT manually. The decoded token will appear in a message box at the right bottom corner.
2828

2929
![](images/demo-from-input-box.gif)

0 commit comments

Comments
 (0)