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 1.6.3 to 1.6.4

1

helpers/search.helper.d.ts
import { CSFDColorRating, CSFDFilmTypes } from 'interfaces/global';
import { CSFDCreator } from 'interfaces/movie.interface';
import { HTMLElement } from 'node-html-parser';
export declare const getId: (el: HTMLElement) => number;
export declare const getType: (el: HTMLElement) => CSFDFilmTypes;

@@ -6,0 +5,0 @@ export declare const getTitle: (el: HTMLElement) => string;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.parsePeople = exports.getOrigins = exports.getPoster = exports.getColorRating = exports.getUrl = exports.getYear = exports.getTitle = exports.getType = exports.getId = void 0;
exports.parsePeople = exports.getOrigins = exports.getPoster = exports.getColorRating = exports.getUrl = exports.getYear = exports.getTitle = exports.getType = void 0;
const global_helper_1 = require("./global.helper");
const getId = (el) => {
const url = el.querySelector('td.name .film-title-name').attributes.href;
return global_helper_1.parseIdFromUrl(url);
};
exports.getId = getId;
const getType = (el) => {

@@ -11,0 +6,0 @@ const type = el.querySelectorAll('.film-title-info .info')[1];

2

package.json
{
"name": "node-csfd-api",
"version": "1.6.3",
"version": "1.6.4",
"description": "Simple NPM library for scraping CSFD",

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