podcast-dl 11.1.1 → 11.1.2

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.
Files changed (2) hide show
  1. package/bin/util.js +3 -3
  2. package/package.json +2 -2
package/bin/util.js CHANGED
@@ -208,15 +208,15 @@ export const getEpisodeAudioUrlAndExt = (
208
208
  };
209
209
 
210
210
  export const getImageUrl = ({ image, itunes }) => {
211
- if (image?.url) {
211
+ if (image?.url && typeof image.url === "string") {
212
212
  return image.url;
213
213
  }
214
214
 
215
- if (image?.link) {
215
+ if (image?.link && typeof image.link === "string") {
216
216
  return image.link;
217
217
  }
218
218
 
219
- if (itunes?.image) {
219
+ if (itunes?.image && typeof itunes.image === "string") {
220
220
  return itunes.image;
221
221
  }
222
222
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "podcast-dl",
3
- "version": "11.1.1",
3
+ "version": "11.1.2",
4
4
  "description": "A CLI for downloading podcasts.",
5
5
  "type": "module",
6
6
  "bin": "./bin/bin.js",
@@ -38,7 +38,7 @@
38
38
  "author": "Joshua Pohl",
39
39
  "license": "MIT",
40
40
  "devDependencies": {
41
- "@yao-pkg/pkg": "^5.8.0",
41
+ "@yao-pkg/pkg": "^6.6.0",
42
42
  "eslint": "^6.8.0",
43
43
  "eslint-config-prettier": "^6.11.0",
44
44
  "husky": "^4.2.5",