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 0.6.0 to 0.6.1

1

helpers/movie.helper.d.ts

@@ -18,1 +18,2 @@ import { CSFDColorRating } from 'interfaces/global';

export declare const getType: (el: HTMLElement) => string;
export declare const getTags: (el: HTMLElement) => string[];
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getType = exports.getGroup = exports.parsePeople = exports.getDirectors = exports.getDescriptions = exports.getPoster = exports.getOtherTitles = exports.getYear = exports.getRating = exports.getColorRating = exports.getOrigins = exports.getGenres = exports.getTitle = exports.getId = void 0;
exports.getTags = exports.getType = exports.getGroup = exports.parsePeople = exports.getDirectors = exports.getDescriptions = exports.getPoster = exports.getOtherTitles = exports.getYear = exports.getRating = exports.getColorRating = exports.getOrigins = exports.getGenres = exports.getTitle = exports.getId = void 0;
const global_helper_1 = require("./global.helper");

@@ -100,1 +100,5 @@ exports.getId = (el) => {

};
exports.getTags = (el) => {
const tagsRaw = el.querySelectorAll('.tags .content a');
return tagsRaw.map((elem) => elem.text.trim());
};

@@ -10,2 +10,3 @@ import { CSFDScreening } from './global';

creators: CSFDCreators;
tags: string[];
}

@@ -12,0 +13,0 @@ export interface CSFDCreators {

6

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

@@ -11,3 +11,3 @@ "main": "./index.js",

"build": "tsc",
"postbuild": "ts-node scripts/dist-prepare",
"postbuild": "npm-prepare-dist",
"tsc": "tsc",

@@ -24,3 +24,3 @@ "demo": "ts-node demo",

"cross-fetch": "^3.0.6",
"node-html-parser": "^1.4.8"
"node-html-parser": "^1.4.9"
},

@@ -27,0 +27,0 @@ "repository": {

@@ -42,3 +42,4 @@ "use strict";

productionDesign: movie_helper_1.getGroup(el, 'Scénografie')
}
},
tags: movie_helper_1.getTags(el)
};

@@ -45,0 +46,0 @@ }

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