podverse-shared
Advanced tools
Comparing version 1.0.3 to 1.0.4
@@ -39,3 +39,3 @@ export declare type NowPlayingItem = { | ||
episodeLinkUrl: any; | ||
episodeMediaUrl: any; | ||
episodeMediaUrl: string | undefined; | ||
episodePubDate: any; | ||
@@ -42,0 +42,0 @@ episodeTitle: any; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var mostPopularMediaFileHosts_1 = require("./resources/mostPopularMediaFileHosts"); | ||
var cleanNowPlayingItemEpisodeMediaUrl = function (url) { | ||
if (url && url.indexOf('http://') === 0) { | ||
if (mostPopularMediaFileHosts_1.mostPopularMediaFileHosts.some(function (x) { return url.includes(x); })) { | ||
return url.replace('http://', 'https://'); | ||
} | ||
} | ||
return url; | ||
}; | ||
exports.cleanNowPlayingItem = function (item) { | ||
@@ -14,3 +23,3 @@ return { | ||
episodeLinkUrl: item.episodeLinkUrl, | ||
episodeMediaUrl: item.episodeMediaUrl, | ||
episodeMediaUrl: cleanNowPlayingItemEpisodeMediaUrl(item.episodeMediaUrl), | ||
episodePubDate: item.episodePubDate, | ||
@@ -17,0 +26,0 @@ episodeTitle: item.episodeTitle, |
{ | ||
"name": "podverse-shared", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "Helpers that are used across multiple Podverse modules", | ||
"main": "./dist/nowPlayingItem.js", | ||
"types": "./dist/nowPlayingItem.d.ts", | ||
"main": "./dist/index.js", | ||
"types": "./dist/index.d.ts", | ||
"scripts": { | ||
@@ -11,3 +11,5 @@ "test": "echo \"Error: no test specified\" && exit 1", | ||
}, | ||
"files": ["dist"], | ||
"files": [ | ||
"dist" | ||
], | ||
"repository": { | ||
@@ -14,0 +16,0 @@ "type": "git", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
50264
9
376
0