Socket
Socket
Sign inDemoInstall

druxt-router

Package Overview
Dependencies
Maintainers
1
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

druxt-router - npm Package Compare versions

Comparing version 0.2.0 to 0.2.1

build/rollup.config.js

8

nuxt/component.js
import { mapState } from 'vuex'
import { DrupalEntity } from 'vue-drupal-entity'

@@ -7,6 +6,2 @@ export default {

components: {
DrupalEntity
},
head () {

@@ -37,5 +32,6 @@ return {

render (createElement) {
return createElement('drupal-entity', {
return createElement('div', {
key: this.route.entity.uuid,
props: {
type: `${this.route.entity.type}--${this.route.entity.bundle}`,
uuid: this.route.entity.uuid

@@ -42,0 +38,0 @@ }

{
"name": "druxt-router",
"version": "0.2.0",
"version": "0.2.1",
"description": "Provides a Nuxt <-> Drupal router.",

@@ -10,3 +10,7 @@ "main": "src/index.js",

"dev": "nodemon --exec 'npm run lint && npm run test'",
"test": "jest"
"test": "jest",
"build": "cross-env NODE_ENV=production rollup --config build/rollup.config.js",
"build:ssr": "cross-env NODE_ENV=production rollup --config build/rollup.config.js --format cjs",
"build:es": "cross-env NODE_ENV=production rollup --config build/rollup.config.js --format es",
"build:unpkg": "cross-env NODE_ENV=production rollup --config build/rollup.config.js --format iife"
},

@@ -34,4 +38,3 @@ "repository": {

"axios": "^0.19.0",
"codecov": "^3.6.5",
"vue-drupal-entity": "^0.1.0"
"codecov": "^3.6.5"
},

@@ -45,4 +48,8 @@ "devDependencies": {

"@nuxtjs/eslint-config": "^2.0.0",
"@rollup/plugin-alias": "^3.0.1",
"@rollup/plugin-buble": "^0.21.1",
"@rollup/plugin-replace": "^2.3.1",
"babel-eslint": "^10.0.3",
"core-js": "^2.6.10",
"cross-env": "^7.0.0",
"eslint": "^6.7.1",

@@ -52,3 +59,7 @@ "get-port": "^5.0.0",

"nodemon": "^2.0.1",
"nuxt-edge": "^2.11.0-26244009.75bb0884"
"nuxt-edge": "^2.11.0-26244009.75bb0884",
"rollup": "^1.32.0",
"rollup-plugin-commonjs": "^10.1.0",
"rollup-plugin-terser": "^5.2.0",
"rollup-plugin-vue": "^5.1.6"
},

@@ -55,0 +66,0 @@ "jest": {

@@ -20,8 +20,2 @@ import axios from 'axios'

// Setup schema support.
this.schema = {}
if (typeof options.schema !== 'undefined') {
this.schema = options.schema
}
// Setup entity preprocess callback.

@@ -36,3 +30,3 @@ if (typeof options.preprocessEntity === 'function') {

/**
* Returns Drupal entity, route and schema for given path.
* Returns Drupal entity and route for given path.
*

@@ -39,0 +33,0 @@ * @param string path

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