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

remix-flat-routes

Package Overview
Dependencies
Maintainers
1
Versions
47
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.4.0 to 0.4.1

13

dist/index.js

@@ -38,4 +38,4 @@ var __create = Object.create;

name: "root",
parent: "",
isIndex: false
parentId: "",
index: false
});

@@ -87,3 +87,3 @@ var routes = defineRoutes((route) => {

caseSensitive: false,
index: parentRoute.routeInfo.isIndex
index: parentRoute.routeInfo.index
};

@@ -94,3 +94,3 @@ const routeChildren = () => {

const path2 = child.path.substring(parentRoute.routeInfo.path.length + 1);
route(path2, child.file, { index: child.isIndex });
route(path2, child.file, { index: child.index });
}

@@ -126,3 +126,3 @@ };

name,
isIndex: routeSegments.at(-1) === "index" || routeSegments.at(-1) === "_index"
index: routeSegments.at(-1) === "index" || routeSegments.at(-1) === "_index"
};

@@ -134,2 +134,5 @@ }

return url;
} else if (segment.endsWith("_")) {
segment = segment.substring(0, segment.length - 1);
url += "/" + segment;
} else if (["index", "_index"].some((name) => segment === name)) {

@@ -136,0 +139,0 @@ if (!url.endsWith("/")) {

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

@@ -21,2 +21,3 @@ "main": "dist/index.js",

"prepublish": "npm run build",
"typecheck": "tsc -b",
"migrate": "rm -rf ./app/flat-files ./app/flat-folders && npm run build && node ./dist/cli.js"

@@ -23,0 +24,0 @@ },

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