@crombolo/api-delivery 0.44.0 → 0.46.1

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/package.json +4 -4
  2. package/src/output.ts +2 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crombolo/api-delivery",
3
- "version": "0.44.0",
3
+ "version": "0.46.1",
4
4
  "description": "Internal to crombolo, with no compatibility promise: use @crombolo/crombolo. Umbraco's Content Delivery API for crombolo: published content and media as JSON, served from the published cache.",
5
5
  "license": "MIT",
6
6
  "author": "Crombolo",
@@ -28,8 +28,8 @@
28
28
  "access": "public"
29
29
  },
30
30
  "dependencies": {
31
- "@crombolo/core": "0.44.0",
32
- "@crombolo/contracts": "0.44.0",
33
- "@crombolo/render": "0.44.0"
31
+ "@crombolo/core": "0.46.1",
32
+ "@crombolo/contracts": "0.46.1",
33
+ "@crombolo/render": "0.46.1"
34
34
  }
35
35
  }
package/src/output.ts CHANGED
@@ -262,6 +262,8 @@ async function blockItem(
262
262
  return {
263
263
  content: await apiElement(item.content, ctx, expand, include),
264
264
  settings: await apiElement(item.settings, ctx, expand, include),
265
+ // Crombolo's own: a block's alias, only where it has one (story 253).
266
+ ...(item.alias ? { alias: item.alias } : {}),
265
267
  }
266
268
  }
267
269