Socket
Socket
Sign inDemoInstall

druxt-breadcrumb

Package Overview
Dependencies
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

druxt-breadcrumb - npm Package Compare versions

Comparing version 0.3.1 to 0.3.2

3

dist/druxt-breadcrumb.esm.js

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

this$1.$forceUpdate();
}).catch(function (error) {
this$1.loading--;
delete this$1.items[to];
});

@@ -87,0 +90,0 @@

2

dist/druxt-breadcrumb.min.js

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

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);
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()})).catch((function(e){t.loading--,delete t.items[r]})),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);

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

this$1.$forceUpdate();
}).catch(function (error) {
this$1.loading--;
delete this$1.items[to];
});

@@ -84,0 +87,0 @@

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

@@ -45,3 +45,3 @@ "repository": {

"dependencies": {
"codecov": "^3.6.5",
"codecov": "^3.7.0",
"vuex": "^3.1.3"

@@ -48,0 +48,0 @@ },

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