diff options
| author | Shipwreckt <me@shipwreckt.co.uk> | 2025-10-31 20:02:14 +0000 |
|---|---|---|
| committer | Shipwreckt <me@shipwreckt.co.uk> | 2025-10-31 20:02:14 +0000 |
| commit | 7a52ddeba2a68388b544f529d2d92104420f77b0 (patch) | |
| tree | 15ddd47457a2cb4a96060747437d36474e4f6b4e /node_modules/domelementtype/lib | |
| parent | 53d6ae2b5568437afa5e4995580a3fb679b7b91b (diff) | |
Changed from static to 11ty!
Diffstat (limited to 'node_modules/domelementtype/lib')
| -rw-r--r-- | node_modules/domelementtype/lib/esm/index.d.ts | 48 | ||||
| -rw-r--r-- | node_modules/domelementtype/lib/esm/index.d.ts.map | 1 | ||||
| -rw-r--r-- | node_modules/domelementtype/lib/esm/index.js | 51 | ||||
| -rw-r--r-- | node_modules/domelementtype/lib/esm/package.json | 1 | ||||
| -rw-r--r-- | node_modules/domelementtype/lib/index.d.ts | 48 | ||||
| -rw-r--r-- | node_modules/domelementtype/lib/index.d.ts.map | 1 | ||||
| -rw-r--r-- | node_modules/domelementtype/lib/index.js | 55 |
7 files changed, 205 insertions, 0 deletions
diff --git a/node_modules/domelementtype/lib/esm/index.d.ts b/node_modules/domelementtype/lib/esm/index.d.ts new file mode 100644 index 0000000..72fa4f8 --- /dev/null +++ b/node_modules/domelementtype/lib/esm/index.d.ts @@ -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
\ No newline at end of file diff --git a/node_modules/domelementtype/lib/esm/index.d.ts.map b/node_modules/domelementtype/lib/esm/index.d.ts.map new file mode 100644 index 0000000..49f4d9d --- /dev/null +++ b/node_modules/domelementtype/lib/esm/index.d.ts.map @@ -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"}
\ No newline at end of file diff --git a/node_modules/domelementtype/lib/esm/index.js b/node_modules/domelementtype/lib/esm/index.js new file mode 100644 index 0000000..8ec1a42 --- /dev/null +++ b/node_modules/domelementtype/lib/esm/index.js @@ -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; diff --git a/node_modules/domelementtype/lib/esm/package.json b/node_modules/domelementtype/lib/esm/package.json new file mode 100644 index 0000000..089153b --- /dev/null +++ b/node_modules/domelementtype/lib/esm/package.json @@ -0,0 +1 @@ +{"type":"module"} diff --git a/node_modules/domelementtype/lib/index.d.ts b/node_modules/domelementtype/lib/index.d.ts new file mode 100644 index 0000000..72fa4f8 --- /dev/null +++ b/node_modules/domelementtype/lib/index.d.ts @@ -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
\ No newline at end of file diff --git a/node_modules/domelementtype/lib/index.d.ts.map b/node_modules/domelementtype/lib/index.d.ts.map new file mode 100644 index 0000000..a581ba6 --- /dev/null +++ b/node_modules/domelementtype/lib/index.d.ts.map @@ -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"}
\ No newline at end of file diff --git a/node_modules/domelementtype/lib/index.js b/node_modules/domelementtype/lib/index.js new file mode 100644 index 0000000..b0ebcb1 --- /dev/null +++ b/node_modules/domelementtype/lib/index.js @@ -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; |
