Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@prismicio/api-renderer

Package Overview
Dependencies
Maintainers
19
Versions
94
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@prismicio/api-renderer - npm Package Compare versions

Comparing version 0.2.1 to 0.3.0

4

lib/widgets/slices/SlicesRenderer.js

@@ -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,

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc