Comparing version 1.0.0-0 to 1.0.0
@@ -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 @@ |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
8471
0
102
0