New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

htmx-router

Package Overview
Dependencies
Maintainers
1
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

htmx-router - npm Package Compare versions

Comparing version 0.1.2 to 0.1.3

1

bin/components.d.ts
export declare function Link(props: {
to: string;
class?: string;
target?: string;
style?: string;
}, contents: string[]): string;

2

bin/components.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc