@thetimes/methode-parser
Advanced tools
Comparing version 2.1.2 to 2.1.3
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const richtext_to_markup_1 = require("./richtext-to-markup"); | ||
const getImageToUrl = (imageToUrl) => { | ||
if (!imageToUrl) { | ||
throw new Error("ImageToUrl missing - dependency required for parsing images and video poster images"); | ||
} | ||
return imageToUrl; | ||
}; | ||
const coalesce = (v) => (v == null ? null : v); | ||
@@ -22,3 +28,5 @@ const paragraphToMarkup = ({ data: { text } }, logger) => richtext_to_markup_1.richtextToMarkup(text, logger).then(ast => ({ | ||
const videoToMarkup = ({ data: { display, caption, posterImageId, brightcovePolicyKey, brightcovePlayerId, brightcoveVideoId, paidOnly, skySports, brightcoveAccountId, posterImage } }, imageToUrl) => { | ||
const posterImageUrl = imageToUrl.createPosterImageUrl(posterImage); | ||
const posterImageUrl = posterImage | ||
? getImageToUrl(imageToUrl).createPosterImageUrl(posterImage) | ||
: null; | ||
return Promise.resolve({ | ||
@@ -109,3 +117,3 @@ name: "video", | ||
case "image": | ||
return markup.push(imageToMarkup(item, imageToUrl)); | ||
return markup.push(imageToMarkup(item, getImageToUrl(imageToUrl))); | ||
case "interactive": | ||
@@ -119,2 +127,2 @@ return markup.push(interactiveToMarkup(item)); | ||
}; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29udGVudC10by1tYXJrdXAuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvY29udGVudC10by1tYXJrdXAudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSw2REFBd0Q7QUFnQ3hELE1BQU0sUUFBUSxHQUFHLENBQUksQ0FBSyxFQUFFLEVBQUUsQ0FBQyxDQUFDLENBQUMsSUFBSSxJQUFJLENBQUMsQ0FBQyxDQUFDLElBQUksQ0FBQyxDQUFDLENBQUMsQ0FBQyxDQUFDLENBQUM7QUFFdEQsTUFBTSxpQkFBa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UFBRSxNQUFNLENBQUMsQ0FBQyxJQUFJLENBQzlDLFFBQVEsQ0FBQyxFQUFFLENBQ1QsQ0FBQztvQkFDQyxJQUFJLEVBQUUsVUFBVTtvQkFDaEIsUUFBUTtpQkFDUyxDQUFBLENBQ3RCLENBQ0YsQ0FBQztZQUNKLEtBQUssT0FBTztnQkFDVixPQUFPLE1BQU0sQ0FBQyxJQUFJLENBQUMsYUFBYSxDQUFDLElBQUksRUFBRSxhQUFhLENBQUMsVUFBVSxDQUFDLENBQUMsQ0FBQyxDQUFDO1lBQ3JFLEtBQUssYUFBYTtnQkFDaEIsT0FBTyxNQUFNLENBQUMsSUFBSSxDQUFDLG1CQUFtQixDQUFDLElBQUksQ0FBQyxDQUFDLENBQUM7WUFDaEQ7Z0JBQ0UsT0FBTyxNQUFNLENBQUMsSUFBSSxDQUFDLE9BQU8sQ0FBQyxPQUFPLENBQUMsSUFBSSxDQUFDLENBQUMsQ0FBQztTQUM3QztJQUNILENBQUMsQ0FBQyxDQUFDO0lBRUgsT0FBTyxPQUFPLENBQUMsR0FBRyxDQUFDLE1BQU0sQ0FBQyxDQUFDLElBQUksQ0FDN0IsUUFBUSxDQUFDLEVBQUUsQ0FBQyxRQUFRLENBQUMsTUFBTSxDQUFDLE9BQU8sQ0FBVyxDQUMvQyxDQUFDO0FBQ0osQ0FBQyxDQUFDIn0= |
@@ -18,3 +18,3 @@ import { ContentElement } from "./content-element"; | ||
}; | ||
export declare const contentToMarkupFactory: (imageToUrl: ImageToUrl, logger: SimpleLogger) => (contentElements: ContentElement[]) => Promise<MarkupElement[]>; | ||
export declare const contentToMarkupFactory: (imageToUrl: ImageToUrl | null | undefined, logger: SimpleLogger) => (contentElements: ContentElement[]) => Promise<MarkupElement[]>; | ||
export {}; |
{ | ||
"name": "@thetimes/methode-parser", | ||
"version": "2.1.2", | ||
"version": "2.1.3", | ||
"main": "lib/index.js", | ||
@@ -5,0 +5,0 @@ "typings": "lib/types/index.d.ts", |
53749
933