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.1 to 0.0.2

5

bin/helper.d.ts

@@ -1,3 +0,2 @@

export declare function StyleCSS(props: {
[key: string]: string | number;
}): string;
import type * as CSS from 'csstype';
export declare function StyleCSS(props: CSS.Properties<string | number>): string;

@@ -7,4 +7,7 @@ "use strict";

for (const key in props) {
const value = props[key];
if (typeof (value) !== "string" && typeof (value) !== "number")
continue;
const safeKey = key.replace(/([a-z0-9])([A-Z])/g, '$1-$2').toLowerCase();
const safeVal = props[key].toString().replace(/"/g, "\\\"");
const safeVal = value.toString().replace(/"/g, "\\\"");
out += `${safeKey}: ${safeVal};`;

@@ -11,0 +14,0 @@ }

6

package.json
{
"name": "htmx-router",
"version": "0.0.1",
"version": "0.0.2",
"description": "A remix.js style file path router for htmX websites",

@@ -26,3 +26,7 @@ "main": "./bin/index.js",

"typescript": "^5.1.6"
},
"dependencies": {
"csstype": "^3.1.2",
"import": "^0.0.6"
}
}
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