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

nuxt-typed-router

Package Overview
Dependencies
Maintainers
1
Versions
216
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nuxt-typed-router - npm Package Compare versions

Comparing version 0.2.14 to 0.2.15

7

lib/module.js

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

let routeObjectJs = {};
const recursiveTypedRoutes = (route, level, routeObject) => {
const recursiveTypedRoutes = (route, level, routeObject, parentName) => {
const routeName = route.name;

@@ -26,3 +26,3 @@ if (route.children) {

routeObject[nameKey] = {};
route.children.map((r) => recursiveTypedRoutes(r, level + 1, routeObject[nameKey]));
route.children.map((r) => recursiveTypedRoutes(r, level + 1, routeObject[nameKey], nameKey));
routesObjectString += '},';

@@ -33,2 +33,5 @@ }

splitted = splitted.slice(level, splitted.length);
if (splitted[0] === parentName) {
splitted.splice(0, 1);
}
const keyName = lodash_1.camelCase(splitted.join('-')) || 'index';

@@ -35,0 +38,0 @@ routesObjectString += `'${keyName}': '${routeName}',`;

{
"name": "nuxt-typed-router",
"version": "0.2.14",
"version": "0.2.15",
"description": "Provide autocompletion for pages route names generated by Nuxt router",

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