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

@iptv/playlist

Package Overview
Dependencies
Maintainers
0
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@iptv/playlist - npm Package Compare versions

Comparing version 1.0.1 to 1.1.0

1

dist/index.d.ts

@@ -8,2 +8,3 @@ export declare type M3uChannel = {

tvgRec?: string;
tvgChno?: string;
groupTitle?: string;

@@ -10,0 +11,0 @@ url?: string;

24

dist/playlist.js

@@ -15,3 +15,3 @@ const p = {

"url-tvg": "urlTvg"
}, x = 32, C = 35, $ = 61, O = 58, I = 44, T = 45, U = 49, b = 50, l = 51, L = 52, N = 53, M = 54, w = 55, E = 56, S = 57, y = 48, f = 10, D = 9, R = 13, u = 69, A = 88, v = 84, X = 73, j = 78, k = 70, q = 77, H = 72, z = 104, P = 85, Q = [
}, C = 32, x = 35, $ = 61, O = 58, I = 44, T = 45, U = 49, b = 50, l = 51, L = 52, N = 53, M = 54, w = 55, E = 56, S = 57, y = 48, f = 10, D = 9, R = 13, u = 69, A = 88, v = 84, X = 73, j = 78, k = 70, q = 77, H = 72, z = 104, P = 85, Q = [
y,

@@ -31,7 +31,7 @@ U,

const r = [], c = {};
let t = 0, o = {}, g = "", d = null;
let t = 0, o = {}, s = "", d = null;
for (; t < e.length; ) {
const a = e.charCodeAt(t);
if (a === x || a === D || a === R || a === f) {
t++, a === f && (g = "");
if (a === C || a === D || a === R || a === f) {
t++, a === f && (s = "");
continue;

@@ -42,4 +42,4 @@ }

if (i === -1 && (i = e.length), Q.includes(a)) {
let h = e.indexOf(" ", t), s = e.indexOf(",", t), n = h;
h > -1 && s > -1 && h > s && (n = s), n === -1 && (n = i), o.duration = parseInt(
let h = e.indexOf(" ", t), g = e.indexOf(",", t), n = h;
h > -1 && g > -1 && h > g && (n = g), n === -1 && (n = i), o.duration = parseInt(
e.slice(t, n),

@@ -50,3 +50,3 @@ 10

}
if (a === C)
if (a === x)
if (d = null, /* E */

@@ -85,3 +85,3 @@ e.charCodeAt(t + 1) === u && /* X */

const h = e.indexOf("=", t);
g = e.slice(
s = e.slice(
t,

@@ -94,3 +94,3 @@ h

t = t + 2;
const h = e.indexOf('"', t), s = e.slice(
const h = e.indexOf('"', t), g = e.slice(
t,

@@ -100,4 +100,4 @@ h

t = h;
const n = p[g];
n ? d === "header" ? c[n] = s : o[n] = s : (o.extras = o.extras || {}, o.extras[g] = s), g = "";
const n = p[s];
n ? d === "header" ? c[n] = g : o[n] = g : (o.extras = o.extras || {}, o.extras[s] = g), s = "";
}

@@ -116,3 +116,3 @@ t++;

if (r += `
#EXTINF:`, r += c != null && c.duration ? c.duration : "-1", c.tvgId && (r += ` tvg-id="${c.tvgId}"`), c.tvgName && (r += ` tvg-name="${c.tvgName}"`), c.tvgLanguage && (r += ` tvg-language="${c.tvgLanguage}"`), c.tvgLogo && (r += ` tvg-logo="${c.tvgLogo}"`), c.tvgRec && (r += ` tvg-rec="${c.tvgRec}"`), c.groupTitle && (r += ` group-title="${c.groupTitle}"`), c.tvgUrl && (r += ` tvg-url="${c.tvgUrl}"`), c.timeshift && (r += ` timeshift="${c.timeshift}"`), c.catchup && (r += ` catchup="${c.catchup}"`), c.catchupDays && (r += ` catchup-days="${c.catchupDays}"`), c.catchupSource && (r += ` catchup-source="${c.catchupSource}"`), c.extras)
#EXTINF:`, r += c != null && c.duration ? c.duration : "-1", c.tvgId && (r += ` tvg-id="${c.tvgId}"`), c.tvgName && (r += ` tvg-name="${c.tvgName}"`), c.tvgLanguage && (r += ` tvg-language="${c.tvgLanguage}"`), c.tvgLogo && (r += ` tvg-logo="${c.tvgLogo}"`), c.tvgRec && (r += ` tvg-rec="${c.tvgRec}"`), c.tvgChno && (r += ` tvg-chno="${c.tvgChno}"`), c.groupTitle && (r += ` group-title="${c.groupTitle}"`), c.tvgUrl && (r += ` tvg-url="${c.tvgUrl}"`), c.timeshift && (r += ` timeshift="${c.timeshift}"`), c.catchup && (r += ` catchup="${c.catchup}"`), c.catchupDays && (r += ` catchup-days="${c.catchupDays}"`), c.catchupSource && (r += ` catchup-source="${c.catchupSource}"`), c.extras)
for (const [t, o] of Object.entries(c.extras))

@@ -119,0 +119,0 @@ r += ` ${t}="${o}"`;

{
"name": "@iptv/playlist",
"description": "An extremely fast M3U playlist parser and generator for Node and the browser.",
"version": "1.0.1",
"version": "1.1.0",
"license": "MIT",

@@ -6,0 +6,0 @@ "author": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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