New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@thetimes/methode-parser

Package Overview
Dependencies
Maintainers
3
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@thetimes/methode-parser - npm Package Compare versions

Comparing version 1.2.0 to 2.0.0

29

lib/content-to-markup.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const richtext_to_markup_1 = require("./richtext-to-markup");
const coalesce = (v) => (v == null ? null : v);
const paragraphToMarkup = (richtextToMarkup, { data: { text } }) => richtextToMarkup(text).then(ast => ({
const paragraphToMarkup = ({ data: { text } }, logger) => richtext_to_markup_1.richtextToMarkup(text, logger).then(ast => ({
name: "paragraph",
children: ast
}));
const keyFactsToMarkup = (richtextToMarkup, { data: { title, content } }) => richtextToMarkup(content).then(ast => ({
const keyFactsToMarkup = ({ data: { title, content } }, logger) => richtext_to_markup_1.richtextToMarkup(content, logger).then(ast => ({
name: "keyFacts",

@@ -13,3 +14,3 @@ attributes: { title },

}));
const pullQuoteToMarkup = (richtextToMarkup, { data: { caption, content } }) => richtextToMarkup(content).then(ast => ({
const pullQuoteToMarkup = ({ data: { caption, content } }, logger) => richtext_to_markup_1.richtextToMarkup(content, logger).then(ast => ({
name: "pullQuote",

@@ -61,3 +62,3 @@ attributes: {

});
exports.contentToMarkupFactory = (imageToUrl, richtextToMarkup) => (contentElements) => {
exports.contentToMarkupFactory = (imageToUrl, logger) => (contentElements) => {
if (!contentElements.length) {

@@ -70,12 +71,12 @@ return Promise.resolve([]);

case "paragraph":
markup.push(paragraphToMarkup(richtextToMarkup, item));
markup.push(paragraphToMarkup(item, logger));
return null;
case "keyFacts":
return markup.push(keyFactsToMarkup(richtextToMarkup, item));
return markup.push(keyFactsToMarkup(item, logger));
case "video":
return markup.push(videoToMarkup(item, imageToUrl));
case "pullQuote":
return markup.push(pullQuoteToMarkup(richtextToMarkup, item));
return markup.push(pullQuoteToMarkup(item, logger));
case "h1":
return markup.push(richtextToMarkup(item.data.content).then(children => ({
return markup.push(richtext_to_markup_1.richtextToMarkup(item.data.content, logger).then(children => ({
name: "heading1",

@@ -85,3 +86,3 @@ children

case "h2":
return markup.push(richtextToMarkup(item.data.content).then(children => ({
return markup.push(richtext_to_markup_1.richtextToMarkup(item.data.content, logger).then(children => ({
name: "heading2",

@@ -91,3 +92,3 @@ children

case "h3":
return markup.push(richtextToMarkup(item.data.content).then(children => ({
return markup.push(richtext_to_markup_1.richtextToMarkup(item.data.content, logger).then(children => ({
name: "heading3",

@@ -97,3 +98,3 @@ children

case "h4":
return markup.push(richtextToMarkup(item.data.content).then(children => ({
return markup.push(richtext_to_markup_1.richtextToMarkup(item.data.content, logger).then(children => ({
name: "heading4",

@@ -103,3 +104,3 @@ children

case "h5":
return markup.push(richtextToMarkup(item.data.content).then(children => ({
return markup.push(richtext_to_markup_1.richtextToMarkup(item.data.content, logger).then(children => ({
name: "heading5",

@@ -109,3 +110,3 @@ children

case "h6":
return markup.push(richtextToMarkup(item.data.content).then(children => ({
return markup.push(richtext_to_markup_1.richtextToMarkup(item.data.content, logger).then(children => ({
name: "heading6",

@@ -124,2 +125,2 @@ children

};
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29udGVudC10by1tYXJrdXAuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvY29udGVudC10by1tYXJrdXAudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUEyQkEsTUFBTSxRQUFRLEdBQUcsQ0FBSSxDQUFLLEVBQUUsRUFBRSxDQUFDLENBQUMsQ0FBQyxJQUFJLElBQUksQ0FBQyxDQUFDLENBQUMsSUFBSSxDQUFDLENBQUMsQ0FBQyxDQUFDLENBQUMsQ0FBQztBQUV0RCxNQUFNLGlCQUFpQixHQUFHLENBQ3hCLGdCQUFrQyxFQUNsQyxFQUFFLElBQUksRUFBRSxFQUFFLEl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BQyxJQUFJLENBQUMsQ0FBQyxDQUFDO1NBQzdDO0lBQ0gsQ0FBQyxDQUFDLENBQUM7SUFFSCxPQUFPLE9BQU8sQ0FBQyxHQUFHLENBQUMsTUFBTSxDQUFDLENBQUMsSUFBSSxDQUM3QixRQUFRLENBQUMsRUFBRSxDQUFDLFFBQVEsQ0FBQyxNQUFNLENBQUMsT0FBTyxDQUFXLENBQy9DLENBQUM7QUFDSixDQUFDLENBQUMifQ==
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
tslib_1.__exportStar(require("./author-to-byline"), exports);
tslib_1.__exportStar(require("./content-to-markup"), exports);
tslib_1.__exportStar(require("./richtext-to-markup"), exports);
tslib_1.__exportStar(require("./content-to-markup"), exports);
var create_tag_1 = require("./create-tag");
exports.addChildren = create_tag_1.addChildren;
tslib_1.__exportStar(require("./author-to-byline"), exports);
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEsK0RBQXFDO0FBQ3JDLDhEQUFvQztBQUNwQywyQ0FBMkM7QUFBbEMsbUNBQUEsV0FBVyxDQUFBO0FBQ3BCLDZEQUFtQyJ9
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEsNkRBQW1DO0FBQ25DLDhEQUFvQztBQUNwQywrREFBcUM7QUFDckMsMkNBQTJDO0FBQWxDLG1DQUFBLFdBQVcsQ0FBQSJ9

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

});
const richtextToMarkup = (content, logger) => {
exports.richtextToMarkup = (content, logger) => {
const forceClosed = new Set(["br"]);

@@ -73,3 +73,3 @@ const nbspRegexp = / /;

};
exports.richtextToMarkupFactory = (logger) => (content) => richtextToMarkup(content, logger);
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmljaHRleHQtdG8tbWFya3VwLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vc3JjL3JpY2h0ZXh0LXRvLW1hcmt1cC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBQSxzREFBK0I7QUFDL0IsNkNBQXlDO0FBS3pDLE1BQU0sbUJBQW1CLEdBQUcsQ0FBQyxPQUFlLEVBQWlCLEVBQUUsQ0FBQyxDQUFDO0lBQy9ELElBQUksRUFBRSxNQUFNO0lBQ1osVUFBVSxFQUFFO1FBQ1YsS0FBSyxFQUFFLE9BQU87S0FDZjtJQUNELFFBQVEsRUFBRSxFQUFFO0NBQ2IsQ0FBQyxDQUFDO0FBRUgsTUFBTSxnQkFBZ0IsR0FBRyxDQUN2QixPQUFlLEVBQ2YsTUFBb0IsRUFDSCxFQUFFO0lBQ25CLE1BQU0sV0FBVyxHQUFHLElBQUksR0FBRyxDQUFDLENBQUMsSUFBSSxDQUFDLENBQUMsQ0FBQztJQUVwQyxNQUFNLFVBQVUsR0FBRyxRQUFRLENBQUM7SUFDNUIsTUFBTSxhQUFhLEdBQUcsTUFBTSxDQUFDLFlBQVksQ0FBQyxHQUFHLENBQUMsQ0FBQztJQUUvQyxJQUFJLENBQUMsT0FBTyxFQUFFO1FBQ1osT0FBTyxPQUFPLENBQUMsT0FBTyxDQUFDLEVBQUUsQ0FBQyxDQUFDO0tBQzVCO0lBRUQsSUFBSSxPQUFPLENBQUMsT0FBTyxDQUFDLEdBQUcsQ0FBQyxHQUFHLENBQUMsRUFBRTtRQUM1QixJQUFJLGNBQWMsR0FBRyxPQUFPLENBQUM7UUFDN0IsSUFBSSxPQUFPLENBQUMsT0FBTyxDQUFDLE9BQ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yxDQUFDLENBQUMsUUFBUSxDQUFDLENBQUM7UUFDcEQsQ0FBQyxDQUFDO1FBRUYsTUFBTSxDQUFDLEtBQUssQ0FBQyxTQUFTLE9BQU8sU0FBUyxDQUFDLENBQUMsS0FBSyxFQUFFLENBQUM7SUFDbEQsQ0FBQyxDQUFDLENBQUM7QUFDTCxDQUFDLENBQUM7QUFFVyxRQUFBLHVCQUF1QixHQUFHLENBQUMsTUFBb0IsRUFBRSxFQUFFLENBQUMsQ0FDL0QsT0FBZSxFQUNFLEVBQUUsQ0FBQyxnQkFBZ0IsQ0FBQyxPQUFPLEVBQUUsTUFBTSxDQUFDLENBQUMifQ==
exports.richtextToMarkupFactory = (logger) => (content) => exports.richtextToMarkup(content, logger);
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmljaHRleHQtdG8tbWFya3VwLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vc3JjL3JpY2h0ZXh0LXRvLW1hcmt1cC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBQSxzREFBK0I7QUFDL0IsNkNBQXlDO0FBT3pDLE1BQU0sbUJBQW1CLEdBQUcsQ0FBQyxPQUFlLEVBQWlCLEVBQUUsQ0FBQyxDQUFDO0lBQy9ELElBQUksRUFBRSxNQUFNO0lBQ1osVUFBVSxFQUFFO1FBQ1YsS0FBSyxFQUFFLE9BQU87S0FDZjtJQUNELFFBQVEsRUFBRSxFQUFFO0NBQ2IsQ0FBQyxDQUFDO0FBRVUsUUFBQSxnQkFBZ0IsR0FBRyxDQUM5QixPQUFlLEVBQ2YsTUFBb0IsRUFDSCxFQUFFO0lBQ25CLE1BQU0sV0FBVyxHQUFHLElBQUksR0FBRyxDQUFDLENBQUMsSUFBSSxDQUFDLENBQUMsQ0FBQztJQUVwQyxNQUFNLFVBQVUsR0FBRyxRQUFRLENBQUM7SUFDNUIsTUFBTSxhQUFhLEdBQUcsTUFBTSx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FBSSxDQUFDLE9BQU8sQ0FBQyxNQUFNLEVBQUU7Z0JBQzdDLE9BQU87YUFDUjtZQUVELE1BQU0sRUFBRSxNQUFNLEVBQUUsR0FBRyxPQUFPLENBQUM7WUFFM0IsT0FBTyxPQUFPLENBQUMsTUFBTSxDQUFDO1lBRXRCLE9BQU8sR0FBRyxNQUFNLENBQUM7UUFDbkIsQ0FBQyxDQUFDO1FBRUYsTUFBTSxDQUFDLEtBQUssR0FBRyxHQUFHLEVBQUU7WUFDbEIsT0FBTyxDQUFFLE9BQTJCLENBQUMsQ0FBQyxDQUFDLENBQUMsUUFBUSxDQUFDLENBQUM7UUFDcEQsQ0FBQyxDQUFDO1FBRUYsTUFBTSxDQUFDLEtBQUssQ0FBQyxTQUFTLE9BQU8sU0FBUyxDQUFDLENBQUMsS0FBSyxFQUFFLENBQUM7SUFDbEQsQ0FBQyxDQUFDLENBQUM7QUFDTCxDQUFDLENBQUM7QUFFVyxRQUFBLHVCQUF1QixHQUFHLENBQUMsTUFBb0IsRUFBRSxFQUFFLENBQUMsQ0FDL0QsT0FBZSxFQUNFLEVBQUUsQ0FBQyx3QkFBZ0IsQ0FBQyxPQUFPLEVBQUUsTUFBTSxDQUFDLENBQUMifQ==

@@ -1,4 +0,5 @@

import { RichtextToMarkup } from "./richtext-to-markup";
import { ContentElement } from "./content-element";
import { MarkupElement } from "./markup";
import { Markup, MarkupElement } from "./markup";
import { SimpleLogger } from "./simple-logger";
export declare type ContentToMarkup = (contentElements: Array<ContentElement>) => Promise<Markup>;
declare type CropInfo = {

@@ -17,3 +18,3 @@ imageId: string;

};
export declare const contentToMarkupFactory: (imageToUrl: ImageToUrl, richtextToMarkup: RichtextToMarkup) => (contentElements: ContentElement[]) => Promise<MarkupElement[]>;
export declare const contentToMarkupFactory: (imageToUrl: ImageToUrl, logger: SimpleLogger) => (contentElements: ContentElement[]) => Promise<MarkupElement[]>;
export {};

@@ -0,5 +1,5 @@

export * from "./author-to-byline";
export * from "./content-to-markup";
export * from "./richtext-to-markup";
export * from "./content-to-markup";
export { addChildren } from "./create-tag";
export * from "./author-to-byline";
export { Video, MarkupType, MarkupElement, Markup } from "./markup";
import { Markup, MarkupElement } from "./markup";
import { SimpleLogger } from "./simple-logger";
export declare type RichtextToMarkup = (content: string) => Promise<Markup>;
export declare const richtextToMarkup: (content: string, logger: SimpleLogger) => Promise<MarkupElement[]>;
export declare const richtextToMarkupFactory: (logger: SimpleLogger) => (content: string) => Promise<MarkupElement[]>;
export declare type RichtextToMarkup = (content: string) => Promise<Markup>;
{
"name": "@thetimes/methode-parser",
"version": "1.2.0",
"version": "2.0.0",
"main": "lib/index.js",

@@ -19,20 +19,19 @@ "typings": "lib/types/index.d.ts",

"test": "jest",
"prepare": "npm run build",
"prepublishOnly": "npm test && npm run lint"
"prepare": "npm run build"
},
"dependencies": {
"sax": "^1.2.4",
"tslib": "^1.9.2"
"sax": "1.2.4",
"tslib": "1.9.2"
},
"devDependencies": {
"@types/jest": "^23.0.2",
"@types/sax": "^1.0.0",
"jest": "^23.1.0",
"prettier": "^1.13.5",
"rimraf": "^2.6.2",
"ts-jest": "^22.4.6",
"tslint": "^5.10.0",
"tslint-config-airbnb": "^5.9.2",
"tslint-config-prettier": "^1.13.0",
"typescript": "^2.9.1"
"@types/jest": "23.1.1",
"@types/sax": "1.0.0",
"jest": "23.1.0",
"prettier": "1.13.5",
"rimraf": "2.6.2",
"ts-jest": "22.4.6",
"tslint": "5.10.0",
"tslint-config-airbnb": "5.9.2",
"tslint-config-prettier": "1.13.0",
"typescript": "2.9.1"
},

@@ -39,0 +38,0 @@ "jest": {

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