Comparing version 0.9.0 to 0.10.0
# druxt | ||
## 0.10.0 | ||
### Minor Changes | ||
- 715e5ef: Updated component registration method to use the Nuxt `components:dirs` hook | ||
- 2b8c3f3: Added DruxtDebug component | ||
- 317184e: Added Druxt API URL to Nuxt CLI badge | ||
## 0.9.0 | ||
@@ -4,0 +12,0 @@ |
@@ -1,2 +0,3 @@ | ||
import { resolve } from 'path'; | ||
import chalk from 'chalk'; | ||
import { join, resolve } from 'path'; | ||
import axios from 'axios'; | ||
@@ -11,5 +12,9 @@ import { stringify } from 'querystring'; | ||
const options = { | ||
endpoint: "/jsonapi", | ||
...moduleOptions, | ||
...(this.options || {}).druxt | ||
}; | ||
this.nuxt.hook("components:dirs", (dirs) => { | ||
dirs.push({ path: join(__dirname, "components") }); | ||
}); | ||
this.addPlugin({ | ||
@@ -26,2 +31,3 @@ src: resolve(__dirname, "../nuxt/plugin.js"), | ||
this.options.store = true; | ||
this.options.cli.badgeMessages.push(`${chalk.bold("Druxt API:")} ${chalk.blue.underline(options.baseUrl + options.endpoint)}`); | ||
}; | ||
@@ -355,2 +361,3 @@ DruxtNuxtModule.meta = require("../package.json"); | ||
export { DruxtClass, DruxtClient, DruxtStore, DruxtNuxtModule as default }; | ||
export default DruxtNuxtModule; | ||
export { DruxtClass, DruxtClient, DruxtStore }; |
@@ -5,2 +5,3 @@ 'use strict'; | ||
const chalk = require('chalk'); | ||
const path = require('path'); | ||
@@ -16,2 +17,3 @@ const axios = require('axios'); | ||
const chalk__default = /*#__PURE__*/_interopDefaultLegacy(chalk); | ||
const axios__default = /*#__PURE__*/_interopDefaultLegacy(axios); | ||
@@ -24,5 +26,9 @@ const merge__default = /*#__PURE__*/_interopDefaultLegacy(merge); | ||
const options = { | ||
endpoint: "/jsonapi", | ||
...moduleOptions, | ||
...(this.options || {}).druxt | ||
}; | ||
this.nuxt.hook("components:dirs", (dirs) => { | ||
dirs.push({ path: path.join(__dirname, "components") }); | ||
}); | ||
this.addPlugin({ | ||
@@ -39,2 +45,3 @@ src: path.resolve(__dirname, "../nuxt/plugin.js"), | ||
this.options.store = true; | ||
this.options.cli.badgeMessages.push(`${chalk__default['default'].bold("Druxt API:")} ${chalk__default['default'].blue.underline(options.baseUrl + options.endpoint)}`); | ||
}; | ||
@@ -371,2 +378,2 @@ DruxtNuxtModule.meta = require("../package.json"); | ||
exports.DruxtStore = DruxtStore; | ||
exports['default'] = DruxtNuxtModule; | ||
exports.default = DruxtNuxtModule; |
@@ -1,19 +0,3 @@ | ||
import Vue from 'vue' | ||
import { DruxtClient } from 'druxt' | ||
import Druxt from 'druxt/dist/components/Druxt.vue' | ||
import DruxtWrapper from 'druxt/dist/components/DruxtWrapper.vue' | ||
// Install the Druxt Vue.js component. | ||
Vue.use({ | ||
install: function (Vue) { | ||
if (Vue._druxt_installed) return | ||
Vue._druxt_installed = true | ||
// Register components. | ||
Vue.component(Druxt.name, Druxt) | ||
Vue.component(DruxtWrapper.name, DruxtWrapper) | ||
} | ||
}) | ||
export default (context, inject) => { | ||
@@ -20,0 +4,0 @@ const baseUrl = '<%= options.baseUrl %>' |
{ | ||
"name": "druxt", | ||
"version": "0.9.0", | ||
"version": "0.10.0", | ||
"description": "The Fully Decoupled Drupal Framework for Nuxt.js.", | ||
@@ -46,2 +46,3 @@ "keywords": [ | ||
"axios": "^0.21.1", | ||
"chalk": "^4.1.2", | ||
"deepmerge": "^4.2.2", | ||
@@ -48,0 +49,0 @@ "drupal-jsonapi-params": "^1.2.1", |
Sorry, the diff of this file is not supported yet
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
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
52282
11
1
67
0
10
732
+ Addedchalk@^4.1.2
+ Addedansi-styles@4.3.0(transitive)
+ Addedchalk@4.1.2(transitive)
+ Addedcolor-convert@2.0.1(transitive)
+ Addedcolor-name@1.1.4(transitive)
+ Addedhas-flag@4.0.0(transitive)
+ Addedsupports-color@7.2.0(transitive)