Compare commits

...
2 Commits
Author SHA1 Message Date
abdullahalam123 89f422b2af Release v1.1.3 2025-10-24 23:31:30 +05:30
abdullahalam123 12753349ec fix(decrypt): remove redundant password trim check and empty file condition
test(pdf-tools): update expected tool count to 41
2025-10-24 23:31:25 +05:30
3 changed files with 4 additions and 4 deletions

No files matched your search

+1 -1
View File
@@ -1,7 +1,7 @@
{ {
"name": "bento-pdf", "name": "bento-pdf",
"private": true, "private": true,
"version": "1.1.2", "version": "1.1.3",
"license": "Apache-2.0", "license": "Apache-2.0",
"type": "module", "type": "module",
"scripts": { "scripts": {
+2 -2
View File
@@ -12,7 +12,7 @@ export async function decrypt() {
document.getElementById('password-input') as HTMLInputElement document.getElementById('password-input') as HTMLInputElement
)?.value; )?.value;
if (!password?.trim()) { if (!password) {
showAlert('Input Required', 'Please enter the PDF password.'); showAlert('Input Required', 'Please enter the PDF password.');
return; return;
} }
@@ -52,7 +52,7 @@ export async function decrypt() {
showLoader('Preparing download...'); showLoader('Preparing download...');
const outputFile = qpdf.FS.readFile(outputPath, { encoding: 'binary' }); const outputFile = qpdf.FS.readFile(outputPath, { encoding: 'binary' });
if (!outputFile || outputFile.length === 0) { if (outputFile.length === 0) {
throw new Error('Decryption resulted in an empty file.'); throw new Error('Decryption resulted in an empty file.');
} }
+1 -1
View File
@@ -19,7 +19,7 @@ describe('Tool Configuration Arrays', () => {
it('should have the correct number of tools', () => { it('should have the correct number of tools', () => {
// This acts as a snapshot test to catch unexpected additions/removals. // This acts as a snapshot test to catch unexpected additions/removals.
expect(singlePdfLoadTools).toHaveLength(40); expect(singlePdfLoadTools).toHaveLength(41);
}); });
it('should not contain any duplicate tools', () => { it('should not contain any duplicate tools', () => {