druxt 0.25.0-dev.20261006063759 → 0.25.0-dev.20261006094246
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 +5 -4
- package/dist/druxt.ssr.js +5 -4
- package/package.json +2 -2
package/dist/druxt.esm.js
CHANGED
|
@@ -170,6 +170,7 @@ class DruxtClient {
|
|
|
170
170
|
jsonapiResourceConfig: "jsonapi_resource_config--jsonapi_resource_config",
|
|
171
171
|
...options
|
|
172
172
|
};
|
|
173
|
+
this.options.endpoint = `/${String(this.options.endpoint).replace(/^\/+/, "")}`;
|
|
173
174
|
if (this.options.cache)
|
|
174
175
|
watchCredentials(this.axios, this.options.cache.sessionCookie);
|
|
175
176
|
const indexKey = JSON.stringify([baseUrl, this.options.endpoint, this.options.jsonapiResourceConfig]);
|
|
@@ -401,7 +402,7 @@ class DruxtClient {
|
|
|
401
402
|
}
|
|
402
403
|
let { href } = await this.getIndex(type, prefix);
|
|
403
404
|
if (!href) {
|
|
404
|
-
href = this.options.endpoint + "/" + type.replace("--", "/");
|
|
405
|
+
href = [prefix, this.options.endpoint].join("").replace(/^\/*/, "/") + "/" + type.replace("--", "/");
|
|
405
406
|
}
|
|
406
407
|
const url = this.buildQueryUrl(`${href}/${id}/${related}`, query);
|
|
407
408
|
const { data } = await this.get(url);
|
|
@@ -413,7 +414,7 @@ class DruxtClient {
|
|
|
413
414
|
}
|
|
414
415
|
let { href } = await this.getIndex(type, prefix);
|
|
415
416
|
if (!href) {
|
|
416
|
-
href = this.options.endpoint + "/" + type.replace("--", "/");
|
|
417
|
+
href = [prefix, this.options.endpoint].join("").replace(/^\/*/, "/") + "/" + type.replace("--", "/");
|
|
417
418
|
}
|
|
418
419
|
const url = this.buildQueryUrl([href, id].join("/"), query);
|
|
419
420
|
const { data } = await this.get(url);
|
|
@@ -462,7 +463,7 @@ const cacheClearHandler = (secret) => (req, res) => {
|
|
|
462
463
|
};
|
|
463
464
|
|
|
464
465
|
var name = "druxt";
|
|
465
|
-
var version = "0.25.0-dev.
|
|
466
|
+
var version = "0.25.0-dev.20261006094246";
|
|
466
467
|
var description = "The Fully Decoupled Drupal Framework for Nuxt.js.";
|
|
467
468
|
var keywords = [
|
|
468
469
|
"cms",
|
|
@@ -522,7 +523,7 @@ var dependencies = {
|
|
|
522
523
|
};
|
|
523
524
|
var devDependencies = {
|
|
524
525
|
"@storybook/addon-docs": "^6.5.16",
|
|
525
|
-
"druxt-test-utils": "1.0.0-dev.
|
|
526
|
+
"druxt-test-utils": "1.0.0-dev.20261006094246"
|
|
526
527
|
};
|
|
527
528
|
var peerDependencies = {
|
|
528
529
|
axios: "0.28.0",
|
package/dist/druxt.ssr.js
CHANGED
|
@@ -183,6 +183,7 @@ class DruxtClient {
|
|
|
183
183
|
jsonapiResourceConfig: "jsonapi_resource_config--jsonapi_resource_config",
|
|
184
184
|
...options
|
|
185
185
|
};
|
|
186
|
+
this.options.endpoint = `/${String(this.options.endpoint).replace(/^\/+/, "")}`;
|
|
186
187
|
if (this.options.cache)
|
|
187
188
|
watchCredentials(this.axios, this.options.cache.sessionCookie);
|
|
188
189
|
const indexKey = JSON.stringify([baseUrl, this.options.endpoint, this.options.jsonapiResourceConfig]);
|
|
@@ -414,7 +415,7 @@ class DruxtClient {
|
|
|
414
415
|
}
|
|
415
416
|
let { href } = await this.getIndex(type, prefix);
|
|
416
417
|
if (!href) {
|
|
417
|
-
href = this.options.endpoint + "/" + type.replace("--", "/");
|
|
418
|
+
href = [prefix, this.options.endpoint].join("").replace(/^\/*/, "/") + "/" + type.replace("--", "/");
|
|
418
419
|
}
|
|
419
420
|
const url = this.buildQueryUrl(`${href}/${id}/${related}`, query);
|
|
420
421
|
const { data } = await this.get(url);
|
|
@@ -426,7 +427,7 @@ class DruxtClient {
|
|
|
426
427
|
}
|
|
427
428
|
let { href } = await this.getIndex(type, prefix);
|
|
428
429
|
if (!href) {
|
|
429
|
-
href = this.options.endpoint + "/" + type.replace("--", "/");
|
|
430
|
+
href = [prefix, this.options.endpoint].join("").replace(/^\/*/, "/") + "/" + type.replace("--", "/");
|
|
430
431
|
}
|
|
431
432
|
const url = this.buildQueryUrl([href, id].join("/"), query);
|
|
432
433
|
const { data } = await this.get(url);
|
|
@@ -475,7 +476,7 @@ const cacheClearHandler = (secret) => (req, res) => {
|
|
|
475
476
|
};
|
|
476
477
|
|
|
477
478
|
var name = "druxt";
|
|
478
|
-
var version = "0.25.0-dev.
|
|
479
|
+
var version = "0.25.0-dev.20261006094246";
|
|
479
480
|
var description = "The Fully Decoupled Drupal Framework for Nuxt.js.";
|
|
480
481
|
var keywords = [
|
|
481
482
|
"cms",
|
|
@@ -535,7 +536,7 @@ var dependencies = {
|
|
|
535
536
|
};
|
|
536
537
|
var devDependencies = {
|
|
537
538
|
"@storybook/addon-docs": "^6.5.16",
|
|
538
|
-
"druxt-test-utils": "1.0.0-dev.
|
|
539
|
+
"druxt-test-utils": "1.0.0-dev.20261006094246"
|
|
539
540
|
};
|
|
540
541
|
var peerDependencies = {
|
|
541
542
|
axios: "0.28.0",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "druxt",
|
|
3
|
-
"version": "0.25.0-dev.
|
|
3
|
+
"version": "0.25.0-dev.20261006094246",
|
|
4
4
|
"description": "The Fully Decoupled Drupal Framework for Nuxt.js.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cms",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
62
|
"@storybook/addon-docs": "^6.5.16",
|
|
63
|
-
"druxt-test-utils": "1.0.0-dev.
|
|
63
|
+
"druxt-test-utils": "1.0.0-dev.20261006094246"
|
|
64
64
|
},
|
|
65
65
|
"peerDependencies": {
|
|
66
66
|
"axios": "0.28.0",
|