Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

podverse-shared

Package Overview
Dependencies
Maintainers
1
Versions
183
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

podverse-shared - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

dist/index.d.ts

2

dist/nowPlayingItem.d.ts

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc