node-csfd-api
Advanced tools
Comparing version 2.8.0 to 2.9.0
@@ -38,3 +38,4 @@ "use strict"; | ||
const getBio = (el) => { | ||
return el.querySelector('.article-content p').text.trim().split('\n')[0].trim(); | ||
var _a; | ||
return ((_a = el.querySelector('.article-content p')) === null || _a === void 0 ? void 0 : _a.text.trim().split('\n')[0].trim()) || null; | ||
}; | ||
@@ -41,0 +42,0 @@ exports.getBio = getBio; |
@@ -33,5 +33,7 @@ "use strict"; | ||
const getOrigins = (el) => { | ||
var _a; | ||
const originsRaw = el.querySelector('.article-content p .info').text; | ||
const originsAll = (_a = originsRaw === null || originsRaw === void 0 ? void 0 : originsRaw.split(', ')) === null || _a === void 0 ? void 0 : _a[0]; | ||
var _a, _b; | ||
const originsRaw = (_a = el.querySelector('.article-content p .info')) === null || _a === void 0 ? void 0 : _a.text; | ||
if (!originsRaw) | ||
return []; | ||
const originsAll = (_b = originsRaw === null || originsRaw === void 0 ? void 0 : originsRaw.split(', ')) === null || _b === void 0 ? void 0 : _b[0]; | ||
return originsAll === null || originsAll === void 0 ? void 0 : originsAll.split('/').map((country) => country.trim()); | ||
@@ -38,0 +40,0 @@ }; |
{ | ||
"name": "node-csfd-api", | ||
"version": "2.8.0", | ||
"version": "2.9.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
65700
1182