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

@prismicio/api-renderer

Package Overview
Dependencies
Maintainers
26
Versions
95
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 6.1.0-alpha.1 to 6.1.0

4

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

@@ -38,3 +38,3 @@ "keywords": [

"dependencies": {
"@prismicio/types-internal": "3.3.0-alpha.2",
"@prismicio/types-internal": "3.3.0",
"tslib": "^2.5.0",

@@ -41,0 +41,0 @@ "uuid": "^9.0.0"

@@ -29,3 +29,4 @@ import type { AnyLinkContent, LinkContent } from "@prismicio/types-internal/lib/content"

const defVariants = def.variants || []
const linkVariant = link.value.variant && defVariants.includes(link.value.variant) ? link.value.variant : defVariants[0]
const linkVariant =
link.value.variant && defVariants.includes(link.value.variant) ? link.value.variant : defVariants[0]

@@ -32,0 +33,0 @@ return {

@@ -32,3 +32,4 @@ import { type DocumentLinkContent, FilledDocumentLinkContent, LinkContent } from "@prismicio/types-internal/lib/content"

const defVariants = def.variants || []
const linkVariant = link.value.variant && defVariants.includes(link.value.variant) ? link.value.variant : defVariants[0]
const linkVariant =
link.value.variant && defVariants.includes(link.value.variant) ? link.value.variant : defVariants[0]

@@ -100,4 +101,5 @@ return {

const defVariants = def.variants || []
const linkVariant = link.value.variant && defVariants.includes(link.value.variant) ? link.value.variant : defVariants[0]
const linkVariant =
link.value.variant && defVariants.includes(link.value.variant) ? link.value.variant : defVariants[0]
if (FilledDocumentLinkContent.is(link.value)) {

@@ -129,4 +131,5 @@ const linkKey = options?.omitKey ? undefined : link.key

const defVariants = def.variants || []
const linkVariant = link.value.variant && defVariants.includes(link.value.variant) ? link.value.variant : defVariants[0]
const linkVariant =
link.value.variant && defVariants.includes(link.value.variant) ? link.value.variant : defVariants[0]
return {

@@ -133,0 +136,0 @@ id: link.value.id,

@@ -37,3 +37,4 @@ import { type ExternalLinkContent, FilledExternalLinkContent, LinkContent } from "@prismicio/types-internal/lib/content"

const defVariants = def.variants || []
const linkVariant = link.value.variant && defVariants.includes(link.value.variant) ? link.value.variant : defVariants[0]
const linkVariant =
link.value.variant && defVariants.includes(link.value.variant) ? link.value.variant : defVariants[0]

@@ -40,0 +41,0 @@ return {

@@ -35,3 +35,4 @@ import { type FileLinkContent, FilledFileLinkContent, LinkContent } from "@prismicio/types-internal/lib/content"

const defVariants = def.variants || []
const linkVariant = link.value.variant && defVariants.includes(link.value.variant) ? link.value.variant : defVariants[0]
const linkVariant =
link.value.variant && defVariants.includes(link.value.variant) ? link.value.variant : defVariants[0]

@@ -38,0 +39,0 @@ return {

@@ -38,3 +38,4 @@ import { type ImageLinkContent, FilledImageLinkContent, LinkContent } from "@prismicio/types-internal/lib/content"

const defVariants = def.variants || []
const linkVariant = link.value.variant && defVariants.includes(link.value.variant) ? link.value.variant : defVariants[0]
const linkVariant =
link.value.variant && defVariants.includes(link.value.variant) ? link.value.variant : defVariants[0]

@@ -41,0 +42,0 @@ return {

@@ -29,3 +29,4 @@ import type { LinkContent, MediaLinkContent } from "@prismicio/types-internal/lib/content"

const defVariants = def.variants || []
const linkVariant = link.value.variant && defVariants.includes(link.value.variant) ? link.value.variant : defVariants[0]
const linkVariant =
link.value.variant && defVariants.includes(link.value.variant) ? link.value.variant : defVariants[0]

@@ -32,0 +33,0 @@ return {

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