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
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"lint-staged": "^16.4.0",
"rimraf": "^6.1.4",
"simple-git-hooks": "^2.14.0",
"typescript-eslint": "^8.72.2"
"typescript-eslint": "^8.74.0"
},
"simple-git-hooks": {
"commit-msg": "pnpm exec commitlint --edit",
Expand All @@ -36,7 +36,7 @@
"devEngines": {
"packageManager": {
"name": "pnpm",
"version": "12.21.0",
"version": "12.23.0",
"onFail": "download"
}
}
Expand Down
12 changes: 6 additions & 6 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@
"homepage": "https://github.com/checkly/checkly-cli#readme",
"dependencies": {
"@oclif/core": "^5.1.12",
"@oclif/plugin-help": "^7.0.8",
"@oclif/plugin-help": "^7.0.10",
"@oclif/plugin-warn-if-update-available": "^4.0.5",
"acorn": "^8.19.0",
"acorn-walk": "^8.3.5",
Expand All @@ -139,17 +139,17 @@
"glob": "^14.0.6",
"http-proxy-agent": "^9.1.0",
"https-proxy-agent": "^9.1.0",
"indent-string": "^5.0.0",
"indent-string": "^6.0.0",
"jiti": "^2.7.0",
"json-stream-stringify": "^3.1.7",
"json5": "^2.2.3",
"jwt-decode": "^4.0.0",
"log-symbols": "^7.0.1",
"luxon": "^3.7.2",
"minimatch": "^11.0.8",
"minimatch": "^11.0.9",
"mqtt": "^5.16.1",
"open": "^11.0.4",
"oxc-parser": "0.158.0",
"oxc-parser": "0.160.0",
"p-queue": "^10.0.0",
"prompts": "^2.4.2",
"proxy-from-env": "^2.1.0",
Expand All @@ -169,8 +169,8 @@
"@types/prompts": "^2.4.9",
"@types/semver": "^7.8.0",
"@types/ws": "^8.18.2",
"@typescript-eslint/types": "^8.72.2",
"@typescript-eslint/typescript-estree": "^8.72.2",
"@typescript-eslint/types": "^8.74.0",
"@typescript-eslint/typescript-estree": "^8.74.0",
"config": "^5.0.1",
"cross-env": "^10.1.0",
"nanoid": "^6.0.2",
Expand Down
6 changes: 3 additions & 3 deletions packages/cli/src/services/write-back/helper-edit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -310,8 +310,8 @@ export function isReplaceableByHelper (node: Node, locals: ReadonlySet<string>):
if (node.type === 'ObjectExpression') {
return node.properties.every(property =>
memberName(property) !== undefined
&& !(property as TSESTree.Property).shorthand
&& isReplaceableByHelper((property as TSESTree.Property).value, locals))
&& !(property as TSESTree.ObjectExpressionProperty).shorthand
&& isReplaceableByHelper((property as TSESTree.ObjectExpressionProperty).value, locals))
}
return false
}
Expand Down Expand Up @@ -436,7 +436,7 @@ export function matchesValue (node: Node, value: Value, locals: ReadonlyMap<stri
}
return value.value.every(property => {
const member = node.properties.find(candidate => memberName(candidate) === property.name) as
TSESTree.Property | undefined
TSESTree.ObjectExpressionProperty | undefined
return member !== undefined && !member.shorthand && matchesValue(member.value, property.value, locals)
})
}
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/services/write-back/literal-edit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export interface SourceStyle {
}

type ObjectNode = TSESTree.ObjectExpression
type PropertyNode = TSESTree.Property
type PropertyNode = TSESTree.ObjectExpressionProperty

export type Resolution =
| { kind: 'found', node: Node, parent: ObjectNode | TSESTree.ArrayExpression }
Expand Down
6 changes: 3 additions & 3 deletions packages/cli/src/services/write-back/source-file.ts
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ export function findConstructVariable (
}

/** The name of a plain `key: value` member, or undefined for a spread, method, accessor or computed key. */
export function memberName (property: TSESTree.Property | TSESTree.SpreadElement): string | undefined {
export function memberName (property: TSESTree.ObjectExpressionProperty | TSESTree.SpreadElement): string | undefined {
if (property.type !== 'Property' || property.computed || property.kind !== 'init' || property.method) {
return undefined
}
Expand Down Expand Up @@ -451,7 +451,7 @@ export function spelledOutPaths (options: TSESTree.ObjectExpression): Set<string
const keyProperty = unwrappedElement.properties.find(property => memberName(property) === 'key')
const key = keyProperty === undefined
? undefined
: stringOf(unwrapped((keyProperty as TSESTree.Property).value))
: stringOf(unwrapped((keyProperty as TSESTree.ObjectExpressionProperty).value))
if (key !== undefined) {
visitObject(unwrappedElement, `${path}[${key}]`)
}
Expand All @@ -466,7 +466,7 @@ export function spelledOutPaths (options: TSESTree.ObjectExpression): Set<string
}
const path = prefix === '' ? name : `${prefix}.${name}`
paths.add(path)
visitValue((property as TSESTree.Property).value, path)
visitValue((property as TSESTree.ObjectExpressionProperty).value, path)
}
}
visitObject(options, '')
Expand Down
2 changes: 1 addition & 1 deletion packages/create-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
"homepage": "https://github.com/checkly/checkly-cli#readme",
"dependencies": {
"@oclif/core": "^5.1.12",
"@oclif/plugin-help": "^7.0.8",
"@oclif/plugin-help": "^7.0.10",
"@oclif/plugin-warn-if-update-available": "^4.0.5",
"axios": "^1.21.1",
"chalk": "^6.0.1",
Expand Down
Loading