Skip to content

Commit

Permalink
chore(deps): upgrade @types/node to 18.x
Browse files Browse the repository at this point in the history
  • Loading branch information
bjoerge authored and rexxars committed Feb 14, 2024
1 parent 564c501 commit 64203be
Show file tree
Hide file tree
Showing 7 changed files with 111 additions and 112 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@
"@sanity/tsdoc": "1.0.0-alpha.38",
"@sanity/types": "3.25.0",
"@sanity/uuid": "^3.0.2",
"@types/node": "^14.18.9",
"@types/node": "^18.19.8",
"@types/react": "^18.2.37",
"@types/semver": "^7.5.6",
"@types/tmp": "^0.2.3",
Expand Down
2 changes: 1 addition & 1 deletion packages/@sanity/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
"@types/debug": "^4.1.7",
"@types/inquirer": "^6.0.0",
"@types/minimist": "^1.2.5",
"@types/node": "^14.18.9",
"@types/node": "^18.19.8",
"@types/semver": "^7.5.6",
"@types/semver-compare": "^1.0.1",
"@types/tar": "^6.1.3",
Expand Down
8 changes: 4 additions & 4 deletions packages/@sanity/cli/src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -247,10 +247,10 @@ function installUnhandledRejectionsHandler() {
})
}

function rejectionHasStack(
reason: Record<string, unknown> | null | undefined,
): reason is {stack: string} {
return Boolean(reason && 'stack' in reason && typeof reason.stack === 'string')
function rejectionHasStack(reason: unknown): reason is {stack: string} {
return Boolean(
reason && typeof reason === 'object' && 'stack' in reason && typeof reason.stack === 'string',
)
}

function warnOnInferredProjectDir(isInit: boolean, cwd: string, workDir: string): void {
Expand Down
2 changes: 1 addition & 1 deletion packages/@sanity/cli/src/util/createTelemetryStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ interface Env {
}

interface Options {
env: Env
env: Env | NodeJS.ProcessEnv
}

export type ConsentInformation =
Expand Down
2 changes: 1 addition & 1 deletion packages/@sanity/portable-text-editor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
"@types/express-ws": "^3.0.1",
"@types/is-hotkey": "^0.1.10",
"@types/lodash": "^4.14.149",
"@types/node": "^14.18.9",
"@types/node": "^18.19.8",
"@types/node-ipc": "^9.2.0",
"@types/react": "^18.2.37",
"@types/react-dom": "^18.2.15",
Expand Down
1 change: 1 addition & 0 deletions packages/sanity/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,7 @@
"@types/debug": "^4.1.12",
"@types/lodash": "^4.14.149",
"@types/log-symbols": "^2.0.0",
"@types/node": "^18.19.8",
"@types/raf": "^3.4.0",
"@types/refractor": "^3.0.0",
"@types/resolve-from": "^4.0.0",
Expand Down
Loading

0 comments on commit 64203be

Please sign in to comment.