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

scrapq

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

scrapq - npm Package Compare versions

Comparing version 1.3.1 to 1.3.2

4

dist/controls/if.d.ts

@@ -12,3 +12,3 @@ /// <reference types="cheerio" />

};
export declare const ifResolve: <T extends Query | import("../selectors/attr").Attr<any> | import("../selectors/exists").Exists<any> | import("../selectors/html").Html<any> | import("./list").List<any> | import("../selectors/select").Select<any> | If<any, any, any, any> | import("../selectors/text").Text<any> | import("../selectors/count").Count<any> | import("../selectors/link").Link<any>, F extends Query | import("../selectors/attr").Attr<any> | import("../selectors/exists").Exists<any> | import("../selectors/html").Html<any> | import("./list").List<any> | import("../selectors/select").Select<any> | If<any, any, any, any> | import("../selectors/text").Text<any> | import("../selectors/count").Count<any> | import("../selectors/link").Link<any>>($: CheerioStatic, context: Cheerio, queryType: If<T, F, TypeOf<T>, TypeOf<F>>, scrapQuery: ScrapQuery, ScrapSelector: ScrapSelector) => any;
export declare const ifResolve: <T extends import("../selectors/attr").Attr<any> | import("../selectors/exists").Exists<any> | import("../selectors/html").Html<any> | Query | import("./list").List<any> | import("../selectors/select").Select<any> | If<any, any, any, any> | import("../selectors/text").Text<any> | import("../selectors/count").Count<any> | import("../selectors/link").Link<any>, F extends import("../selectors/attr").Attr<any> | import("../selectors/exists").Exists<any> | import("../selectors/html").Html<any> | Query | import("./list").List<any> | import("../selectors/select").Select<any> | If<any, any, any, any> | import("../selectors/text").Text<any> | import("../selectors/count").Count<any> | import("../selectors/link").Link<any>>($: CheerioStatic, context: Cheerio, queryType: If<T, F, TypeOf<T>, TypeOf<F>>, scrapQuery: ScrapQuery, ScrapSelector: ScrapSelector) => any;
/**

@@ -19,2 +19,2 @@ * Get list of items

*/
export declare const ifCreator: <T extends Query | import("../selectors/attr").Attr<any> | import("../selectors/exists").Exists<any> | import("../selectors/html").Html<any> | import("./list").List<any> | import("../selectors/select").Select<any> | If<any, any, any, any> | import("../selectors/text").Text<any> | import("../selectors/count").Count<any> | import("../selectors/link").Link<any>, F extends Query | import("../selectors/attr").Attr<any> | import("../selectors/exists").Exists<any> | import("../selectors/html").Html<any> | import("./list").List<any> | import("../selectors/select").Select<any> | If<any, any, any, any> | import("../selectors/text").Text<any> | import("../selectors/count").Count<any> | import("../selectors/link").Link<any>>(selector: string, condition: (el: Cheerio) => boolean, truthy: T, falsey: F) => If<T, F, TypeOf<T>, TypeOf<F>>;
export declare const ifCreator: <T extends import("../selectors/attr").Attr<any> | import("../selectors/exists").Exists<any> | import("../selectors/html").Html<any> | Query | import("./list").List<any> | import("../selectors/select").Select<any> | If<any, any, any, any> | import("../selectors/text").Text<any> | import("../selectors/count").Count<any> | import("../selectors/link").Link<any>, F extends import("../selectors/attr").Attr<any> | import("../selectors/exists").Exists<any> | import("../selectors/html").Html<any> | Query | import("./list").List<any> | import("../selectors/select").Select<any> | If<any, any, any, any> | import("../selectors/text").Text<any> | import("../selectors/count").Count<any> | import("../selectors/link").Link<any>>(selector: string, condition: (el: Cheerio) => boolean, truthy: T, falsey: F) => If<T, F, TypeOf<T>, TypeOf<F>>;

@@ -18,2 +18,2 @@ /// <reference types="cheerio" />

*/
export declare const listCreator: <Q extends Query | import("../selectors/attr").Attr<any> | import("../selectors/exists").Exists<any> | import("../selectors/html").Html<any> | List<any> | import("../selectors/select").Select<any> | import("./if").If<any, any, any, any> | import("../selectors/text").Text<any> | import("../selectors/count").Count<any> | import("../selectors/link").Link<any>>(selector: string, data: Q, predicate?: ((el: Cheerio, index: number) => boolean) | undefined) => List<Q extends Query ? TypeOfQuery<Q> : Q extends Selector ? TypeOfSelector<Q> : never>;
export declare const listCreator: <Q extends import("../selectors/attr").Attr<any> | import("../selectors/exists").Exists<any> | import("../selectors/html").Html<any> | Query | List<any> | import("../selectors/select").Select<any> | import("./if").If<any, any, any, any> | import("../selectors/text").Text<any> | import("../selectors/count").Count<any> | import("../selectors/link").Link<any>>(selector: string, data: Q, predicate?: ((el: Cheerio, index: number) => boolean) | undefined) => List<Q extends Query ? TypeOfQuery<Q> : Q extends Selector ? TypeOfSelector<Q> : never>;
/// <reference types="cheerio" />
export { scrap } from './scrapper';
export { Query, Selector, TypeOfSelector, TypeOfQuery } from './types';
export { ScrapQuery, ScrapSelector, scrap } from './scrapper';
export { attrCreator as attr } from './selectors/attr';
export { existsCreator as exists } from './selectors/exists';
export { htmlCreator as html } from './selectors/html';
export { textCreator as text } from './selectors/text';
export { selectCreator as select } from "./selectors/select";
export { countCreator as count } from "./selectors/count";
export { linkCreator as link } from "./selectors/link";
export { listCreator as List } from './controls/list';
export { ifCreator as If } from './controls/if';
export { ScrapQuery, ScrapSelector } from './scrapper';
import { attrCreator as attr } from './selectors/attr';

@@ -21,4 +13,4 @@ import { existsCreator as exists } from './selectors/exists';

export declare const $: {
if: <T extends Query | import("./selectors/attr").Attr<any> | import("./selectors/exists").Exists<any> | import("./selectors/html").Html<any> | import("./controls/list").List<any> | import("./selectors/select").Select<any> | import("./controls/if").If<any, any, any, any> | import("./selectors/text").Text<any> | import("./selectors/count").Count<any> | import("./selectors/link").Link<any>, F extends Query | import("./selectors/attr").Attr<any> | import("./selectors/exists").Exists<any> | import("./selectors/html").Html<any> | import("./controls/list").List<any> | import("./selectors/select").Select<any> | import("./controls/if").If<any, any, any, any> | import("./selectors/text").Text<any> | import("./selectors/count").Count<any> | import("./selectors/link").Link<any>>(selector: string, condition: (el: Cheerio) => boolean, truthy: T, falsey: F) => import("./controls/if").If<T, F, import("./types").TypeOf<T>, import("./types").TypeOf<F>>;
list: <Q extends Query | import("./selectors/attr").Attr<any> | import("./selectors/exists").Exists<any> | import("./selectors/html").Html<any> | import("./controls/list").List<any> | import("./selectors/select").Select<any> | import("./controls/if").If<any, any, any, any> | import("./selectors/text").Text<any> | import("./selectors/count").Count<any> | import("./selectors/link").Link<any>>(selector: string, data: Q, predicate?: ((el: Cheerio, index: number) => boolean) | undefined) => import("./controls/list").List<Q extends Query ? TypeOfQuery<Q> : Q extends Selector ? TypeOfSelector<Q> : never>;
if: <T extends import("./selectors/attr").Attr<any> | import("./selectors/exists").Exists<any> | import("./selectors/html").Html<any> | Query | import("./controls/list").List<any> | import("./selectors/select").Select<any> | import("./controls/if").If<any, any, any, any> | import("./selectors/text").Text<any> | import("./selectors/count").Count<any> | import("./selectors/link").Link<any>, F extends import("./selectors/attr").Attr<any> | import("./selectors/exists").Exists<any> | import("./selectors/html").Html<any> | Query | import("./controls/list").List<any> | import("./selectors/select").Select<any> | import("./controls/if").If<any, any, any, any> | import("./selectors/text").Text<any> | import("./selectors/count").Count<any> | import("./selectors/link").Link<any>>(selector: string, condition: (el: Cheerio) => boolean, truthy: T, falsey: F) => import("./controls/if").If<T, F, import("./types").TypeOf<T>, import("./types").TypeOf<F>>;
list: <Q extends import("./selectors/attr").Attr<any> | import("./selectors/exists").Exists<any> | import("./selectors/html").Html<any> | Query | import("./controls/list").List<any> | import("./selectors/select").Select<any> | import("./controls/if").If<any, any, any, any> | import("./selectors/text").Text<any> | import("./selectors/count").Count<any> | import("./selectors/link").Link<any>>(selector: string, data: Q, predicate?: ((el: Cheerio, index: number) => boolean) | undefined) => import("./controls/list").List<Q extends Query ? TypeOfQuery<Q> : Q extends Selector ? TypeOfSelector<Q> : never>;
attr: typeof attr;

@@ -25,0 +17,0 @@ exists: typeof exists;

@@ -5,42 +5,23 @@ "use strict";

exports.scrap = scrapper_1.scrap;
// Export
// Import
var attr_1 = require("./selectors/attr");
exports.attr = attr_1.attrCreator;
var exists_1 = require("./selectors/exists");
exports.exists = exists_1.existsCreator;
var html_1 = require("./selectors/html");
exports.html = html_1.htmlCreator;
var text_1 = require("./selectors/text");
exports.text = text_1.textCreator;
var select_1 = require("./selectors/select");
exports.select = select_1.selectCreator;
var count_1 = require("./selectors/count");
exports.count = count_1.countCreator;
var link_1 = require("./selectors/link");
exports.link = link_1.linkCreator;
var list_1 = require("./controls/list");
exports.List = list_1.listCreator;
var if_1 = require("./controls/if");
exports.If = if_1.ifCreator;
// Import
var attr_2 = require("./selectors/attr");
var exists_2 = require("./selectors/exists");
var html_2 = require("./selectors/html");
var text_2 = require("./selectors/text");
var select_2 = require("./selectors/select");
var count_2 = require("./selectors/count");
var link_2 = require("./selectors/link");
var list_2 = require("./controls/list");
var if_2 = require("./controls/if");
exports.$ = {
if: if_2.ifCreator,
list: list_2.listCreator,
attr: attr_2.attrCreator,
exists: exists_2.existsCreator,
html: html_2.htmlCreator,
text: text_2.textCreator,
select: select_2.selectCreator,
count: count_2.countCreator,
link: link_2.linkCreator
if: if_1.ifCreator,
list: list_1.listCreator,
attr: attr_1.attrCreator,
exists: exists_1.existsCreator,
html: html_1.htmlCreator,
text: text_1.textCreator,
select: select_1.selectCreator,
count: count_1.countCreator,
link: link_1.linkCreator
};
//# sourceMappingURL=index.js.map

@@ -0,16 +1,6 @@

export { scrap } from './scrapper';
export { Query, Selector, TypeOfSelector, TypeOfQuery } from './types';
export { ScrapQuery, ScrapSelector, scrap } from './scrapper';
export { ScrapQuery, ScrapSelector } from './scrapper';
// Export
export { attrCreator as attr } from './selectors/attr';
export { existsCreator as exists } from './selectors/exists';
export { htmlCreator as html } from './selectors/html';
export { textCreator as text } from './selectors/text';
export { selectCreator as select } from "./selectors/select";
export { countCreator as count } from "./selectors/count";
export { linkCreator as link } from "./selectors/link";
export { listCreator as List } from './controls/list';
export { ifCreator as If } from './controls/if';
// Import

@@ -17,0 +7,0 @@ import { attrCreator as attr } from './selectors/attr';

{
"name": "scrapq",
"version": "1.3.1",
"version": "1.3.2",
"description": "Lightweight Typescript library for scrapping html",
"main": "./dist/index.js",
"typings": "./dist/Index.d.ts",
"typings": "./dist/index.d.ts",
"scripts": {

@@ -8,0 +8,0 @@ "test": "npm run test:basic && npm run test:exhaustive",

Sorry, the diff of this file is not supported yet

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