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

@prismicio/api-renderer

Package Overview
Dependencies
Maintainers
0
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 5.0.0-alpha.0 to 5.0.0-xru-alpha.0

8

lib/widgets/StaticWidgetRenderer.js

@@ -48,3 +48,9 @@ "use strict";

var _a;
if (def.type === "Link" && ((_a = def.config) === null || _a === void 0 ? void 0 : _a.repeat) && (0, RepeatableContent_1.isRepeatableContent)(content)) {
if ((0, RepeatableContent_1.isRepeatableContent)(content)) {
return {
def,
content,
};
}
else if (def.type === "Link" && ((_a = def.config) === null || _a === void 0 ? void 0 : _a.repeat) && (0, RepeatableContent_1.isRepeatableContent)(content)) {
return RepeatableRenderer(ctx).renderV2(def, content, extractSimpleFieldIfAny(fetch));

@@ -51,0 +57,0 @@ }

2

package.json
{
"name": "@prismicio/api-renderer",
"version": "5.0.0-alpha.0",
"version": "5.0.0-xru-alpha.0",
"description": "Prismic renderers for the content API",

@@ -5,0 +5,0 @@ "keywords": [

@@ -48,3 +48,8 @@ import { GroupContent, isGroupContent, isNestableContent, NestableContent } from "@prismicio/types-internal/lib/content"

renderV2(def, content, fetch) {
if (def.type === "Link" && def.config?.repeat && isRepeatableContent(content)) {
if (isRepeatableContent(content)) {
return {
def,
content,
}
} else if (def.type === "Link" && def.config?.repeat && isRepeatableContent(content)) {
return RepeatableRenderer(ctx).renderV2(def, content, extractSimpleFieldIfAny(fetch))

@@ -51,0 +56,0 @@ } else if (def.type !== "Group" && isNestableContent(content)) {

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