druxt 0.19.1 → 0.19.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/druxt.esm.js +6 -6
- package/dist/druxt.ssr.js +6 -6
- package/package.json +1 -1
package/dist/druxt.esm.js
CHANGED
|
@@ -251,7 +251,7 @@ class DruxtClient {
|
|
|
251
251
|
}
|
|
252
252
|
|
|
253
253
|
var name = "druxt";
|
|
254
|
-
var version = "0.19.
|
|
254
|
+
var version = "0.19.2";
|
|
255
255
|
var description = "The Fully Decoupled Drupal Framework for Nuxt.js.";
|
|
256
256
|
var keywords = [
|
|
257
257
|
"cms",
|
|
@@ -349,7 +349,7 @@ const DruxtNuxtModule = async function(moduleOptions = {}) {
|
|
|
349
349
|
if ((options.proxy || {}).api) {
|
|
350
350
|
proxies[options.endpoint] = options.baseUrl;
|
|
351
351
|
const languageResourceType = "configurable_language--configurable_language";
|
|
352
|
-
if (await druxt.getIndex(languageResourceType)) {
|
|
352
|
+
if ((await druxt.getIndex(languageResourceType) || {}).href) {
|
|
353
353
|
const query = new DrupalJsonApiParams().addFields(languageResourceType, ["drupal_internal__id"]);
|
|
354
354
|
const languages = (await druxt.getCollectionAll(languageResourceType, query) || []).map((o) => o.data).flat().filter((o) => !["und", "zxx"].includes(((o || {}).attributes || {}).drupal_internal__id)).map((o) => o.attributes.drupal_internal__id);
|
|
355
355
|
for (const langcode of languages) {
|
|
@@ -365,13 +365,13 @@ const DruxtNuxtModule = async function(moduleOptions = {}) {
|
|
|
365
365
|
if (this.options.proxy) {
|
|
366
366
|
if (Array.isArray(this.options.proxy)) {
|
|
367
367
|
this.options.proxy = [
|
|
368
|
-
...
|
|
369
|
-
...
|
|
368
|
+
...this.options.proxy,
|
|
369
|
+
...Object.keys(proxies).map((path) => `${options.baseUrl}${path}`)
|
|
370
370
|
];
|
|
371
371
|
} else {
|
|
372
372
|
this.options.proxy = {
|
|
373
|
-
...
|
|
374
|
-
...
|
|
373
|
+
...this.options.proxy,
|
|
374
|
+
...proxies
|
|
375
375
|
};
|
|
376
376
|
}
|
|
377
377
|
} else {
|
package/dist/druxt.ssr.js
CHANGED
|
@@ -264,7 +264,7 @@ class DruxtClient {
|
|
|
264
264
|
}
|
|
265
265
|
|
|
266
266
|
var name = "druxt";
|
|
267
|
-
var version = "0.19.
|
|
267
|
+
var version = "0.19.2";
|
|
268
268
|
var description = "The Fully Decoupled Drupal Framework for Nuxt.js.";
|
|
269
269
|
var keywords = [
|
|
270
270
|
"cms",
|
|
@@ -362,7 +362,7 @@ const DruxtNuxtModule = async function(moduleOptions = {}) {
|
|
|
362
362
|
if ((options.proxy || {}).api) {
|
|
363
363
|
proxies[options.endpoint] = options.baseUrl;
|
|
364
364
|
const languageResourceType = "configurable_language--configurable_language";
|
|
365
|
-
if (await druxt.getIndex(languageResourceType)) {
|
|
365
|
+
if ((await druxt.getIndex(languageResourceType) || {}).href) {
|
|
366
366
|
const query = new drupalJsonapiParams.DrupalJsonApiParams().addFields(languageResourceType, ["drupal_internal__id"]);
|
|
367
367
|
const languages = (await druxt.getCollectionAll(languageResourceType, query) || []).map((o) => o.data).flat().filter((o) => !["und", "zxx"].includes(((o || {}).attributes || {}).drupal_internal__id)).map((o) => o.attributes.drupal_internal__id);
|
|
368
368
|
for (const langcode of languages) {
|
|
@@ -378,13 +378,13 @@ const DruxtNuxtModule = async function(moduleOptions = {}) {
|
|
|
378
378
|
if (this.options.proxy) {
|
|
379
379
|
if (Array.isArray(this.options.proxy)) {
|
|
380
380
|
this.options.proxy = [
|
|
381
|
-
...
|
|
382
|
-
...
|
|
381
|
+
...this.options.proxy,
|
|
382
|
+
...Object.keys(proxies).map((path) => `${options.baseUrl}${path}`)
|
|
383
383
|
];
|
|
384
384
|
} else {
|
|
385
385
|
this.options.proxy = {
|
|
386
|
-
...
|
|
387
|
-
...
|
|
386
|
+
...this.options.proxy,
|
|
387
|
+
...proxies
|
|
388
388
|
};
|
|
389
389
|
}
|
|
390
390
|
} else {
|