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
4
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 7.0.3 to 7.0.4

11

lib/richtext-to-markup.js

@@ -5,2 +5,3 @@ "use strict";

const sax_1 = tslib_1.__importDefault(require("sax"));
const he_1 = tslib_1.__importDefault(require("he"));
const create_tag_1 = require("./create-tag");

@@ -16,4 +17,2 @@ const generateTextElement = (content) => ({

const forceClosed = new Set(["br", "wbr"]);
const nbspRegexp = / /;
const nbspCharacter = String.fromCharCode(160);
if (!content) {

@@ -23,7 +22,3 @@ return Promise.resolve([]);

if (content.indexOf("<") < 0) {
let mutableContent = content;
if (content.indexOf("&nbsp") > 0) {
mutableContent = content.replace(nbspRegexp, nbspCharacter);
}
const onlyText = generateTextElement(mutableContent);
const onlyText = generateTextElement(he_1.default.decode(content));
return Promise.resolve([onlyText]);

@@ -76,2 +71,2 @@ }

exports.richtextToMarkupFactory = (logger) => (content) => exports.richtextToMarkup(content, logger);
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmljaHRleHQtdG8tbWFya3VwLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vc3JjL3JpY2h0ZXh0LXRvLW1hcmt1cC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBQSxzREFBK0I7QUFDL0IsNkNBQXlDO0FBT3pDLE1BQU0sbUJBQW1CLEdBQUcsQ0FBQyxPQUFlLEVBQWlCLEVBQUUsQ0FBQyxDQUFDO0lBQy9ELElBQUksRUFBRSxNQUFNO0lBQ1osVUFBVSxFQUFFO1FBQ1YsS0FBSyxFQUFFLE9BQU87S0FDZjtJQUNELFFBQVEsRUFBRSxFQUFFO0NBQ2IsQ0FBQyxD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,2 +22,4 @@ "typings": "lib/types/index.d.ts",

"dependencies": {
"@types/he": "^1.1.0",
"he": "^1.2.0",
"sax": "1.2.4",

@@ -24,0 +26,0 @@ "tslib": "1.9.3"

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