summaryrefslogtreecommitdiff
path: root/includes/external/addressbook/node_modules/htmlparser2/lib/esm/index.js
diff options
context:
space:
mode:
authorRaindropsSys <raindrops@equestria.dev>2023-11-17 23:25:29 +0100
committerRaindropsSys <raindrops@equestria.dev>2023-11-17 23:25:29 +0100
commit953ddd82e48dd206cef5ac94456549aed13b3ad5 (patch)
tree8f003106ee2e7f422e5a22d2ee04d0db302e66c0 /includes/external/addressbook/node_modules/htmlparser2/lib/esm/index.js
parent62a9199846b0c07c03218703b33e8385764f42d9 (diff)
downloadpluralconnect-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/htmlparser2/lib/esm/index.js')
-rw-r--r--includes/external/addressbook/node_modules/htmlparser2/lib/esm/index.js62
1 files changed, 0 insertions, 62 deletions
diff --git a/includes/external/addressbook/node_modules/htmlparser2/lib/esm/index.js b/includes/external/addressbook/node_modules/htmlparser2/lib/esm/index.js
deleted file mode 100644
index 949c914..0000000
--- a/includes/external/addressbook/node_modules/htmlparser2/lib/esm/index.js
+++ /dev/null
@@ -1,62 +0,0 @@
-import { Parser } from "./Parser.js";
-export { Parser } from "./Parser.js";
-import { DomHandler, } from "domhandler";
-export { DomHandler,
-// Old name for DomHandler
-DomHandler as DefaultHandler, } from "domhandler";
-// Helper methods
-/**
- * Parses the data, returns the resulting document.
- *
- * @param data The data that should be parsed.
- * @param options Optional options for the parser and DOM builder.
- */
-export function parseDocument(data, options) {
- const handler = new DomHandler(undefined, options);
- new Parser(handler, options).end(data);
- return handler.root;
-}
-/**
- * Parses data, returns an array of the root nodes.
- *
- * Note that the root nodes still have a `Document` node as their parent.
- * Use `parseDocument` to get the `Document` node instead.
- *
- * @param data The data that should be parsed.
- * @param options Optional options for the parser and DOM builder.
- * @deprecated Use `parseDocument` instead.
- */
-export function parseDOM(data, options) {
- return parseDocument(data, options).children;
-}
-/**
- * Creates a parser instance, with an attached DOM handler.
- *
- * @param callback A callback that will be called once parsing has been completed.
- * @param options Optional options for the parser and DOM builder.
- * @param elementCallback An optional callback that will be called every time a tag has been completed inside of the DOM.
- */
-export function createDomStream(callback, options, elementCallback) {
- const handler = new DomHandler(callback, options, elementCallback);
- return new Parser(handler, options);
-}
-export { default as Tokenizer, } from "./Tokenizer.js";
-/*
- * All of the following exports exist for backwards-compatibility.
- * They should probably be removed eventually.
- */
-export * as ElementType from "domelementtype";
-import { getFeed } from "domutils";
-export { getFeed } from "domutils";
-const parseFeedDefaultOptions = { xmlMode: true };
-/**
- * Parse a feed.
- *
- * @param feed The feed that should be parsed, as a string.
- * @param options Optionally, options for parsing. When using this, you should set `xmlMode` to `true`.
- */
-export function parseFeed(feed, options = parseFeedDefaultOptions) {
- return getFeed(parseDOM(feed, options));
-}
-export * as DomUtils from "domutils";
-//# sourceMappingURL=index.js.map \ No newline at end of file