druxt-router
Advanced tools
Comparing version 0.16.0 to 0.16.1
@@ -15,3 +15,3 @@ import { resolve } from 'path'; | ||
/** | ||
* The Nuxt.js module function. | ||
* The NuxtJS module function. | ||
* | ||
@@ -22,5 +22,5 @@ * - Extends the Vue router, adding the Druxt wildcard route. | ||
* | ||
* The module function should not be used directly, but rather installed via yout Nuxt.js configuration file. | ||
* The module function should not be used directly, but rather installed via your Nuxt configuration file. | ||
* | ||
* Options are set on the root level `druxt` Nuxt.js config object. | ||
* Options are set on the root level `druxt` Nuxt config object. | ||
* | ||
@@ -34,3 +34,3 @@ * @example @lang js | ||
* druxt: { | ||
* baseUrl: 'https://example.com' | ||
* baseUrl: 'https://demi-api.druxtjs.org' | ||
* } | ||
@@ -41,7 +41,7 @@ * } | ||
* | ||
* @property {object} options.druxt - Druxt.js root level options. | ||
* @property {object} options.druxt - Druxt root level options. | ||
* @property {string} options.druxt.baseUrl - Base URL of Drupal JSON:API backend. | ||
* @property {string} options.druxt.router.component - File to custom Router component. | ||
*/ | ||
var DruxtRouterModule = function (moduleOptions) { | ||
var DruxtRouterNuxtModule = function (moduleOptions) { | ||
var this$1 = this; | ||
@@ -101,3 +101,3 @@ | ||
* @example @lang vue | ||
* <druxt-router /> | ||
* <DruxtRouter /> | ||
*/ | ||
@@ -108,3 +108,3 @@ var script = { | ||
/** | ||
* Nuxt.js fetch method. | ||
* Nuxt fetch method. | ||
* | ||
@@ -163,3 +163,3 @@ * - Loads the route and redirect information from the Vuex store. | ||
/** | ||
* Nuxt.js head method. | ||
* Nuxt head method. | ||
* | ||
@@ -752,3 +752,3 @@ * - Sets the page title. | ||
/** | ||
* The DruxtRouterEntityMixin Vue.js mixin provides easy integration with the Druxt.js Router Vuex store, including on-demand loading of JSON:API resources. | ||
* The DruxtRouterEntityMixin Vue.js mixin provides easy integration with the DruxtJS Router Vuex store, including on-demand loading of JSON:API resources. | ||
* | ||
@@ -846,3 +846,3 @@ * @mixin | ||
* | ||
* @property {object} entities - The mapped Druxt.js Router Vuex `entities` state. | ||
* @property {object} entities - The mapped Druxt Router Vuex `entities` state. | ||
* @see {@link store|src/store.js} | ||
@@ -1128,3 +1128,3 @@ */ | ||
export default DruxtRouterModule; | ||
export default DruxtRouterNuxtModule; | ||
export { DruxtRouter, __vue_component__ as DruxtRouterComponent, DruxtRouterEntityMixin, DruxtRouterStore }; |
@@ -9,3 +9,3 @@ 'use strict';Object.defineProperty(exports,'__esModule',{value:true});function _interopDefault(e){return(e&&(typeof e==='object')&&'default'in e)?e['default']:e}var path=require('path'),vuex=require('vuex'),querystring=require('querystring'),axios=_interopDefault(require('axios')),Url=_interopDefault(require('url-parse'));/** | ||
/** | ||
* The Nuxt.js module function. | ||
* The NuxtJS module function. | ||
* | ||
@@ -16,5 +16,5 @@ * - Extends the Vue router, adding the Druxt wildcard route. | ||
* | ||
* The module function should not be used directly, but rather installed via yout Nuxt.js configuration file. | ||
* The module function should not be used directly, but rather installed via your Nuxt configuration file. | ||
* | ||
* Options are set on the root level `druxt` Nuxt.js config object. | ||
* Options are set on the root level `druxt` Nuxt config object. | ||
* | ||
@@ -28,3 +28,3 @@ * @example @lang js | ||
* druxt: { | ||
* baseUrl: 'https://example.com' | ||
* baseUrl: 'https://demi-api.druxtjs.org' | ||
* } | ||
@@ -35,7 +35,7 @@ * } | ||
* | ||
* @property {object} options.druxt - Druxt.js root level options. | ||
* @property {object} options.druxt - Druxt root level options. | ||
* @property {string} options.druxt.baseUrl - Base URL of Drupal JSON:API backend. | ||
* @property {string} options.druxt.router.component - File to custom Router component. | ||
*/ | ||
var DruxtRouterModule = function (moduleOptions) { | ||
var DruxtRouterNuxtModule = function (moduleOptions) { | ||
var this$1 = this; | ||
@@ -93,3 +93,3 @@ | ||
* @example @lang vue | ||
* <druxt-router /> | ||
* <DruxtRouter /> | ||
*/ | ||
@@ -100,3 +100,3 @@ var script = { | ||
/** | ||
* Nuxt.js fetch method. | ||
* Nuxt fetch method. | ||
* | ||
@@ -155,3 +155,3 @@ * - Loads the route and redirect information from the Vuex store. | ||
/** | ||
* Nuxt.js head method. | ||
* Nuxt head method. | ||
* | ||
@@ -261,3 +261,3 @@ * - Sets the page title. | ||
/* module identifier */ | ||
var __vue_module_identifier__ = "data-v-3f5ed9e1"; | ||
var __vue_module_identifier__ = "data-v-23aaa008"; | ||
/* functional template */ | ||
@@ -737,3 +737,3 @@ var __vue_is_functional_template__ = false; | ||
/** | ||
* The DruxtRouterEntityMixin Vue.js mixin provides easy integration with the Druxt.js Router Vuex store, including on-demand loading of JSON:API resources. | ||
* The DruxtRouterEntityMixin Vue.js mixin provides easy integration with the DruxtJS Router Vuex store, including on-demand loading of JSON:API resources. | ||
* | ||
@@ -831,3 +831,3 @@ * @mixin | ||
* | ||
* @property {object} entities - The mapped Druxt.js Router Vuex `entities` state. | ||
* @property {object} entities - The mapped Druxt Router Vuex `entities` state. | ||
* @see {@link store|src/store.js} | ||
@@ -1109,2 +1109,2 @@ */ | ||
}); | ||
};exports.DruxtRouter=DruxtRouter;exports.DruxtRouterComponent=__vue_component__;exports.DruxtRouterEntityMixin=DruxtRouterEntityMixin;exports.DruxtRouterStore=DruxtRouterStore;exports.default=DruxtRouterModule; | ||
};exports.DruxtRouter=DruxtRouter;exports.DruxtRouterComponent=__vue_component__;exports.DruxtRouterEntityMixin=DruxtRouterEntityMixin;exports.DruxtRouterStore=DruxtRouterStore;exports.default=DruxtRouterNuxtModule; |
{ | ||
"name": "druxt-router", | ||
"version": "0.16.0", | ||
"description": "Simple decoupled Drupal routing for Nuxt.js.", | ||
"version": "0.16.1", | ||
"description": "Simple decoupled Drupal routing for Nuxt.", | ||
"files": [ | ||
@@ -18,4 +18,4 @@ "dist", | ||
"dev": "nodemon --ext js,vue --exec 'npm run lint && npm run build && npm run test'", | ||
"docs:dev": "druxt-docgen dev", | ||
"docs:build": "druxt-docgen build", | ||
"docs:dev": "npx druxt-docgen", | ||
"docs:build": "npx druxt-docgen build", | ||
"lint": "eslint --ext .js,.vue src", | ||
@@ -50,4 +50,4 @@ "start": "npm run dev", | ||
"dependencies": { | ||
"axios": "^0.19.2", | ||
"codecov": "^3.7.2", | ||
"axios": "^0.21.0", | ||
"codecov": "^3.8.1", | ||
"querystring": "^0.2.0", | ||
@@ -57,11 +57,11 @@ "url-parse": "^1.4.7" | ||
"devDependencies": { | ||
"@babel/node": "^7.10.5", | ||
"@babel/plugin-transform-runtime": "^7.11.0", | ||
"@babel/preset-env": "^7.11.0", | ||
"@babel/runtime": "^7.11.2", | ||
"@babel/node": "^7.12.6", | ||
"@babel/plugin-transform-runtime": "^7.12.1", | ||
"@babel/preset-env": "^7.12.1", | ||
"@babel/runtime": "^7.12.5", | ||
"@nuxtjs/eslint-config": "^2.0.2", | ||
"@rollup/plugin-alias": "^3.1.1", | ||
"@rollup/plugin-buble": "^0.21.3", | ||
"@rollup/plugin-replace": "^2.3.3", | ||
"@vue/test-utils": "^1.0.4", | ||
"@rollup/plugin-replace": "^2.3.4", | ||
"@vue/test-utils": "^1.1.1", | ||
"babel-core": "^7.0.0-bridge.0", | ||
@@ -71,11 +71,11 @@ "babel-eslint": "^10.1.0", | ||
"cross-env": "^7.0.2", | ||
"druxt-docgen": "^0.2.4", | ||
"druxt-docgen": "^0.3.0", | ||
"eslint": "^6.8.0", | ||
"get-port": "^5.1.1", | ||
"gh-pages": "^3.1.0", | ||
"jest": "^26.4.2", | ||
"jest": "^26.6.3", | ||
"jest-junit": "^11.1.0", | ||
"jest-mock-axios": "^3.2.0", | ||
"md5": "^2.3.0", | ||
"nodemon": "^2.0.4", | ||
"nodemon": "^2.0.6", | ||
"nuxt-edge": "^2.11.0-26277131.7af9ec8c", | ||
@@ -85,6 +85,6 @@ "require-directory": "^2.1.1", | ||
"rollup-plugin-commonjs": "^10.1.0", | ||
"rollup-plugin-terser": "^7.0.0", | ||
"rollup-plugin-terser": "^7.0.2", | ||
"rollup-plugin-vue": "^5.1.9", | ||
"vue": "^2.6.12", | ||
"vue-jest": "^3.0.6", | ||
"vue-jest": "^3.0.7", | ||
"vue-server-renderer": "^2.6.12", | ||
@@ -91,0 +91,0 @@ "vue-template-compiler": "^2.6.12", |
@@ -1,2 +0,2 @@ | ||
# Druxt.js Router | ||
# DruxtJS Router | ||
@@ -7,14 +7,15 @@ [![CircleCI](https://circleci.com/gh/druxt/druxt-router.svg?style=svg)](https://circleci.com/gh/druxt/druxt-router) | ||
Simple decoupled [Drupal](https://drupal.org) routing for your [Nuxt.js](https://nuxtjs.org) application. | ||
> Simple decoupled [Drupal](https://drupal.org) routing for your [NuxtJS](https://nuxtjs.org) application. | ||
## Links | ||
- Druxt.js: https://druxtjs.org | ||
- DruxtJS: https://druxtjs.org | ||
- Documentation: https://router.druxtjs.org | ||
- Community Discord server: https://discord.druxtjs.org | ||
## Features | ||
- Nuxt.js module with out of the box page routing: `druxt-router` | ||
- NuxtJS module with out of the box page routing: `druxt-router` | ||
- Vuex store: `druxtRouter` | ||
- Vue component: `<druxt-router />` | ||
- Vue component: `<DruxtRouter />` | ||
- Vue mixin: `DruxtRouterEntityMixin` | ||
@@ -38,3 +39,3 @@ | ||
druxt: { | ||
baseUrl: 'https://example.com' | ||
baseUrl: 'https://demo-api.druxtjs.org' | ||
} | ||
@@ -50,3 +51,3 @@ } | ||
These options are available to all Druxt.js modules. | ||
These options are available to all DruxtJS modules. | ||
@@ -53,0 +54,0 @@ | Option | Type | Required | Default | Description | |
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
74151
56
+ Addedaxios@0.21.4(transitive)
+ Addedfollow-redirects@1.15.9(transitive)
- Removedaxios@0.19.2(transitive)
- Removedfollow-redirects@1.5.10(transitive)
Updatedaxios@^0.21.0
Updatedcodecov@^3.8.1