From 170ef84b18de224a762e1967e382ed6ae8443d0b Mon Sep 17 00:00:00 2001 From: Daniel Bulant Date: Wed, 13 May 2020 11:59:53 +0200 Subject: [PATCH] Fix imports for deno --- src/matcher.ts | 2 +- src/nodes/comment.ts | 4 ++-- src/nodes/html.ts | 14 +++++++------- src/nodes/node.ts | 2 +- src/nodes/text.ts | 4 ++-- 5 files changed, 13 insertions(+), 13 deletions(-) diff --git a/src/matcher.ts b/src/matcher.ts index 3efe891..b48655c 100644 --- a/src/matcher.ts +++ b/src/matcher.ts @@ -1,4 +1,4 @@ -import HTMLElement from './nodes/html'; +import HTMLElement from './nodes/html.ts'; interface MatherFunction { func(el: HTMLElement, tagName: string, classes: string[] | string, attr_key: string, value: string): boolean; diff --git a/src/nodes/comment.ts b/src/nodes/comment.ts index 16786bd..4e0fd46 100644 --- a/src/nodes/comment.ts +++ b/src/nodes/comment.ts @@ -1,5 +1,5 @@ -import Node from './node'; -import NodeType from './type'; +import Node from './node.ts'; +import NodeType from './type.ts'; export default class CommentNode extends Node { constructor(value: string) { diff --git a/src/nodes/html.ts b/src/nodes/html.ts index 704fb50..7b93af6 100644 --- a/src/nodes/html.ts +++ b/src/nodes/html.ts @@ -1,10 +1,10 @@ -import { decode } from 'he'; -import Node from './node'; -import NodeType from './type'; -import TextNode from './text'; -import Matcher from '../matcher'; -import arr_back from '../back'; -import CommentNode from './comment'; +import { decode } from 'https://raw.githubusercontent.com/mathiasbynens/he/master/src/he.js'; +import Node from './node.ts'; +import NodeType from './type.ts'; +import TextNode from './text.ts'; +import Matcher from '../matcher.ts'; +import arr_back from '../back.ts'; +import CommentNode from './comment.ts'; export interface KeyAttributes { id?: string; diff --git a/src/nodes/node.ts b/src/nodes/node.ts index ea66cb5..b387589 100644 --- a/src/nodes/node.ts +++ b/src/nodes/node.ts @@ -1,4 +1,4 @@ -import NodeType from './type'; +import NodeType from './type.ts'; /** * Node Class as base class for TextNode and HTMLElement. diff --git a/src/nodes/text.ts b/src/nodes/text.ts index 653a7eb..d4ebd7b 100644 --- a/src/nodes/text.ts +++ b/src/nodes/text.ts @@ -1,5 +1,5 @@ -import NodeType from './type'; -import Node from './node'; +import NodeType from './type.ts'; +import Node from './node.ts'; /** * TextNode to contain a text element in DOM tree.