Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 16 additions & 16 deletions bun.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@
"prepare": "husky"
},
"devDependencies": {
"@biomejs/biome": "^2.5.2",
"@biomejs/biome": "^2.5.3",
"@types/bun": "latest",
"@types/mocha": "^10.0.10",
"@types/sinon": "^22.0.0",
Expand All @@ -362,10 +362,10 @@
},
"dependencies": {
"p-map": "^7.0.5",
"posthog-node": "^5.39.4",
"posthog-node": "^5.41.0",
"tinytar": "^0.1.0",
"toml": "^4.1.2",
"web-tree-sitter": "^0.26.10"
"toml": "^4.3.0",
"web-tree-sitter": "^0.26.11"
},
"lint-staged": {
"**/*.{ts,js,mjs,json}": [
Expand Down
6 changes: 3 additions & 3 deletions scripts/prepare-release.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -174,11 +174,11 @@ if (
}

export {
parseVersion,
bumpVersion,
getCurrentVersion,
updateVersionFile,
updateChangelog,
getReleaseNotesBody,
parseVersion,
resolveDate,
updateChangelog,
updateVersionFile,
}
2 changes: 1 addition & 1 deletion src/core/extractors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ export function collectRecognizedNames(nodesByType: Map<string, Node[]>): {
// Add aliases from "from fastapi import X as Y" imports
for (const node of nodesByType.get("import_from_statement") ?? []) {
const info = importExtractor(node)
if (!info || info.modulePath !== "fastapi") continue
if (info?.modulePath !== "fastapi") continue
for (const named of info.namedImports) {
if (named.alias === null) continue
if (named.name === "FastAPI") fastAPINames.add(named.alias)
Expand Down
6 changes: 3 additions & 3 deletions src/test/cloud/api.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ suite("cloud/api", () => {
assert.strictEqual(url, `${DEFAULT_BASE_URL}/login/device/authorization`)
assert.strictEqual(options?.method, "POST")
assert.ok(
(options?.headers as Record<string, string>)["Content-Type"]?.includes(
"x-www-form-urlencoded",
),
(options?.headers as Record<string, string> | undefined)?.[
"Content-Type"
]?.includes("x-www-form-urlencoded"),
)
})

Expand Down
2 changes: 1 addition & 1 deletion src/utils/telemetry/vscode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ export async function getInstalledVersions(
const pythonExtension = vscode.extensions.getExtension("ms-python.python")

// Don't activate the extension just for telemetry - only use it if already active
if (!pythonExtension || !pythonExtension.isActive) {
if (!pythonExtension?.isActive) {
return {}
}

Expand Down
Loading