htmx-router
Advanced tools
Comparing version 0.1.2 to 0.1.3
export declare function Link(props: { | ||
to: string; | ||
class?: string; | ||
target?: string; | ||
style?: string; | ||
}, contents: string[]): string; |
@@ -29,4 +29,4 @@ "use strict"; | ||
function Link(props, contents) { | ||
return elements.createElement("a", { target: props.target || "", style: props.style || "", href: props.to, "hx-get": props.to, "hx-headers": '{"Cache-Control": "no-cache"}' }, contents); | ||
return elements.createElement("a", { target: props.target || "", class: props.class || "", style: props.style || "", href: props.to, "hx-get": props.to, "hx-headers": '{"Cache-Control": "no-cache"}' }, contents); | ||
} | ||
exports.Link = Link; |
@@ -127,3 +127,3 @@ "use strict"; | ||
_applyMask(mask, depth) { | ||
const padded = new Array(this._outletChain.length - mask.length).fill(false); | ||
const padded = new Array(Math.max(0, this._outletChain.length - mask.length)).fill(false); | ||
for (let i = mask.length - 1; i >= 0; i--) { | ||
@@ -130,0 +130,0 @@ padded.push(mask[i]); |
{ | ||
"name": "htmx-router", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"description": "A remix.js style file path router for htmX websites", | ||
@@ -5,0 +5,0 @@ "main": "./bin/index.js", |
40085
735