Skip to content

Commit 8d7f04f

Browse files
committed
fix(core): Handle undefined image dimensions in local source
- Fixed TypeScript error in LocalSource by providing default values for width and height. - Bumped version to 1.0.6.
1 parent a6d2de2 commit 8d7f04f

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@munlicode/munliwall-root",
3-
"version": "1.0.5",
3+
"version": "1.0.6",
44
"description": "Desktop and CLI wallpaper tool",
55
"workspaces": [
66
"packages/*"

packages/core/src/sources/local.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ export class LocalSource implements ISource {
4343
source: this.name,
4444
author: 'Unknown', // Author is generally not available for local files
4545
tags: [folderPath.split(sep).pop() || 'local'], // Use folder name as a tag
46-
width: metadata.width,
47-
height: metadata.height,
46+
width: metadata.width ?? 0,
47+
height: metadata.height ?? 0,
4848
};
4949
}
5050
}

packages/desktop-app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@munlicode/munliwall-desktop",
3-
"version": "1.0.5",
3+
"version": "1.0.6",
44
"description": "A simple yet powerful tool designed to transform your workspace with ease. Wallpaper lets you effortlessly manage your desktop backgrounds — download stunning wallpapers, upload your own creations, or update your setup automatically.",
55
"author": "Nurzhan Murakhan <nurzhanmuratkhan@gmail.com>",
66
"homepage": "https://github.com/munlicode/munliwall",

0 commit comments

Comments
 (0)