Comparing version 1.2.2 to 2.0.0
{ | ||
"name": "araz", | ||
"version": "1.2.2", | ||
"version": "2.0.0", | ||
"description": "", | ||
@@ -26,7 +26,6 @@ "main": "index.ts", | ||
"dependencies": { | ||
"lodash-es": "^4.17.21", | ||
"@types/lodash-es": "^4.17.8" | ||
"@types/lodash-es": "^4.17.8", | ||
"lodash-es": "^4.17.21" | ||
}, | ||
"devDependencies": { | ||
} | ||
"devDependencies": {} | ||
} |
import { Mount } from "./types"; | ||
export const mount = ({$node, $target}: Mount): HTMLElement => { | ||
@@ -3,0 +4,0 @@ $target.replaceWith($node); |
import { isArray } from "lodash-es"; | ||
import { HTMLTags } from "./types"; | ||
import { el } from "./element"; | ||
@@ -24,3 +25,3 @@ | ||
export const RouterView = (props: HTML)=>{ | ||
export const RouterView = (props: HTMLTags)=>{ | ||
@@ -27,0 +28,0 @@ return el({ |
@@ -1,2 +0,2 @@ | ||
type HTMLTags = 'a' | 'abbr' | 'address' | 'area' | 'article' | 'aside' | 'audio' | 'b' | | ||
export type HTMLTags = 'a' | 'abbr' | 'address' | 'area' | 'article' | 'aside' | 'audio' | 'b' | | ||
'base' | 'bdi' | 'bdo' | 'blockquote' | 'body' | 'br' | 'button' | 'canvas' | 'caption' | | ||
@@ -14,2 +14,6 @@ 'cite' | 'code' | 'col' | 'colgroup' | 'data' | 'datalist' | 'dd' | 'del' | 'details' | | ||
export interface Mount { | ||
$node: HTMLElement, | ||
$target: HTMLElement | ||
} | ||
@@ -16,0 +20,0 @@ export type EventHandler = (event: Event) => void; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
12123
295