htmx-router
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -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 @@ } |
{ | ||
"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" | ||
} | ||
} |
14075
392
2
+ Addedcsstype@^3.1.2
+ Addedimport@^0.0.6
+ Addedcsstype@3.1.3(transitive)
+ Addedimport@0.0.6(transitive)
+ Addedoptimist@0.3.7(transitive)
+ Addedwordwrap@0.0.3(transitive)