mirror of
https://github.com/danbulant/node-html-parser
synced 2026-06-19 22:51:29 +00:00
Fix imports for deno
This commit is contained in:
parent
0d81bd6f1b
commit
170ef84b18
5 changed files with 13 additions and 13 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
import HTMLElement from './nodes/html';
|
import HTMLElement from './nodes/html.ts';
|
||||||
|
|
||||||
interface MatherFunction {
|
interface MatherFunction {
|
||||||
func(el: HTMLElement, tagName: string, classes: string[] | string, attr_key: string, value: string): boolean;
|
func(el: HTMLElement, tagName: string, classes: string[] | string, attr_key: string, value: string): boolean;
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
import Node from './node';
|
import Node from './node.ts';
|
||||||
import NodeType from './type';
|
import NodeType from './type.ts';
|
||||||
|
|
||||||
export default class CommentNode extends Node {
|
export default class CommentNode extends Node {
|
||||||
constructor(value: string) {
|
constructor(value: string) {
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,10 @@
|
||||||
import { decode } from 'he';
|
import { decode } from 'https://raw.githubusercontent.com/mathiasbynens/he/master/src/he.js';
|
||||||
import Node from './node';
|
import Node from './node.ts';
|
||||||
import NodeType from './type';
|
import NodeType from './type.ts';
|
||||||
import TextNode from './text';
|
import TextNode from './text.ts';
|
||||||
import Matcher from '../matcher';
|
import Matcher from '../matcher.ts';
|
||||||
import arr_back from '../back';
|
import arr_back from '../back.ts';
|
||||||
import CommentNode from './comment';
|
import CommentNode from './comment.ts';
|
||||||
|
|
||||||
export interface KeyAttributes {
|
export interface KeyAttributes {
|
||||||
id?: string;
|
id?: string;
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
import NodeType from './type';
|
import NodeType from './type.ts';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Node Class as base class for TextNode and HTMLElement.
|
* Node Class as base class for TextNode and HTMLElement.
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
import NodeType from './type';
|
import NodeType from './type.ts';
|
||||||
import Node from './node';
|
import Node from './node.ts';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* TextNode to contain a text element in DOM tree.
|
* TextNode to contain a text element in DOM tree.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue