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
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 1.0.0-alpha.1 to 1.0.0-alpha.2.0

4

lib/DocumentRenderer.d.ts

@@ -14,3 +14,3 @@ import { WidgetContent } from "@prismicio/types-internal/lib/documents/widgets";

})[];
}, withMeta: boolean, linkResolver?: {
}, withMeta: boolean, brokenRoute?: string | undefined, linkResolver?: {
[x: string]: {

@@ -75,3 +75,3 @@ [x: string]: {

})[];
}, withMeta: boolean, linkResolver?: {
}, withMeta: boolean, brokenRoute?: string | undefined, linkResolver?: {
[x: string]: {

@@ -78,0 +78,0 @@ [x: string]: {

@@ -86,3 +86,3 @@ "use strict";

function renderV1(ctx) {
return (doc, content, masterLang, searchURL, i18n, withMeta, linkResolver, fetchDoc) => {
return (doc, content, masterLang, searchURL, i18n, withMeta, brokenRoute, linkResolver, fetchDoc) => {
var _a, _b;

@@ -100,2 +100,3 @@ const relatedDocs = (i18n[doc.groupLangId] || [])

masterLang,
brokenRoute,
doc,

@@ -136,3 +137,3 @@ })) !== null && _b !== void 0 ? _b : null,

function renderV2(ctx) {
return (mask, doc, masterLang, content, searchURL, i18n, withMeta, linkResolver, fetchDoc) => {
return (mask, doc, masterLang, content, searchURL, i18n, withMeta, brokenRoute, linkResolver, fetchDoc) => {
var _a, _b;

@@ -221,2 +222,3 @@ const widgets = mask.definitions

masterLang,
brokenRoute,
doc,

@@ -223,0 +225,0 @@ })) !== null && _b !== void 0 ? _b : null,

@@ -21,2 +21,3 @@ import type { ApiDocument } from "./ApiDocument";

masterLang: string;
brokenRoute?: string;
doc?: ApiDocument;

@@ -23,0 +24,0 @@ }): string | undefined | null;

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

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

@@ -133,2 +133,3 @@ import {

withMeta: boolean,
brokenRoute?: string,
linkResolver?: LinkResolver,

@@ -150,2 +151,3 @@ fetchDoc?: Fetch.Doc,

masterLang,
brokenRoute,
doc,

@@ -208,2 +210,3 @@ }) ?? null,

withMeta: boolean,
brokenRoute?: string,
linkResolver?: LinkResolver,

@@ -310,2 +313,3 @@ fetchDoc?: Fetch.Doc,

masterLang,
brokenRoute,
doc,

@@ -312,0 +316,0 @@ }) ?? null,

@@ -24,3 +24,4 @@ import type { ApiDocument } from "./ApiDocument"

pageType: string
masterLang: string
masterLang: string,
brokenRoute?: string,
doc?: ApiDocument

@@ -27,0 +28,0 @@ }): string | undefined | 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