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

hono-router

Package Overview
Dependencies
Maintainers
0
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hono-router - npm Package Compare versions

Comparing version 1.0.5 to 1.0.6

8

index.js

@@ -73,7 +73,5 @@ #!/usr/bin/env node

const entryPath = path.join(currentPath, entry.name);
let importPath = path
const importPath = path
.join(basePath, entry.name)
if (!isDeno){
importPath = importPath.replace(/\.(ts|tsx)$/, '');
}
.replace(/\.(ts|tsx)$/, '');
if (entry.isDirectory()) {

@@ -93,3 +91,3 @@ traverseDirectories(entryPath, importPath);

.replace(/\[(.+?)\]/g, '$1'); // Ensure valid variable names
const importPathString = isDeno ? importPath : importPath.replace(/index$/, '');
const importPathString = isDeno ? path.join(basePath, entry.name) : importPath.replace(/index$/, '');
const relativePath = path

@@ -96,0 +94,0 @@ .relative(path.dirname(out), path.join(dir, importPathString))

{
"name": "hono-router",
"version": "1.0.5",
"version": "1.0.6",
"description": "hotloading script to generate file-based routing config for Hono",

@@ -5,0 +5,0 @@ "author": "Stu Kennedy",

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