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

node-csfd-api

Package Overview
Dependencies
Maintainers
0
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.8.0 to 2.9.0

3

helpers/creator.helper.js

@@ -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",

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