Skip to content

Commit 7a9c207

Browse files
1 parent 761575b commit 7a9c207

File tree

6 files changed

+5
-13
lines changed

6 files changed

+5
-13
lines changed

index.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import domToReact from './lib/dom-to-react';
1717

1818
export { attributesToProps, domToReact, htmlToDOM };
1919
export type HTMLParser2Options = ParserOptions & DomHandlerOptions;
20-
export { Comment, Element, Node, ProcessingInstruction, Text };
20+
export { Comment, Element, ProcessingInstruction, Text };
2121
export type DOMNode = Comment | Element | Node | ProcessingInstruction | Text;
2222

2323
export interface HTMLReactParserOptions {

index.js

-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ HTMLReactParser.attributesToProps = attributesToProps;
4242
// domhandler
4343
HTMLReactParser.Comment = domhandler.Comment;
4444
HTMLReactParser.Element = domhandler.Element;
45-
HTMLReactParser.Node = domhandler.Node;
4645
HTMLReactParser.ProcessingInstruction = domhandler.ProcessingInstruction;
4746
HTMLReactParser.Text = domhandler.Text;
4847

index.mjs

-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ export var attributesToProps = HTMLReactParser.attributesToProps;
77
// domhandler
88
export var Comment = HTMLReactParser.Comment;
99
export var Element = HTMLReactParser.Element;
10-
export var Node = HTMLReactParser.Node;
1110
export var ProcessingInstruction = HTMLReactParser.ProcessingInstruction;
1211
export var Text = HTMLReactParser.Text;
1312

test/index.test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ describe('module', () => {
2727
});
2828

2929
describe('domhandler', () => {
30-
it.each(['Comment', 'Element', 'Node', 'ProcessingInstruction', 'Text'])(
30+
it.each(['Comment', 'Element', 'ProcessingInstruction', 'Text'])(
3131
'exports %s',
3232
name => {
3333
expect(parse[name]).toBeInstanceOf(Function);

test/integration/index.test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ describe.each([
2222
});
2323

2424
describe('domhandler', () => {
25-
it.each(['Comment', 'Element', 'Node', 'ProcessingInstruction', 'Text'])(
25+
it.each(['Comment', 'Element', 'ProcessingInstruction', 'Text'])(
2626
'exports %s',
2727
name => {
2828
expect(parse[name]).toBeInstanceOf(Function);

test/module/index.mjs

+2-8
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,13 @@ import parse, {
44
domToReact,
55
htmlToDOM
66
} from '../../index.mjs';
7-
import {
8-
Comment,
9-
Element,
10-
Node,
11-
ProcessingInstruction,
12-
Text
13-
} from '../../index.mjs';
7+
import { Comment, Element, ProcessingInstruction, Text } from '../../index.mjs';
148

159
[parse, domToReact, htmlToDOM, attributesToProps].forEach(func => {
1610
assert.strictEqual(typeof func, 'function');
1711
});
1812

1913
// domhandler
20-
[Comment, Element, Node, ProcessingInstruction, Text].forEach(func => {
14+
[Comment, Element, ProcessingInstruction, Text].forEach(func => {
2115
assert.strictEqual(typeof func, 'function');
2216
});

0 commit comments

Comments
 (0)