@prismicio/api-renderer
Advanced tools
Comparing version 0.2.1 to 0.3.0
@@ -37,3 +37,3 @@ "use strict"; | ||
...render, | ||
slice_id: sliceId(slice.key, slice.name), | ||
id: sliceId(slice.key, slice.name), | ||
slice_type: slice.name, | ||
@@ -53,3 +53,3 @@ slice_label: (_a = slice.maybeLabel) !== null && _a !== void 0 ? _a : null, | ||
...renderedItem, | ||
slice_id: sliceId(item.key, item.name), | ||
id: sliceId(item.key, item.name), | ||
slice_type: item.name, | ||
@@ -56,0 +56,0 @@ slice_label: (_a = item.maybeLabel) !== null && _a !== void 0 ? _a : null, |
{ | ||
"name": "@prismicio/api-renderer", | ||
"version": "0.2.1", | ||
"version": "0.3.0", | ||
"description": "Prismic renderers for the content API", | ||
@@ -33,3 +33,3 @@ "keywords": [ | ||
"eslint-fix": "npm run eslint -- --fix", | ||
"preflight": "npm run prettier && npm run build && npm run eslint", | ||
"preflight": "npm run prettier && npm run build && npm run eslint && npm run test", | ||
"prettier": "prettier --check .", | ||
@@ -36,0 +36,0 @@ "prettier-write": "prettier --write ." |
@@ -61,3 +61,3 @@ import { EmptyContentType } from "@prismicio/types-internal/lib/documents/widgets/EmptyContent" | ||
...(render as object), | ||
slice_id: sliceId(slice.key, slice.name), | ||
id: sliceId(slice.key, slice.name), | ||
slice_type: slice.name, | ||
@@ -77,3 +77,3 @@ slice_label: slice.maybeLabel ?? null, | ||
...renderedItem, | ||
slice_id: sliceId(item.key, item.name), | ||
id: sliceId(item.key, item.name), | ||
slice_type: item.name, | ||
@@ -80,0 +80,0 @@ slice_label: item.maybeLabel ?? null, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
494016