druxt-router
Advanced tools
Comparing version 0.2.0 to 0.2.1
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
52388
2
20
906
0
21
- Removedvue-drupal-entity@^0.1.0
- Removedvue-drupal-entity@0.1.0(transitive)