@prismicio/api-renderer
Advanced tools
Comparing version 1.0.0-alpha.1 to 1.0.0-alpha.2.0
@@ -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 |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
496623
14895
87