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

node-csfd-api

Package Overview
Dependencies
Maintainers
1
Versions
104
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-csfd-api - npm Package Compare versions

Comparing version 2.7.2 to 2.7.3

13

helpers/movie.helper.js

@@ -31,5 +31,6 @@ "use strict";

const ratingRaw = el.querySelector('.film-rating-average').textContent;
const rating = +(ratingRaw === null || ratingRaw === void 0 ? void 0 : ratingRaw.replace(/%/g, '').trim());
if (Number.isInteger(rating)) {
return rating;
const rating = ratingRaw === null || ratingRaw === void 0 ? void 0 : ratingRaw.replace(/%/g, '').trim();
const ratingInt = parseInt(rating);
if (Number.isInteger(ratingInt)) {
return ratingInt;
}

@@ -94,3 +95,6 @@ else {

const namesNode = el.querySelectorAll('.film-names li');
return namesNode.map((el) => {
if (!namesNode.length) {
return [];
}
const titlesOther = namesNode.map((el) => {
const country = el.querySelector('img.flag').attributes.alt;

@@ -108,2 +112,3 @@ const title = el.textContent.trim().split('\n')[0];

});
return titlesOther.filter((x) => x);
};

@@ -110,0 +115,0 @@ exports.getTitlesOther = getTitlesOther;

{
"name": "node-csfd-api",
"version": "2.7.2",
"version": "2.7.3",
"description": "ČSFD API in JavaScript. Amazing NPM library for scrapping csfd.cz :)",

@@ -5,0 +5,0 @@ "main": "./index.js",

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