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

react-route-generator

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-route-generator - npm Package Compare versions

Comparing version 0.0.23 to 0.0.24

dist/generate/config/config.d.ts

6

dist/generate/generateAppRoutes/generateAppRoutes.js

@@ -9,3 +9,3 @@ "use strict";

const generateRouteCreatorFile_1 = __importDefault(require("./generateRouteCreatorFile"));
const generateUrlDefaultFile_1 = __importDefault(require("./generateUrlDefaultFile"));
const fs_1 = require("fs");
function generateAppRoutes(app) {

@@ -15,5 +15,5 @@ const { routes, routingType, destinationDir, routeLinkCreators, generateUrlFunctionPath, shouldGenerateLink, shouldGenerateReactRouterFunctions, } = config_1.parseAppConfig(app);

const routeCreator = `./utils/create${routingType}Route`;
const utilsFolder = destinationDir.concat('/', '/utils');
const utilsFolder = destinationDir.concat('/', 'utils');
fs_1.mkdirSync(utilsFolder, { recursive: true });
Object.entries(routes).forEach(([routeName, routePattern]) => generateRouteFile_1.default({ routeName, routePattern, routeCreator, destinationDir }));
generateUrlDefaultFile_1.default(utilsFolder);
generateRouteCreatorFile_1.default({

@@ -20,0 +20,0 @@ routingType,

{
"name": "react-route-generator",
"version": "0.0.23",
"version": "0.0.24",
"description": "Route generator",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

Sorry, the diff of this file is not supported yet

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