Socket
Socket
Sign inDemoInstall

druxt-breadcrumb

Package Overview
Dependencies
48
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.3.0 to 0.3.1

4

dist/druxt-breadcrumb.esm.js

@@ -47,2 +47,5 @@ import { resolve } from 'path';

// If there is no route, stop here.
if (!this.route) { return }
// Home crumb.

@@ -55,2 +58,3 @@ // @TODO - Make this configurable.

// If we are at the root of the site, stop here.
if (this.$route.path === '/') { return }

@@ -57,0 +61,0 @@

2

dist/druxt-breadcrumb.min.js

@@ -1,1 +0,1 @@

var VueDrupalEntity=function(t,e,r){"use strict";var n={name:"DruxtBreadcrumb",props:{component:{type:String,default:function(){return"div"}}},created:function(){this.getItems()},data:function(){return{loading:0,items:{}}},computed:Object.assign({},{crumbs:function(){var t=this;return this.loading?[]:Object.keys(this.items).sort((function(t,e){return t.length-e.length})).map((function(e){return t.items[e]}))}},r.mapState({route:function(t){return t.druxtRouter.route.data},routes:function(t){return t.druxtRouter.routes}})),methods:Object.assign({},{getItems:function(){var t=this;if(this.items={},this.items["/"]={to:"/",text:"Home"},"/"!==this.$route.path){this.items[this.$route.path]={text:this.route.label};var e=this.$route.path.split("/").filter(String);e.pop();for(var r=function(){t.loading++;var r="/"+e.join("/");t.items[r]={},t.getRoute(r).then((function(e){var n=e.data;e.error;t.loading--,delete t.items[r],n.label&&(t.items[r]={to:r,text:n.label}),t.$forceUpdate()})),e.pop()};e.length>0;)r()}}},r.mapActions({getRoute:"druxtRouter/getRoute"})),watch:{$route:"getItems"},render:function(t){if(0!==this.crumbs.length)return t(this.component,{props:{items:this.crumbs}})}};return t.DruxtBreadcrumb=n,t.default=function(t){void 0===t&&(t={}),this.addPlugin({src:e.resolve(__dirname,"../nuxt/plugin.js"),fileName:"druxt-breadcrumb.js",moduleOptions:t})},t}({},path,vuex);
var VueDrupalEntity=function(t,e,r){"use strict";var i={name:"DruxtBreadcrumb",props:{component:{type:String,default:function(){return"div"}}},created:function(){this.getItems()},data:function(){return{loading:0,items:{}}},computed:Object.assign({},{crumbs:function(){var t=this;return this.loading?[]:Object.keys(this.items).sort((function(t,e){return t.length-e.length})).map((function(e){return t.items[e]}))}},r.mapState({route:function(t){return t.druxtRouter.route.data},routes:function(t){return t.druxtRouter.routes}})),methods:Object.assign({},{getItems:function(){var t=this;if(this.items={},this.route&&(this.items["/"]={to:"/",text:"Home"},"/"!==this.$route.path)){this.items[this.$route.path]={text:this.route.label};var e=this.$route.path.split("/").filter(String);e.pop();for(var r=function(){t.loading++;var r="/"+e.join("/");t.items[r]={},t.getRoute(r).then((function(e){var i=e.data;e.error;t.loading--,delete t.items[r],i.label&&(t.items[r]={to:r,text:i.label}),t.$forceUpdate()})),e.pop()};e.length>0;)r()}}},r.mapActions({getRoute:"druxtRouter/getRoute"})),watch:{$route:"getItems"},render:function(t){if(0!==this.crumbs.length)return t(this.component,{props:{items:this.crumbs}})}};return t.DruxtBreadcrumb=i,t.default=function(t){void 0===t&&(t={}),this.addPlugin({src:e.resolve(__dirname,"../nuxt/plugin.js"),fileName:"druxt-breadcrumb.js",moduleOptions:t})},t}({},path,vuex);

@@ -44,2 +44,5 @@ 'use strict';Object.defineProperty(exports,'__esModule',{value:true});var path=require('path'),vuex=require('vuex');var component = {

// If there is no route, stop here.
if (!this.route) { return }
// Home crumb.

@@ -52,2 +55,3 @@ // @TODO - Make this configurable.

// If we are at the root of the site, stop here.
if (this.$route.path === '/') { return }

@@ -54,0 +58,0 @@

{
"name": "druxt-breadcrumb",
"version": "0.3.0",
"version": "0.3.1",
"description": "Provides a Breadcrumb Vue component to be used within a Druxt (DRUpal nuXT) project.",

@@ -5,0 +5,0 @@ "repository": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc