node-csfd-api
Advanced tools
Comparing version 2.1.1-next.0 to 2.2.0-next.0
@@ -129,7 +129,5 @@ "use strict"; | ||
const getDescriptions = (el) => { | ||
var _a; | ||
// TODO more plots | ||
const plot = (_a = el | ||
.querySelector('.body--plots .plot-full p')) === null || _a === void 0 ? void 0 : _a.textContent.trim().replace(/(\r\n|\n|\r|\t)/gm, ''); | ||
return plot ? [plot] : []; | ||
return el | ||
.querySelectorAll('.body--plots .plot-full p, .body--plots .plots .plots-item p') | ||
.map((movie) => { var _a; return (_a = movie.textContent) === null || _a === void 0 ? void 0 : _a.trim().replace(/(\r\n|\n|\r|\t)/gm, ''); }); | ||
}; | ||
@@ -136,0 +134,0 @@ exports.getDescriptions = getDescriptions; |
{ | ||
"name": "node-csfd-api", | ||
"version": "2.1.1-next.0", | ||
"version": "2.2.0-next.0", | ||
"description": "ČSFD API in JavaScript. Amazing NPM library for scrapping csfd.cz :)", | ||
@@ -5,0 +5,0 @@ "main": "./index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
59877
1084