diff options
author | RaindropsSys <raindrops@equestria.dev> | 2023-11-17 23:25:29 +0100 |
---|---|---|
committer | RaindropsSys <raindrops@equestria.dev> | 2023-11-17 23:25:29 +0100 |
commit | 953ddd82e48dd206cef5ac94456549aed13b3ad5 (patch) | |
tree | 8f003106ee2e7f422e5a22d2ee04d0db302e66c0 /includes/external/addressbook/node_modules/cheerio/lib/parsers | |
parent | 62a9199846b0c07c03218703b33e8385764f42d9 (diff) | |
download | pluralconnect-953ddd82e48dd206cef5ac94456549aed13b3ad5.tar.gz pluralconnect-953ddd82e48dd206cef5ac94456549aed13b3ad5.tar.bz2 pluralconnect-953ddd82e48dd206cef5ac94456549aed13b3ad5.zip |
Updated 30 files and deleted 2976 files (automated)
Diffstat (limited to 'includes/external/addressbook/node_modules/cheerio/lib/parsers')
4 files changed, 0 insertions, 89 deletions
diff --git a/includes/external/addressbook/node_modules/cheerio/lib/parsers/parse5-adapter.d.ts b/includes/external/addressbook/node_modules/cheerio/lib/parsers/parse5-adapter.d.ts deleted file mode 100644 index 986a117..0000000 --- a/includes/external/addressbook/node_modules/cheerio/lib/parsers/parse5-adapter.d.ts +++ /dev/null @@ -1,20 +0,0 @@ -import { AnyNode, Document, ParentNode } from 'domhandler'; -import type { InternalOptions } from '../options.js'; -/** - * Parse the content with `parse5` in the context of the given `ParentNode`. - * - * @param content - The content to parse. - * @param options - A set of options to use to parse. - * @param isDocument - Whether to parse the content as a full HTML document. - * @param context - The context in which to parse the content. - * @returns The parsed content. - */ -export declare function parseWithParse5(content: string, options: InternalOptions, isDocument: boolean, context: ParentNode | null): Document; -/** - * Renders the given DOM tree with `parse5` and returns the result as a string. - * - * @param dom - The DOM tree to render. - * @returns The rendered document. - */ -export declare function renderWithParse5(dom: AnyNode | ArrayLike<AnyNode>): string; -//# sourceMappingURL=parse5-adapter.d.ts.map
\ No newline at end of file diff --git a/includes/external/addressbook/node_modules/cheerio/lib/parsers/parse5-adapter.d.ts.map b/includes/external/addressbook/node_modules/cheerio/lib/parsers/parse5-adapter.d.ts.map deleted file mode 100644 index 75ae2e2..0000000 --- a/includes/external/addressbook/node_modules/cheerio/lib/parsers/parse5-adapter.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"parse5-adapter.d.ts","sourceRoot":"https://raw.githubusercontent.com/cheeriojs/cheerio/d1cbc66d53392ce8bf6cd0068f675836372d2bf3/src/","sources":["parsers/parse5-adapter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAc,UAAU,EAAE,MAAM,YAAY,CAAC;AAGvE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAErD;;;;;;;;GAQG;AACH,wBAAgB,eAAe,CAC7B,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,eAAe,EACxB,UAAU,EAAE,OAAO,EACnB,OAAO,EAAE,UAAU,GAAG,IAAI,GACzB,QAAQ,CAaV;AAID;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,OAAO,GAAG,SAAS,CAAC,OAAO,CAAC,GAAG,MAAM,CAqB1E"}
\ No newline at end of file diff --git a/includes/external/addressbook/node_modules/cheerio/lib/parsers/parse5-adapter.js b/includes/external/addressbook/node_modules/cheerio/lib/parsers/parse5-adapter.js deleted file mode 100644 index 5851587..0000000 --- a/includes/external/addressbook/node_modules/cheerio/lib/parsers/parse5-adapter.js +++ /dev/null @@ -1,67 +0,0 @@ -"use strict"; -var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) { - if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { - if (ar || !(i in from)) { - if (!ar) ar = Array.prototype.slice.call(from, 0, i); - ar[i] = from[i]; - } - } - return to.concat(ar || Array.prototype.slice.call(from)); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.renderWithParse5 = exports.parseWithParse5 = void 0; -var domhandler_1 = require("domhandler"); -var parse5_1 = require("parse5"); -var parse5_htmlparser2_tree_adapter_1 = require("parse5-htmlparser2-tree-adapter"); -/** - * Parse the content with `parse5` in the context of the given `ParentNode`. - * - * @param content - The content to parse. - * @param options - A set of options to use to parse. - * @param isDocument - Whether to parse the content as a full HTML document. - * @param context - The context in which to parse the content. - * @returns The parsed content. - */ -function parseWithParse5(content, options, isDocument, context) { - var opts = { - scriptingEnabled: typeof options.scriptingEnabled === 'boolean' - ? options.scriptingEnabled - : true, - treeAdapter: parse5_htmlparser2_tree_adapter_1.adapter, - sourceCodeLocationInfo: options.sourceCodeLocationInfo, - }; - return isDocument - ? (0, parse5_1.parse)(content, opts) - : (0, parse5_1.parseFragment)(context, content, opts); -} -exports.parseWithParse5 = parseWithParse5; -var renderOpts = { treeAdapter: parse5_htmlparser2_tree_adapter_1.adapter }; -/** - * Renders the given DOM tree with `parse5` and returns the result as a string. - * - * @param dom - The DOM tree to render. - * @returns The rendered document. - */ -function renderWithParse5(dom) { - var _a; - /* - * `dom-serializer` passes over the special "root" node and renders the - * node's children in its place. To mimic this behavior with `parse5`, an - * equivalent operation must be applied to the input array. - */ - var nodes = 'length' in dom ? dom : [dom]; - for (var index = 0; index < nodes.length; index += 1) { - var node = nodes[index]; - if ((0, domhandler_1.isDocument)(node)) { - (_a = Array.prototype.splice).call.apply(_a, __spreadArray([nodes, index, 1], node.children, false)); - } - } - var result = ''; - for (var index = 0; index < nodes.length; index += 1) { - var node = nodes[index]; - result += (0, parse5_1.serializeOuter)(node, renderOpts); - } - return result; -} -exports.renderWithParse5 = renderWithParse5; -//# sourceMappingURL=parse5-adapter.js.map
\ No newline at end of file diff --git a/includes/external/addressbook/node_modules/cheerio/lib/parsers/parse5-adapter.js.map b/includes/external/addressbook/node_modules/cheerio/lib/parsers/parse5-adapter.js.map deleted file mode 100644 index d07e94e..0000000 --- a/includes/external/addressbook/node_modules/cheerio/lib/parsers/parse5-adapter.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"parse5-adapter.js","sourceRoot":"https://raw.githubusercontent.com/cheeriojs/cheerio/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