You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

@tanstack/router-generator

Package Overview
Dependencies
Maintainers
2
Versions
293
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tanstack/router-generator - npm Package Compare versions

Comparing version

to
1.14.1

12

dist/esm/generator.js

@@ -89,5 +89,5 @@ import path from "path";

async function generator(config) {
console.log();
console.log("");
if (!first) {
console.log("🔄 Generating routes...");
console.log("♻️ Generating routes...");
first = true;

@@ -185,3 +185,3 @@ } else if (skipMessage) {

if (replaced !== routeCode) {
console.log(`🌲 Updating ${node.fullPath}`);
console.log(`🟡 Updating ${node.fullPath}`);
await fsp.writeFile(node.fullPath, replaced);

@@ -194,3 +194,3 @@ }

if (!anchorRoute) {
handleNode({
await handleNode({
...node,

@@ -215,3 +215,3 @@ isVirtual: true,

};
preRouteNodes.forEach((node) => handleNode(node));
await Promise.all(preRouteNodes.map((node) => handleNode(node)));
async function buildRouteConfig(nodes, depth = 1) {

@@ -387,3 +387,3 @@ const children = nodes.map(async (node) => {

console.log(
`🌲 Processed ${routeNodes.length} routes in ${Date.now() - start}ms`
`✅ Processed ${routeNodes.length} routes in ${Date.now() - start}ms`
);

@@ -390,0 +390,0 @@ }

{
"name": "@tanstack/router-generator",
"version": "1.12.16",
"version": "1.14.1",
"description": "",

@@ -5,0 +5,0 @@ "author": "Tanner Linsley",

@@ -152,6 +152,6 @@ import path from 'path'

export async function generator(config: Config) {
console.log()
console.log('')
if (!first) {
console.log('🔄 Generating routes...')
console.log('♻️ Generating routes...')
first = true

@@ -266,3 +266,3 @@ } else if (skipMessage) {

if (replaced !== routeCode) {
console.log(`🌲 Updating ${node.fullPath}`)
console.log(`🟡 Updating ${node.fullPath}`)
await fsp.writeFile(node.fullPath, replaced)

@@ -297,3 +297,3 @@ }

if (!anchorRoute) {
handleNode({
await handleNode({
...node,

@@ -321,3 +321,3 @@ isVirtual: true,

preRouteNodes.forEach((node) => handleNode(node))
await Promise.all(preRouteNodes.map((node) => handleNode(node)))

@@ -539,3 +539,3 @@ async function buildRouteConfig(

console.log(
`🌲 Processed ${routeNodes.length} routes in ${Date.now() - start}ms`,
`✅ Processed ${routeNodes.length} routes in ${Date.now() - start}ms`,
)

@@ -542,0 +542,0 @@ }

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet