From 22a25ded9f7d9c9a96cce8d1bc12475ca0434201 Mon Sep 17 00:00:00 2001 From: Minteck Date: Wed, 9 Feb 2022 17:58:07 +0100 Subject: Major update --- node_modules/cheerio/lib/index.js | 81 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 81 insertions(+) create mode 100644 node_modules/cheerio/lib/index.js (limited to 'node_modules/cheerio/lib/index.js') diff --git a/node_modules/cheerio/lib/index.js b/node_modules/cheerio/lib/index.js new file mode 100644 index 0000000..98095d8 --- /dev/null +++ b/node_modules/cheerio/lib/index.js @@ -0,0 +1,81 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.root = exports.parseHTML = exports.merge = exports.contains = void 0; +var tslib_1 = require("tslib"); +/** + * Types used in signatures of Cheerio methods. + * + * @category Cheerio + */ +tslib_1.__exportStar(require("./types"), exports); +tslib_1.__exportStar(require("./load"), exports); +var load_1 = require("./load"); +/** + * The default cheerio instance. + * + * @deprecated Use the function returned by `load` instead. + */ +exports.default = load_1.load([]); +var staticMethods = tslib_1.__importStar(require("./static")); +/** + * In order to promote consistency with the jQuery library, users are encouraged + * to instead use the static method of the same name. + * + * @deprecated + * @example + * + * ```js + * const $ = cheerio.load('

'); + * + * $.contains($('div').get(0), $('p').get(0)); + * //=> true + * + * $.contains($('p').get(0), $('div').get(0)); + * //=> false + * ``` + * + * @returns {boolean} + */ +exports.contains = staticMethods.contains; +/** + * In order to promote consistency with the jQuery library, users are encouraged + * to instead use the static method of the same name. + * + * @deprecated + * @example + * + * ```js + * const $ = cheerio.load(''); + * + * $.merge([1, 2], [3, 4]); + * //=> [1, 2, 3, 4] + * ``` + */ +exports.merge = staticMethods.merge; +/** + * In order to promote consistency with the jQuery library, users are encouraged + * to instead use the static method of the same name as it is defined on the + * "loaded" Cheerio factory function. + * + * @deprecated See {@link static/parseHTML}. + * @example + * + * ```js + * const $ = cheerio.load(''); + * $.parseHTML('markup'); + * ``` + */ +exports.parseHTML = staticMethods.parseHTML; +/** + * Users seeking to access the top-level element of a parsed document should + * instead use the `root` static method of a "loaded" Cheerio function. + * + * @deprecated + * @example + * + * ```js + * const $ = cheerio.load(''); + * $.root(); + * ``` + */ +exports.root = staticMethods.root; -- cgit