Skip to content

Commit

Permalink
chore: upgrade typescript eslint libraries (#765)
Browse files Browse the repository at this point in the history
  • Loading branch information
benmccann authored Nov 26, 2024
1 parent 9294054 commit b642159
Show file tree
Hide file tree
Showing 3 changed files with 119 additions and 176 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
"devDependencies": {
"@changesets/cli": "^2.26.2",
"@rollup/plugin-typescript": "^12.0.0",
"@typescript-eslint/eslint-plugin": "^7.0.0",
"@typescript-eslint/parser": "^7.0.0",
"@typescript-eslint/eslint-plugin": "^8.16.0",
"@typescript-eslint/parser": "^8.16.0",
"cross-env": "^7.0.3",
"eslint": "^8.57.0",
"eslint-config-prettier": "^9.0.0",
Expand Down
4 changes: 3 additions & 1 deletion packages/core/src/lib/metadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ declare module 'sharp' {
}

export function setMetadata(image: Sharp, key: string, value: unknown) {
image[METADATA] && (image[METADATA][key] = value)
if (image[METADATA]) {
image[METADATA][key] = value
}
}

export function getMetadata(image: Sharp, key: string) {
Expand Down
Loading

0 comments on commit b642159

Please sign in to comment.