Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

remix-flat-routes

Package Overview
Dependencies
Maintainers
1
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

remix-flat-routes - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

3

dist/index.d.ts

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

export declare function flatRoutes(baseDir: string, defineRoutes: (route: (...args: any) => void) => any): any;
export default function flatRoutes(baseDir: string, defineRoutes: (route: (...args: any) => void) => any): any;
export { flatRoutes };

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

}
exports.default = flatRoutes;
exports.flatRoutes = flatRoutes;

@@ -74,7 +75,7 @@ function getRoutes(parentMap, parent, route) {

if (routeFile.includes('/')) {
if (!name.endsWith('/index')) {
if (!name.endsWith('/index') && !name.endsWith('/_layout')) {
return null;
}
name = path.dirname(routeFile);
isIndex = true;
isIndex = name.endsWith('/index');
}

@@ -81,0 +82,0 @@ let index = 0;

{
"name": "remix-flat-routes",
"version": "0.0.2",
"version": "0.0.3",
"description": "Package for generating routes using flat convention",

@@ -5,0 +5,0 @@ "main": "dist/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