@easy-cms/plugin-nested-docs 0.43.0 → 0.44.0

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.
Files changed (2) hide show
  1. package/dist/index.js +3 -2
  2. package/package.json +5 -5
package/dist/index.js CHANGED
@@ -248,7 +248,7 @@ import {
248
248
  // src/info.ts
249
249
  var INFO = {
250
250
  name: "@easy-cms/plugin-nested-docs",
251
- ...true ? { version: "0.43.0" } : {}
251
+ ...true ? { version: "0.44.0" } : {}
252
252
  };
253
253
 
254
254
  // src/plugin.ts
@@ -455,7 +455,7 @@ function nestedDocsPlugin(options) {
455
455
  method: "get",
456
456
  // Lets the helpers find these options from the resolved config.
457
457
  handler: Object.assign(
458
- async ({ params, url, user, cms }) => {
458
+ async ({ params, url, user, context, cms }) => {
459
459
  const collection = params.collection;
460
460
  if (!source.collections.has(collection)) throw new NotFoundError("tree", collection);
461
461
  const locale = url.searchParams.get("locale");
@@ -464,6 +464,7 @@ function nestedDocsPlugin(options) {
464
464
  ...locale ? { locale } : {},
465
465
  ...Number.isInteger(depth) && depth > 0 ? { depth } : {},
466
466
  user,
467
+ context,
467
468
  overrideAccess: false
468
469
  });
469
470
  return Response.json(nodes, { headers: { "cache-control": "public, max-age=60" } });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@easy-cms/plugin-nested-docs",
3
- "version": "0.43.0",
3
+ "version": "0.44.0",
4
4
  "description": "Nested pages for Easy CMS: a parent for each page, breadcrumbs and full paths kept up to date, and a tree in the admin",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -17,12 +17,12 @@
17
17
  "dist"
18
18
  ],
19
19
  "peerDependencies": {
20
- "@easy-cms/core": "^0.43.0"
20
+ "@easy-cms/core": "^0.44.0"
21
21
  },
22
22
  "devDependencies": {
23
- "@easy-cms/core": "^0.43.0",
24
- "@easy-cms/db-sqlite": "^0.43.0",
25
- "@easy-cms/plugin-redirects": "^0.43.0"
23
+ "@easy-cms/core": "^0.44.0",
24
+ "@easy-cms/plugin-redirects": "^0.44.0",
25
+ "@easy-cms/db-sqlite": "^0.44.0"
26
26
  },
27
27
  "engines": {
28
28
  "node": ">=22.12"