@yimingliao/cms 0.0.222 → 0.0.223

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -9,8 +9,8 @@ const buildOgImages = (url, alt, type, width, height) => {
9
9
  url,
10
10
  alt: alt ?? void 0,
11
11
  type: type ?? validType,
12
- width: width ?? 1200,
13
- height: height ?? 630
12
+ width: typeof width === "number" && width > 0 ? width : 1200,
13
+ height: typeof height === "number" && height > 0 ? height : 630
14
14
  }
15
15
  ];
16
16
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yimingliao/cms",
3
- "version": "0.0.222",
3
+ "version": "0.0.223",
4
4
  "author": "Yiming Liao",
5
5
  "license": "MIT",
6
6
  "type": "module",