New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

eztv

Package Overview
Dependencies
Maintainers
2
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eztv - npm Package Compare versions

Comparing version 1.0.0-0 to 1.0.0

12

lib/index.js

@@ -32,3 +32,3 @@ "use strict";

const regex = url.match(/\/shows\/(\d+)\/([^\/]+)/);
const regex = url.match(/\/shows\/(\d+)\/([^/]+)/);

@@ -39,3 +39,3 @@ if (!regex) {

const id = parseInt(regex[1]);
const id = Number(regex[1]);
const slug = regex[2];

@@ -92,3 +92,3 @@ const title = $(e).find('td').eq(0).text();

const urlRegex = url.match(/\/ep\/(\d+)\/.*/);
const id = urlRegex ? parseInt(urlRegex[1]) : undefined;
const id = urlRegex ? Number(urlRegex[1]) : undefined;
const episodeTitle = $(e).find('td').eq(1).find('a').text();

@@ -102,5 +102,5 @@ const titleRegex = episodeTitle.match(/(.+) s?(\d+)[ex](\d+)(e(\d+))?(.*)/i);

const show = titleRegex[1];
const seasonNumber = parseInt(titleRegex[2]);
const episodeNumber = parseInt(titleRegex[3]);
const episodeNumber2 = parseInt(titleRegex[5]);
const seasonNumber = Number(titleRegex[2]);
const episodeNumber = Number(titleRegex[3]);
const episodeNumber2 = Number(titleRegex[5]);
const extra = titleRegex[6].trim();

@@ -107,0 +107,0 @@ const proper = extra.toLowerCase().includes('proper');

{
"name": "eztv",
"version": "1.0.0-0",
"version": "1.0.0",
"description": "EZTV API",

@@ -43,4 +43,4 @@ "keywords": [

"spec": "jest .",
"test": "yarn build && jest ."
"test": "yarn lint && yarn build && jest ."
}
}
eztv
========
====
EZTV API module for Node.js

@@ -25,6 +25,8 @@

const [firstEpisode] = await eztv.getShowEpisodes(376, 'sherlock');
console.log(firstEpisode);
const showWithEpisodes = await eztv.getShowEpisodes(376, 'sherlock');
console.log(showWithEpisodes.episodes);
```
See [here](https://github.com/amilajack/node-eztv-example) for a clonable and runnable example repo
#### `getShow(options)`

@@ -31,0 +33,0 @@

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