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

gatsby-plugin-drupal-menus

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gatsby-plugin-drupal-menus - npm Package Compare versions

Comparing version 1.0.5 to 1.0.6

10

index.js

@@ -5,3 +5,3 @@ import React from "react"

function createMenuHierarchy(menuData, menuName) {
const createMenuHierarchy = (menuData, menuName) => {
let tree = [],

@@ -41,3 +41,3 @@ mappedArr = {},

function buildLink(link) {
const buildLink = link => {
if(!link.external && link.link.uri_alias) {

@@ -52,3 +52,3 @@ return ( <Link activeClassName="active" to={link.link.uri_alias}>

} else {
return ( <a href={link.link.uri_alias} className={'external'}>
return ( <a href={link.link.uri} className={'external'}>
{link.title}

@@ -59,3 +59,3 @@ </a>)

function buildMenu(menuArray){
const buildMenu = menuArray => {
if(!menuArray) {

@@ -83,3 +83,3 @@ return

function generateMenu(menuLinks, menuName) {
const generateMenu = (menuLinks, menuName) => {
let menu

@@ -86,0 +86,0 @@

{
"name": "gatsby-plugin-drupal-menus",
"version": "1.0.5",
"version": "1.0.6",
"description": "Adds support for nested hierarchical menus from Drupal 8/9 in Gatsby.",

@@ -25,3 +25,4 @@ "main": "index.js",

},
"homepage": "https://github.com/xaviemirmon/gatsby_drupal_menus#readme"
"homepage": "https://github.com/xaviemirmon/gatsby_drupal_menus#readme",
"dependencies": {}
}
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