commit
This commit is contained in:
parent
be4fd23bcf
commit
0bd53741af
728 changed files with 86573 additions and 0 deletions
11
node_modules/domelementtype/LICENSE
generated
vendored
Normal file
11
node_modules/domelementtype/LICENSE
generated
vendored
Normal file
|
@ -0,0 +1,11 @@
|
|||
Copyright (c) Felix Böhm
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
||||
|
||||
Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
||||
|
||||
Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
|
||||
THIS IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS,
|
||||
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
48
node_modules/domelementtype/lib/esm/index.d.ts
generated
vendored
Normal file
48
node_modules/domelementtype/lib/esm/index.d.ts
generated
vendored
Normal file
|
@ -0,0 +1,48 @@
|
|||
/** Types of elements found in htmlparser2's DOM */
|
||||
export declare enum ElementType {
|
||||
/** Type for the root element of a document */
|
||||
Root = "root",
|
||||
/** Type for Text */
|
||||
Text = "text",
|
||||
/** Type for <? ... ?> */
|
||||
Directive = "directive",
|
||||
/** Type for <!-- ... --> */
|
||||
Comment = "comment",
|
||||
/** Type for <script> tags */
|
||||
Script = "script",
|
||||
/** Type for <style> tags */
|
||||
Style = "style",
|
||||
/** Type for Any tag */
|
||||
Tag = "tag",
|
||||
/** Type for <![CDATA[ ... ]]> */
|
||||
CDATA = "cdata",
|
||||
/** Type for <!doctype ...> */
|
||||
Doctype = "doctype"
|
||||
}
|
||||
/**
|
||||
* Tests whether an element is a tag or not.
|
||||
*
|
||||
* @param elem Element to test
|
||||
*/
|
||||
export declare function isTag(elem: {
|
||||
type: ElementType;
|
||||
}): boolean;
|
||||
/** Type for the root element of a document */
|
||||
export declare const Root = ElementType.Root;
|
||||
/** Type for Text */
|
||||
export declare const Text = ElementType.Text;
|
||||
/** Type for <? ... ?> */
|
||||
export declare const Directive = ElementType.Directive;
|
||||
/** Type for <!-- ... --> */
|
||||
export declare const Comment = ElementType.Comment;
|
||||
/** Type for <script> tags */
|
||||
export declare const Script = ElementType.Script;
|
||||
/** Type for <style> tags */
|
||||
export declare const Style = ElementType.Style;
|
||||
/** Type for Any tag */
|
||||
export declare const Tag = ElementType.Tag;
|
||||
/** Type for <![CDATA[ ... ]]> */
|
||||
export declare const CDATA = ElementType.CDATA;
|
||||
/** Type for <!doctype ...> */
|
||||
export declare const Doctype = ElementType.Doctype;
|
||||
//# sourceMappingURL=index.d.ts.map
|
1
node_modules/domelementtype/lib/esm/index.d.ts.map
generated
vendored
Normal file
1
node_modules/domelementtype/lib/esm/index.d.ts.map
generated
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,mDAAmD;AACnD,oBAAY,WAAW;IACnB,8CAA8C;IAC9C,IAAI,SAAS;IACb,oBAAoB;IACpB,IAAI,SAAS;IACb,yBAAyB;IACzB,SAAS,cAAc;IACvB,4BAA4B;IAC5B,OAAO,YAAY;IACnB,6BAA6B;IAC7B,MAAM,WAAW;IACjB,4BAA4B;IAC5B,KAAK,UAAU;IACf,uBAAuB;IACvB,GAAG,QAAQ;IACX,iCAAiC;IACjC,KAAK,UAAU;IACf,8BAA8B;IAC9B,OAAO,YAAY;CACtB;AAED;;;;GAIG;AACH,wBAAgB,KAAK,CAAC,IAAI,EAAE;IAAE,IAAI,EAAE,WAAW,CAAA;CAAE,GAAG,OAAO,CAM1D;AAGD,8CAA8C;AAC9C,eAAO,MAAM,IAAI,mBAAmB,CAAC;AACrC,oBAAoB;AACpB,eAAO,MAAM,IAAI,mBAAmB,CAAC;AACrC,yBAAyB;AACzB,eAAO,MAAM,SAAS,wBAAwB,CAAC;AAC/C,4BAA4B;AAC5B,eAAO,MAAM,OAAO,sBAAsB,CAAC;AAC3C,6BAA6B;AAC7B,eAAO,MAAM,MAAM,qBAAqB,CAAC;AACzC,4BAA4B;AAC5B,eAAO,MAAM,KAAK,oBAAoB,CAAC;AACvC,uBAAuB;AACvB,eAAO,MAAM,GAAG,kBAAkB,CAAC;AACnC,iCAAiC;AACjC,eAAO,MAAM,KAAK,oBAAoB,CAAC;AACvC,8BAA8B;AAC9B,eAAO,MAAM,OAAO,sBAAsB,CAAC"}
|
51
node_modules/domelementtype/lib/esm/index.js
generated
vendored
Normal file
51
node_modules/domelementtype/lib/esm/index.js
generated
vendored
Normal file
|
@ -0,0 +1,51 @@
|
|||
/** Types of elements found in htmlparser2's DOM */
|
||||
export var ElementType;
|
||||
(function (ElementType) {
|
||||
/** Type for the root element of a document */
|
||||
ElementType["Root"] = "root";
|
||||
/** Type for Text */
|
||||
ElementType["Text"] = "text";
|
||||
/** Type for <? ... ?> */
|
||||
ElementType["Directive"] = "directive";
|
||||
/** Type for <!-- ... --> */
|
||||
ElementType["Comment"] = "comment";
|
||||
/** Type for <script> tags */
|
||||
ElementType["Script"] = "script";
|
||||
/** Type for <style> tags */
|
||||
ElementType["Style"] = "style";
|
||||
/** Type for Any tag */
|
||||
ElementType["Tag"] = "tag";
|
||||
/** Type for <![CDATA[ ... ]]> */
|
||||
ElementType["CDATA"] = "cdata";
|
||||
/** Type for <!doctype ...> */
|
||||
ElementType["Doctype"] = "doctype";
|
||||
})(ElementType || (ElementType = {}));
|
||||
/**
|
||||
* Tests whether an element is a tag or not.
|
||||
*
|
||||
* @param elem Element to test
|
||||
*/
|
||||
export function isTag(elem) {
|
||||
return (elem.type === ElementType.Tag ||
|
||||
elem.type === ElementType.Script ||
|
||||
elem.type === ElementType.Style);
|
||||
}
|
||||
// Exports for backwards compatibility
|
||||
/** Type for the root element of a document */
|
||||
export const Root = ElementType.Root;
|
||||
/** Type for Text */
|
||||
export const Text = ElementType.Text;
|
||||
/** Type for <? ... ?> */
|
||||
export const Directive = ElementType.Directive;
|
||||
/** Type for <!-- ... --> */
|
||||
export const Comment = ElementType.Comment;
|
||||
/** Type for <script> tags */
|
||||
export const Script = ElementType.Script;
|
||||
/** Type for <style> tags */
|
||||
export const Style = ElementType.Style;
|
||||
/** Type for Any tag */
|
||||
export const Tag = ElementType.Tag;
|
||||
/** Type for <![CDATA[ ... ]]> */
|
||||
export const CDATA = ElementType.CDATA;
|
||||
/** Type for <!doctype ...> */
|
||||
export const Doctype = ElementType.Doctype;
|
1
node_modules/domelementtype/lib/esm/package.json
generated
vendored
Normal file
1
node_modules/domelementtype/lib/esm/package.json
generated
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
{"type":"module"}
|
48
node_modules/domelementtype/lib/index.d.ts
generated
vendored
Normal file
48
node_modules/domelementtype/lib/index.d.ts
generated
vendored
Normal file
|
@ -0,0 +1,48 @@
|
|||
/** Types of elements found in htmlparser2's DOM */
|
||||
export declare enum ElementType {
|
||||
/** Type for the root element of a document */
|
||||
Root = "root",
|
||||
/** Type for Text */
|
||||
Text = "text",
|
||||
/** Type for <? ... ?> */
|
||||
Directive = "directive",
|
||||
/** Type for <!-- ... --> */
|
||||
Comment = "comment",
|
||||
/** Type for <script> tags */
|
||||
Script = "script",
|
||||
/** Type for <style> tags */
|
||||
Style = "style",
|
||||
/** Type for Any tag */
|
||||
Tag = "tag",
|
||||
/** Type for <![CDATA[ ... ]]> */
|
||||
CDATA = "cdata",
|
||||
/** Type for <!doctype ...> */
|
||||
Doctype = "doctype"
|
||||
}
|
||||
/**
|
||||
* Tests whether an element is a tag or not.
|
||||
*
|
||||
* @param elem Element to test
|
||||
*/
|
||||
export declare function isTag(elem: {
|
||||
type: ElementType;
|
||||
}): boolean;
|
||||
/** Type for the root element of a document */
|
||||
export declare const Root = ElementType.Root;
|
||||
/** Type for Text */
|
||||
export declare const Text = ElementType.Text;
|
||||
/** Type for <? ... ?> */
|
||||
export declare const Directive = ElementType.Directive;
|
||||
/** Type for <!-- ... --> */
|
||||
export declare const Comment = ElementType.Comment;
|
||||
/** Type for <script> tags */
|
||||
export declare const Script = ElementType.Script;
|
||||
/** Type for <style> tags */
|
||||
export declare const Style = ElementType.Style;
|
||||
/** Type for Any tag */
|
||||
export declare const Tag = ElementType.Tag;
|
||||
/** Type for <![CDATA[ ... ]]> */
|
||||
export declare const CDATA = ElementType.CDATA;
|
||||
/** Type for <!doctype ...> */
|
||||
export declare const Doctype = ElementType.Doctype;
|
||||
//# sourceMappingURL=index.d.ts.map
|
1
node_modules/domelementtype/lib/index.d.ts.map
generated
vendored
Normal file
1
node_modules/domelementtype/lib/index.d.ts.map
generated
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,mDAAmD;AACnD,oBAAY,WAAW;IACnB,8CAA8C;IAC9C,IAAI,SAAS;IACb,oBAAoB;IACpB,IAAI,SAAS;IACb,yBAAyB;IACzB,SAAS,cAAc;IACvB,4BAA4B;IAC5B,OAAO,YAAY;IACnB,6BAA6B;IAC7B,MAAM,WAAW;IACjB,4BAA4B;IAC5B,KAAK,UAAU;IACf,uBAAuB;IACvB,GAAG,QAAQ;IACX,iCAAiC;IACjC,KAAK,UAAU;IACf,8BAA8B;IAC9B,OAAO,YAAY;CACtB;AAED;;;;GAIG;AACH,wBAAgB,KAAK,CAAC,IAAI,EAAE;IAAE,IAAI,EAAE,WAAW,CAAA;CAAE,GAAG,OAAO,CAM1D;AAGD,8CAA8C;AAC9C,eAAO,MAAM,IAAI,mBAAmB,CAAC;AACrC,oBAAoB;AACpB,eAAO,MAAM,IAAI,mBAAmB,CAAC;AACrC,yBAAyB;AACzB,eAAO,MAAM,SAAS,wBAAwB,CAAC;AAC/C,4BAA4B;AAC5B,eAAO,MAAM,OAAO,sBAAsB,CAAC;AAC3C,6BAA6B;AAC7B,eAAO,MAAM,MAAM,qBAAqB,CAAC;AACzC,4BAA4B;AAC5B,eAAO,MAAM,KAAK,oBAAoB,CAAC;AACvC,uBAAuB;AACvB,eAAO,MAAM,GAAG,kBAAkB,CAAC;AACnC,iCAAiC;AACjC,eAAO,MAAM,KAAK,oBAAoB,CAAC;AACvC,8BAA8B;AAC9B,eAAO,MAAM,OAAO,sBAAsB,CAAC"}
|
55
node_modules/domelementtype/lib/index.js
generated
vendored
Normal file
55
node_modules/domelementtype/lib/index.js
generated
vendored
Normal file
|
@ -0,0 +1,55 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.Doctype = exports.CDATA = exports.Tag = exports.Style = exports.Script = exports.Comment = exports.Directive = exports.Text = exports.Root = exports.isTag = exports.ElementType = void 0;
|
||||
/** Types of elements found in htmlparser2's DOM */
|
||||
var ElementType;
|
||||
(function (ElementType) {
|
||||
/** Type for the root element of a document */
|
||||
ElementType["Root"] = "root";
|
||||
/** Type for Text */
|
||||
ElementType["Text"] = "text";
|
||||
/** Type for <? ... ?> */
|
||||
ElementType["Directive"] = "directive";
|
||||
/** Type for <!-- ... --> */
|
||||
ElementType["Comment"] = "comment";
|
||||
/** Type for <script> tags */
|
||||
ElementType["Script"] = "script";
|
||||
/** Type for <style> tags */
|
||||
ElementType["Style"] = "style";
|
||||
/** Type for Any tag */
|
||||
ElementType["Tag"] = "tag";
|
||||
/** Type for <![CDATA[ ... ]]> */
|
||||
ElementType["CDATA"] = "cdata";
|
||||
/** Type for <!doctype ...> */
|
||||
ElementType["Doctype"] = "doctype";
|
||||
})(ElementType = exports.ElementType || (exports.ElementType = {}));
|
||||
/**
|
||||
* Tests whether an element is a tag or not.
|
||||
*
|
||||
* @param elem Element to test
|
||||
*/
|
||||
function isTag(elem) {
|
||||
return (elem.type === ElementType.Tag ||
|
||||
elem.type === ElementType.Script ||
|
||||
elem.type === ElementType.Style);
|
||||
}
|
||||
exports.isTag = isTag;
|
||||
// Exports for backwards compatibility
|
||||
/** Type for the root element of a document */
|
||||
exports.Root = ElementType.Root;
|
||||
/** Type for Text */
|
||||
exports.Text = ElementType.Text;
|
||||
/** Type for <? ... ?> */
|
||||
exports.Directive = ElementType.Directive;
|
||||
/** Type for <!-- ... --> */
|
||||
exports.Comment = ElementType.Comment;
|
||||
/** Type for <script> tags */
|
||||
exports.Script = ElementType.Script;
|
||||
/** Type for <style> tags */
|
||||
exports.Style = ElementType.Style;
|
||||
/** Type for Any tag */
|
||||
exports.Tag = ElementType.Tag;
|
||||
/** Type for <![CDATA[ ... ]]> */
|
||||
exports.CDATA = ElementType.CDATA;
|
||||
/** Type for <!doctype ...> */
|
||||
exports.Doctype = ElementType.Doctype;
|
54
node_modules/domelementtype/package.json
generated
vendored
Normal file
54
node_modules/domelementtype/package.json
generated
vendored
Normal file
|
@ -0,0 +1,54 @@
|
|||
{
|
||||
"name": "domelementtype",
|
||||
"version": "2.3.0",
|
||||
"description": "all the types of nodes in htmlparser2's dom",
|
||||
"author": "Felix Boehm <me@feedic.com>",
|
||||
"license": "BSD-2-Clause",
|
||||
"funding": [
|
||||
{
|
||||
"type": "github",
|
||||
"url": "https://github.com/sponsors/fb55"
|
||||
}
|
||||
],
|
||||
"sideEffects": false,
|
||||
"main": "lib/index.js",
|
||||
"types": "lib/index.d.ts",
|
||||
"module": "lib/esm/index.js",
|
||||
"exports": {
|
||||
"require": "./lib/index.js",
|
||||
"import": "./lib/esm/index.js"
|
||||
},
|
||||
"files": [
|
||||
"lib/**/*"
|
||||
],
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git://github.com/fb55/domelementtype.git"
|
||||
},
|
||||
"keywords": [
|
||||
"dom",
|
||||
"element",
|
||||
"types",
|
||||
"htmlparser2"
|
||||
],
|
||||
"scripts": {
|
||||
"test": "npm run lint && prettier --check **/*.{ts,json,md}",
|
||||
"lint": "eslint src",
|
||||
"format": "prettier --write **/*.{ts,json,md}",
|
||||
"build": "npm run build:cjs && npm run build:esm",
|
||||
"build:cjs": "tsc",
|
||||
"build:esm": "tsc --module esnext --target es2019 --outDir lib/esm && echo '{\"type\":\"module\"}' > lib/esm/package.json",
|
||||
"prepare": "npm run build"
|
||||
},
|
||||
"prettier": {
|
||||
"tabWidth": 4
|
||||
},
|
||||
"devDependencies": {
|
||||
"@typescript-eslint/eslint-plugin": "^5.18.0",
|
||||
"@typescript-eslint/parser": "^5.18.0",
|
||||
"eslint": "^8.12.0",
|
||||
"eslint-config-prettier": "^8.5.0",
|
||||
"prettier": "^2.6.2",
|
||||
"typescript": "^4.6.3"
|
||||
}
|
||||
}
|
1
node_modules/domelementtype/readme.md
generated
vendored
Normal file
1
node_modules/domelementtype/readme.md
generated
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
All the types of nodes in htmlparser2's DOM.
|
Loading…
Add table
Add a link
Reference in a new issue