Skip to content

Commit 5e09d0a

Browse files
authored
fix(deps): resolve Dependabot security alerts (#10)
Update dependencies to fix 13 vulnerabilities (11 high, 2 moderate): - eslint 9.x -> 10.x (fixes minimatch, ajv transitive vulns) - typedoc 0.27.x -> 0.28.x (fixes minimatch transitive vuln) - @typhonjs-typedoc/typedoc-theme-dmt 0.3.x -> 0.4.x - @eslint/js 9.x -> 10.x - @typescript-eslint/* 8.54.0 -> 8.56.1 - typescript-eslint 8.54.0 -> 8.56.1 - turbo 2.8.3 -> 2.8.12 - lint-staged 16.2.7 -> 16.3.0 Add pnpm overrides for remaining transitive vulnerabilities: - rollup >=4.59.0 (path traversal) - glob>minimatch 10.2.3 (ReDoS) - markdown-it >=14.1.1 (ReDoS) Preserve error cause in PEM error handling (eslint 10 rule).
1 parent b54c604 commit 5e09d0a

File tree

4 files changed

+427
-671
lines changed

4 files changed

+427
-671
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
'@klever/connect': patch
3+
'@klever/connect-core': patch
4+
'@klever/connect-crypto': patch
5+
'@klever/connect-encoding': patch
6+
'@klever/connect-provider': patch
7+
'@klever/connect-transactions': patch
8+
'@klever/connect-contracts': patch
9+
'@klever/connect-wallet': patch
10+
'@klever/connect-react': patch
11+
---
12+
13+
Fix Dependabot security alerts by updating dependencies and resolving vulnerabilities in transitive packages

package.json

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -39,31 +39,34 @@
3939
},
4040
"devDependencies": {
4141
"@changesets/cli": "^2.29.8",
42-
"@eslint/js": "^9.39.2",
42+
"@eslint/js": "^10.0.1",
4343
"@types/node": "^24.10.10",
44-
"@typescript-eslint/eslint-plugin": "^8.54.0",
45-
"@typescript-eslint/parser": "^8.54.0",
46-
"@typhonjs-typedoc/typedoc-theme-dmt": "^0.3.1",
44+
"@typescript-eslint/eslint-plugin": "^8.56.1",
45+
"@typescript-eslint/parser": "^8.56.1",
46+
"@typhonjs-typedoc/typedoc-theme-dmt": "^0.4.0",
4747
"@vitest/ui": "^3.2.4",
48-
"eslint": "^9.39.2",
48+
"eslint": "^10.0.2",
4949
"eslint-config-prettier": "^10.1.8",
5050
"husky": "^9.1.7",
51-
"lint-staged": "^16.2.7",
51+
"lint-staged": "^16.3.0",
5252
"prettier": "^3.8.1",
5353
"protobufjs": "^7.5.4",
5454
"protobufjs-cli": "^1.2.0",
5555
"tsup": "^8.5.1",
56-
"turbo": "^2.8.3",
57-
"typedoc": "0.27.9",
56+
"turbo": "^2.8.12",
57+
"typedoc": "^0.28.17",
5858
"typescript": "^5.9.3",
59-
"typescript-eslint": "^8.54.0",
59+
"typescript-eslint": "^8.56.1",
6060
"vite": "^7.3.1",
6161
"vitest": "^3.2.4"
6262
},
6363
"pnpm": {
6464
"overrides": {
6565
"glob": ">=13.0.1",
66-
"@isaacs/brace-expansion": ">=5.0.1"
66+
"@isaacs/brace-expansion": ">=5.0.1",
67+
"rollup": ">=4.59.0",
68+
"glob>minimatch": "10.2.3",
69+
"markdown-it": ">=14.1.1"
6770
}
6871
}
6972
}

packages/connect-crypto/src/pem.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ function parsePemBlocks(content: string): PemBlock[] {
6666
currentBlock.bytes = bytes
6767
blocks.push(currentBlock as PemBlock)
6868
} catch (error) {
69-
throw new Error(`Invalid data in PEM block: ${String(error)}`)
69+
throw new Error(`Invalid data in PEM block: ${String(error)}`, { cause: error })
7070
}
7171

7272
inBlock = false
@@ -190,7 +190,7 @@ async function decryptPemBlock(block: PemBlock, password: string): Promise<PemBl
190190
bytes: new Uint8Array(plaintext),
191191
}
192192
} catch (error) {
193-
throw new Error(`Failed to decrypt PEM block: ${String(error)}`)
193+
throw new Error(`Failed to decrypt PEM block: ${String(error)}`, { cause: error })
194194
}
195195
}
196196

@@ -395,6 +395,6 @@ export async function loadPrivateKeyFromPemFile(
395395
const content = await fs.readFile(filePath, 'utf-8')
396396
return loadPrivateKeyFromPem(content, options)
397397
} catch (error) {
398-
throw new Error(`Failed to read PEM file: ${String(error)}`)
398+
throw new Error(`Failed to read PEM file: ${String(error)}`, { cause: error })
399399
}
400400
}

0 commit comments

Comments
 (0)