Skip to content

Commit fa3275c

Browse files
authored
chore(deps): update dependency typescript to v5.5.3 (#8323)
1 parent d69c0fd commit fa3275c

File tree

6 files changed

+66
-72
lines changed

6 files changed

+66
-72
lines changed

.changeset/famous-cycles-walk.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"app-builder-lib": patch
3+
"electron-updater": patch
4+
---
5+
6+
chore(deps): update dependency typescript to v5.5.3

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"lint": "eslint packages --ext .ts",
1616
"lint-staged": "lint-staged",
1717
"lint-deps": "node ./test/out/helpers/checkDeps.js",
18-
"pretest": "pnpm lint && pnpm lint-deps",
18+
"pretest": "pnpm lint-deps && pnpm lint",
1919
"prettier": "prettier 'packages/**/*.{ts, js}' 'test/src/**/*.ts' --write",
2020
"///": "Please see https://github.com/electron-userland/electron-builder/blob/master/CONTRIBUTING.md#run-test-using-cli how to run particular test instead full (and very slow) run",
2121
"test": "node ./test/out/helpers/runTests.js skipArtifactPublisher",
@@ -68,7 +68,7 @@
6868
"replace-in-file": "6.2.0",
6969
"source-map-support": "0.5.21",
7070
"ts-jsdoc": "3.2.2",
71-
"typescript": "5.4.2",
71+
"typescript": "5.5.3",
7272
"typescript-json-schema": "0.63.0",
7373
"v8-compile-cache": "2.3.0"
7474
},

packages/app-builder-lib/src/codeSign/macCodeSign.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,11 @@ export async function createKeychain({ tmpDir, cscLink, cscKeyPassword, cscILink
197197
BluebirdPromise.map(certLinks, (link, i) => importCertificate(link, tmpDir, currentDir).then(it => (certPaths[i] = it))),
198198
BluebirdPromise.mapSeries(securityCommands, it => exec("/usr/bin/security", it)),
199199
])
200-
return await importCerts(keychainFile, certPaths, [cscKeyPassword, cscIKeyPassword].filter(it => it != null) as Array<string>)
200+
const cscPasswords: Array<string> = [cscKeyPassword]
201+
if (cscIKeyPassword) {
202+
cscPasswords.push(cscIKeyPassword)
203+
}
204+
return await importCerts(keychainFile, certPaths, cscPasswords)
201205
}
202206

203207
async function importCerts(keychainFile: string, paths: Array<string>, keyPasswords: Array<string>): Promise<CodeSigningInfo> {

packages/app-builder-lib/src/util/normalizePackageData.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -298,13 +298,13 @@ function depObjectify(deps: any): any {
298298
.filter(function (d) {
299299
return typeof d === "string"
300300
})
301-
.forEach(function (d) {
302-
d = d.trim().split(/(:?[@\s><=])/)
303-
const dn = d.shift()
304-
let dv = d.join("")
301+
.forEach(function (d: string) {
302+
const arr: string[] = d.trim().split(/(:?[@\s><=])/)
303+
const dn = arr.shift()
304+
let dv = arr.join("")
305305
dv = dv.trim()
306306
dv = dv.replace(/^@/, "")
307-
o[dn] = dv
307+
o[dn!] = dv
308308
})
309309
return o
310310
}

packages/electron-updater/src/RpmUpdater.ts

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,7 @@ export class RpmUpdater extends BaseUpdater {
3838
const packageManager = this.spawnSyncLog("which dnf || which yum")
3939
cmd = [packageManager, "-y", "install", upgradePath]
4040
} else {
41-
cmd = [
42-
packageManager,
43-
"--no-refresh",
44-
"install",
45-
"--allow-unsigned-rpm",
46-
"-y",
47-
"-f",
48-
upgradePath,
49-
]
41+
cmd = [packageManager, "--no-refresh", "install", "--allow-unsigned-rpm", "-y", "-f", upgradePath]
5042
}
5143
this.spawnSyncLog(sudo, [`${wrapper}/bin/bash`, "-c", `'${cmd.join(" ")}'${wrapper}`])
5244
if (options.isForceRunAfter) {

pnpm-lock.yaml

Lines changed: 47 additions & 55 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)