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.0.4 to 0.0.5

2

bin/router.d.ts

@@ -9,3 +9,3 @@ /// <reference types="node" />

constructor(module: RouteModule, mask: boolean[]);
makeOutlet(args: RenderArgs, outlet: Outlet): Outlet;
makeOutlet(args: RenderArgs, outlet: Outlet, depth: number): Outlet;
}

@@ -12,0 +12,0 @@ export declare class RouteTree {

@@ -30,3 +30,3 @@ "use strict";

}
makeOutlet(args, outlet) {
makeOutlet(args, outlet, depth) {
const renderer = this.module.Render || blankOutlet;

@@ -36,2 +36,3 @@ const catcher = this.module.CatchError;

try {
args.depth = depth;
return await renderer(args, outlet);

@@ -44,4 +45,6 @@ }

new shared_1.ErrorResponse(500, "Runtime Error", e);
if (catcher)
if (catcher) {
args.depth = depth;
return await catcher(args, err);
}
throw err;

@@ -143,4 +146,4 @@ }

else if ((_a = this.default) === null || _a === void 0 ? void 0 : _a.module.Render) {
out.outlet = this.default.makeOutlet(args, out.outlet);
out.mask = [...this.default.mask];
out.outlet = this.default.makeOutlet(args, out.outlet, out.mask.length);
}

@@ -167,3 +170,3 @@ }

if (!ignored && this.route) {
out.outlet = this.route.makeOutlet(args, out.outlet);
out.outlet = this.route.makeOutlet(args, out.outlet, out.mask.length);
}

@@ -170,0 +173,0 @@ return out;

@@ -33,2 +33,3 @@ /// <reference types="node" />

params: MetaHTML;
depth: number;
url: URL;

@@ -35,0 +36,0 @@ links: MetaHTML[];

@@ -50,2 +50,3 @@ "use strict";

this.params = {};
this.depth = -1;
this.links = [];

@@ -52,0 +53,0 @@ this.meta = [];

{
"name": "htmx-router",
"version": "0.0.4",
"version": "0.0.5",
"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