Socket
Socket
Sign inDemoInstall

druxt

Package Overview
Dependencies
Maintainers
1
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

druxt - npm Package Compare versions

Comparing version 0.9.0 to 0.10.0

dist/components/DruxtDebug.vue

8

CHANGELOG.md
# 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 @@

11

dist/druxt.esm.js

@@ -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;

16

nuxt/plugin.js

@@ -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

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